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!

Showing results for 
Search instead for 
Did you mean: 
Participant leonardo_suriano
Registered: ‎01-13-2017

BUG "xil_fpga_v4_0" of pmufw when using "fpga_manager"

The bug is in the function


static u32 XFpga_GetBitstreamInfo(UINTPTR WrAddr,
				u32 *BitstreamAddress,
				u32 *BitstreamSize)

inside the xilfpga_pcap.c.


When executing the line code :



BitstreamOffset = *((UINTPTR *)(WrAddr + PartHeaderOffset + BITSTREAM_PARTATION_OFFSET));



the system simply stalls with no error.


The value of





This causes a Linux-based system waiting forever for a pmu signal that never is received:




[  262.296620] fpga_manager fpga0: writing bitstream.bit to Xilinx ZynqMP FPGA Manager
[  278.399323] mmc0: Timeout waiting for hardware interrupt.
[  278.404634] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[  278.411057] mmc0: sdhci: Sys addr:  0x00000020 | Version:  0x00001002
[  278.417481] mmc0: sdhci: Blk size:  0x00007200 | Blk cnt:  0x00000000
[  278.423905] mmc0: sdhci: Argument:  0x003b36e0 | Trn mode: 0x0000002b
[  278.430328] mmc0: sdhci: Present:   0x01ff0000 | Host ctl: 0x0000001f
[  278.436752] mmc0: sdhci: Power:     0x0000000f | Blk gap:  0x00000080
[  278.443176] mmc0: sdhci: Wake-up:   0x00000000 | Clock:    0x00000207
[  278.449600] mmc0: sdhci: Timeout:   0x00000009 | Int stat: 0x00000003
[  278.456024] mmc0: sdhci: Int enab:  0x02ff008b | Sig enab: 0x02ff008b
[  278.462447] mmc0: sdhci: AC12 err:  0x00000000 | Slot int: 0x00000001
[  278.468871] mmc0: sdhci: Caps:      0x35ecc881 | Caps_1:   0x00002007
[  278.475295] mmc0: sdhci: Cmd:       0x0000193a | Max curr: 0x00000000
[  278.481719] mmc0: sdhci: Resp[0]:   0x00000900 | Resp[1]:  0x0076b27f
[  278.488143] mmc0: sdhci: Resp[2]:   0x325b5900 | Resp[3]:  0x00000900
[  278.494566] mmc0: sdhci: Host ctl2: 0x00000000
[  278.498994] mmc0: sdhci: ADMA Err:  0x00000000 | ADMA Ptr: 0x0000000070040230
[  278.506111] mmc0: sdhci: ============================================
[  283.335362] INFO: rcu_sched detected stalls on CPUs/tasks:
[  283.340761] 	0-...: (5 ticks this GP) idle=28e/140000000000000/0 softirq=9212/9212 fqs=2475 
[  283.349176] 	(detected by 1, t=5255 jiffies, g=2722, c=2721, q=72)
[  283.355340] Task dump for CPU 0:
[  283.358553] bash            R  running task        0  4016   4015 0x00000026
[  283.365584] Call trace:
[  283.368022] [<ffffff8008085c08>] __switch_to+0x98/0xb0
[  283.373138] [<ffffffc87a4d87c0>] 0xffffffc87a4d87c0



The PMU debug is enabled and I can see that the PMU, when reaches the instruction reported above, stalls forever and executes nothing more.


Some idea on how to solve it? (with the xilfpga_v2_0 there are no problem and the Reconfiguration of the FPGA works properly)

0 Kudos
1 Reply
Registered: ‎10-06-2016

Re: BUG "xil_fpga_v4_0" of pmufw when using "fpga_manager"

Hi @leonardo_suriano

Could you also provide details about your software stack releases? I mean, which tool release, kernel.. are you using? The code you are pointing does not seems to have an evident bug so might be useful to be able to test the whole system to reproduce the issue.



Don’t forget to reply, kudo, and accept as solution.
0 Kudos