You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If u-dma-buf is created by the argument of the insmod command, the value of dma-coherent is set to the Linux Kernel default value. In principle, it is impossible to change this value later.
However, if you add a u-dma-buf under a bus (e.g., simple-bus such as /soc) using the device tree, adding a property called dma-coherent to the u-dma-buf node will set dma-coherent to 1 and adding the property dma-noncoherent to the u-dma-buf node will set dma-coherent to 0.
See of_dma_configure() and of_dma_is_coherent() in Linux Kernel for details.
Hi,
I'm using the u-dma-buf module on an OS with Linux kernel version 5.15.136, running on an ARM Cortex-A78AE CPU.
I install the module using the insmod command and plan to use udmabuf as the PCI RX/TX DMA buffer.
However, I encountered an issue: when I load the module with insmod, the default value of dma-coherent is set to 0.
How can I change the value of dma-coherent?
P.S. I'm a newcomer trying to figure this out. Any guidance would be greatly appreciated.
The text was updated successfully, but these errors were encountered: