From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1C878EE7FF7 for ; Fri, 8 Sep 2023 13:29:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243555AbjIHN3N (ORCPT ); Fri, 8 Sep 2023 09:29:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243557AbjIHN3M (ORCPT ); Fri, 8 Sep 2023 09:29:12 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D6C11BF4; Fri, 8 Sep 2023 06:29:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=/Su6vpBpZs72kzi34K7jBSnLd/tcZ/SFt4/dlVSkVFw=; b=K5PZdHmlnGTpKNg+y7jVbukJcH uQO1OK0E8cQ5n+0RVG+hmRDy6fc355K2oLNozEhbRgWA5b2Lz5VQ6bdtAnhES9aw1wf7B/NOYX9Nb vX97GLanY3hskCFL3Eb9/HmDMUR0QGecCYZ2OQUBIF7biwYG+0ZknHV8QMc+L48Pqp+xOY+yW3gJr CGHU9EsUtXM2keujz1Nz68bt4zPlk8jcVxAt6dQpXo6tg5zk4uUQE8yKBZKrr//qKllX/ZmCWekTM SAeHUhR+ZipNVRQJVq20HBSJdYqWwgIdU/zJ+tQ9JLNCdbvyngP/GKROCZ0PwPakE/ooBYN9Pj+kG DNiBgmMw==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qebXI-002Xef-2Z; Fri, 08 Sep 2023 13:28:38 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id BB248300472; Fri, 8 Sep 2023 15:28:37 +0200 (CEST) Date: Fri, 8 Sep 2023 15:28:37 +0200 From: Peter Zijlstra To: Meng Li Cc: "Rafael J . Wysocki" , Huang Rui , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, x86@kernel.org, linux-acpi@vger.kernel.org, Shuah Khan , linux-kselftest@vger.kernel.org, Nathan Fontenot , Deepak Sharma , Alex Deucher , Mario Limonciello , Shimmer Huang , Perry Yuan , Xiaojian Du , Viresh Kumar , Borislav Petkov , Wyes Karny Subject: Re: [PATCH V5 5/7] cpufreq: amd-pstate: Update amd-pstate preferred core ranking dynamically Message-ID: <20230908132837.GJ19320@noisy.programming.kicks-ass.net> References: <20230905015116.2268926-1-li.meng@amd.com> <20230905015116.2268926-6-li.meng@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230905015116.2268926-6-li.meng@amd.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 05, 2023 at 09:51:14AM +0800, Meng Li wrote: > diff --git a/include/linux/amd-pstate.h b/include/linux/amd-pstate.h > index 446394f84606..2159fd5693fe 100644 > --- a/include/linux/amd-pstate.h > +++ b/include/linux/amd-pstate.h > @@ -31,6 +31,11 @@ struct amd_aperf_mperf { > u64 mperf; > u64 tsc; > }; > + /* For platforms that do not support the preferred core feature, the > + * highest_pef may be configured with 166 or 255, to avoid max frequency > + * calculated wrongly. we take the AMD_CPPC_HIGHEST_PERF(cap1) value as > + * the default max perf. > + */ Invalid comment style, also seems randomly (mis)placed.