acpi resources problem potentially because of new pcib code
Andriy Gapon
avg at FreeBSD.org
Mon May 23 13:35:58 UTC 2011
on 23/05/2011 11:12 Andriy Gapon said the following:
>
> John,
>
> it seems that possibly your recent changes for PCI bridges could have broken
> something for my old 440BX/PIIX4/PIII type test machine.
> Looks like now some I/O resources get assigned to a PCI bridge instead of ACPI.
>
> Some highlights follow:
> ...
> acpi_timer0: couldn't allocate resource (port 0x4008)
> ...
> pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff,0x4000-0x4041,0x5000-0x500f on acpi0
> ...
> device_attach: acpi_throttle0 attach returned 6
>
> More data here:
> http://people.freebsd.org/~avg/ms6163/
>
> I see that _CRS of the Host-PCI bridge indeed claims that 0x4000 range, so I
> realize that this is a BIOS bug, but I think that perhaps we could have some
> quirk there to leave this range to ACPI.
I fixed this for myself by creating a custom dsdt override where I moved the
following resource from _CRS of Device PCI0 (PNP0A03) to that of Device SYSR
(PNP0C02):
IO (Decode16,
0x4000, // Range Minimum
0x4000, // Range Maximum
0x01, // Alignment
0x42, // Length
)
Maybe this could help other people with similarly broken BIOSes.
I hope that not too many systems with that hardware survived to these days,
because it seems that almost all of them shared a lot of common bugs in their BIOS
(and good luck getting any fixes for those systems from their vendors now).
--
Andriy Gapon
More information about the freebsd-acpi
mailing list