]> www.infradead.org Git - users/dwmw2/linux.git/commit
PCI: Add TLP Processing Hints (TPH) support
authorWei Huang <wei.huang2@amd.com>
Wed, 2 Oct 2024 16:59:50 +0000 (11:59 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 2 Oct 2024 21:20:01 +0000 (16:20 -0500)
commitf69767a1ada3ac74be2e1ac0795a05e1d1384eff
tree31ffb9fecd595d98a85f7a1b5c96d45e766e6821
parent9852d85ec9d492ebef56dc5f229416c925758edc
PCI: Add TLP Processing Hints (TPH) support

Add support for PCIe TLP Processing Hints (TPH) support (see PCIe r6.2,
sec 6.17).

Add TPH register definitions in pci_regs.h, including the TPH Requester
capability register, TPH Requester control register, TPH Completer
capability, and the ST fields of MSI-X entry.

Introduce pcie_enable_tph() and pcie_disable_tph(), enabling drivers to
toggle TPH support and configure specific ST mode as needed. Also add a new
kernel parameter, "pci=notph", allowing users to disable TPH support across
the entire system.

Link: https://lore.kernel.org/r/20241002165954.128085-2-wei.huang2@amd.com
Co-developed-by: Jing Liu <jing2.liu@intel.com>
Co-developed-by: Paul Luse <paul.e.luse@linux.intel.com>
Co-developed-by: Eric Van Tassell <Eric.VanTassell@amd.com>
Signed-off-by: Jing Liu <jing2.liu@intel.com>
Signed-off-by: Paul Luse <paul.e.luse@linux.intel.com>
Signed-off-by: Eric Van Tassell <Eric.VanTassell@amd.com>
Signed-off-by: Wei Huang <wei.huang2@amd.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
Reviewed-by: Andy Gospodarek <andrew.gospodarek@broadcom.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Lukas Wunner <lukas@wunner.de>
Documentation/admin-guide/kernel-parameters.txt
drivers/pci/Kconfig
drivers/pci/Makefile
drivers/pci/pci.c
drivers/pci/pci.h
drivers/pci/probe.c
drivers/pci/tph.c [new file with mode: 0644]
include/linux/pci-tph.h [new file with mode: 0644]
include/linux/pci.h
include/uapi/linux/pci_regs.h