]> Git Repo - linux.git/blobdiff - drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c
Merge tag 'amd-drm-next-6.5-2023-06-09' of https://gitlab.freedesktop.org/agd5f/linux...
[linux.git] / drivers / gpu / drm / amd / amdgpu / amdgpu_mes.c
index 20cc3fffe921a71aefe8f8653255ed6c494dfc71..e9091ebfe230db24072a7abc0dc9ff1effd9267f 100644 (file)
@@ -928,7 +928,8 @@ int amdgpu_mes_set_shader_debugger(struct amdgpu_device *adev,
                                uint64_t process_context_addr,
                                uint32_t spi_gdbg_per_vmid_cntl,
                                const uint32_t *tcp_watch_cntl,
-                               uint32_t flags)
+                               uint32_t flags,
+                               bool trap_en)
 {
        struct mes_misc_op_input op_input = {0};
        int r;
@@ -945,6 +946,10 @@ int amdgpu_mes_set_shader_debugger(struct amdgpu_device *adev,
        memcpy(op_input.set_shader_debugger.tcp_watch_cntl, tcp_watch_cntl,
                        sizeof(op_input.set_shader_debugger.tcp_watch_cntl));
 
+       if (((adev->mes.sched_version & AMDGPU_MES_API_VERSION_MASK) >>
+                       AMDGPU_MES_API_VERSION_SHIFT) >= 14)
+               op_input.set_shader_debugger.trap_en = trap_en;
+
        amdgpu_mes_lock(&adev->mes);
 
        r = adev->mes.funcs->misc_op(&adev->mes, &op_input);
This page took 0.037885 seconds and 4 git commands to generate.