Skip to contentSkip to conversation

amdkfd: Bump ABI to indicate presence of Trap handler support for expert scheduling

PATCH In review Mario Limonciello 2 participants 2 messages Dec 5, 2025 AMD KFD

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 amdkfd: Bump ABI to indicate presence of Trap handler support for expert scheduling

commit 0f0c8a6983db ("drm/amdkfd: Trap handler support for expert scheduling mode") introduced support for a trap handler when expert scheduling mode. However userspace needs to know whether or not a trap handler support is present.

Bump the KFD IOCTL API so that userspace can key off this to decide.

Fixes 0f0c8a6983db ("drm/amdkfd: Trap handler support for expert scheduling mode")
---
 include/uapi/linux/kfd_ioctl.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
include/uapi/linux/kfd_ioctl.h +2 -1
index 84aa24c02715..4d0c1a53f9d5 100644
@@ -45,9 +45,10 @@
  * - 1.17 - Add SDMA queue creation with target SDMA engine ID
  * - 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
  */
 #define KFD_IOCTL_MAJOR_VERSION 1
-#define KFD_IOCTL_MINOR_VERSION 19
+#define KFD_IOCTL_MINOR_VERSION 20
 
 struct kfd_ioctl_get_version_args {
 	__u32 major_version;	/* from KFD */
Signature · 1 line
2.51.2
Reviewed-by on v1 1/1
#1 lore raw

[AMD Official Use Only - AMD Internal Distribution Only]

Quoted 43 lines

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Mario Limonciello
Sent: Friday, December 5, 2025 9:05 AM
To: [email protected]
Cc: Limonciello, Mario <[email protected]>; Laurenzo, Stella <[email protected]>
Subject: [PATCH] amdkfd: Bump ABI to indicate presence of Trap handler support for expert scheduling

commit 0f0c8a6983db ("drm/amdkfd: Trap handler support for expert scheduling mode") introduced support for a trap handler when expert scheduling mode. However userspace needs to know whether or not a trap handler support is present.

Bump the KFD IOCTL API so that userspace can key off this to decide.

Fixes 0f0c8a6983db ("drm/amdkfd: Trap handler support for expert scheduling

mode")

---
 include/uapi/linux/kfd_ioctl.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
include/uapi/linux/kfd_ioctl.h +2 -2
index 84aa24c02715..4d0c1a53f9d5 100644
@@ -45,9 +45,10 @@
  * - 1.17 - Add SDMA queue creation with target SDMA engine ID
  * - 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
  */
 #define KFD_IOCTL_MAJOR_VERSION 1
-#define KFD_IOCTL_MINOR_VERSION 19
+#define KFD_IOCTL_MINOR_VERSION 20
 
 struct kfd_ioctl_get_version_args {
      __u32 major_version;    /* from KFD */
--

2.51.2