The bandwidth performance of the Atlas 200T A2 Box16/Atlas 200I A2 Box16 heterogeneous subrack PIX link (PCIe switch: NPU1 -> PCIe -> PCIe switch -> PCIe -> NPU2) is lower than expected, and the unidirectional bandwidth is almost the same as the bidirectional bandwidth.


The PCIe Access Control Services (ACS ) protocol can determine whether a TLP can be normally routed, blocked, or redirected by setting related control bits. ACS can be applied to RCs, switches, and multi-function devices. For single-function devices supporting SR-IOV, ACS treats them as multi-function devices and activates specific functions. Once ACS is enabled on a PCIe switch, P2P data transmission is disabled and the PCIe switch is forced to send access requests of all addresses to RCs, preventing P2P access risks.
After ACSCtl is disabled, the bandwidth of the PIX link remains low. According to the analysis of the kernel code, the problem may be related to IOMMU. ACS is enabled by calling pci_request_acs in the detect_intel_iommu function. That is, ACS is forcibly enabled when IOMMU is enabled.

Run the lspci -s ${NPU's PCIe BDF number} -vvv | grep ACSCtl command to check whether ACSCtl is disabled. If ACSCtl is disabled, a minus sign is displayed.

for pdev in `lspci -vvv|grep -E "^[a-f]|^[0-9]|ACSCtl"|grep ACSCtl -B1|grep -E "^[a-f]|^[0-9]"|awk '{print $1}'`
do
setpci -s $pdev ECAP_ACS+06.w=0000
done
Run the lspci -vvv command. If IOMMU group information is displayed, IOMMU is enabled.





Run the dmesg | grep -i dmar command to check that IOMMU is disabled.

Run the lspci -vvvv command to check that no IOMMU group information exists.
