UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Observer rjw_999
Observer
8,507 Views
Registered: ‎05-04-2016

AXI DMA test error

Jump to solution

hello everyone
I have a axidma ip loopback test design as

Ashampoo_Snap_2016.05.05_08h56m06s_001_.jpg

and the ip configure is

Ashampoo_Snap_2016.05.05_08h56m43s_002_.jpg

this design can pass a test without linux

however when i use linux and axidma driver and axidmatest client of Xilinx,i have got these errors

 

U-Boot 2016.01 (Apr 28 2016 - 18:23:43 -0700)

Model: Zynq ZC702 Development Board
Board: Xilinx Zynq
I2C: ready
DRAM: ECC disabled 1 GiB
MMC: sdhci@e0100000: 0
SF: Unsupported flash IDs: manuf 00, jedec 0000, ext_jedec 0000
*** Warning - spi_flash_probe() failed, using default environment

In: serial@e0001000
Out: serial@e0001000
Err: serial@e0001000
Model: Zynq ZC702 Development Board
Board: Xilinx Zynq
Net: ZYNQ GEM: e000b000, phyaddr 7, interface rgmii-id
eth0: ethernet@e000b000
Hit any key to stop autoboot: 0
Device: sdhci@e0100000
Manufacturer ID: 2
OEM: 544d
Name: SA08G
Tran Speed: 50000000
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 7.2 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes
reading uEnv.txt
272 bytes read in 12 ms (21.5 KiB/s)
Loaded environment from uEnv.txt
Importing environment from SD ...
Running uenvcmd ...
Copying Linux from SD to RAM...
Device: sdhci@e0100000
Manufacturer ID: 2
OEM: 544d
Name: SA08G
Tran Speed: 50000000
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 7.2 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes
reading uImage
3713944 bytes read in 329 ms (10.8 MiB/s)
reading devicetree.dtb
9779 bytes read in 17 ms (561.5 KiB/s)
reading uramdisk.image.gz
5310018 bytes read in 462 ms (11 MiB/s)
## Booting kernel from Legacy Image at 03000000 ...
Image Name: Linux-4.4.0-xilinx
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3713880 Bytes = 3.5 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 04000000 ...
Image Name:
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 5309954 Bytes = 5.1 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 02a00000
Booting using the fdt blob at 0x2a00000
Loading Kernel Image ... OK
Loading Ramdisk to 1faef000, end 1ffff602 ... OK
Loading Device Tree to 1fae9000, end 1faee632 ... OK

Starting kernel ...

