Skip to content

Assorted DMA mapping tweaks

Robin Murphy linux-arch linux-arm-kernel linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4dmapool: Fix overflow condition in pool_find_pagemm/dmapool.c+1 -10 replies
2/4dma-mapping: Tidy up dma_parms default handlinginclude/linux/dma-mapping.h+10 -70 replies
3/4dma-debug: Check nents in dma_sync_sg*lib/dma-debug.c+8 -00 replies
4/4dma-debug: Allow poisoning nonzero allocationsinclude/asm-generic/dma-mapping-common.h include/linux/dma-debug.h include/linux/poison.h +2 more+23 -45 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchMarek SzyprowskiSumit Semwal
1/4
2/4A-b R-b
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] Assorted DMA mapping tweaks

Hi Andrew,

This is a miscellany of fixes and tweaks to the common DMA mapping code which I've been collecting. They don't strictly depend on each other, but I figure I may as well send them all together for the sake of explaining them in one place:

#1 is a straightforward and hopefully obvious bugfix.
#2 has been posted before but I subsequently forgot to follow up on it.
It's still possible to hit this at least on arm64 systems, with the SWIOTLB/pl330 combination blowing up just running dmatest.
#3 follows on from a recent discussion about dma_sync_sg[0]; there's
already a related patch in -next from Sakari clarifying the docs.
#4 seemed worth posting now that the recent rework means it no longer
has to be a sprawling touch-all-the-architectures patch for something so small.

Thanks,
Robin.

[0]:http://thread.gmane.org/gmane.linux.kernel/2043117

Robin Murphy (4):
dmapool: Fix overflow condition in pool_find_page
dma-mapping: Tidy up dma_parms default handling
dma-debug: Check nents in dma_sync_sg*
dma-debug: Allow poisoning nonzero allocations

 include/asm-generic/dma-mapping-common.h |  2 +-
 include/linux/dma-debug.h                |  6 ++++--
 include/linux/dma-mapping.h              | 17 ++++++++++-------
 include/linux/poison.h                   |  3 +++
 lib/Kconfig.debug                        | 10 ++++++++++
 lib/dma-debug.c                          | 14 +++++++++++++-
 mm/dmapool.c                             |  2 +-
 7 files changed, 42 insertions(+), 12 deletions(-)
Signature · 1 line
1.9.1