diff options
| author | Huacai Chen <[email protected]> | 2017-11-21 13:23:38 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2017-11-22 04:05:57 +0000 |
| commit | 90addc6b3c9cda0146fbd62a08e234c2b224a80c (patch) | |
| tree | 7cdc0b3f4b87d26c8f91125edaea8723764526bf /tools/perf/scripts/python | |
| parent | scsi: dma-mapping: always provide dma_get_cache_alignment (diff) | |
| download | kernel-90addc6b3c9cda0146fbd62a08e234c2b224a80c.tar.gz kernel-90addc6b3c9cda0146fbd62a08e234c2b224a80c.zip | |
scsi: use dma_get_cache_alignment() as minimum DMA alignment
In non-coherent DMA mode, kernel uses cache flushing operations to
maintain I/O coherency, so scsi's block queue should be aligned to the
value returned by dma_get_cache_alignment(). Otherwise, If a DMA buffer
and a kernel structure share a same cache line, and if the kernel
structure has dirty data, cache_invalidate (no writeback) will cause
data corruption.
Cc: [email protected]
Signed-off-by: Huacai Chen <[email protected]>
[hch: rebased and updated the comment and changelog]
Signed-off-by: Christoph Hellwig <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
