Re: [PATCH 0/2] Implement DMA support for the sh-sci.c serial driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Feb 18, 2010 at 05:29:59PM +0100, Guennadi Liakhovetski wrote:
> The two patches in this series add DMA support to the sh-sci SCI(F) serial 
> driver. The worst problem is partial reception. Since we don't know in 
> advance how many bytes we're going to receive, we submit a DMA buffer 
> _and_ enable the Rx interrupt. When data arrives, we get an interrupt and 
> the data is written into DMA buffers. In the ISR we then set a timeout, if 
> within this time we get no DMA completion callback, we have a partial 
> buffer. Unfortunately, dmaengine API currently doesn't support retrieving 
> partially received DMA buffers, therefore we have to hijack the 
> .device_terminate_all() call to collect the data. A better approach would 
> be to add a stop-transfer / collect-partial call to the API.
> 
I've rolled these patches in as well, with some minor cleanups and
dependency fixups.

As none of the CPUs presently enable this yet, this will remain fairly
experimental, but it's enough to get people playing with it under 2.6.34.
We'll have to do some more iterative changes for 2.6.35, as well as
gradually getting it wired up on more CPUs, in addition to making it
configurable per-channel. This also gives us the time to get the
dmaengine API extensions worked out with Dan.
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux