All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/amdkfd: bump KFD version for unified ctx save/restore memory
@ 2022-07-11 18:41 Eric Huang
  2022-07-11 18:41 ` [PATCH 2/3] libhsakmt: add new flag for svm Eric Huang
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Eric Huang @ 2022-07-11 18:41 UTC (permalink / raw)
  To: amd-gfx; +Cc: Eric Huang, felix.kuehling

To expose unified memory for ctx save/resotre area feature
availablity to libhsakmt.

Signed-off-by: Eric Huang <jinhuieric.huang@amd.com>
---
 include/uapi/linux/kfd_ioctl.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/uapi/linux/kfd_ioctl.h b/include/uapi/linux/kfd_ioctl.h
index 7a423855a86e..afd8ff29c74f 100644
--- a/include/uapi/linux/kfd_ioctl.h
+++ b/include/uapi/linux/kfd_ioctl.h
@@ -36,9 +36,10 @@
  * - 1.8 - CRIU - Support for SDMA transfers with GTT BOs
  * - 1.9 - Add available memory ioctl
  * - 1.10 - Add SMI profiler event log
+ * - 1.11 - Add unified memory for ctx save/restore area
  */
 #define KFD_IOCTL_MAJOR_VERSION 1
-#define KFD_IOCTL_MINOR_VERSION 10
+#define KFD_IOCTL_MINOR_VERSION 11
 
 struct kfd_ioctl_get_version_args {
 	__u32 major_version;	/* from KFD */
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 2/3] libhsakmt: add new flag for svm
  2022-07-11 18:41 [PATCH] drm/amdkfd: bump KFD version for unified ctx save/restore memory Eric Huang
@ 2022-07-11 18:41 ` Eric Huang
  2022-07-11 18:41 ` [PATCH 3/3] libhsakmt: allocate unified memory for ctx save restore area Eric Huang
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 8+ messages in thread
From: Eric Huang @ 2022-07-11 18:41 UTC (permalink / raw)
  To: amd-gfx; +Cc: Eric Huang, felix.kuehling

It is to add new option for always keeping gpu mapping
and bump KFD version for the feature of unified save
restore memory.

Signed-off-by: Eric Huang <jinhuieric.huang@amd.com>
Change-Id: Iebee35e6de4d52fa29f82dd19f6bbf5640249492
---
 include/linux/kfd_ioctl.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/include/linux/kfd_ioctl.h b/include/linux/kfd_ioctl.h
index ba8de4b..4898451 100644
--- a/include/linux/kfd_ioctl.h
+++ b/include/linux/kfd_ioctl.h
@@ -35,9 +35,11 @@
  * - 1.7 - Checkpoint Restore (CRIU) API
  * - 1.8 - CRIU - Support for SDMA transfers with GTT BOs
  * - 1.9 - Add available_memory ioctl
+ * - 1.10 - Add SMI profiler event log
+ * - 1.11 - Add unified memory for ctx save/restore area
  */
 #define KFD_IOCTL_MAJOR_VERSION 1
-#define KFD_IOCTL_MINOR_VERSION 9
+#define KFD_IOCTL_MINOR_VERSION 11
 
 /*
  * Debug revision change log
@@ -1080,6 +1082,8 @@ struct kfd_ioctl_cross_memory_copy_args {
 #define KFD_IOCTL_SVM_FLAG_GPU_EXEC    0x00000010
 /* GPUs mostly read, may allow similar optimizations as RO, but writes fault */
 #define KFD_IOCTL_SVM_FLAG_GPU_READ_MOSTLY     0x00000020
+/* Keep GPU memory mapping always valid as if XNACK is disable */
+#define KFD_IOCTL_SVM_FLAG_GPU_ALWAYS_MAPPED   0x00000040
 
 /**
  * kfd_ioctl_svm_op - SVM ioctl operations
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 3/3] libhsakmt: allocate unified memory for ctx save restore area
  2022-07-11 18:41 [PATCH] drm/amdkfd: bump KFD version for unified ctx save/restore memory Eric Huang
  2022-07-11 18:41 ` [PATCH 2/3] libhsakmt: add new flag for svm Eric Huang
@ 2022-07-11 18:41 ` Eric Huang
  2022-07-11 18:50 ` [PATCH] drm/amdkfd: bump KFD version for unified ctx save/restore memory Felix Kuehling
  2022-07-12 13:57 ` Deucher, Alexander
  3 siblings, 0 replies; 8+ messages in thread
From: Eric Huang @ 2022-07-11 18:41 UTC (permalink / raw)
  To: amd-gfx; +Cc: Eric Huang, felix.kuehling

To improve performance on queue preemption, allocate ctx s/r
 area in VRAM instead of system memory, and migrate it back
 to system memory when VRAM is full.

Signed-off-by: Eric Huang <jinhuieric.huang@amd.com>
Change-Id: If775782027188dbe84b6868260e429373675434c
---
 include/hsakmttypes.h |   1 +
 src/queues.c          | 109 ++++++++++++++++++++++++++++++++++++------
 2 files changed, 95 insertions(+), 15 deletions(-)

diff --git a/include/hsakmttypes.h b/include/hsakmttypes.h
index 690e001..65f23de 100644
--- a/include/hsakmttypes.h
+++ b/include/hsakmttypes.h
@@ -1331,6 +1331,7 @@ typedef enum _HSA_SVM_FLAGS {
 	HSA_SVM_FLAG_GPU_RO      = 0x00000008, // GPUs only read, allows replication
 	HSA_SVM_FLAG_GPU_EXEC    = 0x00000010, // Allow execution on GPU
 	HSA_SVM_FLAG_GPU_READ_MOSTLY = 0x00000020, // GPUs mostly read, may allow similar optimizations as RO, but writes fault
+	HSA_SVM_FLAG_GPU_ALWAYS_MAPPED = 0x00000040, // Keep GPU memory mapping always valid as if XNACK is disable
 } HSA_SVM_FLAGS;
 
 typedef enum _HSA_SVM_ATTR_TYPE {
diff --git a/src/queues.c b/src/queues.c
index d38ea0c..5702c95 100644
--- a/src/queues.c
+++ b/src/queues.c
@@ -68,6 +68,7 @@ struct queue {
 	uint32_t eop_buffer_size;
 	uint32_t gfxv;
 	bool use_ats;
+	bool unified_ctx_save_restore;
 	/* This queue structure is allocated from GPU with page aligned size
 	 * but only small bytes are used. We use the extra space in the end for
 	 * cu_mask bits array.
@@ -384,13 +385,49 @@ static void free_exec_aligned_memory(void *addr, uint32_t size, uint32_t align,
 		munmap(addr, size);
 }
 
+static HSAKMT_STATUS register_svm_range(void *mem, uint32_t size,
+				uint32_t gpuNode, uint32_t prefetchNode,
+				uint32_t preferredNode, bool alwaysMapped)
+{
+	HSA_SVM_ATTRIBUTE *attrs;
+	HSAuint64 s_attr;
+	HSAuint32 nattr;
+	HSAuint32 flags;
+
+	flags = HSA_SVM_FLAG_HOST_ACCESS;
+
+	if (alwaysMapped) {
+		CHECK_KFD_MINOR_VERSION(11);
+		flags |= HSA_SVM_FLAG_GPU_ALWAYS_MAPPED;
+	}
+
+	nattr = 5;
+	s_attr = sizeof(*attrs) * nattr;
+	attrs = (HSA_SVM_ATTRIBUTE *)alloca(s_attr);
+
+	attrs[0].type = HSA_SVM_ATTR_PREFETCH_LOC;
+	attrs[0].value = prefetchNode;
+	attrs[1].type = HSA_SVM_ATTR_PREFERRED_LOC;
+	attrs[1].value = preferredNode;
+	attrs[2].type = HSA_SVM_ATTR_CLR_FLAGS;
+	attrs[2].value = ~flags;
+	attrs[3].type = HSA_SVM_ATTR_SET_FLAGS;
+	attrs[3].value = flags;
+	attrs[4].type = HSA_SVM_ATTR_ACCESS;
+	attrs[4].value = gpuNode;
+
+	return hsaKmtSVMSetAttr(mem, size, nattr, attrs);
+}
+
 static void free_queue(struct queue *q)
 {
 	if (q->eop_buffer)
 		free_exec_aligned_memory(q->eop_buffer,
 					 q->eop_buffer_size,
 					 PAGE_SIZE, q->use_ats);
-	if (q->ctx_save_restore)
+	if (q->unified_ctx_save_restore)
+		free(q->ctx_save_restore);
+	else if (q->ctx_save_restore)
 		free_exec_aligned_memory(q->ctx_save_restore,
 					 q->ctx_save_restore_size,
 					 PAGE_SIZE, q->use_ats);
@@ -398,6 +435,20 @@ static void free_queue(struct queue *q)
 	free_exec_aligned_memory((void *)q, sizeof(*q), PAGE_SIZE, q->use_ats);
 }
 
+static inline void fill_cwsr_header(struct queue *q, void *addr,
+		HsaEvent *Event, volatile HSAint64 *ErrPayload)
+{
+	HsaUserContextSaveAreaHeader *header =
+			(HsaUserContextSaveAreaHeader *)addr;
+
+	header->ErrorEventId = 0;
+	if (Event)
+		header->ErrorEventId = Event->EventId;
+	header->ErrorReason = ErrPayload;
+	header->DebugOffset = q->ctx_save_restore_size;
+	header->DebugSize = q->debug_memory_size;
+}
+
 static int handle_concrete_asic(struct queue *q,
 				struct kfd_ioctl_create_queue_args *args,
 				uint32_t NodeId,
@@ -425,7 +476,8 @@ static int handle_concrete_asic(struct queue *q,
 
 	if (ret) {
 		uint32_t total_mem_alloc_size = 0;
-		HsaUserContextSaveAreaHeader *header;
+		HsaNodeProperties node;
+		bool svm_api;
 
 		args->ctx_save_restore_size = q->ctx_save_restore_size;
 		args->ctl_stack_size = q->ctl_stack_size;
@@ -435,22 +487,49 @@ static int handle_concrete_asic(struct queue *q,
 		 */
 		total_mem_alloc_size = q->ctx_save_restore_size +
 				       q->debug_memory_size;
-		q->ctx_save_restore =
-			allocate_exec_aligned_memory(total_mem_alloc_size,
-					 q->use_ats, NodeId, false, false, false);
 
-		if (!q->ctx_save_restore)
-			return HSAKMT_STATUS_NO_MEMORY;
+		if (hsaKmtGetNodeProperties(NodeId, &node))
+			svm_api = false;
+		else
+			svm_api = node.Capability.ui32.SVMAPISupported;
 
-		args->ctx_save_restore_address = (uintptr_t)q->ctx_save_restore;
+		/* Allocate unified memory for context save restore
+		 * area on dGPU.
+		 */
+		if (!q->use_ats && svm_api) {
+			uint32_t size = PAGE_ALIGN_UP(total_mem_alloc_size);
+			void *addr;
+			HSAKMT_STATUS r = HSAKMT_STATUS_ERROR;
+
+			if (posix_memalign(&addr, GPU_HUGE_PAGE_SIZE, size))
+				pr_err("[%s] posix_memalign failed:\n", __func__);
+			else {
+				fill_cwsr_header(q, addr, Event, ErrPayload);
+
+				r = register_svm_range(addr, size,
+						NodeId, NodeId, 0, true);
+
+				if (r == HSAKMT_STATUS_SUCCESS) {
+					q->ctx_save_restore = addr;
+					q->unified_ctx_save_restore = true;
+				} else
+					free(addr);
+			}
+		}
+
+		if (!q->unified_ctx_save_restore) {
+			q->ctx_save_restore = allocate_exec_aligned_memory(
+							total_mem_alloc_size,
+							q->use_ats, NodeId,
+							false, false, false);
 
-		header = (HsaUserContextSaveAreaHeader *)q->ctx_save_restore;
-		header->ErrorEventId = 0;
-		if (Event)
-			header->ErrorEventId = Event->EventId;
-		header->ErrorReason = ErrPayload;
-		header->DebugOffset = q->ctx_save_restore_size;
-		header->DebugSize = q->debug_memory_size;
+			if (!q->ctx_save_restore)
+				return HSAKMT_STATUS_NO_MEMORY;
+
+			fill_cwsr_header(q, q->ctx_save_restore, Event, ErrPayload);
+		}
+
+		args->ctx_save_restore_address = (uintptr_t)q->ctx_save_restore;
 	}
 
 	return HSAKMT_STATUS_SUCCESS;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH] drm/amdkfd: bump KFD version for unified ctx save/restore memory
  2022-07-11 18:41 [PATCH] drm/amdkfd: bump KFD version for unified ctx save/restore memory Eric Huang
  2022-07-11 18:41 ` [PATCH 2/3] libhsakmt: add new flag for svm Eric Huang
  2022-07-11 18:41 ` [PATCH 3/3] libhsakmt: allocate unified memory for ctx save restore area Eric Huang
@ 2022-07-11 18:50 ` Felix Kuehling
  2022-07-12 13:57 ` Deucher, Alexander
  3 siblings, 0 replies; 8+ messages in thread
From: Felix Kuehling @ 2022-07-11 18:50 UTC (permalink / raw)
  To: Eric Huang, amd-gfx

On 2022-07-11 14:41, Eric Huang wrote:
> To expose unified memory for ctx save/resotre area feature
> availablity to libhsakmt.
>
> Signed-off-by: Eric Huang <jinhuieric.huang@amd.com>

Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>


> ---
>   include/uapi/linux/kfd_ioctl.h | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/include/uapi/linux/kfd_ioctl.h b/include/uapi/linux/kfd_ioctl.h
> index 7a423855a86e..afd8ff29c74f 100644
> --- a/include/uapi/linux/kfd_ioctl.h
> +++ b/include/uapi/linux/kfd_ioctl.h
> @@ -36,9 +36,10 @@
>    * - 1.8 - CRIU - Support for SDMA transfers with GTT BOs
>    * - 1.9 - Add available memory ioctl
>    * - 1.10 - Add SMI profiler event log
> + * - 1.11 - Add unified memory for ctx save/restore area
>    */
>   #define KFD_IOCTL_MAJOR_VERSION 1
> -#define KFD_IOCTL_MINOR_VERSION 10
> +#define KFD_IOCTL_MINOR_VERSION 11
>   
>   struct kfd_ioctl_get_version_args {
>   	__u32 major_version;	/* from KFD */

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] drm/amdkfd: bump KFD version for unified ctx save/restore memory
  2022-07-11 18:41 [PATCH] drm/amdkfd: bump KFD version for unified ctx save/restore memory Eric Huang
                   ` (2 preceding siblings ...)
  2022-07-11 18:50 ` [PATCH] drm/amdkfd: bump KFD version for unified ctx save/restore memory Felix Kuehling
@ 2022-07-12 13:57 ` Deucher, Alexander
  2022-07-12 14:30   ` Eric Huang
  2022-07-12 22:57   ` Felix Kuehling
  3 siblings, 2 replies; 8+ messages in thread
