Re: [RFC PATCH 3/6] spi: spi-s3c64xx: Add coherent buffers for DMA transfers

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

 



On Mon, Sep 09, 2013 at 04:09:23PM +0200, Lukasz Czerwinski wrote:
> The spi-s3c64xx currently doesn't support transfers from non-contiguous
> client buffers.
> 
> This patch adds two coherent buffers which allow transfers from
> non-contiguous client buffers without extra coherent memory allocation
> in the client driver.
> 
> Buffer size is hardcoded to 16kB for Tx/Rx. Client drivers shouldn't
> exceed that value.

This seems like a very low limit to have, consider things like firmware
downloads for example.  It seems reasonable to have a preallocated small
buffer but there should be some fallback for larger transfer sizes.

I also didn't notice any checks in the code for the length of transfers
so this will corrupt memory if a client driver tries to transfer more
than the preallocated buffer as things stand.

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux SoC Development]     [Linux Rockchip Development]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Linux SCSI]     [Yosemite News]

  Powered by Linux