From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CD5133B47D6; Thu, 28 May 2026 09:09:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779959400; cv=none; b=tbZIvXBe8USJ6D+t5GaTDUgr94JdJxi+HhIoRI5eJBq3tLJjTjJP5BuztSUmeNNF202gyZpc1t+Ucrn+nb7l45yIj/Vi94SrZiGT9jY9zOj9hLuFRbwvyIcuF0IleC76q4+6dW9c1XwudqOgKU93q2qvIbsQ+lwznBeI4t7jMUs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779959400; c=relaxed/simple; bh=J5FaSO+cEOtu+6EIwYHYtqCJ4MxvY/FPB445RyrkOTo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KCxQk6Gfq5x13365y4EoQIxxrjqB+bdQXYgHRoXdrERylIdFDpjYkoF//SbSI1IWMvfMwetfaWl04B9yMGxeL63wo/2uUpzWh4OJV9dKuiZ/dkk/TOQwksmKsD4+usvc9+fbdgT3Q8pEheZgbDDUXJxmnvu+f1tG9hALjS2ew30= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=LIUGXYSs; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="LIUGXYSs" Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id CC21E43F7; Thu, 28 May 2026 02:09:45 -0700 (PDT) Received: from e135073.arm.com (unknown [10.57.24.196]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 964BF3F632; Thu, 28 May 2026 02:09:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1779959390; bh=J5FaSO+cEOtu+6EIwYHYtqCJ4MxvY/FPB445RyrkOTo=; h=From:To:Cc:Subject:Date:From; b=LIUGXYSsVHZuKAeqTc4elzp2IQHeZSSt182k0O9aY6Tw7xioH68W0LshyFlpMQapj vPlxZgOogvrcWVQjEDHFHgi2Lb7v/xYw7OftEvo5c5aQ/1QxENG5olHAwNaLhjG6gd xW3puTwGVyHeDqL5ZyYb78s/m1YqPrFgF+Nl/d0U= From: Pierre Gondois To: linux-kernel@vger.kernel.org Cc: Jie Zhan , Lifeng Zheng , Ionela Voinescu , Sumit Gupta , Zhongqiu Han , Pierre Gondois , "Rafael J. Wysocki" , Viresh Kumar , Jonathan Corbet , Shuah Khan , Huang Rui , Mario Limonciello , Perry Yuan , K Prateek Nayak , Srinivas Pandruvada , Len Brown , Saravana Kannan , linux-pm@vger.kernel.org, linux-doc@vger.kernel.org Subject: [PATCH v3 0/4] cpufreq: Set policy->min and max as real QoS constraints Date: Thu, 28 May 2026 11:09:02 +0200 Message-ID: <20260528090913.2759118-1-pierre.gondois@arm.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This patch is a follow-up from the serie: - [PATCH v6 0/4] cpufreq: Introduce boost frequency QoS https://lore.kernel.org/lkml/20260317101753.2284763-1-pierre.gondois@arm.com/ v3: - Added Reviewed-by tags - Return 0 on cpufreq_policy_init_qos() success instead of a random positive value - Moved policy->min/max assignment out of cpufreq_policy_init_qos() - Updated documentation v2: - Split the patch in multiple steps - Replace min/max -> min_freq/max_freq - Add references to commit 521223d8b3ec ("cpufreq: Fix initialization of min and max frequency QoS requests") to explain the intent of the patch - Update documentation (cpu-drivers.rst) - Set default policy->min/max values before the call to blocking_notifier_call_chain() - Create a new cpufreq_policy_init_qos() function to put all the QoS and policy->min/max logic inside. - Didn't add Sumit's reviewed-by as the patches changed a bit. v1: https://lore.kernel.org/lkml/20260423084731.1090384-1-pierre.gondois@arm.com/#t Pierre Gondois (4): cpufreq: Extract cpufreq_policy_init_qos() function cpufreq: Set default policy->min/max values for all drivers cpufreq: Remove driver default policy->min/max init cpufreq: Use policy->min/max init as QoS request Documentation/cpu-freq/cpu-drivers.rst | 9 +++- drivers/cpufreq/amd-pstate.c | 14 +++--- drivers/cpufreq/cppc_cpufreq.c | 5 +- drivers/cpufreq/cpufreq-nforce2.c | 4 +- drivers/cpufreq/cpufreq.c | 68 ++++++++++++++++++-------- drivers/cpufreq/freq_table.c | 7 ++- drivers/cpufreq/gx-suspmod.c | 2 +- drivers/cpufreq/intel_pstate.c | 3 -- drivers/cpufreq/pcc-cpufreq.c | 10 ++-- drivers/cpufreq/pxa3xx-cpufreq.c | 5 +- drivers/cpufreq/sh-cpufreq.c | 6 +-- drivers/cpufreq/virtual-cpufreq.c | 5 +- 12 files changed, 77 insertions(+), 61 deletions(-) -- 2.43.0