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: 
Visitor vlenoir
Visitor
79 Views
Registered: ‎11-27-2018

QEMU issue with AXI DMA (corrupted dts ?)

Hello,

I'm trying to use QEMU with Zynq-7000 architecture but I get some issues with AXI DMA. I'm using Xilinx SDK to generate .dts/.dtsi files from my .hdf file and I'm compiling them with DTC to get the .dtb file. With the AXI DMA entry I get the following error when running QEMU :

**
ERROR:/build/ssw/qemu/qemu/qom/object.c:1577:object_get_canonical_path_component: assertion failed: (obj)

However when the AXI DMA entry is commented in the pl.dtsi file there is no more problem and the executable is running. Here is the AXI DMA entry which is generated from Xilinx SDK (2018.1) :

channelizer_axi_dma: dma@60040000 {
			#dma-cells = <1>;
			clock-names = "s_axi_lite_aclk m_axi_sg_aclk m_axi_mm2s_aclk m_axi_s2mm_aclk";
			clocks = <&clkc 15>, <&clkc 15>, <&clkc 15>, <&clkc 15>;
			compatible = "xlnx,axi-dma-7.1", "xlnx,axi-dma-1.00.a";
			interrupt-names = "mm2s_introut s2mm_introut";
			interrupt-parent = <&intc>;
			interrupts = <0 36 4 0 52 4>;
			reg = <0x60040000 0x10000>;
			xlnx,addrwidth = <0x20>;
			xlnx,include-sg ;
			xlnx,sg-include-stscntrl-strm ;
			xlnx,sg-length-width = <0x1a>;
			dma-channel@60040000 {
				compatible = "xlnx,axi-dma-mm2s-channel";
				dma-channels = <0x1>;
				interrupts = <0 36 4>;
				xlnx,datawidth = <0x20>;
				xlnx,device-id = <0x0>;
			};
			dma-channel@60040030 {
				compatible = "xlnx,axi-dma-s2mm-channel";
				dma-channels = <0x1>;
				interrupts = <0 52 4>;
				xlnx,datawidth = <0x20>;
				xlnx,device-id = <0x0>;
			};
		};

Does any one can figure out if there is a syntax error or somewhere else ? Just for information when I compile the .dts file I get the followings warning :

output/system-top.dtb: Warning (unit_address_vs_reg): Node /amba_pl/dma@60040000/dma-channel@60040000 has a unit name, but no reg property
output/system-top.dtb: Warning (unit_address_vs_reg): Node /amba_pl/dma@60040000/dma-channel@60040030 has a unit name, but no reg property

Best regards,

Vincent

0 Kudos
2 Replies
Visitor vlenoir
Visitor
64 Views
Registered: ‎11-27-2018

Re: QEMU issue with AXI DMA (corrupted dts ?)

Hello,

I found the wrong line in the AXI DMA entry :

compatible = "xlnx,axi-dma-7.1", "xlnx,axi-dma-1.00.a";

By commenting this line it works well... why ?

Best regards,

Vincent

0 Kudos
Moderator
Moderator
40 Views
Registered: ‎12-04-2016

Re: QEMU issue with AXI DMA (corrupted dts ?)

Hi Vincent

Can you try adding this to the DMA node of your device tree, and see if this works:

sg = <&memory>;
mm2s = <&memory>;
s2mm = <&memory>;

 

Best Regards

Shabbir

0 Kudos