Subject: Re: acpi SCI interrupt override bug
To: Cherry G. Mathew <cherry.g.mathew@gmail.com>
From: Takayoshi Kochi <takayoshi.kochi@gmail.com>
List: port-i386
Date: 03/03/2007 02:11:36
Hi Cherry,

What numbers are you seeing on your laptop respectively:
  InterruptNumber (FADT->SCI_INT)
  mip->global_int where mip->bus_pin == InterruptNumber
?

2007/3/2, Cherry G. Mathew <cherry.g.mathew@gmail.com>:
> 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)) {
>


-- 
Takayoshi Kochi