mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 07:35:12 +07:00
02bfeb4842
Some PCIe features (AER, DPC, hotplug, PME) can be managed by either the platform firmware or the OS, so the host bridge driver may have to request permission from the platform before using them. On ACPI systems, this is done by negotiate_os_control() in acpi_pci_root_add(). The PCIe port driver later uses pcie_port_platform_notify() and pcie_port_acpi_setup() to figure out whether it can use these features. But all we need is a single bit for each service, so these interfaces are needlessly complicated. Simplify this by adding bits in the struct pci_host_bridge to show when the OS has permission to use each feature: + unsigned int native_aer:1; /* OS may use PCIe AER */ + unsigned int native_hotplug:1; /* OS may use PCIe hotplug */ + unsigned int native_pme:1; /* OS may use PCIe PME */ These are set when we create a host bridge, and the host bridge driver can clear the bits corresponding to any feature the platform doesn't want us to use. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
20 lines
410 B
Makefile
20 lines
410 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Makefile for PCI-Express PORT Driver
|
|
#
|
|
|
|
# Build PCI Express ASPM if needed
|
|
obj-$(CONFIG_PCIEASPM) += aspm.o
|
|
|
|
pcieportdrv-y := portdrv_core.o portdrv_pci.o
|
|
|
|
obj-$(CONFIG_PCIEPORTBUS) += pcieportdrv.o
|
|
|
|
# Build PCI Express AER if needed
|
|
obj-$(CONFIG_PCIEAER) += aer/
|
|
|
|
obj-$(CONFIG_PCIE_PME) += pme.o
|
|
|
|
obj-$(CONFIG_PCIE_DPC) += pcie-dpc.o
|
|
obj-$(CONFIG_PCIE_PTM) += ptm.o
|