Skip to contentSkip to conversation

ACPI: resource: Remove duplicate Asus E1504GAB IRQ override

PATCH In review Hans de Goede 3 participants 9 messages Sep 27, 2024 – Sep 30, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/4 ACPI: resource: Remove duplicate Asus E1504GAB IRQ override

Commit d2aaf1996504 ("ACPI: resource: Add DMI quirks for ASUS Vivobook E1504GA and E1504GAB") does exactly what the subject says, adding DMI matches for both the E1504GA and E1504GAB. But DMI_MATCH() does a substring match, so checking for E1504GA will also match E1504GAB.

Drop the unnecessary E1504GAB entry since that is covered already by the E1504GA entry.

Fixes d2aaf1996504 ("ACPI: resource: Add DMI quirks for ASUS Vivobook E1504GA and E1504GAB")
Cc Ben Mayo <[email protected]>
---
 drivers/acpi/resource.c | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)
drivers/acpi/resource.c +1 -8
index 8a4726e2eb69..1ff251fd1901 100644
@@ -511,19 +511,12 @@ static const struct dmi_system_id irq1_level_low_skip_override[] = {
 		},
 	},
 	{
-		/* Asus Vivobook E1504GA */
+		/* Asus Vivobook E1504GA* */
 		.matches = {
 			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
 			DMI_MATCH(DMI_BOARD_NAME, "E1504GA"),
 		},
 	},
