cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
823 Views
Registered: ‎05-20-2018

VDMA

Hi All

         I have a question about the use of VDMA.

         we currently work with the  board Zynq UltraScale+,I want to test the M_AXI_MM2S and M_AXI_S2MM channels for VDMA.

    My hardware project is as follows:TIM图片20180523101646.png
     My VDMA uses the default configuration,the pl_clk0  is 100M.When compiling software under Linux, the clock produces errors.
/*
 * CAUTION: This file is automatically generated by Xilinx.
 * Version:  
 * Today is: Fri May 18 13:23:12 2018
*/


/ {
amba_pl: amba_pl@0 {
#address-cells = <2>;
#size-cells = <2>;
compatible = "simple-bus";
ranges ;
axi_vdma_0: dma@a0000000 {
#dma-cells = <1>;
clock-names = "s_axi_lite_aclk", "m_axi_mm2s_aclk", "m_axi_mm2s_aclk", "m_axi_s2mm_aclk", "m_axi_s2mm_aclk";
clocks = <&misc_clk_0>, <&misc_clk_0>, <&misc_clk_0>, <&misc_clk_0>, <&misc_clk_0>;
compatible = "xlnx,axi-vdma-1.00.a";
interrupt-parent = <&gic>;
interrupts = <0 89 4 0 90 4>;
reg = <0x0 0xa0000000 0x0 0x10000>;
xlnx,addrwidth = <0x20>;
xlnx,flush-fsync = <0x1>;
xlnx,num-fstores = <0x3>;
dma-channel@a0000000 {
compatible = "xlnx,axi-vdma-mm2s-channel";
interrupts = <0 89 4>;
xlnx,datawidth = <0x20>;
xlnx,device-id = <0x0>;
xlnx,genlock-mode ;
};
dma-channel@a0000030 {
compatible = "xlnx,axi-vdma-s2mm-channel";
interrupts = <0 90 4>;
xlnx,datawidth = <0x20>;
xlnx,device-id = <0x0>;
xlnx,genlock-mode ;
};
};
psu_ctrl_ipi: PERIPHERAL@ff380000 {
compatible = "xlnx,PERIPHERAL-1.0";
reg = <0x0 0xff380000 0x0 0x80000>;
};
psu_message_buffers: PERIPHERAL@ff990000 {
compatible = "xlnx,PERIPHERAL-1.0";
reg = <0x0 0xff990000 0x0 0x10000>;
};
misc_clk_0: misc_clk_0 {
};
};
};
       The misc_clk_0 is an empty clock.But when I use another IP core, the misc_clk_0 is pl_clk0.And I can normally use VDMA on zynq_7000.
       How can I solve this problem?
       Thank you
 
0 Kudos
3 Replies
Highlighted
Xilinx Employee
Xilinx Employee
761 Views
Registered: ‎10-04-2016

Re: VDMA

Hi @maoleilei,

Which version of the tools are you using? This was a bug with DTG that was identified in 2017.1 and should have been fixed in 2017.3.

 

Regards,

 

Deanna

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
Highlighted
Visitor
Visitor
498 Views
Registered: ‎05-03-2018

Re: VDMA

Hi All

         I have a question about the use of VDMA. I currently work with the  board Zynqmp zcu102,I also want to test the M_AXI_MM2S and M_AXI_S2MM channels for VDMA with the loop back structure. 捕获.PNG

The dmesg is 

Xilinx Zynq MP First Stage Boot Loader
Release 2018.2 Jul 16 2019 - 13:23:09
NOTICE: ATF running on XCZU5EG/silicon v4/RTL5.1 at 0xfffea000
NOTICE: BL31: Secure code at 0x0
NOTICE: BL31: Non secure code at 0x8000000
NOTICE: BL31: v1.4(release):xilinx-v2018.2-dirty
NOTICE: BL31: Built : 09:16:39, Oct 22 2018
PMUFW: v1.0


U-Boot 2018.01 (Jul 16 2019 - 15:22:42 +0800) Xilinx ZynqMP ZCU102 rev1.0

