Please test the attached patch. 2016-01-29 20:50 GMT+09:00 Patrick Welche <prlw1%cam.ac.uk@localhost>: > The following reply was made to PR kern/50453; it has been noted by GNATS. > > From: Patrick Welche <prlw1%cam.ac.uk@localhost> > To: gnats-bugs%netbsd.org@localhost > Cc: > Subject: Re: kern/50453 > Date: Fri, 29 Jan 2016 11:46:20 +0000 > > With NO_PCI_EXTENDED_CONFIG: > > agp0 at pchb0: i915-family chipset > agp0: AGP_I915_IFPADDR = e0000001 (100000,ffffffff) > agp0: detected 7932k stolen memory > agp0: BAR size 100000 mismatches detected GTT size 40000; trusting BAR > agp0: aperture at 0xd0000000, size 0x10000000 > > Without NO_PCI_EXTENDED_CONFIG: > > acpi0: acpimcfg_map_bus done > ... > agp0 at pchb0: i915-family chipset > agp0: AGP_I915_IFPADDR = e0000001 (100000,ffffffff) > agp0: Try bus_space map again > agp0: bus_space map returned error = 35 (addr = e0000001) > agp0: can't set up chipset flush page: 35 > > From sys/arch/x86/pci/pci_machdep.c > > #if NACPICA > 0 && !defined(NO_PCI_EXTENDED_CONFIG) > acpimcfg_map_bus(self, pba->pba_pc, pba->pba_bus); > #endif > > the call to acpimcfg_map_bus causes the outcome to be different > even though the same address was read. > > Note that in both cases we see: > > MCFG: bus 0-255, address 0x00000000e0000000: no valid region > ... > acpi0: MCFG: PNP0C01: Type=7 > acpi0: MCFG: PNP0C01: bus 0-255, address 0x00000000e0000000: no valid region > ... > acpi0: MCFG: PNP0C02: Type=7 > acpi0: MCFG: PNP0C02: bus 0-255, address 0x00000000e0000000: no valid region > ... > acpi0: MCFG: PNP0C02: Type=7 > acpi0: MCFG: PNP0C02: bus 0-255, address 0x00000000e0000000: no valid region > acpi0: MCFG: PNP0C02: Type=10(FIXED_MEMORY32), Address=0x00000000e0000000, Lengt > h=0x0000000010000000 > acpi0: MCFG: segment 0, bus 0-255, address 0x00000000e0000000 >
Attachment:
0001-PR-50453-Check-overlaid-MCHBAR-region-on-PCIEXBAR-re.patch
Description: Binary data