Skip to contentSkip to conversation

ACPI: resource: Improve Asus skip IRQ override quirks

PATCH In review Hans de Goede 3 participants 8 messages Oct 5, 2024 – Oct 7, 2024

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

cover ACPI: resource: Improve Asus skip IRQ override quirks

Hi Rafael,

After receiving yet another Asus skip IRQ override bug report / patch:
https://lore.kernel.org/platform-driver-x86/[email protected]/

I have taken a closer look at the existing Asus quirks to see if they can be simplied to cover more models.

This patch series removes 8 quirks by making the quirks match more models, while extending coverage with 3 new models which also need a skip IRQ override quirk for their keyboards to work (including the model from the new report).

Please send these to Linus as 6.12-rc# fixes, since this fixes the keyboard not working on 3 more models.

Regards,

Hans

Hans de Goede (4):
ACPI: resource: Make Asus ExpertBook B2402 matches cover more models
ACPI: resource: Make Asus ExpertBook B2502 matches cover more models
ACPI: resource: Fold Asus ExpertBook B1402C* and B1502C* DMI quirks
together
ACPI: resource: Fold Asus Vivobook Pro N6506M* DMI quirks together

 drivers/acpi/resource.c | 76 ++++++-----------------------------------
 1 file changed, 10 insertions(+), 66 deletions(-)
Signature · 1 line
2.46.2
#1 lore raw

PATCH 1/4 ACPI: resource: Make Asus ExpertBook B2402 matches cover more models

The Asus ExpertBook B2402CBA / B2402FBA are the non flip / flip versions of the 14" Asus ExpertBook B2 with 12th gen Intel processors.

It has been reported that the B2402FVA which is the 14" Asus ExpertBook B2 flip with 13th gen Intel processors needs to skip the IRQ override too.

And looking at Asus website there also is a B2402CVA which is the non flip model with 13th gen Intel processors.

Summarizing the following 4 models of the Asus ExpertBook B2 are known:

B2402CBA: 12th gen Intel CPU, non flip
B2402FBA: 12th gen Intel CPU, flip
B2402CVA: 13th gen Intel CPU, non flip
B2402FVA: 13th gen Intel CPU, flip

Fold the 2 existing quirks for the B2402CBA and B2402FBA into a single quirk covering B2402* to also cover the 2 other models while at the same time reducing the number of quirks.

---
 drivers/acpi/resource.c | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)