-	{
-		/* Asus Vivobook E1504GAB */
-		.matches = {
-			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
-			DMI_MATCH(DMI_BOARD_NAME, "E1504GAB"),
-		},
-	},
 	{
 		/* Asus Vivobook Pro N6506MV */
 		.matches = {
Signature · 1 line
2.46.0
#1 lore raw

PATCH 2/4 ACPI: resource: Loosen the Asus E1404GAB DMI match to also cover the E1404GA

Like other Asus Vivobooks, the Asus Vivobook Go E1404GA has a DSDT describing IRQ 1 as ActiveLow, while the kernel overrides to Edge_High.

    $ sudo dmesg | grep DMI:.*BIOS
    [    0.000000] DMI: ASUSTeK COMPUTER INC. Vivobook Go E1404GA_E1404GA/E1404GA, BIOS E1404GA.302 08/23/2023
    $ sudo cp /sys/firmware/acpi/tables/DSDT dsdt.dat
    $ iasl -d dsdt.dat
    $ grep -A 30 PS2K dsdt.dsl | grep IRQ -A 1
                IRQ (Level, ActiveLow, Exclusive, )
                    {1}

There already is an entry in the irq1_level_low_skip_override[] DMI match table for the "E1404GAB", change this to match on "E1404GA" to cover the E1404GA model as well (DMI_MATCH() does a substring match).

---
Note this patch replaces Paul Menzel's patch which added a new entry for the "E1404GA", instead of loosening the "E1404GAB" match:
https://lore.kernel.org/linux-acpi/[email protected]/

---
 drivers/acpi/resource.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/acpi/resource.c +2 -2
index 1ff251fd1901..dfe108e2ccde 100644
@@ -504,10 +504,10 @@ static const struct dmi_system_id irq1_level_low_skip_override[] = {
 		},
 	},
 	{
-		/* Asus Vivobook Go E1404GAB */
+		/* Asus Vivobook Go E1404GA* */
 		.matches = {
 			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
-			DMI_MATCH(DMI_BOARD_NAME, "E1404GAB"),
+			DMI_MATCH(DMI_BOARD_NAME, "E1404GA"),
 		},
 	},
 	{
Signature · 1 line
2.46.0
#2 lore raw

Re: [PATCH 2/4] ACPI: resource: Loosen the Asus E1404GAB DMI match to also cover the E1404GA

Dear Hans,

Thank you for your patch.

Am 27.09.24 um 16:16 schrieb Hans de Goede:

Quoted 11 lines

Like other Asus Vivobooks, the Asus Vivobook Go E1404GA has a DSDT describing IRQ 1 as ActiveLow, while the kernel overrides to Edge_High.

     $ sudo dmesg | grep DMI:.*BIOS
     [    0.000000] DMI: ASUSTeK COMPUTER INC. Vivobook Go E1404GA_E1404GA/E1404GA, BIOS E1404GA.302 08/23/2023
     $ sudo cp /sys/firmware/acpi/tables/DSDT dsdt.dat
     $ iasl -d dsdt.dat
     $ grep -A 30 PS2K dsdt.dsl | grep IRQ -A 1
                 IRQ (Level, ActiveLow, Exclusive, )
                     {1}
Quoted 3 lines

There already is an entry in the irq1_level_low_skip_override[] DMI match table for the "E1404GAB", change this to match on "E1404GA" to cover the E1404GA model as well (DMI_MATCH() does a substring match).

Ah, good to know. Thank you for fixing it.

Quoted 18 lines

---
Note this patch replaces Paul Menzel's patch which added a new entry for the "E1404GA", instead of loosening the "E1404GAB" match:
https://lore.kernel.org/linux-acpi/[email protected]/

---
  drivers/acpi/resource.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
drivers/acpi/resource.c +0 -0
index 1ff251fd1901..dfe108e2ccde 100644

drivers/acpi/resource.c static const struct dmi_system_id irq1_level_low_skip_override[] = { · line 507

Quoted 5 lines
drivers/acpi/resource.c +1 -1
@@ -504,10 +504,10 @@ static const struct dmi_system_id irq1_level_low_skip_override[] = {
  		},
  	},
  	{
-		/* Asus Vivobook Go E1404GAB */
+		/* Asus Vivobook Go E1404GA* */

I guess people are going to grep for the model, if something does not work, so maybe the known ones should listed. I know it’s not optimal, as the comments are very likely be incomplete, but it’s better than than not having it listed, in my opinion.

drivers/acpi/resource.c static const struct dmi_system_id irq1_level_low_skip_override[] = { · line 513

Quoted 7 lines
drivers/acpi/resource.c +1 -1
  		.matches = {
  			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
-			DMI_MATCH(DMI_BOARD_NAME, "E1404GAB"),
+			DMI_MATCH(DMI_BOARD_NAME, "E1404GA"),
  		},
  	},
  	{

Kind regards,

Paul

#3 lore raw

Re: [PATCH 2/4] ACPI: resource: Loosen the Asus E1404GAB DMI match to also cover the E1404GA

Hi,

Quoted 36 lines · Paul Menzel

Dear Hans,

Thank you for your patch.

Am 27.09.24 um 16:16 schrieb Hans de Goede:

Quoted 11 lines

Like other Asus Vivobooks, the Asus Vivobook Go E1404GA has a DSDT describing IRQ 1 as ActiveLow, while the kernel overrides to Edge_High.

     $ sudo dmesg | grep DMI:.*BIOS
     [    0.000000] DMI: ASUSTeK COMPUTER INC. Vivobook Go E1404GA_E1404GA/E1404GA, BIOS E1404GA.302 08/23/2023
     $ sudo cp /sys/firmware/acpi/tables/DSDT dsdt.dat
     $ iasl -d dsdt.dat
     $ grep -A 30 PS2K dsdt.dsl | grep IRQ -A 1
                 IRQ (Level, ActiveLow, Exclusive, )
                     {1}
Quoted 3 lines

There already is an entry in the irq1_level_low_skip_override[] DMI match table for the "E1404GAB", change this to match on "E1404GA" to cover the E1404GA model as well (DMI_MATCH() does a substring match).

Ah, good to know. Thank you for fixing it.

Quoted 13 lines

---
Note this patch replaces Paul Menzel's patch which added a new entry for the "E1404GA", instead of loosening the "E1404GAB" match:
https://lore.kernel.org/linux-acpi/[email protected]/
---
  drivers/acpi/resource.c | 4 ++--

  1 file changed, 2 insertions(+), 2 deletions(-)
Quoted 12 lines

drivers/acpi/resource.c static const struct dmi_system_id irq1_level_low_skip_override[] = { · line 507

Quoted 10 lines
drivers/acpi/resource.c +1 -1
index 1ff251fd1901..dfe108e2ccde 100644
@@ -504,10 +504,10 @@ static const struct dmi_system_id irq1_level_low_skip_override[] = {
           },
       },
       {
-        /* Asus Vivobook Go E1404GAB */
+        /* Asus Vivobook Go E1404GA* */

I guess people are going to grep for the model, if something does not work, so maybe the known ones should listed. I know it’s not optimal, as the comments are very likely be incomplete, but it’s better than than not having it listed, in my opinion.

That is a valid point, OTOH I don't think we want to take patches later just to update the comment if more models show up.

I guess we could change the comment to:

		/* Asus Vivobook Go E1404GA / E1404GAB */

Rafael any preference from you here ? (1)

Regards,

Hans

1) Other then coming up with a better fix which does not require this quirks at all ...

Quoted 14 lines

drivers/acpi/resource.c static const struct dmi_system_id irq1_level_low_skip_override[] = { · line 513

Quoted 8 lines
drivers/acpi/resource.c +1 -1
           .matches = {
               DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
-            DMI_MATCH(DMI_BOARD_NAME, "E1404GAB"),
+            DMI_MATCH(DMI_BOARD_NAME, "E1404GA"),
           },
       },
       {

Kind regards,

Paul

#4 lore raw

Re: [PATCH 2/4] ACPI: resource: Loosen the Asus E1404GAB DMI match to also cover the E1404GA

Quoted 53 lines · Hans de Goede

Hi,

Quoted 36 lines · Paul Menzel

Dear Hans,

Thank you for your patch.

Am 27.09.24 um 16:16 schrieb Hans de Goede:

Quoted 11 lines

Like other Asus Vivobooks, the Asus Vivobook Go E1404GA has a DSDT describing IRQ 1 as ActiveLow, while the kernel overrides to Edge_High.

     $ sudo dmesg | grep DMI:.*BIOS
     [    0.000000] DMI: ASUSTeK COMPUTER INC. Vivobook Go E1404GA_E1404GA/E1404GA, BIOS E1404GA.302 08/23/2023
     $ sudo cp /sys/firmware/acpi/tables/DSDT dsdt.dat
     $ iasl -d dsdt.dat
     $ grep -A 30 PS2K dsdt.dsl | grep IRQ -A 1
                 IRQ (Level, ActiveLow, Exclusive, )
                     {1}
Quoted 3 lines

There already is an entry in the irq1_level_low_skip_override[] DMI match table for the "E1404GAB", change this to match on "E1404GA" to cover the E1404GA model as well (DMI_MATCH() does a substring match).

Ah, good to know. Thank you for fixing it.

Quoted 13 lines

---
Note this patch replaces Paul Menzel's patch which added a new entry for the "E1404GA", instead of loosening the "E1404GAB" match:
https://lore.kernel.org/linux-acpi/[email protected]/

---
  drivers/acpi/resource.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
Quoted 12 lines

drivers/acpi/resource.c static const struct dmi_system_id irq1_level_low_skip_override[] = { · line 507

Quoted 10 lines
drivers/acpi/resource.c +1 -1
index 1ff251fd1901..dfe108e2ccde 100644
@@ -504,10 +504,10 @@ static const struct dmi_system_id irq1_level_low_skip_override[] = {
          },
      },
      {
-        /* Asus Vivobook Go E1404GAB */
+        /* Asus Vivobook Go E1404GA* */

I guess people are going to grep for the model, if something does not work, so maybe the known ones should listed. I know it’s not optimal, as the comments are very likely be incomplete, but it’s better than than not having it listed, in my opinion.

Quoted 8 lines

That is a valid point, OTOH I don't think we want to take patches later just to update the comment if more models show up.

I guess we could change the comment to:

                /* Asus Vivobook Go E1404GA / E1404GAB */

Rafael any preference from you here ? (1)

Not really.

Quoted 9 lines

Regards,

Hans

1) Other then coming up with a better fix which does not require this quirks at all ...

Yeah.

#5 lore raw

Re: [PATCH 2/4] ACPI: resource: Loosen the Asus E1404GAB DMI match to also cover the E1404GA

Hi,

Quoted 57 lines · Rafael J. Wysocki
Quoted 56 lines · Hans de Goede

Hi,

Quoted 36 lines · Paul Menzel

Dear Hans,

Thank you for your patch.

Am 27.09.24 um 16:16 schrieb Hans de Goede:

Quoted 11 lines

Like other Asus Vivobooks, the Asus Vivobook Go E1404GA has a DSDT describing IRQ 1 as ActiveLow, while the kernel overrides to Edge_High.

     $ sudo dmesg | grep DMI:.*BIOS
     [    0.000000] DMI: ASUSTeK COMPUTER INC. Vivobook Go E1404GA_E1404GA/E1404GA, BIOS E1404GA.302 08/23/2023
     $ sudo cp /sys/firmware/acpi/tables/DSDT dsdt.dat
     $ iasl -d dsdt.dat
     $ grep -A 30 PS2K dsdt.dsl | grep IRQ -A 1
                 IRQ (Level, ActiveLow, Exclusive, )
                     {1}
Quoted 3 lines

There already is an entry in the irq1_level_low_skip_override[] DMI match table for the "E1404GAB", change this to match on "E1404GA" to cover the E1404GA model as well (DMI_MATCH() does a substring match).

Ah, good to know. Thank you for fixing it.

Quoted 13 lines

---
Note this patch replaces Paul Menzel's patch which added a new entry for the "E1404GA", instead of loosening the "E1404GAB" match:
https://lore.kernel.org/linux-acpi/[email protected]/

---
  drivers/acpi/resource.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
Quoted 12 lines

drivers/acpi/resource.c static const struct dmi_system_id irq1_level_low_skip_override[] = { · line 507

Quoted 10 lines
drivers/acpi/resource.c +1 -1
index 1ff251fd1901..dfe108e2ccde 100644
@@ -504,10 +504,10 @@ static const struct dmi_system_id irq1_level_low_skip_override[] = {
          },
      },
      {
-        /* Asus Vivobook Go E1404GAB */
+        /* Asus Vivobook Go E1404GA* */

I guess people are going to grep for the model, if something does not work, so maybe the known ones should listed. I know it’s not optimal, as the comments are very likely be incomplete, but it’s better than than not having it listed, in my opinion.

That is a valid point, OTOH I don't think we want to take patches later just to update the comment if more models show up.

Quoted 7 lines
Quoted 5 lines

I guess we could change the comment to:

                /* Asus Vivobook Go E1404GA / E1404GAB */

Rafael any preference from you here ? (1)

Not really.

Ok, then my vote goes to keeping this as is. So if you're happy with this series please merge it as is.

Regards,

Hans

#6 lore raw

Re: [PATCH 2/4] ACPI: resource: Loosen the Asus E1404GAB DMI match to also cover the E1404GA

Quoted 63 lines · Hans de Goede

Hi,

Quoted 59 lines · Rafael J. Wysocki
Quoted 58 lines · Hans de Goede

Hi,

Quoted 36 lines · Paul Menzel

Dear Hans,

Thank you for your patch.

Am 27.09.24 um 16:16 schrieb Hans de Goede:

Quoted 11 lines

Like other Asus Vivobooks, the Asus Vivobook Go E1404GA has a DSDT describing IRQ 1 as ActiveLow, while the kernel overrides to Edge_High.

     $ sudo dmesg | grep DMI:.*BIOS
     [    0.000000] DMI: ASUSTeK COMPUTER INC. Vivobook Go E1404GA_E1404GA/E1404GA, BIOS E1404GA.302 08/23/2023
     $ sudo cp /sys/firmware/acpi/tables/DSDT dsdt.dat
     $ iasl -d dsdt.dat
     $ grep -A 30 PS2K dsdt.dsl | grep IRQ -A 1
                 IRQ (Level, ActiveLow, Exclusive, )
                     {1}
Quoted 3 lines

There already is an entry in the irq1_level_low_skip_override[] DMI match table for the "E1404GAB", change this to match on "E1404GA" to cover the E1404GA model as well (DMI_MATCH() does a substring match).

Ah, good to know. Thank you for fixing it.

Quoted 13 lines

---
Note this patch replaces Paul Menzel's patch which added a new entry for the "E1404GA", instead of loosening the "E1404GAB" match:
https://lore.kernel.org/linux-acpi/[email protected]/

---
  drivers/acpi/resource.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
Quoted 12 lines

drivers/acpi/resource.c static const struct dmi_system_id irq1_level_low_skip_override[] = { · line 507

Quoted 10 lines
drivers/acpi/resource.c +1 -1
index 1ff251fd1901..dfe108e2ccde 100644
@@ -504,10 +504,10 @@ static const struct dmi_system_id irq1_level_low_skip_override[] = {
          },
      },
      {
-        /* Asus Vivobook Go E1404GAB */
+        /* Asus Vivobook Go E1404GA* */

I guess people are going to grep for the model, if something does not work, so maybe the known ones should listed. I know it’s not optimal, as the comments are very likely be incomplete, but it’s better than than not having it listed, in my opinion.

That is a valid point, OTOH I don't think we want to take patches later just to update the comment if more models show up.

I guess we could change the comment to:

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
                /* Asus Vivobook Go E1404GA / E1404GAB */

Rafael any preference from you here ? (1)

Not really.

Ok, then my vote goes to keeping this as is. So if you're happy with this series please merge it as is.

Now queued up as 6.12-rc2 material, thanks!

#7 lore raw

PATCH 3/4 ACPI: resource: Add Asus Vivobook X1704VAP to irq1_level_low_skip_override[]

In reply to Hans de Goede

Like other Asus Vivobook models the X1704VAP has its keybopard IRQ (1) described as ActiveLow in the DSDT, which the kernel overrides to EdgeHigh which breaks the keyboard.

Add the X1704VAP to the irq1_level_low_skip_override[] quirk table to fix this.

---
 drivers/acpi/resource.c | 7 +++++++
 1 file changed, 7 insertions(+)
drivers/acpi/resource.c +7 -0
index dfe108e2ccde..8e672790ac51 100644
@@ -440,6 +440,13 @@ static const struct dmi_system_id irq1_level_low_skip_override[] = {
 			DMI_MATCH(DMI_BOARD_NAME, "S5602ZA"),
 		},
 	},
+	{
+		/* Asus Vivobook X1704VAP */
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+			DMI_MATCH(DMI_BOARD_NAME, "X1704VAP"),
+		},
+	},
 	{
 		/* Asus ExpertBook B1402CBA */
 		.matches = {
Signature · 1 line
2.46.0
#8 lore raw

PATCH 4/4 ACPI: resource: Add Asus ExpertBook B2502CVA to irq1_level_low_skip_override[]

In reply to Hans de Goede

Like other Asus ExpertBook models the B2502CVA has its keybopard IRQ (1) described as ActiveLow in the DSDT, which the kernel overrides to EdgeHigh which breaks the keyboard.

Add the B2502CVA to the irq1_level_low_skip_override[] quirk table to fix this.

---
 drivers/acpi/resource.c | 7 +++++++
 1 file changed, 7 insertions(+)
drivers/acpi/resource.c +7 -0
index 8e672790ac51..3d74ebe9dbd8 100644
@@ -510,6 +510,13 @@ static const struct dmi_system_id irq1_level_low_skip_override[] = {
 			DMI_MATCH(DMI_BOARD_NAME, "B2502FBA"),
 		},
 	},
+	{
+		/* Asus ExpertBook B2502CVA */
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+			DMI_MATCH(DMI_BOARD_NAME, "B2502CVA"),
+		},
+	},
 	{
 		/* Asus Vivobook Go E1404GA* */
 		.matches = {
Signature · 1 line
2.46.0