From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=115.124.30.97 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796092200; b=2BDcHDkkZh14d3nWxYRqqGHalO/n5Y/GMLHCO9PVssvktsaSgmHtyHnCRvZGm/q3+tIe snjQr8kgut1xnGYBoQutkkD+wxQnleeDBymHsU+qHhmgZlZkmRWkpRXDFlFqolKJnDK6G /s8yJiXe+zqz2rJQOJYoOfpEoql3WPE4PIzDAtxgZTkINfQSS1EMBfXohm72awzSHyg5B IU8Nz5YXfgMFCz3Cf8D1sgRTQZjLP6h/NZferOxAmqReyYj27Qx0ug7ffxF38UaTdPIha rVPa6pdacxf3o9alfIJI1opyhvtPBPwfrvAsiM4yx/aFIEppyc9dEOowWLH4HHTIauA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796092200; h=DMARC-Filter:DKIM-Signature:X-Alimail-AntiSpam:Received:From:To:Cc: Subject:Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; bh=aKEZdIuChplI7Xw+l1p105jVGL/l0Iw9UIuDS8T+u1k=; b=24FiwWtvsdJNEivEeqeanHwgIRijh7+Aek7D3t0ky/hik600GDS9/Td24k6DizctVSoB 0vKeZtwXqLkkXm5JmEKLM8QJiAbBg8evc1wPPsPJdjaMqxadwTtzdWx5LUwOAIz3tratJ FdIzhZVE6X0xqlgBUt7oeN5CebzyN+GB8SfI2abF8S4bIQUyQoIO9oILJpse3HFe6YRK9 qs6o1l1RqOQpDVkKq0ubonJ+M5D0FZJuEKSHUbrHoxOYBXtKh3jFE6GV0N3nBxhRLBHKg Ckttzr6xJsFliRHNjuAjQ/4YW2ZW6GKUYU8P+E5qcIzc/KaTHGoU79/uCMzpmiQ3c4Q== 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=sUVkEcNS; arc=none smtp.remote-ip=115.124.30.97 Received: from out30-97.freemail.mail.aliyun.com (out30-97.freemail.mail.aliyun.com [115.124.30.97]) (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 DF968606A31A; Tue, 1 Dec 2026 02:29:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DF968606A31A 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, unprotected) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.a=rsa-sha256 header.s=default header.b=sUVkEcNS DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1796092196; h=From:To:Subject:Date:Message-ID:MIME-Version; bh=aKEZdIuChplI7Xw+l1p105jVGL/l0Iw9UIuDS8T+u1k=; b=sUVkEcNSdtWBZJlp+sKvtG7SNpXV7R+L7pyxMQ/+GDRgt0OWpBj5QkaovJvyFjfgldSDtJ3Ahh9mJelHwR2cZddu855aoTCagRmNmyfZCD/UW+wzZj4InZO+z7VDNfFazaP4kR4OtVO9bjCqZDt1/h9g4uXLqbENsNnZ6txV+OE= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R451e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam033045144198;MF=jiangtianfeng@linux.alibaba.com;NM=1;PH=DS;RN=11;SR=0;TI=SMTPD_---0XFrobbM_1796092186; Received: from h68d07384.sqa.eu95.tbsite.net(mailfrom:jiangtianfeng@linux.alibaba.com fp:SMTPD_---0XFrobbM_1796092186 cluster:ay36) by smtp.aliyun-inc.com; Tue, 01 Dec 2026 10:29:55 +0800 From: Jiangtian Feng To: zhangpengjie2@huawei.com Cc: rafael@kernel.org, viresh.kumar@linaro.org, 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, zhenglifeng1@huawei.com, zhanjie9@hisilicon.com Subject: Re: [PATCH 1/2] cpufreq: Allow global boost updates with inactive capable policies Date: Tue, 1 Dec 2026 10:29:43 +0800 Message-ID: <20261201022943.1130812-1-jiangtianfeng@linux.alibaba.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <467b9ef5-1fc3-4771-9895-363e815670c7@huawei.com> References: <467b9ef5-1fc3-4771-9895-363e815670c7@huawei.com> 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 Hi Pengjie, On Mon, 30 Nov 2026, Pengjie Zhang wrote: > With 5785772fe9e6 ("cpufreq: CPPC: Enable boost by default") [1] in > linux-pm/linux-next, the global boost knob can start at 1 on a CPPC > system where no registered policy supports boost. With the v5 core > changes applied on top, writing 0 would still return -EINVAL and > leave the knob at 1. Thank you for pointing out the default-enabled case. I agree that this makes the v5 no-support error problematic: userspace cannot record its intent to disable boost before a capable policy becomes available. > I understand that 77cf053b041f deliberately made this an error. > Since the global knob controls permission to boost, could we let > userspace write either 0 or 1 and read that value back even when > no policy supports boost? A successful write of 0 must leave boost > disabled on every active policy that supports it. Yes. I will simplify patch 1 in v6 to initialize ret to 0 and restore the active-policy loop, removing the any_boost_supported tracking. This intentionally changes the no-policy result introduced by 77cf053b041f. Active, boost-capable policies are still updated through policy_set_boost(), and real callback failures still return an error. In particular, a write of 0 does not report success if updating an active capable policy fails. The second patch remains unchanged and still restores the old global state on a failed disable. I have also carried your Reviewed-by on patch 2. Thank you for the review. Best regards, Jiangtian