All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/amdkfd: move CoherentHostAccess prop to HSA_CAPABILITY
@ 2021-06-11  3:32 Alex Sierra
  2021-06-11 14:32 ` Felix Kuehling
  0 siblings, 1 reply; 2+ messages in thread
From: Alex Sierra @ 2021-06-11  3:32 UTC (permalink / raw)
  To: amd-gfx; +Cc: Alex Sierra

CoherentHostAccess flag support has moved from HSA_MEMORYPROPERTY
to HSA_CAPABILITY struct. Proper changes have made also at the thunk
to support this change.

CoherentHostAccess: whether or not device memory can be coherently
accessed by the host CPU.

Signed-off-by: Alex Sierra <alex.sierra@amd.com>
---
 drivers/gpu/drm/amd/amdkfd/kfd_topology.h | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_topology.h b/drivers/gpu/drm/amd/amdkfd/kfd_topology.h
index 6bd6380b0ee0..8b48c6692007 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_topology.h
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_topology.h
@@ -54,8 +54,8 @@
 #define HSA_CAP_ASIC_REVISION_SHIFT		22
 #define HSA_CAP_SRAM_EDCSUPPORTED		0x04000000
 #define HSA_CAP_SVMAPI_SUPPORTED		0x08000000
-
-#define HSA_CAP_RESERVED			0xf00f8000
+#define HSA_CAP_FLAGS_COHERENTHOSTACCESS	0x10000000
+#define HSA_CAP_RESERVED			0xe00f8000
 
 struct kfd_node_properties {
 	uint64_t hive_id;
@@ -101,8 +101,7 @@ struct kfd_node_properties {
 
 #define HSA_MEM_FLAGS_HOT_PLUGGABLE		0x00000001
 #define HSA_MEM_FLAGS_NON_VOLATILE		0x00000002
-#define HSA_MEM_FLAGS_COHERENTHOSTACCESS	0x00000004
-#define HSA_MEM_FLAGS_RESERVED			0xfffffff8
+#define HSA_MEM_FLAGS_RESERVED			0xfffffffc
 
 struct kfd_mem_properties {
 	struct list_head	list;
-- 
2.17.1

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

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

* Re: [PATCH] drm/amdkfd: move CoherentHostAccess prop to HSA_CAPABILITY
  2021-06-11  3:32 [PATCH] drm/amdkfd: move CoherentHostAccess prop to HSA_CAPABILITY Alex Sierra
@ 2021-06-11 14:32 ` Felix Kuehling
  0 siblings, 0 replies; 2+ messages in thread
From: Felix Kuehling @ 2021-06-11 14:32 UTC (permalink / raw)
  To: Alex Sierra, amd-gfx

Am 2021-06-10 um 11:32 p.m. schrieb Alex Sierra:
> CoherentHostAccess flag support has moved from HSA_MEMORYPROPERTY
> to HSA_CAPABILITY struct. Proper changes have made also at the thunk
> to support this change.
>
> CoherentHostAccess: whether or not device memory can be coherently
> accessed by the host CPU.
>
> Signed-off-by: Alex Sierra <alex.sierra@amd.com>

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


> ---
>  drivers/gpu/drm/amd/amdkfd/kfd_topology.h | 7 +++----
>  1 file changed, 3 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_topology.h b/drivers/gpu/drm/amd/amdkfd/kfd_topology.h
> index 6bd6380b0ee0..8b48c6692007 100644
> --- a/drivers/gpu/drm/amd/amdkfd/kfd_topology.h
> +++ b/drivers/gpu/drm/amd/amdkfd/kfd_topology.h
> @@ -54,8 +54,8 @@
>  #define HSA_CAP_ASIC_REVISION_SHIFT		22
>  #define HSA_CAP_SRAM_EDCSUPPORTED		0x04000000
>  #define HSA_CAP_SVMAPI_SUPPORTED		0x08000000
> -
> -#define HSA_CAP_RESERVED			0xf00f8000
> +#define HSA_CAP_FLAGS_COHERENTHOSTACCESS	0x10000000
> +#define HSA_CAP_RESERVED			0xe00f8000
>  
>  struct kfd_node_properties {
>  	uint64_t hive_id;
> @@ -101,8 +101,7 @@ struct kfd_node_properties {
>  
>  #define HSA_MEM_FLAGS_HOT_PLUGGABLE		0x00000001
>  #define HSA_MEM_FLAGS_NON_VOLATILE		0x00000002
> -#define HSA_MEM_FLAGS_COHERENTHOSTACCESS	0x00000004
> -#define HSA_MEM_FLAGS_RESERVED			0xfffffff8
> +#define HSA_MEM_FLAGS_RESERVED			0xfffffffc
>  
>  struct kfd_mem_properties {
>  	struct list_head	list;
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

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

end of thread, other threads:[~2021-06-11 14:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-11  3:32 [PATCH] drm/amdkfd: move CoherentHostAccess prop to HSA_CAPABILITY Alex Sierra
2021-06-11 14:32 ` Felix Kuehling

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.