Bug #809

acpi sysresource fix

Added by qhwt+dfly about 7 years ago. Updated almost 7 years ago.

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

0%

Category:-
Target version:-

Description

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

http://docs.FreeBSD.org/cgi/mid.cgi?200406132252.i5DMqVVo084238

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.

Cheers.

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

History

#1 Updated by qhwt+dfly about 7 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.

Cheers.

#2 Updated by qhwt+dfly about 7 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.

Cheers.

#3 Updated by qhwt+dfly about 7 years ago

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

Regards.

#4 Updated by luxh almost 7 years ago

Can this be closed? The diff seems similar to this commit:
http://leaf.dragonflybsd.org/mailarchive/commits/2007-10/msg00131.html

#5 Updated by qhwt+dfly almost 7 years ago

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

Also available in: Atom PDF