drm/amdgpu: check gfx pipe availability before toggling its interrupts
authorHawking Zhang <Hawking.Zhang@amd.com>
Sat, 21 Nov 2020 13:58:19 +0000 (21:58 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 23 Dec 2020 20:01:11 +0000 (15:01 -0500)
commit462fbeb1fcfcd35e453eeaa80d6d3d26464269fd
tree40519069b9f3439c71ce21ae5de7fe018c996f66
parentd0f2f634f59d8f35e70644daf956bf04d2ff2d0c
drm/amdgpu: check gfx pipe availability before toggling its interrupts

GUI_IDLE interrupts controlled by CP_INT_CNTL_RING0
are only applicable to me0 pipe0.

For ASICs that have gfx pipe removed, don't toggle
those bits.

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Feifei Xu <Feifei.Xu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c