1<!-- 2Author: Xianjun Jiao 3SPDX-FileCopyrightText: 2019 UGent 4SPDX-License-Identifier: AGPL-3.0-or-later 5--> 6===============Following are obsolete content================= 7 8Currently used driver xilinx_dma-orig.c is based on 552d3f11e374ca0d435aa93a571507819eabdda2 of https://github.com/Xilinx/linux-xlnx ) 9 10instruction to generate our customized xilinx dma driver: 11 12./make_xilinx_dma.sh 13 14instruction to generate our customized xilinx dma test program: 15 16./make_xilinx_dma_test.sh 17 18test dma driver on board: login to zc706, then: 19 20 rm axidmatest.ko 21 wget ftp://192.168.10.1/driver/xilinx_dma/axidmatest.ko 22 rm ddc.ko 23 wget ftp://192.168.10.1/driver/ddc/ddc.ko 24 rm xilinx_dma.ko 25 wget ftp://192.168.10.1/driver/xilinx_dma/xilinx_dma.ko 26 rmmod axidmatest 27 rmmod ddc 28 rmmod xilinx_dma 29 insmod xilinx_dma.ko 30 insmod ddc.ko 31 insmod axidmatest.ko 32 dmesg -c 33 34dmesg will show test result printed by "insmod axidmatest.ko". Like this: 35 36 root@analog:~# dmesg -c 37 xilinx_dmatest: dropped channel dma5chan0 38 xilinx_dmatest: dropped channel dma5chan1 39 40 sdr,ddc dev_remove base_addr 0xf14e0000 41 sdr,ddc dev_remove ddc_driver_api_inst 0xbf032284 42 sdr,ddc dev_remove ddc_api 0xbf032284 43 sdr,ddc dev_remove succeed! 44 xilinx-vdma 43000000.axivdma: Xilinx AXI VDMA Engine Driver Probed!! 45 xilinx-vdma 80400000.dma: Xilinx AXI DMA Engine Driver Probed!! 46 xilinx-vdma 80410000.dma: Xilinx AXI DMA Engine Driver Probed!! 47 48 sdr,ddc dev_probe match! 49 sdr,ddc dev_probe io start 0x83c20000 end 0x83c2ffff name /fpga-axi@0/rx_intf@83c20000 flags 0x00000200 desc 0x00000000 50 sdr,ddc dev_probe base_addr 0xf18e0000 51 sdr,ddc dev_probe ddc_driver_api_inst 0xbf0e1284 52 sdr,ddc dev_probe ddc_api 0xbf0e1284 53 sdr,ddc dev_probe reset tsf timer 54 sdr,ddc dev_probe tsf timer runtime read 1 33007 100015us 55 sdr,ddc dev_probe succeed! 56 sdr,ddc hw_init mode 0 57 sdr,ddc hw_init mode DDC_AXIS_LOOP_BACK 58 sdr,ddc hw_init err 0 59 dmatest: Started 1 threads using dma5chan0 dma5chan1 60 align 3 61 sdr,ddc hw_init mode 0 62 sdr,ddc hw_init mode DDC_AXIS_LOOP_BACK 63 sdr,ddc hw_init err 0 64 tx_tmo 99 status 0 len 6448 DMA_COMPLETE 0 65 dma5chan0-dma5c: verifying source buffer... 66 dma5chan0-dma5c: verifying dest buffer... 67 dma5chan0-dma5c: #0: No errors with 68 src_off=0x448 dst_off=0x568 len=0x1930 69 align 3 70 sdr,ddc hw_init mode 0 71 sdr,ddc hw_init mode DDC_AXIS_LOOP_BACK 72 sdr,ddc hw_init err 0 73 tx_tmo 100 status 0 len 3248 DMA_COMPLETE 0 74 dma5chan0-dma5c: verifying source buffer... 75 dma5chan0-dma5c: verifying dest buffer... 76 dma5chan0-dma5c: #1: No errors with 77 src_off=0x458 dst_off=0xf08 len=0xcb0 78 align 3 79 sdr,ddc hw_init mode 0 80 sdr,ddc hw_init mode DDC_AXIS_LOOP_BACK 81 sdr,ddc hw_init err 0 82 tx_tmo 100 status 0 len 8112 DMA_COMPLETE 0 83 dma5chan0-dma5c: verifying source buffer... 84 dma5chan0-dma5c: verifying dest buffer... 85 dma5chan0-dma5c: #2: No errors with 86 src_off=0x10 dst_off=0x20 len=0x1fb0 87 align 3 88 sdr,ddc hw_init mode 0 89 sdr,ddc hw_init mode DDC_AXIS_LOOP_BACK 90 sdr,ddc hw_init err 0 91 tx_tmo 100 status 0 len 840 DMA_COMPLETE 0 92 dma5chan0-dma5c: verifying source buffer... 93 dma5chan0-dma5c: verifying dest buffer... 94 dma5chan0-dma5c: #3: No errors with 95 src_off=0x1890 dst_off=0x1268 len=0x348 96 align 3 97 sdr,ddc hw_init mode 0 98 sdr,ddc hw_init mode DDC_AXIS_LOOP_BACK 99 sdr,ddc hw_init err 0 100 tx_tmo 100 status 0 len 7816 DMA_COMPLETE 0 101 dma5chan0-dma5c: verifying source buffer... 102 dma5chan0-dma5c: verifying dest buffer... 103 dma5chan0-dma5c: #4: No errors with 104 src_off=0x80 dst_off=0x168 len=0x1e88 105 dma5chan0-dma5c: terminating after 5 tests, 0 failures (status 0) 106 107