drivers/acpi/resource.c +2 -9
index 3d74ebe9dbd8..cbe51ae6ae25 100644
@@ -483,17 +483,10 @@ static const struct dmi_system_id irq1_level_low_skip_override[] = {
                 },
         },
 	{
-		/* Asus ExpertBook B2402CBA */
+		/* Asus ExpertBook B2402 (B2402CBA / B2402FBA / B2402CVA / B2402FVA) */
 		.matches = {
 			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
-			DMI_MATCH(DMI_BOARD_NAME, "B2402CBA"),
-		},
-	},
-	{
-		/* Asus ExpertBook B2402FBA */
-		.matches = {
-			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
-			DMI_MATCH(DMI_BOARD_NAME, "B2402FBA"),
+			DMI_MATCH(DMI_BOARD_NAME, "B2402"),
 		},
 	},
 	{
Signature · 1 line
2.46.2
#2 lore raw

PATCH 2/4 ACPI: resource: Make Asus ExpertBook B2502 matches cover more models

In reply to Hans de Goede

Like the various 14" Asus ExpertBook B2 B2402* models there are also 4 variants of the 15" Asus ExpertBook B2 B2502* models:

B2502CBA: 12th gen Intel CPU, non flip
B2502FBA: 12th gen Intel CPU, flip
B2502CVA: 13th gen Intel CPU, non flip
B2502FVA: 13th gen Intel CPU, flip

Currently there already are DMI quirks for the B2502CBA, B2502FBA and B2502CVA models. Asus website shows that there also is a B2502FVA.

Rather then adding a 4th quirk fold the 3 existing quirks into a single quirk covering B2502* to also cover the last model while at the same time reducing the number of quirks.

---
 drivers/acpi/resource.c | 18 ++----------------
 1 file changed, 2 insertions(+), 16 deletions(-)
drivers/acpi/resource.c +2 -16
index cbe51ae6ae25..0eb52e372467 100644
@@ -490,24 +490,10 @@ static const struct dmi_system_id irq1_level_low_skip_override[] = {
 		},
 	},
 	{
-		/* Asus ExpertBook B2502 */
+		/* Asus ExpertBook B2502 (B2502CBA / B2502FBA / B2502CVA / B2502FVA) */
 		.matches = {
 			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
-			DMI_MATCH(DMI_BOARD_NAME, "B2502CBA"),
-		},
-	},
-	{
-		/* Asus ExpertBook B2502FBA */
-		.matches = {
-			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
-			DMI_MATCH(DMI_BOARD_NAME, "B2502FBA"),
-		},
-	},
-	{
-		/* Asus ExpertBook B2502CVA */
-		.matches = {
-			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
-			DMI_MATCH(DMI_BOARD_NAME, "B2502CVA"),
+			DMI_MATCH(DMI_BOARD_NAME, "B2502"),
 		},
 	},
 	{
Signature · 1 line
2.46.2
#3 lore raw

PATCH 3/4 ACPI: resource: Fold Asus ExpertBook B1402C* and B1502C* DMI quirks together

In reply to Hans de Goede

Asus has 2 ExpertBook B1402C models:

B1402CBA with 12th gen Intel CPUs B1402CVA with 13th gen Intel CPUs

Fold the 2 DMI quirks for these into a single quirk to reduce the number of quirks.

Likewise Asus has 3 ExpertBook B1502C models:

B1502CBA with 12th gen Intel CPUs B1502CGA with 12th gen Intel N-series CPUs B1502CVA with 13th gen Intel CPUs

Fold the 3 DMI quirks for these into a single quirk to reduce the number of quirks.

---
 drivers/acpi/resource.c | 29 ++++-------------------------
 1 file changed, 4 insertions(+), 25 deletions(-)
drivers/acpi/resource.c +4 -25
index 0eb52e372467..2c17d3ea4d3c 100644
@@ -448,40 +448,19 @@ static const struct dmi_system_id irq1_level_low_skip_override[] = {
 		},
 	},
 	{
-		/* Asus ExpertBook B1402CBA */
+		/* Asus ExpertBook B1402C* */
 		.matches = {
 			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
-			DMI_MATCH(DMI_BOARD_NAME, "B1402CBA"),
+			DMI_MATCH(DMI_BOARD_NAME, "B1402C"),
 		},
 	},
 	{
-		/* Asus ExpertBook B1402CVA */
+		/* Asus ExpertBook B1502C* */
 		.matches = {
 			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
-			DMI_MATCH(DMI_BOARD_NAME, "B1402CVA"),
+			DMI_MATCH(DMI_BOARD_NAME, "B1502C"),
 		},
 	},
