RDMA: Enable operation with DMA debug enabled
Status from this message: Applied to dma-mapping-fixes. Thanks!
Get series with b4
b4 am [email protected] change-id 20260305-dma-debug-overlap-21487c3fa02cVersions newest first
- v3 Latest8 patches 7 repliesApplied
- v28 patches 8 repliesSuperseded
- v13 patches 13 repliesSuperseded
Changes in v3 from the cover letter
- Enriched commit messages and documentation
- Added ROB tags
- Link to v2: https://patch.msgid.link/[email protected]
Patches in v3 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | dma-debug: Allow multiple invocations of overlapping entrieskernel/ | +3 | 0 replies | |
| 2/8 | dma-mapping: handle DMA_ATTR_CPU_CACHE_CLEAN in trace outputinclude/ | +2 | 0 replies | |
| 3/8 | dma-mapping: Clarify valid conditions for CPU cache line overlapDocumentation/ drivers/ include/ +2 more | +25 | 0 replies | |
| 4/8 | dma-mapping: Introduce DMA require coherency attributeDocumentation/ include/ include/ +2 more | +33 | 2 replies | |
| 5/8 | dma-direct: prevent SWIOTLB path when DMA_ATTR_REQUIRE_COHERENT is setkernel/ | +4 | 0 replies | |
| 6/8 | iommu/dma: add support for DMA_ATTR_REQUIRE_COHERENT attributedrivers/ | +17 | 0 replies | |
| 7/8 | RDMA/umem: Tell DMA mapping that UMEM requires coherencydrivers/ | +3 | 0 replies | |
| 8/8 | mm/hmm: Indicate that HMM requires DMA coherencymm/ | +2 | 0 replies |
Reviews trailers per patch
2 of 8 patches have a Reviewed-by or Acked-by.
| Patch | Jason Gunthorpe |
|---|---|
| 1/8 | |
| 2/8 | |
| 3/8 | |
| 4/8 | |
| 5/8 | |
| 6/8 | |
| 7/8 | R-b |
| 8/8 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 0/8] RDMA: Enable operation with DMA debug enabled
Add a new DMA_ATTR_REQUIRE_COHERENT attribute to the DMA API to mark mappings that must run on a DMA‑coherent system. Such buffers cannot use the SWIOTLB path, may overlap with CPU caches, and do not depend on explicit cache flushing.
Mappings using this attribute are rejected on systems where cache side‑effects could lead to data corruption, and therefore do not need the cache‑overlap debugging logic. This series also includes fixes for DMA_ATTR_CPU_CACHE_CLEAN handling.
Thanks.
---
Changes in v3:
- Enriched commit messages and documentation
- Added ROB tags
- Link to v2: https://patch.msgid.link/[email protected]
Changes in v2:
- Added DMA_ATTR_REQUIRE_COHERENT attribute
- Added HMM patch which needs this attribute as well
- Renamed DMA_ATTR_CPU_CACHE_CLEAN to be DMA_ATTR_DEBUGGING_IGNORE_CACHELINES
- Link to v1: https://patch.msgid.link/[email protected]
---
Leon Romanovsky (8):
dma-debug: Allow multiple invocations of overlapping entries
dma-mapping: handle DMA_ATTR_CPU_CACHE_CLEAN in trace output
dma-mapping: Clarify valid conditions for CPU cache line overlap
dma-mapping: Introduce DMA require coherency attribute
dma-direct: prevent SWIOTLB path when DMA_ATTR_REQUIRE_COHERENT is set iommu/dma: add support for DMA_ATTR_REQUIRE_COHERENT attribute RDMA/umem: Tell DMA mapping that UMEM requires coherency mm/hmm: Indicate that HMM requires DMA coherency
Documentation/core-api/dma-attributes.rst | 38 ++++++++++++++++++++++++------- drivers/infiniband/core/umem.c | 5 ++-- drivers/iommu/dma-iommu.c | 21 +++++++++++++---- drivers/virtio/virtio_ring.c | 10 ++++---- include/linux/dma-mapping.h | 15 ++++++++---- include/trace/events/dma.h | 4 +++- kernel/dma/debug.c | 9 ++++---- kernel/dma/direct.h | 7 +++--- kernel/dma/mapping.c | 6 +++++ mm/hmm.c | 4 ++-- 10 files changed, 86 insertions(+), 33 deletions(-)
---
base-commit: 11439c4635edd669ae435eec308f4ab8a0804808
change-id: 20260305-dma-debug-overlap-21487c3fa02c
Best regards,
Signature · 1 line
Leon Romanovsky <[email protected]>