From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.219.53 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794844785; b=cG4ExoEDBH8qsSGttloHYxe0r3hu/FVoeTQIrM0MJIeVAkQfjA71yh+RnHJbTB+rA9ce OzcIX2ylHOf0lxPK7AkeCYdx9HKiBVAOkZ78ougSeQ1eAbwQMdpDPGHdfjP6v4gsh/qre +BxyFAWoCwIgCYlC9mLnlIfma0EZDbSrapv590bHZVE1fa9rzBEnbycA+yTQsSKcDNO0N V2YQSm7dxDfrZASeB9G7izYkdYoUGxTZX/MNr8XyW3uv+wotMcjxvNnALFarXwP4wYR8W SiNXeG7CDm4D89856p3suRS84q7FbXPC2DfaCvt10OnGOmlhx2XiuC1GgHK6oLLVuTg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794844785; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Received:Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; bh=8zt6BKnr5OMQnoN+jLF5J5ZxUIjEZ6DGHzLguvsf5vs=; b=gCBoZw7bGKJ0Ii5VAHc2mJaPLfnSes2wgMUbkF1N1KbIPWpjBYcxOVy766lbrsR4uNjH zEYZBnnhOygU7u6yUNWho2IbHxa7SzzruCgRpP+WUgYi5kRWPTYmjpTkiAFFkhlaZM8tS pR5btIGZetlpygmgJLtHfKZiDdtioVMlpHj2hNgAGyKFx/wLbTVuxT4CC+dfxCF5wYmsq 2zEeDLkNI8H7d13Ay+anAJPLZ+TyXjwYC33itIFIReyELHcQfLdf6OPgqS9BItLu2P2ID 1qvXza7EpkDB8g3raURL+tmL5YlguSLTde1fjPZyjfOREcxkNH7sMasdlGET7amwpTQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=ziepe.ca; spf=pass smtp.mailfrom=ziepe.ca; dkim=pass header.d=ziepe.ca header.i=@ziepe.ca header.a=rsa-sha256 header.s=google header.b="T4EaFVj/"; arc=none smtp.remote-ip=209.85.219.53 Received: from mail-qv1-f53.google.com (mail-qv1-f53.google.com [209.85.219.53]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 04690606A32A for ; Mon, 16 Nov 2026 15:59:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 04690606A32A 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.a=rsa-sha256 header.s=google header.b=T4EaFVj/ Received: by mail-qv1-f53.google.com with SMTP id 6a1803df08f44-91eb3fea2a9so42080276d6.3 for ; Mon, 16 Nov 2026 07:59:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1794844784; x=1795449584; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=8zt6BKnr5OMQnoN+jLF5J5ZxUIjEZ6DGHzLguvsf5vs=; b=T4EaFVj/Db2Oh0QQIN6fEsneaLWasSmYdaomNevHcWQV9XfC0eku9uiWRA8yiTc/gq beN2zhlEBUDpPwvlJXNnJXYG7SLeGP2RUl/CIxz8vHb+CRPGvwOGP84P37zc/ASqwdCv a2ZImH/j9PEIljcRTrH9YjQx1m9XzvHX9w4v1GGAYhpr16oDLUf0JwGEJPe+tOCosZjE d53ULE5uBklWCIuWvycUfx9hIvJ8w6anXEcNacgC3MbLl4k/Apkhq6kLpk0rmKpAkcTv Trqjo9GQ8ASe6EH/m27mrq6sK/GeD3Uc4wVkpatMXBaBSojYeEkRpq+DgrGx3awVmJv/ hg9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794844784; x=1795449584; h=in-reply-to:content-disposition:content-type: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 :content-type; bh=8zt6BKnr5OMQnoN+jLF5J5ZxUIjEZ6DGHzLguvsf5vs=; b=mn7KZK3ktuVcLg5nbpuxmoz8Layu9g/obqNvlhEzxWvGe3XH8is5ZTb2cBQNcpxLeZ koT8f8Xvs7xVB048shUceMlJb8JNX9GMw8xaxGVZ/fyb5/6G4awqBoArJiLy5Db0ea2l PBQo9Z48KtFqj1rOQTVHDfC9s4+A5T4zRYchVLONGfj4iO2fNG2umQFFuZsLr0I+r0/x P5Kqb60lGHbV+LkAEpxGfsiaA9fWdCN2e869WzZzCu493W/kfore47gzDMHieWW/hTlY zikZE45aVdSzZBP0/8YqEAc+mkl+P+XxEXcCBIXRC4tPrFZ+yAu0QfQhyH9MddHFjIi9 qXAw== X-Forwarded-Encrypted: i=1; AL+hErFcEYmAWym/MODKe6HETH81mtFeQNGBp72CSYygBxWzUgG1UTO0n0FSpInJNNbFqy9MkwPi2iPzzaPjlw4=@vger.kernel.org X-Gm-Message-State: APuU4Z8BHIU6W3xi4GmPmXb1jU0WBgV6QK3/OWtM6TUFD+pRy8OBR3ER SrFyo5VbZyNmSa9/Dn2zf5tCM/XP0++zIoVFF2hnCJ98SGtafl4UCZw5vlSnPQaBHfs= X-Gm-Gg: AZFdTZeuror93DdysDDeVtD8gHjLDovDPshBuPuUiq8X6/gEieVxagKuoib60AUjKKu zz+DISdbbrqPo0xP8qqBpPA60Wv5drhgAHPGybzaCKrZYN4DNp0A2U/ZhfkaAMAzFYhKOgRZntN el+EdrAzeQgQH8xpVXiWpJz8TKoy5O0OUqY3UG2ivp9wKDbqcTelq3+ME0Vgg3dsljs/M5lB2/e DBO5k0cIr/2LNDX+pB9c3Qk6Zi9JMQUkcAGH6Vyo00DekPfdNI/wDBFqXxBop9L9aSXaxsUKEbj 5mjtimrUNz7rwApDzFSUNB11uKhu7RgnOcNXINoJroyw6pOiWa9tC7g/l8ThxFq9s86DISHgs/I 6demC9OErx1+jez7mZe/vyvqfY7q3//VgKQPNVDSxQMJOel7ezHpIhVTSajSfflldRBponNZDIz fFAOLt9AC3v3Ry/FbtuCTY+CnaD5Lh5FD7c0k9CzkHzWDB7HL9JBvHIzCxZYyp/cKgG2Bo3W9VF wELsaagap+I7krCjQI0fvwlFZkrJ6Q5h2KQBQFTVedhLjunAyb6sRZsxTeAw5Ye5kJ3pbqEj5y4 jek64A== X-Received: by 2002:a05:6214:2467:b0:91c:7f1f:2c9e with SMTP id 6a1803df08f44-91f24209db6mr171122396d6.55.1794844783992; Mon, 16 Nov 2026 07:59:43 -0800 (PST) Received: from ziepe.ca ([142.166.156.71]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-91f23d93f10sm87735096d6.30.2026.11.16.07.59.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2026 07:59:43 -0800 (PST) Received: from jgg by wakko with local (Exim 4.97) (envelope-from ) id 1xSz7O-00000009eOI-3Mx3; Mon, 16 Nov 2026 11:59:42 -0400 Date: Mon, 16 Nov 2026 11:59:42 -0400 From: Jason Gunthorpe To: "Aneesh Kumar K.V" Cc: Leon Romanovsky , Greg Kroah-Hartman , "Rafael J. Wysocki" , Danilo Krummrich , Dmitry Torokhov , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Johannes Berg , Jonathan Corbet , Shuah Khan , Randy Dunlap , Bjorn Helgaas , "Joerg Roedel (AMD)" , Suravee Suthikulpanit , Vasant Hegde , Will Deacon , Robin Murphy , David Woodhouse , Lu Baolu , Johan Hovold , Eric Dumazet , Marcel Holtmann , Luiz Augusto von Dentz , Nipun Gupta , Nikhil Agarwal , Pieter Jansen van Vuuren , linux-kernel@vger.kernel.org, driver-core@lists.linux.dev, linux-input@vger.kernel.org, netdev@vger.kernel.org, linux-wireless@vger.kernel.org, linux-usb@vger.kernel.org, linux-bluetooth@vger.kernel.org, linux-acpi@vger.kernel.org, linux-doc@vger.kernel.org, linux-pci@vger.kernel.org, iommu@lists.linux.dev Subject: Re: [PATCH 17/17] PCI: Replace untrusted state with device trust Message-ID: <20261116155942.GA2299285@ziepe.ca> References: <20261105-device-trust-core-v1-0-1e536825b4eb@nvidia.com> <20261105-device-trust-core-v1-17-1e536825b4eb@nvidia.com> <20261116132046.GI2532299@ziepe.ca> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Mon, Nov 16, 2026 at 09:22:11PM +0530, Aneesh Kumar K.V wrote: > > Once you turn on TDISP you effectively activate DMA, just like turning > > on the IOMMU. > > We considered two options for doing this: > > 1. Via the ->accept() callback in pci_tsm_ops. > 2. Via pci_dma_configure(), based on a combination of device trust and device acceptance. > > If I understand correctly, you are suggesting that we stick with the > former? It should still be done in #2, just with nothing to do with device trust. You can't run a TDISP run device at all if DMA_ENABLE is not done, there is no half step here so it has nothing to do with device trust. Jason