summaryrefslogtreecommitdiff
path: root/tools/pci/pcitest.sh
diff options
context:
space:
mode:
authorGustavo Pimentel <gustavo.pimentel@synopsys.com>2018-07-19 10:32:21 +0200
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2018-07-19 11:47:13 +0100
commit0653217c180f0e5332ef75f7299220e644091b20 (patch)
tree8c55fa688fcc763e16417d0a7171a71dee3a44eb /tools/pci/pcitest.sh
parente03327122e2c8e6ae4565ef5b3d3cbe4364546a1 (diff)
downloadlwn-0653217c180f0e5332ef75f7299220e644091b20.tar.gz
lwn-0653217c180f0e5332ef75f7299220e644091b20.zip
tools: PCI: Add MSI-X support
Add MSI-X support to pcitest tool. Modify pcitest.sh script to accommodate MSI-X interrupt tests. Update documentation accordingly. Signed-off-by: Gustavo Pimentel <gustavo.pimentel@synopsys.com> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'tools/pci/pcitest.sh')
-rw-r--r--tools/pci/pcitest.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/pci/pcitest.sh b/tools/pci/pcitest.sh
index 77e8c85ef744..75ed48ff2990 100644
--- a/tools/pci/pcitest.sh
+++ b/tools/pci/pcitest.sh
@@ -16,7 +16,10 @@ echo
echo "Interrupt tests"
echo
+pcitest -i 0
pcitest -l
+
+pcitest -i 1
msi=1
while [ $msi -lt 33 ]
@@ -26,9 +29,21 @@ do
done
echo
+pcitest -i 2
+msix=1
+
+while [ $msix -lt 2049 ]
+do
+ pcitest -x $msix
+ msix=`expr $msix + 1`
+done
+echo
+
echo "Read Tests"
echo
+pcitest -i 1
+
pcitest -r -s 1
pcitest -r -s 1024
pcitest -r -s 1025