From e00fc1b0a2d327ff08366cfa5d14ea1e0c24d00b Mon Sep 17 00:00:00 2001 From: Sean Keely Date: Mon, 12 Aug 2019 18:15:01 -0500 Subject: [PATCH] Enable HDP flush for all gfx9+ clients. ucode versions are per asic so not valid for feature enablement outside of bringup/dev. Feature is older than the latest ioctl change that the thunk depends on so use of this patch with kernel packages that don't contain the feature is not possible in a supported environment. Change-Id: I36b14176a7d642017ef1518aeade454b0f3dc749 [ROCm/ROCR-Runtime commit: 8133563a9353b9c4d3181db3fba5def667c7d3bc] --- .../runtime/hsa-runtime/core/runtime/amd_blit_sdma.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_blit_sdma.cpp b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_blit_sdma.cpp index 8bdd7b279f..02d938f63c 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_blit_sdma.cpp +++ b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_blit_sdma.cpp @@ -141,8 +141,8 @@ hsa_status_t BlitSdma::Initial platform_atomic_support_ = link.info.atomic_support_64bit; } - // Determine if sDMA microcode supports HDP flush command - if (agent_->GetSdmaMicrocodeVersion() >= SDMA_PKT_HDP_FLUSH::kMinVersion_) { + // HDP flush supported on gfx900 and forward. + if (agent_->isa()->GetMajorVersion() > 8) { hdp_flush_support_ = true; }