From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (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 ED77A3E2AC8 for ; Mon, 18 May 2026 08:35:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779093307; cv=none; b=akjrYWE5hvUCdJ8Y6nR8FtUuABZh+nXU4JTbrY+U1Se+ZhnhZ/P7tYbhookLuLfm46MVTrIyb/yWKj7nSyeixY7hylFzLVDlVO1Lac6nrlxQiksxz7zW+L7QSRxsUI42UPPYLj9PMKSgtZsx8tVx3wXdW+zWuFBvMhz6KLr2yvI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779093307; c=relaxed/simple; bh=KwzE4WvS1tturD3icBf4rnhXP8uxns5EKACf2ikgZYY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PkvUxQ7hgiiDIzI5UU/RQpjVoxP7GrYZRrCSkRIitJUYt906T42qOggBo/LPBsOnX8gioHhexEUfCrbWbjCmg1Nv8QKljWUeqCpwIYpMfdX6WQxSd19cP55ubm9UC+2OIKPY7gfZFYgNt3IfLPjATjU/wLgjRKzEd85MPlSrCO0= 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.20251104.gappssmtp.com header.i=@resnulli-us.20251104.gappssmtp.com header.b=P5LYrqNL; arc=none smtp.client-ip=209.85.221.45 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.20251104.gappssmtp.com header.i=@resnulli-us.20251104.gappssmtp.com header.b="P5LYrqNL" Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-43eb05b1875so953720f8f.3 for ; Mon, 18 May 2026 01:35:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20251104.gappssmtp.com; s=20251104; t=1779093302; x=1779698102; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=KwzE4WvS1tturD3icBf4rnhXP8uxns5EKACf2ikgZYY=; b=P5LYrqNL7XtdbUGcOrnWpRhqpUNEvJXcZ33kH0AJpR2Rnf5DrN6RupVyo8952XYSxO E2doM/aYPY9YgaiXSJin+IqExw2UFgnZas5MuXU+7rPkvF/rZJbflUAgrjkO9s5d9ZCl tY92tlEGjBSUDwzvqsTbHQ9HA6ABqjfviANHzZx/LoWX+XVUBDtwMBNEgVyiBLouVB1U XC4fAE93fgn0FqpavSwzx6a3A96FFNWjdPekMJRTV8uE0BkJ1nJ4IRkgaEesWbFo9Zr9 WvNUi0ynIrjOZl0RL3pIkGEP7sFQdTPyGOui2gZt7KKyOQIQLcVkPJod6VZQdT1NJGwz Kvww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779093302; x=1779698102; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KwzE4WvS1tturD3icBf4rnhXP8uxns5EKACf2ikgZYY=; b=CIkUcHDU/iDjkj42B+TP2kK8yDLo37r+1QS0GS9vPkT3HD6DHirJuETUnYA60KmuVY OnMgPYtP2YYvyPCFOZ7lxoBC46M1F2LlfgcLYd5cv5UJWdPVVUz6vSAkFHlatSGy96Ep 1hwBrhyqlhCNsvZd26ZRLmJqTLIqNiuwsdGBiEBIXhGE+qlEpVtZ7FBWsibPndUcDvwt U+9SZ+7u6ahx2eeFuXC+UB0HSaZe3l5f2nySDPZnrhjUuLyIwrgUdAGF3qf1rXEoFD3A vZishHJpKUf4vsJLRIIdVLCyC3ARZjQRaeh9nMALOwqpbrxXDBiDZSi+QjxKiu1Qb+Hy R7pg== X-Forwarded-Encrypted: i=1; AFNElJ/NziYxFDwuAitbniFr+ftKSE45b4ZUpXqs+WzCmp6I8r8dNeseRTdsKA+XHA9mCQR9FqyMJsOQnroELCE=@vger.kernel.org X-Gm-Message-State: AOJu0YxWWCI3+8j8cK5n/J2hczSpe85DrvUQ069lKHOZ5rd88mN1KXSs cOZwpGMLYIDPcEFdDGFx/HhimcgZ/j/l6TVfponB3E6fwWTk2Hk9DFtOGuSXuit0AMI= X-Gm-Gg: Acq92OExpYwZAKJ6cnRCHtEIIi4Y4nG7iB+MaLo9TlgFlwyQZOr3pp7gvo5L0kyE+uT of14s7EWonbtxdA19nKZ099ebt5ikqniignJB/R9njz4bonJcoALmFtb8j8QDj7vCVGZxW+7Y0W jvou6F8orr2QyXKBFnF41Ava4dqhfYnUPLdYgCy12onlBrgWpcAOtrlTSlrudbPL4S4QPmMf3Xm rfkJ4Ru03YE4uLIyrCSYB6iGifZMhL/V4deV4QJq9nwbuP/TOe7fPcLIbYo3VeLGviJb2Ytlsei JHPHiOHSw2zt4qFYxDbMJ42YM2WeZGVKbxUGt1oqSqKI3OqX48zMpjyGUC4ebLyCgdEcpr8cxSp QHlekmFIOm/TS7gr2aVmWB+kbnNhKB2/zq0/DxMHq0HpskwpkFV/Jjew+1hYsMNB/gzVhmRuMzH GWApcBtnewPm3YEh5xlATRrk8iABsGMRCegnwy+BC22ixj X-Received: by 2002:a05:6000:2083:b0:43f:ea04:dcc7 with SMTP id ffacd0b85a97d-45e5c5f277emr23023553f8f.24.1779093301850; Mon, 18 May 2026 01:35:01 -0700 (PDT) Received: from FV6GYCPJ69 ([140.209.217.212]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-45da15a6449sm35354787f8f.37.2026.05.18.01.34.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 May 2026 01:35:01 -0700 (PDT) Date: Mon, 18 May 2026 10:34:57 +0200 From: Jiri Pirko To: "Aneesh Kumar K.V" Cc: iommu@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-coco@lists.linux.dev, Robin Murphy , Marek Szyprowski , Will Deacon , Marc Zyngier , Steven Price , Suzuki K Poulose , Catalin Marinas , Jason Gunthorpe , Mostafa Saleh , Petr Tesarik , Alexey Kardashevskiy , Dan Williams , Xu Yilun , linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , "Christophe Leroy (CS GROUP)" , Alexander Gordeev , Gerald Schaefer , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Sven Schnelle , x86@kernel.org Subject: Re: [PATCH v4 00/13] dma-mapping: Use DMA_ATTR_CC_SHARED through direct, pool and swiotlb paths Message-ID: References: <20260512090408.794195-1-aneesh.kumar@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Mon, May 18, 2026 at 10:23:58AM +0200, aneesh.kumar@kernel.org wrote: >Jiri Pirko writes: > >> Tue, May 12, 2026 at 11:03:55AM +0200, aneesh.kumar@kernel.org wrote: >>>This series propagates DMA_ATTR_CC_SHARED through the dma-direct, >>>dma-pool, and swiotlb paths so that encrypted and decrypted DMA buffers >>>are handled consistently. >>> >>>Today, the direct DMA path mostly relies on force_dma_unencrypted() for >>>shared/decrypted buffer handling. This series consolidates the >>>force_dma_unencrypted() checks in the top-level functions and ensures >>>that the remaining DMA interfaces use DMA attributes to make the correct >>>decisions. >> >> FWIW, the patchset in general looks good to me. I tested this with my >> system_cc_shared dmabuf flow, works flawlessly. >> >> Thanks! >> >Thanks, Can I add > >Tested-by: Jiri Pirko Tested-by: Jiri Pirko Thanks.