Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp369084rwb; Mon, 26 Sep 2022 13:36:10 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5XHC4K+xd9DJMz2qdCvBlLOQnkXPke+9EZFVwRbvT+0aDbLUGjKGc/CqZQtx0AwJmSyVb6 X-Received: by 2002:a65:6d89:0:b0:421:94bc:cb89 with SMTP id bc9-20020a656d89000000b0042194bccb89mr21243734pgb.129.1664224570013; Mon, 26 Sep 2022 13:36:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664224570; cv=none; d=google.com; s=arc-20160816; b=ypLpKlZF8+4ZtcTmYol01xVx9Isv4Qxsd6hyXQnGiC+YUdvK/MB3/eBv4y7G7EiGaR nZfX3Rd0LKzmhB3pklKePbOp6M2wApnULCsI3DX6xugkkLGohYf3Yh6pYZJg720HO7gY ObmeQUwVU7Sll6ah4GzFEpJie1HfRC3hT7EbVdxx5ztINKvgb5/bVmw54wxT58DVvbg+ ZtdC696M34L47eEAdLWic5IsQ3R5V/AFCGWV38Gzga8UTdy4Eqar25g1Xm/eGqtIUWoV WIvwYbfP9E+rOOHNLPJz01PZSZ1UsLgcrxjXRBjee4abWR7A8zmVoNWC5JznNf9as8iv piLQ== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=ih+czz67FojMQ73D2cimG3Ta6nksDQRJoZDoT6DzKIU=; b=fNrr1MoNI+MATj7MMEjCXwgpPhohqY87WuTGVWOA5aYzJHlpsV40ocfK8m8mXNOoB2 mY2C3HcQIu074gYndRBc5wflPtOg9WGqXDK37Nzabt1KLTDVA3sYyuQAqSE1kqixYy2L I3FdgorcET6ftTxAOkQyU/gP9x1++OQp0OT6BwxH3Ni2jqoAiASNTNXFMN2CH7Uu2xNv VYJW2umma6KvxOt8+H+w0AVw0dEp6Uou0lWfPuHKyamsJn+snDDamddDi5Gg2SIEqblt vJbxPAeonD1S5PIndxt8LuJaXfTqNqWP1jawA8osApLsgfT8pzq3kyS0ED1qSlCpAJmR NJ4Q== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p19-20020a637413000000b0042b23090b1csi19716751pgc.197.2022.09.26.13.35.43; Mon, 26 Sep 2022 13:36:10 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229573AbiIZT4B (ORCPT + 99 others); Mon, 26 Sep 2022 15:56:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230247AbiIZTz6 (ORCPT ); Mon, 26 Sep 2022 15:55:58 -0400 Received: from rhlx01.hs-esslingen.de (rhlx01.hs-esslingen.de [129.143.116.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A75B20F43; Mon, 26 Sep 2022 12:55:55 -0700 (PDT) Received: by rhlx01.hs-esslingen.de (Postfix, from userid 102) id 5F0A6223A1A3; Mon, 26 Sep 2022 21:55:52 +0200 (CEST) Date: Mon, 26 Sep 2022 21:55:52 +0200 From: Andreas Mohr To: K Prateek Nayak Cc: Peter Zijlstra , linux-kernel@vger.kernel.org, rafael@kernel.org, lenb@kernel.org, linux-acpi@vger.kernel.org, linux-pm@vger.kernel.org, dave.hansen@linux.intel.com, bp@alien8.de, tglx@linutronix.de, andi@lisas.de, puwen@hygon.cn, mario.limonciello@amd.com, rui.zhang@intel.com, gpiccoli@igalia.com, daniel.lezcano@linaro.org, ananth.narayan@amd.com, gautham.shenoy@amd.com, Calvin Ong , "Rafael J . Wysocki" , stable@vger.kernel.org Subject: Re: [PATCH v2] x86,acpi: Limit "Dummy wait" workaround to older AMD and Intel processors Message-ID: References: <20220923153801.9167-1-kprateek.nayak@amd.com> <9875e20e-8363-74ef-349d-d339eddb3cc2@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <9875e20e-8363-74ef-349d-d339eddb3cc2@amd.com> X-Priority: none X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_NONE,SPF_NONE 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 Hi, Am Mon, Sep 26, 2022 at 10:02:44PM +0530 schrieb K Prateek Nayak: > Hello Peter, > > On 9/26/2022 5:37 PM, Peter Zijlstra wrote: > > For how many of the above have you changed behaviour? > > The proposed logic does alter the behavior for x86 chipsets that depend > on acpi_idle driver and have IOPORT based C-state. Based on what > Rafael and Dave suggested, I have marked all Intel processors to be > affected by this bug. In light of Andreas' report, I've also marked > all the pre-family 17h AMD processors to be affected by this bug to avoid > causing any regression. > > It is hard to tell if any other vendor had this bug in their chipsets. > Dave's patch does not make this consideration either and limits the > dummy operation to only Intel chipsets using acpi_idle driver. > (https://lore.kernel.org/all/78d13a19-2806-c8af-573e-7f2625edfab8@intel.com/) > If folks reported a regression, I would have been happy to fix it for > them. Despite certain, umm, controversies, the discussion/patch activities appear to be heading into a good direction ;) This text somehow prompted me to think of whether STPCLK# [quirk] behaviour is a property of the CPU family, or the chipset, or actually a combination of it. Given that [from recollection] VIA 8233/8235 spec PDFs do mention STPCLK#, possibly a chipset does have a say in it? (which obviously would then mean that the kernel's quirk state decision-making would have to be refined) Minor reference (note 8237, not 8233): http://www.chipset-ic.com/datasheet/VT8237.pdf "STPCLK# is asserted by the VT8237R to the CPU to throttle the processor." (and many other STPCLK# mentions there) Greetings Andreas Mohr