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]
This commit is contained in:
Shane Xiao
2024-08-22 11:10:06 +08:00
کامیت شده توسط yao xiao
والد 284a1f1dc4
کامیت 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;