Commit ca541f33 authored by Rex Zhu's avatar Rex Zhu Committed by Alex Deucher

drm/amdgpu: delete redundant kiq irq funcs type check in gfx8.

Signed-off-by: default avatarRex Zhu <Rex.Zhu@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 2d0806ca
...@@ -6838,8 +6838,6 @@ static int gfx_v8_0_kiq_set_interrupt_state(struct amdgpu_device *adev, ...@@ -6838,8 +6838,6 @@ static int gfx_v8_0_kiq_set_interrupt_state(struct amdgpu_device *adev,
{ {
struct amdgpu_ring *ring = &(adev->gfx.kiq.ring); struct amdgpu_ring *ring = &(adev->gfx.kiq.ring);
BUG_ON(ring->funcs->type != AMDGPU_RING_TYPE_KIQ);
switch (type) { switch (type) {
case AMDGPU_CP_KIQ_IRQ_DRIVER0: case AMDGPU_CP_KIQ_IRQ_DRIVER0:
WREG32_FIELD(CPC_INT_CNTL, GENERIC2_INT_ENABLE, WREG32_FIELD(CPC_INT_CNTL, GENERIC2_INT_ENABLE,
...@@ -6869,8 +6867,6 @@ static int gfx_v8_0_kiq_irq(struct amdgpu_device *adev, ...@@ -6869,8 +6867,6 @@ static int gfx_v8_0_kiq_irq(struct amdgpu_device *adev,
u8 me_id, pipe_id, queue_id; u8 me_id, pipe_id, queue_id;
struct amdgpu_ring *ring = &(adev->gfx.kiq.ring); struct amdgpu_ring *ring = &(adev->gfx.kiq.ring);
BUG_ON(ring->funcs->type != AMDGPU_RING_TYPE_KIQ);
me_id = (entry->ring_id & 0x0c) >> 2; me_id = (entry->ring_id & 0x0c) >> 2;
pipe_id = (entry->ring_id & 0x03) >> 0; pipe_id = (entry->ring_id & 0x03) >> 0;
queue_id = (entry->ring_id & 0x70) >> 4; queue_id = (entry->ring_id & 0x70) >> 4;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment