From a2e4ba149c952b4dcc656b3b4c20fe0fe4627688 Mon Sep 17 00:00:00 2001 From: David Yat Sin Date: Wed, 22 Feb 2023 16:06:15 +0000 Subject: [PATCH] Revert "Enforce uncached memory on AllocatePCIeRW request" This reverts commit 36da397f96ab121ee5f1715b0d3f6a5afaf71760. Change-Id: I5a7fe9e99685f589f95dd89eacf04d44e5587f2f [ROCm/ROCR-Runtime commit: 37b5b421b33b7655a01494b729744a0ccad96156] --- .../runtime/hsa-runtime/core/runtime/amd_memory_region.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_memory_region.cpp b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_memory_region.cpp index a45f73dbc5..1859731002 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_memory_region.cpp +++ b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_memory_region.cpp @@ -190,7 +190,6 @@ 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()) {