From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F36EF2DE1E0; Tue, 17 Jun 2025 12:22:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750162936; cv=none; b=Gk1VG5kS0LcIhhklntw3bJCkB0WhkQRPHStnvO9x2vbwFjSftxyP8+GVdiDUOmqwVNe+bz2s2S8VtNEhqxEukFtKxgcJrmBMh5xhyuSx0Isl3lLxbAbsgb3W5SvWehaKCQ/NFoxSayFE1abCPuiRelzm2UBFybiYB512F3b9r4g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750162936; c=relaxed/simple; bh=9/iHQ3dYlLrbfQPOjcg+z2GVsbtgfzHHrq+JaTmPNUY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=hQenR36XwaC0Tw8ovSiw4gpxEnDQrQ4SXLu86lLSmioDBhdKjTgubBUL5Wk+5AibKBBmF29dcQommMauc9iUWqjdgoNk9kAaQHOnDKxmNcMenCsQMZzxncBuwjb9qGQGd40I+IhVpmll7wX3BunPTO2VhwMQpDgw/vHO1d8jrU8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=SZ9kYBrs; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="SZ9kYBrs" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0F55EC4CEEE; Tue, 17 Jun 2025 12:22:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1750162935; bh=9/iHQ3dYlLrbfQPOjcg+z2GVsbtgfzHHrq+JaTmPNUY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SZ9kYBrs2V8jfWfs1dGY8MDx3Z9Z3DOMWC0212Mzd13r0oM+qz6p13plV86CwkIbx IWe3MdATrxycmcEF/LvQVNRYUrViubylZ0NfXlupKFjYOVLvFCOXKTlQLC8NdLZH4O RYxKuCA8N75xHWf/4+uXkpKhdjCwoB8qKqBvl7Dt10pXdtbWS92WVO25UuEu/s4o1w 2E8LrrFL5YLM7S1rd/EX46RCzs5f4Zf8Orv/DNFgFtsZQkM24kRbJNOwrMcvr4Aw39 +A271SdvrQmd6xd9GZceKzlsZu6QioY/40RpmbZwPuYSoqmxvu7M1ftRbPhB1xY3O8 LH7BSE9Wv6sWQ== From: Sasha Levin To: patches@lists.linux.dev, stable@vger.kernel.org Cc: Wentao Guan , "Rafael J . Wysocki" , Sasha Levin , rafael@kernel.org, linux-acpi@vger.kernel.org Subject: [PATCH AUTOSEL 6.15 12/15] ACPI: resource: Use IRQ override on MACHENIKE 16P Date: Tue, 17 Jun 2025 08:21:42 -0400 Message-Id: <20250617122147.1968355-12-sashal@kernel.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250617122147.1968355-1-sashal@kernel.org> References: <20250617122147.1968355-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.15.2 Content-Transfer-Encoding: 8bit From: Wentao Guan [ Upstream commit c99ad987d3e9b550e9839d5df22de97d90462e5f ] Use ACPI IRQ override on MACHENIKE laptop to make the internal keyboard work. Add a new entry to the irq1_edge_low_force_override structure, similar to the existing ones. Link: https://bbs.deepin.org.cn/zh/post/287628 Signed-off-by: Wentao Guan Link: https://patch.msgid.link/20250603122059.1072790-1-guanwentao@uniontech.com Signed-off-by: Rafael J. Wysocki Signed-off-by: Sasha Levin --- **YES** This commit should be backported to stable kernel trees for the following reasons: 1. **Bug Fix for Non-Functional Hardware**: The commit fixes a broken keyboard on MACHENIKE 16P laptops. The internal keyboard does not work without this IRQ override, which is a significant hardware functionality issue that affects users. 2. **Small and Contained Change**: The change is minimal - it only adds 7 lines to add a new DMI match entry to the existing `irq1_edge_low_force_override` array: ```c + { + /* MACHENIKE L16P/L16P */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "MACHENIKE"), + DMI_MATCH(DMI_BOARD_NAME, "L16P"), + }, + }, ``` 3. **Well-Established Pattern**: This follows an established pattern in the kernel. The code shows this is part of a long-standing mechanism for handling keyboard IRQ issues on AMD Zen platforms where "the DSDT specifies the kbd IRQ as falling edge and this must be overridden to rising edge, to have a working keyboard." 4. **Similar Commits Were Backported**: Looking at the historical commits provided: - "ACPI: resource: Do IRQ override on TongFang GXxHRXx and GMxHGxx" - marked with "Cc: All applicable " - "ACPI: resource: Do IRQ override on MECHREV GM7XG0M" - includes both "Fixes:" tag and "Cc: All applicable " - "ACPI: resource: Do IRQ override on Lunnen Ground laptops" - marked as YES for backporting - "ACPI: resource: IRQ override for Eluktronics MECH-17" - marked as YES for backporting 5. **No Risk of Regression**: The change is isolated to MACHENIKE 16P laptops only (via DMI matching), so it cannot affect other systems. The DMI match ensures this override only applies to the specific hardware that needs it. 6. **Critical Functionality**: A non-functional keyboard is a critical issue that prevents normal system usage. This is not a minor inconvenience but a complete loss of primary input functionality. The only reason this commit might not have been explicitly marked for stable is an oversight, as virtually identical commits for other laptop models fixing the same keyboard IRQ issue have been consistently backported to stable trees. drivers/acpi/resource.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/acpi/resource.c b/drivers/acpi/resource.c index 14c7bac4100b4..9d9921f70855c 100644 --- a/drivers/acpi/resource.c +++ b/drivers/acpi/resource.c @@ -666,6 +666,13 @@ static const struct dmi_system_id irq1_edge_low_force_override[] = { DMI_MATCH(DMI_BOARD_NAME, "GMxHGxx"), }, }, + { + /* MACHENIKE L16P/L16P */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "MACHENIKE"), + DMI_MATCH(DMI_BOARD_NAME, "L16P"), + }, + }, { /* * TongFang GM5HG0A in case of the SKIKK Vanaheim relabel the -- 2.39.5