freebsd-dev/sys/dev/acpica
Warner Losh dca2069084 Commit a workaround to a problem with resource allocation. This helps
with some Dell servers that booted w/o a problem[*] on 5.4, but failed
with 6.0-BETA.

On the PCI bus, when we do lazy resource allocation, we narrow the
range requested as we pass through bridges to reflect how the bridges
are programmed and what addresses they pass.  However, when we're
doing an allocation on a bus that's directly connected to a host
bridge, no such translation can take place.  We already had a fallback
range for memory requests, but none for ioports.  As such, provide a
fallback for I/O ports so we don't allocate location 0, which will
have undesired side effects when the resources are actually used.

This fixes a problem with booting a Dell server with usb in the
kernel.  However, it is an unsatisfying solution.  I don't like the
hard coded value, and I think we should start narrowing the resources
returned to not be in the so-called isa alias area (where the ranage &
0x0300 must be 0 iirc).  Doing such filtering will have to wait for
another day.

This may be a good 6 candidate, maybe after its had a chance to be
refined.

Tested by: glebius@
2005-09-16 07:02:29 +00:00
..
Osd Canonize the include of acpi.h. 2005-09-11 18:39:03 +00:00
acpi_acad.c Canonize the include of acpi.h. 2005-09-11 18:39:03 +00:00
acpi_battery.c Canonize the include of acpi.h. 2005-09-11 18:39:03 +00:00
acpi_button.c Canonize the include of acpi.h. 2005-09-11 18:39:03 +00:00
acpi_cmbat.c Canonize the include of acpi.h. 2005-09-11 18:39:03 +00:00
acpi_cpu.c Canonize the include of acpi.h. 2005-09-11 18:39:03 +00:00
acpi_ec.c Canonize the include of acpi.h. 2005-09-11 18:39:03 +00:00
acpi_if.m Canonize the include of acpi.h. 2005-09-11 18:39:03 +00:00
acpi_isab.c Canonize the include of acpi.h. 2005-09-11 18:39:03 +00:00
acpi_lid.c Canonize the include of acpi.h. 2005-09-11 18:39:03 +00:00
acpi_package.c Canonize the include of acpi.h. 2005-09-11 18:39:03 +00:00
acpi_pci_link.c Canonize the include of acpi.h. 2005-09-11 18:39:03 +00:00
acpi_pci.c Canonize the include of acpi.h. 2005-09-11 18:39:03 +00:00
acpi_pcib_acpi.c Commit a workaround to a problem with resource allocation. This helps 2005-09-16 07:02:29 +00:00
acpi_pcib_pci.c Canonize the include of acpi.h. 2005-09-11 18:39:03 +00:00
acpi_pcib.c Canonize the include of acpi.h. 2005-09-11 18:39:03 +00:00
acpi_pcibvar.h Protect against multiple includes and use _KERNEL to protect the PCI fns. 2005-02-28 05:39:34 +00:00
acpi_perf.c Canonize the include of acpi.h. 2005-09-11 18:39:03 +00:00
acpi_powerres.c Canonize the include of acpi.h. 2005-09-11 18:39:03 +00:00
acpi_quirk.c Canonize the include of acpi.h. 2005-09-11 18:39:03 +00:00
acpi_quirks Add a quirk for a motherboard whose acpi timer runs too fast. 2005-06-26 18:19:14 +00:00
acpi_resource.c Canonize the include of acpi.h. 2005-09-11 18:39:03 +00:00
acpi_thermal.c Canonize the include of acpi.h. 2005-09-11 18:39:03 +00:00
acpi_throttle.c Canonize the include of acpi.h. 2005-09-11 18:39:03 +00:00
acpi_timer.c Canonize the include of acpi.h. 2005-09-11 18:39:03 +00:00
acpi_video.c Canonize the include of acpi.h. 2005-09-11 18:39:03 +00:00
acpi.c Canonize the include of acpi.h. 2005-09-11 18:39:03 +00:00
acpiio.h Rewrite the acpi_battery interface to allow for other battery types 2005-07-23 19:36:00 +00:00
acpivar.h Rewrite the acpi_battery interface to allow for other battery types 2005-07-23 19:36:00 +00:00