linux/drivers/gpu/drm/amd/amdkfd
Jonathan Kim 09d49e14ea drm/amdkfd: fix and enable debugging for gfx11
There are a couple of fixes required to enable gfx11 debugging.

First, ADD_QUEUE.trap_en is an inappropriate place to toggle
a per-process register so move it to SET_SHADER_DEBUGGER.trap_en.
When ADD_QUEUE.skip_process_ctx_clear is set, MES will prioritize
the SET_SHADER_DEBUGGER.trap_en setting.

Second, to preserve correct save/restore priviledged wave states
in coordination with the trap enablement setting, resume suspended
waves early in the disable call.

Signed-off-by: Jonathan Kim <jonathan.kim@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2023-06-09 12:48:19 -04:00
..
cik_event_interrupt.c drm/amdkfd: add send exception operation 2023-06-09 12:36:01 -04:00
cik_int.h
cik_regs.h
cwsr_trap_handler_gfx8.asm drm/amdkfd: Add aldebaran trap handler support 2021-03-10 00:02:24 -05:00
cwsr_trap_handler_gfx9.asm drm/amdkfd: Trap handler changes for GC 9.4.3 v2 2023-03-31 11:18:55 -04:00
cwsr_trap_handler_gfx10.asm drm/amdkfd: update GFX11 CWSR trap handler 2022-11-04 16:05:52 -04:00
cwsr_trap_handler.h drm/amdkfd: Trap handler changes for GC 9.4.3 v2 2023-03-31 11:18:55 -04:00
Kconfig drm/amdkfd: Define config HSA_AMD_P2P to support peer-to-peer 2022-06-08 11:40:12 -04:00
kfd_chardev.c drm/amdkfd: potential error pointer dereference in ioctl 2023-06-09 12:43:00 -04:00
kfd_crat.c drm/amd: Check that a system is a NUMA system before looking for SRAT 2023-06-09 12:44:46 -04:00
kfd_crat.h drm/amdkfd: add gpu compute cores io links for gfx9.4.3 2023-06-09 09:44:07 -04:00
kfd_debug.c drm/amdkfd: fix and enable debugging for gfx11 2023-06-09 12:48:19 -04:00
kfd_debug.h drm/amdkfd: add debug device snapshot operation 2023-06-09 12:37:00 -04:00
kfd_debugfs.c drm/amdkfd: Introduce kfd_node struct (v5) 2023-06-09 09:42:27 -04:00
kfd_device_queue_manager_cik.c drm/amdkfd: update SPDX license header 2022-02-14 15:08:40 -05:00
kfd_device_queue_manager_v9.c drm/amdkfd: Introduce kfd_node struct (v5) 2023-06-09 09:42:27 -04:00
kfd_device_queue_manager_v10.c drm/amdkfd: Fix leftover errors and warnings 2022-02-14 15:08:40 -05:00
kfd_device_queue_manager_v11.c drm/amdkfd: Add KFD support for soc21 v3 2022-05-04 10:43:54 -04:00
kfd_device_queue_manager_vi.c drm/amdkfd: update SPDX license header 2022-02-14 15:08:40 -05:00
kfd_device_queue_manager.c drm/amdkfd: fix and enable debugging for gfx11 2023-06-09 12:48:19 -04:00
kfd_device_queue_manager.h drm/amdkfd: add debug queue snapshot operation 2023-06-09 12:36:57 -04:00
kfd_device.c drm/amdkfd: Fix reserved SDMA queues handling 2023-06-09 12:44:56 -04:00
kfd_doorbell.c drm/amdkfd: Introduce kfd_node struct (v5) 2023-06-09 09:42:27 -04:00
kfd_events.c drm/amdkfd: fix vmfault signalling with additional data. 2023-06-09 12:44:44 -04:00
kfd_events.h drm/amdkfd: Asynchronously free events 2022-04-12 14:20:13 -04:00
kfd_flat_memory.c drm/amdkfd: Introduce kfd_node struct (v5) 2023-06-09 09:42:27 -04:00
kfd_int_process_v9.c drm/amdkfd: update process interrupt handling for debug events 2023-06-09 12:36:17 -04:00
kfd_int_process_v10.c drm/amdkfd: update process interrupt handling for debug events 2023-06-09 12:36:17 -04:00
kfd_int_process_v11.c drm/amdkfd: update process interrupt handling for debug events 2023-06-09 12:36:17 -04:00
kfd_interrupt.c drm/amdkfd: Introduce kfd_node struct (v5) 2023-06-09 09:42:27 -04:00
kfd_iommu.c drm/amdkfd: Add spatial partitioning support in KFD 2023-06-09 09:42:33 -04:00
kfd_iommu.h drm/amdkfd: update SPDX license header 2022-02-14 15:08:40 -05:00
kfd_kernel_queue.c drm/amdkfd: Introduce kfd_node struct (v5) 2023-06-09 09:42:27 -04:00
kfd_kernel_queue.h drm/amdkfd: Introduce kfd_node struct (v5) 2023-06-09 09:42:27 -04:00
kfd_migrate.c drm/amdgpu: Fix up missing parameters kdoc in svm_migrate_vma_to_ram 2023-06-09 12:32:48 -04:00
kfd_migrate.h drm/amdkfd: Refactor migrate init to support partition switch 2023-06-09 10:36:58 -04:00
kfd_module.c drm/amdkfd: Fixed kfd_process cleanup on module exit. 2023-03-15 18:45:26 -04:00
kfd_mqd_manager_cik.c drm/amdkfd: apply trap workaround for gfx11 2023-06-09 12:35:52 -04:00
kfd_mqd_manager_v9.c drm/amdkfd: add debug suspend and resume process queues operation 2023-06-09 12:36:43 -04:00
kfd_mqd_manager_v10.c drm/amdkfd: add debug suspend and resume process queues operation 2023-06-09 12:36:43 -04:00
kfd_mqd_manager_v11.c drm/amdkfd: add debug suspend and resume process queues operation 2023-06-09 12:36:43 -04:00
kfd_mqd_manager_vi.c drm/amdkfd: apply trap workaround for gfx11 2023-06-09 12:35:52 -04:00
kfd_mqd_manager.c drm/amdkfd: Use xcc mask for identifying xcc 2023-06-09 09:57:20 -04:00
kfd_mqd_manager.h drm/amdkfd: Update context save handling for multi XCC setup (v2) 2023-06-09 09:42:50 -04:00
kfd_packet_manager_v9.c drm/amdgpu: prepare map process for multi-process debug devices 2023-06-09 12:35:39 -04:00
kfd_packet_manager_vi.c drm/amdgpu: add configurable grace period for unmap queues 2023-06-09 12:35:31 -04:00
kfd_packet_manager.c drm/amdgpu: add configurable grace period for unmap queues 2023-06-09 12:35:31 -04:00
kfd_pasid.c drm/amdkfd: update SPDX license header 2022-02-14 15:08:40 -05:00
kfd_pm4_headers_ai.h drm/amdkfd: prepare map process for single process debug devices 2023-06-09 12:35:36 -04:00
kfd_pm4_headers_aldebaran.h drm/amdkfd: update SPDX license header 2022-02-14 15:08:40 -05:00
kfd_pm4_headers_vi.h drm/amdkfd: Fix leftover errors and warnings 2022-02-14 15:08:40 -05:00
kfd_pm4_headers.h drm/amdkfd: update SPDX license header 2022-02-14 15:08:40 -05:00
kfd_pm4_opcodes.h drm/amdkfd: update SPDX license header 2022-02-14 15:08:40 -05:00
kfd_priv.h drm/amdkfd: Fix reserved SDMA queues handling 2023-06-09 12:44:56 -04:00
kfd_process_queue_manager.c drm/amdkfd: add debug queue snapshot operation 2023-06-09 12:36:57 -04:00
kfd_process.c drm/amdkfd: update process interrupt handling for debug events 2023-06-09 12:36:17 -04:00
kfd_queue.c drm/amdkfd: update SPDX license header 2022-02-14 15:08:40 -05:00
kfd_smi_events.c drm/amdkfd: Update SMI events for GFX9.4.3 2023-06-09 09:46:31 -04:00
kfd_smi_events.h drm/amdkfd: Update SMI events for GFX9.4.3 2023-06-09 09:46:31 -04:00
kfd_svm.c amd/amdkfd: drop unused KFD_IOCTL_SVM_FLAG_UNCACHED flag 2023-06-09 12:34:36 -04:00
kfd_svm.h drm/amdkfd: flag added to handle errors from svm validate and map 2023-06-09 12:32:25 -04:00
kfd_topology.c drm/amdkfd: fix and enable debugging for gfx11 2023-06-09 12:48:19 -04:00
kfd_topology.h drm/amdkfd: display debug capabilities 2023-06-09 12:34:45 -04:00
Makefile drm/amdkfd: update process interrupt handling for debug events 2023-06-09 12:36:17 -04:00
soc15_int.h drm/amdkfd: Add KFD support for soc21 v3 2022-05-04 10:43:54 -04:00