-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
spi-bcm2835: merge upstream patches allowing DMA transfers for SPI under some circumstances #1036
Comments
Please create one or more pull requests. |
The last time (see #930) @popcornmix cherry-picked the patches from upstream. |
As long as commits are cherry-picked from upstream (rather that just being similar to) then there shouldn't be an issue. Did you want this on 4.0 or 4.1? |
Whichever you feel more comfortable with... |
A PR will be useful (to also include the DT change). Can you PR to 4.1. If there are no issues it can be ported back to 4.0. |
I will be on a business trip for the next 2.5 weeks and will not find the time until I return. |
@popcornmix, @notro: should we enable dma by default or should we start with an overlay to enable dma? I wonder because I am just running the cherry-picking of the patches and obviously the dma-channels needs to get configured in the device tree to be useful... |
Assuming you've been running with DMA enabled without problems, I would say enable it by default on 4.1, but as with the sdhost overlay we can add a DT parameter to disable it. |
Should I merge against 4.0 or 4.1? |
Notro has been doing some testing and I have used it with a fbtft device showing big bunny for 48 hours without any issues (using naked upstream 4.1) |
4.0 will go to far more users (through rpi-update almost immediately and through apt-get upgrade next time we bump firmware package). |
I usually prefer to play safe, especially with the number of users this kernel have, so I suggest we add the patches to both 4.0 and 4.1, but we only enable DMA in Device Tree on 4.1. This way we get some testing before we hit the masses, and those that are eager to use it early on 4.0 can just make an overlay to enable DMA. |
Created pull request vs. 4.0.y with an overlay to enable DMA mode - closing this ticket. |
Please merge the following Patches to drivers/spi/spi-bcm2835.c into the foundation kernel:
Please also note that the device-tree needs to get added the dma tags to spi0:
If you are unsure then add a device-tree-overlay to add it (or provide one to remove it as a fallback)
The biggest "winner" with this is the tftfb driver done by @notro...
The text was updated successfully, but these errors were encountered: