Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp434571rwb; Thu, 22 Sep 2022 01:30:02 -0700 (PDT) X-Google-Smtp-Source: AMsMyM44qHnn0Zy5VgaMTgrks3gqNFr43lMaclVkaw7xiNNBSUUNuCJQi+M0XwV/jKHX7NBKd1N6 X-Received: by 2002:a17:902:8643:b0:178:a33f:aa29 with SMTP id y3-20020a170902864300b00178a33faa29mr2244875plt.29.1663835402450; Thu, 22 Sep 2022 01:30:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663835402; cv=none; d=google.com; s=arc-20160816; b=kFIupjWhfg+ZWpWSwddOLD1VK5V6Rt4S0n52kdFWxAQZUDHt3OckwQp1fF9TDzbulP pWhaL2BwJOlgSa3iq89VJYeiLcixFgJpqxZbMN/WBzStHgm0ChjuRd3GNEdW1HSYKOHb qJ1yHWi+rhA1iYmWw6Apel7aP5Sj0dDJFjYxMUm8Bnig0b0T2Y8mmWQHGvtpZZYn0QVG VaW/SZKA63dhYKK5BlCX3nVRZqw+Cl3aS/hCqpKMeLJvxjvj/fYwDk9s+JTmYHwvGkv3 BGDsy0plaxuYoPEDgx+hPc2bEmdNhTAS2I9kdHqO6FuiPpK8s4AsTwQNiycrCs/krwqY uOLw== 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=qFznKR8LE1hs5qx50v8ZXbR+2FR7aIXxVNAOIFHaJP0=; b=A9bX9cW1Dw9VhgIy3xXK4mMhFGptyIRbP3FgmLkec2hvrgvGF51H3Sohhp39vCL2hP rCKOMIKvndT/5ySE5sOCykE97WDZMjRON5JzH/i2GZtIb891sZiXjWKfAIiZHE6KJ2P3 0et/j/+WXxKcuMtAxRsFjVm+A5wO47L5rRQaq68fMWXyyGGANoi3QosQzn7pxHE2FKcx zzu82jXrsTPWhGyY6IrAWteZFx1vqI8oFICM1i07vPXAoDZhS/ZVIGT3ySJ3aWMOFhfw dmAbcZPRlzm3pZRBCVQPIcdWOM/NnV4r4PzUm7a3ymUJaHQ66Uki2a1XKyFu0nscnact zdtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=YrrcmJKN; 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 gz2-20020a17090b0ec200b001faf5333194si5369548pjb.12.2022.09.22.01.29.51; Thu, 22 Sep 2022 01:30:02 -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=@infradead.org header.s=casper.20170209 header.b=YrrcmJKN; 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 S230225AbiIVISE (ORCPT + 99 others); Thu, 22 Sep 2022 04:18:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230220AbiIVIR4 (ORCPT ); Thu, 22 Sep 2022 04:17:56 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC503CD1F6; Thu, 22 Sep 2022 01:17:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=qFznKR8LE1hs5qx50v8ZXbR+2FR7aIXxVNAOIFHaJP0=; b=YrrcmJKNHKRAJseBmsEUuL5P3G tfTSPLqLeBO5/WHziL3uhgDlFMhOTjewoCtJnvnm6bdXdgbH0xr1d+fTXzDrom99AjhX+LT0V+AcL 0xZC/tXBVWZmm+0O3PAC+Piucm3c27rkwOYeiRXVsa9gIxoL0JcOI5iVr0/uHa28/Gtovc3QLM/Wp GWT1bUpF3x/83YfLRs4nZW9i6azPMdGfQy+gNAoBsr/RQ2jBi7V7R9+vBfo4jt+qm+mq9apy5OORX 7RBPsus6LHbfNubhkk64o8Xtw+Y1YCjdrXjA3mq5T5NCoDdGA+4a4T2bJHHrU8T1vxXguuxsEXk4I iOuArs4g==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1obHOP-006s1C-U4; Thu, 22 Sep 2022 08:17:10 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 8C4413001FD; Thu, 22 Sep 2022 10:17:05 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 3A529200FBDFB; Thu, 22 Sep 2022 10:17:05 +0200 (CEST) Date: Thu, 22 Sep 2022 10:17:05 +0200 From: Peter Zijlstra To: Borislav Petkov 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, 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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 09:48:13PM +0200, Borislav Petkov wrote: > On Wed, Sep 21, 2022 at 05:00:35PM +0200, Peter Zijlstra wrote: > > On Wed, Sep 21, 2022 at 12:06:38PM +0530, K Prateek Nayak wrote: > > > Processors based on the Zen microarchitecture support IOPORT based deeper > > > C-states. > > > > I've just gotta ask; why the heck are you using IO port based idle > > states in 2022 ?!?! You have have MWAIT, right? > > They have both. And both is Intel technology. And as I'm sure you > know AMD can't do their own thing - they kinda have to follow Intel. > Unfortunately. > > Are you saying modern Intel chipsets don't do IO-based C-states anymore? I've no idea what they do, but Linux exclusively uses MWAIT on Intel as per intel_idle.c. MWAIT also cuts down on IPIs because it wakes from the TIF write.