Message ID | 1890c3fa24c.d101fdf01298845.3731868257024939195@linux.beauty |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp10347997vqr; Fri, 30 Jun 2023 06:07:15 -0700 (PDT) X-Google-Smtp-Source: APBJJlE4jxT0cpeXcsS9RC7Rtb5QF7grVp4RCcHUGY/fJSVOMyhLecTswLFI2NRI0WnoOGlBMTJL X-Received: by 2002:a92:dc4c:0:b0:345:3378:4258 with SMTP id x12-20020a92dc4c000000b0034533784258mr2108913ilq.30.1688130434834; Fri, 30 Jun 2023 06:07:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688130434; cv=pass; d=google.com; s=arc-20160816; b=TU5exLTmtHCwR61yc404gKivJd01uHthLIv+h1Tz6t8Xx1Zsru//ef6xxNPMTo9IpD 94XlKKKMnjjkndyfmY9Pff/a8bGpiw4XzduIC6ljt8HkhY7WzXOg1Y8o+Wescu80j3/f fz8xEbPB/Kgs9bqWPXtyeK+peC0mMGJEmSZg7IR7ytGkS4ZAz9lWPqxN092GeatxJADL ea8x1do/x+B+6Gsl+w47B4RIE9bdcKEhFUhEqcMu8nLryZORZdZIYjISCEZJN7/JtpA7 JBeh7ll4W69Hg1rQmv4QE13njabpG5wGeBzA5LfP6t0pHHsE2WVkrxE3ajF1NIt2U3Aq WzrQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:importance:content-transfer-encoding :mime-version:subject:in-reply-to:message-id:to:from:date :dkim-signature; bh=6LhIr6V17BrdC653wm2u6g1ZGMjqgmuF6Gf290y9Mik=; fh=+dEpfJDnPS+0NnQ6X5PwSD6wGZj/BWYLFF+SxH7Mnmo=; b=TaWw9hh+1VxU/Y/9eiZx9eA0/dm/aJQCmtJE06A5fjtFkuuRRho2w//kM8XhzlSpfX mWCJSvcrxBrwyahqjlLIrfdZtkuxePPAa/tTX/WQOYkvNVsuEO4ZzcKJJvjTgncbnc6y N0ERrrfD3jxn+gZU/U3VhHV6x4sZRrLHcrF6Bxb6wgbnqyCb6IKCw2gKj3oyq+VOvntf y1uWOPWVomJIfQ1ZpglANQXrNUOPWjEihbQPb+A4hh9H06EOOQb4BhVZHnbBy5NCLikc 2hEOdovJxlfcidoVNbi6duW8tE9HQ/SxmQsGcZgIgQbUUFKYAoDspcajckqZ50rBi2Qf wTjw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.beauty header.s=zmail header.b=LOmNU0Fs; arc=pass (i=1 spf=pass spfdomain=linux.beauty dkim=pass dkdomain=linux.beauty dmarc=pass fromdomain=linux.beauty>); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h32-20020a635320000000b00553cb7da0ddsi12559708pgb.202.2023.06.30.06.07.00; Fri, 30 Jun 2023 06:07:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.beauty header.s=zmail header.b=LOmNU0Fs; arc=pass (i=1 spf=pass spfdomain=linux.beauty dkim=pass dkdomain=linux.beauty dmarc=pass fromdomain=linux.beauty>); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229578AbjF3Mg2 (ORCPT <rfc822;nicolai.engesland@gmail.com> + 99 others); Fri, 30 Jun 2023 08:36:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232168AbjF3MgZ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 30 Jun 2023 08:36:25 -0400 X-Greylist: delayed 904 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 30 Jun 2023 05:36:23 PDT Received: from sender4-op-o15.zoho.com (sender4-op-o15.zoho.com [136.143.188.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91E6935AC; Fri, 30 Jun 2023 05:36:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688127645; cv=none; d=zohomail.com; s=zohoarc; b=Dk//0Njx8FF/AYZDBW5cKe7m2rtHr10S73FYJqgvmWntZzP5z6aOK11OIguSvl34Tn0oA5o9RYe7Nul1ynIAU4+vdSXlvpC0lqGh/+TeRWsvJAjI3sQ5FoKUPSA0Xy/xLvxvW7VY7DieQXS2tp01Qrj/ndruwWSuli4q9pc71QQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1688127645; h=Content-Type:Content-Transfer-Encoding:Date:From:MIME-Version:Message-ID:Subject:To; bh=6LhIr6V17BrdC653wm2u6g1ZGMjqgmuF6Gf290y9Mik=; b=htfyOO+Tg6ZDjzP4O23dkxu4Y2pLn/9npK0Y5pvRUVlKGgIeugjje7yMHjoeL3dyvKmB5NnD79YXpHrtqHjefP7pEmefnkEZWgJyUQ2FAftPondNUhf9aTrmoELXgY+ycZTs6Yi/Ole0m5gYbbZOaaPTof7AeAoGMNRko3i0cY4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=linux.beauty; spf=pass smtp.mailfrom=me@linux.beauty; dmarc=pass header.from=<me@linux.beauty> DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1688127645; s=zmail; d=linux.beauty; i=me@linux.beauty; h=Date:Date:From:From:To:To:Message-ID:In-Reply-To:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To:Cc; bh=6LhIr6V17BrdC653wm2u6g1ZGMjqgmuF6Gf290y9Mik=; b=LOmNU0Fs53LMzNr2s0M3AfsVLMlnYVstdIi8idH4DbWSjuampAXE4MZq2PiFJMrC ATu31HqUwn/PQhhi02rhd0zNgxDhLKnEsGlOa1YwoW/a191EzAkF3ju0DuAlCc96UKl KdIN1Mii9hvpmiTgh1hoxP9s3oFHjg7AuNVZPnYI= Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1688127644347812.1873140766394; Fri, 30 Jun 2023 05:20:44 -0700 (PDT) Date: Fri, 30 Jun 2023 20:20:44 +0800 From: Li Chen <me@linux.beauty> To: "linux-kernel" <linux-kernel@vger.kernel.org>, "linux-acpi" <linux-acpi@vger.kernel.org>, "Len Brown" <lenb@kernel.org>, "Rafael J. Wysocki" <rafael@kernel.org> Message-ID: <1890c3fa24c.d101fdf01298845.3731868257024939195@linux.beauty> In-Reply-To: Subject: [PATCH] ACPI: resource: Add IRQ override for MECHREV Jiaolong17KS MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Importance: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770133058668569362?= X-GMAIL-MSGID: =?utf-8?q?1770133058668569362?= |
Series |
ACPI: resource: Add IRQ override for MECHREV Jiaolong17KS
|
|
Commit Message
Li Chen
June 30, 2023, 12:20 p.m. UTC
Fix a regression introduced by commit 9946e39fe8d0 ("ACPI: resource: skip
IRQ override on AMD Zen platforms") on MECHREV Jiaolong17KS, which
causes the built-in keyboard to not work. This restores the functionality
by adding an IRQ override.
I have personally tested this on the 17" model but I'm not sure if this
issue is present on the 16 model.
Fixes: 9946e39fe8d0 ("ACPI: resource: skip IRQ override on AMD Zen platforms")
Signed-off-by: Li Chen <me@linux.beauty>
---
drivers/acpi/resource.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
Comments
Linux regression tracking (Thorsten Leemhuis)
June 30, 2023, 1:05 p.m. UTC |
#1
Addressed
Unaddressed
[CCing mario and the regressions list] On 30.06.23 14:20, Li Chen wrote: > Fix a regression introduced by commit 9946e39fe8d0 ("ACPI: resource: skip > IRQ override on AMD Zen platforms") on MECHREV Jiaolong17KS, which > causes the built-in keyboard to not work. This restores the functionality > by adding an IRQ override. > > I have personally tested this on the 17" model but I'm not sure if this > issue is present on the 16 model. > > Fixes: 9946e39fe8d0 ("ACPI: resource: skip IRQ override on AMD Zen platforms") > Signed-off-by: Li Chen <me@linux.beauty> Not my area of expertise (so take this with a gain of salt), but I'm aware of something that afaics concerns this: A few days ago a patch was merged to mainline that afaics hopefully might make a change like your unnecessary. See a9c4a912b7d ("ACPI: resource: Remove "Zen" specific match and quirks") in mainline or here: https://lore.kernel.org/all/20230601221151.670-1-mario.limonciello@amd.com/ Might be worth giving a try. There is a rough plan to backport this to stable kernels, unless problems show up. Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) -- Everything you wanna know about Linux kernel regression tracking: https://linux-regtracking.leemhuis.info/about/#tldr If I did something stupid, please tell me, as explained on that page.
[Public] > -----Original Message----- > From: Linux regression tracking (Thorsten Leemhuis) > <regressions@leemhuis.info> > Sent: Friday, June 30, 2023 8:06 AM > To: Li Chen <me@linux.beauty>; linux-kernel <linux-kernel@vger.kernel.org>; > linux-acpi <linux-acpi@vger.kernel.org>; Len Brown <lenb@kernel.org>; Rafael > J. Wysocki <rafael@kernel.org>; Limonciello, Mario > <Mario.Limonciello@amd.com> > Cc: Linux kernel regressions list <regressions@lists.linux.dev> > Subject: Re: [PATCH] ACPI: resource: Add IRQ override for MECHREV > Jiaolong17KS > > [CCing mario and the regressions list] > > On 30.06.23 14:20, Li Chen wrote: > > Fix a regression introduced by commit 9946e39fe8d0 ("ACPI: resource: skip > > IRQ override on AMD Zen platforms") on MECHREV Jiaolong17KS, which > > causes the built-in keyboard to not work. This restores the functionality > > by adding an IRQ override. > > > > I have personally tested this on the 17" model but I'm not sure if this > > issue is present on the 16 model. > > > > Fixes: 9946e39fe8d0 ("ACPI: resource: skip IRQ override on AMD Zen > platforms") > > Signed-off-by: Li Chen <me@linux.beauty> > > Not my area of expertise (so take this with a gain of salt), but I'm > aware of something that afaics concerns this: > > A few days ago a patch was merged to mainline that afaics hopefully > might make a change like your unnecessary. See a9c4a912b7d ("ACPI: > resource: Remove "Zen" specific match and quirks") in mainline or here: > https://lore.kernel.org/all/20230601221151.670-1- > mario.limonciello@amd.com/ > > Might be worth giving a try. > > There is a rough plan to backport this to stable kernels, unless > problems show up. Correct.
diff --git a/drivers/acpi/resource.c b/drivers/acpi/resource.c index 0800a9d77558..5b00ee90388a 100644 --- a/drivers/acpi/resource.c +++ b/drivers/acpi/resource.c @@ -527,6 +527,17 @@ static const struct dmi_system_id lg_laptop[] = { { } }; +static const struct dmi_system_id mechrev_laptop[] = { + { + .ident = "Jiaolong17KS Series GM7XG0M", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "MECHREVO"), + DMI_MATCH(DMI_PRODUCT_NAME, "Jiaolong17KS Series GM7XG0M"), + }, + }, + { } +}; + struct irq_override_cmp { const struct dmi_system_id *system; unsigned char irq; @@ -544,6 +555,7 @@ static const struct irq_override_cmp override_table[] = { { tongfang_gm_rg, 1, ACPI_EDGE_SENSITIVE, ACPI_ACTIVE_LOW, 1, true }, { maingear_laptop, 1, ACPI_EDGE_SENSITIVE, ACPI_ACTIVE_LOW, 1, true }, { lg_laptop, 1, ACPI_LEVEL_SENSITIVE, ACPI_ACTIVE_LOW, 0, false }, + { mechrev_laptop, 1, ACPI_EDGE_SENSITIVE, ACPI_ACTIVE_LOW, 1, true }, }; static bool acpi_dev_irq_override(u32 gsi, u8 triggering, u8 polarity,