Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4516131rwr; Mon, 8 May 2023 08:43:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5KpoAVag3FhlVpB4k4KwXr8Lyfa9MDZ626qOh2d7lJvijFM5D/1TDs707KyaNwR1NB/29Q X-Received: by 2002:a17:90a:8c17:b0:24d:f3cc:7d34 with SMTP id a23-20020a17090a8c1700b0024df3cc7d34mr10945341pjo.32.1683560618745; Mon, 08 May 2023 08:43:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683560618; cv=none; d=google.com; s=arc-20160816; b=SzZat6CkQMhtS7TpdEXtSmy/4p0lcluwY+e7SAFJH2fjlTDKnSFDAk6fob9p4h+ZnX 25CDjSCl9RCnF0xHVFwnZNb50xSImZLdVuin88B3dpXRDdyhodw488ztit3rkzH9mS6T /WuZQFKb8g/O2J0RdDC4xYefdx8Fr1t0dRS7GNdWzHV5rMWCpgrnuFW7oWxmttxC7Rzt 1B/pVnMwMYR0079mrYAbARE3+Or4+pwZuBcBzqROc7lo2L3ZH3DJrsGwnM8gZ1mCZ2uC 8C8FSRVHcNdYcu+Q0wmhbSkSbWqwwHDcJ6zWZwyEq5hq2YVk+tVnFcEIaDZfGFM4Zh0Z 3vyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ddVg5NwpexUXVTyyMr05Lwv6CZGiw2vqLYMkPFFIBYQ=; b=DQ9EphUWZRfha0WTGxoks8R+5HwUhSWW2gWBr0Gmdgsqxzlo7UU8xA0AHDwlvre7fC WbhZTrdeYkLyVlXMCI8TF4oeka4Cy8pNSNxN1BdeclYUPpgbBzplWYbOIi51xJtEHC6/ dpAbaF3TGEq0nyk89g58ozRgcGb92UGuX37m0WaRatrIAEQCEUrwgOPMNtA3jMaDNNkq gkSiQhi1QCX48SrGksG5HbqraeTJQSzelMxz9uxhajAejjyGp4NsIdP+YnyQ1wTgTjrw bdOIFri1Ps6fZ5RI5j2aMqd8YmAiSU9Zq8F5WbrZMuZhgufKhAWkfMaPILUDen6KS2Q7 l3Rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=JOt53aFz; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w12-20020a17090aaf8c00b0024769a264fcsi12618110pjq.10.2023.05.08.08.43.26; Mon, 08 May 2023 08:43:38 -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=@gmail.com header.s=20221208 header.b=JOt53aFz; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234460AbjEHPSE (ORCPT + 99 others); Mon, 8 May 2023 11:18:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229995AbjEHPSC (ORCPT ); Mon, 8 May 2023 11:18:02 -0400 Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50B99A2; Mon, 8 May 2023 08:18:01 -0700 (PDT) Received: by mail-pg1-x52c.google.com with SMTP id 41be03b00d2f7-5144043d9d1so3092558a12.3; Mon, 08 May 2023 08:18:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683559081; x=1686151081; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=ddVg5NwpexUXVTyyMr05Lwv6CZGiw2vqLYMkPFFIBYQ=; b=JOt53aFzZR9CZNQIoTICa+8Nc75Sx6hdN4ogm7btYica7EBns7zTHkPa65XqoCIUeM bZTOBlbKlRBdAFj30NcgOexEqu2h9/HWl8WZg8sG6dVHhIdVPK7u79Q/WlwTdz6N7Q7W Ou61NmkStKfOU4b38Gdh1beRn9F6UAstyLWq2pplwciiezAn3rtdQUT7v6jE1yO7e/Cb FZTd+hGxLp7NF+hYGv3bpN567IpMP1jKhTTQXVwXU0qXIJsStO/Se5xftXIIsZTPp3md ME+UXt+oWYhyJKKi/bug8KX0dilegSs1DiOg7YSmcX8nNxNx8uOtEDIfGAilh2Ns22Fn rUpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683559081; x=1686151081; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ddVg5NwpexUXVTyyMr05Lwv6CZGiw2vqLYMkPFFIBYQ=; b=ct8BKMVJ7ffUmMoqNnB4we0eI2M49RO2l+SLR1aZsieMfDGAGwxr/tGleWulJTYC6y oUx72frbltuiLTwLjeVf9UC24124S/mAzqcqfHFaiANHtl4tKLO4Tj2x9P5FgAdzNflW SekHPFpIh1TCRNL7c1drx13ZZGNEcQfsfnlcCz68TUdCdnSr8wNtIsdvOM3/qm6z7tAJ 29yl/zZW7sFa1tRybFpA6QQizXUjQr1AeoHhxJrOlJL28Kx8RlizS89HJXt7+kkQn8rX l+amgwn9WERWsRxX/z63ZKpMOAzXrLv5tmMb0o3W40s8aau6iKC1+1bnoLT7Xpy7uOuC 22fg== X-Gm-Message-State: AC+VfDxbJTdicvcj+hEVgr3ajyxYp8ldyDhTjuDl6kDsNVijAR6oqdyi pJTJEQ7Xt9nq2YSzonjWYTk= X-Received: by 2002:a17:90a:af86:b0:250:5194:b135 with SMTP id w6-20020a17090aaf8600b002505194b135mr7136903pjq.34.1683559080588; Mon, 08 May 2023 08:18:00 -0700 (PDT) Received: from google.com ([2620:15c:9d:2:4d1:db5a:dbba:cd34]) by smtp.gmail.com with ESMTPSA id n21-20020a17090a929500b0024de93877acsm9944960pjo.47.2023.05.08.08.17.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 May 2023 08:17:59 -0700 (PDT) Date: Mon, 8 May 2023 08:17:56 -0700 From: Dmitry Torokhov To: Mario Limonciello Cc: Thorsten Leemhuis , "Limonciello, Mario" , Linux regressions mailing list , Chuanhong Guo , linux-input@vger.kernel.org, "Rafael J. Wysocki" , ACPI Devel Maling List , LKML Subject: Re: [regression] Bug 217394 - IRQ override skipping breaks the Aya Neo Air Plus 6800U keyboard buttons Message-ID: References: <01ea5c8e-ed2f-7568-f6ed-896329e7b673@leemhuis.info> <68d017d9-d815-01d4-23c1-49c0aaf5f20b@amd.com> <5df240d4-03f1-31cd-03e1-a6cfddd5cc1d@leemhuis.info> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 07, 2023 at 07:45:01AM -0500, Mario Limonciello wrote: > > On 5/6/23 01:47, Thorsten Leemhuis wrote: > > On 03.05.23 21:00, Dmitry Torokhov wrote: > > > On Wed, May 03, 2023 at 11:11:33AM -0500, Limonciello, Mario wrote: > > > > On 5/3/2023 7:58 AM, Linux regression tracking (Thorsten Leemhuis) wrote: > > > > > I noticed a regression report in bugzilla.kernel.org. As many (most?) > > > > > kernel developers don't keep an eye on it, I decided to forward it by mail. > > > > > > > > > > Chuanhong Guo, apparently it's cause by a change of yours. > > BTW, there is another report caused by the change: > > https://bugzilla.kernel.org/show_bug.cgi?id=217406 > > > > ``` > > I have an HP Pavilion Aero 13 laptop that comes with an AMD Ryzen 7735U > > CPU and an up-to-date BIOS. Using any kernel version that is strictly > > greater than 5.19.9 on it is causing the typing with the integrated > > keyboard to be extremely slow. "Slow" is subjective but let's say [...]" > > ``` > > > > /me wonders how many machines out there show problems we never hear about > > > > Anyway: > > > > > > > Note, you have to use bugzilla to reach the reporter, as I sadly[1] can > > > > > not CCed them in mails like this. > > > > > > > > > > Quoting from https://bugzilla.kernel.org/show_bug.cgi?id=217394 : > > > > > > > > > > > Matthew 2023-05-03 02:28:33 UTC > > > > > > > > > > > > Reverting the changes found in this patch fixes the issue: > > > > > > > https://lore.kernel.org/all/20220712020058.90374-1-gch981213@gmail.com/ > > > > > > With that patch the AT Translated Set 2 Keyboard doesn't show up with the evtest and is not usable. > > > > > > > > > > > > Hardware: > > > > > > > > > > > > Aya Neo Air Plus > > > > > > AMD Ryzen 7 6800U > > > > > See the ticket for more details. > > > > > > > > > > BTW: there apparently is another IRQ override needed for a different > > > > > machine. See https://bugzilla.kernel.org/show_bug.cgi?id=216804#c8 for > > > > > details (ignore the comments before that, the quirk entry for that > > > > > machine was merged; comment 8 and all related to it really should have a > > > > > separate bug; that's also why this partly fall through the cracks here > > > > > :-/ ). The user is currently trying to create a patch. > > > > > > > > > Something I'm wondering about is if it's possible for i8042 to detect the > > > > polarity is incorrect when it probes and > > > > to try to correct it. > > > > > > > > If we could do that we can probably drop 9946e39fe8d0 ("ACPI: resource: skip > > > > IRQ override on AMD Zen platforms") > > > > to fix this issue along with all the other quirks that have collected over > > > > time on i8042 polarity issues. > > > 8042 is shared between multiple platforms and is quite fragile as it is. > > > If there are issues in AMD firmware and you know the polarity that is > > > needed for 8042 on these platforms you should add a proper fixup for > > > override. Maybe you should only skip override for IRQ 1? > > Stupid question from the peanut gallery: does anyone know what Windows > > is doing on those machines? I wonder if this is one of those situation > > where we just must follow suite to make things work reliably long term > > for users, even if that might mean 8042 needs to be modified. Maybe Windows simply selects "falling edge" trigger in the driver? They do not need to deal with multiple atchitectures, so it may work for them. > > > > Or is the problem likely to go away with new hardware? > > > > Ciao, Thorsten > > > > P.S.: BTW: > > > > #regzbot link: https://bugzilla.kernel.org/show_bug.cgi?id=217406 > I've got the same question.? This issue doesn't happen in AMD's > reference platform; it's not in AMD's firmware. > It seems to be happening in some OEM platforms only. > > Dmitry, > > Can you think about what a polarity detection scheme would look > like for i8042?? If it's put in the error path (device not responding to > probe) > I would think it should be relatively low risk to otherwise working > hardware. Mario, I feel strongly that this kind of kludges belong in the platform handling code. If you know the polarity of keyboard interrupt on AMD platforms and that it is sometimes described incorrectly in the firmware you should fix it up in the code that deals with the firmware. We have some code trying to test AUX interrupt and it has all kinds of exceptions because many ECs do not implement AUX LOOP command properly, on some the interrupt is not delivered for the LOOP command and so forth. It is a disaster. I shudder to think about trying to use KBD LOOP. Thanks. -- Dmitry