Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) (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 B6BD0218ADC for ; Fri, 24 Jan 2025 08:58:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737709112; cv=none; b=PsViE9Efm67YaXzmX4qmd34pG04Gvaauo+QMcR1Ng62Kb4+a2wX0ypys5P9FrX1kHZJJ4bebcOdePmtkya/qWa4s0hURsrc9Ke+tFt7MVbv/Pfc4hhu1FyYlIv+wE9t8bT4K56RChQRMvnJrynq5iamMHDjmQ79FNubSWH6PiRE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737709112; c=relaxed/simple; bh=fNI4UdDtZI4AVcTD8TnjHEnynSXd6Y+lcwnBOlUgb0k=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=KBNTsyaVw3uE4q55GMbiosx1CfZDsfoO05WiYaPnQk7BNFgnahMtgRUZxwmPOAPVl+vWUX8TSQBX2prvEQnALYApqwNGVwe9Ko7PvN/7zeYb+1Kx3SeAbT3pTV125ucBfC4ecchMziTLHyULctb7662glkTL0G/oNNcwoi2AL4Y= 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.174 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-f174.google.com with SMTP id d9443c01a7336-2161eb94cceso22475465ad.2 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=gashCrRO/m479Xcxega2ILpXpYkx1xIxU0924rBtpDqLUvvnss8F1px7KW3AG17xiY iiP0vkOxjRg5ZAbIvJues34K2U6QGEcFlehyTS0FjJvKT1j0No08fQLAC5PjRzYosUnO mrQbi6q2b7vcQuv3Lt8HSJr57uezqyRxneaLln6+jU7QkdUu7kGaC93RYKRseLYhWYaO nvV4DU3LMNWjGJH1+eiOfznqyDWCCWoMKN5ErMYgfIs3EGGrNGd+4R/8oOTBUMlZh6jf IdJKgp6tImrDNh+H2Pdek0smjZiJLjUIFiCVpvKN3DnJ2xfcoqL05OQ8w+eBFfSgCh6P VmAA== X-Forwarded-Encrypted: i=1; AJvYcCUchVsCLlnylUY2JsSatNxBh4/H8eAA1fHnpC+95hT+tq6KyNvIbfcc3ITFvuJ9PZ+91X0PgSMTWw==@vger.kernel.org X-Gm-Message-State: AOJu0Yze/jhPLuiD8Xtc7FRtsPj1kuxlSrwJ7I6rJBcN/5Nuy8oBiMc0 9v6RQOpMhtyW2W1kFaRaQaFmC0cwoRJldkyBr9aT/KWYT05x8LCfsHC0FvFTwzw= X-Gm-Gg: ASbGncsNU1vqB8qABDGhPO7jA+IMtWTiwlsAM1BojgWwuVOFDaFdPzBqjCBQCwI8A6B Imswj88gSfo/BiTAWKPIIqK5rRRcg0gA7wDoEybo3UVR6Ie6BO+XkU3tR1Ub7vBzVuENeCuBfnq PkTSR1fFqts89nuuJAT7aToSeYSudLYzWwrIfv1X/cY6ZF5lWj/h1vaz4ffFH1jWJyBNcQE7xhi QsjiTHhRpcW9JaIf/cCo8jp9+5LHrXho62H3P20X8Zhq2kjNSwU7iD8gMES0vCkRaOXCED/jEWr dOQByGo= 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: arm-scmi@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