linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Add support to enable ATS on VFs independently
@ 2023-02-28  4:21 Ganapatrao Kulkarni
  2023-02-28  4:21 ` [PATCH v2 1/2] PCI/ATS: Add a helper function to configure ATS STU of a PF Ganapatrao Kulkarni
                   ` (2 more replies)
  0 siblings, 3 replies; 21+ messages in thread
From: Ganapatrao Kulkarni @ 2023-02-28  4:21 UTC (permalink / raw)
  To: linux-kernel, linux-pci, linux-arm-kernel, iommu, joro, bhelgaas,
	robin.murphy, will
  Cc: jean-philippe, sathyanarayanan.kuppuswamy, darren, scott,
	gankulkarni

As discussed in [1], adding a helper function to configure the STU of an
ATS capability. Function pci_ats_stu_configure() can be called to program
the STU while enumerating the PF, to support scenarios like PF is not
enabled with ATS, whereas VFs can enable it.

In SMMU-V3 driver, calling pci_ats_stu_configure() to confgiure the STU
while enumerating a PF in passthrough mode.

[1] https://lore.kernel.org/linux-arm-kernel/20230221154624.GA3701506@bhelgaas/T/

v2:
	- Added dummy definition for pci_ats_stu_configure.
	- Changed STU configure to read modify write.

Ganapatrao Kulkarni (2):
  PCI/ATS: Add a helper function to configure ATS STU of a PF.
  iommu/arm-smmu-v3: Configure STU of a PF if ATS is not enabled.

 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 25 +++++++++++++++-
 drivers/pci/ats.c                           | 33 +++++++++++++++++++--
 include/linux/pci-ats.h                     |  3 ++
 3 files changed, 58 insertions(+), 3 deletions(-)

-- 
2.38.1


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2023-03-15 14:30 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-28  4:21 [PATCH v2 0/2] Add support to enable ATS on VFs independently Ganapatrao Kulkarni
2023-02-28  4:21 ` [PATCH v2 1/2] PCI/ATS: Add a helper function to configure ATS STU of a PF Ganapatrao Kulkarni
2023-02-28 16:30   ` Sathyanarayanan Kuppuswamy
2023-03-08  8:54   ` Ganapatrao Kulkarni
2023-03-13 21:12   ` Bjorn Helgaas
2023-03-13 22:30     ` Sathyanarayanan Kuppuswamy
2023-03-13 22:42       ` Bjorn Helgaas
2023-03-14 10:08       ` Ganapatrao Kulkarni
2023-03-14 12:52         ` Sathyanarayanan Kuppuswamy
2023-03-14 14:36           ` Ganapatrao Kulkarni
2023-03-14 16:02             ` Bjorn Helgaas
2023-03-14 16:50               ` Sathyanarayanan Kuppuswamy
2023-03-14 17:10                 ` Bjorn Helgaas
2023-03-14 18:01                   ` Ganapatrao Kulkarni
2023-03-14 18:12                   ` Sathyanarayanan Kuppuswamy
2023-03-14 21:17                     ` Bjorn Helgaas
2023-03-15  4:22                       ` Sathyanarayanan Kuppuswamy
2023-03-15 14:30                     ` Ganapatrao Kulkarni
2023-02-28  4:21 ` [PATCH v2 2/2] iommu/arm-smmu-v3: Configure STU of a PF if ATS is not enabled Ganapatrao Kulkarni
2023-03-13 14:19   ` Ganapatrao Kulkarni
2023-03-02  4:24 ` [PATCH v2 0/2] Add support to enable ATS on VFs independently Sathyanarayanan Kuppuswamy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).