Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp5859566rwb; Wed, 21 Sep 2022 13:34:59 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4FeTyR+KJ9u3/zKbNVcZUX73dYaRYhpMnMqbId7jMMiV7N8rYUE8iI2ecdNFLC4Iit3OTl X-Received: by 2002:a17:907:7284:b0:780:2b33:7f18 with SMTP id dt4-20020a170907728400b007802b337f18mr53889ejc.620.1663792498993; Wed, 21 Sep 2022 13:34:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663792498; cv=none; d=google.com; s=arc-20160816; b=kPigpIQ0Mf9KSbYwicD4yQNJETjCghbiWyMz5HC2moNHBGEg567D+CgbeiYNjiDwbw oIL6vF+qGLG7+/VmcdUrIL2pm0OjEuTmOzJw+/lYiM1qTLfHLlCiZfM1duAQZET6b3mm vGGzdQFQWM+zOqVobY7PQn/F8jXOh1kCoQaFqttCzRfYQkf9GdASJAbDRKRhPMpz8gRd ga3Es1AZwDtwMbeCR/E680h73b1aBQ2Uaa0s6hGctTXd9mAgFgn0KlT7cL9SSpOWwiuo X9X4IKut9/wyV91Y4OZcXnkiOvEgFUabh6EymKNA5Gczam0AOAJ+TkJgxZsSTfsYV5mJ MfgA== 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:dkim-signature; bh=8DJCtm+AGQW+D9iEfDkNEgfP/xvG+kPWvU5Z7Kgh+Pg=; b=ZDtv1icCGBsYemTmCW9famB80cSGshOTBakuiUEFe7hxRvME04zo9UnGbwNuCovmLw bL+gyWsMmHqHb4GrTESWJUfqx9oLaVoc1OsQ4SLniV9+LNIYZFpSiml4iNP2V206++TY DhPW4n5keOJB2TmkW1vXKK9jLTmepoNeORLTv5Qp8ZmmmmIlB5Gc4dOm70rSrdwmHKih pprIgs2HchByQZVdnNPJ6fUHCf1NvfdCA5yF1EAS9ThpPiXJzDZFXNCMuYnYIB7i5B+/ Xwxq5svJj+4OPj96Vi0cxsnwzacFYNGf1VQemS6cmx2E31uAA6H2V1QNPhHnw7zIkV1q 2IcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=Zn2ZhEzd; 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=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hq25-20020a1709073f1900b00773b8e3d83bsi4042790ejc.323.2022.09.21.13.33.43; Wed, 21 Sep 2022 13:34:58 -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=@alien8.de header.s=dkim header.b=Zn2ZhEzd; 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=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229939AbiIUTwB (ORCPT + 99 others); Wed, 21 Sep 2022 15:52:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229473AbiIUTv5 (ORCPT ); Wed, 21 Sep 2022 15:51:57 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B8C58E988; Wed, 21 Sep 2022 12:51:57 -0700 (PDT) Received: from zn.tnic (p200300ea9733e77f329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:9733:e77f:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 6D68D1EC058B; Wed, 21 Sep 2022 21:51:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1663789911; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=8DJCtm+AGQW+D9iEfDkNEgfP/xvG+kPWvU5Z7Kgh+Pg=; b=Zn2ZhEzdpvYtf90dGnrIHXcsjl0swnVCCbqksE8wDq6uZ6VCOOHXGS8io3JvD50Oo3t14b GpmL/JJFiGwIVB2K0s54P7sfjRp+uE7AsNdJT0UTU7Wnt7TR86cO345jLw0lTwEawVT6KX aPvplQTwkYIbg6i3gvCFzjZ5AoFJY78= Date: Wed, 21 Sep 2022 21:51:51 +0200 From: Borislav Petkov To: Dave Hansen Cc: K Prateek Nayak , 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, tglx@linutronix.de, andi@lisas.de, puwen@hygon.cn, mario.limonciello@amd.com, peterz@infradead.org, rui.zhang@intel.com, gpiccoli@igalia.com, daniel.lezcano@linaro.org, ananth.narayan@amd.com, gautham.shenoy@amd.com, Calvin Ong , stable@vger.kernel.org, regressions@lists.linux.dev Subject: Re: [PATCH] ACPI: processor_idle: Skip dummy wait for processors based on the Zen microarchitecture Message-ID: References: <20220921063638.2489-1-kprateek.nayak@amd.com> <2b6143b6-9db4-05bc-1e8d-c5d129126f99@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <2b6143b6-9db4-05bc-1e8d-c5d129126f99@intel.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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 Wed, Sep 21, 2022 at 07:15:07AM -0700, Dave Hansen wrote: > In the end, the delay is because of buggy, circa 2006 chipsets? So, we > use a CPU vendor specific check to approximate that the chipset is > recent and not affected by the bug? If so, is there no better way to > check for a newer chipset than this? So I did some git archeology but that particular addition is in some conglomerate, glued-together patch from 2007 which added the cpuidle tree: commit 4f86d3a8e297205780cca027e974fd5f81064780 Author: Len Brown Date: Wed Oct 3 18:58:00 2007 -0400 cpuidle: consolidate 2.6.22 cpuidle branch into one patch so the most precise check here should be to limit that dummy read to that Intel chipset which needed it. Damned if I knew how to figure out which... -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette