Kai-Heng Feng
65db04053e
PCI: Coalesce host bridge contiguous apertures
...
Built-in graphics on HP EliteDesk 805 G6 doesn't work because graphics
can't get the BAR it needs:
pci_bus 0000:00: root bus resource [mem 0x10020200000-0x100303fffff window]
pci_bus 0000:00: root bus resource [mem 0x10030400000-0x100401fffff window]
pci 0000:00:08.1: bridge window [mem 0xd2000000-0xd23fffff]
pci 0000:00:08.1: bridge window [mem 0x10030000000-0x100401fffff 64bit pref]
pci 0000:00:08.1: can't claim BAR 15 [mem 0x10030000000-0x100401fffff 64bit pref]: no compatible bridge window
pci 0000:00:08.1: [mem 0x10030000000-0x100401fffff 64bit pref] clipped to [mem 0x10030000000-0x100303fffff 64bit pref]
pci 0000:00:08.1: bridge window [mem 0x10030000000-0x100303fffff 64bit pref]
pci 0000:07:00.0: can't claim BAR 0 [mem 0x10030000000-0x1003fffffff 64bit pref]: no compatible bridge window
pci 0000:07:00.0: can't claim BAR 2 [mem 0x10040000000-0x100401fffff 64bit pref]: no compatible bridge window
However, the root bus has two contiguous apertures that can contain the
child resource requested.
Coalesce contiguous apertures so we can allocate from the entire contiguous
region.
[bhelgaas: fold in https://lore.kernel.org/r/20210528170242.1564038-1-kai.heng.feng@canonical.com ]
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=212013
Suggested-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://lore.kernel.org/r/20210401131252.531935-1-kai.heng.feng@canonical.com
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
2021-06-04 15:25:04 -05:00
..
2021-05-05 13:24:11 -07:00
2021-05-04 10:43:27 -05:00
2021-05-06 14:39:50 -07:00
2021-05-04 10:43:24 -05:00
2020-07-31 11:23:45 -05:00
2020-08-05 18:24:16 -05:00
2021-03-11 17:37:20 -06:00
2020-07-07 17:33:41 -05:00
2020-12-10 14:55:49 -06:00
2021-04-04 10:26:30 +03:00
2020-07-29 14:25:18 -05:00
2020-10-22 12:41:00 -07:00
2021-02-09 15:10:20 -06:00
2021-04-20 14:11:22 +01:00
2021-03-11 17:37:20 -06:00
2020-12-16 13:42:26 -08:00
2021-04-01 14:54:43 -05:00
2021-02-17 17:25:31 -06:00
2020-12-15 15:11:08 -06:00
2021-04-29 10:07:31 -05:00
2020-03-24 21:35:06 +01:00
2020-09-17 12:40:20 -05:00
2021-05-05 13:24:11 -07:00
2021-05-05 13:24:11 -07:00
2021-05-05 13:24:11 -07:00
2021-06-04 15:25:04 -05:00
2021-02-11 15:59:19 +01:00
2021-05-04 10:43:30 -05:00
2021-04-27 17:53:20 -05:00
2020-03-30 09:52:23 -05:00
2021-02-10 16:46:29 -06:00
2020-08-23 17:36:59 -05:00
2021-01-12 16:39:52 -06:00
2020-12-15 15:11:08 -06:00
2021-01-27 10:41:59 -06:00
2020-08-05 18:23:14 -05:00
2021-05-04 10:43:23 -05:00
2021-03-19 04:58:25 +00:00