Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp32153rwb; Thu, 22 Sep 2022 13:59:33 -0700 (PDT) X-Google-Smtp-Source: AMsMyM53CLdlWF+GEfpfHzjAVA56I0PWy2I/KZYxlJk3Ml1NOlK/C2iGNi0xpyvOmKLNgKD3fmZt X-Received: by 2002:a17:906:9b83:b0:730:b3ae:343 with SMTP id dd3-20020a1709069b8300b00730b3ae0343mr4585092ejc.670.1663880373369; Thu, 22 Sep 2022 13:59:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663880373; cv=none; d=google.com; s=arc-20160816; b=j0wuFUt7KRHkcAd65fRxaJBqaBNt1FmtV4S/VOAsP/eirAccpoiWdtfVsfGjEOLx1Z Fz5JMBNWOoPBHKXQ6YTMW8OKh+ZYphMu7U9G28j0hdg0OpukkfZJ67MYGZ8/xsAKt8kE 4ib3ezzaF/FOKo5ASQudMObqv8Ko8cAdG8zHmwVIL+9PtjtshRbfNZgMDtkVa6W3fcE4 /u9lR2n3E+p+/4W706dbcVwik1IXUqTLshFxx1XXCkp3ov1vfiiBpZgN7Gnniyig5DNo ALgaR6AavxjZrxnK2GWmAKDrP250hcXiSDFMxSd+INmCNeR5R9+cbWhG2176rwcZaxyR bTAg== 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=pSkb+zFH06iFGovyNnQvkQ6nuwswhNE8LL1k5ELmqYc=; b=Bk+WgdxYZleVM/wdGwVyCQ8anvQbDhEW21o+T6JyEZv0gHrIPLyUQQJckBpkWfW3Uf gk0FNTUdOXmGOwLdWbW1HKGAsumV+3AJMmM6l0A+a6nL4rvGVvWcO1FClCxyosFMvZGU +YerVnrUuXu/k9XnL30S+XVu4+brmdGJn1I/ZtX4MMN90Fci/VZm3F4M2e2c06RriSKr TrnjiUqV5Y7Ttvxjv8IYNtw8AVINF7JM9G+82QKjZRCMoXeiX6FvXHik4hmG4Rne8Dim YDXYImvOe+PPFolUjcKnr+tDk4q+trrJhIi0Dh4wrvxBZyQdIBVY6keo/AFIj4dfyjp+ XaGg== 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 ds14-20020a170907724e00b0077be1301563si4377733ejc.196.2022.09.22.13.59.07; Thu, 22 Sep 2022 13:59:33 -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 S232568AbiIVUK3 (ORCPT + 99 others); Thu, 22 Sep 2022 16:10:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229828AbiIVUK1 (ORCPT ); Thu, 22 Sep 2022 16:10:27 -0400 X-Greylist: delayed 1684 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 22 Sep 2022 13:10:23 PDT Received: from rhlx01.hs-esslingen.de (rhlx01.hs-esslingen.de [129.143.116.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CF1BC995D; Thu, 22 Sep 2022 13:10:22 -0700 (PDT) Received: by rhlx01.hs-esslingen.de (Postfix, from userid 102) id 17836277FBA8; Thu, 22 Sep 2022 22:10:21 +0200 (CEST) Date: Thu, 22 Sep 2022 22:10:21 +0200 From: Andreas Mohr To: Andreas Mohr Cc: Dave Hansen , 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, bp@alien8.de, tglx@linutronix.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> <20e78a49-25df-c83d-842e-1d624655cfd7@intel.com> <0885eecb-042f-3b74-2965-7d657de59953@amd.com> <88c17568-8694-940a-0f1f-9d345e8dcbdb@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: 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 On Thu, Sep 22, 2022 at 09:42:15PM +0200, Andreas Mohr wrote: > So one can see where my profiling effort went > (*optimizing* things, not degrading them) > --> hints that current Zen3-originating effort is not > about a regression in the "regression bug" sense - > merely a (albeit rather appreciable/sizeable... congrats!) > performance deterioration vs. > an optimal (currently non-achieved) software implementation state > (also: of PORT-based handling [vs. MWAIT], mind you!). I'd like to add a word of caution here: AFAIK power management (here: ACPI Cx) handling generally is about a painful *tradeoff* between achieving best-possible performance (that's the respectable Zen3 32MB/s vs. 33MB/s argument) and achieving maximum power savings. We all know that one can configure the system for non-idle mode (idle=poll cmdline?) and achieve record numbers in performance (...*and* power consumption - ouch!). Current decision/implementation aspects AFAICS: - why is the Zen3 config used here choosing less-favourable(?) PORT-based operation mode? - Zen3 is said to not have the STPCLK# issue (- but then what about other more modern chipsets?) --> we need to achieve (hopefully sufficiently precisely) a solution which takes into account Zen3 STPCLK# improvements while preserving "accepted" behaviour/requirements on *all* STPCLK#-hampered chipsets ("STPCLK# I/O wait is default/traditional handling"?). Greetings Andreas Mohr -- GNU/Linux. It's not the software that's free, it's you.