[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210805211200.491275-1-jeremy.linton@arm.com>
Date: Thu, 5 Aug 2021 16:11:57 -0500
From: Jeremy Linton <jeremy.linton@....com>
To: linux-pci@...r.kernel.org
Cc: lorenzo.pieralisi@....com, nsaenz@...nel.org, bhelgaas@...gle.com,
rjw@...ysocki.net, lenb@...nel.org, robh@...nel.org, kw@...ux.com,
f.fainelli@...il.com, bcm-kernel-feedback-list@...adcom.com,
linux-acpi@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-rpi-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
Jeremy Linton <jeremy.linton@....com>
Subject: [PATCH 0/3] CM4 ACPI PCIe quirk
The PFTF CM4 is an ACPI platform that is following the PCIe SMCCC
standard because its PCIe config space isn't ECAM compliant and is
split into two parts. One part for the root port registers and a
moveable window which points at a given device's 4K config space.
Thus it doesn't have a MCFG (and really any MCFG provided would be
nonsense anyway). As linux doesn't support the PCIe SMCCC standard
we key off a linux specific host bridge _DSD to add custom ECAM
ops and cfgres. The cfg op selects between those two regions, as
well as disallowing problematic accesses, particularly if the link
is down because there isn't an attached device.
Jeremy Linton (3):
PCI: brcmstb: Break register definitions into separate header
PCI: brcmstb: Add ACPI config space quirk
PCI/ACPI: Add new quirk detection, enable bcm2711
drivers/acpi/pci_mcfg.c | 14 ++
drivers/pci/controller/Makefile | 1 +
drivers/pci/controller/pcie-brcmstb-acpi.c | 77 +++++++++
drivers/pci/controller/pcie-brcmstb.c | 179 +-------------------
drivers/pci/controller/pcie-brcmstb.h | 182 +++++++++++++++++++++
include/linux/pci-ecam.h | 1 +
6 files changed, 276 insertions(+), 178 deletions(-)
create mode 100644 drivers/pci/controller/pcie-brcmstb-acpi.c
create mode 100644 drivers/pci/controller/pcie-brcmstb.h
--
2.31.1
Powered by blists - more mailing lists