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.
Showing the changes to include/uapi (2 of 4 files). Show all
Unified · Split
| @@ -46,9 +46,10 @@ · 45 unmodified lines | ||
| 46 | 46 | * - 1.18 - Rename pad in set_memory_policy_args to misc_process_flag |
| 47 | 47 | * - 1.19 - Add a new ioctl to craete secondary kfd processes |
| 48 | 48 | * - 1.20 - Trap handler support for expert scheduling mode available |
| 49 | + * - 1.21 - Debugger support to subscribe to LDS out-of-address exceptions | |
| 49 | 50 | */ |
| 50 | 51 | #define KFD_IOCTL_MAJOR_VERSION 1 |
| 51 | −#define KFD_IOCTL_MINOR_VERSION 20 | |
| 52 | +#define KFD_IOCTL_MINOR_VERSION 21 | |
| 52 | 53 | |
| 53 | 54 | struct kfd_ioctl_get_version_args { |
| 54 | 55 | __u32 major_version; /* from KFD */ |
| @@ -947,6 +948,7 @@ enum kfd_dbg_trap_address_watch_mode { · 892 unmodified lines | ||
| 947 | 948 | enum kfd_dbg_trap_flags { |
| 948 | 949 | KFD_DBG_TRAP_FLAG_SINGLE_MEM_OP = 1, |
| 949 | 950 | KFD_DBG_TRAP_FLAG_SINGLE_ALU_OP = 2, |
| 951 | + KFD_DBG_TRAP_FLAG_LDS_OUT_OF_ADDR_RANGE = 4 | |
| 950 | 952 | }; |
| 951 | 953 | |
| 952 | 954 | /* Trap exceptions */ |
| @@ -64,7 +64,8 @@ · 63 unmodified lines | ||
| 64 | 64 | #define HSA_CAP_RESERVED 0x000f8000 |
| 65 | 65 | |
| 66 | 66 | #define HSA_CAP2_PER_SDMA_QUEUE_RESET_SUPPORTED 0x00000001 |
| 67 | −#define HSA_CAP2_RESERVED 0xfffffffe | |
| 67 | +#define HSA_CAP2_TRAP_DEBUG_LDS_OUT_OF_ADDR_RANGE_SUPPORTED 0x00000002 | |
| 68 | +#define HSA_CAP2_RESERVED 0xfffffffc | |
| 68 | 69 | |
| 69 | 70 | /* debug_prop bits in node properties */ |
| 70 | 71 | #define HSA_DBG_WATCH_ADDR_MASK_LO_BIT_MASK 0x0000000f |