drm/amdgpu: Update mes_v11_api_def.h
authorGraham Sider <Graham.Sider@amd.com>
Mon, 15 Aug 2022 17:28:19 +0000 (13:28 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 30 Aug 2022 20:56:21 +0000 (16:56 -0400)
New GFX11 MES FW adds the trap_en bit. For now hardcode to 1 (traps
enabled).

Signed-off-by: Graham Sider <Graham.Sider@amd.com>
Acked-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/mes_v11_0.c
drivers/gpu/drm/amd/include/mes_v11_api_def.h

index 120ea29..cc3fdbb 100644 (file)
@@ -183,6 +183,7 @@ static int mes_v11_0_add_hw_queue(struct amdgpu_mes *mes,
        mes_add_queue_pkt.trap_handler_addr = input->tba_addr;
        mes_add_queue_pkt.tma_addr = input->tma_addr;
        mes_add_queue_pkt.is_kfd_process = input->is_kfd_process;
+       mes_add_queue_pkt.trap_en = 1;
 
        return mes_v11_0_submit_pkt_and_poll_completion(mes,
                        &mes_add_queue_pkt, sizeof(mes_add_queue_pkt),
index 80dab11..50bfa51 100644 (file)
@@ -268,7 +268,8 @@ union MESAPI__ADD_QUEUE {
                        uint32_t is_tmz_queue           : 1;
                        uint32_t map_kiq_utility_queue  : 1;
                        uint32_t is_kfd_process         : 1;
-                       uint32_t reserved               : 22;
+                       uint32_t trap_en                : 1;
+                       uint32_t reserved               : 21;
                };
                struct MES_API_STATUS           api_status;
                uint64_t                        tma_addr;