Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp4602497rwl; Wed, 28 Dec 2022 06:26:42 -0800 (PST) X-Google-Smtp-Source: AMrXdXvAfPCdtIo5y54lRL0ziX+303zuLmeUC9qxDfnxOgVntVs0dSMPeP7h+2pEsao6kvi3bpXt X-Received: by 2002:a17:902:d544:b0:192:757c:b111 with SMTP id z4-20020a170902d54400b00192757cb111mr12121035plf.21.1672237601895; Wed, 28 Dec 2022 06:26:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672237601; cv=none; d=google.com; s=arc-20160816; b=yhmDjs0AcQ28WWXJKnotqhgRjhnt6tDWtAHrEBahN6xtYgsJdJMCd21P5Lzgp07nlb luWurF47i8adUWtiq5rkcCHB7K/uhZVlq3D8MDMM2B5T9cgul/FPihmN57pJxxBKV4eA /KWN1FISr4ukm6DjzUiB5YzXWBXZU7JHTfsyTAK/xKu6AbD2mU+7TBrLInROxXT+H4er bT+tzzq4BszrBzEAjxkM+vJGXGHsyMRwSjyUtioTJzWnAlRwboQ/AdX1WRbuH1vfDaHG f01k1QxDKlTlG/F+Zugkxx+OIorKQsSFeDwr5NeJSdSubWOQOmXywFFstEIazHPm/ucU eO9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=h3umiEVN6xVCtWMnEfxoi68bgBtHL0Jz7Hqfcl2rLp0=; b=kBOX89FEZIRlJhHVzLmx2FMl83yf4rd9IsJCjdwZhUjtvC0tjdIptjDHbonIWG9hmQ JCHcwemx7bFl4J8MjR4dii1/7sUcO5NSxGJIa0e+rVHQfB+kmPNLzZD6HrVf9hsNSwGO ZYUfXJX2XoOnkchHHFHzsa3DcSCwQZEr+qHevi+FToLerZdeb7YGL3jWbYleMoFSPt24 cMKWertREY7IcTGjEBcwQcpP9s8rSGD9zr/QTHvXQ4jU85bliwuP13z3SP25Rwhz43CD x28o8Ebixo3iPpyUL3/QiMNHUfm/4zV+ZNTv3rr+EsW6LnR8h4C0V0h58VLFtOLGeH8j OH4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.de header.s=amazon201209 header.b=o8fqEczv; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ju4-20020a170903428400b001897a8ae7b3si15898303plb.296.2022.12.28.06.26.32; Wed, 28 Dec 2022 06:26:41 -0800 (PST) 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=@amazon.de header.s=amazon201209 header.b=o8fqEczv; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232731AbiL1OWr (ORCPT + 64 others); Wed, 28 Dec 2022 09:22:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229627AbiL1OWp (ORCPT ); Wed, 28 Dec 2022 09:22:45 -0500 Received: from smtp-fw-33001.amazon.com (smtp-fw-33001.amazon.com [207.171.190.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81C7BE0E6; Wed, 28 Dec 2022 06:22:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.de; i=@amazon.de; q=dns/txt; s=amazon201209; t=1672237364; x=1703773364; h=from:to:cc:subject:references:date:in-reply-to: message-id:mime-version; bh=h3umiEVN6xVCtWMnEfxoi68bgBtHL0Jz7Hqfcl2rLp0=; b=o8fqEczvvVEYX865STNEpv+k2wLQLrIYiEBstRMPQHQjBOCKJhB7K9WC G92phB8cgRdwD7Xfq8Z+TlT4c+9ewOWYw/f/SUzOjka3A9pnikDw1HtlS TK1WApGtK+rfw85qX/iOORBH1MUORpm2nu3mQzFUtXToQ++7zp3utJq93 Q=; X-IronPort-AV: E=Sophos;i="5.96,280,1665446400"; d="scan'208";a="251384519" Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-pdx-2b-m6i4x-f253a3a3.us-west-2.amazon.com) ([10.43.8.6]) by smtp-border-fw-33001.sea14.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Dec 2022 14:22:39 +0000 Received: from EX13MTAUEE002.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan2.pdx.amazon.com [10.236.137.194]) by email-inbound-relay-pdx-2b-m6i4x-f253a3a3.us-west-2.amazon.com (Postfix) with ESMTPS id A919282221; Wed, 28 Dec 2022 14:22:36 +0000 (UTC) Received: from EX13D36UEE002.ant.amazon.com (10.43.62.110) by EX13MTAUEE002.ant.amazon.com (10.43.62.24) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 28 Dec 2022 14:22:35 +0000 Received: from EX13MTAUEE002.ant.amazon.com (10.43.62.24) by EX13D36UEE002.ant.amazon.com (10.43.62.110) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 28 Dec 2022 14:22:34 +0000 Received: from dev-dsk-ptyadav-1c-37607b33.eu-west-1.amazon.com (10.15.11.255) by mail-relay.amazon.com (10.43.62.224) with Microsoft SMTP Server id 15.0.1497.42 via Frontend Transport; Wed, 28 Dec 2022 14:22:34 +0000 Received: by dev-dsk-ptyadav-1c-37607b33.eu-west-1.amazon.com (Postfix, from userid 23027615) id 49EE320D2E; Wed, 28 Dec 2022 15:22:33 +0100 (CET) From: Pratyush Yadav To: "Rafael J. Wysocki" CC: Linux PM , LKML , Linux ACPI , Srinivas Pandruvada Subject: Re: [PATCH v1 1/2] ACPI: processor: perflib: Use the "no limit" frequency QoS References: <12138067.O9o76ZdvQC@kreacher> Date: Wed, 28 Dec 2022 15:22:33 +0100 In-Reply-To: <12138067.O9o76ZdvQC@kreacher> (Rafael J. Wysocki's message of "Tue, 27 Dec 2022 20:51:43 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,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 Tue, Dec 27 2022, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > When _PPC returns 0, it means that the CPU frequency is not limited by > the platform firmware, so make acpi_processor_get_platform_limit() > update the frequency QoS request used by it to "no limit" in that case > and avoid updating the QoS request when the _PPC return value has not > changed. > > This addresses a problem with limiting CPU frequency artificially on > some systems after CPU offline/online to the frequency that corresponds > to the first entry in the _PSS return package. > > While at it, move the _PPC return value check against the state count > earlier to avoid setting performance_platform_limit to an invalid value. > > Reported-by: Pratyush Yadav > Signed-off-by: Rafael J. Wysocki Tested-by: Pratyush Yadav -- Regards, Pratyush Yadav Amazon Development Center Germany GmbH Krausenstr. 38 10117 Berlin Geschaeftsfuehrung: Christian Schlaeger, Jonathan Weiss Eingetragen am Amtsgericht Charlottenburg unter HRB 149173 B Sitz: Berlin Ust-ID: DE 289 237 879