From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from canpmsgout11.his.huawei.com (canpmsgout11.his.huawei.com [113.46.200.226]) (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 1810A1ACEDF; Wed, 25 Feb 2026 04:08:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=113.46.200.226 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771992492; cv=none; b=qo5Pv+5eULvHn5jR7exVvfdMkSzUiWa2U/mKinKg+nr846bfhG8H6cD9PXI9Q2adOEDVfEXf5Hg/9uSFoNVQSn6uVWM51fimcGf+sufK3SgLFM7GG5jzMiSLNAj2+gnu6u5oJlMSxW47kXPBtopX2LjWK/MXyo3C6uFqWLwBMJU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771992492; c=relaxed/simple; bh=pBG51dN+at3FTBWtB/0OKOsFiQ8+6HNAR0s0DNYu4qk=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=UENIObmIgmIQc8u43zJLRCjdXc08aR28WFj/nsb33NAqrIiFUtZci2vyw/Lm/Eh0H2jha+GYxQAbPqejGN1vkpHNitKV4BXWSfU29w4ve/Jr729yS+UrQ53skHlQu+dE2kTSsq3YxdUPTSjORKr3lrCFnZtAXExApFj6tXLyQ10= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=hisilicon.com; spf=pass smtp.mailfrom=hisilicon.com; arc=none smtp.client-ip=113.46.200.226 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=hisilicon.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=hisilicon.com Received: from mail.maildlp.com (unknown [172.19.163.127]) by canpmsgout11.his.huawei.com (SkyGuard) with ESMTPS id 4fLLY40WJ3zKm4B; Wed, 25 Feb 2026 12:03:20 +0800 (CST) Received: from kwepemf200017.china.huawei.com (unknown [7.202.181.10]) by mail.maildlp.com (Postfix) with ESMTPS id 61965402AB; Wed, 25 Feb 2026 12:08:07 +0800 (CST) Received: from [10.67.121.58] (10.67.121.58) by kwepemf200017.china.huawei.com (7.202.181.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Wed, 25 Feb 2026 12:08:06 +0800 Message-ID: Date: Wed, 25 Feb 2026 12:08:06 +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] cpufreq: cppc: drop invariance when FIE is disabled To: Penghe Geng CC: Viresh Kumar , Ionela Voinescu , , , , "Rafael J. Wysocki" References: <20260220224920.416602-1-pgeng@nvidia.com> Content-Language: en-US From: Jie Zhan In-Reply-To: <20260220224920.416602-1-pgeng@nvidia.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: kwepems200002.china.huawei.com (7.221.188.68) To kwepemf200017.china.huawei.com (7.202.181.10) On 2/21/2026 6:49 AM, Penghe Geng wrote: > CONFIG_ACPI_CPPC_CPUFREQ_FIE gates CPPC counter-based frequency > invariance support. When FIE is disabled, the CPPC driver does not > register a frequency scale source, but cpufreq_register_driver() still > enables cpufreq_freq_invariance for target/fast-switch drivers. > > Disable cpufreq frequency invariance after CPPC driver registration when > FIE is disabled. This avoids scheduler behavior mismatch when no > invariance updates are provided, which can cause major performance > regressions on sensitive platforms. Hi Penghe, IIUC, even if CPPC FIE is not there, cpufreq still updates frequency scales in cpufreq_freq_transition_end() and cpufreq_driver_fast_switch(), so the frequency scale number is still somewhat meaningful and the 'cpufreq_freq_invariance' static key reflects that correctly. Any numbers or evidence of that "performance regressions" so that we can understand the issue better? Thanks, Jie > > Export cpufreq_disable_freq_invariance() so modular cppc_cpufreq can call > it. > > Fixes: 1eb5dde674f5 ("cpufreq: CPPC: Add support for frequency invariance") > Cc: stable@vger.kernel.org > Signed-off-by: Penghe Geng > --- > drivers/cpufreq/cppc_cpufreq.c | 4 ++++ > drivers/cpufreq/cpufreq.c | 8 ++++++++ > include/linux/cpufreq.h | 3 +++ > 3 files changed, 15 insertions(+) > ...