From 77c4d6e67debf0e729734d882df033c4c0f5b0c3 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Mon, 20 Apr 2015 22:01:04 +0200 Subject: Big redign of model structures --- tests/test-iommu.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 tests/test-iommu.sh (limited to 'tests/test-iommu.sh') diff --git a/tests/test-iommu.sh b/tests/test-iommu.sh new file mode 100755 index 0000000..74e3ece --- /dev/null +++ b/tests/test-iommu.sh @@ -0,0 +1,19 @@ +#! /bin/bash + +i=1 +while [ 1 ]; do + pci --start-dma dma1r + for name in /sys/class/fpga/fpga0/kbuf*; do + bus_addr=0x`cat $name | grep "bus addr" | cut -d ':' -f 2 | sed -e 's/\s\+//g'` + if [ $((bus_addr % 4096)) -ne 0 ]; then + + echo "Failed at iteration $i, $name" + echo "----------------------" + cat $name + exit + fi + + done + pci --stop-dma dma1r + i=$((i + 1)) +done -- cgit v1.2.3