Received: by 2002:ac8:3b51:0:b0:3f3:9eb6:4eb6 with SMTP id r17csp11480036qtf; Sun, 2 Jul 2023 13:00:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5xX3HTXTitOsnKPbZlfumFRiQDYDdSMrKqBmOoGrzRXz37cYAkbrDc/x+5I6LkqM78EMtF X-Received: by 2002:a05:6a20:2447:b0:12b:b9c0:aa61 with SMTP id t7-20020a056a20244700b0012bb9c0aa61mr9159642pzc.29.1688328032020; Sun, 02 Jul 2023 13:00:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688328032; cv=none; d=google.com; s=arc-20160816; b=p/EJj0RZpTf5/L64z/edSWA5spESXlBlV2gtWXr4Avl3PPp8eCqG7iotmkmuhRev8Q fx00sX7HJHKBX7S8vPeM1o7Xq+8LKcOVVlKta8ZXhDx5gsLBDqJoPKPWNl1lPfkeifxe OCEFNja4JfV9i2IlCQyAiemVFh9zIP/72/TER0MBSp4J4uSRh4Dx8z13MqO4305JIPsZ KMlqQsZt7sVF2kMnl52snRyHvo4OER3ml97E9KjBWG8fXTFk0YJv0Dd290vWGFWzaZBq h9MMyYxtB9jq7rH3IUMLVjQaUfPPQfoDKt3vYrlgfFGTFuLC2oz6wKDwaPCgmdx7IjSc /3Bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=FqDQzdzxFcT5NGBBVit26kYBo6+RbFYrlbxsr6XX4Lg=; fh=yItKHEt9DzIVmYVzkpk5NT7akoCyYkjm7rAmx8vwvTU=; b=j1CD42iWkQuI6A+RO618TSCxMT5CwTQFvoHzdo7i+43sPfTd46Nmwgu5rhrIP5hm5H ANKq0CqHZK4G40UNfK82AddJWdSPddwwc1vjZtPM3OhYOgyLbAUZANlcdhItT983KrV6 CTyLuLd9zopu+HsAt0ze+TYhDRJLciR26gyt1TFGyiOHWJhb4edDGTscDMx178anBeIu rI2xFw29Q2az7BRAraKwcOPQrKtnM8WQYzIupFzcLUkLWemxq3qSRDTqxspkOAHdli2w m0VaarTLyh3Q52HQazwx4xMfTP81a+1xwd0hwxKFE3CYmWw0btDbkdknBzHWOveMp6Bw zvzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DyTxgFxP; 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 bk13-20020a056a02028d00b00553867efc1bsi17506937pgb.636.2023.07.02.13.00.20; Sun, 02 Jul 2023 13:00:32 -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=@kernel.org header.s=k20201202 header.b=DyTxgFxP; 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 S233071AbjGBTzz (ORCPT + 99 others); Sun, 2 Jul 2023 15:55:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232152AbjGBTzo (ORCPT ); Sun, 2 Jul 2023 15:55:44 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73E5A10C4; Sun, 2 Jul 2023 12:53:32 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 982D060C90; Sun, 2 Jul 2023 19:51:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C65CDC433C9; Sun, 2 Jul 2023 19:51:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688327477; bh=KpDxafeLkyCrDzcFEjugA9ojmohCvN446LdowBxnwHk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DyTxgFxPRoKbxtRzuaIRZ6uuSSYhg1qfmSwnq/4ugGkEdsfpvr/PoyxmhKUrFjvSf s4n43npePVwLOu6bTkosJb8p/9SEY5X/lChQsOkoiLVf0rO2U5ztUDT+B55rFyk5rT qB4rbGxdcSAwlZfs3cMl6a+vPt3ZxOA//A2Kegaa8RYbCVWomYQVVQtrsRspwyKTSH 9uQdBa2ekjQ/Iy0knRSmYxxuk+0a5i/NtUDKL18lDufhtCRFK0jkMDmG1dsmNj5ezX w8gUIfDpjd4pl3OJoQN/6XSt4SU5FSTT33Jh+5yoAD4mESCIA5Zpdc5clPlnjHIT72 RhR3cDXZwp70w== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Mario Limonciello , evilsnoo@proton.me, ruinairas1992@gmail.com, nmschulte@gmail.com, Werner Sembach , Chuanhong Guo , "Rafael J . Wysocki" , Sasha Levin , rafael@kernel.org, linux-acpi@vger.kernel.org Subject: [PATCH AUTOSEL 6.4 08/12] ACPI: resource: Remove "Zen" specific match and quirks Date: Sun, 2 Jul 2023 15:50:53 -0400 Message-Id: <20230702195057.1787686-8-sashal@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230702195057.1787686-1-sashal@kernel.org> References: <20230702195057.1787686-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.4.1 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 From: Mario Limonciello [ Upstream commit a9c4a912b7dc7ff922d4b9261160c001558f9755 ] 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") Reported-by: evilsnoo@proton.me Link: https://bugzilla.kernel.org/show_bug.cgi?id=217394 Reported-by: ruinairas1992@gmail.com Link: https://bugzilla.kernel.org/show_bug.cgi?id=217406 Reported-by: nmschulte@gmail.com Link: https://bugzilla.kernel.org/show_bug.cgi?id=217336 Signed-off-by: Mario Limonciello Tested-by: Werner Sembach Tested-by: Chuanhong Guo Signed-off-by: Rafael J. Wysocki Signed-off-by: Sasha Levin --- drivers/acpi/resource.c | 60 ----------------------------------------- 1 file changed, 60 deletions(-) diff --git a/drivers/acpi/resource.c b/drivers/acpi/resource.c index 0800a9d775580..1dd8d5aebf678 100644 --- a/drivers/acpi/resource.c +++ b/drivers/acpi/resource.c @@ -470,52 +470,6 @@ static const struct dmi_system_id asus_laptop[] = { { } }; -static const struct dmi_system_id lenovo_laptop[] = { - { - .ident = "LENOVO IdeaPad Flex 5 14ALC7", - .matches = { - DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), - DMI_MATCH(DMI_PRODUCT_NAME, "82R9"), - }, - }, - { - .ident = "LENOVO IdeaPad Flex 5 16ALC7", - .matches = { - DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), - DMI_MATCH(DMI_PRODUCT_NAME, "82RA"), - }, - }, - { } -}; - -static const struct dmi_system_id tongfang_gm_rg[] = { - { - .ident = "TongFang GMxRGxx/XMG CORE 15 (M22)/TUXEDO Stellaris 15 Gen4 AMD", - .matches = { - DMI_MATCH(DMI_BOARD_NAME, "GMxRGxx"), - }, - }, - { } -}; - -static const struct dmi_system_id maingear_laptop[] = { - { - .ident = "MAINGEAR Vector Pro 2 15", - .matches = { - DMI_MATCH(DMI_SYS_VENDOR, "Micro Electronics Inc"), - DMI_MATCH(DMI_PRODUCT_NAME, "MG-VCP2-15A3070T"), - } - }, - { - .ident = "MAINGEAR Vector Pro 2 17", - .matches = { - DMI_MATCH(DMI_SYS_VENDOR, "Micro Electronics Inc"), - DMI_MATCH(DMI_PRODUCT_NAME, "MG-VCP2-17A3070T"), - }, - }, - { } -}; - static const struct dmi_system_id lg_laptop[] = { { .ident = "LG Electronics 17U70P", @@ -539,10 +493,6 @@ struct irq_override_cmp { 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 }, - { lenovo_laptop, 6, ACPI_LEVEL_SENSITIVE, ACPI_ACTIVE_LOW, 0, true }, - { lenovo_laptop, 10, ACPI_LEVEL_SENSITIVE, ACPI_ACTIVE_LOW, 0, true }, - { 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 }, }; @@ -562,16 +512,6 @@ static bool acpi_dev_irq_override(u32 gsi, u8 triggering, u8 polarity, return entry->override; } -#ifdef CONFIG_X86 - /* - * IRQ override isn't needed on modern AMD Zen systems and - * this override breaks active low IRQs on AMD Ryzen 6000 and - * newer systems. Skip it. - */ - if (boot_cpu_has(X86_FEATURE_ZEN)) - return false; -#endif - return true; } -- 2.39.2