Skip to content

swiotlb: Cleanup and consistency fix

Florian Fainelli linux-iommu lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2swiotlb: Group identical cleanup in swiotlb_cleanup()kernel/dma/swiotlb.c+10 -81 reply
2/2swiotlb: Return consistent SWIOTLB segments/nr_tblkernel/dma/swiotlb.c+4 -41 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchChristoph Hellwig
1/2R-b
2/2R-b

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/2] swiotlb: Cleanup and consistency fix

Hi Christoph,

Still with my contrived memory layout where there is no physical memory the kernel can use below 4GB, it was possible to fail swiotlb_init(), but still not hit swiotlb_map_single() since all peripherals have a DMA_BIT_MASK() that is within the remaining addressable physical memory.

The second path could be backported to stable, but for the same reasons as the one we had just discussed before, this requires a very contrived test case that is not necessarily realistic or would warrant a stable backport IMHO.

Thanks!

Florian Fainelli (2):
swiotlb: Group identical cleanup in swiotlb_cleanup()
swiotlb: Return consistent SWIOTLB segments/nr_tbl

 kernel/dma/swiotlb.c | 26 ++++++++++++++------------
 1 file changed, 14 insertions(+), 12 deletions(-)
Signature · 6 lines
2.17.1

_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu