drm/amdgpu: Enable BAD_OPCODE intr for gfx8
authorHarish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Thu, 22 Jun 2017 20:40:28 +0000 (16:40 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Sep 2018 02:09:14 +0000 (21:09 -0500)
This enables KFD_EVENT_TYPE_HW_EXCEPTION notifications to user mode in
response to bad opcodes in a CP queue.

Signed-off-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c

index ea7c18ce7754720bd97cf1ad3e6ba9f00a2e6279..f58a8a33c958b4f0362f0ace5f634496491a1e5c 100644 (file)
@@ -282,7 +282,8 @@ static int kgd_init_interrupts(struct kgd_dev *kgd, uint32_t pipe_id)
 
        lock_srbm(kgd, mec, pipe, 0, 0);
 
-       WREG32(mmCPC_INT_CNTL, CP_INT_CNTL_RING0__TIME_STAMP_INT_ENABLE_MASK);
+       WREG32(mmCPC_INT_CNTL, CP_INT_CNTL_RING0__TIME_STAMP_INT_ENABLE_MASK |
+                       CP_INT_CNTL_RING0__OPCODE_ERROR_INT_ENABLE_MASK);
 
        unlock_srbm(kgd);