From patchwork Wed Dec 21 15:52:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pratyush Yadav X-Patchwork-Id: 3183 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp3600234wrn; Wed, 21 Dec 2022 07:56:47 -0800 (PST) X-Google-Smtp-Source: AMrXdXsKkK8aN6iwk7IHS6SLr6/Lawb6vBL5azkCNvqLYUG3NaILgRxvy9HpSLnWmoJ4evHEvSJJ X-Received: by 2002:a17:906:d047:b0:78d:f454:ba46 with SMTP id bo7-20020a170906d04700b0078df454ba46mr1828591ejb.69.1671638207283; Wed, 21 Dec 2022 07:56:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671638207; cv=none; d=google.com; s=arc-20160816; b=I5WM7mohPMq+GWDqBwS2AilCecE7Xjkz6QEHGs7ydU4ol6FRjUeGLssZkgM6qvjpdE 81rNsVvNf5SK08eq7PhZXmzZjp6EjbCRJrmTmW89z2sPZmrsChNrgZquF/JHqmus825S +WnSf3ur14OFxCqHovayvF3OA9pmYjlX/BP7g73Wd2VKlQAzSD5x5Sa29cqodUX2WfCv zOjNFtq+Zzh28+Z7HU90cRGuUqZCeE4W0FhJypRoaPfkp/1GmldOc5y1DxV5QOyWdwqQ lYwwBM+LuhdYEhwOYwje5AQhVmTJjfOLEferPk/1m9LaALVX4zp8a1gpWcEhW3gzDytH VPJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=9YK/PrzS2uS8rT8WWzdNdUDB+lVs6VKHUehwJrBeLqk=; b=bW47IoIaceFdeXgKmygQBdT4aF3aVoYWiFQn3j4Q5++Eo6OtevIuso/bW9AY6HJWGE Jj82syxXAtoL0pwfa4BXs6f0eY07GAUGRZtLMMJnkbz4gCSAoBG4h9NKiduugyl6xRLb NVoljQ5XPgrnoPKeMgKRuWFtZkXiSPscaAGDrEZ5Kx6QYK7z2vKJoSLbkFQm9SIZQrjb OwY3+OtShxb9tL+AWna7mY2HoTL6Mn5+h2Ilf5GEepldC2AbaEmUm3eBhsXvHMbKw9Xz QIsRnqb1e/8ITEsv6voyCSNLiJWXH9nYP84i/kMA+6Y5IdLM+bBrcGfrmBHQYEApWckn tEjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.de header.s=amazon201209 header.b=e1UzpUf3; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hd16-20020a170907969000b007aeb99bbb99si15220667ejc.48.2022.12.21.07.56.23; Wed, 21 Dec 2022 07:56:47 -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=e1UzpUf3; 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 S233674AbiLUPw1 (ORCPT + 99 others); Wed, 21 Dec 2022 10:52:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233766AbiLUPwW (ORCPT ); Wed, 21 Dec 2022 10:52:22 -0500 Received: from smtp-fw-9103.amazon.com (smtp-fw-9103.amazon.com [207.171.188.200]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35FB71A396; Wed, 21 Dec 2022 07:52:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.de; i=@amazon.de; q=dns/txt; s=amazon201209; t=1671637941; x=1703173941; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=9YK/PrzS2uS8rT8WWzdNdUDB+lVs6VKHUehwJrBeLqk=; b=e1UzpUf3gWZdp5oBcj/RZ+J7d6Eull+5y5ftmBaAL79h73T8EDVSdcIz bZ7tZD+yrcRKIuKIDC/Ne9Ap5XX9UPayHx3Kawtu3Adf3qE1qc6TitnSb RcOKAgWFgDBlTcIkDoGuddWHXv9XJZRlWUrtuRZmtyTNH9etMwY4FulCE 0=; X-IronPort-AV: E=Sophos;i="5.96,262,1665446400"; d="scan'208";a="1085825342" Received: from pdx4-co-svc-p1-lb2-vlan3.amazon.com (HELO email-inbound-relay-iad-1d-m6i4x-b404fda3.us-east-1.amazon.com) ([10.25.36.214]) by smtp-border-fw-9103.sea19.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Dec 2022 15:52:13 +0000 Received: from EX13D47EUB001.ant.amazon.com (iad12-ws-svc-p26-lb9-vlan3.iad.amazon.com [10.40.163.38]) by email-inbound-relay-iad-1d-m6i4x-b404fda3.us-east-1.amazon.com (Postfix) with ESMTPS id 806BB863B5; Wed, 21 Dec 2022 15:52:10 +0000 (UTC) Received: from EX19D028EUB002.ant.amazon.com (10.252.61.43) by EX13D47EUB001.ant.amazon.com (10.43.166.250) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 21 Dec 2022 15:52:09 +0000 Received: from EX13MTAUEA001.ant.amazon.com (10.43.61.82) by EX19D028EUB002.ant.amazon.com (10.252.61.43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.1118.20; Wed, 21 Dec 2022 15:52:09 +0000 Received: from dev-dsk-ptyadav-1c-37607b33.eu-west-1.amazon.com (10.15.11.255) by mail-relay.amazon.com (10.43.61.243) with Microsoft SMTP Server id 15.0.1497.42 via Frontend Transport; Wed, 21 Dec 2022 15:52:08 +0000 Received: by dev-dsk-ptyadav-1c-37607b33.eu-west-1.amazon.com (Postfix, from userid 23027615) id 2B4AF20D08; Wed, 21 Dec 2022 16:52:07 +0100 (CET) From: Pratyush Yadav To: CC: Pratyush Yadav , "Rafael J. Wysocki" , Len Brown , Srinivas Pandruvada , Viresh Kumar , Robert Moore , , , Subject: [PATCH 0/2] intel_pstate: fix turbo not being used after a processor is rebooted Date: Wed, 21 Dec 2022 16:52:01 +0100 Message-ID: <20221221155203.11347-1-ptyadav@amazon.de> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-Spam-Status: No, score=-9.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_SPF_WL 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752839704528118904?= X-GMAIL-MSGID: =?utf-8?q?1752839704528118904?= 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. This causes problems when ACPI processor driver tries to set frequency constraints. See patch 2 for more details. Pratyush Yadav (2): acpi: processor: allow fixing up the frequency for a performance state cpufreq: intel_pstate: use acpi perflib to update turbo frequency drivers/acpi/processor_perflib.c | 40 ++++++++++++++++++++++++++++++++ drivers/cpufreq/intel_pstate.c | 5 ++-- include/acpi/processor.h | 2 ++ 3 files changed, 45 insertions(+), 2 deletions(-) --- 2.38.1