Skip to content

PL011: no DMA platform data #396

Closed
Closed

Description

@jansendup

in drivers/tty/serial/amba-pl011.c uap->port.dev->platform_data is NULL on the bcm2835 arch causing DMA probe to fail. thus no DMA on the uart module.

Activity

  1. popcornmix commented on Oct 10, 2013

    @popcornmix
    Collaborator

    Is there an upstream commit I can pull in?

  2. jansendup commented on Oct 10, 2013

    @jansendup
    Author

    Not quite sure where to look. Maybe you can check.
    In arch/arm/mach-bcm2708/bcm2708.c line 242: "AMBA_DEVICE(uart0, "dev:f1", UART0, NULL);"
    The last parameter of AMBA_DEVICE should be a pointer to a "struct amba_pl011_data" that is defined in include/linux/amba/serial.h line 201.

  3. popcornmix commented on Oct 10, 2013

    @popcornmix
    Collaborator

    It is not possible to dma from/to the uart, so I think a DMA probe failure is correct.

  4. P33M commented on Oct 10, 2013

    @P33M
    Contributor

    In the BCM2835 peripherals datasheet, UART1 is explicitly defined as having no DMA support. UART0 has a DREQ line entry for tx/rx in the DMA controller section - DREQ 12/14 respectively.

    Are there free DMA channels for use by the UART?

  5. jansendup commented on Oct 10, 2013

    @jansendup
    Author

    I quickly tried setting filter_fn in struct dma_chan *dma_request_channel(dma_cap_mask_t mask,dma_filter_fn filter_fn,void *filter_param); to NULL. If I understand it correctly, dma_request_channel should just then return any available channel. It returned NULL so it might be that there aren't any available channels. dma_request_slave_channel(dev, "tx") also returned NULL.

  6. jansendup commented on Oct 10, 2013

    @jansendup
    Author

    It seems that there is no dmaengine driver for the BCM2835 so thats probably why the last parameter in arch/arm/mach-bcm2708/bcm2708.c line 242: "AMBA_DEVICE(uart0, "dev:f1", UART0, NULL);" is NULL.

  7. P33M commented on Oct 11, 2013

    @P33M
    Contributor

    It appears you are correct; there are no dma engine drivers for either the bcm2708 port (this repo) or the upstream bcm2835 port. It looks like several people have had a go but not upstreamed it.

    It would be necessary to get a platform DMA driver implemented before adding support to the peripheral drivers (i2c/spi/uart).

  8. popcornmix commented on Nov 18, 2013

    @popcornmix
    Collaborator

    @jansendup
    I assume there is nothing to change here - okay to close?

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