Skip to contentSkip to conversation

Very high interrupt rate for IRQ8 (rtc) unless pnpacpi=off

Bug 5243 Krzysztof Oledzki 1 participant 1 message Oct 3, 2007 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 11 lines · On Thu, 27 Sep 2007, [email protected] wrote:

http://bugzilla.kernel.org/show_bug.cgi?id=5243

------- Comment #14 from [email protected] 2007-09-27 18:32 ------- (In reply to comment #13)

Quoted 1 line

Created an attachment (id=12951)

--> (http://bugzilla.kernel.org/attachment.cgi?id=12951&action=view) [details]

Quoted 2 lines

Working workaround for this PNP BIOS bug

Now it seems that the patch can solve the problem. Will you please send the patch to the acpi maillist?

Attached.

Best regards,

Krzysztof Olędzki

From: Krzysztof Oledzki <[email protected]>

Workaround for broken systems with BIOS that makes RTC interrupt level triggered and/or active low.

See http://bugzilla.kernel.org/show_bug.cgi?id=5243

Based on the patch from Shaohua Li <[email protected]>

---

drivers/pnp/pnpacpi/rsparser.c renamed from drivers/pnp/pnpacpi/rsparser.c~fix-very-high-interrupt-rate-for-irq8-rtc-unless-pnpacpi=off +10 -0
diff -puN drivers/pnp/pnpacpi/rsparser.c~fix-very-high-interrupt-rate-for-irq8-rtc-unless-pnpacpi=off drivers/pnp/pnpacpi/rsparser.c
@@ -85,6 +85,16 @@ static void pnpacpi_parse_allocated_irqr
 	if (i >= PNP_MAX_IRQ)
 		return;
 
+#ifdef CONFIG_X86
+	if (gsi < 16 && (triggering != ACPI_EDGE_SENSITIVE ||
+				polarity != ACPI_ACTIVE_HIGH)) {
+		pnp_warn("BIOS BUG: legacy PNP IRQ %d should be edge trigger, "
+				"active high", gsi);
+		triggering = ACPI_EDGE_SENSITIVE;
+		polarity = ACPI_ACTIVE_HIGH;
+	}
+#endif
+
 	res->irq_resource[i].flags = IORESOURCE_IRQ;	// Also clears _UNSET flag
 	res->irq_resource[i].flags |= irq_flags(triggering, polarity);
 	irq = acpi_register_gsi(gsi, triggering, polarity);

_