]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - tools/pci/pcitest.sh
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-bionic-kernel.git] / tools / pci / pcitest.sh
CommitLineData
62cb0eff 1#!/bin/sh
b2441318 2# SPDX-License-Identifier: GPL-2.0
62cb0eff
KVA
3
4echo "BAR tests"
5echo
6
7bar=0
8
9while [ $bar -lt 6 ]
10do
11 pcitest -b $bar
12 bar=`expr $bar + 1`
13done
14echo
15
16echo "Interrupt tests"
17echo
18
19pcitest -l
20msi=1
21
22while [ $msi -lt 33 ]
23do
24 pcitest -m $msi
25 msi=`expr $msi + 1`
26done
27echo
28
29echo "Read Tests"
30echo
31
32pcitest -r -s 1
33pcitest -r -s 1024
34pcitest -r -s 1025
35pcitest -r -s 1024000
36pcitest -r -s 1024001
37echo
38
39echo "Write Tests"
40echo
41
42pcitest -w -s 1
43pcitest -w -s 1024
44pcitest -w -s 1025
45pcitest -w -s 1024000
46pcitest -w -s 1024001
47echo
48
49echo "Copy Tests"
50echo
51
52pcitest -c -s 1
53pcitest -c -s 1024
54pcitest -c -s 1025
55pcitest -c -s 1024000
56pcitest -c -s 1024001
57echo