]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
dma-buf: heaps: system: document system_cc_shared heap
authorJiri Pirko <jiri@nvidia.com>
Tue, 7 Apr 2026 09:26:17 +0000 (11:26 +0200)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Fri, 10 Apr 2026 12:20:01 +0000 (14:20 +0200)
Document the system_cc_shared dma-buf heap that was introduced
recently. Describe its purpose, availability conditions and
relation to confidential computing VMs.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: T.J.Mercier <tjmercier@google.com>
Acked-by: Sumit Semwal <sumit.semwal@linaro.org>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Link: https://lore.kernel.org/r/20260407092617.635223-1-jiri@resnulli.us
Documentation/userspace-api/dma-buf-heaps.rst

index 05445c83b79a0d669248d7e4ad2e937b8fae8673..f56b743cdb365d8c97e8e940719edd757a783d01 100644 (file)
@@ -16,6 +16,13 @@ following heaps:
 
  - The ``system`` heap allocates virtually contiguous, cacheable, buffers.
 
+ - The ``system_cc_shared`` heap allocates virtually contiguous, cacheable,
+   buffers using shared (decrypted) memory. It is only present on
+   confidential computing (CoCo) VMs where memory encryption is active
+   (e.g., AMD SEV, Intel TDX). The allocated pages have the encryption
+   bit cleared, making them accessible for device DMA without TDISP
+   support. On non-CoCo VM configurations, this heap is not registered.
+
  - The ``default_cma_region`` heap allocates physically contiguous,
    cacheable, buffers. Only present if a CMA region is present. Such a
    region is usually created either through the kernel commandline