From 221f75ea7ad89c99b60c22d228c9d0761d3f76c6 Mon Sep 17 00:00:00 2001 From: Alex Sierra Date: Thu, 10 Jun 2021 21:54:42 -0500 Subject: [PATCH] libhsakmt: move CoherentHostAccess prop to HSA_CAPABILITY CoherentHostAccess flag member moved from HSA_MEMORYPROPERTY to HSA_CAPABILITY struct. Now this is reported to the topology as a capability of the device instead of a device memory property. Change-Id: I48e43e4b4a0635b711b62933734587facdfbf88b Signed-off-by: Alex Sierra [ROCm/ROCR-Runtime commit: f85b428265aa37b041218c8217c5f6b9220f7129] --- projects/rocr-runtime/include/hsakmttypes.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/rocr-runtime/include/hsakmttypes.h b/projects/rocr-runtime/include/hsakmttypes.h index bbe24d286b..c96fd839f0 100644 --- a/projects/rocr-runtime/include/hsakmttypes.h +++ b/projects/rocr-runtime/include/hsakmttypes.h @@ -215,7 +215,8 @@ typedef union unsigned int ASICRevision: 4; // Indicates the ASIC revision of the chip on this node. unsigned int SRAM_EDCSupport: 1; // Indicates if GFX internal SRAM EDC/ECC functionality is active unsigned int SVMAPISupported : 1; // Whether or not the SVM API is supported - unsigned int Reserved : 4; + unsigned int CoherentHostAccess: 1; // Whether or not device memory can be coherently accessed by the host CPU + unsigned int Reserved : 3; } ui32; } HSA_CAPABILITY; @@ -344,8 +345,7 @@ typedef union unsigned int HotPluggable : 1; // the memory may be removed by some system action, // memory should be used for temporary data unsigned int NonVolatile : 1; // memory content is preserved across a power-off cycle. - unsigned int CoherentHostAccess: 1; // Whether or not device memory can be coherently accessed by the host CPU - unsigned int Reserved :29; + unsigned int Reserved :30; } ui32; } HSA_MEMORYPROPERTY;