mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-25 05:04:09 +08:00
0653217c18
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>
73 lines
824 B
Bash
73 lines
824 B
Bash
#!/bin/sh
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
echo "BAR tests"
|
|
echo
|
|
|
|
bar=0
|
|
|
|
while [ $bar -lt 6 ]
|
|
do
|
|
pcitest -b $bar
|
|
bar=`expr $bar + 1`
|
|
done
|
|
echo
|
|
|
|
echo "Interrupt tests"
|
|
echo
|
|
|
|
pcitest -i 0
|
|
pcitest -l
|
|
|
|
pcitest -i 1
|
|
msi=1
|
|
|
|
while [ $msi -lt 33 ]
|
|
do
|
|
pcitest -m $msi
|
|
msi=`expr $msi + 1`
|
|
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
|
|
pcitest -r -s 1024000
|
|
pcitest -r -s 1024001
|
|
echo
|
|
|
|
echo "Write Tests"
|
|
echo
|
|
|
|
pcitest -w -s 1
|
|
pcitest -w -s 1024
|
|
pcitest -w -s 1025
|
|
pcitest -w -s 1024000
|
|
pcitest -w -s 1024001
|
|
echo
|
|
|
|
echo "Copy Tests"
|
|
echo
|
|
|
|
pcitest -c -s 1
|
|
pcitest -c -s 1024
|
|
pcitest -c -s 1025
|
|
pcitest -c -s 1024000
|
|
pcitest -c -s 1024001
|
|
echo
|