lkml.org 
[lkml]   [2019]   [Jan]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/4] dma-buf: add support for mapping with dma mapping attributes
On Mon, Jan 21, 2019 at 11:44:10AM -0800, Liam Mark wrote:
> The main use case is for allowing clients to pass in
> DMA_ATTR_SKIP_CPU_SYNC in order to skip the default cache maintenance
> which happens in dma_buf_map_attachment and dma_buf_unmap_attachment. In
> ION the buffers aren't usually accessed from the CPU so this allows
> clients to often avoid doing unnecessary cache maintenance.

This can't work. The cpu can still easily speculate into this area.
Moreover in general these operations should be cheap if the addresses
aren't cached.

\
 
 \ /
  Last update: 2019-01-21 22:30    [W:0.077 / U:13.276 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site