From 9e62ba8b9693b390bf5833d52c91dc3755f6cbbe Mon Sep 17 00:00:00 2001 From: Sean Keely Date: Wed, 5 Feb 2020 17:55:41 -0600 Subject: [PATCH] Report HDP registers at all times. HDP will now be used for coarse grain kernarg so needs to be reported without consideration of fine grain vram over pcie. Change-Id: I648167299faa583876a3d8685c3b3c4d8d31ebf9 [ROCm/ROCR-Runtime commit: 9c35780836cd68353734e1e1eb6b1325f08dda43] --- .../runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp index 1cb8f1f483..1dca41375b 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp +++ b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp @@ -324,11 +324,9 @@ void GpuAgent::InitRegionList() { } break; case HSA_HEAPTYPE_MMIO_REMAP: - if (core::Runtime::runtime_singleton_->flag().fine_grain_pcie()) { - // Remap offsets defined in kfd_ioctl.h - HDP_flush_.HDP_MEM_FLUSH_CNTL = (uint32_t*)mem_props[mem_idx].VirtualBaseAddress; - HDP_flush_.HDP_REG_FLUSH_CNTL = HDP_flush_.HDP_MEM_FLUSH_CNTL + 1; - } + // Remap offsets defined in kfd_ioctl.h + HDP_flush_.HDP_MEM_FLUSH_CNTL = (uint32_t*)mem_props[mem_idx].VirtualBaseAddress; + HDP_flush_.HDP_REG_FLUSH_CNTL = HDP_flush_.HDP_MEM_FLUSH_CNTL + 1; break; default: continue;