[PATCH] drm/amdgpu/virtual_dce: Remove the rmmod error message

Alex Deucher alexdeucher at gmail.com
Mon Jul 24 14:41:17 UTC 2017


On Mon, Jul 24, 2017 at 5:19 AM, Emily Deng <Emily.Deng at amd.com> wrote:
> Remove the error message "[drm:amdgpu_irq_disable_all
> [amdgpu]] *ERROR* error disabling interrupt (-22)".
>
> For virtual dce, it only use AMDGPU_CRTC_IRQ_VBLANK1 -
> AMDGPU_CRTC_IRQ_VBLANK6, and don't use AMDGPU_CRTC_IRQ_VLINE1
> - AMDGPU_CRTC_IRQ_VLINE6. And when rmmod amdgpu, it will disable
> all interrupts, it will return error when the type of crtc irq
> interrupt is AMDGPU_CRTC_IRQ_VLINE1 - AMDGPU_CRTC_IRQ_VLINE6.
>
> BUG: SWDEV-121607
>
> Signed-off-by: Emily Deng <Emily.Deng at amd.com>

Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  drivers/gpu/drm/amd/amdgpu/dce_virtual.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/dce_virtual.c b/drivers/gpu/drm/amd/amdgpu/dce_virtual.c
> index 698df2bc..6487e40 100644
> --- a/drivers/gpu/drm/amd/amdgpu/dce_virtual.c
> +++ b/drivers/gpu/drm/amd/amdgpu/dce_virtual.c
> @@ -788,7 +788,7 @@ static int dce_virtual_set_crtc_irq_state(struct amdgpu_device *adev,
>
>  static void dce_virtual_set_irq_funcs(struct amdgpu_device *adev)
>  {
> -       adev->crtc_irq.num_types = AMDGPU_CRTC_IRQ_LAST;
> +       adev->crtc_irq.num_types = AMDGPU_CRTC_IRQ_VBLANK6 + 1;
>         adev->crtc_irq.funcs = &dce_virtual_crtc_irq_funcs;
>  }
>
> --
> 1.9.1
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


More information about the amd-gfx mailing list