2
0

Revert "gfx11 is able to perform atomic ops even PCI reports no atomic support."

This reverts commit 7daedd5eef.
For APU, the PCIe atomic is supported by default. However, the PCIe
atomic feature needs to checked for dGPU. The kfd driver has already
set PCIe atomic support for APUs, so this patch can be reverted.

Change-Id: I131d5b8e095c1104e1695e7cf8b1ed178bccddde
Signed-off-by: Shane Xiao <shane.xiao@amd.com>


[ROCm/ROCR-Runtime commit: 821f6e58f9]
Este cometimento está contido em:
Shane Xiao
2024-08-22 11:10:06 +08:00
cometido por yao xiao
ascendente 284a1f1dc4
cometimento 7ec6819ff5
@@ -148,10 +148,6 @@ bool hasPciAtomicsSupport(int node) {
if (pNodeProperties->NumCPUCores && pNodeProperties->NumFComputeCores)
return true;
/* gfx11 is able to perform aotmic ops even PCI reports no atomic support. */
if (pNodeProperties->EngineId.ui32.Major >= 11)
return true;
HsaIoLinkProperties *IolinkProperties = new HsaIoLinkProperties[pNodeProperties->NumIOLinks];
if (hsaKmtGetNodeIoLinkProperties(node, pNodeProperties->NumIOLinks, IolinkProperties)) {
LOG() << "Unable to get Node IO Link Information for node " << node << std::endl;