From 3d999a1adf7a54e47b4e3751e480b0d7168f2a8f Mon Sep 17 00:00:00 2001 From: David Yat Sin Date: Tue, 16 Apr 2024 14:02:44 +0000 Subject: [PATCH] Perform HDP flush for SDMA copies gfx10/gfx11 Perform HDP flush on gfx10/gfx11 PCIe devices. Exclude gfx101x devices Change-Id: Ief76c34634b09b0a7942cb71519d4082ca8b4fad --- runtime/hsa-runtime/core/runtime/amd_blit_sdma.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/runtime/hsa-runtime/core/runtime/amd_blit_sdma.cpp b/runtime/hsa-runtime/core/runtime/amd_blit_sdma.cpp index c2d0edf959..e29e1c8532 100644 --- a/runtime/hsa-runtime/core/runtime/amd_blit_sdma.cpp +++ b/runtime/hsa-runtime/core/runtime/amd_blit_sdma.cpp @@ -166,10 +166,11 @@ hsa_status_t BlitSdma: } // HDP flush supported on gfx900 and forward. - // FIXME: Not working on gfx10, raises SRBM write protection interrupt. // gfx90a can support xGMI host to device connections so bypass HDP flush // in this case. - if (agent_->isa()->GetMajorVersion() == 9) { + // gfx101x seems to have issues with HDP flushes + if (agent_->isa()->GetMajorVersion() >= 9 && + !(agent_->isa()->GetMajorVersion() == 10 && agent_->isa()->GetMinorVersion() == 1)) { hdp_flush_support_ = link.info.link_type != HSA_AMD_LINK_INFO_TYPE_XGMI; }