From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D9469219A76 for ; Fri, 24 Jan 2025 08:58:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737709114; cv=none; b=bKlTslAUBZTXYA7dsSxejR+SZ6hc/UjRpovRXFm66kyNTAfhRVw5DIsaz2avITooXLfDwgIvviqG1bRYGLVcB8y7kYDLq6q2OAI8llhrJzvFkqtxC9hIyleybgBNhYDX0Miw0CMYSs6FGAKCY0Bw63g/2tjAPZunPqByFYrLJe0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737709114; c=relaxed/simple; bh=fNI4UdDtZI4AVcTD8TnjHEnynSXd6Y+lcwnBOlUgb0k=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=H4c82N00ojWQYSFpD3YJatCZenR3vlhkvjXBmgRi0XyfvIRGsX+QLmf0kNhNbFZDxm0miEitfnjkkhgqFZVAgScJso1r8XBkFVlTyJEjpT0NnjubMg1zioyucV8Q9CCUGol70pH3Wo2YRLHwX3Vtk6sx9U4Uqb+rwLmH9SmlpD4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=qiupq5x5; arc=none smtp.client-ip=209.85.214.181 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) header.d=linaro.org header.i=@linaro.org header.b="qiupq5x5" Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-2163dc5155fso33170305ad.0 for ; Fri, 24 Jan 2025 00:58:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737709110; x=1738313910; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=a4AqRX4jgpQUQupuoQFqpmYTbRVzBhfX6O9GAy7aKKQ=; b=qiupq5x5QB9lQevzihRGuBXv0IfAAG2rlaNizZukib61T7eXb9WMGdVg8sHx3prPyF pyALGugpO90wpX+VaZdylLtGFOvcgTro9iWGcc0WHV6/lrgkQZW0N2/o1YVYtaudmZxT ftm0jDg57UibfG6PZfifqu7fLPSSGy7P83EOarbhJwSpqCEn5DC5qU13poN99eJINn0e idbknwz4Dn8uwZ+tuCKNgGPwaiD8hEh8ikaLCFO+kPyaDMxMtgjLsm7vIx0FI/XGXGx1 CjNeU1oUtS06Rc8zc4t9RYL+Xf9unljTMXzuL8AqMOSU311AbW1urLdye61TVSungj2H GTUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737709110; x=1738313910; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=a4AqRX4jgpQUQupuoQFqpmYTbRVzBhfX6O9GAy7aKKQ=; b=p4AYQWwfjN2ISAmZqE72tKAzyPZM2rd9IpVYcsvVNhLVgv7wJLsjHx/3wvBrY/kDjd R2fUhj80D1JbWuff5cE9fpe7uLXJONbY81/j708NDKlLiYeY1mvHItlcBqnbpZ9TOpIj bqBqo0ebcdotyjK32Hw6vAT7IcIYIM2OCREd1Hf30YnTSxqaWgvFDITNbxj1btMBwFYG NOf0PL0CYboeWdRbXBpIqMW0tQA2ltVngxnjyxcdBmOpDH9UAwj2PVk5hZTY75Jnj415 Dn+mLbD57lq9q7x3f2VnnSYliVKpIGCU2f598xcZQgc+dd7I/704W3T1eTts/3RIrvpJ y7AA== X-Forwarded-Encrypted: i=1; AJvYcCVlKbELxxiC43rr0l3UoYYazJoVUfORBdnsdRwhNOcg0lXZC2Hewv12VtgCPdZEpA1qPMVCTm+ABdlqQN8=@vger.kernel.org X-Gm-Message-State: AOJu0Yy/yTTFgFVn00yyymXB0iumlls1C9JdzJdV+lcDrSRud7RrF931 dvhZUQzbpEgy7q0EqDccAPtLzvj+bN+povl+BuYIJqaacgNhjtIKk43c5fLx7BU= X-Gm-Gg: ASbGnctfgxnWi4mEPFAYUhlxQ/IFYsngSmpyUWwQEWOBJSmUtxLglMTbOf+/ZNiJHjr HQjcII/RIa7MQcIufadltVqrEs1/BvT+Cjz2HAsF48sd1cTY6fK2W0ILwpHny/9zBQNtVAa1yiy a9L0sg/OtyXpE32rAoySUI9V1u44mNXLstEyGvqykApXTj9norah2jg4k1LxOlSI5cXn2MF56dE 5JAEN+BukHZKDFCSSOMQPsdZxcuc7ufZeKEzrzij4V6mQfxmF/jmyRMhMbKm0qHcKpEKjX+0Tm1 tcxuLBY= X-Google-Smtp-Source: AGHT+IGaLv3P86dnfhfsz8clY+KvPxRH7m/1Pd0NzNkAaLxjGYIDOwn76y4qMRrSSuP3v13w1OIdqA== X-Received: by 2002:a17:903:320e:b0:217:9172:2ce1 with SMTP id d9443c01a7336-21c35544407mr480084755ad.22.1737709110054; Fri, 24 Jan 2025 00:58:30 -0800 (PST) Received: from localhost ([122.172.84.139]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21da3d9e1b2sm11621015ad.17.2025.01.24.00.58.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jan 2025 00:58:29 -0800 (PST) From: Viresh Kumar To: "Rafael J. Wysocki" , Alyssa Rosenzweig , Christophe Leroy , Cristian Marussi , "Gautham R. Shenoy" , Hector Martin , Huacai Chen , Huang Rui , Madhavan Srinivasan , Mario Limonciello , Michael Ellerman , Naveen N Rao , Nicholas Piggin , Perry Yuan , Sudeep Holla , Sven Peter , Viresh Kumar , WANG Xuerui Cc: linux-pm@vger.kernel.org, Vincent Guittot , Lifeng Zheng , arm-scmi@vger.kernel.org, asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, loongarch@lists.linux.dev Subject: [PATCH 00/15] cpufreq: simplify boost handling Date: Fri, 24 Jan 2025 14:28:04 +0530 Message-Id: X-Mailer: git-send-email 2.31.1.272.g89b43f80a514 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hello, The boost feature can be controlled at two levels currently, driver level (applies to all policies) and per-policy. Currently most of the drivers enables driver level boost support from the per-policy ->init() callback, which isn't really efficient as that gets called for each policy and then there is online/offline path too where this gets done unnecessarily. Also it is possible to have a scenario where not all cpufreq policies support boost frequencies. And letting sysfs (or other parts of the kernel) enable boost feature for that policy isn't correct. Simplify and cleanup handling of boost to solve these issues. Pushed here: git://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm.git cpufreq/boost Rebased over few dependencies from PM tree, will push to the arm-cpufreq tree after merge window is closed. Viresh Kumar (15): cpufreq: staticize cpufreq_boost_trigger_state() cpufreq: Export cpufreq_boost_set_sw() cpufreq: Introduce policy->boost_supported flag cpufreq: acpi: Set policy->boost_supported cpufreq: amd: Set policy->boost_supported cpufreq: cppc: Set policy->boost_supported cpufreq: Restrict enabling boost on policies with no boost frequencies cpufreq: apple: Set .set_boost directly cpufreq: loongson: Set .set_boost directly cpufreq: powernv: Set .set_boost directly cpufreq: scmi: Set .set_boost directly cpufreq: dt: Set .set_boost directly cpufreq: qcom: Set .set_boost directly cpufreq: staticize policy_has_boost_freq() cpufreq: Remove cpufreq_enable_boost_support() drivers/cpufreq/acpi-cpufreq.c | 3 +++ drivers/cpufreq/amd-pstate.c | 4 ++-- drivers/cpufreq/apple-soc-cpufreq.c | 10 +--------- drivers/cpufreq/cppc_cpufreq.c | 9 +-------- drivers/cpufreq/cpufreq-dt.c | 14 +------------- drivers/cpufreq/cpufreq.c | 30 ++++++++++++----------------- drivers/cpufreq/freq_table.c | 7 +++++-- drivers/cpufreq/loongson3_cpufreq.c | 10 +--------- drivers/cpufreq/powernv-cpufreq.c | 5 +---- drivers/cpufreq/qcom-cpufreq-hw.c | 7 +------ drivers/cpufreq/scmi-cpufreq.c | 11 +---------- include/linux/cpufreq.h | 20 ++++++------------- 12 files changed, 35 insertions(+), 95 deletions(-) -- 2.31.1.272.g89b43f80a514