From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qt1-f177.google.com (mail-qt1-f177.google.com [209.85.160.177]) (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 DA7492F8E86 for ; Sun, 10 May 2026 00:36:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778373381; cv=none; b=hcNzaINI7GmbNNAyOgZjNcm25TzzIue8shuLKr/VXoTfwKTQ8ZL12XOAV8XugG/s9camwED/vR1grYlY22pvnZTYMGUCJuTJbJ6aexp3C7XazFmcQPC62bryA2m05bAs5x+57GUUtDQRzfF3926m7EWJe1ucLglYofgpG/YyV08= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778373381; c=relaxed/simple; bh=4dKt3nf1YTx0s1JbVwplYuh0SVf+Q7ODjqCngcJGATg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=f1TPh6CJhyl+8oF6ISs8Ej2FwgyzhlQ8FqZj2jzA++0QDpKORPlmhQaAQgABuRNHknG7d98lUClwd6lJpbm444FQicrEloXr+zkpA9OS8bctdIpeVqEJ6kegm7iQPP1Piakic4e54veJrFSfW3NhxlJ8CWj0i3fU+n1noIN3hrM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca; spf=pass smtp.mailfrom=ziepe.ca; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b=jDrr67T/; arc=none smtp.client-ip=209.85.160.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="jDrr67T/" Received: by mail-qt1-f177.google.com with SMTP id d75a77b69052e-50e594413c2so21175691cf.0 for ; Sat, 09 May 2026 17:36:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1778373379; x=1778978179; 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=4dKt3nf1YTx0s1JbVwplYuh0SVf+Q7ODjqCngcJGATg=; b=jDrr67T/jqHUpNvSSaNisxv2IqcbcVk6yWuS5M7F++uwKey1DloIr//VgdpCaG2Bf5 vHU4oPX6EraoKtSZGvIo5Z8oli78/pLdU77MVPtzaGKU2JRugIyv+Eec7cEadNEs0IS5 7Rme2OvCl4VUl1AYMEeGsk6ykit6NUuwqRwbUWdYh6oEd3yiHLuE2PS2Sy68Xmd6byVi gYPIc4JxOB7CASeH3KWfbF+3GGQSfVqT71a2RCYenP2COd/jgQc02XMxr4tD4GGsbZY2 4u5tJg1aSkn8KzwL3UO5YOwfc4Z6xymYMFKFihTNUB/ze+Vn7etpAOrzQ1AYKB3VRXEx +yOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778373379; x=1778978179; 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=4dKt3nf1YTx0s1JbVwplYuh0SVf+Q7ODjqCngcJGATg=; b=f2jY5UCHikwtpEuBMqrEaq11s9CMvPimur64Mn5HXjTaEa1k9/mr+ItP+o20cXsAn4 msk2P52WsP9scKPs+ikdA2jvGyeAO129EJtAo0vk5z5ZQLJXDsolKS6SDPids1ZRNeDH rSjTGFybi2t9RUtgs2NEkCtui8V8Id5ZAkD9SUApfdumAMLF7Nc1lXo4edFjkDIkD507 fpieVudetxaMyygWlwASqege9J4VHxnZPxSCZDmVIlh2XoAQUMwYasyuhd8TciQQ88yz hLPSNzEw3M/2vvLKqEqlMtziNL7bPAwxDj829/QYeDPtIcQNH98qMWxisxS4RJ2ZqPEl q5Eg== X-Forwarded-Encrypted: i=1; AFNElJ/f+v5rlHs/AE6CAWiLRrxusoyffkWTDA6X+lTnq4m5U4sc88icOhYtPJ9QNo9JKD9SlmA66whVU2kzpWw=@vger.kernel.org X-Gm-Message-State: AOJu0Yyb/OTQn9heTySuyR4DcV/5Rz+xBkPJolJ0lHYO64wwaK/Im1ME GL8OT55r+/q9h/evyE1ZBs5HklYvKV6m/F5o1yv1d8qgqUMVUW0VsSN+5EZpKe9ycwo= X-Gm-Gg: Acq92OF4LarM4C/I0O4yDPRpt5/exFErVfZzh02IDszLOnMp+UzOgQlS5z7MQtz3O1T dDG5Z7+pxMJ+9PRhj3TzLFfdMV+BSJNoxu/Ied6fINbkvsNHA3/O1PrdAnHLIfalY+V6SkYoGaw LzmEFLZd2Shp3t5Rlmvr9WOQlsDooXO6ho4hjEygRhNhS2QTTiX8babVzsu+Y8nF+V5jX1VJufo sieaAYZI/bxXS+MVnNPIPOkniXasdSwWW3MWu+VGvkxgo/YhwB7y+iusNymIKuSj4+Ho/bX/3X7 LcDJf8id8VsIe7db6oRGhSAROdD8kOJQx+vWvVlf/B1TQliNW2+U+3TKM6o5y3yCZKLF0ulHTNm 7NYa8ViieZWKDdn3F27D0vIjRXNxQsygnCrdBCE4pXKHy9tQo8Z0BsaAzDeWi70xoeS8b7boDMp /qw+HBrW4/s28Pvp8PUe57fkSdXUmGdnugTSV64HurU9M4HV+9pWAScNWrGFueOkMq2wRrLaPFR UnZXHfKK9GCxKkA X-Received: by 2002:ac8:590e:0:b0:50f:b61c:ec4c with SMTP id d75a77b69052e-51475b5a04emr163550921cf.7.1778373378744; Sat, 09 May 2026 17:36:18 -0700 (PDT) Received: from ziepe.ca (crbknf0213w-47-54-130-67.pppoe-dynamic.high-speed.nl.bellaliant.net. [47.54.130.67]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-5148e656452sm60664161cf.7.2026.05.09.17.36.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 May 2026 17:36:17 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.97) (envelope-from ) id 1wLs9Y-00000002W2B-2GSI; Sat, 09 May 2026 21:36:16 -0300 Date: Sat, 9 May 2026 21:36:16 -0300 From: Jason Gunthorpe To: Catalin Marinas Cc: "Aneesh Kumar K.V (Arm)" , iommu@lists.linux.dev, linux-kernel@vger.kernel.org, Robin Murphy , Marek Szyprowski , Will Deacon , Marc Zyngier , Steven Price , Suzuki K Poulose , Jiri Pirko , Mostafa Saleh , Petr Tesarik , Alexey Kardashevskiy , Dan Williams , Xu Yilun Subject: Re: [PATCH v3 0/9] dma-mapping: Use DMA_ATTR_CC_SHARED through direct, pool and swiotlb paths Message-ID: <20260510003616.GL9285@ziepe.ca> References: <20260427055509.898190-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: On Fri, May 08, 2026 at 06:28:11PM +0100, Catalin Marinas wrote: > That said, does CC_ATTR_GUEST_MEM_ENCRYPT actually make more sense than > CC_ATTR_MEM_ENCRYPT throughout this series? We'd need to change arm64 > realms as well to use this one. It is often quite confusing in the DMA API and iommu what is guest logic and what is host logic, so this does sound nice. AFAIK none of this forced bouncing, T=1 or CC_SHARED logic applies to host in the DMA API. Jason