mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2] ACPI: resource: Add a quirk for Lenovo Yoga 7 14ARB7
@ 2023-07-28 19:14 Mario Limonciello
  2023-07-28 19:36 ` August Wikerfors
  2023-07-31  2:22 ` Benjamin Cheng
  0 siblings, 2 replies; 3+ messages in thread
From: Mario Limonciello @ 2023-07-28 19:14 UTC (permalink / raw)
  To: rafael
  Cc: linux-kernel, linux-acpi, regressions, Mario Limonciello,
	August Wikerfors

Lenovo Yoga 7 needs to have keyboard interrupt signaling polarity
is incorrect in the MADT and the value from the DSDT should be used.

Reported-by: August Wikerfors <git@augustwikerfors.se>
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=217718
Fixes: a9c4a912b7dc ("ACPI: resource: Remove "Zen" specific match and quirks")
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
---
v1->v2:
 * Level->edge
---
 drivers/acpi/resource.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/drivers/acpi/resource.c b/drivers/acpi/resource.c
index 1dd8d5aebf678..6ff788223f332 100644
--- a/drivers/acpi/resource.c
+++ b/drivers/acpi/resource.c
@@ -481,6 +481,17 @@ static const struct dmi_system_id lg_laptop[] = {
 	{ }
 };
 
+static const struct dmi_system_id lenovo_laptop[] = {
+	{
+		.ident = "Lenovo Yoga 7 14ARB7",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "82QF"),
+		},
+	},
+	{ }
+};
+
 struct irq_override_cmp {
 	const struct dmi_system_id *system;
 	unsigned char irq;
@@ -494,6 +505,7 @@ static const struct irq_override_cmp override_table[] = {
 	{ medion_laptop, 1, ACPI_LEVEL_SENSITIVE, ACPI_ACTIVE_LOW, 0, false },
 	{ asus_laptop, 1, ACPI_LEVEL_SENSITIVE, ACPI_ACTIVE_LOW, 0, false },
 	{ lg_laptop, 1, ACPI_LEVEL_SENSITIVE, ACPI_ACTIVE_LOW, 0, false },
+	{ lenovo_laptop, 1, ACPI_EDGE_SENSITIVE, ACPI_ACTIVE_LOW, 1, false}
 };
 
 static bool acpi_dev_irq_override(u32 gsi, u8 triggering, u8 polarity,
-- 
2.34.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] ACPI: resource: Add a quirk for Lenovo Yoga 7 14ARB7
  2023-07-28 19:14 [PATCH v2] ACPI: resource: Add a quirk for Lenovo Yoga 7 14ARB7 Mario Limonciello
@ 2023-07-28 19:36 ` August Wikerfors
  2023-07-31  2:22 ` Benjamin Cheng
  1 sibling, 0 replies; 3+ messages in thread
From: August Wikerfors @ 2023-07-28 19:36 UTC (permalink / raw)
  To: Mario Limonciello; +Cc: rafael, linux-kernel, linux-acpi, regressions

On 2023-07-28 21:14, Mario Limonciello wrote:
> Lenovo Yoga 7 needs to have keyboard interrupt signaling polarity
> is incorrect in the MADT and the value from the DSDT should be used.
> 
> Reported-by: August Wikerfors <git@augustwikerfors.se>
> Closes: https://bugzilla.kernel.org/show_bug.cgi?id=217718
> Fixes: a9c4a912b7dc ("ACPI: resource: Remove "Zen" specific match and quirks")
> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Tested-by: August Wikerfors <git@augustwikerfors.se>

Thanks!

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] ACPI: resource: Add a quirk for Lenovo Yoga 7 14ARB7
  2023-07-28 19:14 [PATCH v2] ACPI: resource: Add a quirk for Lenovo Yoga 7 14ARB7 Mario Limonciello
  2023-07-28 19:36 ` August Wikerfors
@ 2023-07-31  2:22 ` Benjamin Cheng
  1 sibling, 0 replies; 3+ messages in thread
From: Benjamin Cheng @ 2023-07-31  2:22 UTC (permalink / raw)
  To: mario.limonciello; +Cc: git, linux-acpi, linux-kernel, rafael, regressions

Would it be possible to include a similar quirk for the Lenovo ThinkBook
13s G4 ARB?

a9c4a912b7dc ("ACPI: resource: Remove "Zen" specific match and quirks")
doesn't break the keyboard on this model, but makes it very sluggish and
unresponsive.

Adding the following entry fixes the issue for me:
static const struct dmi_system_id lenovo_laptop[] = {
	{
		.ident = "Lenovo Yoga 7 14ARB7",
		.matches = {
			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
			DMI_MATCH(DMI_PRODUCT_NAME, "82QF"),
		},
	},
			DMI_MATCH(DMI_PRODUCT_NAME, "82QF"),
		},
	},
+	{
+		.ident = "Lenovo ThinkBook 13s G4 ARB",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "21AS"),
+		},
+	},
	{ }
};

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-07-31  2:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-28 19:14 [PATCH v2] ACPI: resource: Add a quirk for Lenovo Yoga 7 14ARB7 Mario Limonciello
2023-07-28 19:36 ` August Wikerfors
2023-07-31  2:22 ` Benjamin Cheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®