OSDN Git Service

PCI: iproc: Reject unconfigured physical functions from PAXC
authorRay Jui <ray.jui@broadcom.com>
Tue, 12 Jun 2018 00:21:06 +0000 (17:21 -0700)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Fri, 13 Jul 2018 10:56:55 +0000 (11:56 +0100)
commitf78e60a29d4ff27531770cf2c6eee89292379209
tree10d900903255dc58311052926fe2298624532ac5
parent1e5748c27ad6669ec4a377f44ef40898c28184e5
PCI: iproc: Reject unconfigured physical functions from PAXC

PAXC is an emulated PCIe root complex internally in various Broadcom
based SoCs. PAXC internally connects to the embedded network processor
within these SoCs, with the embedeed network processor exposed as an
endpoint device.

The number of physical functions from the embedded network processor
that can be accessed depends on the firmware configuration.

Unfortunately, due to an ASIC bug, unconfigured physical functions cannot
be properly hidden from the root complex during enumerattion. As a
result, config write access to these unconfigured physical functions
during enumeration will cause a bus lock up on the embedded network
processor.

Fortunately, these unconfigured physical functions contain a very
specific, staled PCIe device ID 0x168e. By making use of this device ID,
one is able to terminate the enumeration early in the vendor/device ID
config read.

Signed-off-by: Ray Jui <ray.jui@broadcom.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Scott Branden <scott.branden@broadcom.com>
Reviewed-by: Oza Pawandeep <poza@codeaurora.org>
drivers/pci/controller/pcie-iproc.c
drivers/pci/controller/pcie-iproc.h