diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2012-07-09 23:38:57 +0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2012-07-10 05:52:04 +0400 |
commit | 2b28ae1912e5ce5bb0527e352ae6ff04e76183d1 (patch) | |
tree | f8fb930ee1277c1e59c3db8bb802867e2c2d9a59 /CREDITS | |
parent | 5dde383e2ef5e22fe7db689dc38c1aabfb801449 (diff) | |
download | linux-2b28ae1912e5ce5bb0527e352ae6ff04e76183d1.tar.xz |
PCI: reimplement P2P bridge 1K I/O windows (Intel P64H2)
9d265124d051 and 15a260d53f7c added quirks for P2P bridges that support
I/O windows that start/end at 1K boundaries, not just the 4K boundaries
defined by the PCI spec. For details, see the IOBL_ADR register and the
EN1K bit in the CNF register in the Intel 82870P2 (P64H2).
These quirks complicate the code that reads P2P bridge windows
(pci_read_bridge_io() and pci_cfg_fake_ranges()) because the bridge
I/O resource is updated in the HEADER quirk, in pci_read_bridge_io(),
in pci_setup_bridge(), and again in the FINAL quirk. This is confusing
and makes it impossible to reassign the bridge windows after FINAL
quirks are run.
This patch adds support for 1K windows in the generic paths, so the
HEADER quirk only has to enable this support. The FINAL quirk, which
used to undo damage done by pci_setup_bridge(), is no longer needed.
This removes "if (!res->start) res->start = ..." from pci_read_bridge_io();
that was part of 9d265124d051 to avoid overwriting the resource filled in
by the quirk. Since pci_read_bridge_io() itself now knows about
granularity, the quirk no longer updates the resource and this test is no
longer needed.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'CREDITS')
0 files changed, 0 insertions, 0 deletions