Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5964816rwd; Mon, 5 Jun 2023 10:54:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4bbqX6uiEur+0bhWGuRaFz7HvPg6XV+aLrvX42NxCs3KiMahMArpdXzZ1CYYafncFQHGJv X-Received: by 2002:a05:6a20:e192:b0:10e:e813:46ed with SMTP id ks18-20020a056a20e19200b0010ee81346edmr6802096pzb.43.1685987675564; Mon, 05 Jun 2023 10:54:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685987675; cv=none; d=google.com; s=arc-20160816; b=Uv+N6eTjZhfiDamMZz14KJ/MKcLULYSwZNen2QTTWH1L8wTLuGfXh+FKKWj/rsfphu UMlgqUHZ9I2vxNwrWa/sF21FvnaF4LVh8XCXM12wqsOAakYsemR2tDW/LjAxJW1cDyha fwh2tCbx03vKLVD8QaieI2oPGyd5NiPe/nKydWNfMjtqoWUP+9rj6af4QcPRDExXPhSo AfTsc7jFBdGRQlEX2T2lfqv+olX5S78Fqvv7w5RX2BntsKfnp1mv+Hcg+HKoB2zpcq39 EnPxSBV0ZXE540U5MWUnrEoJyCCKXcyjhy00MXtdbRRTfTXmzYhsmyXHh45/Y7hfg2Q9 rJeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=1ur3C09Wu62wCnCBioNkX6P2L+qVbDe8AtEPfX/Oxtw=; b=nMfAtpIppiQXTqdan/b0cKe0afFrTej4rCRNyvRUBYyoaPVnB4DWqIWsy4SFyaTcDN w6JZ2mAub/+S0RCnyitxWG8PU73OJIlZ9aZGgQyDtqRW7ysv5SqwHnZITSgUrB5vFQDV 9X8WyKivJ0MFJAcls4lxQAdbUgkV3cI26h8Tsa/lVzlOsVhSvtyJxPxD+GVpOOYViq8P MQluyqgpB/oK+N1IjD8MSNqtPDiuI3LjUd5bcW/7kb9DXDkBIGIrVMcYgcuZzrNbh198 CkhsAKXlZMtz02dxP0b59aarA2GvJqWKUzn3fdG4LyY5xRdq2lDk2GtIPtfPsiQassX/ zJ5Q== ARC-Authentication-Results: i=1; mx.google.com; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w7-20020a637b07000000b00542d2508ac8si4324501pgc.89.2023.06.05.10.54.20; Mon, 05 Jun 2023 10:54:35 -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; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230511AbjFERV6 convert rfc822-to-8bit (ORCPT + 99 others); Mon, 5 Jun 2023 13:21:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229791AbjFERV5 (ORCPT ); Mon, 5 Jun 2023 13:21:57 -0400 Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19B5D8F; Mon, 5 Jun 2023 10:21:56 -0700 (PDT) Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-974539fd9f0so91572066b.0; Mon, 05 Jun 2023 10:21:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685985714; x=1688577714; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wbfuCX3KeuduJF8G+hJppxoK/oLfHykbG+OR5oxUZ7w=; b=CThqsbtnRxYVXAwHJ2NDtAqfLp+z+mXHZXhF9zY6mv5eZOblKa7nsNb7eoUkXqF96/ 2OLZY2gv+Bdir2dBDyvhHpKpUIecYjjxx7EWQXq0ttzgEs7UlWVEWFjm2ggXST3XaOac St5Ffp7PMZLBpiAxY5gF2y51XaeJupgNyu9JtkAP+ot2B/n2GLzG2rRK0TKBDGS+R29R FH+6oETEJ3k5a/uVXNn05awHq2r6OoMVebAEZ7TYKpGifcvJII3QHsF5VqcdkHB45+aw emLFdDzWnGRvh2atUab5vNMSTvLycazYsHYGupMX9HhH6GtKQsw2EF6KarnRwPLfDEuI Al1w== X-Gm-Message-State: AC+VfDycJPR5WWXu+2lillQ4LOroEVhvEhh+fNDD2kNWy7vtQBN0j0HB kB3N9nNrhqAhv+HzjSverjH1dxXzUHw/Lfh5sIs= X-Received: by 2002:a17:906:5199:b0:975:bb7:5dc3 with SMTP id y25-20020a170906519900b009750bb75dc3mr7278685ejk.7.1685985714469; Mon, 05 Jun 2023 10:21:54 -0700 (PDT) MIME-Version: 1.0 References: <20230601221151.670-1-mario.limonciello@amd.com> <9d420293-f5af-7563-e7ec-1e42bd69bb8e@amd.com> In-Reply-To: <9d420293-f5af-7563-e7ec-1e42bd69bb8e@amd.com> From: "Rafael J. Wysocki" Date: Mon, 5 Jun 2023 19:21:43 +0200 Message-ID: Subject: Re: [PATCH v3] ACPI: resource: Remove "Zen" specific match and quirks To: "Limonciello, Mario" Cc: Chuanhong Guo , linux-acpi@vger.kernel.org, rafael@kernel.org, linux-kernel@vger.kernel.org, ofenfisch@googlemail.com, wse@tuxedocomputers.com, adam.niederer@gmail.com, adrian@freund.io, jirislaby@kernel.org, Renjith.Pananchikkal@amd.com, anson.tsao@amd.com, Richard.Gong@amd.com, evilsnoo@proton.me, ruinairas1992@gmail.com, nmschulte@gmail.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 Mon, Jun 5, 2023 at 4:46 PM Limonciello, Mario wrote: > > > On 6/3/2023 5:19 AM, Chuanhong Guo wrote: > > Hi! > > > > On Fri, Jun 2, 2023 at 6:12 AM Mario Limonciello > > wrote: > >> commit 9946e39fe8d0 ("ACPI: resource: skip IRQ override on > >> AMD Zen platforms") attempted to overhaul the override logic so it > >> didn't apply on X86 AMD Zen systems. This was intentional so that > >> systems would prefer DSDT values instead of default MADT value for > >> IRQ 1 on Ryzen 6000 systems which typically uses ActiveLow for IRQ1. > >> > >> This turned out to be a bad assumption because several vendors > >> add Interrupt Source Override but don't fix the DSDT. A pile of > >> quirks was collecting that proved this wasn't sustaintable. > >> > >> Furthermore some vendors have used ActiveHigh for IRQ1. > >> To solve this problem revert the following commits: > >> * commit 17bb7046e7ce ("ACPI: resource: Do IRQ override on all TongFang > >> GMxRGxx") > >> * commit f3cb9b740869 ("ACPI: resource: do IRQ override on Lenovo 14ALC7") > >> * commit bfcdf58380b1 ("ACPI: resource: do IRQ override on LENOVO IdeaPad") > >> * commit 7592b79ba4a9 ("ACPI: resource: do IRQ override on XMG Core 15") > >> * commit 9946e39fe8d0 ("ACPI: resource: skip IRQ override on AMD Zen > >> platforms") > >> > >> Cc: ofenfisch@googlemail.com > >> Cc: wse@tuxedocomputers.com > >> Cc: adam.niederer@gmail.com > >> Cc: adrian@freund.io > >> Cc: jirislaby@kernel.org > >> Cc: Renjith.Pananchikkal@amd.com > >> Cc: anson.tsao@amd.com > >> Cc: Richard.Gong@amd.com > >> Cc: Chuanhong Guo > >> Reported-by: evilsnoo@proton.me > >> Closes: https://bugzilla.kernel.org/show_bug.cgi?id=217394 > >> Reported-by: ruinairas1992@gmail.com > >> Closes: https://bugzilla.kernel.org/show_bug.cgi?id=217406 > >> Reported-by: nmschulte@gmail.com > >> Closes: https://bugzilla.kernel.org/show_bug.cgi?id=217336 > >> Signed-off-by: Mario Limonciello > >> --- > >> v2->v3: > >> * Adjust to drop heuristics entirely > >> * Drop tested tags > >> * Add more links and people to Cc > >> * Drop Fixes tag as this got a lot more risky > >> v1->v2: > >> * Rebase on 71a485624c4c ("ACPI: resource: Add IRQ override quirk for LG UltraPC 17U70P") > >> * Pick up tag > >> > >> Rafael, > >> Please hold off on picking this up until the majority of those on CC > >> have tested it on hardware they have and reported results. > >> > >> Everyone else, > >> Please test. If you have problems with this applied, please share > >> an acpidump and dmesg either on a bug or to me privately. > > I was expecting this patch to break my keyboard again but > > that didn't happen. I'm on the latest UEFI from Lenovo. > > By dumping ACPI APIC I found that there's this: > > > > [0C4h 0196 1] Subtable Type : 02 [Interrupt Source Override] > > [0C5h 0197 1] Length : 0A > > [0C6h 0198 1] Bus : 00 > > [0C7h 0199 1] Source : 01 > > [0C8h 0200 4] Interrupt : 00000001 > > [0CCh 0204 2] Flags (decoded below) : 0007 > > Polarity : 3 > > Trigger Mode : 1 > > > > I don't have a dump of the ACPI table from older UEFIs anymore. > > > > Tested on Lenovo Thinkbook 14G4+ ARA with the latest > > UEFI (J6CN45WW). > > > > Tested-by: Chuanhong Guo > Thanks! Yours is the one I was most worried about. I've applied the patch as 6.5 material, thanks!