From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 42C97634; Mon, 4 Aug 2025 21:54:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754344487; cv=none; b=iGLIU/JsF9Pii+RNs+hWJBvHMzcYU6SlYydX8tUKUZ502CWmCm2rG0sVGwQBoS8nxPTQ+mGhFvfAxMvE2kol5ea4YBWdbMfEOoEFx/HiZ17pDWdgEanjJv2tajWAWIXJv09Lut0LGKVwWOb3yZgFXfwNmoNsDpdGWiDP9gfIhMc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754344487; c=relaxed/simple; bh=uLPtm0HcssgYvZ/viuCH382QW0ADZ6ZxYfWJVn9+ybo=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=ZZxf12mBOv1rkNMeHdcoZt4lGly6+4RqVPhGDS3qg9yG1VHgVPhz5a38r9pZe5U1gYsy2ZHTavYrpPFwV28dxh9lnAWJ8f7d0OFqt0etMcr8Yew+iBXmSRZ9HLnLnWReFm6jB/WhkDPbKvabvzBOxQeunHuagAOTmz5UVlFX97I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=glFBQ7BW; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="glFBQ7BW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A9F81C4CEE7; Mon, 4 Aug 2025 21:54:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1754344486; bh=uLPtm0HcssgYvZ/viuCH382QW0ADZ6ZxYfWJVn9+ybo=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=glFBQ7BWteoL1qqVk/4bASVhVFSWmPgMRQnEpyydpj7sYqJ78B9e+5RG1cQ0doJQN JaMxPSwUHJX7aAetWNSR2ZUI56LXE1iaeBEu151WVJ6IRDQHB6uuXOdQuM22oi10aI k1KnwlEVkvSEfzL1vVaHLxnGSjUUdBEp57GjVyeFNn2WozxqgRNVAXWg021gkWVaWY 4JOUYiqmArauS/0G+E40f5UrvKE5rSEy9/sociYdsWOsk2+0WrRtj5HsS+bZPBVNio j7hxGY8cHq1VmK1DUtlboskkTUYzbDHYAhZRQiMBPwilozVCyC9v3PXf8u89X2Y/LI 89rMBHGOPTG7A== Date: Mon, 4 Aug 2025 16:54:45 -0500 From: Bjorn Helgaas To: "Aneesh Kumar K.V (Arm)" Cc: linux-coco@lists.linux.dev, kvmarm@lists.linux.dev, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, aik@amd.com, lukas@wunner.de, Samuel Ortiz , Xu Yilun , Jason Gunthorpe , Suzuki K Poulose , Steven Price , Catalin Marinas , Marc Zyngier , Will Deacon , Oliver Upton Subject: Re: [RFC PATCH v1 04/38] tsm: Support DMA Allocation from private memory Message-ID: <20250804215445.GA3644210@bhelgaas> Precedence: bulk X-Mailing-List: linux-pci@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: <20250728135216.48084-5-aneesh.kumar@kernel.org> On Mon, Jul 28, 2025 at 07:21:41PM +0530, Aneesh Kumar K.V (Arm) wrote: > Currently, we enforce the use of bounce buffers to ensure that memory > accessed by non-secure devices is explicitly shared with the host [1]. > However, for secure devices, this approach must be avoided. > @@ -557,6 +560,9 @@ static void __pci_tsm_init(struct pci_dev *pdev) > default: > break; > } > + > + /* FIXME!! should this be default true and switch to false for TEE capable device */ Fix whatever this is, or make it a real sentence and wrap to fit in 80 columns. > + pdev->dev.tdi_enabled = false; > }