Skip to content

PCI: of: Fix handling 64-bit PCI resources on non-LPAE kernels

Pavel Fedin linux-devicetree linux-pci 2 versions – Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 3 repliesApplied
  2. v12 patches 1 replySuperseded

Changes in v2 from the cover letter

- Dropped #ifndef, use sizeof(resource_size_t) instead

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2PCI: of: Add 64-bit address recognition without LPAE supportdrivers/of/address.c+6 -01 reply
2/2PCI: of: Ignore resources with failed translationdrivers/of/of_pci.c+4 -21 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] PCI: of: Fix handling 64-bit PCI resources on non-LPAE kernels

The initial aim of this series is to fix long-standing problem with generic PCI host controller, triggered by ARM "virt" machine in the recent qemu. Since v2.4.50 qemu adds support for the second, large PCI MMIO window, which resides in 64-bit address space. This series addresses problems, which are triggered on non-LPAE kernels by this configuration.

These patches do not depend on each other and can be applied individually. The first adds missing recognition of 64-bit resources (which is actually a bug). The second one changes the code to ignore unaccessible resources instead of completely bailing out. Since it touches generic of_pci code, the fix is expected to be applied to all drivers which use of_pci_get_host_bridge_resources().

v1 => v2:
- Dropped #ifndef, use sizeof(resource_size_t) instead

Pavel Fedin (2):
PCI: of: Add 64-bit address recognition without LPAE support
PCI: of: Ignore resources with failed translation

 drivers/of/address.c | 6 ++++++
 drivers/of/of_pci.c  | 6 ++++--
 2 files changed, 10 insertions(+), 2 deletions(-)
Signature · 1 line
2.4.4