Skip to content
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

No dma_proxy_tx and dma_proxy_rx under /dev #3

Open
muuzoo opened this issue Nov 27, 2022 · 1 comment
Open

No dma_proxy_tx and dma_proxy_rx under /dev #3

muuzoo opened this issue Nov 27, 2022 · 1 comment

Comments

@muuzoo
Copy link

muuzoo commented Nov 27, 2022

https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/1027702787/Linux+DMA+From+User+Space+2.0

I followed "Linux Dma From User Space 2" tutorial.and compiled the kernel module and the application without any problems. But node is not created for rx and tx under /dev directory. In dmesg I can see DMA detected. My petalinux verison is 2022.1

fz3dma:/mnt/usb# dmesg | grep -i dma
[ 0.000000] DMA32 [mem 0x0000000000000000-0x00000000ffffffff]
[ 0.801761] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
[ 0.807863] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 3.119533] iommu: DMA domain TLB invalidation policy: strict mode
[ 5.259805] xilinx-zynqmp-dma fd500000.dma-controller: ZynqMP DMA driver Probe success
[ 5.267896] xilinx-zynqmp-dma fd510000.dma-controller: ZynqMP DMA driver Probe success
[ 5.275976] xilinx-zynqmp-dma fd520000.dma-controller: ZynqMP DMA driver Probe success
[ 5.284072] xilinx-zynqmp-dma fd530000.dma-controller: ZynqMP DMA driver Probe success
[ 5.292165] xilinx-zynqmp-dma fd540000.dma-controller: ZynqMP DMA driver Probe success
[ 5.300255] xilinx-zynqmp-dma fd550000.dma-controller: ZynqMP DMA driver Probe success
[ 5.308341] xilinx-zynqmp-dma fd560000.dma-controller: ZynqMP DMA driver Probe success
[ 5.316421] xilinx-zynqmp-dma fd570000.dma-controller: ZynqMP DMA driver Probe success
[ 5.324568] xilinx-zynqmp-dma ffa80000.dma-controller: ZynqMP DMA driver Probe success
[ 5.332655] xilinx-zynqmp-dma ffa90000.dma-controller: ZynqMP DMA driver Probe success
[ 5.340737] xilinx-zynqmp-dma ffaa0000.dma-controller: ZynqMP DMA driver Probe success
[ 5.348812] xilinx-zynqmp-dma ffab0000.dma-controller: ZynqMP DMA driver Probe success
[ 5.356911] xilinx-zynqmp-dma ffac0000.dma-controller: ZynqMP DMA driver Probe success
[ 5.364996] xilinx-zynqmp-dma ffad0000.dma-controller: ZynqMP DMA driver Probe success
[ 5.373075] xilinx-zynqmp-dma ffae0000.dma-controller: ZynqMP DMA driver Probe success
[ 5.381157] xilinx-zynqmp-dma ffaf0000.dma-controller: ZynqMP DMA driver Probe success
[ 5.389471] xilinx-zynqmp-dpdma fd4c0000.dma-controller: Xilinx DPDMA engine is probed
[ 5.603420] mmc1: SDHCI controller on ff170000.mmc [ff170000.mmc] using ADMA 64-bit
[ 5.612961] mmc0: SDHCI controller on ff160000.mmc [ff160000.mmc] using ADMA 64-bit
[ 5.888179] systemd[1]: Hostname set to .

And I can load dma-proxy module with modpreobe command without error.

fz3dma:/mnt/usb# modprobe dma-proxy
[ 225.995027] dma_proxy: loading out-of-tree module taints kernel.
fz3dma:/mnt/usb# lsmod
Module Size Used by
dma_proxy 16384 0
uio_pdrv_genirq 16384 0

Here is the ls of /dev
image

@Livius90
Copy link

Did you make a device-tree overlay for dma-proxy? Firstly it need to be loaded then you can use modprobe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants