mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-31 10:12:50 -04:00
drm/amdkfd: allow debug subscription to lds violations on gfx 1250
GFX 1250 allows the debugger to subcribe to LDS out-of-range read/write memory violations. Bump IOCTL minor version and flag KFD capabilities for enablement hint. 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>
This commit is contained in:
committed by
Alex Deucher
parent
bf2951e967
commit
e83f63da2a
@@ -46,9 +46,10 @@
|
||||
* - 1.18 - Rename pad in set_memory_policy_args to misc_process_flag
|
||||
* - 1.19 - Add a new ioctl to craete secondary kfd processes
|
||||
* - 1.20 - Trap handler support for expert scheduling mode available
|
||||
* - 1.21 - Debugger support to subscribe to LDS out-of-address exceptions
|
||||
*/
|
||||
#define KFD_IOCTL_MAJOR_VERSION 1
|
||||
#define KFD_IOCTL_MINOR_VERSION 20
|
||||
#define KFD_IOCTL_MINOR_VERSION 21
|
||||
|
||||
struct kfd_ioctl_get_version_args {
|
||||
__u32 major_version; /* from KFD */
|
||||
@@ -947,6 +948,7 @@ enum kfd_dbg_trap_address_watch_mode {
|
||||
enum kfd_dbg_trap_flags {
|
||||
KFD_DBG_TRAP_FLAG_SINGLE_MEM_OP = 1,
|
||||
KFD_DBG_TRAP_FLAG_SINGLE_ALU_OP = 2,
|
||||
KFD_DBG_TRAP_FLAG_LDS_OUT_OF_ADDR_RANGE = 4
|
||||
};
|
||||
|
||||
/* Trap exceptions */
|
||||
|
||||
@@ -64,7 +64,8 @@
|
||||
#define HSA_CAP_RESERVED 0x000f8000
|
||||
|
||||
#define HSA_CAP2_PER_SDMA_QUEUE_RESET_SUPPORTED 0x00000001
|
||||
#define HSA_CAP2_RESERVED 0xfffffffe
|
||||
#define HSA_CAP2_TRAP_DEBUG_LDS_OUT_OF_ADDR_RANGE_SUPPORTED 0x00000002
|
||||
#define HSA_CAP2_RESERVED 0xfffffffc
|
||||
|
||||
/* debug_prop bits in node properties */
|
||||
#define HSA_DBG_WATCH_ADDR_MASK_LO_BIT_MASK 0x0000000f
|
||||
|
||||
Reference in New Issue
Block a user