Perform HDP flush for SDMA copies gfx10/gfx11

Perform HDP flush on gfx10/gfx11 PCIe devices.

Exclude gfx101x devices

Change-Id: Ief76c34634b09b0a7942cb71519d4082ca8b4fad
This commit is contained in:
David Yat Sin
2024-04-16 14:02:44 +00:00
parent 9af225e1b1
commit 3d999a1adf
@@ -166,10 +166,11 @@ hsa_status_t BlitSdma<RingIndexTy, HwIndexMonotonic, SizeToCountOffset, useGCR>:
}
// 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;
}