linux-next/tools/pci
Niklas Cassel fe986f9ef0
misc: pci_endpoint_test: Add consecutive BAR test
Add a more advanced BAR test that writes all BARs in one go, and then reads
them back and verifies that the value matches the BAR number bitwise OR'ed
with offset, this allows us to verify:

  - The BAR number was what we intended to read
  - The offset was what we intended to read

This allows us to detect potential address translation issues on the EP.

Reading back the BAR directly after writing will not allow us to detect the
case where inbound address translation on the endpoint incorrectly causes
multiple BARs to be redirected to the same memory region (within the EP).

Link: https://lore.kernel.org/r/20241116032045.2574168-2-cassel@kernel.org
Signed-off-by: Niklas Cassel <cassel@kernel.org>
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
2024-12-19 16:31:12 +00:00
..
Build tools: PCI: Change pcitest compiling process 2018-10-03 11:19:52 +01:00
Makefile tools: PCI: Remove .*.cmd files with make clean 2024-09-13 22:37:06 +00:00
pcitest.c misc: pci_endpoint_test: Add consecutive BAR test 2024-12-19 16:31:12 +00:00
pcitest.sh misc: pci_endpoint_test: Add consecutive BAR test 2024-12-19 16:31:12 +00:00