From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=115.124.30.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796037242; b=sH9EXlVoPTALuEdJobZ45bHJFjDl/zAvL2Jt9IVvDbhevNVYCmyOrpU6nno7ElnieKFl re28u46lb+gadaiVyhjrhwVaYzdBS1kGB3K7/bvcaq95+7QVpnb8n+QFNzb/yjxReApV2 knh3WP1IR2D4HIDsOnbCqHNLIHw+HkSln4tSwKgbkDF7jJMrtl6CGNUpr/49mzBlKN+jG ccFv2xmAzosHIdVo7M7To12zXs/g/x59oeVeoAsd3iNWECd9nAvyLIMW580MBzsnpZIoA p3td54pY5n0zIUaMoBYNO66QaNagxT5S34AJ3FhTq8N+0mwaYk0gAj0X1AI8nc39lMw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796037242; h=DMARC-Filter:DKIM-Signature:X-Alimail-AntiSpam:Received:From:To:Cc: Subject:Date:Message-ID:X-Mailer:MIME-Version: Content-Transfer-Encoding; bh=LgmchIm3jVmnOU3JL2DajKDJ7xkWfuZj50ngajO/baI=; b=g5+vfllSjp6YWSPtOaZ0QWoNJtqdu3xzCkrK8jSUb77kWzsqk162tpFNtrtnS+EmMRCA Y875ioHju13pKN7qz7svJBwmppJBqe8iaNbxO1SKbd5Zaz0YDwtJwaR+VcAw9+IB9pAjN RHRk+3NHs2ABfPYRFQj4eo5So6poQiIEYCZehrWnUsTB3w1HcXWXGNEw5aYV+hnWj1/jf k7dZsnz1ESOL/isAy/Qp/iy9pyGP6iV2kmqd9SzOLPB4/oSGRYv6KcHy3vReFh1A9GcXt JzuNxpGpy6ihW9nuzG5c1acX6PRLaWvd4w2fnt3zG/6xl010Cer1kAlMKtwD/rJz6iA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass header.d=linux.alibaba.com header.i=@linux.alibaba.com header.a=rsa-sha256 header.s=default header.b=sodh4z+2; arc=none smtp.remote-ip=115.124.30.131 Received: from out30-131.freemail.mail.aliyun.com (out30-131.freemail.mail.aliyun.com [115.124.30.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 89D70606A325; Mon, 30 Nov 2026 11:14:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 89D70606A325 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.a=rsa-sha256 header.s=default header.b=sodh4z+2 DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1796037239; h=From:To:Subject:Date:Message-ID:MIME-Version; bh=LgmchIm3jVmnOU3JL2DajKDJ7xkWfuZj50ngajO/baI=; b=sodh4z+24HUd5nwNBK+j0GRq7LLcSZslS9wkh4lrNDbpA+c6FGOs9K4xsHJ9QFJcj47l6SYvNY7LSuLNlXKWBYadW3RbXDpbgWuu+Z4mS8KvdfOZCAMk833dL0in4I7STbm38Zv7egQwp6R7ELRPMD1d+T7QfNspq8CC6ZpH8FU= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R101e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam033037033178;MF=jiangtianfeng@linux.alibaba.com;NM=1;PH=DS;RN=11;SR=0;TI=SMTPD_---0XFk0Si._1796037230; Received: from h68d07384.sqa.eu95.tbsite.net(mailfrom:jiangtianfeng@linux.alibaba.com fp:SMTPD_---0XFk0Si._1796037230 cluster:ay36) by smtp.aliyun-inc.com; Mon, 30 Nov 2026 19:13:58 +0800 From: Jiangtian Feng To: rafael@kernel.org, viresh.kumar@linaro.org Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, zhongqiu.han@oss.qualcomm.com, christian.loehle@arm.com, ananthu.cv@oss.qualcomm.com, pierre.gondois@arm.com, zhangpengjie2@huawei.com, zhenglifeng1@huawei.com, zhanjie9@hisilicon.com Subject: [PATCH v5 0/2] cpufreq: Keep global boost enabled after partial enable Date: Mon, 30 Nov 2026 19:13:46 +0800 Message-ID: <20261130111348.363810-1-jiangtianfeng@linux.alibaba.com> X-Mailer: git-send-email 2.47.3 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This series treats global boost as a permission while preserving the existing error when no registered policy supports boost. The first patch allows the global setting to be recorded when a capable policy is inactive or offline. Only active, boost-capable policies are updated through policy_set_boost(); a complete lack of boost support still returns -EOPNOTSUPP, and real driver failures are unchanged. The second patch is the existing partial-enable change. If enabling at least one policy succeeds before a later failure, global boost remains enabled so that the valid mixed per-policy state remains locally repairable. Disable and no-success failure paths retain their previous behavior. Base: Linux v7.4-rc5 fe6ff8d5d675c01793b9f051d16055dd4aa75244 Changes in v5: - Add the inactive-capable preparatory change, with links to the original no-policy discussion and 77cf053b041f. - Rebase to Linux v7.4-rc5. - Keep the partial-enable code logic from v4 unchanged. - Link Pengjie's review below. Previous version: https://lore.kernel.org/all/20261127090513.910723-1-jiangtianfeng@linux.alibaba.com/ Pengjie's review: https://lore.kernel.org/all/744b868b-55af-4a12-86a8-f4fd5d132e6a@huawei.com/ Validation: - ARM64 defconfig W=1 build of drivers/cpufreq/cpufreq.o. - Complete ARM64 Image build; size 53,234,176 bytes, SHA-256 ce5519a4a9e498144908fc5d69f18376de23f8c80bc6ea2e2a424d35601e747a. - Static state-matrix and policy-list locking/lifetime review covering no-policy, no-support, inactive-capable, active success/failure, partial-enable and subsequent online behavior. - Independent review found no remaining High/Medium/Low code issue in the two-patch candidate. NOT_RUN: - CPU hotplug, suspend/resume, driver unregister/global-write concurrency, lockdep and KCSAN testing. - CPPC, ACPI, AMD and ARM hardware frequency/QoS testing. - Runtime fault injection for policy_set_boost() failures. Qoder, an AI coding assistant, helped analyze the review history, design and draft the preparatory change, and review the state matrix and failure paths. The submitter reviewed the resulting changes and is responsible for the final validation and submission.