Bug #809

acpi sysresource fix

Added by qhwt+dfly about 9 years ago. Updated over 8 years ago.

Status:ClosedStart date:
Priority:LowDue date:
Assignee:-% Done:


Target version:-


If you have device probing problem(lost keyboard, etc.) because of resource
allocation failure, when ACPI is enabled,
and setting
in the /boot/loader.conf fixes it, please try attached patch. It brings
in this change


and the previous change to some other (affected) device drivers
to also try ACPI attachment.
This patch could affect other ACPI subsystems, since it changes the probe
order and how it handles the pre-allocated resources.


dfly-ownres.diff.gz (7.03 KB) qhwt+dfly, 09/14/2007 08:54 AM

dfly-ownres.diff.gz (8.52 KB) qhwt+dfly, 10/12/2007 10:02 AM


#1 Updated by qhwt+dfly about 10 years ago

I'm currently holding to commit this patch; if I build the acpi.ko
without ACPI_DEBUG defined, acpi_bus_alloc_gas() fails to allocate
some of resources. In my case, available Cx states are limited to 1
because of this. I'm going to investigate on this.


#2 Updated by qhwt+dfly about 10 years ago

I tracked it to down to acpi_timer doing a resource allocation in
identify routine, which was grabbing the resource before sysresource
could do it. I'll rework the patch and post it here later.


#3 Updated by qhwt+dfly about 10 years ago

Please review/test the attached patch, and let me know any problems
you found with the patched acpi module.


#4 Updated by luxh about 10 years ago

Can this be closed? The diff seems similar to this commit:

#5 Updated by qhwt+dfly about 10 years ago

Yes, somehow I thought I already closed this.
Thanks for the reminder.

Also available in: Atom PDF