Subject: Re: acpi SCI interrupt override bug
To: None <paul@whooppee.com>
From: Cherry G. Mathew <cherry.g.mathew@gmail.com>
List: port-i386
Date: 03/02/2007 03:29:12
On 2/27/07, Paul Goyette <paul@whooppee.com> wrote:
> On Tue, 27 Feb 2007, Cherry G. Mathew wrote:
>
> > It isn't a fix, its just a really ugly special case hack.
>
> Hack or not, it also seems to have made my Acer laptop much more happy
> in dealing with the embedded controllers.  envstat now actually reports
> several things it never used to find.
>
>

Patch below is commit-worthy, IMHO. rtk0 works for me now.

Cheers,

-- 
~Cherry


*** acpi_machdep.c.~1.13.~	Fri Mar  2 05:46:26 2007
--- acpi_machdep.c	Fri Mar  2 05:48:28 2007
***************
*** 152,157 ****
--- 152,161 ----
  	for (i = 0; i < mp_nbus; i++) {
  		for (mip = mp_busses[i].mb_intrs; mip != NULL;
  		     mip = mip->next) {
+ 			/* Check for MADT Override. */
+ 			if ((mip->sflags & MPI_OVR) &&
+ 			    (mip->bus_pin == InterruptNumber))
+ 				InterruptNumber = mip->global_int;
  			if (mip->global_int == (int)InterruptNumber) {
  				h = mip->ioapic_ih;
  				if (APIC_IRQ_ISLEGACY(h)) {