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
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.
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.
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.
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.
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).
Activity
popcornmix commentedon Oct 10, 2013
Is there an upstream commit I can pull in?
jansendup commentedon Oct 10, 2013
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.
popcornmix commentedon Oct 10, 2013
It is not possible to dma from/to the uart, so I think a DMA probe failure is correct.
P33M commentedon Oct 10, 2013
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?
jansendup commentedon Oct 10, 2013
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.
jansendup commentedon Oct 10, 2013
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.
P33M commentedon Oct 11, 2013
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).
popcornmix commentedon Nov 18, 2013
@jansendup
I assume there is nothing to change here - okay to close?
cpufreq: Initialize governor for a new policy under policy->rwsem
Bluetooth: Check state in l2cap_disconnect_rsp
Bluetooth: Check state in l2cap_disconnect_rsp
Bluetooth: Check state in l2cap_disconnect_rsp
x86/hyperv: Protect set_hv_tscchange_cb() against getting preempted
x86/hyperv: Protect set_hv_tscchange_cb() against getting preempted
x86/hyperv: Protect set_hv_tscchange_cb() against getting preempted