From: Deucher, Alexander @ 2022-07-12 13:57 UTC (permalink / raw)
  To: Huang, JinHuiEric, amd-gfx; +Cc: Kuehling, Felix

[-- Attachment #1: Type: text/plain, Size: 1441 bytes --]

[AMD Official Use Only - General]

Can you please include a link to the proposed userspace in the commit message when you commit this?

Alex
________________________________
From: amd-gfx <amd-gfx-bounces@lists.freedesktop.org> on behalf of Eric Huang <jinhuieric.huang@amd.com>
Sent: Monday, July 11, 2022 2:41 PM
To: amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org>
Cc: Huang, JinHuiEric <JinHuiEric.Huang@amd.com>; Kuehling, Felix <Felix.Kuehling@amd.com>
Subject: [PATCH] drm/amdkfd: bump KFD version for unified ctx save/restore memory

To expose unified memory for ctx save/resotre area feature
availablity to libhsakmt.

Signed-off-by: Eric Huang <jinhuieric.huang@amd.com>
---
 include/uapi/linux/kfd_ioctl.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/uapi/linux/kfd_ioctl.h b/include/uapi/linux/kfd_ioctl.h
index 7a423855a86e..afd8ff29c74f 100644
--- a/include/uapi/linux/kfd_ioctl.h
+++ b/include/uapi/linux/kfd_ioctl.h
@@ -36,9 +36,10 @@
  * - 1.8 - CRIU - Support for SDMA transfers with GTT BOs
  * - 1.9 - Add available memory ioctl
  * - 1.10 - Add SMI profiler event log
+ * - 1.11 - Add unified memory for ctx save/restore area
  */
 #define KFD_IOCTL_MAJOR_VERSION 1
-#define KFD_IOCTL_MINOR_VERSION 10
+#define KFD_IOCTL_MINOR_VERSION 11

 struct kfd_ioctl_get_version_args {
         __u32 major_version;    /* from KFD */
--
2.25.1


[-- Attachment #2: Type: text/html, Size: 2809 bytes --]

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH] drm/amdkfd: bump KFD version for unified ctx save/restore memory
  2022-07-12 13:57 ` Deucher, Alexander
@ 2022-07-12 14:30   ` Eric Huang
  2022-07-12 22:57   ` Felix Kuehling
  1 sibling, 0 replies; 8+ messages in thread
From: Eric Huang @ 2022-07-12 14:30 UTC (permalink / raw)
  To: Deucher, Alexander, amd-gfx; +Cc: Kuehling, Felix

[-- Attachment #1: Type: text/plain, Size: 1684 bytes --]

The patch has been pushed. I will do that for future patches.

Thanks,
Eric

On 2022-07-12 09:57, Deucher, Alexander wrote:
>
> [AMD Official Use Only - General]
>
>
> Can you please include a link to the proposed userspace in the commit 
> message when you commit this?
>
> Alex
> ------------------------------------------------------------------------
> *From:* amd-gfx <amd-gfx-bounces@lists.freedesktop.org> on behalf of 
> Eric Huang <jinhuieric.huang@amd.com>
> *Sent:* Monday, July 11, 2022 2:41 PM
> *To:* amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org>
> *Cc:* Huang, JinHuiEric <JinHuiEric.Huang@amd.com>; Kuehling, Felix 
> <Felix.Kuehling@amd.com>
> *Subject:* [PATCH] drm/amdkfd: bump KFD version for unified ctx 
> save/restore memory
> To expose unified memory for ctx save/resotre area feature
> availablity to libhsakmt.
>
> Signed-off-by: Eric Huang <jinhuieric.huang@amd.com>
> ---
>  include/uapi/linux/kfd_ioctl.h | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/include/uapi/linux/kfd_ioctl.h 
> b/include/uapi/linux/kfd_ioctl.h
> index 7a423855a86e..afd8ff29c74f 100644
> --- a/include/uapi/linux/kfd_ioctl.h
> +++ b/include/uapi/linux/kfd_ioctl.h
> @@ -36,9 +36,10 @@
>   * - 1.8 - CRIU - Support for SDMA transfers with GTT BOs
>   * - 1.9 - Add available memory ioctl
>   * - 1.10 - Add SMI profiler event log
> + * - 1.11 - Add unified memory for ctx save/restore area
>   */
>  #define KFD_IOCTL_MAJOR_VERSION 1
> -#define KFD_IOCTL_MINOR_VERSION 10
> +#define KFD_IOCTL_MINOR_VERSION 11
>
>  struct kfd_ioctl_get_version_args {
>          __u32 major_version;    /* from KFD */
> -- 
> 2.25.1
>

[-- Attachment #2: Type: text/html, Size: 4487 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] drm/amdkfd: bump KFD version for unified ctx save/restore memory
  2022-07-12 13:57 ` Deucher, Alexander
  2022-07-12 14:30   ` Eric Huang
@ 2022-07-12 22:57   ` Felix Kuehling
  2022-07-13  1:47     ` Alex Deucher
  1 sibling, 1 reply; 8+ messages in thread
From: Felix Kuehling @ 2022-07-12 22:57 UTC (permalink / raw)
  To: Deucher, Alexander, Huang, JinhuiEric, amd-gfx

Eric sent out the corresponding user mode patches to the mailing list as 
well. It looks a bit weird, because it looks like they're part of the 
same patch series. But patch 2 and 3 are actually user mode patches. The 
interesting one is patch 3.


Do we still need a link to a user mode patch in this case?


Regards,
   Felix


On 2022-07-12 09:57, Deucher, Alexander wrote:
>
> [AMD Official Use Only - General]
>
>
> Can you please include a link to the proposed userspace in the commit 
> message when you commit this?
>
> Alex
> ------------------------------------------------------------------------
> *From:* amd-gfx <amd-gfx-bounces@lists.freedesktop.org> on behalf of 
> Eric Huang <jinhuieric.huang@amd.com>
> *Sent:* Monday, July 11, 2022 2:41 PM
> *To:* amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org>
> *Cc:* Huang, JinHuiEric <JinHuiEric.Huang@amd.com>; Kuehling, Felix 
> <Felix.Kuehling@amd.com>
> *Subject:* [PATCH] drm/amdkfd: bump KFD version for unified ctx 
> save/restore memory
> To expose unified memory for ctx save/resotre area feature
> availablity to libhsakmt.
>
> Signed-off-by: Eric Huang <jinhuieric.huang@amd.com>
> ---
>  include/uapi/linux/kfd_ioctl.h | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/include/uapi/linux/kfd_ioctl.h 
> b/include/uapi/linux/kfd_ioctl.h
> index 7a423855a86e..afd8ff29c74f 100644
> --- a/include/uapi/linux/kfd_ioctl.h
> +++ b/include/uapi/linux/kfd_ioctl.h
> @@ -36,9 +36,10 @@
>   * - 1.8 - CRIU - Support for SDMA transfers with GTT BOs
>   * - 1.9 - Add available memory ioctl
>   * - 1.10 - Add SMI profiler event log
> + * - 1.11 - Add unified memory for ctx save/restore area
>   */
>  #define KFD_IOCTL_MAJOR_VERSION 1
> -#define KFD_IOCTL_MINOR_VERSION 10
> +#define KFD_IOCTL_MINOR_VERSION 11
>
>  struct kfd_ioctl_get_version_args {
>          __u32 major_version;    /* from KFD */
> -- 
> 2.25.1
>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] drm/amdkfd: bump KFD version for unified ctx save/restore memory
  2022-07-12 22:57   ` Felix Kuehling
@ 2022-07-13  1:47     ` Alex Deucher
  0 siblings, 0 replies; 8+ messages in thread
From: Alex Deucher @ 2022-07-13  1:47 UTC (permalink / raw)
  To: Felix Kuehling; +Cc: Deucher, Alexander, Huang, JinhuiEric, amd-gfx

On Tue, Jul 12, 2022 at 6:57 PM Felix Kuehling <felix.kuehling@amd.com> wrote:
>
> Eric sent out the corresponding user mode patches to the mailing list as
> well. It looks a bit weird, because it looks like they're part of the
> same patch series. But patch 2 and 3 are actually user mode patches. The
> interesting one is patch 3.
>
>
> Do we still need a link to a user mode patch in this case?

Yeah, it's hard to include it in the patch when you send it out if
it's part of the patch set.  It's just nice to have it included when
you commit it so that when I send the PR, I don't need to dig around
to find the link to the user of the new UAPI.

Alex

>
>
> Regards,
>    Felix
>
>
> On 2022-07-12 09:57, Deucher, Alexander wrote:
> >
> > [AMD Official Use Only - General]
> >
> >
> > Can you please include a link to the proposed userspace in the commit
> > message when you commit this?
> >
> > Alex
> > ------------------------------------------------------------------------
> > *From:* amd-gfx <amd-gfx-bounces@lists.freedesktop.org> on behalf of
> > Eric Huang <jinhuieric.huang@amd.com>
> > *Sent:* Monday, July 11, 2022 2:41 PM
> > *To:* amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org>
> > *Cc:* Huang, JinHuiEric <JinHuiEric.Huang@amd.com>; Kuehling, Felix
> > <Felix.Kuehling@amd.com>
> > *Subject:* [PATCH] drm/amdkfd: bump KFD version for unified ctx
> > save/restore memory
> > To expose unified memory for ctx save/resotre area feature
> > availablity to libhsakmt.
> >
> > Signed-off-by: Eric Huang <jinhuieric.huang@amd.com>
> > ---
> >  include/uapi/linux/kfd_ioctl.h | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/include/uapi/linux/kfd_ioctl.h
> > b/include/uapi/linux/kfd_ioctl.h
> > index 7a423855a86e..afd8ff29c74f 100644
> > --- a/include/uapi/linux/kfd_ioctl.h
> > +++ b/include/uapi/linux/kfd_ioctl.h
> > @@ -36,9 +36,10 @@
> >   * - 1.8 - CRIU - Support for SDMA transfers with GTT BOs
> >   * - 1.9 - Add available memory ioctl
> >   * - 1.10 - Add SMI profiler event log
> > + * - 1.11 - Add unified memory for ctx save/restore area
> >   */
> >  #define KFD_IOCTL_MAJOR_VERSION 1
> > -#define KFD_IOCTL_MINOR_VERSION 10
> > +#define KFD_IOCTL_MINOR_VERSION 11
> >
> >  struct kfd_ioctl_get_version_args {
> >          __u32 major_version;    /* from KFD */
> > --
> > 2.25.1
> >

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-07-13  1:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-11 18:41 [PATCH] drm/amdkfd: bump KFD version for unified ctx save/restore memory Eric Huang
2022-07-11 18:41 ` [PATCH 2/3] libhsakmt: add new flag for svm Eric Huang
2022-07-11 18:41 ` [PATCH 3/3] libhsakmt: allocate unified memory for ctx save restore area Eric Huang
2022-07-11 18:50 ` [PATCH] drm/amdkfd: bump KFD version for unified ctx save/restore memory Felix Kuehling
2022-07-12 13:57 ` Deucher, Alexander
2022-07-12 14:30   ` Eric Huang
2022-07-12 22:57   ` Felix Kuehling
2022-07-13  1:47     ` Alex Deucher

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.