* [PATCH v2] dma-buf: heaps: system: document system_cc_shared heap
@ 2026-04-07 9:26 Jiri Pirko
2026-04-10 12:14 ` Sumit Semwal
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Jiri Pirko @ 2026-04-07 9:26 UTC (permalink / raw)
To: dri-devel, linaro-mm-sig, iommu, linux-media
Cc: sumit.semwal, benjamin.gaignard, Brian.Starkey, jstultz,
tjmercier, christian.koenig, m.szyprowski, robin.murphy, jgg,
leon, ptesarik, catalin.marinas, aneesh.kumar, suzuki.poulose,
steven.price, thomas.lendacky, john.allen, ashish.kalra,
suravee.suthikulpanit, linux-coco
From: Jiri Pirko <jiri@nvidia.com>
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>
---
Documentation/userspace-api/dma-buf-heaps.rst | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/Documentation/userspace-api/dma-buf-heaps.rst b/Documentation/userspace-api/dma-buf-heaps.rst
index 05445c83b79a..f56b743cdb36 100644
--- a/Documentation/userspace-api/dma-buf-heaps.rst
+++ b/Documentation/userspace-api/dma-buf-heaps.rst
@@ -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
--
2.51.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v2] dma-buf: heaps: system: document system_cc_shared heap
2026-04-07 9:26 [PATCH v2] dma-buf: heaps: system: document system_cc_shared heap Jiri Pirko
@ 2026-04-10 12:14 ` Sumit Semwal
2026-04-10 12:20 ` Marek Szyprowski
2026-04-12 3:56 ` Claude review: " Claude Code Review Bot
2026-04-12 3:56 ` Claude Code Review Bot
2 siblings, 1 reply; 5+ messages in thread
From: Sumit Semwal @ 2026-04-10 12:14 UTC (permalink / raw)
To: Jiri Pirko
Cc: dri-devel, linaro-mm-sig, iommu, linux-media, benjamin.gaignard,
Brian.Starkey, jstultz, tjmercier, christian.koenig, m.szyprowski,
robin.murphy, jgg, leon, ptesarik, catalin.marinas, aneesh.kumar,
suzuki.poulose, steven.price, thomas.lendacky, john.allen,
ashish.kalra, suravee.suthikulpanit, linux-coco
Hello Jiri,
On Tue, 7 Apr 2026 at 14:56, Jiri Pirko <jiri@resnulli.us> wrote:
>
> From: Jiri Pirko <jiri@nvidia.com>
>
> 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>
Thank you for the patch!
Marek: Since you're taking the dependent patches through your tree,
could you please use:
Acked-by: Sumit Semwal <sumit.semwal@linaro.org>
and take this as well?
Thanks and Best regards,
Sumit.
> ---
> Documentation/userspace-api/dma-buf-heaps.rst | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/Documentation/userspace-api/dma-buf-heaps.rst b/Documentation/userspace-api/dma-buf-heaps.rst
> index 05445c83b79a..f56b743cdb36 100644
> --- a/Documentation/userspace-api/dma-buf-heaps.rst
> +++ b/Documentation/userspace-api/dma-buf-heaps.rst
> @@ -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
> --
> 2.51.1
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2] dma-buf: heaps: system: document system_cc_shared heap
2026-04-10 12:14 ` Sumit Semwal
@ 2026-04-10 12:20 ` Marek Szyprowski
0 siblings, 0 replies; 5+ messages in thread
From: Marek Szyprowski @ 2026-04-10 12:20 UTC (permalink / raw)
To: Sumit Semwal, Jiri Pirko
Cc: dri-devel, linaro-mm-sig, iommu, linux-media, benjamin.gaignard,
Brian.Starkey, jstultz, tjmercier, christian.koenig, robin.murphy,
jgg, leon, ptesarik, catalin.marinas, aneesh.kumar,
suzuki.poulose, steven.price, thomas.lendacky, john.allen,
ashish.kalra, suravee.suthikulpanit, linux-coco
On 10.04.2026 14:14, Sumit Semwal wrote:
> On Tue, 7 Apr 2026 at 14:56, Jiri Pirko <jiri@resnulli.us> wrote:
>> From: Jiri Pirko <jiri@nvidia.com>
>>
>> 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>
> Thank you for the patch!
>
> Marek: Since you're taking the dependent patches through your tree,
> could you please use:
> Acked-by: Sumit Semwal <sumit.semwal@linaro.org>
>
> and take this as well?
Yes, sure. Applied to dma-mapping-for-next. Thanks!
Best regards
--
Marek Szyprowski, PhD
Samsung R&D Institute Poland
^ permalink raw reply [flat|nested] 5+ messages in thread
* Claude review: dma-buf: heaps: system: document system_cc_shared heap
2026-04-07 9:26 [PATCH v2] dma-buf: heaps: system: document system_cc_shared heap Jiri Pirko
2026-04-10 12:14 ` Sumit Semwal
@ 2026-04-12 3:56 ` Claude Code Review Bot
2026-04-12 3:56 ` Claude Code Review Bot
2 siblings, 0 replies; 5+ messages in thread
From: Claude Code Review Bot @ 2026-04-12 3:56 UTC (permalink / raw)
To: dri-devel-reviews
Overall Series Review
Subject: dma-buf: heaps: system: document system_cc_shared heap
Author: Jiri Pirko <jiri@resnulli.us>
Patches: 3
Reviewed: 2026-04-12T13:56:43.989699
---
This is a single documentation-only patch (v2) that adds a description of the `system_cc_shared` dma-buf heap to the userspace API documentation. The patch is clean, well-placed, and provides useful information for userspace consumers about a CoCo-specific heap. The `system_cc_shared` heap implementation itself is not present in the drm-next tree I have access to, so this is documenting a feature introduced in a separate series.
No functional code changes. No concerns about correctness or regressions.
**Verdict: Looks good overall, with one minor wording suggestion.**
---
---
Generated by Claude Code Patch Reviewer
^ permalink raw reply [flat|nested] 5+ messages in thread
* Claude review: dma-buf: heaps: system: document system_cc_shared heap
2026-04-07 9:26 [PATCH v2] dma-buf: heaps: system: document system_cc_shared heap Jiri Pirko
2026-04-10 12:14 ` Sumit Semwal
2026-04-12 3:56 ` Claude review: " Claude Code Review Bot
@ 2026-04-12 3:56 ` Claude Code Review Bot
2 siblings, 0 replies; 5+ messages in thread
From: Claude Code Review Bot @ 2026-04-12 3:56 UTC (permalink / raw)
To: dri-devel-reviews
Patch Review
**Placement**: Correct -- the new entry is inserted between the `system` heap and the `default_cma_region` heap, which is the natural ordering since `system_cc_shared` is a variant of the system heap.
**Content accuracy**: The description covers the key aspects:
- What it allocates (virtually contiguous, cacheable, shared/decrypted memory)
- When it's present (CoCo VMs with memory encryption active)
- Why it exists (device DMA without TDISP support)
- When it's absent (non-CoCo configurations)
**Minor wording nit**: The phrase:
```
making them accessible for device DMA without TDISP
support
```
is slightly ambiguous -- it could be parsed as "accessible for [device DMA without TDISP support]" or "accessible for device DMA, [without needing TDISP support]". Both readings arrive at the same meaning, but adding a comma would make it unambiguous:
```
making them accessible for device DMA, without requiring TDISP support.
```
This is a very minor readability suggestion, not a blocking issue.
**Naming convention**: The name `system_cc_shared` aligns well with the naming convention guidelines documented later in the same file -- it describes the memory properties (shared/decrypted for confidential computing) rather than implementation details.
**Reviewed-by**: Already has `Reviewed-by: T.J.Mercier <tjmercier@google.com>`.
**Overall**: Clean documentation patch. No objections.
---
Generated by Claude Code Patch Reviewer
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-04-12 3:56 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-07 9:26 [PATCH v2] dma-buf: heaps: system: document system_cc_shared heap Jiri Pirko
2026-04-10 12:14 ` Sumit Semwal
2026-04-10 12:20 ` Marek Szyprowski
2026-04-12 3:56 ` Claude review: " Claude Code Review Bot
2026-04-12 3:56 ` Claude Code Review Bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox