System freezes when using ACPI

John Baldwin jhb at freebsd.org
Mon Nov 28 13:04:26 GMT 2005


On Friday 25 November 2005 08:55 am, Timm Florian Gloger wrote:
> hey list,
>
> i installed a fresh 6.0 stable system on my machine.
>
> when using acpi the system freezes after less than 10 minutes.
> with disabled acpi there is no such problem and the system runs fine.
>
> i am new to freebsd so i dont know all the things which may influence
> the acpi driver to misbehave.
>
> i attached the outputs which are mentioned in the handbook.
>
> the system is:
>
> asus a7n8x deluxe rev 2.0 bios 1008
> amd athlon xp 3000+ fsb 400
> 1 gb ddr400 ram
> nforce 2 chipset (firewire disabled)
> sapphire radeon 9800 pro
>
> if there are any further information required to get the system work
> properly ...
>
> thanks
> timm

Try disabling APIC for now.  Your BIOS has a bug in that it tells us that the 
APIC-routed interrupts are active-hi polarity when in fact they are 
active-low.  Unfortunately it seems that a few BIOSen have this bug. :(  All 
PCI interrupts should be level-triggered active-low polarity.  You can also 
try the following patch:

Index: acpi_pci_link.c
===================================================================
RCS file: /host/cvs/usr/cvs/src/sys/dev/acpica/acpi_pci_link.c,v
retrieving revision 1.48
diff -u -r1.48 acpi_pci_link.c
--- acpi_pci_link.c	1 Nov 2005 22:44:07 -0000	1.48
+++ acpi_pci_link.c	28 Nov 2005 13:03:29 -0000
@@ -859,7 +859,18 @@
 			if (!link->l_routed &&
 			    PCI_INTERRUPT_VALID(link->l_irq)) {
 				link->l_routed = TRUE;
+				/*
+				 * Some BIOSen are broken and actually set
+				 * some interrupts to active-high with level
+				 * trigger.  Workaround this by hard-coding
+				 * active-low and level-trigger.
+				 */
+#if 0
 				acpi_config_intr(dev, resource);
+#else
+    				BUS_CONFIG_INTR(dev, link->l_irq,
+				    INTR_TRIGGER_LEVEL, INTR_POLARITY_LOW);
+#endif
 				pci_link_interrupt_weights[link->l_irq] +=
 				    link->l_references;
 			}


-- 
John Baldwin <jhb at FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org


More information about the freebsd-acpi mailing list