Created
October 20, 2022 18:55
-
-
Save joemiller/9f5698c5634d4a93d101985dc5238365 to your computer and use it in GitHub Desktop.
Revisions
-
joemiller revised this gist
Oct 20, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ struct aml_node *node = arg; uint8_t mask, en; + + /* bad bios. mask/ignore the GPE _L6F (0x6f) interrupt */ + if (gpe == 0x6f && (sc->gpe_table[gpe].flags & GPE_LEVEL)) { + static unsigned short i; + if (i == 0) { -
joemiller created this gist
Oct 20, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,21 @@ --- /usr/src/sys/dev/acpi/acpi.c.orig Mon Oct 3 16:26:55 2022 +++ /usr/src/sys/dev/acpi/acpi.c Mon Oct 3 16:30:29 2022 @@ -2269,6 +2269,18 @@ { struct aml_node *node = arg; uint8_t mask, en; + + /* fucking shitty hardware. mask/ignore the GPE _L6F (0x6f) interrupt */ + if (gpe == 0x6f && (sc->gpe_table[gpe].flags & GPE_LEVEL)) { + static unsigned short i; + if (i == 0) { + i++; + printf("acpi_gpe %d %s IGNORING\n", gpe, node->name); + } + return (0); + } + + printf("acpi_gpe %d %s\n", gpe, node->name); dnprintf(10, "handling GPE %.2x\n", gpe); aml_evalnode(sc, node, 0, NULL, NULL);