<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 4/14/10 5:54 AM, Keith Hui wrote:
<blockquote
 cite="mid:t2gb72cdb061004132054u167ad499n8ef5ccc2983c0b0@mail.gmail.com"
 type="cite">
  <pre wrap="">irq 9: nobody cared (try booting with the "irqpoll" option)</pre>
</blockquote>
<font size="-1"><font face="Helvetica, Arial, sans-serif">This is
caused by setting fadt->sci_int without an irqoverride source in the
MADT.<br>
<br>
        current +=
acpi_create_madt_irqoverride((acpi_madt_irqoverride_t *)<br>
                 current, 0, 9, 9, MP_IRQ_TRIGGER_LEVEL |
MP_IRQ_POLARITY_HIGH);<br>
<br>
<br>
Generally your fadt looks a bit off, still:<br>
+    fadt->sci_int = 9; // APM_CNT<br>
This is not APM control but the sci interrupt<br>
+    fadt->smi_cmd = 0;<br>
This should be APM_CNT<br>
+    fadt->acpi_enable = 0xa1; // ACPI_ENABLE<br>
+    fadt->acpi_disable = 0xa0; // ACPI_DISABLE<br>
These two should be zero unless you have an SMM handler<br>
+    fadt->s4bios_req = 0x0;<br>
+    fadt->pstate_cnt = 0x0;<br>
<br>
With SMM it should look like this, assuming the APM_CNT port is 0xb2 on
the 82371 too. (It is on the ICHx chips)<br>
<br>
#define APM_CNT         0xb2<br>
#define   CST_CONTROL   0x85<br>
#define   PST_CONTROL   0x80<br>
#define   ACPI_DISABLE  0x1e<br>
#define   ACPI_ENABLE   0xe1<br>
<br>
        fadt->sci_int = 0x9;<br>
        fadt->smi_cmd = APM_CNT;<br>
        fadt->acpi_enable = ACPI_ENABLE;<br>
        fadt->acpi_disable = ACPI_DISABLE;<br>
        fadt->s4bios_req = 0x0;<br>
        fadt->pstate_cnt = PST_CONTROL;<br>
        ...<br>
        fadt->cst_cnt = CST_CONTROL;<br>
<br>
HTH,<br>
Stefan<br>
<br>
</font></font>
</body>
</html>