Perform HDP flush for SDMA copies gfx10/gfx11

Perform HDP flush on gfx10/gfx11 PCIe devices.

Exclude gfx101x devices

Change-Id: Ief76c34634b09b0a7942cb71519d4082ca8b4fad
这个提交包含在:
David Yat Sin 于 2024-04-24 18:07:34 -04:00 提交
1 父节点 9af225e1b1
当前提交 3d999a1adf
1 个文件已更改
+3 -2
@@ -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;
}