Linux Serial subsystem development
 help / color / mirror / Atom feed
* amba-pl011 complains about DMA for bcm2835 where it is not supported
@ 2014-10-27 23:44 Piotr Król
  2014-10-27 23:59 ` Russell King - ARM Linux
  0 siblings, 1 reply; 4+ messages in thread
From: Piotr Król @ 2014-10-27 23:44 UTC (permalink / raw)
  To: linux-serial; +Cc: jslaby, gregkh, linux

Hi all,
according to BCM2835 ARM Peripherals spec DMA is optional functionality
for ARM PL011 UART and it is not supported on this SoC. It looks like
amba-pl011 search for device tree property (dma-names) unconditionally,
what leads to error message:

of_dma_request_slave_channel: dma-names property of node '/soc/uart@7e201000' missing or empty
uart-pl011 20201000.uart: no DMA platform data

I assume that if it is possible that amba-pl011 can be without DMA we
should check if DMA is supported and then try to read properties. Is
there any known method for checking dma support ? If yes that I would be
glad for any pointers.

Let me know if I should ignore/accept this error message or there is
some code fix needed.

Thanks,
Piotr Król
~
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: amba-pl011 complains about DMA for bcm2835 where it is not supported
  2014-10-27 23:44 amba-pl011 complains about DMA for bcm2835 where it is not supported Piotr Król
@ 2014-10-27 23:59 ` Russell King - ARM Linux
  2014-10-28  0:09   ` Piotr Król
  0 siblings, 1 reply; 4+ messages in thread
From: Russell King - ARM Linux @ 2014-10-27 23:59 UTC (permalink / raw)
  To: Piotr Król; +Cc: linux-serial, jslaby, gregkh

On Tue, Oct 28, 2014 at 12:44:31AM +0100, Piotr Król wrote:
> Hi all,
> according to BCM2835 ARM Peripherals spec DMA is optional functionality
> for ARM PL011 UART and it is not supported on this SoC. It looks like
> amba-pl011 search for device tree property (dma-names) unconditionally,
> what leads to error message:
> 
> of_dma_request_slave_channel: dma-names property of node '/soc/uart@7e201000' missing or empty
> uart-pl011 20201000.uart: no DMA platform data
> 
> I assume that if it is possible that amba-pl011 can be without DMA we
> should check if DMA is supported and then try to read properties. Is
> there any known method for checking dma support ? If yes that I would be
> glad for any pointers.
> 
> Let me know if I should ignore/accept this error message or there is
> some code fix needed.

A great many implementations of PL011 do not have DMA support (some have
DMA support but its well broken.)  The driver has always supported PIO
mode, and continues to do so.

-- 
FTTC broadband for 0.8mile line: currently at 9.5Mbps down 400kbps up
according to speedtest.net.
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: amba-pl011 complains about DMA for bcm2835 where it is not supported
  2014-10-27 23:59 ` Russell King - ARM Linux
@ 2014-10-28  0:09   ` Piotr Król
  2014-10-28  0:16     ` Russell King - ARM Linux
  0 siblings, 1 reply; 4+ messages in thread
From: Piotr Król @ 2014-10-28  0:09 UTC (permalink / raw)
  To: Russell King - ARM Linux; +Cc: linux-serial, jslaby, gregkh

On Mon, Oct 27, 2014 at 11:59:42PM +0000, Russell King - ARM Linux wrote:
> On Tue, Oct 28, 2014 at 12:44:31AM +0100, Piotr Król wrote:
> > Hi all,
> > according to BCM2835 ARM Peripherals spec DMA is optional functionality
> > for ARM PL011 UART and it is not supported on this SoC. It looks like
> > amba-pl011 search for device tree property (dma-names) unconditionally,
> > what leads to error message:
> > 
> > of_dma_request_slave_channel: dma-names property of node '/soc/uart@7e201000' missing or empty
> > uart-pl011 20201000.uart: no DMA platform data
> > 
> > I assume that if it is possible that amba-pl011 can be without DMA we
> > should check if DMA is supported and then try to read properties. Is
> > there any known method for checking dma support ? If yes that I would be
> > glad for any pointers.
> > 
> > Let me know if I should ignore/accept this error message or there is
> > some code fix needed.
> 
> A great many implementations of PL011 do not have DMA support (some have
> DMA support but its well broken.)  The driver has always supported PIO
> mode, and continues to do so.
> 

Driver works fine but IMHO this error message confuse user. Should I assume
that error message is expected and we should not avoid it by trying to
check if DMA is supported ?

BTW above error message do not indicate that DMA is not supported but
indicates that something is wrong with DT, what in this case is not true.

Thanks,
Piotr Król


--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: amba-pl011 complains about DMA for bcm2835 where it is not supported
  2014-10-28  0:09   ` Piotr Król
@ 2014-10-28  0:16     ` Russell King - ARM Linux
  0 siblings, 0 replies; 4+ messages in thread
From: Russell King - ARM Linux @ 2014-10-28  0:16 UTC (permalink / raw)
  To: Piotr Król; +Cc: linux-serial, jslaby, gregkh

On Tue, Oct 28, 2014 at 01:09:23AM +0100, Piotr Król wrote:
> On Mon, Oct 27, 2014 at 11:59:42PM +0000, Russell King - ARM Linux wrote:
> > On Tue, Oct 28, 2014 at 12:44:31AM +0100, Piotr Król wrote:
> > > Hi all,
> > > according to BCM2835 ARM Peripherals spec DMA is optional functionality
> > > for ARM PL011 UART and it is not supported on this SoC. It looks like
> > > amba-pl011 search for device tree property (dma-names) unconditionally,
> > > what leads to error message:
> > > 
> > > of_dma_request_slave_channel: dma-names property of node '/soc/uart@7e201000' missing or empty
> > > uart-pl011 20201000.uart: no DMA platform data
> > > 
> > > I assume that if it is possible that amba-pl011 can be without DMA we
> > > should check if DMA is supported and then try to read properties. Is
> > > there any known method for checking dma support ? If yes that I would be
> > > glad for any pointers.
> > > 
> > > Let me know if I should ignore/accept this error message or there is
> > > some code fix needed.
> > 
> > A great many implementations of PL011 do not have DMA support (some have
> > DMA support but its well broken.)  The driver has always supported PIO
> > mode, and continues to do so.
> > 
> 
> Driver works fine but IMHO this error message confuse user. Should I assume
> that error message is expected and we should not avoid it by trying to
> check if DMA is supported ?
> 
> BTW above error message do not indicate that DMA is not supported but
> indicates that something is wrong with DT, what in this case is not true.

Unfortunately, the DT lobby believe that their way is the only way, and
that drivers should always complain if DT stuff is missing.  They seem
to loose sight of what behaviour an "optional" property should have.
I've seen this happen several times now, and I've commented on patches I
saw today which had made driver initialisation /fail/ if various optional
properties weren't specified!

-- 
FTTC broadband for 0.8mile line: currently at 9.5Mbps down 400kbps up
according to speedtest.net.
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-10-28  0:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-27 23:44 amba-pl011 complains about DMA for bcm2835 where it is not supported Piotr Król
2014-10-27 23:59 ` Russell King - ARM Linux
2014-10-28  0:09   ` Piotr Król
2014-10-28  0:16     ` Russell King - ARM Linux

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox