Enforce uncached memory on AllocatePCIeRW request

Change-Id: Ib5a624ab979220d50205448ef37b4550672fb97d


[ROCm/ROCR-Runtime commit: ed0a1be2c3]
This commit is contained in:
Shweta Khatri
2023-01-11 11:59:46 -05:00
committed by David Yat Sin
parent 829d6536f8
commit 36da397f96
@@ -190,6 +190,7 @@ hsa_status_t MemoryRegion::AllocateImpl(size_t& size, AllocateFlags alloc_flags,
// Allocate pseudo fine grain memory
kmt_alloc_flags.ui32.CoarseGrain = (alloc_flags & AllocatePCIeRW ? 0 : kmt_alloc_flags.ui32.CoarseGrain);
kmt_alloc_flags.ui32.Uncached = (alloc_flags & AllocatePCIeRW ? 1 : kmt_alloc_flags.ui32.Uncached);
// Only allow using the suballocator for ordinary VRAM.
if (IsLocalMemory()) {