Re: [PATCH] serial: 8250_dma: sync regions for device before transfer

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

 



Hi Andy,

On Thu, Jun 12, 2014 at 06:51:18PM +0300, Andy Shevchenko wrote:
> The documentation says that we have to sync DMA regions after CPU access and
> before any DMA transfer is going on. The actual DMA for buffer happens when we
> call dmaengine_submit() (*). The original code syncs data after this call which
> might lead to the corrupted data in actual stream.
> 
> (*) Accordingly to the Documentation/dmaengine.txt the dmaengine_submit call
> shouldn't do the transfer, but some DMA controller drivers abuse this rule.
> Thus, we would like to have this patch until all DMA controller drivers will be
> fixed. Even after that it will be harmless.

It's probable better that we directly fix the DMA engine drivers
instead of working around the issue here.


Thanks,

-- 
heikki
--
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