-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with two dma in design #98
Comments
Hi!
|
Thank you for your replay, I actually fix this, the DMA address width in zynq ultrascale family chip must be set to 40bit, or it will go wrong. |
Hey, where to modify the DMA address width? |
@suikammd in vivado block design |
@eleICoto Thanks, but after insmod the driver, nothing happens. |
@ Can you upload your block design? And specific DMA setting? |
@eleICoto Hello, this is my block design. |
@suikammd Yes i'm using petalinux |
@suikammd And I'm wondering what board are you using? |
@eleICoto Sorry for later reply. This is my workflow:
|
@suikammd |
Thanks @eleICoto ,I checked this file, It's not enabled, should I just add |
@suikammd So did you enter peltalinux-config -c kernel and enable those dma setting mention in this page? |
@suikammd according to my experience, save tage in petalinux-config -c kernel cant automatic set .cfg path you have to enter it by hand |
@suikammd And, by the way, according to your description, I guess your ZCU104 doesn't have network access? |
@eleICoto yes, but network access a necessity? I add those lines in cfg file. CONFIG_CMA=y CONFIG_DMA_CMA=y CONFIG_XILINX_DMAENGINES=y CONFIG_XILINX_AXIDMA=y CONFIG_XILINX_AXIVDMA=y CONFIG_DMA_SHARED_BUFFER=y Thanks very much |
@suikammd That depends on you, but for sure there is something lack in your device tree setting, follow this page https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842279/Build+Device+Tree+Blob |
@eleICoto I do enable dma using petalinux-config -c kernel, but it does not show up in the cfg file you metioned. |
@suikammd Yes, after you finfish enable process, you need to save you config, in the bottom of menuconfig, there is a save tag, enter it and modify .cfg path |
@eleICoto yes, I config the kernel, saved the settings but those settings still not show up in cfg file, so I just add those |
@suikammd Alright |
@suikammd It seems like you have change your bd to two dma design, but you have not change your dma |
@suikammd And there is something wrong with your axidma_chrdev |
@suikammd log.log is the log file after you insmod? |
@suikammd ahhhh 40 in decimal...... not hex |
@eleICoto My lab mate says he set 40 in decimal... |
@suikammd according to device tree file you send to me |
@suikammd Do you succeed? I follow the eleICoto said,but I got this log when I insmod and run dmesg root@xdmatest:~# dmesg [ 0.000000] Booting Linux on physical CPU 0x0 |
@honorpeter it seems like you have succeeded someway but i have no idea how this kind message showed up |
@honorpeter I couldn't even insmod the driver...Could you tell me what you do before you insmod the driver. |
@suikammd if you can, ask your lab mate to provide you the bitstream in sdk project. |
@eleICoto Than you . but [ 54.067511] xilinx_axidma: loading out-of-tree module taints kernel. why? |
|
@bperez77 when I follow you step and insmod the driver on zcu102 , I find an log and Benchmark is ok,may be as warning. but is it a matter? Starting udev root@xdmatest:~# insmod /lib/modules/4.14.0-xilinx-v2018.2/extra/xilinx-axidma.ko Using transmit channel 0 and receive channel 1. DMA Timing Statistics: But test is ok, how can I do to modify the petalinux config to avoid the issue.xilinx_axidma: loading out-of-tree module taints kernel. |
@honorpeter where is your .ko file located at? Did this step familiar with you? petalinux-config rootfs |
@honorpeter I just followed what the author said. @eleICoto He already gave me the bitstream file. |
@suikammd He may give you hdf. I think you should create a new project by petalinux and followed what the author said you will succeed. |
Only do this can't avoid the "loading out-of-tree module taints kernel" warning. I just did . |
@honorpeter Would you please upload your kernel config file as I mentioned before, I think there might be some config about module sig that has not been enable. |
@eleICoto As #94 (comment) |
In petalinux 2018.2 petalinux-config -c kernel → Device Drivers → DMA Engine support ->hlep CONFIG_DMADEVICES: |
@eleICoto |
@honorpeter you mean follow this issue 24?
|
@honorpeter Yes just upload this file ./project-spec/meta-plnx-generated/recipes-kernel/linux/configs/plnx_kernel.cfg |
@eleICoto CMACONFIG_CMA=y In DMACONFIG_DMA_ENGINE=y May be it's all ok.But can't see any about DMA in ./project-spec/meta-plnx-generated/recipes-kernel/linux/configs/plnx_kernel.cfg. |
1.first creat petalinux project |
This is ./project-spec/meta-plnx-generated/recipes-kernel/linux/configs/plnx_kernel.cfg CONFIG_MTD=y can't see any about dma and axi dma ,only see #98 (comment) |
@honorpeter Thanks! This is my system-user.dtsi: |
@suikammd Yes I had test the example successfully . You should copy all in the pl.dtsi to the system-conf.dtsi and change the channel's Id .like #98 (comment) |
@honorpeter Hi, thanks for reply. /* * CAUTION: This file is automatically generated by Xilinx. * Version: * Today is: Wed Jun 19 14:16:49 2019 */ /dts-v1/; /include/ "zynqmp.dtsi" /include/ "zynqmp-clk-ccf.dtsi" /include/ "zcu104-revc.dtsi" /include/ "pl.dtsi" /include/ "pcw.dtsi" / { chosen { bootargs = "earlycon clk_ignore_unused"; stdout-path = "serial0:115200n8"; }; aliases { ethernet0 = &gem3; i2c0 = &i2c1; serial0 = &uart0; serial1 = &uart1; spi0 = &qspi; }; memory { device_type = "memory"; reg = <0x0 0x0 0x0 0x7ff00000>; }; }; #include "system-user.dtsi" Do you know how to solve it? |
@suikammd You should learn https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841738/Getting+Started |
@honorpeter Thanks, it works |
I'm using two dma in my design
my system-user.dtsi in petalinux is like this
my pl.dtsi in petalinux is like this
the problem i'm facing is like this
it seems like module cant find slave channel
my bd is like this
besides i'm using ZCU104
The text was updated successfully, but these errors were encountered: