diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-05-08 22:03:25 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-05-08 22:03:25 -0400 |
commit | 857f8640147c9fb43f20e43cbca6452710e1ca5d (patch) | |
tree | 76a92068d703b8001ca790ffa096d435fa24ae81 /drivers/acpi/pci_mcfg.c | |
parent | 8f3207c7eab9d885cc64c778416537034a7d9c5b (diff) | |
parent | 3146c8f4de9b0858794a902f273aec13f168596e (diff) |
Merge tag 'pci-v4.12-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci
Pull PCI updates from Bjorn Helgaas:
- add framework for supporting PCIe devices in Endpoint mode (Kishon
Vijay Abraham I)
- use non-postable PCI config space mappings when possible (Lorenzo
Pieralisi)
- clean up and unify mmap of PCI BARs (David Woodhouse)
- export and unify Function Level Reset support (Christoph Hellwig)
- avoid FLR for Intel 82579 NICs (Sasha Neftin)
- add pci_request_irq() and pci_free_irq() helpers (Christoph Hellwig)
- short-circuit config access failures for disconnected devices (Keith
Busch)
- remove D3 sleep delay when possible (Adrian Hunter)
- freeze PME scan before suspending devices (Lukas Wunner)
- stop disabling MSI/MSI-X in pci_device_shutdown() (Prarit Bhargava)
- disable boot interrupt quirk for ASUS M2N-LR (Stefan Assmann)
- add arch-specific alignment control to improve device passthrough by
avoiding multiple BARs in a page (Yongji Xie)
- add sysfs sriov_drivers_autoprobe to control VF driver binding
(Bodong Wang)
- allow slots below PCI-to-PCIe "reverse bridges" (Bjorn Helgaas)
- fix crashes when unbinding host controllers that don't support
removal (Brian Norris)
- add driver for MicroSemi Switchtec management interface (Logan
Gunthorpe)
- add driver for Faraday Technology FTPCI100 host bridge (Linus
Walleij)
- add i.MX7D support (Andrey Smirnov)
- use generic MSI support for Aardvark (Thomas Petazzoni)
- make Rockchip driver modular (Brian Norris)
- advertise 128-byte Read Completion Boundary support for Rockchip
(Shawn Lin)
- advertise PCI_EXP_LNKSTA_SLC for Rockchip root port (Shawn Lin)
- convert atomic_t to refcount_t in HV driver (Elena Reshetova)
- add CPU IRQ affinity in HV driver (K. Y. Srinivasan)
- fix PCI bus removal in HV driver (Long Li)
- add support for ThunderX2 DMA alias topology (Jayachandran C)
- add ThunderX pass2.x 2nd node MCFG quirk (Tomasz Nowicki)
- add ITE 8893 bridge DMA alias quirk (Jarod Wilson)
- restrict Cavium ACS quirk only to CN81xx/CN83xx/CN88xx devices
(Manish Jaggi)
* tag 'pci-v4.12-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci: (146 commits)
PCI: Don't allow unbinding host controllers that aren't prepared
ARM: DRA7: clockdomain: Change the CLKTRCTRL of CM_PCIE_CLKSTCTRL to SW_WKUP
MAINTAINERS: Add PCI Endpoint maintainer
Documentation: PCI: Add userguide for PCI endpoint test function
tools: PCI: Add sample test script to invoke pcitest
tools: PCI: Add a userspace tool to test PCI endpoint
Documentation: misc-devices: Add Documentation for pci-endpoint-test driver
misc: Add host side PCI driver for PCI test function device
PCI: Add device IDs for DRA74x and DRA72x
dt-bindings: PCI: dra7xx: Add DT bindings to enable unaligned access
PCI: dwc: dra7xx: Workaround for errata id i870
dt-bindings: PCI: dra7xx: Add DT bindings for PCI dra7xx EP mode
PCI: dwc: dra7xx: Add EP mode support
PCI: dwc: dra7xx: Facilitate wrapper and MSI interrupts to be enabled independently
dt-bindings: PCI: Add DT bindings for PCI designware EP mode
PCI: dwc: designware: Add EP mode support
Documentation: PCI: Add binding documentation for pci-test endpoint function
ixgbe: Use pcie_flr() instead of duplicating it
IB/hfi1: Use pcie_flr() instead of duplicating it
PCI: imx6: Fix spelling mistake: "contol" -> "control"
...
Diffstat (limited to 'drivers/acpi/pci_mcfg.c')
-rw-r--r-- | drivers/acpi/pci_mcfg.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/drivers/acpi/pci_mcfg.c b/drivers/acpi/pci_mcfg.c index 2944353253ed..a4e8432fc2fb 100644 --- a/drivers/acpi/pci_mcfg.c +++ b/drivers/acpi/pci_mcfg.c | |||
@@ -54,6 +54,7 @@ static struct mcfg_fixup mcfg_quirks[] = { | |||
54 | 54 | ||
55 | #define QCOM_ECAM32(seg) \ | 55 | #define QCOM_ECAM32(seg) \ |
56 | { "QCOM ", "QDF2432 ", 1, seg, MCFG_BUS_ANY, &pci_32b_ops } | 56 | { "QCOM ", "QDF2432 ", 1, seg, MCFG_BUS_ANY, &pci_32b_ops } |
57 | |||
57 | QCOM_ECAM32(0), | 58 | QCOM_ECAM32(0), |
58 | QCOM_ECAM32(1), | 59 | QCOM_ECAM32(1), |
59 | QCOM_ECAM32(2), | 60 | QCOM_ECAM32(2), |
@@ -68,6 +69,7 @@ static struct mcfg_fixup mcfg_quirks[] = { | |||
68 | { "HISI ", table_id, 0, (seg) + 1, MCFG_BUS_ANY, ops }, \ | 69 | { "HISI ", table_id, 0, (seg) + 1, MCFG_BUS_ANY, ops }, \ |
69 | { "HISI ", table_id, 0, (seg) + 2, MCFG_BUS_ANY, ops }, \ | 70 | { "HISI ", table_id, 0, (seg) + 2, MCFG_BUS_ANY, ops }, \ |
70 | { "HISI ", table_id, 0, (seg) + 3, MCFG_BUS_ANY, ops } | 71 | { "HISI ", table_id, 0, (seg) + 3, MCFG_BUS_ANY, ops } |
72 | |||
71 | HISI_QUAD_DOM("HIP05 ", 0, &hisi_pcie_ops), | 73 | HISI_QUAD_DOM("HIP05 ", 0, &hisi_pcie_ops), |
72 | HISI_QUAD_DOM("HIP06 ", 0, &hisi_pcie_ops), | 74 | HISI_QUAD_DOM("HIP06 ", 0, &hisi_pcie_ops), |
73 | HISI_QUAD_DOM("HIP07 ", 0, &hisi_pcie_ops), | 75 | HISI_QUAD_DOM("HIP07 ", 0, &hisi_pcie_ops), |
@@ -77,6 +79,7 @@ static struct mcfg_fixup mcfg_quirks[] = { | |||
77 | 79 | ||
78 | #define THUNDER_PEM_RES(addr, node) \ | 80 | #define THUNDER_PEM_RES(addr, node) \ |
79 | DEFINE_RES_MEM((addr) + ((u64) (node) << 44), 0x39 * SZ_16M) | 81 | DEFINE_RES_MEM((addr) + ((u64) (node) << 44), 0x39 * SZ_16M) |
82 | |||
80 | #define THUNDER_PEM_QUIRK(rev, node) \ | 83 | #define THUNDER_PEM_QUIRK(rev, node) \ |
81 | { "CAVIUM", "THUNDERX", rev, 4 + (10 * (node)), MCFG_BUS_ANY, \ | 84 | { "CAVIUM", "THUNDERX", rev, 4 + (10 * (node)), MCFG_BUS_ANY, \ |
82 | &thunder_pem_ecam_ops, THUNDER_PEM_RES(0x88001f000000UL, node) }, \ | 85 | &thunder_pem_ecam_ops, THUNDER_PEM_RES(0x88001f000000UL, node) }, \ |
@@ -90,13 +93,16 @@ static struct mcfg_fixup mcfg_quirks[] = { | |||
90 | &thunder_pem_ecam_ops, THUNDER_PEM_RES(0x894057000000UL, node) }, \ | 93 | &thunder_pem_ecam_ops, THUNDER_PEM_RES(0x894057000000UL, node) }, \ |
91 | { "CAVIUM", "THUNDERX", rev, 9 + (10 * (node)), MCFG_BUS_ANY, \ | 94 | { "CAVIUM", "THUNDERX", rev, 9 + (10 * (node)), MCFG_BUS_ANY, \ |
92 | &thunder_pem_ecam_ops, THUNDER_PEM_RES(0x89808f000000UL, node) } | 95 | &thunder_pem_ecam_ops, THUNDER_PEM_RES(0x89808f000000UL, node) } |
93 | /* SoC pass2.x */ | ||
94 | THUNDER_PEM_QUIRK(1, 0), | ||
95 | THUNDER_PEM_QUIRK(1, 1), | ||
96 | 96 | ||
97 | #define THUNDER_ECAM_QUIRK(rev, seg) \ | 97 | #define THUNDER_ECAM_QUIRK(rev, seg) \ |
98 | { "CAVIUM", "THUNDERX", rev, seg, MCFG_BUS_ANY, \ | 98 | { "CAVIUM", "THUNDERX", rev, seg, MCFG_BUS_ANY, \ |
99 | &pci_thunder_ecam_ops } | 99 | &pci_thunder_ecam_ops } |
100 | |||
101 | /* SoC pass2.x */ | ||
102 | THUNDER_PEM_QUIRK(1, 0), | ||
103 | THUNDER_PEM_QUIRK(1, 1), | ||
104 | THUNDER_ECAM_QUIRK(1, 10), | ||
105 | |||
100 | /* SoC pass1.x */ | 106 | /* SoC pass1.x */ |
101 | THUNDER_PEM_QUIRK(2, 0), /* off-chip devices */ | 107 | THUNDER_PEM_QUIRK(2, 0), /* off-chip devices */ |
102 | THUNDER_PEM_QUIRK(2, 1), /* off-chip devices */ | 108 | THUNDER_PEM_QUIRK(2, 1), /* off-chip devices */ |
@@ -112,9 +118,11 @@ static struct mcfg_fixup mcfg_quirks[] = { | |||
112 | #define XGENE_V1_ECAM_MCFG(rev, seg) \ | 118 | #define XGENE_V1_ECAM_MCFG(rev, seg) \ |
113 | {"APM ", "XGENE ", rev, seg, MCFG_BUS_ANY, \ | 119 | {"APM ", "XGENE ", rev, seg, MCFG_BUS_ANY, \ |
114 | &xgene_v1_pcie_ecam_ops } | 120 | &xgene_v1_pcie_ecam_ops } |
121 | |||
115 | #define XGENE_V2_ECAM_MCFG(rev, seg) \ | 122 | #define XGENE_V2_ECAM_MCFG(rev, seg) \ |
116 | {"APM ", "XGENE ", rev, seg, MCFG_BUS_ANY, \ | 123 | {"APM ", "XGENE ", rev, seg, MCFG_BUS_ANY, \ |
117 | &xgene_v2_pcie_ecam_ops } | 124 | &xgene_v2_pcie_ecam_ops } |
125 | |||
118 | /* X-Gene SoC with v1 PCIe controller */ | 126 | /* X-Gene SoC with v1 PCIe controller */ |
119 | XGENE_V1_ECAM_MCFG(1, 0), | 127 | XGENE_V1_ECAM_MCFG(1, 0), |
120 | XGENE_V1_ECAM_MCFG(1, 1), | 128 | XGENE_V1_ECAM_MCFG(1, 1), |