[PATCH 2/3] drm/amdgpu: delete reduant kiq irq funcs type check in gfx8.
Deucher, Alexander
Alexander.Deucher at amd.com
Tue Apr 18 13:48:11 UTC 2017
> -----Original Message-----
> From: amd-gfx [mailto:amd-gfx-bounces at lists.freedesktop.org] On Behalf
> Of Rex Zhu
> Sent: Tuesday, April 18, 2017 3:02 AM
> To: amd-gfx at lists.freedesktop.org
> Cc: Zhu, Rex
> Subject: [PATCH 2/3] drm/amdgpu: delete reduant kiq irq funcs type check in
> gfx8.
>
> Change-Id: Iab362ad196a3d515e5ac8d9a7c925b0752c96830
> Signed-off-by: Rex Zhu <Rex.Zhu at amd.com>
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 4 ----
> 1 file changed, 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
> b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
> index 5348710..563944a 100644
> --- a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
> @@ -6827,8 +6827,6 @@ static int gfx_v8_0_kiq_set_interrupt_state(struct
> amdgpu_device *adev,
> {
> struct amdgpu_ring *ring = &(adev->gfx.kiq.ring);
>
> - BUG_ON(ring->funcs->type != AMDGPU_RING_TYPE_KIQ);
> -
> switch (type) {
> case AMDGPU_CP_KIQ_IRQ_DRIVER0:
> WREG32_FIELD(CPC_INT_CNTL, GENERIC2_INT_ENABLE,
> @@ -6858,8 +6856,6 @@ static int gfx_v8_0_kiq_irq(struct amdgpu_device
> *adev,
> u8 me_id, pipe_id, queue_id;
> struct amdgpu_ring *ring = &(adev->gfx.kiq.ring);
>
> - BUG_ON(ring->funcs->type != AMDGPU_RING_TYPE_KIQ);
> -
> me_id = (entry->ring_id & 0x0c) >> 2;
> pipe_id = (entry->ring_id & 0x03) >> 0;
> queue_id = (entry->ring_id & 0x70) >> 4;
> --
> 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