ThinkPad 560Z & ACPI

Alexandre Sunny Kovalenko Alex.Kovalenko at
Mon Nov 24 18:50:29 PST 2003

	Good people,

	I have managed to crowbar ACPI support into working on ThinkPad 560Z
	with the attached patch. The problem seems to be that TP returns 
	everything and a kitchen sink in the list of available IRQs, but expects
	OS to use one you have set up using TP Configuration Program (intuitively
	named PS2 ;). Thus with the current approach of taking first IRQ
	from the list, IRQ 3 gets everything routed to it, and since it is
	used by serial port, cardbus bridge, USB controller and fxp in the
	docking station fail rather miserably. fxp reports timeouts on the
	regular basis and the rest silently does nothing.

	I have added kernel environment variable "hw.acpi.pci.preferred_irq" 
	which would allow user to specify IRQ to be used (only in the case
	when it is in the list of available IRQs). If variable is not
	specified or if IRQ is not on the list of available ones, behaviour
	will revert to the original, which is to use first IRQ from the list.

	I do not know if this is the right way to address this problem and
	would appreciate any comments from people who actually know something
	about ACPI (as opposed to me). If there is the better way, I would 
	really appreciate a pointer, since ACPI on this machine is fairly 
	enjoyable. I have throtted CPU down to 25% and it is cool (in the 
	literal meaning of the word) and battery lasted for 2 hours+ while
	using wireless card.

	Conversely if there is a value in this approach, maybe some kind soul
	could stick it into the codebase. This way I would not have to aplly
	patch every time I cvsup ;)
Alexandre "Sunny" Kovalenko.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: acpi_pcib.c.patch
Type: application/octet-stream
Size: 3609 bytes
Desc: not available
Url :

More information about the freebsd-current mailing list