* One question about 8250 UART driver
@ 2010-08-17 1:37 Yong Wang
2010-08-17 8:16 ` Alan Cox
0 siblings, 1 reply; 3+ messages in thread
From: Yong Wang @ 2010-08-17 1:37 UTC (permalink / raw)
To: Greg Kroah-Hartman, Alan Cox, Andrew Morton, Ralf Baechle,
Manuel Lauss
Cc: linux-serial, linux-kernel, Masayuki Ohtake,
Khor, Andrew Chih Howe
Hi all,
We have a PCI based UART controller that is compatible with the existing
8250 serial driver in most aspects. However, one exception is that our
UART controller can take advantage of the onboard DMA contoller to
achieve higher throughput. Could you please share your insights about
what is the proper way to add such DMA support into existing 8250 driver?
Thanks
-Yong
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: One question about 8250 UART driver
2010-08-17 1:37 One question about 8250 UART driver Yong Wang
@ 2010-08-17 8:16 ` Alan Cox
2010-08-17 13:24 ` Ralf Baechle
0 siblings, 1 reply; 3+ messages in thread
From: Alan Cox @ 2010-08-17 8:16 UTC (permalink / raw)
To: Yong Wang
Cc: Greg Kroah-Hartman, Andrew Morton, Ralf Baechle, Manuel Lauss,
linux-serial, linux-kernel, Masayuki Ohtake,
Khor, Andrew Chih Howe
On Tue, 17 Aug 2010 09:37:34 +0800
Yong Wang <yong.y.wang@linux.intel.com> wrote:
> Hi all,
>
> We have a PCI based UART controller that is compatible with the
> existing 8250 serial driver in most aspects. However, one exception
> is that our UART controller can take advantage of the onboard DMA
> contoller to achieve higher throughput. Could you please share your
> insights about what is the proper way to add such DMA support into
> existing 8250 driver?
I'd say the same as I said to the other folks who asked this - create a
new driver. All the DMA based 8250 devices have differing DMA engines
and it'll become unmanagable in the existing driver.
Once we can see which bits of the existing code are useful for the DMA
8250-style devices we can then create an 8250-lib.c which contains the
bits that are useful to 8250 and to non standard 8250-like devices.
Alan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: One question about 8250 UART driver
2010-08-17 8:16 ` Alan Cox
@ 2010-08-17 13:24 ` Ralf Baechle
0 siblings, 0 replies; 3+ messages in thread
From: Ralf Baechle @ 2010-08-17 13:24 UTC (permalink / raw)
To: Alan Cox
Cc: Yong Wang, Greg Kroah-Hartman, Andrew Morton, Manuel Lauss,
linux-serial, linux-kernel, Masayuki Ohtake,
Khor, Andrew Chih Howe
On Tue, Aug 17, 2010 at 09:16:22AM +0100, Alan Cox wrote:
> > We have a PCI based UART controller that is compatible with the
> > existing 8250 serial driver in most aspects. However, one exception
> > is that our UART controller can take advantage of the onboard DMA
> > contoller to achieve higher throughput. Could you please share your
> > insights about what is the proper way to add such DMA support into
> > existing 8250 driver?
>
> I'd say the same as I said to the other folks who asked this - create a
> new driver. All the DMA based 8250 devices have differing DMA engines
> and it'll become unmanagable in the existing driver.
>
> Once we can see which bits of the existing code are useful for the DMA
> 8250-style devices we can then create an 8250-lib.c which contains the
> bits that are useful to 8250 and to non standard 8250-like devices.
An existing example is drivers/serial/ioc3_serial.c. IOC3 is an SGI
custom chip which is only being used in SGI systems. It has a PCI
master and 486-style slave bus to which a SuperIO chip is connected.
The IOC3 can either be configured to use the chip in legacy mode; then
the standard 8250 driver will work fine. It also support a DMA mode
with receive and transmit rings which make it similar to a network chip.
Ralf
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-08-17 13:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-17 1:37 One question about 8250 UART driver Yong Wang
2010-08-17 8:16 ` Alan Cox
2010-08-17 13:24 ` Ralf Baechle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).