From ef4f563559f195672d07114670a461a7c55ea22b Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Wed, 19 Mar 2014 23:12:31 +0100 Subject: Add HEB scripts and re-organize the structure --- tests/dma/debug/test-iommu.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 tests/dma/debug/test-iommu.sh (limited to 'tests/dma/debug') diff --git a/tests/dma/debug/test-iommu.sh b/tests/dma/debug/test-iommu.sh new file mode 100755 index 0000000..74e3ece --- /dev/null +++ b/tests/dma/debug/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