cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ajaykumar141229
Contributor
Contributor
203 Views
Registered: ‎05-20-2019

Xilinx AXI DMA Driver

Hello everyone,

I am testing Xilinx DMA driver which transfer data from a custom IP to PL DDR of address 0x400000000,PL DMA address is 800E0000.Baremetal code provided in Vitis working fine.my dtb is looks like this 

axi_dma_0: dma@800e0000 {
#dma-cells = <0x1>;
clock-names = "s_axi_lite_aclk","m_axi_sg_aclk","m_axi_mm2s_aclk", "m_axi_s2mm_aclk";
clocks = <&misc_clk_0>,<&misc_clk_0>,<&misc_clk_0>,<&misc_clk_0>;
compatible = "xlnx,axi-dma-1.00.a";
interrupt-names = "mm2s_introut", "s2mm_introut";
interrupt-parent = <&gic>;
interrupts = <0 104 4 0 105 4>;
reg = <0x0 0x800e0000 0x0 0x10000>;
xlnx,sg-length-width = <0x17>;
xlnx,addrwidth = <0x2c>;
xlnx,include-sg ;
dma-channel@800e0000 {
compatible = "xlnx,axi-dma-mm2s-channel";
dma-channels = <0x1>;
interrupts = <0 104 4>;
xlnx,datawidth = <0x20>;
xlnx,device-id = <0x0>;
xlnx,include-dre ;
};
dma-channel@800e0030 {
compatible = "xlnx,axi-dma-s2mm-channel";
dma-channels = <0x1>;
interrupts = <0 105 4>;
xlnx,datawidth = <0x20>;
xlnx,device-id = <0x0>;
xlnx,include-dre ;
};
};

when i run the axidmatest i am getting the current descriptor value as 68060000,using cat /proc/iomem i got to know that the address 68060000 is reserved memory.how do i change this address to point PL memory

can anyone please help me to get out of this issue.

 

Regards

CN Ajay kumar

0 Kudos
1 Reply
sandeepg
Moderator
Moderator
133 Views
Registered: ‎04-24-2017

Hi @ajaykumar141229 ,

Can you please add the logs?

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos