Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7209430rwb; Tue, 6 Dec 2022 02:42:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf636jYuQEATSbd0P+hyaMXGq1QObRQhXO7nXbosgjFvLUH8PI4ho8il4D/ePTuC9OjHrgAJ X-Received: by 2002:aa7:d80d:0:b0:46b:7645:86a9 with SMTP id v13-20020aa7d80d000000b0046b764586a9mr28262469edq.311.1670323362763; Tue, 06 Dec 2022 02:42:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670323362; cv=none; d=google.com; s=arc-20160816; b=1AxnfbdQJzO9KksOazPaCFTnDqeuRffNMy7uxxEBH0qPsSizcaCrJe6EK+O240SB0C 0sCHxAa9FHLXDFrySabOc3saCDZZNugsrM87MergUkphdbEjmEMhhz63mWlA2L7pD+EU WCBov9rGXu95WtuBNb76j7JN8xtAWBAEkD9vI7BC2zsso/76FMbuxlZY5ePV6mPdrwhj M9fZDlnTEO5zVY+gLvyMo7WE2M0Y1XSKTxrtRdbZjx2v9NIcVtzN2Gyydwniywt9JZfi CE1RXbQmVJr+MIV4gpnsuE3XnjGCYg4UNlMzDdmYzOAUwVMtN5jVHDZ//3b4S2n4f5dx yf2g== 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=sl4e+RriZSOsyS4K085UmZxwSNVZxIS3S1lRJkgBgQI=; b=yHgzirZ4KQwUw2EJ7h8WY+AEhj+GOK7uwra0/PC3GBw66cpk/QlU2xNhQy+wS7YAsP 0+zPtfMPRojmgIgRizkn98iGcCcsLOhfNQXO67NWXp+C2EIRO36kXfL+6S7Nq2KgxJRe 8gpQUHPjm+q56OjLHQIPxLcCKn8EN3xjo4T/8TxSTBdq2ZEc7j0DP9xNevUFBZBlxPzh 1KCyylaA6zfX81GAh/2zkzuPiG378m034k8KjvOnRsdJK3WH7LFMhKLD3vSdlvSugCQC qzPl8W6SDLBR172lt/T2dC3VE4tyQ9prQ8OvR8O5t7GUpAii79SAxF88A7+AR0xU6Xd9 QUCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=pRzA9pRi; 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=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qa37-20020a17090786a500b007839bfdaa33si14680019ejc.358.2022.12.06.02.42.18; Tue, 06 Dec 2022 02:42:42 -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=@alien8.de header.s=dkim header.b=pRzA9pRi; 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=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231183AbiLFKUL (ORCPT + 80 others); Tue, 6 Dec 2022 05:20:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229867AbiLFKUJ (ORCPT ); Tue, 6 Dec 2022 05:20:09 -0500 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2312B658A; Tue, 6 Dec 2022 02:20:08 -0800 (PST) Received: from zn.tnic (p200300ea9733e7ff329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:9733:e7ff:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id B64801EC064F; Tue, 6 Dec 2022 11:20:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1670322006; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=sl4e+RriZSOsyS4K085UmZxwSNVZxIS3S1lRJkgBgQI=; b=pRzA9pRiF2c0RJHu4ytcZU/OtYCGeVKjbSufHl9zu/Lg71N/HsKRNiuffGaoMtBDDvkU9u YbafEcQpF4Bf7Py9x2Zf9Gd+zb51B/OEz+Y4VZu0NBC/dexDiNV2n2bL/n+tsJm7ejqw07 mSxtk4lJXpoLJFMrWc1iPcG24Y1TPYs= Date: Tue, 6 Dec 2022 11:20:02 +0100 From: Borislav Petkov To: stuart hayes Cc: "Rafael J . Wysocki" , Viresh Kumar , Kyle Meyer , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] cpufreq: acpi: Only set boost MSRs on supported CPUs Message-ID: References: <20221205175744.9746-1-stuart.w.hayes@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Mon, Dec 05, 2022 at 12:07:05PM -0600, stuart hayes wrote: > > > On 12/5/2022 11:57 AM, Stuart Hayes wrote: > > Stop trying to set boost MSRs on CPUs that don't support boost. > > > > This corrects a bug in the recent patch "Defer setting boost MSRs". > > > > Signed-off-by: Stuart Hayes > > --- > > drivers/cpufreq/acpi-cpufreq.c | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > diff --git a/drivers/cpufreq/acpi-cpufreq.c b/drivers/cpufreq/acpi-cpufreq.c > > index bb58175a8d40..a7c5e312340e 100644 > > --- a/drivers/cpufreq/acpi-cpufreq.c > > +++ b/drivers/cpufreq/acpi-cpufreq.c > > @@ -888,7 +888,8 @@ static int acpi_cpufreq_cpu_init(struct cpufreq_policy *policy) > > if (perf->states[0].core_frequency * 1000 != freq_table[0].frequency) > > pr_warn(FW_WARN "P-state 0 is not max freq\n"); > > - set_boost(policy, acpi_cpufreq_driver.boost_enabled); > > + if (acpi_cpufreq_driver.set_boost) > > + set_boost(policy, acpi_cpufreq_driver.boost_enabled); > > return result; > > My apologies--adding Boris, I forgot to put him on the "to" list. Yap, that does it. Reported-by: Borislav Petkov (AMD) Tested-by: Borislav Petkov (AMD) Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette