SWDEV-437832 - Changes to update host unified memory and iommuv2 flags.

Change-Id: I88998cf57c21fc446fa28e250f826c607923670b
Šī revīzija ir iekļauta:
kjayapra-amd authored and Karthik Jayaprakash committed 2024-02-07 06:27:47 -05:00
1 vecāks a6841e3f43
revīzija 7d5b4a8f7a
4 files changed
+14 -10

No files matched your search

+3 -3
Parādīt failu
@@ -401,8 +401,8 @@ hipError_t ihipGetDeviceProperties(hipDeviceProp_tR0600* props, int device) {
deviceProps.directManagedMemAccessFromHost = info.hmmDirectHostAccess_;
deviceProps.canUseHostPointerForRegisteredMem = info.hostUnifiedMemory_;
deviceProps.pageableMemoryAccess = info.hmmCpuMemoryAccessible_;
deviceProps.hostRegisterSupported = info.hostUnifiedMemory_;
deviceProps.pageableMemoryAccessUsesHostPageTables = info.hostUnifiedMemory_;
deviceProps.hostRegisterSupported = true;
deviceProps.pageableMemoryAccessUsesHostPageTables = info.iommuv2_;
// Mem pool
deviceProps.memoryPoolsSupported = HIP_MEM_POOL_SUPPORT;
@@ -467,7 +467,7 @@ hipError_t ihipGetDeviceProperties(hipDeviceProp_tR0600* props, int device) {
deviceProps.timelineSemaphoreInteropSupported = 0;
deviceProps.unifiedFunctionPointers = 0;
deviceProps.integrated = info.accelerator_;
deviceProps.integrated = info.hostUnifiedMemory_;
*props = deviceProps;
return hipSuccess;