2.6.0-test1: Fix ACPI-routed PCI interrupt links
Subsystems (3)
Current implementation:
- Looses PCI IRQ links on resume from
ACPI S1-S4 when the router was powered down.
This results in nonfunctional PCI IRQ's
after S3 for example.
- Does not set PCI IRQ links claimed to be set by BIOS, which results in the IRQ not working when BIOS did not really set it or when setting was "lost".
- BIOS enabled IRQ's are frequently reused resulting in 2 links being assigned to the same IRQ while other IRQ's remain available and unused.
This patch:
1) Always sets ACPI-routed PCI interrupt links regardless of whether link is claimed to be set by BIOS already.
2) Restores ACPI-routed PCI interrupt links on resume from ACPI S1-S4
3) Prevents BIOS-enabled IRQ's being reused by BIOS-disabled IRQ's
On my system, all PCI interrupts are now routed without conflicts and functional on resume. yenta_socket and e100 resume fine. ohci-hcd must be reloaded, as it's interrupt handler does not survive suspending.
Please try it out and let me have your feedback,
Regards
Michael
===== include/acpi/acpi_drivers.h 1.15 vs edited =====
include/acpi/acpi_drivers.h +1 -0
@@ -59,6 +59,7 @@/* ACPI PCI Interrupt Link (pci_link.c) */ +int acpi_pci_links_set (void );int acpi_pci_link_check (void );int acpi_pci_link_get_irq (acpi_handle handle,int index);
===== drivers/acpi/sleep/main.c 1.24 vs edited =====
drivers/acpi/sleep/main.c +4 -1
@@ -264,7 +264,10 @@acpi_leave_sleep_state (state);acpi_system_restore_state (state); -/* make sure interrupts are enabled */ +/* Resume pci interrupt links */ +acpi_pci_links_set (); + +/* make sure interrupts are enabled */ ACPI_ENABLE_IRQS ();/* reset firmware waking vector */
===== drivers/acpi/pci_link.c 1.15 vs edited =====
drivers/acpi/pci_link.c +49 -24
120 lines not on this page · raw message
Signature · 5 lines
Powered by linux-2.6-test1-mm1. Compiled with gcc-2.95-3 - mature and rock solid I current test and desire feedback on: 2.6 PCMCIA yenta_socket, ACPI S3/S4, swsusp More info on swsusp: http://sourceforge.net/projects/swsusp/