From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (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 B8AD52C027B for ; Sun, 17 May 2026 06:19:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778998784; cv=none; b=Q5uk8ly6FGMsife6dRi/guogTt7KzsaA420UAN7UfB5dv2LphVyGTbI8wEHrd4CXQLS1LF7g+UzVSLSrQTXpqmnfGjCkxOfRf4t5wttAJqnf74Ct4CkfHfAJrHIXOcePNQrA8POTB9gU+z0SGgmsLmHsyzpBgTyBV5vrtKXMVnM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778998784; c=relaxed/simple; bh=qUI1Kvy8G4UZN8XVWU9+FHDr0P4yKt9TWkL45QXTVdc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=aqXY2z2h92Q9QhkY1Gp93RRVRzRWChb6YskwIVTp5XI5Is2c5qLExvqKhbbW0enrXKcg8KyENDHn/pR/tv0xvfkOmKbgcesMzKMxbrMqLFTX8u4ouRRe8Tl31PO5RSXf+md2aAAbYwGsCoX0aiy/KXSavA7+mGnAQSTheEKX7D8= 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=AIYIR9mX; arc=none smtp.client-ip=209.85.128.47 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="AIYIR9mX" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-488a9033b2cso7351105e9.2 for ; Sat, 16 May 2026 23:19:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20251104.gappssmtp.com; s=20251104; t=1778998781; x=1779603581; 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=qUI1Kvy8G4UZN8XVWU9+FHDr0P4yKt9TWkL45QXTVdc=; b=AIYIR9mXMpSfjxuk16yMwjcVQz2F989QSFq7LRXAZo00x2h7wG/KmqMvsGRgbxyOCY XyBfaqNN/qYmGx0X6PD8qgAcbzpKe5rDMqvAaLP9b52t46l4ivpSNwTdsNzMH6Jz43EK JR4AfgaDkS7IWkFJfdcVbRb4Zlk57/uU9KrDQxU3KaQpQnbGJ9zF1ed2jPB+cpwQK8Bc oVXNKcDSwHDWTEbhOK2wzvKFnu42wolqK6ZhADhU6inYYnuiCx9U5iH0xRNrpOv45+FV UnJtz1ydDnG3JQ24l7sAWGZFp358fnJ+0bfngWZv06JOG8BTjSYk9zfwjIXzErQ4AoGG vHBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778998781; x=1779603581; 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=qUI1Kvy8G4UZN8XVWU9+FHDr0P4yKt9TWkL45QXTVdc=; b=UEBR7bi2xG7zB4/nedpqXxxnMT6pkQwd+jn79zAcbRk5inCdZ2+uwOszZBr6rNGyHZ IF5GmyJpxOOk7Xl6UMdQhnOyAh9S3xMcbTIZO+xUFSHMXCV5dZm6N85SDsbiCU9K6WEW RRON3jD0IgA+wkT9cKViAH/gMh0Gg6XrqJCezFMhMbmo8KiW1cPCuBqljZPSituv+D61 Bc9fFd1cnt2Y5eA89PZ+IrhdBj+bJe3Ql72M6ytITTJfnVLLTH/TXWSdHBilkViCiI96 jpeH/HDGp2IcSGuAU3coh/K6juKLqFaqcAYFGm/lKO0TxrFa5UTLEMl4R0y+DHInUVbI zkUw== X-Forwarded-Encrypted: i=1; AFNElJ96f5YqHIHDMMdjeNCczRixHrH3FLCKXYqGJK/Q8s6fyvK0Q2XDFaW6a6RGph8yQUjD1w6XuCB/N5XDA80=@vger.kernel.org X-Gm-Message-State: AOJu0Yxj7C19nNPlDzvNGRUuhmrKo6p0kgTDX+IV29XCN8sIPuj5YLen XJYdhS6iPyUG65WWwYUDmJN0G1WkSsHMqolCi1rW3PvWRkqWfQSUy2/5dXKEhPLAfmM= X-Gm-Gg: Acq92OHo0gX6Nt+xK33MN9QQRfThB82JrkytaZeVp4hW2OrYdG5lEtwVUjRr5xFfO4i WDFFHev+KXcBmFwziMis2CWWDL5SVr5qwQV2OUtcaKIRYyP3wIGYjBpsS4gkiz7+U57L322lkAH LGvsaPqkzxKZh3wiaW5XTxL1ylZGmvf4UjpnZWmvoJi4Ljhecdh+uhAtoDYS4LhSuhyX6YFRrWI Nvtle32UtcWCskRKKEGtccqNNl87c3iFjDnZ0nWDkq4UxWR0GKLanS3ysvFxWaGTmdr8Vc6XwFb xCFyDdBV0p4IFus6mqcA/Zpn0gZKvRzgzegZYpEaXeWz03QEQuQVY+Qyj5iANOXcQDj7QCXyfWL Xl3jXfT7B2DhfXhMiJN4jUcsw8p+jZ4oXEJy85Z4DYNXrDUC/porF4VzwrmAQGwMBfXp5yA9ZDG N2cTzkQOnY+9SwaEV7TtuXU4oUeuw78uMpkG5LxYTZF5htYw== X-Received: by 2002:a05:600c:a30a:b0:48a:568f:ae8a with SMTP id 5b1f17b1804b1-48fe5fda35fmr111967805e9.8.1778998781051; Sat, 16 May 2026 23:19:41 -0700 (PDT) Received: from FV6GYCPJ69 ([140.209.217.212]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48fe537c788sm163535945e9.12.2026.05.16.23.19.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 May 2026 23:19:39 -0700 (PDT) Date: Sun, 17 May 2026 08:19:34 +0200 From: Jiri Pirko To: "Aneesh Kumar K.V (Arm)" 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: <20260512090408.794195-1-aneesh.kumar@kernel.org> 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!