[PATCH v9 08/13] PCI/TSM: Keep connections active while device contexts exist

Baolu Lu baolu.lu at linux.intel.com
Thu Nov 19 18:58:44 PST 2026


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<bhelgaas at google.com>
> Cc:linux-pci at vger.kernel.org
> Cc: Alexey Kardashevskiy<aik at amd.com>
> Cc: Jason Gunthorpe<jgg at ziepe.ca>
> Cc: Lukas Wunner<lukas at wunner.de>
> Signed-off-by: Aneesh Kumar K.V (Arm)<aneesh.kumar at kernel.org>
> ---
>   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



More information about the linux-arm-kernel mailing list