DRAM: 2 GiB
EL Level: EL2
Chip ID: zu5eg
SF: Detected n25q512a with page size 512 Bytes, erase size 128 KiB, total 128 MiB
In: serial@ff010000
Out: serial@ff010000
Err: serial@ff010000
Board: Xilinx ZynqMP
Hit any key to stop autoboot: 0
SF: Detected n25q512a with page size 512 Bytes, erase size 128 KiB, total 128 MiB
device 0 offset 0x1e40000, size 0x1600000
SF: 23068672 bytes @ 0x1e40000 Read: OK
## Loading kernel from FIT Image at 10000000 ...
Using 'conf@system-top.dtb' configuration
Trying 'kernel@1' kernel subimage
Description: Linux kernel
Type: Kernel Image
Compression: gzip compressed
Data Start: 0x10000104
Data Size: 7220390 Bytes = 6.9 MiB
Architecture: AArch64
OS: Linux
Load Address: 0x00080000
Entry Point: 0x00080000
Hash algo: sha1
Hash value: 1c1743f0e6ad010bf387d4251113b71cd844439a
Verifying Hash Integrity ... sha1+ OK
## Loading ramdisk from FIT Image at 10000000 ...
Using 'conf@system-top.dtb' configuration
Trying 'ramdisk@1' ramdisk subimage
Description: petalinux-user-image
Type: RAMDisk Image
Compression: gzip compressed
Data Start: 0x106eab1c
Data Size: 6449758 Bytes = 6.2 MiB
Architecture: AArch64
OS: Linux
Load Address: unavailable
Entry Point: unavailable
Hash algo: sha1
Hash value: 1d7f29d9b75f5ef31f11958863581dc699985ec0
Verifying Hash Integrity ... sha1+ OK
## Loading fdt from FIT Image at 10000000 ...
Using 'conf@system-top.dtb' configuration
Trying 'fdt@system-top.dtb' fdt subimage
Description: Flattened Device Tree blob
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x106e2eb0
Data Size: 31655 Bytes = 30.9 KiB
Architecture: AArch64
Hash algo: sha1
Hash value: 19637d1a18470c2118276d1d8384ea05c0925daf
Verifying Hash Integrity ... sha1+ OK
Booting using the fdt blob at 0x106e2eb0
Uncompressing Kernel Image ... OK
Loading Ramdisk to 079d9000, end 07fffa5e ... OK
Loading Device Tree to 00000000079ce000, end 00000000079d8ba6 ... OK

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.14.0-xilinx-v2018.2 (oe-user@oe-host) (gcc version 7.2.0 (GCC)) #1 SMP Tue Jul 16 15:25:10 CST 2019
[ 0.000000] Boot CPU: AArch64 Processor [410fd034]
[ 0.000000] Machine model: xlnx,zynqmp
[ 0.000000] earlycon: cdns0 at MMIO 0x00000000ff010000 (options '115200n8')
[ 0.000000] bootconsole [cdns0] enabled
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: dma_contiguous_reserve(limit 7ff00000)
[ 0.000000] cma: dma_contiguous_reserve: reserving 256 MiB for global area
[ 0.000000] cma: cma_declare_contiguous(size 0x0000000010000000, base 0x0000000000000000, limit 0x000000007ff00000 alignment 0x0000000000000000)
[ 0.000000] cma: Reserved 256 MiB at 0x000000006fc00000
[ 0.000000] On node 0 totalpages: 524032
[ 0.000000] DMA zone: 7165 pages used for memmap
[ 0.000000] DMA zone: 0 pages reserved
[ 0.000000] DMA zone: 524032 pages, LIFO batch:31
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.1 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] random: fast init done
[ 0.000000] percpu: Embedded 21 pages/cpu @ffffffc07fe77000 s46488 r8192 d31336 u86016
[ 0.000000] pcpu-alloc: s46488 r8192 d31336 u86016 alloc=21*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: enabling workaround for ARM erratum 845719
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 516867
[ 0.000000] Kernel command line: console=ttyPS0,115200n8 earlycon clk_ignore_unused cpuidle.off=1
[ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
[ 0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.000000] Memory: 1778028K/2096128K available (10236K kernel code, 808K rwdata, 3348K rodata, 512K init, 2328K bss, 55956K reserved, 262144K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] modules : 0xffffff8000000000 - 0xffffff8008000000 ( 128 MB)
[ 0.000000] vmalloc : 0xffffff8008000000 - 0xffffffbebfff0000 ( 250 GB)
[ 0.000000] .text : 0xffffff8008080000 - 0xffffff8008a80000 ( 10240 KB)
[ 0.000000] .rodata : 0xffffff8008a80000 - 0xffffff8008dd0000 ( 3392 KB)
[ 0.000000] .init : 0xffffff8008dd0000 - 0xffffff8008e50000 ( 512 KB)
[ 0.000000] .data : 0xffffff8008e50000 - 0xffffff8008f1a200 ( 809 KB)
[ 0.000000] .bss : 0xffffff8008f1a200 - 0xffffff80091603b8 ( 2329 KB)
[ 0.000000] fixed : 0xffffffbefe7fd000 - 0xffffffbefec00000 ( 4108 KB)
[ 0.000000] PCI I/O : 0xffffffbefee00000 - 0xffffffbeffe00000 ( 16 MB)
[ 0.000000] vmemmap : 0xffffffbf00000000 - 0xffffffc000000000 ( 4 GB maximum)
[ 0.000000] 0xffffffbf00000000 - 0xffffffbf01bfc800 ( 27 MB actual)
[ 0.000000] memory : 0xffffffc000000000 - 0xffffffc07ff00000 ( 2047 MB)
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU event tracing is enabled.
[ 0.000000] RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] GIC: Adjusting CPU interface base to 0x00000000f902f000
[ 0.000000] GIC: Using split EOI/Deactivate mode
[ 0.000000] arch_timer: cp15 timer(s) running at 33.33MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x7b0074340, max_idle_ns: 440795202884 ns
[ 0.000003] sched_clock: 56 bits at 33MHz, resolution 30ns, wraps every 2199023255543ns
[ 0.008237] Console: colour dummy device 80x25
[ 0.012504] Calibrating delay loop (skipped), value calculated using timer frequency.. 66.66 BogoMIPS (lpj=133332)
[ 0.022780] pid_max: default: 32768 minimum: 301
[ 0.027455] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.034031] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.041723] ASID allocator initialised with 65536 entries
[ 0.046979] Hierarchical SRCU implementation.
[ 0.052827] EFI services will not be available.
[ 0.057181] zynqmp_plat_init Platform Management API v1.0
[ 0.062528] zynqmp_plat_init Trustzone version v1.0
[ 0.067467] smp: Bringing up secondary CPUs ...
[ 0.072115] Detected VIPT I-cache on CPU1
[ 0.072150] CPU1: Booted secondary processor [410fd034]
[ 0.072415] Detected VIPT I-cache on CPU2
[ 0.072431] CPU2: Booted secondary processor [410fd034]
[ 0.072677] Detected VIPT I-cache on CPU3
[ 0.072693] CPU3: Booted secondary processor [410fd034]
[ 0.072731] smp: Brought up 1 node, 4 CPUs
[ 0.104141] SMP: Total of 4 processors activated.
[ 0.108814] CPU features: detected feature: 32-bit EL0 Support
[ 0.114612] CPU: All CPU(s) started at EL2
[ 0.118684] alternatives: patching kernel code
[ 0.123854] devtmpfs: initialized
[ 0.130091] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.139636] futex hash table entries: 1024 (order: 5, 131072 bytes)
[ 0.150434] xor: measuring software checksum speed
[ 0.195082] 8regs : 2558.000 MB/sec
[ 0.235109] 8regs_prefetch: 2281.000 MB/sec
[ 0.279475] 32regs : 3145.000 MB/sec
[ 0.319503] 32regs_prefetch: 2643.000 MB/sec
[ 0.323931] xor: using function: 32regs (3145.000 MB/sec)
[ 0.329364] pinctrl core: initialized pinctrl subsystem
[ 0.335004] NET: Registered protocol family 16
[ 0.340138] vdso: 2 pages (1 code @ ffffff8008a86000, 1 data @ ffffff8008e54000)
[ 0.347341] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.354131] cma: cma_alloc(cma ffffff8008f461c0, count 64, align 6)
[ 0.360699] cma: cma_alloc(): returned ffffffbf01872000
[ 0.365813] DMA: preallocated 256 KiB pool for atomic allocations
[ 0.400633] reset_zynqmp reset-controller: Xilinx zynqmp reset driver probed
[ 0.407909] ARM CCI_400_r1 PMU driver probed
[ 0.411723] zynqmp-pinctrl ff180000.pinctrl: zynqmp pinctrl initialized
[ 0.429166] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.502766] raid6: int64x1 gen() 447 MB/s
[ 0.574723] raid6: int64x1 xor() 491 MB/s
[ 0.646721] raid6: int64x2 gen() 766 MB/s
[ 0.718766] raid6: int64x2 xor() 668 MB/s
[ 0.790806] raid6: int64x4 gen() 1160 MB/s
[ 0.862854] raid6: int64x4 xor() 823 MB/s
[ 0.934892] raid6: int64x8 gen() 1088 MB/s
[ 1.006943] raid6: int64x8 xor() 827 MB/s
[ 1.079046] raid6: neonx1 gen() 808 MB/s
[ 1.151040] raid6: neonx1 xor() 946 MB/s
[ 1.223111] raid6: neonx2 gen() 1301 MB/s
[ 1.295135] raid6: neonx2 xor() 1339 MB/s
[ 1.367165] raid6: neonx4 gen() 1674 MB/s
[ 1.439209] raid6: neonx4 xor() 1600 MB/s
[ 1.511268] raid6: neonx8 gen() 1834 MB/s
[ 1.583312] raid6: neonx8 xor() 1702 MB/s
[ 1.587389] raid6: using algorithm neonx8 gen() 1834 MB/s
[ 1.592751] raid6: .... xor() 1702 MB/s, rmw enabled
[ 1.597682] raid6: using neon recovery algorithm
[ 1.603112] SCSI subsystem initialized
[ 1.606706] libata version 3.00 loaded.
[ 1.610594] usbcore: registered new interface driver usbfs
[ 1.615955] usbcore: registered new interface driver hub
[ 1.621232] usbcore: registered new device driver usb
[ 1.626273] media: Linux media interface: v0.10
[ 1.630735] Linux video capture interface: v2.00
[ 1.635332] pps_core: LinuxPPS API ver. 1 registered
[ 1.640232] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 1.649326] PTP clock support registered
[ 1.653223] EDAC MC: Ver: 3.0.0
[ 1.656624] zynqmp-ipi ff9905c0.mailbox: Probed ZynqMP IPI Mailbox driver.
[ 1.663438] FPGA manager framework
[ 1.666803] fpga-region fpga-full: FPGA Region probed
[ 1.671842] Advanced Linux Sound Architecture Driver Initialized.
[ 1.678004] Bluetooth: Core ver 2.22
[ 1.681409] NET: Registered protocol family 31
[ 1.685802] Bluetooth: HCI device and connection manager initialized
[ 1.692119] Bluetooth: HCI socket layer initialized
[ 1.696961] Bluetooth: L2CAP socket layer initialized
[ 1.701986] Bluetooth: SCO socket layer initialized
[ 1.707839] DMA-API: preallocated 4096 debug entries
[ 1.712611] DMA-API: debugging enabled by kernel config
[ 1.717830] clocksource: Switched to clocksource arch_sys_counter
[ 1.723935] VFS: Disk quotas dquot_6.6.0
[ 1.727786] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 1.738261] NET: Registered protocol family 2
[ 1.742716] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[ 1.749832] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)
[ 1.756507] TCP: Hash tables configured (established 16384 bind 16384)
[ 1.762910] UDP hash table entries: 1024 (order: 3, 32768 bytes)
[ 1.768840] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)
[ 1.775316] NET: Registered protocol family 1
[ 1.779729] RPC: Registered named UNIX socket transport module.
[ 1.785452] RPC: Registered udp transport module.
[ 1.790122] RPC: Registered tcp transport module.
[ 1.794792] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 1.801199] PCI: CLS 0 bytes, default 128
[ 1.805264] Trying to unpack rootfs image as initramfs...
[ 2.041610] Freeing initrd memory: 6296K
[ 2.045852] hw perfevents: no interrupt-affinity property for /pmu, guessing.
[ 2.053001] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available
[ 2.061146] audit: initializing netlink subsys (disabled)
[ 2.066493] audit: type=2000 audit(2.007:1): state=initialized audit_enabled=0 res=1
[ 2.066847] workingset: timestamp_bits=62 max_order=19 bucket_order=0
[ 2.081063] NFS: Registering the id_resolver key type
[ 2.085940] Key type id_resolver registered
[ 2.090074] Key type id_legacy registered
[ 2.094057] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 2.100725] jffs2: version 2.2. (NAND) (SUMMARY) ? 2001-2006 Red Hat, Inc.
[ 2.131883] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[ 2.139091] io scheduler noop registered
[ 2.142977] io scheduler deadline registered
[ 2.147228] io scheduler cfq registered (default)
[ 2.151887] io scheduler mq-deadline registered
[ 2.156384] io scheduler kyber registered
[ 2.161486] xilinx-vdma a0000000.dma: Xilinx AXI VDMA Engine Driver Probed!!
[ 2.168650] xilinx-zynqmp-dma fd500000.dma: ZynqMP DMA driver Probe success
[ 2.175551] xilinx-zynqmp-dma fd510000.dma: ZynqMP DMA driver Probe success
[ 2.182465] xilinx-zynqmp-dma fd520000.dma: ZynqMP DMA driver Probe success
[ 2.189383] xilinx-zynqmp-dma fd530000.dma: ZynqMP DMA driver Probe success
[ 2.196305] xilinx-zynqmp-dma fd540000.dma: ZynqMP DMA driver Probe success
[ 2.203223] xilinx-zynqmp-dma fd550000.dma: ZynqMP DMA driver Probe success
[ 2.210142] xilinx-zynqmp-dma fd560000.dma: ZynqMP DMA driver Probe success
[ 2.217065] xilinx-zynqmp-dma fd570000.dma: ZynqMP DMA driver Probe success
[ 2.224065] xilinx-zynqmp-dma ffa80000.dma: ZynqMP DMA driver Probe success
[ 2.230953] xilinx-zynqmp-dma ffa90000.dma: ZynqMP DMA driver Probe success
[ 2.237879] xilinx-zynqmp-dma ffaa0000.dma: ZynqMP DMA driver Probe success
[ 2.244800] xilinx-zynqmp-dma ffab0000.dma: ZynqMP DMA driver Probe success
[ 2.251711] xilinx-zynqmp-dma ffac0000.dma: ZynqMP DMA driver Probe success
[ 2.258635] xilinx-zynqmp-dma ffad0000.dma: ZynqMP DMA driver Probe success
[ 2.265555] xilinx-zynqmp-dma ffae0000.dma: ZynqMP DMA driver Probe success
[ 2.272476] xilinx-zynqmp-dma ffaf0000.dma: ZynqMP DMA driver Probe success
[ 2.279321] ps_pcie_dma init()
[ 2.310883] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[ 2.319525] cacheinfo: Unable to detect cache hierarchy for CPU 0
[ 2.329491] brd: module loaded
[ 2.335663] loop: module loaded
[ 2.339296] mtdoops: mtd device (mtddev=name/number) must be supplied
[ 2.346805] m25p80 spi0.0: n25q512a (131072 Kbytes)
[ 2.351515] 3 ofpart partitions found on MTD device spi0.0
[ 2.356946] Creating 3 MTD partitions on "spi0.0":
[ 2.361708] 0x000000000000-0x000001e00000 : "boot"
[ 2.367045] 0x000001e00000-0x000001e40000 : "bootenv"
[ 2.372260] 0x000001e40000-0x000003440000 : "kernel"
[ 2.373886] PLL: shutdown
[ 2.380834] libphy: Fixed MDIO Bus: probed
[ 2.385738] tun: Universal TUN/TAP device driver, 1.6
[ 2.390727] CAN device driver interface
[ 2.395032] usbcore: registered new interface driver asix
[ 2.400293] usbcore: registered new interface driver ax88179_178a
[ 2.406320] usbcore: registered new interface driver cdc_ether
[ 2.412115] usbcore: registered new interface driver net1080
[ 2.417735] usbcore: registered new interface driver cdc_subset
[ 2.423619] usbcore: registered new interface driver zaurus
[ 2.429167] usbcore: registered new interface driver cdc_ncm
[ 2.435058] xilinx-axipmon ffa00000.perf-monitor: Probed Xilinx APM
[ 2.441497] usbcore: registered new interface driver uas
[ 2.446657] usbcore: registered new interface driver usb-storage
[ 2.453069] rtc_zynqmp ffa60000.rtc: rtc core: registered ffa60000.rtc as rtc0
[ 2.460140] i2c /dev entries driver
[ 2.463764] IR NEC protocol handler initialized
[ 2.468115] IR RC5(x/sz) protocol handler initialized
[ 2.473130] IR RC6 protocol handler initialized
[ 2.477626] IR JVC protocol handler initialized
[ 2.482123] IR Sony protocol handler initialized
[ 2.486709] IR SANYO protocol handler initialized
[ 2.491380] IR Sharp protocol handler initialized
[ 2.496050] IR MCE Keyboard/mouse protocol handler initialized
[ 2.501846] IR XMP protocol handler initialized
[ 2.507125] usbcore: registered new interface driver uvcvideo
[ 2.512686] USB Video Class driver (1.1.1)
[ 2.517052] Bluetooth: HCI UART driver ver 2.3
[ 2.521317] Bluetooth: HCI UART protocol H4 registered
[ 2.526415] Bluetooth: HCI UART protocol BCSP registered
[ 2.531710] Bluetooth: HCI UART protocol LL registered
[ 2.536795] Bluetooth: HCI UART protocol ATH3K registered
[ 2.542158] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 2.548414] Bluetooth: HCI UART protocol Intel registered
[ 2.553749] Bluetooth: HCI UART protocol QCA registered
[ 2.558965] usbcore: registered new interface driver bcm203x
[ 2.564583] usbcore: registered new interface driver bpa10x
[ 2.570120] usbcore: registered new interface driver bfusb
[ 2.575571] usbcore: registered new interface driver btusb
[ 2.580998] Bluetooth: Generic Bluetooth SDIO driver ver 0.1
[ 2.586658] usbcore: registered new interface driver ath3k
[ 2.592182] EDAC MC: ECC not enabled
[ 2.595883] EDAC DEVICE0: Giving out device to module zynqmp-ocm-edac controller zynqmp_ocm: DEV ff960000.memory-controller (INTERRUPT)
[ 2.608342] cpufreq: cpufreq_online: CPU0: Running at unlisted freq: 1333333 KHz
[ 2.615561] cpu cpu0: dev_pm_opp_set_rate: failed to find current OPP for freq 1333333320 (-34)
[ 2.624353] cpufreq: cpufreq_online: CPU0: Unlisted initial frequency changed to: 1199999 KHz
[ 2.632698] cpu cpu0: dev_pm_opp_set_rate: failed to find current OPP for freq 1333333320 (-34)
[ 2.641457] CPUidle arm: Failed to register cpuidle driver
[ 2.646896] sdhci: Secure Digital Host Controller Interface driver
[ 2.652922] sdhci: Copyright(c) Pierre Ossman
[ 2.657246] sdhci-pltfm: SDHCI platform and OF driver helper
[ 2.663071] ledtrig-cpu: registered to indicate activity on CPUs
[ 2.669018] usbcore: registered new interface driver usbhid
[ 2.674426] usbhid: USB HID core driver
[ 2.680012] fpga_manager fpga0: Xilinx ZynqMP FPGA Manager registered
[ 2.686921] pktgen: Packet Generator for packet performance testing. Version: 2.75
[ 2.694485] Netfilter messages via NETLINK v0.30.
[ 2.699121] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 2.704414] Initializing XFRM netlink socket
[ 2.708580] NET: Registered protocol family 10
[ 2.713290] Segment Routing with IPv6
[ 2.716818] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 2.722243] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 2.728339] NET: Registered protocol family 17
[ 2.732614] NET: Registered protocol family 15
[ 2.737030] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 2.749908] Ebtables v2.0 registered
[ 2.753521] can: controller area network core (rev 20170425 abi 9)
[ 2.759621] NET: Registered protocol family 29
[ 2.764008] can: raw protocol (rev 20170425)
[ 2.768244] can: broadcast manager protocol (rev 20170425 t)
[ 2.773869] can: netlink gateway (rev 20170425) max_hops=1
[ 2.779557] Bluetooth: RFCOMM TTY layer initialized
[ 2.784261] Bluetooth: RFCOMM socket layer initialized
[ 2.789367] Bluetooth: RFCOMM ver 1.11
[ 2.793081] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 2.798357] Bluetooth: BNEP filters: protocol multicast
[ 2.803549] Bluetooth: BNEP socket layer initialized
[ 2.808475] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 2.814363] Bluetooth: HIDP socket layer initialized
[ 2.819398] 9pnet: Installing 9P2000 support
[ 2.823540] Key type dns_resolver registered
[ 2.828135] registered taskstats version 1
[ 2.832379] Btrfs loaded, crc32c=crc32c-generic
[ 2.841963] xilinx-vdma a0000000.dma: private_candidate: dma0chan0 filter said false
[ 2.849525] xilinx-vdma a0000000.dma: private_candidate: dma0chan1 filter said false
[ 2.857224] xilinx-zynqmp-dma fd500000.dma: private_candidate: wrong capabilities
[ 2.864663] xilinx-zynqmp-dma fd510000.dma: private_candidate: wrong capabilities
[ 2.872099] xilinx-zynqmp-dma fd520000.dma: private_candidate: wrong capabilities
[ 2.879539] xilinx-zynqmp-dma fd530000.dma: private_candidate: wrong capabilities
[ 2.886978] xilinx-zynqmp-dma fd540000.dma: private_candidate: wrong capabilities
[ 2.894418] xilinx-zynqmp-dma fd550000.dma: private_candidate: wrong capabilities
[ 2.901854] xilinx-zynqmp-dma fd560000.dma: private_candidate: wrong capabilities
[ 2.909296] xilinx-zynqmp-dma fd570000.dma: private_candidate: wrong capabilities
[ 2.916732] xilinx-zynqmp-dma ffa80000.dma: private_candidate: wrong capabilities
[ 2.924171] xilinx-zynqmp-dma ffa90000.dma: private_candidate: wrong capabilities
[ 2.931615] xilinx-zynqmp-dma ffaa0000.dma: private_candidate: wrong capabilities
[ 2.939051] xilinx-zynqmp-dma ffab0000.dma: private_candidate: wrong capabilities
[ 2.946490] xilinx-zynqmp-dma ffac0000.dma: private_candidate: wrong capabilities
[ 2.953929] xilinx-zynqmp-dma ffad0000.dma: private_candidate: wrong capabilities
[ 2.961368] xilinx-zynqmp-dma ffae0000.dma: private_candidate: wrong capabilities
[ 2.968808] xilinx-zynqmp-dma ffaf0000.dma: private_candidate: wrong capabilities
[ 2.976247] dmaengine: __dma_request_channel: fail ((null))
[ 2.981780] Error channel handle 0 board 0 channel
[ 2.986538] Unable to acquire dma channels 0
[ 2.990775] Error creating char devices for 0
?rⅹ适阠onsole [ttyPS0] enabledttyPS0 at MMIO 0xff010000 (irq = 36, base_baud = 6249999) is a xuartps
[ 3.004599] console [ttyPS0] enabled
[ 3.011583] bootconsole [cdns0] disabled
[ 3.011583] bootconsole [cdns0] disabled
[ 3.021330] rtc_zynqmp ffa60000.rtc: setting system clock to 1970-01-01 00:00:04 UTC (4)
[ 3.029455] clk: Not disabling unused clocks
[ 3.033724] ALSA device list:
[ 3.036628] No soundcards found.
[ 3.040540] Freeing unused kernel memory: 512K
INIT: version 2.88 booting
Starting udev
[ 3.145642] udevd[1647]: starting version 3.2.2
[ 3.154483] udevd[1648]: starting eudev-3.2.2
Tue Jul 16 07:26:49 UTC 2019
Starting internet superserver: inetd.
Welcome to the Jurassic period II
mount: mounting /dev/mmcblk0p1 on /mnt failed: No such file or directory
Configuring packages on first boot....
(This may take several minutes. Please do not power off the machine.)
Running postinst /etc/rpm-postinsts/100-sysvinit-inittab...
update-rc.d: /etc/init.d/run-postinsts exists during rc.d purge (continuing)
INIT: Entering runlevel: 5
Configuring network interfaces... Cannot find device "eth0"
Starting Dropbear SSH server: Generating key, this may take a while...
Public key portion is:
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCdrvowUjyVD1iJVRThg+eXGDWj0g3uNIiK5TpOvlMCaknCmabYOmgpiGUBtoYp3bMWJmCjXS7qaIc9PVqo1txffT9DRylPsWRiJor1+nF7t75gg/9LgF672zzW0tbZnfNznUH5prgxHkVj1luiRERylK5Dnkpt/2jXZg2OVvzP13ExhZ4qnRix1+d/Y08bTYTKXQAJhInUUvmbP/x7SR/yaaWrzmtl+LAdGJ96OaCxuXoxFZbWLBDeOOoE/qmqpLD9MIHHRT+mc4atxgIImDK9MmvXjZG4tGDexi1JvaQ5UM+9gObU7yVIS1hWb+DIznXewjE3AfIkoYi5kYE4MXaR root@project_704
Fingerprint: md5 d3:ca:52:f8:d3:f2:28:fb:bf:00:3b:d2:9c:fb:eb:ac
dropbear.
Starting syslogd/klogd: done
Starting tcf-agent: OK

