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

Change DMA from 5 to 10 #90

Open
tsuckow opened this issue Aug 12, 2018 · 5 comments
Open

Change DMA from 5 to 10 #90

tsuckow opened this issue Aug 12, 2018 · 5 comments

Comments

@tsuckow
Copy link

tsuckow commented Aug 12, 2018

In the 3B+ it seems DMA 5 is shared with sd card operations. The new accepted behaviour is to use DMA 10.

@usefulthink
Copy link
Member

usefulthink commented Aug 13, 2018

@tsuckow do you have any reference for this? I am always completely confused when it comes to DMA numbers and never found any reference of their usage..

@joakimunge
Copy link
Contributor

@usefulthink As far as I understand, he is correct. This is from jgarff's rpi_ws281x lib:

Important warning about DMA channels
You must make sure that the DMA channel you choose to use for the LEDs is not already in use by the operating system.
For example, using DMA channel 5 will cause filesystem corruption on the Raspberry Pi 3 Model B.
The default DMA channel (10) should be safe for the Raspberry Pi 3 Model B, but this may change in future software releases.

@usefulthink
Copy link
Member

The thing is, everything I found so far were single data-points, like the one you quoted. And that is true for a specific OS-release on a specific device. What I would love to find is something more general, like an overview of how dma-numbers are used so we can ideally select one dynamically.

Also: the change from 5 to 10 came based on this issue, so it's not like that any choice will be without problem for everyone.

Not sure how to proceed here.

@tsuckow
Copy link
Author

tsuckow commented Aug 29, 2018

I did find a reference somewhere implying there is a proper way to reserve a dma controller for use, the number would potentially change each run. But I didn't find concrete code. I would also say that should be done in the native library and not in this wrapper.

@xoblite
Copy link

xoblite commented Jan 2, 2019

FYI there's an alternative way to change the DMA channel per your needs. BR//KHH

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

4 participants