All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Christian König" <deathsimple-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
To: Alex Deucher
	<alexdeucher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Cc: Alex Deucher <alexander.deucher-5C7GfCeVMHo@public.gmane.org>
Subject: Re: [PATCH 1/7] drm/amdgpu/virtual_dce: drop pageflip_irq funcs
Date: Fri, 30 Sep 2016 19:52:15 +0200	[thread overview]
Message-ID: <ddd075b6-f30c-2703-4d85-2bd9eb5af824@vodafone.de> (raw)
In-Reply-To: <1475255328-21598-1-git-send-email-alexander.deucher-5C7GfCeVMHo@public.gmane.org>

Am 30.09.2016 um 19:08 schrieb Alex Deucher:
> Never used.
>
> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

Acked-by: Christian König <christian.koenig@amd.com>.

> ---
>   drivers/gpu/drm/amd/amdgpu/dce_virtual.c | 35 ++++++--------------------------
>   1 file changed, 6 insertions(+), 29 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/dce_virtual.c b/drivers/gpu/drm/amd/amdgpu/dce_virtual.c
> index 359fe56..cf43caa 100644
> --- a/drivers/gpu/drm/amd/amdgpu/dce_virtual.c
> +++ b/drivers/gpu/drm/amd/amdgpu/dce_virtual.c
> @@ -209,10 +209,9 @@ static void dce_virtual_crtc_dpms(struct drm_crtc *crtc, int mode)
>   	switch (mode) {
>   	case DRM_MODE_DPMS_ON:
>   		amdgpu_crtc->enabled = true;
> -		/* Make sure VBLANK and PFLIP interrupts are still enabled */
> +		/* Make sure VBLANK interrupts are still enabled */
>   		type = amdgpu_crtc_idx_to_irq_type(adev, amdgpu_crtc->crtc_id);
>   		amdgpu_irq_update(adev, &adev->crtc_irq, type);
> -		amdgpu_irq_update(adev, &adev->pageflip_irq, type);
>   		drm_vblank_on(dev, amdgpu_crtc->crtc_id);
>   		break;
>   	case DRM_MODE_DPMS_STANDBY:
> @@ -672,8 +671,8 @@ static enum hrtimer_restart dce_virtual_vblank_timer_handle(struct hrtimer *vbla
>   }
>   
>   static void dce_virtual_set_crtc_vblank_interrupt_state(struct amdgpu_device *adev,
> -						     int crtc,
> -						     enum amdgpu_interrupt_state state)
> +							int crtc,
> +							enum amdgpu_interrupt_state state)
>   {
>   	if (crtc >= adev->mode_info.num_crtc) {
>   		DRM_DEBUG("invalid crtc %d\n", crtc);
> @@ -697,9 +696,9 @@ static void dce_virtual_set_crtc_vblank_interrupt_state(struct amdgpu_device *ad
>   
>   
>   static int dce_virtual_set_crtc_irq_state(struct amdgpu_device *adev,
> -                                       struct amdgpu_irq_src *source,
> -                                       unsigned type,
> -                                       enum amdgpu_interrupt_state state)
> +					  struct amdgpu_irq_src *source,
> +					  unsigned type,
> +					  enum amdgpu_interrupt_state state)
>   {
>   	switch (type) {
>   	case AMDGPU_CRTC_IRQ_VBLANK1:
> @@ -726,20 +725,6 @@ static int dce_virtual_crtc_irq(struct amdgpu_device *adev,
>   	return 0;
>   }
>   
> -static int dce_virtual_set_pageflip_irq_state(struct amdgpu_device *adev,
> -					    struct amdgpu_irq_src *src,
> -					    unsigned type,
> -					    enum amdgpu_interrupt_state state)
> -{
> -	if (type >= adev->mode_info.num_crtc) {
> -		DRM_ERROR("invalid pageflip crtc %d\n", type);
> -		return -EINVAL;
> -	}
> -	DRM_DEBUG("[FM]set pageflip irq type %d state %d\n", type, state);
> -
> -	return 0;
> -}
> -
>   static int dce_virtual_pageflip_irq(struct amdgpu_device *adev,
>   				  struct amdgpu_irq_src *source,
>   				  struct amdgpu_iv_entry *entry)
> @@ -793,17 +778,9 @@ static const struct amdgpu_irq_src_funcs dce_virtual_crtc_irq_funcs = {
>   	.process = dce_virtual_crtc_irq,
>   };
>   
> -static const struct amdgpu_irq_src_funcs dce_virtual_pageflip_irq_funcs = {
> -	.set = dce_virtual_set_pageflip_irq_state,
> -	.process = dce_virtual_pageflip_irq,
> -};
> -
>   static void dce_virtual_set_irq_funcs(struct amdgpu_device *adev)
>   {
>   	adev->crtc_irq.num_types = AMDGPU_CRTC_IRQ_LAST;
>   	adev->crtc_irq.funcs = &dce_virtual_crtc_irq_funcs;
> -
> -	adev->pageflip_irq.num_types = AMDGPU_PAGEFLIP_IRQ_LAST;
> -	adev->pageflip_irq.funcs = &dce_virtual_pageflip_irq_funcs;
>   }
>   


_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

  parent reply	other threads:[~2016-09-30 17:52 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-30 17:08 [PATCH 1/7] drm/amdgpu/virtual_dce: drop pageflip_irq funcs Alex Deucher
     [not found] ` <1475255328-21598-1-git-send-email-alexander.deucher-5C7GfCeVMHo@public.gmane.org>
2016-09-30 17:08   ` [PATCH 2/7] drm/amdgpu/virtual_dce: no need to an irq process callback Alex Deucher
     [not found]     ` <1475255328-21598-2-git-send-email-alexander.deucher-5C7GfCeVMHo@public.gmane.org>
2016-10-08  8:22       ` Deng, Emily
2016-09-30 17:08   ` [PATCH 3/7] drm/amdgpu/virtual_dce: clean up interrupt handling Alex Deucher
     [not found]     ` <1475255328-21598-3-git-send-email-alexander.deucher-5C7GfCeVMHo@public.gmane.org>
2016-10-08  8:23       ` Deng, Emily
2016-10-08  8:23       ` Deng, Emily
2016-09-30 17:08   ` [PATCH 4/7] drm/amdgpu: simplify encoder and connector setup Alex Deucher
     [not found]     ` <1475255328-21598-4-git-send-email-alexander.deucher-5C7GfCeVMHo@public.gmane.org>
2016-10-08  8:22       ` Deng, Emily
2016-09-30 17:08   ` [PATCH 5/7] Revert "drm/amdgpu: Add virtual connector and encoder macros." Alex Deucher
     [not found]     ` <1475255328-21598-5-git-send-email-alexander.deucher-5C7GfCeVMHo@public.gmane.org>
2016-10-08  8:22       ` Deng, Emily
2016-09-30 17:08   ` [PATCH 6/7] drm/amdgpu: rename amdgpu_whether_enable_virtual_display Alex Deucher
     [not found]     ` <1475255328-21598-6-git-send-email-alexander.deucher-5C7GfCeVMHo@public.gmane.org>
2016-10-08  8:23       ` Deng, Emily
2016-09-30 17:08   ` [PATCH 7/7] drm/amd/amdgpu: For virtual display, enable multi crtcs. (v3) Alex Deucher
     [not found]     ` <1475255328-21598-7-git-send-email-alexander.deucher-5C7GfCeVMHo@public.gmane.org>
2016-10-08  8:22       ` Deng, Emily
2016-09-30 17:52   ` Christian König [this message]
2016-10-08  8:24   ` [PATCH 1/7] drm/amdgpu/virtual_dce: drop pageflip_irq funcs Deng, Emily

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ddd075b6-f30c-2703-4d85-2bd9eb5af824@vodafone.de \
    --to=deathsimple-antagkrnahcb1svskn2v4q@public.gmane.org \
    --cc=alexander.deucher-5C7GfCeVMHo@public.gmane.org \
    --cc=alexdeucher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.