Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp3398715rwl; Tue, 27 Dec 2022 08:33:10 -0800 (PST) X-Google-Smtp-Source: AMrXdXsPB2Qi2ECe1OpKO418xvntWdxVInPuJoqrR+NIg8p/DAYH1qpHpAhy7JemdWpD/85R/O3q X-Received: by 2002:a17:906:280d:b0:7c1:2a0f:55b1 with SMTP id r13-20020a170906280d00b007c12a0f55b1mr20051665ejc.14.1672158790768; Tue, 27 Dec 2022 08:33:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672158790; cv=none; d=google.com; s=arc-20160816; b=fbP0KD7Q8iIcHpDcTfQKAMGl6XB5sVUi1dCUJXHQymacU4RPq90uR5qvDnkNWRpZzt 0WDhF98IQqp+aaeT/6ZX36wPB7NZbFuppv2qwahxvK0K/LRLhdrjXEWMRt9Pemv8R4a/ UFZE/kxAaGhGfF444cGNNDslkB9zfm1xnsrphnMznGCg0z6Ka/VNQl+b9LPPW+7lYYiy ZCovTLMNc/3ikR+UqSA4Z72tiunkH6oYzc5EdaV7PWJbDhDVj/wgUqtlEFt0trOHedJN qBiAroHeQf7qG3aXvqRxGTEcQeYC5pE4LoCgRxJ+WmrWXyjpOUg7ZZMgxpmALbLQ7Sf4 IgXw== 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=o4/jvC6LoaYDJ2i8XVmPXWzut9eNTEwxTOlFn2Vt940=; b=Hb9vVOoIKfg3vN5/mthgsxBFydp33ueUmTm1bvDGjDyvdKEEYnXFX8f4Ff2b6ZiKZ8 pAGoo2ydEESW+6OCiIJtwf5OTtRSm5dujezluItJIbwS7gHPCHvzpEwSrNEUfXdU1z1w Tg3DyzteeSQ+jY8PNNqvSxIwgTmPlz803K2s5vOpJoqbJnFqNzcd/+4P/r94LYIpNbBo K9k6oGBo/FCtGAjH0prKLiR6s9KUPd729hN7BFcuUjTXyRdQo8U9FsVcz9yY4DKEHgh1 tCcwF2aVKyMP5OtrVN4IkRm98ng/ih078Tm1vgI4rk0KO/DhwUkv8Aw9AW/46+GWKHlx axYA== 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 mp28-20020a1709071b1c00b007ae0ca417e4si11838786ejc.690.2022.12.27.08.32.55; Tue, 27 Dec 2022 08:33:10 -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; 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 S231167AbiL0QP0 (ORCPT + 67 others); Tue, 27 Dec 2022 11:15:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229588AbiL0QPY (ORCPT ); Tue, 27 Dec 2022 11:15:24 -0500 Received: from mail-qt1-f176.google.com (mail-qt1-f176.google.com [209.85.160.176]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D962ECFD; Tue, 27 Dec 2022 08:15:23 -0800 (PST) Received: by mail-qt1-f176.google.com with SMTP id z12so10737459qtv.5; Tue, 27 Dec 2022 08:15:23 -0800 (PST) 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:message-id :reply-to; bh=o4/jvC6LoaYDJ2i8XVmPXWzut9eNTEwxTOlFn2Vt940=; b=Cw7jkicRBv7smswkKIoL/N4qsUYHYTKAMB9IgmPEdAPWnSSb/V6b2hFLdWdycvdNo0 ulmOnYtqO2TsU/eLA369GW1LoU/BR8D+ajIYyUp6QfBYMdVtPwlZcpN8LM3YJuypHawj QKpHS34GUmbf0ZWM45A2GQPyLJWbNgdQuxAGXWhXPDlTHULFI28mYDosZ0u+yk7bbSuZ dRpHXryZfJdMsbAp56QOeS4C5/rD/6oxDORRG4Yr41MGExC049qcamMV2do7C4wlgCc/ oXsj9IB2nWM9ASRa9wzORZKRClN6PC25kCEIZbkpmW/iHgJ3rUNJczu6dsVS9OtB+uGV qpag== X-Gm-Message-State: AFqh2kpEu846pMFTtjN2QPIJ7nTrwbJ2hLlHtKZPbZJBremNrwqpx0kL dKDcqkQ/CQyC9yoMfIjh08eB9nqwNcSU8j3Itlk= X-Received: by 2002:ac8:749a:0:b0:3a6:8dd0:4712 with SMTP id v26-20020ac8749a000000b003a68dd04712mr933793qtq.411.1672157723029; Tue, 27 Dec 2022 08:15:23 -0800 (PST) MIME-Version: 1.0 References: <20221221155203.11347-1-ptyadav@amazon.de> In-Reply-To: <20221221155203.11347-1-ptyadav@amazon.de> From: "Rafael J. Wysocki" Date: Tue, 27 Dec 2022 17:15:04 +0100 Message-ID: Subject: Re: [PATCH 0/2] intel_pstate: fix turbo not being used after a processor is rebooted To: Pratyush Yadav Cc: linux-pm@vger.kernel.org, "Rafael J. Wysocki" , Len Brown , Srinivas Pandruvada , Viresh Kumar , Robert Moore , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, devel@acpica.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,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 Wed, Dec 21, 2022 at 4:52 PM Pratyush Yadav wrote: > > When a processor is brought offline and online again, it is unable to > use Turbo mode because the _PSS table does not contain the whole turbo > frequency range, but only +1 MHz above the max non-turbo frequency. That's because of the way P-state limits in the turbo range are handled by the given processor. Some of them restrict the P-state even if the limit is located within the turbo range and some of them don't (that is, requesting any P-state in the turbo range gives the processor a license to use the whole of it). > This causes problems when ACPI processor driver tries to set frequency > constraints. The problem is that acpi_processor_get_platform_limit() sets the limit to the frequency for all of the _PSS states including the last special one and it should update the QoS to "no limit" in that case.