From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from canpmsgout03.his.huawei.com (canpmsgout03.his.huawei.com [113.46.200.218]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DF3CF36604C; Thu, 5 Mar 2026 11:31:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=113.46.200.218 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772710298; cv=none; b=RhI9HBaqdo8V8lSkky026Yg1QIkGvtCleK9lPlqMMwxSfxLgFwRamP69uMV3KWqa7dYQ9Lh/QxHlOTBljkHV+a+YPecrvDEf3wIZ//kBV0RVncBUWq9kZkyMXDVuDUcLULElDvbxvE5QkqxITd2jWXhHII56PlYLIYxp9QI8Z/8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772710298; c=relaxed/simple; bh=fGxUmjOiAjMtm7gl9bij0Fg8Ep07iktXHhsNUWmIiFA=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=WnSaZYSHpojuqS0VRfqUu7CmMMGm9Gsz/CFLbuNe2Ltv3L7/J3bbz5DwJ6Ap6vWavJdySVXDgiKxzZxvaRzI92ys5q0fMg3NyhcxgOiUpuqY/roklJAQy7JCpt9WAf+cOOa2URG+DSl2NJMeWCCIT4pV7ayzB+7+3VV666U4YAA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; dkim=pass (1024-bit key) header.d=huawei.com header.i=@huawei.com header.b=Te+NaBVy; arc=none smtp.client-ip=113.46.200.218 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=huawei.com header.i=@huawei.com header.b="Te+NaBVy" dkim-signature: v=1; a=rsa-sha256; d=huawei.com; s=dkim; c=relaxed/relaxed; q=dns/txt; h=From; bh=hIilMkfMW5OXi/i89zqNVKLEHIH+Fd0h698nHDT0NSY=; b=Te+NaBVyHv9lt4VAWb5WLSj6ytfKfIuFWJaHa7anwFFJtU5TtddsVn8f7c9Da3gfQxFEzTkP7 M/CfRk30ghvXOnasi20OuFogXl6Oxo/kJPhJFXGIALamoZNotsEIe5qlyOnRK1WY8N2ckkzu20J 6FmYA3f0LpoB2wagJErc6K4= Received: from mail.maildlp.com (unknown [172.19.163.0]) by canpmsgout03.his.huawei.com (SkyGuard) with ESMTPS id 4fRS0j6x01zpStZ; Thu, 5 Mar 2026 19:26:29 +0800 (CST) Received: from kwepemf200001.china.huawei.com (unknown [7.202.181.227]) by mail.maildlp.com (Postfix) with ESMTPS id 45D1440561; Thu, 5 Mar 2026 19:31:31 +0800 (CST) Received: from [10.67.121.90] (10.67.121.90) by kwepemf200001.china.huawei.com (7.202.181.227) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Thu, 5 Mar 2026 19:31:30 +0800 Message-ID: Date: Thu, 5 Mar 2026 19:31:30 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] cpufreq: cppc: Clamp default minimum limit to lowest_nonlinear_perf To: Viresh Kumar , "zhangpengjie (A)" , Sumit Gupta , Jie Zhan , Pierre Gondois , Prashant Malani , Ionela Voinescu , CC: , , , , , , , , References: <20260213100633.15413-1-zhangpengjie2@huawei.com> <54f5795f-2c0b-49f2-a319-216c17657c0f@huawei.com> From: "zhenglifeng (A)" In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: kwepems500001.china.huawei.com (7.221.188.70) To kwepemf200001.china.huawei.com (7.202.181.227) Hi Viresh, I'd be happy to be a part of the reviewers list! Thanks, Lifeng On 3/5/2026 2:32 PM, Viresh Kumar wrote: > Added few more people > > I think we should updated MAINTAINERS with a list of reviewers or maintainers > for the CPPC driver. Who all want to be part of the reviewers list ? > > On 03-03-26, 20:03, zhangpengjie (A) wrote: >> Just a gentle ping on this patch. >> Thanks, Pengjie >> >> On 2/13/2026 6:06 PM, Pengjie Zhang wrote: >>> The ACPI spec defines 'lowest_nonlinear_perf' as the threshold for >>> linear performance scaling. Performance levels below this threshold >>> are typically inefficient and should not be used by default. >>> >>> Currently, the QoS minimum request is initialized to 0. This defaults >>> the performance floor to the absolute "Lowest Performance" state >>> instead of "lowest_nonlinear_perf", allowing the CPU to operate in >>> an inefficient range unnecessarily. >>> >>> Signed-off-by: Pengjie Zhang >>> --- >>> Changes in v2: >>> - Renamed the patch subject to better reflect the logic change. >>> - Updated the commit log to clarify ACPI spec details. >>> Link to v1:https://lore.kernel.org/all/20260116094555.2978887-1-zhangpengjie2@huawei.com/ >>> --- >>> drivers/cpufreq/cppc_cpufreq.c | 18 ++++++++++++++++-- >>> 1 file changed, 16 insertions(+), 2 deletions(-) >>> >>> diff --git a/drivers/cpufreq/cppc_cpufreq.c b/drivers/cpufreq/cppc_cpufreq.c >>> index 7e8042efedd1..4a3031d9fcf4 100644 >>> --- a/drivers/cpufreq/cppc_cpufreq.c >>> +++ b/drivers/cpufreq/cppc_cpufreq.c >>> @@ -333,9 +333,23 @@ static unsigned int cppc_cpufreq_fast_switch(struct cpufreq_policy *policy, >>> return target_freq; >>> } >>> -static int cppc_verify_policy(struct cpufreq_policy_data *policy) >>> +static int cppc_verify_policy(struct cpufreq_policy_data *policy_data) >>> { >>> - cpufreq_verify_within_cpu_limits(policy); >>> + if (policy_data->min == FREQ_QOS_MIN_DEFAULT_VALUE) { >>> + struct cpufreq_policy *policy __free(put_cpufreq_policy) = >>> + cpufreq_cpu_get(policy_data->cpu); >>> + struct cppc_cpudata *cpu_data; >>> + >>> + if (!policy) >>> + return -EINVAL; >>> + >>> + cpu_data = policy->driver_data; >>> + policy_data->min = cppc_perf_to_khz(&cpu_data->perf_caps, >>> + cpu_data->perf_caps.lowest_nonlinear_perf); >>> + } >>> + >>> + cpufreq_verify_within_cpu_limits(policy_data); >>> + >>> return 0; >>> } >