Skip to contentSkip to conversation

ACPI: resource: Skip IRQ override on Asus Vivobook Go E1404GAB

PATCH Applied Tamim Khan 5 participants 9 messages Sep 3, 2024 – Sep 30, 2024

Subsystems (2)
lore
Share & tools
lore

Tamim Khan

author
#0 lore raw

PATCH 1/1 ACPI: resource: Skip IRQ override on Asus Vivobook Go E1404GAB

Like other Asus Vivobooks, the Asus Vivobook Go E1404GAB has a DSDT that describes IRQ 1 as ActiveLow, while the kernel overrides to Edge_High. This override prevents the internal keyboard from working. This patch fixes this problem by adding this laptop to the table that prevents the kernel from overriding the IRQ.

---
 drivers/acpi/resource.c | 7 +++++++
 1 file changed, 7 insertions(+)
drivers/acpi/resource.c +7 -0
index df5d5a554b38..c65c72c515e6 100644
@@ -503,6 +503,13 @@ static const struct dmi_system_id irq1_level_low_skip_override[] = {
 			DMI_MATCH(DMI_BOARD_NAME, "B2502FBA"),
 		},
 	},
+	{
+		/* Asus Vivobook Go E1404GAB */
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+			DMI_MATCH(DMI_BOARD_NAME, "E1404GAB"),
+		},
+	},
 	{
 		/* Asus Vivobook E1504GA */
 		.matches = {
Signature · 1 line
2.46.0
maintainer Applied
#1 lore raw
Quoted 22 lines · Tamim Khan

Like other Asus Vivobooks, the Asus Vivobook Go E1404GAB has a DSDT that describes IRQ 1 as ActiveLow, while the kernel overrides to Edge_High. This override prevents the internal keyboard from working. This patch fixes this problem by adding this laptop to the table that prevents the kernel from overriding the IRQ.

---
 drivers/acpi/resource.c | 7 +++++++
 1 file changed, 7 insertions(+)
drivers/acpi/resource.c +1 -0
index df5d5a554b38..c65c72c515e6 100644
@@ -503,6 +503,13 @@ static const struct dmi_system_id irq1_level_low_skip_override[] = {
                        DMI_MATCH(DMI_BOARD_NAME, "B2502FBA"),
                },
        },
+       {

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

Quoted 10 lines
drivers/acpi/resource.c +6 -1
+               /* Asus Vivobook Go E1404GAB */
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+                       DMI_MATCH(DMI_BOARD_NAME, "E1404GAB"),
+               },
+       },
        {
                /* Asus Vivobook E1504GA */
                .matches = {
--

Applied as 6.12 material, thanks!

#2 lore raw
In reply to Tamim Khan
Quoted 7 lines · Tamim Khan

Like other Asus Vivobooks, the Asus Vivobook Go E1404GAB has a DSDT that describes IRQ 1 as ActiveLow, while the kernel overrides to Edge_High. This override prevents the internal keyboard from working. This patch fixes this problem by adding this laptop to the table that prevents the kernel from overriding the IRQ.

Thx for that. FWIW, I by chance noticed another such report about the
E1404GA: https://bugzilla.kernel.org/show_bug.cgi?id=219224

Ciao, Thorsten

#3 lore raw
Quoted 11 lines · Thorsten Leemhuis
Quoted 7 lines · Tamim Khan

Like other Asus Vivobooks, the Asus Vivobook Go E1404GAB has a DSDT that describes IRQ 1 as ActiveLow, while the kernel overrides to Edge_High. This override prevents the internal keyboard from working. This patch fixes this problem by adding this laptop to the table that prevents the kernel from overriding the IRQ.

Thx for that. FWIW, I by chance noticed another such report about the
E1404GA: https://bugzilla.kernel.org/show_bug.cgi?id=219224

TWIMC, shortly after sending this mail I noticed there is another request for a quirk that was send to the list, bug afaics fall through the cracks. See here:
https://lore.kernel.org/all/[email protected]/

It afaics add a X1704VAP:

	{
		/* Asus Vivobook X1704V */
		.matches = {
			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
			DMI_MATCH(DMI_BOARD_NAME, "X1704VAP"),
		},
	},

Ciao, Thorsten

#4 lore raw

[CCing Hans]

Quoted 20 lines · Thorsten Leemhuis
Quoted 11 lines · Thorsten Leemhuis
Quoted 7 lines · Tamim Khan

Like other Asus Vivobooks, the Asus Vivobook Go E1404GAB has a DSDT that describes IRQ 1 as ActiveLow, while the kernel overrides to Edge_High. This override prevents the internal keyboard from working. This patch fixes this problem by adding this laptop to the table that prevents the kernel from overriding the IRQ.

Thx for that. FWIW, I by chance noticed another such report about the
E1404GA: https://bugzilla.kernel.org/show_bug.cgi?id=219224

TWIMC, shortly after sending this mail I noticed there is another request for a quirk that was send to the list, bug afaics fall through the cracks. See here:
https://lore.kernel.org/all/[email protected]/

It afaics add a X1704VAP:

Quoted 7 lines
	{
		/* Asus Vivobook X1704V */
		.matches = {
			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
			DMI_MATCH(DMI_BOARD_NAME, "X1704VAP"),
		},
	},

FWIW, noticed another such report, this time about the B2502CVA:
https://bugzilla.kernel.org/show_bug.cgi?id=217760#c12

"""

Quoted 8 lines

adding this section to file drivers/acpi/resource.c helped; if someone could do an official patch it would be great :-|

        {
                /* Asus ExpertBook B2502CVA */
                .matches = {
                        DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
                        DMI_MATCH(DMI_BOARD_NAME, "B2502CVA"),
                },

"""

This is not a regression, but given how frequently I notice these issues please as a bystander allow me to ask: is there maybe some way to improve the situation so that we do not have to add all these and likely many other Asus Laptops to that file?

Ciao, Thorsten

#5 lore raw

Hi Thorsten,

Quoted 1 line · Thorsten Leemhuis

[CCing Hans]

Can you next time maybe also add a bit of text explaining why ?

Often the why is trivial, but in this case I wonder what input you want from me, see below.

Quoted 29 lines · Thorsten Leemhuis
Quoted 20 lines · Thorsten Leemhuis
Quoted 11 lines · Tamim Khan
Quoted 7 lines

Like other Asus Vivobooks, the Asus Vivobook Go E1404GAB has a DSDT that describes IRQ 1 as ActiveLow, while the kernel overrides to Edge_High. This override prevents the internal keyboard from working. This patch fixes this problem by adding this laptop to the table that prevents the kernel from overriding the IRQ.

Thx for that. FWIW, I by chance noticed another such report about the
E1404GA: https://bugzilla.kernel.org/show_bug.cgi?id=219224

TWIMC, shortly after sending this mail I noticed there is another request for a quirk that was send to the list, bug afaics fall through the cracks. See here:
https://lore.kernel.org/all/[email protected]/

It afaics add a X1704VAP:

Quoted 7 lines
	{
		/* Asus Vivobook X1704V */
		.matches = {
			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
			DMI_MATCH(DMI_BOARD_NAME, "X1704VAP"),
		},
	},
Quoted 2 lines

FWIW, noticed another such report, this time about the B2502CVA:
https://bugzilla.kernel.org/show_bug.cgi?id=217760#c12

Ok, I wonder did you Cc me so that I can write / submit patches upstream for these ones?

It seems that there are 3 missing models:
- E1404GA: https://bugzilla.kernel.org/show_bug.cgi?id=219224
- X1704VAP https://lore.kernel.org/all/[email protected]/
- B2502CV: https://bugzilla.kernel.org/show_bug.cgi?id=217760#c12

Which someone needs to submit upstream, right ?

Quoted 9 lines

"""

Quoted 8 lines

adding this section to file drivers/acpi/resource.c helped; if someone could do an official patch it would be great :-|

        {
                /* Asus ExpertBook B2502CVA */
                .matches = {
                        DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
                        DMI_MATCH(DMI_BOARD_NAME, "B2502CVA"),
                },
Quoted 6 lines

"""

This is not a regression, but given how frequently I notice these issues please as a bystander allow me to ask: is there maybe some way to improve the situation so that we do not have to add all these and likely many other Asus Laptops to that file?

This has been discussed before and unfortunately there is no other way to deal with this. There has been some discussion about reading back the polarity and edge/level from the hardware for the keyboard IRQ to get the values which the BIOS has setup. But it is uncertain if this will work and no one is working on this.

Regards,

Hans

#6 lore raw
Quoted 4 lines · Hans de Goede
Quoted 1 line · Thorsten Leemhuis

[CCing Hans]

Can you next time maybe also add a bit of text explaining why ?

Sorry, yes, you are right, will keep that in mind.

Quoted 18 lines
Quoted 18 lines · Thorsten Leemhuis
Quoted 17 lines · Thorsten Leemhuis
Quoted 10 lines · Tamim Khan
Quoted 7 lines

Like other Asus Vivobooks, the Asus Vivobook Go E1404GAB has a DSDT that describes IRQ 1 as ActiveLow, while the kernel overrides to Edge_High. This override prevents the internal keyboard from working. This patch fixes this problem by adding this laptop to the table that prevents the kernel from overriding the IRQ.

Thx for that. FWIW, I by chance noticed another such report about the
E1404GA: https://bugzilla.kernel.org/show_bug.cgi?id=219224

TWIMC, shortly after sending this mail I noticed there is another request for a quirk that was send to the list, bug afaics fall through the cracks. See here:
https://lore.kernel.org/all/[email protected]/

Quoted 5 lines
Quoted 1 line
Quoted 1 line

It afaics add a X1704VAP:

[...]

Ok, I wonder did you Cc me so that I can write / submit patches upstream for these ones?

Not really. Of course it would be nice if you or someone else took care of that one and...

Quoted 6 lines

It seems that there are 3 missing models:
- E1404GA: https://bugzilla.kernel.org/show_bug.cgi?id=219224
- X1704VAP https://lore.kernel.org/all/[email protected]/
- B2502CV: https://bugzilla.kernel.org/show_bug.cgi?id=217760#c12

Which someone needs to submit upstream, right ?

...these as well -- and ideally would even be willing to act as go-to person from now on in case more of these quirk entries are needed, which I guess will be the case. But given the backstory (see below) I don't think you or anyone else is obliged to do this, even if the current situation is parlty caused by regressions and recent fixes for them.

Quoted 16 lines
Quoted 9 lines

"""

Quoted 8 lines

adding this section to file drivers/acpi/resource.c helped; if someone could do an official patch it would be great :-|

        {
                /* Asus ExpertBook B2502CVA */
                .matches = {
                        DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
                        DMI_MATCH(DMI_BOARD_NAME, "B2502CVA"),
                },
Quoted 6 lines

"""

This is not a regression, but given how frequently I notice these issues please as a bystander allow me to ask: is there maybe some way to improve the situation so that we do not have to add all these and likely many other Asus Laptops to that file?

Quoted 5 lines

This has been discussed before and unfortunately there is no other way to deal with this. There has been some discussion about reading back the polarity and edge/level from the hardware for the keyboard IRQ to get the values which the BIOS has setup. But it is uncertain if this will work and no one is working on this.

A refresher like this was more what I was fishing for. Thx for this.

Now that you wrote it, it makes me think: given the amount of quirk entries we apparently need I wonder if it might be wise to revisit this at some point in the not to distant future, as I suspect otherwise sooner or later Linus might yell at all of us with something along the lines of "the kernel is clearly broken, why did we work around this with lots of quirk entries instead of fixing this for real". Something like that happened in a somewhat (but not exactly) similar situation a year ago, and it iirc was not the first time.

Writing this lead to another thought: does anyone have contacts to Asus and could just ask if there is some generic way to detect which of their Laptops need a quirk?

Ciao, Thorsten

#7 lore raw

Hi Thorsten,

Quoted 40 lines · Thorsten Leemhuis
Quoted 4 lines · Hans de Goede
Quoted 1 line · Thorsten Leemhuis

[CCing Hans]

Can you next time maybe also add a bit of text explaining why ?

Sorry, yes, you are right, will keep that in mind.

Quoted 18 lines
Quoted 18 lines · Thorsten Leemhuis
Quoted 17 lines · Thorsten Leemhuis
Quoted 10 lines · Tamim Khan
Quoted 7 lines

Like other Asus Vivobooks, the Asus Vivobook Go E1404GAB has a DSDT that describes IRQ 1 as ActiveLow, while the kernel overrides to Edge_High. This override prevents the internal keyboard from working. This patch fixes this problem by adding this laptop to the table that prevents the kernel from overriding the IRQ.

Thx for that. FWIW, I by chance noticed another such report about the
E1404GA: https://bugzilla.kernel.org/show_bug.cgi?id=219224

TWIMC, shortly after sending this mail I noticed there is another request for a quirk that was send to the list, bug afaics fall through the cracks. See here:
https://lore.kernel.org/all/[email protected]/

Quoted 5 lines
Quoted 1 line
Quoted 1 line

It afaics add a X1704VAP:

[...]

Ok, I wonder did you Cc me so that I can write / submit patches upstream for these ones?

Not really. Of course it would be nice if you or someone else took care of that one and...

Quoted 5 lines

It seems that there are 3 missing models:
- E1404GA: https://bugzilla.kernel.org/show_bug.cgi?id=219224
- X1704VAP https://lore.kernel.org/all/[email protected]/
- B2502CV: https://bugzilla.kernel.org/show_bug.cgi?id=217760#c12

Quoted 7 lines
Quoted 1 line

Which someone needs to submit upstream, right ?

...these as well -- and ideally would even be willing to act as go-to person from now on in case more of these quirk entries are needed, which I guess will be the case. But given the backstory (see below) I don't think you or anyone else is obliged to do this, even if the current situation is parlty caused by regressions and recent fixes for them.

I have already done a bunch of these patches. So I would be happy to submit more of these, but someone needs to bring them to my attention first.

Also maybe Paul Menzel (added to the Cc) and Tamim Khan can help with adding more quirks, when reports come in ?

Either way I have submitted a set of patches to add quirks for the 3 new known broken models now.

Quoted 24 lines
Quoted 16 lines
Quoted 9 lines

"""

Quoted 8 lines

adding this section to file drivers/acpi/resource.c helped; if someone could do an official patch it would be great :-|

        {
                /* Asus ExpertBook B2502CVA */
                .matches = {
                        DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
                        DMI_MATCH(DMI_BOARD_NAME, "B2502CVA"),
                },
Quoted 6 lines

"""

This is not a regression, but given how frequently I notice these issues please as a bystander allow me to ask: is there maybe some way to improve the situation so that we do not have to add all these and likely many other Asus Laptops to that file?

Quoted 5 lines

This has been discussed before and unfortunately there is no other way to deal with this. There has been some discussion about reading back the polarity and edge/level from the hardware for the keyboard IRQ to get the values which the BIOS has setup. But it is uncertain if this will work and no one is working on this.

A refresher like this was more what I was fishing for. Thx for this.

Quoted 8 lines

Now that you wrote it, it makes me think: given the amount of quirk entries we apparently need I wonder if it might be wise to revisit this at some point in the not to distant future, as I suspect otherwise sooner or later Linus might yell at all of us with something along the lines of "the kernel is clearly broken, why did we work around this with lots of quirk entries instead of fixing this for real". Something like that happened in a somewhat (but not exactly) similar situation a year ago, and it iirc was not the first time.

I hear you, but I don't really know anyone who has both the expertise as well as the bandwidth to deal with this.

Quoted 3 lines

Writing this lead to another thought: does anyone have contacts to Asus and could just ask if there is some generic way to detect which of their Laptops need a quirk?

I don't have any contacts at Asus.

Regards,

Hans

#8 lore raw
Quoted 17 lines · Hans de Goede
Quoted 16 lines · Thorsten Leemhuis
Quoted 4 lines · Hans de Goede
Quoted 1 line · Thorsten Leemhuis
Quoted 1 line

https://lore.kernel.org/all/[email protected]/

Ok, I wonder did you Cc me so that I can write / submit patches upstream for these ones?

Not really. Of course it would be nice if you or someone else took care of that one and...

Quoted 6 lines

It seems that there are 3 missing models:
- E1404GA: https://bugzilla.kernel.org/show_bug.cgi?id=219224
- X1704VAP https://lore.kernel.org/all/[email protected]/
- B2502CV: https://bugzilla.kernel.org/show_bug.cgi?id=217760#c12

Which someone needs to submit upstream, right ?

Quoted 8 lines
Quoted 5 lines

...these as well -- and ideally would even be willing to act as go-to person from now on in case more of these quirk entries are needed, which I guess will be the case. But given the backstory (see below) I don't think you or anyone else is obliged to do this, even if the current situation is parlty caused by regressions and recent fixes for them.

I have already done a bunch of these patches. So I would be happy to submit more of these, but someone needs to bring them to my attention first.

Great, good to know.

Quoted 2 lines

Also maybe Paul Menzel (added to the Cc) and Tamim Khan can help with adding more quirks, when reports come in ?

That would be great, but nevertheless allow me to ask:

Does anyone now if kernelnewbies has some place where we could submit requests for creating quirk entries?

Quoted 2 lines

Either way I have submitted a set of patches to add quirks for the 3 new known broken models now.

Many thx!

Quoted 4 lines
Quoted 3 lines

Writing this lead to another thought: does anyone have contacts to Asus and could just ask if there is some generic way to detect which of their Laptops need a quirk?

I don't have any contacts at Asus.

I asked in the fediverse, maybe someone knows somebody that can help. And if not: no harm done.

Have a nice week everyone!

Ciao, Thorsten