SWDEV-478624 - Use readback workaround to ensure kernel arg coherence

Use env var DEBUG_CLR_KERNARG_HDP_FLUSH_WA=1 to fall back to HDP flush
workaround. The default is 0

Change-Id: I7bdb9be61da60c30d15ac9991b7cd27351e1831c
This commit is contained in:
Saleel Kudchadker
2024-09-10 23:52:48 +00:00
parent 5a810f789a
commit 9de6d4d46c
2 changed files with 7 additions and 1 deletions
+4
View File
@@ -256,6 +256,8 @@ void Settings::setKernelArgImpl(const amd::Isa& isa, bool isXgmi, bool hasValidH
auto kernelArgImpl = KernelArgImpl::HostKernelArgs;
hasValidHDPFlush &= DEBUG_CLR_KERNARG_HDP_FLUSH_WA;
if (isXgmi) {
// The XGMI-connected path does not require the manual memory ordering
// workarounds that the PCIe connected path requires
@@ -281,6 +283,8 @@ void Settings::setKernelArgImpl(const amd::Isa& isa, bool isXgmi, bool hasValidH
if (!flagIsDefault(HIP_FORCE_DEV_KERNARG)) {
kernel_arg_impl_ = kernelArgImpl & (HIP_FORCE_DEV_KERNARG ? 0xF : 0x0);
}
ClPrint(amd::LOG_INFO, amd::LOG_INIT, "Using dev kernel arg wa = %d", kernel_arg_impl_);
}
} // namespace amd::roc