and insert the vdmatest.ko driver

root@project_704:~# insmod /lib/modules/4.14.0-xilinx-v2018.2/
extra/ modules.alias modules.builtin modules.dep modules.devname modules.softdep modules.symbols.bin
kernel/ modules.alias.bin modules.builtin.bin modules.dep.bin modules.order modules.symbols
root@project_704:~# insmod /lib/modules/4.14.0-xilinx-v2018.2/extra/vdma-test.ko
[ 22.964005] vdma_test: loading out-of-tree module taints kernel.
[ 22.970884] xilinx_vdmatest: Started 1 threads using dma0chan0 dma0chan1
[ 22.970892] axi-vdma vision:1.0
[ 22.970931] axi-vdma vision:1.1
[ 22.970976] axi-vdma vision:1.2
[ 22.970977] axi-vdma vision:1.3
[ 22.970978] axi-vdma vision:1.4
[ 22.970980] axi-vdma vision:1.5
[ 22.970987] axi-vdma vision:1.6
[ 22.971066] Got tx callback
[ 22.971072] axi-vdma vision:1.7
[ 54.297841] dma0chan0-dma0c: #0: rx test timed out
[ 54.305703] axi-vdma vision:1.8
[ 54.305705] axi-vdma vision:2.2
[ 54.308832] axi-vdma vision:2.3
[ 54.311950] dma0chan0-dma0c: terminating after 1 tests, 1 failures (status 0)
root@project_704:~#

however the receive channel can not receive the data, I have no idea about this.

if you have some ideas, pls send me email qudevin521314@gmail.com. or just reply me here.

thank you so much!

Tags (1)
0 Kudos
Highlighted
Visitor
Visitor
453 Views
Registered: ‎05-03-2018

Re: VDMA

for me ,I created the similar vivado strcture design,the device-tree is:

psu_ctrl_ipi: PERIPHERAL@ff380000 {
compatible = "xlnx,PERIPHERAL-1.0";
reg = <0x0 0xff380000 0x0 0x80000>;
};
psu_message_buffers: PERIPHERAL@ff990000 {
compatible = "xlnx,PERIPHERAL-1.0";
reg = <0x0 0xff990000 0x0 0x10000>;
};
misc_clk_0: misc_clk_0 {
#clock-cells = <0>;
clock-frequency = <199998000>;
compatible = "fixed-clock";
};
};
};

the fact is the misc_clk_0 is always pl_clk0.Have you finished your project?Maybe we can discuss that togather.

0 Kudos