Skip to content

Instantly share code, notes, and snippets.

@joemiller
Created October 20, 2022 18:55
Show Gist options
  • Select an option

  • Save joemiller/9f5698c5634d4a93d101985dc5238365 to your computer and use it in GitHub Desktop.

Select an option

Save joemiller/9f5698c5634d4a93d101985dc5238365 to your computer and use it in GitHub Desktop.

Revisions

  1. joemiller revised this gist Oct 20, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion 71.patch
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@
    struct aml_node *node = arg;
    uint8_t mask, en;
    +
    + /* fucking shitty hardware. mask/ignore the GPE _L6F (0x6f) interrupt */
    + /* 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) {
  2. joemiller created this gist Oct 20, 2022.
    21 changes: 21 additions & 0 deletions 71.patch
    Original 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);