Re: pcib1: failed to allocate initial memory window

From: John Baldwin <jhb_at_freebsd.org>
Date: Thu, 21 Jul 2011 11:53:27 -0400
On Wednesday, July 20, 2011 4:25:03 pm Andreas Tobler wrote:
> Hi all,
> 
> Built a fresh kernel today (-CURRENT) on my DELL workstation (amd64).
> The network card does not get detected. Booted the old kernel again.
> 
> Are there any chances to get this fixed or is this a candidate for a 
> buggy BIOS?
> Attached the devinfo -r from the running kernel. Also the acpidump -dt.
> 
> Any help would be appreciated.

Ah, this case is similar to the issue with VirtualBox.  Try this patch:

Index: acpi_pcib_acpi.c
===================================================================
--- acpi_pcib_acpi.c	(revision 224217)
+++ acpi_pcib_acpi.c	(working copy)
_at__at_ -207,10 +207,12 _at__at_ acpi_pcib_producer_handler(ACPI_RESOURCE *res, voi
 			length = res->Data.ExtAddress64.AddressLength;
 			break;
 		}
-		if (length == 0 ||
-		    res->Data.Address.MinAddressFixed != ACPI_ADDRESS_FIXED ||
-		    res->Data.Address.MaxAddressFixed != ACPI_ADDRESS_FIXED)
+		if (length == 0)
 			break;
+		if (min + length - 1 != max &&
+		    (res->Data.Address.MinAddressFixed != ACPI_ADDRESS_FIXED ||
+		    res->Data.Address.MaxAddressFixed != ACPI_ADDRESS_FIXED))
+			break;
 		flags = 0;
 		switch (res->Data.Address.ResourceType) {
 		case ACPI_MEMORY_RANGE:

-- 
John Baldwin
Received on Thu Jul 21 2011 - 13:53:42 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:16 UTC