From c8edc004b855e39559ab5e6e8bc3f348b670b2f6 Mon Sep 17 00:00:00 2001 From: why Date: Mon, 8 May 2023 19:00:21 +0800 Subject: [PATCH] tests: qdma: fix the starting position of 4KB In TEST3, the last 4KB should start at 0x102101000. --- tests/soc/pci/xilinx/linux-qdma-test-script.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/soc/pci/xilinx/linux-qdma-test-script.sh b/tests/soc/pci/xilinx/linux-qdma-test-script.sh index 37a4acf..85200ba 100755 --- a/tests/soc/pci/xilinx/linux-qdma-test-script.sh +++ b/tests/soc/pci/xilinx/linux-qdma-test-script.sh @@ -133,9 +133,9 @@ $DRIVER_LOC/QDMA/linux-kernel/bin/dma-ctl ${DRVDEV} q start idx 0 dir h2c \ echo "TEST3: Send 8KB to the device @0x102100000" $DRIVER_LOC/QDMA/linux-kernel/bin/dma-to-device -d ${CHRDEV} -f \ $FILE3 -s 8192 -a 0x102100000 -echo "TEST3: Get last written 4KB from the device @0x102100000" +echo "TEST3: Get last written 4KB from the device @0x102101000" $DRIVER_LOC/QDMA/linux-kernel/bin/dma-from-device -d ${CHRDEV} -f \ - $FILE2 -s 4096 -a 0x102100000 + $FILE2 -s 4096 -a 0x102101000 echo "TEST3: Unloading the driver" rmmod qdma-pf.ko echo "TEST3: Comparing the files which should be different"