]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - Documentation/core-api/dma-attributes.rst
Revert "swiotlb: rework "fix info leak with DMA_FROM_DEVICE""
[mirror_ubuntu-jammy-kernel.git] / Documentation / core-api / dma-attributes.rst
index 1887d92e8e926909b3641ffed82b5129dfde0c4d..17706dc91ec9fcf51178017b41f50862072c2c40 100644 (file)
@@ -130,3 +130,11 @@ accesses to DMA buffers in both privileged "supervisor" and unprivileged
 subsystem that the buffer is fully accessible at the elevated privilege
 level (and ideally inaccessible or at least read-only at the
 lesser-privileged levels).
+
+DMA_ATTR_OVERWRITE
+------------------
+
+This is a hint to the DMA-mapping subsystem that the device is expected to
+overwrite the entire mapped size, thus the caller does not require any of the
+previous buffer contents to be preserved. This allows bounce-buffering
+implementations to optimise DMA_FROM_DEVICE transfers.