[PATCH v4 09/24] drm/amdkfd: add interface to trigger pc sampling trap
James Zhu
James.Zhu at amd.com
Tue Feb 6 15:59:05 UTC 2024
Add interface to trigger pc sampling trap.
Signed-off-by: James Zhu <James.Zhu at amd.com>
---
drivers/gpu/drm/amd/include/kgd_kfd_interface.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/gpu/drm/amd/include/kgd_kfd_interface.h b/drivers/gpu/drm/amd/include/kgd_kfd_interface.h
index 6d094cf3587d..12f9021d563e 100644
--- a/drivers/gpu/drm/amd/include/kgd_kfd_interface.h
+++ b/drivers/gpu/drm/amd/include/kgd_kfd_interface.h
@@ -31,6 +31,8 @@
#include <linux/types.h>
#include <linux/bitmap.h>
#include <linux/dma-fence.h>
+#include <uapi/linux/kfd_ioctl.h>
+
#include "amdgpu_irq.h"
#include "amdgpu_gfx.h"
@@ -318,6 +320,11 @@ struct kfd2kgd_calls {
void (*program_trap_handler_settings)(struct amdgpu_device *adev,
uint32_t vmid, uint64_t tba_addr, uint64_t tma_addr,
uint32_t inst);
+ uint32_t (*trigger_pc_sample_trap)(struct amdgpu_device *adev,
+ uint32_t vmid,
+ uint32_t *target_simd,
+ uint32_t *target_wave_slot,
+ enum kfd_ioctl_pc_sample_method method);
};
#endif /* KGD_KFD_INTERFACE_H_INCLUDED */
--
2.25.1
More information about the amd-gfx
mailing list