Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp997183rwb; Thu, 22 Sep 2022 08:51:55 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5IZbNGB7j5jv5CJ0iIYF4jTe6WQA64FSiyjirkaO5uFjT3kgOCe+DpUm8NL8LC0wfYgzaD X-Received: by 2002:a05:6402:d05:b0:425:b7ab:776e with SMTP id eb5-20020a0564020d0500b00425b7ab776emr4169014edb.142.1663861915390; Thu, 22 Sep 2022 08:51:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663861915; cv=none; d=google.com; s=arc-20160816; b=gRZopUd9AU6GN1+Gi/qVYFhvMVSHOUwUzQzV25Azi64prNSvfHh7jaZ3QT11+6xBps khO6U+v89BAYtDZ9gOaaHix52itKjjEw12stPBM6rvpkzrRmKtTFltvc9e8IHJdB2mUE atVx3RT+5DAc5oRBq851hQSzCZ1qC5YoJ3fwVyGo+O9/YkHv4Ty2iuVs8FVWUMx6mGzX b7X5uEFWQufC0OsWGEh2u5Rhfkm/1JkQkqwRU/Bn3ewCgJrnaE4vBC2xN9rx6HntTkYw 81hXb59uUNgNYfcW02jCeIVWq10AYg2Cmy2FLvjtkoFiKQjRk1N70fCiceSmJfpiLXLx owkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=5wbLjt1ptS0e2F3zuisLshb8cZoB85PXpRGachu4Ne0=; b=dlvj1Me7VhqlJlU8KJ6u+o18WUK8xdEVv6CkSyA0oCyaFLqpdihhQaHWRm2pH+ROI6 UHDqiU1uNIiBCodEZnF5xiQHQ4JY2zoWCwg2ZqHWG6dVKijCkd5S4YJepiSWrhzCOQM/ txYIDsUezkNpL8ffGimjngrW3rfkzT21F0r5+ksK2CntXIc6a5UxH26wodZYHfS+Cp7B U7+8UMnHFvwURhFBLVVNXB1XMjBsB/yVpN2WpjtfwbMd3HbG/02c6PqM9uw2l+61HVI+ /iCcFcTfR6TL3mIkoNKvsujxjF8famuvm1MJf3e4XnaBTqWTLJryTXLlk1Kpkk0amt2L gvEg== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l6-20020a056402124600b004549143fdd7si5793557edw.151.2022.09.22.08.51.23; Thu, 22 Sep 2022 08:51:55 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231899AbiIVPVg (ORCPT + 99 others); Thu, 22 Sep 2022 11:21:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231603AbiIVPVe (ORCPT ); Thu, 22 Sep 2022 11:21:34 -0400 Received: from mail-qt1-f177.google.com (mail-qt1-f177.google.com [209.85.160.177]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FA1DF3716; Thu, 22 Sep 2022 08:21:33 -0700 (PDT) Received: by mail-qt1-f177.google.com with SMTP id g23so6508054qtu.2; Thu, 22 Sep 2022 08:21:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=5wbLjt1ptS0e2F3zuisLshb8cZoB85PXpRGachu4Ne0=; b=y3RyaXtiHQ5BP60qthd/OoFNkS/CdnnHOPcThOMbIqMPK8jkeS24FnprUXjbkGHq8M EUaNhhePt/20e79PcYEKNJzbcnF1z3SMPvxbiDsJpXYnKFqib680hvYkVmrUMkJg8epH SzJZ3ewiDQsKdrusLSfdJgymhH5o/nd/fcF1QlStlQoKl69WhsRC+IzscIRQVVY+w45B J1PMOz/mBsC/GMNKAXZaS18abjcaEIoWLBP9L2xvEl3MEd7QXQSFriJJkZS3d76zdeuA 3jYifiQF5+qfg8lXquED3qdGobGLtmFmP1sh121sJ/btba100Y0+75I7cmd/UysPmzdZ o3nA== X-Gm-Message-State: ACrzQf1gfLiaq+4Rwrchpsvu5xcBQ7N5S1nk5XerGIAIq3MmI1uea764 49EqTANGl/81vWP9NI+QOxjAUxSWHLqZF1ukv70= X-Received: by 2002:a05:622a:11c8:b0:35c:e912:a8ea with SMTP id n8-20020a05622a11c800b0035ce912a8eamr3273123qtk.17.1663860092476; Thu, 22 Sep 2022 08:21:32 -0700 (PDT) MIME-Version: 1.0 References: <20220921063638.2489-1-kprateek.nayak@amd.com> In-Reply-To: From: "Rafael J. Wysocki" Date: Thu, 22 Sep 2022 17:21:21 +0200 Message-ID: Subject: Re: [PATCH] ACPI: processor_idle: Skip dummy wait for processors based on the Zen microarchitecture To: Peter Zijlstra Cc: Borislav Petkov , K Prateek Nayak , Linux Kernel Mailing List , "Rafael J. Wysocki" , Len Brown , ACPI Devel Maling List , Linux PM , Dave Hansen , Thomas Gleixner , andi@lisas.de, Pu Wen , Mario Limonciello , "Zhang, Rui" , "Guilherme G. Piccoli" , Daniel Lezcano , ananth.narayan@amd.com, gautham.shenoy@amd.com, Calvin Ong , Stable , regressions@lists.linux.dev Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS 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 10:17 AM Peter Zijlstra wrote: > > 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. Well, it can be forced to use ACPI idle instead. > MWAIT also cuts down on IPIs because it wakes from the TIF write. Right.