Skip to contentSkip to conversation

drm/amdkfd: Bump KFD API version

PATCH In review Felix Kuehling 3 participants 4 messages Mar 9, 2021 – Mar 11, 2021 AMD KFD

lore
Share & tools
lore

Felix Kuehling

author maintainer
#0 lore raw

PATCH 1/1 drm/amdkfd: Bump KFD API version

Indicate the availability reliable SRAM EDC state in the new bit in the device properties.

---
 include/uapi/linux/kfd_ioctl.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
include/uapi/linux/kfd_ioctl.h +2 -1
index 18449f746097..bf5e7d7846dd 100644
@@ -29,9 +29,10 @@
 /*
  * - 1.1 - initial version
  * - 1.3 - Add SMI events support
+ * - 1.4 - Indicate new SRAM EDC bit in device properties
  */
 #define KFD_IOCTL_MAJOR_VERSION 1
-#define KFD_IOCTL_MINOR_VERSION 3
+#define KFD_IOCTL_MINOR_VERSION 4
 
 struct kfd_ioctl_get_version_args {
 	__u32 major_version;	/* from KFD */
Signature · 6 lines
2.30.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Reviewed-by on v1 1/1
#1 lore raw

[AMD Public Use]

Quoted 34 lines

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Felix Kuehling
Sent: Tuesday, March 9, 2021 3:07 PM
To: [email protected]
Cc: Keely, Sean <[email protected]>
Subject: [PATCH 1/1] drm/amdkfd: Bump KFD API version

Indicate the availability reliable SRAM EDC state in the new bit in the device properties.

---
 include/uapi/linux/kfd_ioctl.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
include/uapi/linux/kfd_ioctl.h +2 -2
index 18449f746097..bf5e7d7846dd 100644
@@ -29,9 +29,10 @@
 /*
  * - 1.1 - initial version
  * - 1.3 - Add SMI events support
+ * - 1.4 - Indicate new SRAM EDC bit in device properties
  */
 #define KFD_IOCTL_MAJOR_VERSION 1
-#define KFD_IOCTL_MINOR_VERSION 3
+#define KFD_IOCTL_MINOR_VERSION 4
 
 struct kfd_ioctl_get_version_args {
 	__u32 major_version;	/* from KFD */
--

2.30.0

Quoted 10 lines

_______________________________________________
amd-gfx mailing list
[email protected]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.or
g%2Fmailman%2Flistinfo%2Famd- gfx&amp;data=04%7C01%7Ckent.russell%40amd.com%7C8bb8eefe2ce04a31f74a08d8e336f ada%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637509172574069509%7CUnk nown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXV CI6Mn0%3D%7C1000&amp;sdata=DmZmiISmcNY7rEvli49s5d6JFIvanYqCLFmeM1azFUk%3D &amp;reserved=0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

#2 lore raw
In reply to Felix Kuehling

[AMD Official Use Only - Internal Distribution Only]

If you have a link to the userspace patches that use this, it would be good to include in the patch description.

Alex

________________________________
From: amd-gfx <[email protected]> on behalf of Felix Kuehling <[email protected]>
Sent: Tuesday, March 9, 2021 3:06 PM
To: [email protected] <[email protected]>
Cc: Keely, Sean <[email protected]>
Subject: [PATCH 1/1] drm/amdkfd: Bump KFD API version

Indicate the availability reliable SRAM EDC state in the new bit in the device properties.

---
 include/uapi/linux/kfd_ioctl.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
include/uapi/linux/kfd_ioctl.h +2 -1
index 18449f746097..bf5e7d7846dd 100644
@@ -29,9 +29,10 @@
 /*
  * - 1.1 - initial version
  * - 1.3 - Add SMI events support
+ * - 1.4 - Indicate new SRAM EDC bit in device properties
  */
 #define KFD_IOCTL_MAJOR_VERSION 1
-#define KFD_IOCTL_MINOR_VERSION 3
+#define KFD_IOCTL_MINOR_VERSION 4
 
 struct kfd_ioctl_get_version_args {
         __u32 major_version;    /* from KFD */

--
2.30.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&amp;data=04%7C01%7Calexander.deucher%40amd.com%7C08c1668cc28a4b5400ec08d8e336f9e7%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637509172551256043%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=WGCf9mTBpRHKQmLrDIr25Ua78aDEhn0OVxhGBRSgwAk%3D&amp;reserved=0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

author maintainer
#3 lore raw

The Thunk change that uses the updated capability bit is available here: https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface/commit/7cdd63475c36bb9f49bb960f90f9a8cdb7e80a21

ROCr will check the KFD API version in order to know whether the SRAM ECC capability reported by the Thunk is reliable.

Regards,
  Felix

Quoted 37 lines · Alexander

[AMD Official Use Only - Internal Distribution Only]

If you have a link to the userspace patches that use this, it would be good to include in the patch description.

Alex

------------------------------------------------------------------------
*From:* amd-gfx <[email protected]> on behalf of Felix Kuehling <[email protected]> *Sent:* Tuesday, March 9, 2021 3:06 PM
*To:* [email protected] <[email protected]>
*Cc:* Keely, Sean <[email protected]>
*Subject:* [PATCH 1/1] drm/amdkfd: Bump KFD API version
Indicate the availability reliable SRAM EDC state in the new bit
in the device properties.

---
 include/uapi/linux/kfd_ioctl.h | 3 ++-

 1 file changed, 2 insertions(+), 1 deletion(-)
include/uapi/linux/kfd_ioctl.h +2 -1
index 18449f746097..bf5e7d7846dd 100644
@@ -29,9 +29,10 @@
  /*
   * - 1.1 - initial version
   * - 1.3 - Add SMI events support
+ * - 1.4 - Indicate new SRAM EDC bit in device properties
   */
  #define KFD_IOCTL_MAJOR_VERSION 1
-#define KFD_IOCTL_MINOR_VERSION 3
+#define KFD_IOCTL_MINOR_VERSION 4
 
  struct kfd_ioctl_get_version_args {
Quoted 8 lines

         __u32 major_version;    /* from KFD */

Signature · 6 lines
2.30.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx