android_kernel_xiaomi_sm8350/arch/i386/pci
Chuck Ebbert ead2bfeb7f [PATCH] PCI: fix issues with extended conf space when MMCONFIG disabled because of e820
On 15 Jun 2006 03:45:10 +0200, Andi Kleen wrote:

> Anyways I would say that if the BIOS can't get MCFG right then
> it's likely not been validated on that board and shouldn't be used.

According to Petr Vandrovec:

 ... "What is important (and checked) is address of MMCONFIG reported by MCFG
 table...  Unfortunately code does not bother with printing that address :-(

 "Another problem is that code has hardcoded that MMCONFIG area is 256MB large.
 Unfortunately for the code PCI specification allows any power of two between 2MB
 and 256MB if vendor knows that such amount of busses (from 2 to 128) will be
 sufficient for system.  With notebook it is quite possible that not full 8 bits
 are implemented for MMCONFIG bus number."

So here is a patch.  Unfortunately my system still fails the test because
it doesn't reserve any part of the MMCONFIG area, but this may fix others.

Booted on x86_64, only compiled on i386.  x86_64 still remaps the max area
(256MB) even though only 2MB is checked... but 2.6.16 had no check at all
so it is still better.

PCI: reduce size of x86 MMCONFIG reserved area check

1.  Print the address of the MMCONFIG area when the test for that area
    being reserved fails.

2.  Only check if the first 2MB is reserved, as that is the minimum.

Signed-off-by: Chuck Ebbert <76306.1226@compuserve.com>
Acked-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2006-06-21 12:00:01 -07:00
..
acpi.c [PATCH] PCI: arch/i386/pci/acpi.c: use for_each_pci_dev 2006-01-09 12:13:15 -08:00
common.c [PATCH] PCI: i386/x86_84: disable PCI resource decode on device disable 2006-06-21 11:59:59 -07:00
direct.c [PATCH] i386/x86-64: Remove checks for value == NULL in PCI config space access 2006-04-11 06:38:57 -07:00
fixup.c [PATCH] gx1fb: (try to) play nicer with various BIOSes 2006-01-14 18:27:14 -08:00
i386.c [PATCH] PCI: i386/x86_84: disable PCI resource decode on device disable 2006-06-21 11:59:59 -07:00
init.c [PATCH] PCI: Give PCI config access initialization a defined ordering 2006-03-23 14:35:12 -08:00
irq.c [PATCH] PCI: fix via irq SATA patch 2006-04-27 13:00:51 -07:00
legacy.c [PATCH] acpi bridge hotadd: ACPI based root bridge hot-add 2005-06-27 21:52:39 -07:00
Makefile [PATCH] PCI: Give PCI config access initialization a defined ordering 2006-03-23 14:35:12 -08:00
mmconfig.c [PATCH] PCI: fix issues with extended conf space when MMCONFIG disabled because of e820 2006-06-21 12:00:01 -07:00
numa.c [PATCH] acpi bridge hotadd: ACPI based root bridge hot-add 2005-06-27 21:52:39 -07:00
pcbios.c [PATCH] PCI: Give PCI config access initialization a defined ordering 2006-03-23 14:35:12 -08:00
pci.h [PATCH] PCI: i386/x86_84: disable PCI resource decode on device disable 2006-06-21 11:59:59 -07:00
visws.c [PATCH] visws: linkage fix 2005-08-07 10:00:38 -07:00