From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.53 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796294450; b=Ai0FioTkAHGvTJLrMzHOm4zd5TppbZrkG9LnamLfs4O343Y7mDTeJ7xdNHtsC3vfmCQC 1JBvHltWSeY7Z8z4HvvVTqETcugb+CESySnCxRSK8l+Wus2aSJCSkCpfBtEiSds/nGNTs KH56I9u3jB6lbfEcnOovZcd90XKYZb4KSexgN7uf4Wqs4anPuaSaeEen9gyTeDIwmxJ8y KOEPjNh+cfPgIR1d41XONhVGteTKL5vN4GeDiFz6hoxhngJuC2wZBV0A9csFUDeIR6Oev 4zQBJyFOXJu8aXWnK54n9+QfmtuSEvLNo9uv5t8YIzTFU/FWOeqAR5z7XbD+uya4qEw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796294450; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; bh=Q8fRW+CNCZjg3MgMkC9sWvv2RXuDKkJmFiObtWVcbxM=; b=KyAsl4R5LpGSg8KyTPDE791zz5SN8rMsRHmQr68IwClp+pO0ZqEbMc37ur3laUqjMu+a jqWPdggrIoT8qS0wmqimK9rFZ+TErmiFrkZWTe3SQMa5CsVOqlct7McgtkoctjH4LWNxO HZVHynjszHW+Ekew+Pc61LJx51aUek82KXDUTXcVTkFXj9kTRj83FVTk5NR1KpOSTeZHc UqfdXS2CXMlRu78zdtNJY5+DDGNSZ+S9Zmm9Fh0Q58jEo6fduL6t6vYG6d4rS307fywWU Huvmhr+XU9yjixWt2ER7jRUMWuv9IjRhbRMGBsbC8S9kRVKmku1bK2eHqV0x6OXbdBA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=o2ZkGgtp; arc=none smtp.remote-ip=74.125.82.53 Received: from mail-dl1-f53.google.com (mail-dl1-f53.google.com [74.125.82.53]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BC463606A680 for ; Thu, 3 Dec 2026 10:40:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org BC463606A680 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=o2ZkGgtp Received: by mail-dl1-f53.google.com with SMTP id a92af1059eb24-1b5786e099cso14745945c88.0 for ; Thu, 03 Dec 2026 02:40:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1796294449; x=1796899249; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=Q8fRW+CNCZjg3MgMkC9sWvv2RXuDKkJmFiObtWVcbxM=; b=o2ZkGgtpxl6GPXZ4TWmCNY6Cna2lAz6qL2CKeFClCPuTaF5Om5kphbCCBdMKpZMaRp y0KdDGa4RM2ZoDjO30Skp21ndS2RUU2HxdkB/QQe2tKcNES5zVV55dkmUVgBK5tD3b4y 3onl5cEbj3afsl4BzpEt62VWZikYJKbPFynkWOo8vcSYnkMHk/lqwgReNBMdGQu/7YX/ A8+k/+vMP7NcJe53syKTlbZCWj2F0fG6DQ0C2j2eKM66ykrFF49zgxhy7g2Ed9BqotzF /KdZcQbrVm5QDLCVfji7nf8JIKXb6eSyd/axR4XiW2FAL4x4h4NdDtlvYbIDCYllrDtz MF/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796294449; x=1796899249; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=Q8fRW+CNCZjg3MgMkC9sWvv2RXuDKkJmFiObtWVcbxM=; b=y1aZu6EuLL5lfqsd4GKCGdTDps/OHLap9u/L3dYWfodFHSjOzWF2fjzS7BbN/Vwxe7 i7Ge2cyV81ccf69/tKR8jtuQJI8/ulpRG09CaMdW24w+JeVM7DlKe7Oel5rCgO0Fd2Zy /nWK5308S9PYW0HO8rkW30lLzHF2lt5uJTfd4vOlujqsvaRv52oJm3dMm9nEcsYhYqui je1WbKiid8Xbjk8AaKUKvZGhMPaFPul1UNWem92oj2hz3uR+iRT7mnpRk2ekx6WOwVLR DZqa1ucqNaR2X2MTh90UIOpQnR5lovUdLQFexHMiGOcoDTvN8KCGfeN/NMa/DyJLGecP yfgw== X-Forwarded-Encrypted: i=1; AL+hErERD91tNPNetUSoPfN2uR/OBnEwemZMOjEQ08Y0NqIOC0LM8r8SlpQqp8yE8sW/Mj8nXNZwNxZ7nKMLTaM=@vger.kernel.org X-Gm-Message-State: APuU4Z9pb88qAIS1FJabZZdtl3qHZicE3/frGvJbsPgWv8T+1I+K5tIF QI56Kv/ymtCkWCfYqDdkzTZSxVpX87L3RuBhDkwd2+NfFWB6LuprntCFKd35lxPUdg4= X-Gm-Gg: AZFdTZcEGTbyfTDtw795w5QeQHBbSkPhkAC+OlfawfJe2Xsl9O/iFnQK8TrT+hz3cgo C1eKj6UN3f76GnPtAZ0B+KLeCPNe6DCLFIVzdrbYxOX2Q/96oLG86C+heQyCoXLatDuhPnqENz7 1SRonCSwmWB1HBHXk5FC2OiWwEa377fXmysgP73ZiMPFpE6oaxC/Xq6SAcXfMZc4Ac4AAt/sKfO /oLf0gmbn3lMn+aQ2YSd7md4Vk4HdfGDoDiUzTpWmpDE90XMrdeByCkmETwQ8rNrVzzJoml0093 On2t7FDOhy3t4lL2ruMjs7wQIdvPv206SipMxiNwp4E5ybwM3p++g+oAM0LbbXnGZcB04TKCx3a YSP0PFSktfcRjNVlCLHt1xIQVjPEwJ8+SuaWH+45Q+kGekJvRQXLunyjUEcdWoel3SF9XpwjyB7 Z8XSjtqDzWG97GV/LYu6n7gOW0DB94XOanXGs9aXAmLGo2/omKb+u3+LYPJZKEmwbfBaKHYed9M JLgv0pWOtxQkBWtnxsMGBwWD/eyFVGXqQoJBMFM1fBaLAymIFCy9zU1LxnkcCG82uX081WwJ4bn LICe1eJrreSfaX2IiAZ5vG8ClyeK/Q== X-Received: by 2002:a05:701b:4306:20b0:1b2:4c54:d976 with SMTP id a92af1059eb24-1b55ff0e104mr37945360c88.31.1796294448515; Thu, 03 Dec 2026 02:40:48 -0800 (PST) Received: from localhost ([122.172.83.31]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1b556840494sm100884561c88.12.2026.12.03.02.40.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2026 02:40:47 -0800 (PST) Date: Thu, 3 Dec 2026 16:10:45 +0530 From: Viresh Kumar To: Jiangtian Feng Cc: rafael@kernel.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, zhangpengjie2@huawei.com, zhenglifeng1@huawei.com, zhanjie9@hisilicon.com Subject: Re: [PATCH 1/2] cpufreq: Allow global boost updates without active capable policies Message-ID: References: <20261201023001.1131130-1-jiangtianfeng@linux.alibaba.com> <20261201023001.1131130-2-jiangtianfeng@linux.alibaba.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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261201023001.1131130-2-jiangtianfeng@linux.alibaba.com> On 01-12-26, 10:30, Jiangtian Feng wrote: > Global boost grants permission to use boost; it does not require boost to > be active on every policy. Saving that permission should not depend on at > least one boost-capable policy being active when the global knob is > written. > > Since commit 77cf053b041f ("cpufreq: Return -EOPNOTSUPP if no policy > supports boost"), cpufreq_boost_trigger_state() returns -EOPNOTSUPP when > the active-policy loop has no boost-capable policy, and store_boost() maps > that error to -EINVAL for the global sysfs write. Besides rejecting an > otherwise valid preconfiguration, this prevents users from disabling boost > before a capable policy becomes active when a driver starts with boost > enabled by default. > > Initialize ret to 0 so the no-active-capable-policy case saves the > requested global state and returns success. Continue to call > policy_set_boost() for every active, boost-capable policy and preserve > all real callback failures. This intentionally changes the no-policy > result introduced by 77cf053b041f. > > Link: https://lore.kernel.org/all/467b9ef5-1fc3-4771-9895-363e815670c7@huawei.com/ > > Qoder, an AI coding assistant, helped analyze the default-enabled case, > review the active-policy/error semantics and draft this change and > description. Runtime hardware and hotplug behavior remain subject to > final review and validation. > > Signed-off-by: Jiangtian Feng > --- > drivers/cpufreq/cpufreq.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Acked-by: Viresh Kumar -- viresh