From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 506DB3E51F4 for ; Thu, 2 Apr 2026 14:11:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775139069; cv=none; b=JyHSjeXmsCufqx8E9eBR9/DUEH7AlhHUXz9vLOG0xrypJs95HaWrtcL0ofjp+qa0FqTGpGZYwl7eIPyQKyG5XP1BtcfIcaGCBHjDXsB7CF6MMBYDvDPGxIh4frEsU7/9UGLDlaf5jnSMPrm0r5JItOc2NGjO3NArK+Thoksf9q8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775139069; c=relaxed/simple; bh=MPUb4Jcw0khVVnkcTIA3BNp03DgeMWQmGjHIAMMxg10=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nTy5FAyOYdePSO1K0Bh5St5EPBO3Qd/cu3veQ2jUFOTecEbgou1PhtW2k1wwvSyt2NlvYyI6maIFx4++juMgm9ss4NJ5z6OXFoEwQTpTezWHW/K6tEFKPmDwYBhoYHL8vCDM8XkDDd5mBxpxDBRibRVServAc9wcLL0/ouu0Goc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=resnulli.us; spf=none smtp.mailfrom=resnulli.us; dkim=pass (2048-bit key) header.d=resnulli-us.20230601.gappssmtp.com header.i=@resnulli-us.20230601.gappssmtp.com header.b=THpCC6ak; arc=none smtp.client-ip=209.85.128.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=resnulli.us Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=resnulli.us Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=resnulli-us.20230601.gappssmtp.com header.i=@resnulli-us.20230601.gappssmtp.com header.b="THpCC6ak" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-486fc4725f0so9690345e9.1 for ; Thu, 02 Apr 2026 07:11:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20230601.gappssmtp.com; s=20230601; t=1775139064; x=1775743864; darn=lists.linux.dev; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=x+ekjncP59XWcpI8woAJDAw1Fg3HF0fV5kIcIgDAtdU=; b=THpCC6akn6yvWNMFW5zZ6R2rulgkZUDlDOpxZMyVbw4+qa5Gd34jPIa0qr+/ly6hYj 1DkWqzyktunh3tCX3NLqZ8ZMZrks8u45zrlN8ZYa7r3GODLj/xtawMMsCtauBIJM6mfa 4VM3QAAKq0Z/vLiWReAiiJCCB/skU7Kt0zu2Ke1u8kJGUkXbVp3CIzV6Pi1EGtiTLFiD 9/iBMql0V4bj7rXS2z53QSZVY0ilA+kY5yzJ82V0nfGer3HEgi9rpqC6g6We295wwVGO 1LfnjYo5sw85u0JxEmo9yx6wFqUcuM1Mk+QVgYZEtGw9bJ5Z9iWqfRi3CkltTwpUxpNN UdTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775139064; x=1775743864; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=x+ekjncP59XWcpI8woAJDAw1Fg3HF0fV5kIcIgDAtdU=; b=D9mwg09Qyc4C75h4gbwICr1oeuw2/HG/BzALseEFIIIrfjWgpmn7Z9PRFuHEUpOV2l EpKvxTw5WRQrx7/q2IHK5Xg8J1oBC/I2X0fmIjf2vFBZilLnThAP3I1ReFt/njvrPcQ4 wZm+iyqNVT5RzhQ9eKfHklJ+KwTLd/BE5HhBfKPbkhwS/o/yG1uCNfUpROHgsxo0y4Lt Ze46SdPhTo1Mnea2f4VnGqHegfU2eaHR3mblq1RV02tlQOoiCOKWbAjAPLN34Gm3spiN ThLD61HoidBv8oB/PravP9fcM23KMrZKXGhYVOQWJlvsCWFDIZ6lvA/wdLRqFdX0RtDf AeYQ== X-Forwarded-Encrypted: i=1; AJvYcCXjhKvROUFdTdBDb+J+Yv/v4sHLy6kMSHybzOCgSw8KPFRlBKa2YwvjYX9li2Wx7Rxtef1PRoaKyN8W@lists.linux.dev X-Gm-Message-State: AOJu0YxZBgT2eoRu1ic2H1gcFtubV/VrtIzUJ6fstPRnrHpVH3XDLYdH LuYfKkynTWte5x+K3rQRy57p0LI8wA6WuvSiH99CBPptPamvxrZSnFAxqTKGabp/bIY= X-Gm-Gg: ATEYQzwhM9MfM0HYZH8oshFGJ0A/STXPIhB5n7rWGwHy5geWpeQMkSMW4bR+Z7faPUp Ft9wd0/g15VLq/YKOUlNGH9j7FnsagOSU9q/pigHz4M0VTL5F9wrWNSQskuGcusmCVyWPRbBve7 iFdq05zf3yQ1rTm3LuMhmLixOuJn87LeqJPZZNPksIwzLwWdnvup5eZaKgW+xxB1DpppU3WQGm8 /yNjVhre3xWjDmq5NncLR39fo1eMnoBHV3R2KtSIwJBzAnnGxh/OkY1DJX9xkkbMz4qHikvQUF0 M1iJvv0hFK85QscxqeqrdijVyU04LJuCpfGeeHoqsWwhII123Z5ypDcDkUps4XUbfVpMDQ1pApD mUDP0YMf35cmSLNCNng7FiduiSwhLGikXuBohB8HgQkOwYyjWml+kj7WWnYnyadSln1QCiAO2H4 3alJWVCEFPf13Ksg== X-Received: by 2002:a05:600c:8708:b0:486:fe83:861c with SMTP id 5b1f17b1804b1-4888e064a89mr45823005e9.7.1775139064484; Thu, 02 Apr 2026 07:11:04 -0700 (PDT) Received: from localhost ([85.163.81.98]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48891d5437fsm20447355e9.5.2026.04.02.07.11.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Apr 2026 07:11:04 -0700 (PDT) From: Jiri Pirko To: dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, iommu@lists.linux.dev, linux-media@vger.kernel.org Cc: sumit.semwal@linaro.org, benjamin.gaignard@collabora.com, Brian.Starkey@arm.com, jstultz@google.com, tjmercier@google.com, christian.koenig@amd.com, m.szyprowski@samsung.com, robin.murphy@arm.com, jgg@ziepe.ca, leon@kernel.org, sean.anderson@linux.dev, ptesarik@suse.com, catalin.marinas@arm.com, aneesh.kumar@kernel.org, suzuki.poulose@arm.com, steven.price@arm.com, thomas.lendacky@amd.com, john.allen@amd.com, ashish.kalra@amd.com, suravee.suthikulpanit@amd.com, linux-coco@lists.linux.dev Subject: [PATCH] dma-buf: heaps: system: document system_cc_shared heap Date: Thu, 2 Apr 2026 16:11:03 +0200 Message-ID: <20260402141103.598495-1-jiri@resnulli.us> X-Mailer: git-send-email 2.51.1 Precedence: bulk X-Mailing-List: linux-coco@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Jiri Pirko 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 --- Documentation/userspace-api/dma-buf-heaps.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/userspace-api/dma-buf-heaps.rst b/Documentation/userspace-api/dma-buf-heaps.rst index 05445c83b79a..591732393e7d 100644 --- a/Documentation/userspace-api/dma-buf-heaps.rst +++ b/Documentation/userspace-api/dma-buf-heaps.rst @@ -16,6 +16,14 @@ 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 VMs 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