-	{
-		/* Asus ExpertBook B1502CBA */
-		.matches = {
-			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
-			DMI_MATCH(DMI_BOARD_NAME, "B1502CBA"),
-		},
-	},
-	{
-		/* Asus ExpertBook B1502CGA */
-		.matches = {
-			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
-			DMI_MATCH(DMI_BOARD_NAME, "B1502CGA"),
-		},
-	},
-        {
-                /* Asus ExpertBook B1502CVA */
-                .matches = {
-                        DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
-                        DMI_MATCH(DMI_BOARD_NAME, "B1502CVA"),
-                },
-        },
 	{
 		/* Asus ExpertBook B2402 (B2402CBA / B2402FBA / B2402CVA / B2402FVA) */
 		.matches = {
Signature · 1 line
2.46.2
#4 lore raw

Re: [PATCH 3/4] ACPI: resource: Fold Asus ExpertBook B1402C* and B1502C* DMI quirks together

Quoted 71 lines · Hans de Goede

Asus has 2 ExpertBook B1402C models:

B1402CBA with 12th gen Intel CPUs B1402CVA with 13th gen Intel CPUs

Fold the 2 DMI quirks for these into a single quirk to reduce the number of quirks.

Likewise Asus has 3 ExpertBook B1502C models:

B1502CBA with 12th gen Intel CPUs B1502CGA with 12th gen Intel N-series CPUs B1502CVA with 13th gen Intel CPUs

Fold the 3 DMI quirks for these into a single quirk to reduce the number of quirks.

---
 drivers/acpi/resource.c | 29 ++++-------------------------
 1 file changed, 4 insertions(+), 25 deletions(-)
drivers/acpi/resource.c +4 -25
index 0eb52e372467..2c17d3ea4d3c 100644
@@ -448,40 +448,19 @@ static const struct dmi_system_id 
 irq1_level_low_skip_override[] = {
 		},
 	},
 	{
-		/* Asus ExpertBook B1402CBA */
+		/* Asus ExpertBook B1402C* */
 		.matches = {
 			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
-			DMI_MATCH(DMI_BOARD_NAME, "B1402CBA"),
+			DMI_MATCH(DMI_BOARD_NAME, "B1402C"),
 		},
 	},
 	{
-		/* Asus ExpertBook B1402CVA */
+		/* Asus ExpertBook B1502C* */
 		.matches = {
 			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
-			DMI_MATCH(DMI_BOARD_NAME, "B1402CVA"),
+			DMI_MATCH(DMI_BOARD_NAME, "B1502C"),
 		},
 	},
-	{
-		/* Asus ExpertBook B1502CBA */
-		.matches = {
-			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
-			DMI_MATCH(DMI_BOARD_NAME, "B1502CBA"),
-		},
-	},
-	{
-		/* Asus ExpertBook B1502CGA */
-		.matches = {
-			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
-			DMI_MATCH(DMI_BOARD_NAME, "B1502CGA"),
-		},
-	},
-        {
-                /* Asus ExpertBook B1502CVA */
-                .matches = {
-                        DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER 
 INC."),
-                        DMI_MATCH(DMI_BOARD_NAME, "B1502CVA"),
-                },
-        },
 	{
Quoted 5 lines

/* Asus ExpertBook B2402 (B2402CBA / B2402FBA / B2402CVA / B2402FVA)
*/
.matches = {

Signature · 1 line
2.46.2

All patch look good. This does make me wonder if perhaps there are more places still in the kernel where the DMI matching can be further reduced.

My experience in the last 5 years of working on ASUS products is that they tend to be fairly consistent and not deviate from their model numbering scheme or the "base platform" that the variants are built on - the model number base does increment if the platform changes in some way (typically mobo or chip changes).

Regards,
Luke.

#5 lore raw

PATCH 4/4 ACPI: resource: Fold Asus Vivobook Pro N6506M* DMI quirks together

In reply to Hans de Goede

Asus Vivobook Pro 15 OLED comes in 3 N6506M* models:

N6506MU: Intel Ultra 9 185H, 3K OLED, RTX4060
N6506MV: Intel Ultra 7 155H, 3K OLED, RTX4050
N6506MJ: Intel Ultra 7 155H, FHD OLED, RTX3050

Fold the 3 DMI quirks for these into a single quirk to reduce the number of quirks.

---
 drivers/acpi/resource.c | 18 ++----------------
 1 file changed, 2 insertions(+), 16 deletions(-)
drivers/acpi/resource.c +2 -16
index 2c17d3ea4d3c..129bceb1f4a2 100644
@@ -490,24 +490,10 @@ static const struct dmi_system_id irq1_level_low_skip_override[] = {
 		},
 	},
 	{
-		/* Asus Vivobook Pro N6506MV */
+		/* Asus Vivobook Pro N6506M* */
 		.matches = {
 			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
-			DMI_MATCH(DMI_BOARD_NAME, "N6506MV"),
-		},
-	},
-	{
-		/* Asus Vivobook Pro N6506MU */
-		.matches = {
-			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
-			DMI_MATCH(DMI_BOARD_NAME, "N6506MU"),
-		},
-	},
-	{
-		/* Asus Vivobook Pro N6506MJ */
-		.matches = {
-			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
-			DMI_MATCH(DMI_BOARD_NAME, "N6506MJ"),
+			DMI_MATCH(DMI_BOARD_NAME, "N6506M"),
 		},
 	},
 	{
Signature · 1 line
2.46.2
#6 lore raw
In reply to Hans de Goede

Hi Hans,

Quoted 9 lines · Hans de Goede

Hi Rafael,

After receiving yet another Asus skip IRQ override bug report / patch:
https://lore.kernel.org/platform-driver-x86/[email protected]/

I have taken a closer look at the existing Asus quirks to see if they can be simplied to cover more models.

Quoted 7 lines

This patch series removes 8 quirks by making the quirks match more models, while extending coverage with 3 new models which also need a skip IRQ override quirk for their keyboards to work (including the model from the new report).

Please send these to Linus as 6.12-rc# fixes, since this fixes the keyboard not working on 3 more models.

I will, thanks!

#7 lore raw
Quoted 18 lines · Rafael J. Wysocki

Hi Hans,

Quoted 14 lines · Hans de Goede

Hi Rafael,

After receiving yet another Asus skip IRQ override bug report / patch:
https://lore.kernel.org/platform-driver-x86/[email protected]/

I have taken a closer look at the existing Asus quirks to see if they can be simplied to cover more models.

This patch series removes 8 quirks by making the quirks match more models, while extending coverage with 3 new models which also need a skip IRQ override quirk for their keyboards to work (including the model from the new report).

Quoted 4 lines
Quoted 2 lines

Please send these to Linus as 6.12-rc# fixes, since this fixes the keyboard not working on 3 more models.

I will, thanks!

Now applied as 6.12-rc material, thanks!