Booting Linux on physical CPU 0x0
Linux version 4.4.0-xilinx (root@ubuntu) (gcc version 4.9.2 (Sourcery CodeBench Lite 2015.05-17) ) #6 SMP PREEMPT Wed May 4 17:25:56 PDT 2016
CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine model: xlnx,zynq-7000
cma: Reserved 16 MiB at 0x3f000000
Memory policy: Data cache writealloc
PERCPU: Embedded 12 pages/cpu @ef7d4000 s19328 r8192 d21632 u49152
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260608
Kernel command line: console=ttyPS0,115200
PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 1010092K/1048576K available (5179K kernel code, 225K rwdata, 1812K rodata, 268K init, 224K bss, 22100K reserved, 16384K cma-reserved, 245760K highmem)
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
vmalloc : 0xf0800000 - 0xff800000 ( 240 MB)
lowmem : 0xc0000000 - 0xf0000000 ( 768 MB)
pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
.text : 0xc0008000 - 0xc06dc0ec (6993 kB)
.init : 0xc06dd000 - 0xc0720000 ( 268 kB)
.data : 0xc0720000 - 0xc0758460 ( 226 kB)
.bss : 0xc0758460 - 0xc07904f4 ( 225 kB)
Preemptible hierarchical RCU implementation.
Build-time adjustment of leaf fanout to 32.
RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2
NR_IRQS:16 nr_irqs:16 16
slcr mapped to f0800000
L2C: platform modifies aux control register: 0x72360000 -> 0x72760000
L2C: DT/platform modifies aux control register: 0x72360000 -> 0x72760000
L2C-310 erratum 769419 enabled
L2C-310 enabling early BRESP for Cortex-A9
L2C-310 full line of zeros enabled for Cortex-A9
L2C-310 ID prefetch enabled, offset 1 lines
L2C-310 dynamic clock gating enabled, standby mode enabled
L2C-310 cache controller enabled, 8 ways, 512 kB
L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x76760001
zynq_clock_init: clkc starts at f0800100
Zynq clock init
sched_clock: 64 bits at 333MHz, resolution 3ns, wraps every 4398046511103ns
clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x4ce07af025, max_idle_ns: 440795209040 ns
clocksource: ttc_clocksource: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 537538477 ns
timer #0 at f0808000, irq=17
Console: colour dummy device 80x30
Calibrating delay loop... 1332.01 BogoMIPS (lpj=6660096)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
CPU: Testing write buffer coherency: ok
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x8280 - 0x82d8
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
Brought up 2 CPUs
SMP: Total of 2 processors activated (2664.03 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
cpuidle: using governor ladder
cpuidle: using governor menu
hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 4 bytes.
zynq-ocm f800c000.ocmc: ZYNQ OCM pool: 256 KiB @ 0xf0880000
zynq-pinctrl 700.pinctrl: zynq pinctrl initialized
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
media: Linux media interface: v0.10
Linux video capture interface: v2.00
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
PTP clock support registered
EDAC MC: Ver: 3.0.0
Advanced Linux Sound Architecture Driver Initialized.
clocksource: Switched to clocksource arm_global_timer
NET: Registered protocol family 2
TCP established hash table entries: 8192 (order: 3, 32768 bytes)
TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
UDP hash table entries: 512 (order: 2, 16384 bytes)
UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (no cpio magic); looks like an initrd
Freeing initrd memory: 5188K (dfaef000 - e0000000)
hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
futex hash table entries: 512 (order: 3, 32768 bytes)
jffs2: version 2.2. (NAND) (SUMMARY) ? 2001-2006 Red Hat, Inc.
bounce: pool size: 64 pages
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
dma-pl330 f8003000.dmac: Loaded driver for PL330 DMAC-241330
dma-pl330 f8003000.dmac: DBUFF-128x8bytes Num_Chans-8 Num_Peri-4 Num_Events-16
xilinx-dma 40400000.dma: Xilinx AXI DMA Engine driver Probed!!
e0001000.serial: ttyPS0 at MMIO 0xe0001000 (irq = 145, base_baud = 3125000) is a xuartps
console [ttyPS0] enabled
xdevcfg f8007000.devcfg: ioremap 0xf8007000 to f086c000
[drm] Initialized drm 1.1.0 20060810
brd: module loaded
loop: module loaded
CAN device driver interface
libphy: MACB_mii_bus: probed
macb e000b000.ethernet eth0: Cadence GEM rev 0x00020118 at 0xe000b000 irq 147 (00:0a:35:00:01:22)
macb e000b000.ethernet eth0: attached PHY driver [Marvell 88E1116R] (mii_bus:phy_addr=e000b000.etherne:17, irq=-1)
e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
usbcore: registered new interface driver usb-storage
mousedev: PS/2 mouse device common for all mice
i2c /dev entries driver
cdns-i2c e0004000.i2c: 400 kHz mmio e0004000 irq 142
EDAC MC: ECC not enabled
Xilinx Zynq CpuIdle Driver started
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
sdhci-arasan e0100000.sdhci: No vmmc regulator found
sdhci-arasan e0100000.sdhci: No vqmmc regulator found
mmc0: Invalid maximum block size, assuming 512 bytes
mmc0: SDHCI controller on e0100000.sdhci [e0100000.sdhci] using ADMA
ledtrig-cpu: registered to indicate activity on CPUs
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
NET: Registered protocol family 10
sit: IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
can: controller area network core (rev 20120528 abi 9)
NET: Registered protocol family 29
can: raw protocol (rev 20120528)
can: broadcast manager protocol (rev 20120528 t)
can: netlink gateway (rev 20130117) max_hops=1
Registering SWP/SWPB emulation handler
dmatest: Started 1 threads using dma1chan0 dma1chan1
BUG: scheduling while atomic: dma1chan0-dma1c/629/0x00000002
Modules linked in:
CPU: 1 PID: 629 Comm: dma1chan0-dma1c Not tainted 4.4.0-xilinx #6
Hardware name: Xilinx Zynq Platform
Backtrace:
[<c00132dc>] (dump_backtrace) from [<c00134a4>] (show_stack+0x18/0x1c)
r6:c0722e24 r5:ef7e4000 r4:00000000 r3:00208040
[<c001348c>] (show_stack) from [<c01e6084>] (dump_stack+0x88/0xd4)
[<c01e5ffc>] (dump_stack) from [<c0040bfc>] (__schedule_bug+0x4c/0x64)
r4:00000000 r3:20000093
[<c0040bb0>] (__schedule_bug) from [<c05110f8>] (__schedule+0x8c/0x49c)
r4:ef127580 r3:00000002
[<c051106c>] (__schedule) from [<c05115bc>] (schedule+0xb4/0xd0)
r10:00000000 r9:f09b3540 r8:ef3f8ea0 r7:00000000 r6:00001b58 r5:ee87bc88
r4:ee87a000
[<c0511508>] (schedule) from [<c05146f8>] (schedule_hrtimeout_range_clock+0xd0/0x120)
r4:00000001 r3:ef127580
[<c0514628>] (schedule_hrtimeout_range_clock) from [<c051475c>] (schedule_hrtimeout_range+0x14/0x18)
r6:c09179b3 r5:ef3926ec r4:ef3f8e90
[<c0514748>] (schedule_hrtimeout_range) from [<c05141e0>] (usleep_range+0x5c/0x68)
[<c0514184>] (usleep_range) from [<c023d7d8>] (xilinx_dma_start_transfer.part.1+0x198/0x2f0)
[<c023d640>] (xilinx_dma_start_transfer.part.1) from [<c023dad8>] (xilinx_dma_issue_pending+0x34/0x44)
r9:00000002 r8:ee87bf10 r7:ee87bf20 r6:60000013 r5:ef3f8e9c r4:ef3f8ec0
[<c023daa4>] (xilinx_dma_issue_pending) from [<c023eae4>] (dmatest_slave_func+0x7dc/0xb4c)
r6:00000002 r5:ef2fca40 r4:00000000 r3:c023daa4
[<c023e308>] (dmatest_slave_func) from [<c003ca24>] (kthread+0xec/0x104)
r10:00000000 r9:00000000 r8:00000000 r7:c023e308 r6:ef2fca40 r5:00000000
r4:ef2fca00
[<c003c938>] (kthread) from [<c000f2d8>] (ret_from_fork+0x14/0x3c)
r7:00000000 r6:00000000 r5:c003c938 r4:ef2fca00
xilinx-dma 40400000.dma: Channel ef3f8f50 has errors 10409 cdr 3f048000 cdr msb 0 tdr 3f048500 tdr msb 0
mmc0: new high speed SDHC card at address 1234
mmcblk0: mmc0:1234 SA08G 7.21 GiB (ro)
mmcblk0: p1
xilinx-dma 40400000.dma: Cannot start channel ef3f8e90: 10009
BUG: scheduling while atomic: dma1chan0-dma1c/629/0x00000000
Modules linked in:
CPU: 1 PID: 629 Comm: dma1chan0-dma1c Tainted: G W 4.4.0-xilinx #6
Hardware name: Xilinx Zynq Platform
Backtrace:
[<c00132dc>] (dump_backtrace) from [<c00134a4>] (show_stack+0x18/0x1c)
r6:c0722e24 r5:ef7e4000 r4:00000000 r3:00208040
[<c001348c>] (show_stack) from [<c01e6084>] (dump_stack+0x88/0xd4)
[<c01e5ffc>] (dump_stack) from [<c0040bfc>] (__schedule_bug+0x4c/0x64)
r4:00000000 r3:60000013
[<c0040bb0>] (__schedule_bug) from [<c05110f8>] (__schedule+0x8c/0x49c)
r4:ef127580 r3:00000000
[<c051106c>] (__schedule) from [<c05115bc>] (schedule+0xb4/0xd0)
r10:00000000 r9:00000000 r8:ef7e03c0 r7:c0722100 r6:ee87bc44 r5:ffff97cb
r4:ee87a000
[<c0511508>] (schedule) from [<c051437c>] (schedule_timeout+0x190/0x1c4)
r4:ef7e03c0 r3:ee87a000
[<c05141ec>] (schedule_timeout) from [<c05120b0>] (wait_for_common+0xe8/0x174)
r8:00000002 r7:ee87bf24 r6:ee87a000 r5:ee87bf20 r4:00000bb8
[<c0511fc8>] (wait_for_common) from [<c051216c>] (wait_for_completion_timeout+0x14/0x18)
r9:00000002 r8:ee87bf10 r7:ee87bf20 r6:00000002 r5:ef2fca40 r4:00000000
[<c0512158>] (wait_for_completion_timeout) from [<c023eaf0>] (dmatest_slave_func+0x7e8/0xb4c)
[<c023e308>] (dmatest_slave_func) from [<c003ca24>] (kthread+0xec/0x104)
r10:00000000 r9:00000000 r8:00000000 r7:c023e308 r6:ef2fca40 r5:00000000
r4:ef2fca00
[<c003c938>] (kthread) from [<c000f2d8>] (ret_from_fork+0x14/0x3c)
r7:00000000 r6:00000000 r5:c003c938 r4:ef2fca00
dma1chan0-dma1c: #0: tx test timed out
xilinx-dma 40400000.dma: Channel ef3f8e90 has errors 20409 cdr 3f050000 cdr msb 0 tdr 3f050a80 tdr msb 0
dma1chan0-dma1c: #1: tx test timed out
dma1chan0-dma1c: #2: tx test timed out
dma1chan0-dma1c: #3: tx test timed out
dma1chan0-dma1c: #4: tx test timed out
dma1chan0-dma1c: terminating after 5 tests, 5 failures (status 0)
hctosys: unable to open rtc device (rtc0)
ALSA device list:
No soundcards found.
RAMDISK: gzip image found at block 0
EXT4-fs (ram0): couldn't mount as ext3 due to feature incompatibilities
EXT4-fs warning (device ram0): ext4_update_dynamic_rev:717: updating to rev 1 because of new feature flag, running e2fsck is recommended
EXT4-fs (ram0): mounted filesystem without journal. Opts: (null)
VFS: Mounted root (ext4 filesystem) on device 1:0.
Starting rcS...
++ Mounting filesystem
mount: mounting /dev/mmcblk0p1 on /mnt failed: No such file or directory
mount: mounting /dev/mmcblk0 on /mnt failed: No such file or directory
++ Setting up mdev
++ Starting telnet daemon
++ Starting http daemon
++ Starting ftp daemon
++ Starting ssh daemon
random: sshd urandom read with 3 bits of entropy available
rcS Complete

but the interrupts seems right

 

Ashampoo_Snap_2016.05.05_09h06m09s_003_.jpg

according to the message, because the the call of usleep_range in xilinx_dma_start_transfer.part.1. but i cannot find usleep_range in the function xilinx_dma_start_transfer or in the xilinx_dma_irq_handler.

can you help me to solove these problem?

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
Observer rjw_999
Observer
8,252 Views
Registered: ‎05-04-2016

Re: AXI DMA test error

Jump to solution

hello

i have found that the memory address map of my design is not fit to HW,when i choose the memory address to fit DDR,every thing is ok

0 Kudos
2 Replies
Observer gustoff
Observer
5,210 Views
Registered: ‎07-07-2016

Re: AXI DMA test error

Jump to solution

Hello.

Do you solve this? I have the same problem.

 

Thank you,

Vladimir.

Tags (2)
0 Kudos
Observer rjw_999
Observer
8,253 Views
Registered: ‎05-04-2016

Re: AXI DMA test error

Jump to solution

hello

i have found that the memory address map of my design is not fit to HW,when i choose the memory address to fit DDR,every thing is ok

0 Kudos