From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.175.65.10 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795143536; b=u6acdDJcWOC6oobXZR+SI0C8jpqpz9cxSalnQ/jDyDm3dTOf7DFKgb3R3H4N6FCV11U3 ZQAhcIKVUshqT6fCmEp2/6pTdeYjMk4Xoc3tO6Zho5NiRf50os7/F8s6KReZ2MDSbilKB Tq6/4AzJgVnlS4F3E9zjxUOhrh5DSJI3JPJYYacEOGiLeprmlj92t6ydBzbSUOujxWphl mQ1xAUIHOJGIFuoKp7w762z0mJO2zU0WDHMaK4I4wnT9yCHxZkdvejCqCzviY0qFrmQfx Ma77KQu2pfSqYSSeApWKdLD45ZlwTzTIU9nFWjhCs7JcFNSMyrfD/03NHmousp5LVuw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795143536; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Message-ID:Date: MIME-Version:User-Agent:Cc:Subject:To:References:Content-Language: From:In-Reply-To:Content-Type:Content-Transfer-Encoding; bh=jwjWgtW4kRseoA0zVDGCPLIdUcXknOULKOmu6gYkLdw=; b=Yn9nhvWKZHgf0QET8KwVvrB2N/soMvNAKtWcJ0hheHbkvZjkZdZsU1x1XRAK1ioXXYL3 hYUAwlIabrqWgp64EQk2LNXJOaTNjuaH8S1I2TFoiKzCtHxYZqb67HrKAOP2iMfUL5v0b S0cDKRZq5lNHAVpBITvDQQyr9vQROFirFlGn2hd3yr/IeK1/2Qn1ID4LU0YqdWZOXo6PF 1YIaetx6l/+PXmPUm8eFTOdr7hYcbaEQd+1xQXkJxVess4Nay1oKz7vs7Ds8+5WS8t6kX +TDdzdmY3287syNA+9HdEwu7iFo0YKiGNAoZ3jqI0KfE4WpRvy5yT277KCMOx0JG3cw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=PPI2Tz45; arc=none smtp.remote-ip=198.175.65.10 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7AF5D606A320; Fri, 20 Nov 2026 02:58:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7AF5D606A320 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=PPI2Tz45 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1795143537; x=1826679537; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=hj2txJligqlKIDnOrXcY2GWTzSNfobaEGxDoiQKT+JY=; b=PPI2Tz45fCY26IlHxGlcVdrBe9LJcBwKiK+Lr1+Cp6OhwabuGGDATSYZ 2P/MBq0Y3ywqlWF6sshTrccU6JFoyOK5fB7GqFFudc4Zc5rdODNZlAVk1 G4YFa5L51tDd7O3r3FoW+YGiIEqoKHX2M/7rr7wfRiPj3n+0uzJ99/uXk gQ/yd4+V3EWaNhxI/S+pCOEJdbuENmLlWnGNzsYzGK90K3bT4ism7LI/r kRNGYKBgt63o6OcJ4iC3DQqDZL5/lYP916vHkB9nu+0WM/YLSr81W/nbd 3GA3n2j8o9ENSTiuypXsZv0Ot34UWZe8AKJFgqBcIA8SJ0nWup/3nr1d9 Q==; X-CSE-ConnectionGUID: lFSPEXw8RROLZunrMEpt/w== X-CSE-MsgGUID: pFwmRQLGSWeLA25IEEqQKw== X-IronPort-AV: E=McAfee;i="6800,10657,11971"; a="3931086" X-IronPort-AV: E=Sophos;i="6.27,222,1787036400"; d="scan'208";a="3931086" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Nov 2026 18:58:56 -0800 X-CSE-ConnectionGUID: pk12LqTwRhqc5Oao+l9uWg== X-CSE-MsgGUID: fKSf6pqqQ4++4flk103ZCA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,222,1787036400"; d="scan'208";a="10591451" Received: from unknown (HELO [10.238.1.144]) ([10.238.1.144]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Nov 2026 18:58:46 -0800 Message-ID: <0996eead-a63e-4a17-96d3-45ccd48cd4b1@linux.intel.com> Date: Fri, 20 Nov 2026 10:58:44 +0800 X-Mailing-List: linux-coco@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: baolu.lu@linux.intel.com, Alex Williamson , Alexey Kardashevskiy , Bjorn Helgaas , Catalin Marinas , Jacob Pan , Jason Gunthorpe , Joerg Roedel , Jonathan Cameron , Jonathan Hunter , Kevin Tian , Krishna Reddy , Lukas Wunner , Nicolin Chen , Robin Murphy , Samuel Ortiz , Shameer Kolothum , Steven Price , Suravee Suthikulpanit , Suzuki K Poulose , Thierry Reding , Vasant Hegde , Will Deacon , Xu Yilun , Ashish Kalra , Herbert Xu , iommu@lists.linux.dev, Jonathan Cameron , Tom Lendacky , kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org, linux-tegra@vger.kernel.org, patches@lists.linux.dev Subject: Re: [PATCH v9 08/13] PCI/TSM: Keep connections active while device contexts exist To: "Aneesh Kumar K.V (Arm)" , linux-coco@lists.linux.dev References: <20261116081935.85372-1-aneesh.kumar@kernel.org> <20261116081935.85372-9-aneesh.kumar@kernel.org> Content-Language: en-US From: Baolu Lu In-Reply-To: <20261116081935.85372-9-aneesh.kumar@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 11/16/2026 4:19 PM, Aneesh Kumar K.V (Arm) wrote: > Add PCI TEE Security Manager (TSM) contexts that prevent PF0 disconnect > while in use. Verify that the device is connected to the requested TSM. > Each successful get returns a separate context and requires a matching > put. Reject disconnect with -EBUSY until all contexts are released. > > Remove the legacy bind and unbind interface. Device security state is > managed by the backend, so also remove the associated "bound" sysfs > attribute and its ABI documentation. This patch does two things: add pci tsm contexts to keep the pf0 active while in use, and remove the old device bind/unbind interface. Could these changes be split into separate patches? That would make the changes easier to review. > > Cc: Bjorn Helgaas > Cc:linux-pci@vger.kernel.org > Cc: Alexey Kardashevskiy > Cc: Jason Gunthorpe > Cc: Lukas Wunner > Signed-off-by: Aneesh Kumar K.V (Arm) > --- > Documentation/ABI/testing/sysfs-bus-pci | 15 +- > drivers/pci/tsm/core.c | 227 ++++++++++-------------- > include/linux/pci-tsm.h | 71 +++++--- > 3 files changed, 136 insertions(+), 177 deletions(-) Thanks, baolu