drm/amdgpu/gfx12: Enable bad opcode interrupt
authorJesse Zhang <jesse.zhang@amd.com>
Fri, 12 Jul 2024 22:42:53 +0000 (18:42 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 23 Jul 2024 21:45:46 +0000 (17:45 -0400)
commit5ebca62eb8ebff67e2c8c4903bdb4f3c07922114
tree46fbe51fbb48636ff4f6ac240eda5a199882e32b
parentbc6c2a6f6495668e3cf0acbecf820b93ca03aef7
drm/amdgpu/gfx12: Enable bad opcode interrupt

For the bad opcode case, it will cause CP/ME hang.
The firmware will prevent the ME side from hanging by raising a bad opcode interrupt.
And the driver needs to perform a vmid reset when receiving the interrupt.

v2: update irq naming (drop priv) (Alex)

Acked-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Jesse Zhang <jesse.zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c