Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp3897061pxb; Mon, 21 Feb 2022 07:54:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJyGyd9D/9oqjZLzM/sibeyGqzz7c6z/Nhkgoto7nUT/PesNn1Jgm86pz1ygjyd9jMgLluxi X-Received: by 2002:a17:902:7584:b0:14d:77f4:5598 with SMTP id j4-20020a170902758400b0014d77f45598mr19539645pll.1.1645458862901; Mon, 21 Feb 2022 07:54:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645458862; cv=none; d=google.com; s=arc-20160816; b=LfA6UKigSadOOZBd25Lx1OzI3nXiPVScT0KSUJDbnozd1V6xi4wv1soXLn6rBAZkGW OaDrNNTjDsVccSQW4Xlxec9pyNKxrv1Oh2JZSLiEAYDEZhPP1/WIwBVS5kDBZxvLHUvU hGsTHJqZ2YiYNUtQCt3zOqDQsB7iQCAYrCXjHCuf3NtwYhWGEkUkoBEETw2t6I3wTKXH TBFucU4ZmByYeMtRpa8piCiTJrxffugrKjadT1+QBwN6Rkh7D0klP0vQHL1Tb+8ylQc4 ARe0gUsxsHwjr17P+HrWMiuswkIVlWk+1RARKzIMIxq5tGEsA2Fcq4ys96e2jmKhPXf+ H4Jg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=jCw5woZ2XV2DKASfEp85eDuU2yTIcucLpkN3Rf0fKSk=; b=ewzNo1Ge4fNvKA2I//IKWMVEbPKTCv0YMggYVadl36CgRV+L9Ps25ZoLcBqyWaMpt6 sl9zLHd05bmvTIHqa0FnfcQ+fpGxHWJX0ge3YgzX6FxMh3Gt6fOJ58AnRxRYDAByfLAC SkMZSWFENhKhreELjHekAXmkiMAZnRFlcbCEpcIucJemfFujXvEaABHmQtf1IvRHwsge 0XZf2Qe9HdVdUU4zdNEeaJ6XLoftSYtnWY9+xyu6Tu/1pgPTpFnG7irFCW2chMIeilsT E8tER+riFLxzGcvnr3bBTsS1UBD5Ol8ehIKNEnxUENEMqP+ruIh91bfI5pMaInuS5hbd 5fqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jxrmUK7U; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u64si9999682pgc.486.2022.02.21.07.54.07; Mon, 21 Feb 2022 07:54:22 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=jxrmUK7U; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354028AbiBUKL6 (ORCPT + 99 others); Mon, 21 Feb 2022 05:11:58 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:55786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352990AbiBUJ5A (ORCPT ); Mon, 21 Feb 2022 04:57:00 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90C3B45530; Mon, 21 Feb 2022 01:24:51 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 3E753B80EB1; Mon, 21 Feb 2022 09:24:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6CBF1C340E9; Mon, 21 Feb 2022 09:24:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1645435489; bh=yZXY8AcCl5920w1ObP5o3jbBfBFqVp7ha7l5VdB4S+o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jxrmUK7U45Tt1b3cVEeECAMObbtsizKGwJ+Uk7cwp1mfo0Tz5VynRcaCu0A/h46sx gTXtGwMVMbArR9bBTezdekLHb2Dg21cJ3pfuhF4ZRs5Scia+5zKKYC3YV5iNOlnSFw AoIjH7XY+j0nLTRo5gbobOYFWPJpaeM8CKEoIf/0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Woody Suwalski , Hans de Goede , "Rafael J. Wysocki" Subject: [PATCH 5.16 149/227] ACPI: processor: idle: fix lockup regression on 32-bit ThinkPad T40 Date: Mon, 21 Feb 2022 09:49:28 +0100 Message-Id: <20220221084939.789054473@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220221084934.836145070@linuxfoundation.org> References: <20220221084934.836145070@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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: Woody Suwalski commit bfe55a1f7fd6bfede16078bf04c6250fbca11588 upstream. Add and ACPI idle power level limit for 32-bit ThinkPad T40. There is a regression on T40 introduced by commit d6b88ce2, starting with kernel 5.16: commit d6b88ce2eb9d2698eb24451eb92c0a1649b17bb1 Author: Richard Gong Date:   Wed Sep 22 08:31:16 2021 -0500 ACPI: processor idle: Allow playing dead in C3 state The above patch is trying to enter C3 state during init, what is causing a T40 system freeze. I have not found a similar issue on any other of my 32-bit machines. The fix is to add another exception to the processor_power_dmi_table[] list. As a result the dmesg shows as expected: [2.155398] ACPI: IBM ThinkPad T40 detected - limiting to C2 max_cstate. Override with "processor.max_cstate=9" [2.155404] ACPI: processor limited to max C-state 2 The fix is trivial and affects only vintage T40 systems. Fixes: d6b88ce2eb9d ("CPI: processor idle: Allow playing dead in C3 state") Signed-off-by: Woody Suwalski Reviewed-by: Hans de Goede Cc: 5.16+ # 5.16+ [ rjw: New subject ] Signed-off-by: Rafael J. Wysocki Signed-off-by: Greg Kroah-Hartman --- drivers/acpi/processor_idle.c | 5 +++++ 1 file changed, 5 insertions(+) --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c @@ -95,6 +95,11 @@ static const struct dmi_system_id proces DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK Computer Inc."), DMI_MATCH(DMI_PRODUCT_NAME,"L8400B series Notebook PC")}, (void *)1}, + /* T40 can not handle C3 idle state */ + { set_max_cstate, "IBM ThinkPad T40", { + DMI_MATCH(DMI_SYS_VENDOR, "IBM"), + DMI_MATCH(DMI_PRODUCT_NAME, "23737CU")}, + (void *)2}, {}, };