Skip to content

Commit 105cf3c

Browse files
committed
Merge tag 'pci-v4.16-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci
Pull PCI updates from Bjorn Helgaas: - skip AER driver error recovery callbacks for correctable errors reported via ACPI APEI, as we already do for errors reported via the native path (Tyler Baicar) - fix DPC shared interrupt handling (Alex Williamson) - print full DPC interrupt number (Keith Busch) - enable DPC only if AER is available (Keith Busch) - simplify DPC code (Bjorn Helgaas) - calculate ASPM L1 substate parameter instead of hardcoding it (Bjorn Helgaas) - enable Latency Tolerance Reporting for ASPM L1 substates (Bjorn Helgaas) - move ASPM internal interfaces out of public header (Bjorn Helgaas) - allow hot-removal of VGA devices (Mika Westerberg) - speed up unplug and shutdown by assuming Thunderbolt controllers don't support Command Completed events (Lukas Wunner) - add AtomicOps support for GPU and Infiniband drivers (Felix Kuehling, Jay Cornwall) - expose "ari_enabled" in sysfs to help NIC naming (Stuart Hayes) - clean up PCI DMA interface usage (Christoph Hellwig) - remove PCI pool API (replaced with DMA pool) (Romain Perier) - deprecate pci_get_bus_and_slot(), which assumed PCI domain 0 (Sinan Kaya) - move DT PCI code from drivers/of/ to drivers/pci/ (Rob Herring) - add PCI-specific wrappers for dev_info(), etc (Frederick Lawler) - remove warnings on sysfs mmap failure (Bjorn Helgaas) - quiet ROM validation messages (Alex Deucher) - remove redundant memory alloc failure messages (Markus Elfring) - fill in types for compile-time VGA and other I/O port resources (Bjorn Helgaas) - make "pci=pcie_scan_all" work for Root Ports as well as Downstream Ports to help AmigaOne X1000 (Bjorn Helgaas) - add SPDX tags to all PCI files (Bjorn Helgaas) - quirk Marvell 9128 DMA aliases (Alex Williamson) - quirk broken INTx disable on Ceton InfiniTV4 (Bjorn Helgaas) - fix CONFIG_PCI=n build by adding dummy pci_irqd_intx_xlate() (Niklas Cassel) - use DMA API to get MSI address for DesignWare IP (Niklas Cassel) - fix endpoint-mode DMA mask configuration (Kishon Vijay Abraham I) - fix ARTPEC-6 incorrect IS_ERR() usage (Wei Yongjun) - add support for ARTPEC-7 SoC (Niklas Cassel) - add endpoint-mode support for ARTPEC (Niklas Cassel) - add Cadence PCIe host and endpoint controller driver (Cyrille Pitchen) - handle multiple INTx status bits being set in dra7xx (Vignesh R) - translate dra7xx hwirq range to fix INTD handling (Vignesh R) - remove deprecated Exynos PHY initialization code (Jaehoon Chung) - fix MSI erratum workaround for HiSilicon Hip06/Hip07 (Dongdong Liu) - fix NULL pointer dereference in iProc BCMA driver (Ray Jui) - fix Keystone interrupt-controller-node lookup (Johan Hovold) - constify qcom driver structures (Julia Lawall) - rework Tegra config space mapping to increase space available for endpoints (Vidya Sagar) - simplify Tegra driver by using bus->sysdata (Manikanta Maddireddy) - remove PCI_REASSIGN_ALL_BUS usage on Tegra (Manikanta Maddireddy) - add support for Global Fabric Manager Server (GFMS) event to Microsemi Switchtec switch driver (Logan Gunthorpe) - add IDs for Switchtec PSX 24xG3 and PSX 48xG3 (Kelvin Cao) * tag 'pci-v4.16-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci: (140 commits) PCI: cadence: Add EndPoint Controller driver for Cadence PCIe controller dt-bindings: PCI: cadence: Add DT bindings for Cadence PCIe endpoint controller PCI: endpoint: Fix EPF device name to support multi-function devices PCI: endpoint: Add the function number as argument to EPC ops PCI: cadence: Add host driver for Cadence PCIe controller dt-bindings: PCI: cadence: Add DT bindings for Cadence PCIe host controller PCI: Add vendor ID for Cadence PCI: Add generic function to probe PCI host controllers PCI: generic: fix missing call of pci_free_resource_list() PCI: OF: Add generic function to parse and allocate PCI resources PCI: Regroup all PCI related entries into drivers/pci/Makefile PCI/DPC: Reformat DPC register definitions PCI/DPC: Add and use DPC Status register field definitions PCI/DPC: Squash dpc_rp_pio_get_info() into dpc_process_rp_pio_error() PCI/DPC: Remove unnecessary RP PIO register structs PCI/DPC: Push dpc->rp_pio_status assignment into dpc_rp_pio_get_info() PCI/DPC: Squash dpc_rp_pio_print_error() into dpc_rp_pio_get_info() PCI/DPC: Make RP PIO log size check more generic PCI/DPC: Rename local "status" to "dpc_status" PCI/DPC: Squash dpc_rp_pio_print_tlp_header() into dpc_rp_pio_print_error() ...
2 parents e237f98 + ab8c609 commit 105cf3c

248 files changed

Lines changed: 4503 additions & 3756 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/admin-guide/kernel-parameters.txt‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3711,7 +3711,11 @@
37113711
[KNL, SMP] Set scheduler's default relax_domain_level.
37123712
See Documentation/cgroup-v1/cpusets.txt.
37133713

3714-
reserve= [KNL,BUGS] Force the kernel to ignore some iomem area
3714+
reserve= [KNL,BUGS] Force kernel to ignore I/O ports or memory
3715+
Format: <base1>,<size1>[,<base2>,<size2>,...]
3716+
Reserve I/O ports or memory so the kernel won't use
3717+
them. If <base> is less than 0x10000, the region
3718+
is assumed to be I/O ports; otherwise it is memory.
37153719

37163720
reservetop= [X86-32]
37173721
Format: nn[KMG]

‎Documentation/devicetree/bindings/pci/axis,artpec6-pcie.txt‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ This PCIe host controller is based on the Synopsys DesignWare PCIe IP
44
and thus inherits all the common properties defined in designware-pcie.txt.
55

66
Required properties:
7-
- compatible: "axis,artpec6-pcie", "snps,dw-pcie"
7+
- compatible: "axis,artpec6-pcie", "snps,dw-pcie" for ARTPEC-6 in RC mode;
8+
"axis,artpec6-pcie-ep", "snps,dw-pcie" for ARTPEC-6 in EP mode;
9+
"axis,artpec7-pcie", "snps,dw-pcie" for ARTPEC-7 in RC mode;
10+
"axis,artpec7-pcie-ep", "snps,dw-pcie" for ARTPEC-7 in EP mode;
811
- reg: base addresses and lengths of the PCIe controller (DBI),
912
the PHY controller, and configuration address space.
1013
- reg-names: Must include the following entries:
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
* Cadence PCIe endpoint controller
2+
3+
Required properties:
4+
- compatible: Should contain "cdns,cdns-pcie-ep" to identify the IP used.
5+
- reg: Should contain the controller register base address and AXI interface
6+
region base address respectively.
7+
- reg-names: Must be "reg" and "mem" respectively.
8+
- cdns,max-outbound-regions: Set to maximum number of outbound regions
9+
10+
Optional properties:
11+
- max-functions: Maximum number of functions that can be configured (default 1).
12+
13+
Example:
14+
15+
pcie@fc000000 {
16+
compatible = "cdns,cdns-pcie-ep";
17+
reg = <0x0 0xfc000000 0x0 0x01000000>,
18+
<0x0 0x80000000 0x0 0x40000000>;
19+
reg-names = "reg", "mem";
20+
cdns,max-outbound-regions = <16>;
21+
max-functions = /bits/ 8 <8>;
22+
};
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
* Cadence PCIe host controller
2+
3+
This PCIe controller inherits the base properties defined in
4+
host-generic-pci.txt.
5+
6+
Required properties:
7+
- compatible: Should contain "cdns,cdns-pcie-host" to identify the IP used.
8+
- reg: Should contain the controller register base address, PCIe configuration
9+
window base address, and AXI interface region base address respectively.
10+
- reg-names: Must be "reg", "cfg" and "mem" respectively.
11+
- #address-cells: Set to <3>
12+
- #size-cells: Set to <2>
13+
- device_type: Set to "pci"
14+
- ranges: Ranges for the PCI memory and I/O regions
15+
- #interrupt-cells: Set to <1>
16+
- interrupt-map-mask and interrupt-map: Standard PCI properties to define the
17+
mapping of the PCIe interface to interrupt numbers.
18+
19+
Optional properties:
20+
- cdns,max-outbound-regions: Set to maximum number of outbound regions
21+
(default 32)
22+
- cdns,no-bar-match-nbits: Set into the no BAR match register to configure the
23+
number of least significant bits kept during inbound (PCIe -> AXI) address
24+
translations (default 32)
25+
- vendor-id: The PCI vendor ID (16 bits, default is design dependent)
26+
- device-id: The PCI device ID (16 bits, default is design dependent)
27+
28+
Example:
29+
30+
pcie@fb000000 {
31+
compatible = "cdns,cdns-pcie-host";
32+
device_type = "pci";
33+
#address-cells = <3>;
34+
#size-cells = <2>;
35+
bus-range = <0x0 0xff>;
36+
linux,pci-domain = <0>;
37+
cdns,max-outbound-regions = <16>;
38+
cdns,no-bar-match-nbits = <32>;
39+
vendor-id = /bits/ 16 <0x17cd>;
40+
device-id = /bits/ 16 <0x0200>;
41+
42+
reg = <0x0 0xfb000000 0x0 0x01000000>,
43+
<0x0 0x41000000 0x0 0x00001000>,
44+
<0x0 0x40000000 0x0 0x04000000>;
45+
reg-names = "reg", "cfg", "mem";
46+
47+
ranges = <0x02000000 0x0 0x42000000 0x0 0x42000000 0x0 0x1000000>,
48+
<0x01000000 0x0 0x43000000 0x0 0x43000000 0x0 0x0010000>;
49+
50+
#interrupt-cells = <0x1>;
51+
52+
interrupt-map = <0x0 0x0 0x0 0x1 &gic 0x0 0x0 0x0 14 0x1
53+
0x0 0x0 0x0 0x2 &gic 0x0 0x0 0x0 15 0x1
54+
0x0 0x0 0x0 0x3 &gic 0x0 0x0 0x0 16 0x1
55+
0x0 0x0 0x0 0x4 &gic 0x0 0x0 0x0 17 0x1>;
56+
57+
interrupt-map-mask = <0x0 0x0 0x0 0x7>;
58+
59+
msi-parent = <&its_pci>;
60+
};

‎Documentation/devicetree/bindings/pci/samsung,exynos5440-pcie.txt‎

Lines changed: 11 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ and thus inherits all the common properties defined in designware-pcie.txt.
66
Required properties:
77
- compatible: "samsung,exynos5440-pcie"
88
- reg: base addresses and lengths of the PCIe controller,
9-
the PHY controller, additional register for the PHY controller.
10-
(Registers for the PHY controller are DEPRECATED.
11-
Use the PHY framework.)
129
- reg-names : First name should be set to "elbi".
1310
And use the "config" instead of getting the configuration address space
1411
from "ranges".
@@ -23,49 +20,8 @@ For other common properties, refer to
2320

2421
Example:
2522

26-
SoC-specific DT Entry:
23+
SoC-specific DT Entry (with using PHY framework):
2724

28-
pcie@290000 {
29-
compatible = "samsung,exynos5440-pcie", "snps,dw-pcie";
30-
reg = <0x290000 0x1000
31-
0x270000 0x1000
32-
0x271000 0x40>;
33-
interrupts = <0 20 0>, <0 21 0>, <0 22 0>;
34-
clocks = <&clock 28>, <&clock 27>;
35-
clock-names = "pcie", "pcie_bus";
36-
#address-cells = <3>;
37-
#size-cells = <2>;
38-
device_type = "pci";
39-
ranges = <0x00000800 0 0x40000000 0x40000000 0 0x00001000 /* configuration space */
40-
0x81000000 0 0 0x40001000 0 0x00010000 /* downstream I/O */
41-
0x82000000 0 0x40011000 0x40011000 0 0x1ffef000>; /* non-prefetchable memory */
42-
#interrupt-cells = <1>;
43-
interrupt-map-mask = <0 0 0 0>;
44-
interrupt-map = <0 0 0 0 &gic GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
45-
num-lanes = <4>;
46-
};
47-
48-
pcie@2a0000 {
49-
compatible = "samsung,exynos5440-pcie", "snps,dw-pcie";
50-
reg = <0x2a0000 0x1000
51-
0x272000 0x1000
52-
0x271040 0x40>;
53-
interrupts = <0 23 0>, <0 24 0>, <0 25 0>;
54-
clocks = <&clock 29>, <&clock 27>;
55-
clock-names = "pcie", "pcie_bus";
56-
#address-cells = <3>;
57-
#size-cells = <2>;
58-
device_type = "pci";
59-
ranges = <0x00000800 0 0x60000000 0x60000000 0 0x00001000 /* configuration space */
60-
0x81000000 0 0 0x60001000 0 0x00010000 /* downstream I/O */
61-
0x82000000 0 0x60011000 0x60011000 0 0x1ffef000>; /* non-prefetchable memory */
62-
#interrupt-cells = <1>;
63-
interrupt-map-mask = <0 0 0 0>;
64-
interrupt-map = <0 0 0 0 &gic GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
65-
num-lanes = <4>;
66-
};
67-
68-
With using PHY framework:
6925
pcie_phy0: pcie-phy@270000 {
7026
...
7127
reg = <0x270000 0x1000>, <0x271000 0x40>;
@@ -74,13 +30,21 @@ With using PHY framework:
7430
};
7531

7632
pcie@290000 {
77-
...
33+
compatible = "samsung,exynos5440-pcie", "snps,dw-pcie";
7834
reg = <0x290000 0x1000>, <0x40000000 0x1000>;
7935
reg-names = "elbi", "config";
36+
clocks = <&clock 28>, <&clock 27>;
37+
clock-names = "pcie", "pcie_bus";
38+
#address-cells = <3>;
39+
#size-cells = <2>;
40+
device_type = "pci";
8041
phys = <&pcie_phy0>;
8142
ranges = <0x81000000 0 0 0x60001000 0 0x00010000
8243
0x82000000 0 0x60011000 0x60011000 0 0x1ffef000>;
83-
...
44+
#interrupt-cells = <1>;
45+
interrupt-map-mask = <0 0 0 0>;
46+
interrupt-map = <0 0 0 0 &gic GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
47+
num-lanes = <4>;
8448
};
8549

8650
Board-specific DT Entry:

‎MAINTAINERS‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10513,6 +10513,13 @@ S: Maintained
1051310513
F: Documentation/devicetree/bindings/pci/pci-armada8k.txt
1051410514
F: drivers/pci/dwc/pcie-armada8k.c
1051510515

10516+
PCI DRIVER FOR CADENCE PCIE IP
10517+
M: Alan Douglas <adouglas@cadence.com>
10518+
L: linux-pci@vger.kernel.org
10519+
S: Maintained
10520+
F: Documentation/devicetree/bindings/pci/cdns,*.txt
10521+
F: drivers/pci/cadence/pcie-cadence*
10522+
1051610523
PCI DRIVER FOR FREESCALE LAYERSCAPE
1051710524
M: Minghuan Lian <minghuan.Lian@freescale.com>
1051810525
M: Mingkai Hu <mingkai.hu@freescale.com>
@@ -10663,8 +10670,12 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git
1066310670
S: Supported
1066410671
F: Documentation/devicetree/bindings/pci/
1066510672
F: Documentation/PCI/
10673+
F: drivers/acpi/pci*
1066610674
F: drivers/pci/
10675+
F: include/asm-generic/pci*
1066710676
F: include/linux/pci*
10677+
F: include/uapi/linux/pci*
10678+
F: lib/pci*
1066810679
F: arch/x86/pci/
1066910680
F: arch/x86/kernel/quirks.c
1067010681

‎arch/alpha/kernel/console.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
struct pci_controller *pci_vga_hose;
2222
static struct resource alpha_vga = {
2323
.name = "alpha-vga+",
24+
.flags = IORESOURCE_IO,
2425
.start = 0x3C0,
2526
.end = 0x3DF
2627
};

‎arch/arm/include/asm/pci.h‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ extern unsigned long pcibios_min_io;
1010
extern unsigned long pcibios_min_mem;
1111
#define PCIBIOS_MIN_MEM pcibios_min_mem
1212

13-
static inline int pcibios_assign_all_busses(void)
14-
{
15-
return pci_has_flag(PCI_REASSIGN_ALL_RSRC);
16-
}
13+
#define pcibios_assign_all_busses() pci_has_flag(PCI_REASSIGN_ALL_BUS)
1714

1815
#ifdef CONFIG_PCI_DOMAINS
1916
static inline int pci_proc_domain(struct pci_bus *bus)

‎arch/arm/kernel/bios32.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ void pci_common_init_dev(struct device *parent, struct hw_pci *hw)
527527
struct pci_sys_data *sys;
528528
LIST_HEAD(head);
529529

530-
pci_add_flags(PCI_REASSIGN_ALL_RSRC);
530+
pci_add_flags(PCI_REASSIGN_ALL_BUS);
531531
if (hw->preinit)
532532
hw->preinit();
533533
pcibios_init_hw(parent, hw, &head);

‎arch/arm/mach-mvebu/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ menuconfig ARCH_MVEBU
1010
select ZONE_DMA if ARM_LPAE
1111
select GPIOLIB
1212
select PCI_QUIRKS if PCI
13-
select OF_ADDRESS_PCI
1413

1514
if ARCH_MVEBU
1615

0 commit comments

Comments
 (0)