Re: [RFC PATCH V5 0/5] ECAM quirks handling for ARM64 platforms

From: Mark Salter
Date: Mon Aug 08 2016 - 15:44:38 EST


On Mon, 2016-08-08 at 15:05 +0200, Tomasz Nowicki wrote:
> Quirk handling relies on an idea of matching MCFG OEM ID, TABLE ID and
> revision (the ones from standard header of MCFG table).
>
> Static array is used to keep quirk entries. Each entry consists of
> mentioned MCFG IDs along with custom pci_ops structure and initialization call.
>
> As an example, the last patch presents quirk handling mechanism usage for
> ThunderX PEM driver.
>
> v4 -> v5
> - rebase against v4.8-rc1
> - rework to exact MCFG OEM ID, TABLE ID, rev match
> Â - use memcmp instead of strncmp
> Â - no substring match
> - fix typos and dmesg message
>
> Tomasz Nowicki (5):
> Â PCI: Embed pci_ecam_ops in pci_config_window structure
> Â PCI/ACPI: Move ACPI ECAM mapping to generic MCFG driver
> Â PCI: Check platform specific ECAM quirks
> Â ARM64/PCI: Start using quirks handling for ACPI based PCI host
> ÂÂÂÂcontroller
> Â PCI: thunder-pem: Support quirky configuration space access for ACPI
> ÂÂÂÂbased PCI host controller
>
> Âarch/arm64/kernel/pci.cÂÂÂÂÂÂÂÂÂÂÂÂ| 42 +----------------
> Âdrivers/acpi/pci_mcfg.cÂÂÂÂÂÂÂÂÂÂÂÂ| 40 ++++++++++++++++
> Âdrivers/pci/ecam.cÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ|ÂÂ6 +--
> Âdrivers/pci/host/MakefileÂÂÂÂÂÂÂÂÂÂ|ÂÂ1 +
> Âdrivers/pci/host/mcfg-quirks.cÂÂÂÂÂ| 93 ++++++++++++++++++++++++++++++++++++
> Âdrivers/pci/host/mcfg-quirks.hÂÂÂÂÂ| 24 ++++++++++
> Âdrivers/pci/host/pci-thunder-pem.c | 96 ++++++++++++++++++++++++++++++++------
> Âinclude/linux/pci-acpi.hÂÂÂÂÂÂÂÂÂÂÂ|ÂÂ5 ++
> Âinclude/linux/pci-ecam.hÂÂÂÂÂÂÂÂÂÂÂ|ÂÂ2 +-
> Â9 files changed, 252 insertions(+), 57 deletions(-)
> Âcreate mode 100644 drivers/pci/host/mcfg-quirks.c
> Âcreate mode 100644 drivers/pci/host/mcfg-quirks.h
>

Tested-by: Mark Salter <msalter@xxxxxxxxxx>