ARM-software / arm-enterprise-acs

ARM Enterprise ACS
Apache License 2.0
42 stars 52 forks source link

test_p030.c has issues with CPU-Addr -> PCIe Addr translation while accessing BAR #124

Open tvidyasagar opened 2 years ago

tvidyasagar commented 2 years ago

PCIe test-430 (implemented in test_p030.c) isn't taking the _TRA offset in ACPI into account to convert CPU_PA into PCIe_Bus_Address for MMIO/BAR access. Some implementations may have a translation unit to convert from CPU_PA to PCIe_Bus_Address and reading the BAR address from the config space directly and treating that as CPU_PA would fail test 430 on such implementations.