Skip to content

spi-bcm2835: merge upstream patches allowing DMA transfers for SPI under some circumstances #1036

Closed

Description

@msperl

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:

        dmas = <&dma 6>, <&dma 7>;
        dma-names = "tx", "rx";

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...

Activity

  1. pelwell commented on Jun 25, 2015

    @pelwell
    Contributor

    Please create one or more pull requests.

  2. msperl commented on Jun 25, 2015

    @msperl
    ContributorAuthor

    The last time (see #930) @popcornmix cherry-picked the patches from upstream.
    Otherwise you may get merge conflicts later when you merge the upstream patches.

  3. popcornmix commented on Jun 25, 2015

    @popcornmix
    Collaborator

    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?

  4. msperl commented on Jun 26, 2015

    @msperl
    ContributorAuthor

    Whichever you feel more comfortable with...
    Note that (most of) the code does not become active until the settings in the device-tree are done...

  5. popcornmix commented on Jun 26, 2015

    @popcornmix
    Collaborator

    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.

  6. msperl commented on Jun 28, 2015

    @msperl
    ContributorAuthor

    I will be on a business trip for the next 2.5 weeks and will not find the time until I return.

  7. msperl commented on Jul 21, 2015

    @msperl
    ContributorAuthor

    @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...

  8. pelwell commented on Jul 21, 2015

    @pelwell
    Contributor

    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.

  9. msperl commented on Jul 21, 2015

    @msperl
    ContributorAuthor

    Should I merge against 4.0 or 4.1?
    I would currently be merging against 4.0...

  10. msperl commented on Jul 21, 2015

    @msperl
    ContributorAuthor

    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)

  11. popcornmix commented on Jul 21, 2015

    @popcornmix
    Collaborator

    4.0 will go to far more users (through rpi-update almost immediately and through apt-get upgrade next time we bump firmware package).
    If you believe the change is beneficial and unlikely to cause regressions then PR to 4.0 (I can cherry pick to 4.1/4.2).
    If you believe the change may cause issues then a PR to 4.1 is more cautious as fewer users are running that kernel (although latest OpenELEC and OSMC will be using 4.1, so there are quite a lot of users).

  12. notro commented on Jul 21, 2015

    @notro
    Contributor

    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.
    If there's no complaints, we can enable it on 4.0 later.

  13. msperl commented on Jul 22, 2015

    @msperl
    ContributorAuthor

    Created pull request vs. 4.0.y with an overlay to enable DMA mode - closing this ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions