ACPI IRQ routing (was [ACPI] ACPI source release updated (200 11205))

ACPI IRQ routing (was [ACPI] ACPI source release updated (200 11205))

Post by Grover, Andre » Wed, 12 Dec 2001 05:20:11

Hi Kai,

I also got ACPI IRQ routing working on a system over the weekend. Sounds
like yours is better, so great we'll adopt yours. Thanks for stepping up on

Quote:> I changed pci-irq.c to use the ACPI interrupt routing, and also added
> dynamic routing table support. The appended patch is a bit
> preliminary,
> but it works here, even for assigning irqs.
> Further comments/to do:
> o The ACPI PCI in general needs further cleanup and
> integration with the
>   normal PCI layer. I believe that should wait until the new device
>   infrastructure is in place, though. E.g., I think one can
>   get rid of the static table which is currently setup in acpi_pci.c.

<shrug>. Once we get it working, we can get it working right, and save the

Quote:> o I'm not exactly happy with the way ACPI does things currently, but I
>   didn't change it to keep the patch small. It uses multiple functions
>   to parse the IRQ resource descriptor into a linked list of
>   "acpi_resource" which I then again have to convert back into the
>   mask which was in the IRQ resource desriptor in the first place.
>   About the same holds for the other way, instead of just setting
>   up a five byte IRQ descriptor, I need to setup two "acpi_resource"
>   structs, calculate lengths, etc. which will eventually be
> converted to
>   just the five bytes. IMO the conversion routines are unnecessary
>   bloat...

Like I said above, I think it's too early to be optimizing this code. My
main concern was more about integrating ACPI into pci-irq.c in a readable
manner. It is pretty $PIR-specific (no surprise there). Anyways let me work
with your new code and I will be able to comment more.

Quote:> o Things need to be made dynamic, i.e. try ACPI and if it
> doesn't work,
>   fall back to the normal method. Also, a command line flag to disable
>   acpi irq routing is probably a good idea.

At this point, I'd think one to *enable* it would be better until the code
is tested more.

Regards -- Andy
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at
Please read the FAQ at


1. Abit KV7 ACPI: Unable to set IRQ for PCI Interrupt Link [ALKD] (likely buggy ACPI BIOS)

Anybody here who is working with abit KV7? - Mine has trouble with
2.4.26 (Suse 8.2). I get the following messages while booting:

IRQ19 -> 0:19
IRQ21 -> 0:21
IRQ22 -> 0:22
.................................... done.
ACPI: Unable to set IRQ for PCI Interrupt Link [ALKD] (likely buggy ACPI
Aborting ACPI-based IRQ routing. Try pci=noacpi or acpi=off
  - die gleiche Meldung dann ca 10 Male -

Sound doesn't work. Any other hardware seems to work (USB, 2nd
parport-card, etc). Mainboard works quite fast with Barton 2500.

The onboard-Sound:
00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233 AC97
Audio Controller
(rev 60)
         Subsystem: ABIT Computer Corp.: Unknown device 1408
         Flags: medium devsel, IRQ 22
         I/O ports at e000 [size=256]
         Capabilities: [c0] Power Management version 2

With google I don't find much. "ACPI: Unable ....[ALKD]" - a german
thread "KT400A: Acpi-Bios oder Kernel buggy?" concerning the same KT 600
  Chipset but on a Epox EP-8K9A9+  mainboard. The thread is quite old
(one year) an I think that some bugs in 2.4.21 will be corrected in my
2.4.26, isn't?

I don't want to turn off ACPI! I want to use ACPI for e.g. current
saving during night. I need a low cost mainboard for next one or two
dozent mainboards for office PC's.

Is ACPI of KV7 BIOS buggy? shall I update BIOS? A problem of 2.4.26?
Solved with 2.6.X?


2. DMPS does not work

3. ACPI in 2.5 kills kbd on Via-ACPI systems [Re: kernel 2.5.10 problems]

4. Linux and floppy PCMCIA

5. ACPI source releases updated (20030619)

6. ThinkPad 560: X Server does not run

7. BUG: 2.5.40: Accessing various ACPI state info fails to acquire ACPI mutex

8. LILO and DOS problems

9. acpi problem (/proc/acpi/event: No such file or directory)

10. New: ACPI interrupt storm when ACPI operates in IO-APIC-level mode

11. ACPI source releases updated (20030509)

12. [ACPI] Acpi and IDE strangeness

13. acpi + keyboard/mouse problems [was Re: acpi + synaptics trackpad in 2.5]