drm/amdkfd: move CoherentHostAccess prop to HSA_CAPABILITY
Subsystems (3)
PATCH 1/1 drm/amdkfd: move CoherentHostAccess prop to HSA_CAPABILITY
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.
--- drivers/gpu/drm/amd/amdkfd/kfd_topology.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdkfd/kfd_topology.h +3 -4
@@ -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 0xe00f8000struct 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 0xfffffffcstruct kfd_mem_properties {struct list_head list;
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Am 2021-06-10 um 11:32 p.m. schrieb Alex Sierra:
Quoted 8 lines
CoherentHostAccess flag support has moved from
HSA_MEMORYPROPERTYtoHSA_CAPABILITYstruct. 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 <[email protected]>
Quoted 20 lines
--- drivers/gpu/drm/amd/amdkfd/kfd_topology.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)drivers/gpu/drm/amd/amdkfd/kfd_topology.h +2
-2@@ -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 0xe00f8000struct kfd_node_properties {uint64_t hive_id;
drivers/gpu/drm/amd/amdkfd/kfd_topology.h struct kfd_node_properties { · line 107
Quoted 9 lines
drivers/gpu/drm/amd/amdkfd/kfd_topology.h +1
-2@@ -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 0xfffffffcstruct kfd_mem_properties {struct list_head list;
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx