Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp27189rdb; Wed, 7 Feb 2024 19:45:18 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUv/NaB/uMbNNZrW0BenRx6kQzSlkM5qp7c1Ai/tvW+mkGI+XQXTCmtSN3jV+5yp1sc82hiWi3yWnLYiUgvfm6cMRqHwsvY2U6mT445lA== X-Google-Smtp-Source: AGHT+IFVRB2a+2gTqSIuEMBJaG8a9Y+8h8NcfVP2cegqvEUhYN3KtidRaNIGVT4WUcZOlVHqqnZ9 X-Received: by 2002:aa7:c6d4:0:b0:560:cf3:d314 with SMTP id b20-20020aa7c6d4000000b005600cf3d314mr5188795eds.31.1707363917836; Wed, 07 Feb 2024 19:45:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707363917; cv=pass; d=google.com; s=arc-20160816; b=Wb5Tp9VktrYQXRXf13adltCWJVPaAyrgTf61ZP9X3d7FOeWwzlTUh8DudXuMd99/6f UCt6pUvOlYHSXnwzUGux0uaHYqPIdBOObLwGnBDEwkvWazF6rqrHOqPhfHoyRcgtrOVx l246nP9BDUXgMDSVPCvV/tkLDI0o7DBmeky5YQdbi3abcue2qcE2whnm6n0d1i3t0Mk6 yoQChfaFWfN21m8fjlWy017LjUFG4z7JzLnjy6hgCF4xoRe017ze8bldtEuzd6MfhgTb e5DZuOXYIOdkL+X8cGZVfzMn3NMjLVDlB8KRv9GT5r0kWUKtc7AnzDbPFL382RVy8SjI 9yIg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=yizVqarSWst4aU/Dh5XxoRIOdJJxEsR3ATXXBPWi+lw=; fh=r/GxdoYWLaFo7CIMCHwn+ze7aXOSXC7FSkBqXAqYbAw=; b=zIo/tUQKfDMDt9SXjabn0bbktI84XfWE04MHDjWZFfk/tr9CyUXmPOU2azNciBdyCh yrQ0cHZooWfEtqYSlqLz/1HCcVerRNg/zlTFA4m4wMwDSwbPya4PKUZIWBSVD8JGSCXj OtfRIZH+iqHH6HoGsveA/OVQBGrgNWQU35L6FEVAnknAa5FBLY/OUXM79NuIN3yU4xEL K31pxR/xVfIZk+KHEMRtgHfsG5DejGWPjjYQBW9shpx6LMo7qaXFSyXeIFqb9/MgSuMx 7wAixhHUeLxLfwfDFBLBT0YT/zelOLJvG3Wj3zRGYqD0fWOXz0TMKFxA6y5BaNj/Lq3t mpcg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=D6lzucUR; arc=pass (i=1 spf=pass spfdomain=ventanamicro.com dkim=pass dkdomain=ventanamicro.com); spf=pass (google.com: domain of linux-kernel+bounces-57439-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57439-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCWAykXe+4y5qIdASParCxkE1WPOOEdvQePWLNfikgoTdmOY6Fn5B8Tt2AiV2wjmhWrGGJKffTlmo8zOy6VjvHSQlWUGVKiY7ZuLevrM0Q== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id f25-20020a50d559000000b0056076d4f3ecsi461603edj.529.2024.02.07.19.45.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 19:45:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-57439-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=D6lzucUR; arc=pass (i=1 spf=pass spfdomain=ventanamicro.com dkim=pass dkdomain=ventanamicro.com); spf=pass (google.com: domain of linux-kernel+bounces-57439-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57439-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 896FE1F22741 for ; Thu, 8 Feb 2024 03:45:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8A34E2D796; Thu, 8 Feb 2024 03:44:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="D6lzucUR" Received: from mail-oa1-f48.google.com (mail-oa1-f48.google.com [209.85.160.48]) (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 1753A2E3E5 for ; Thu, 8 Feb 2024 03:44:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707363879; cv=none; b=cjIzGZU99JmNMCzn9fWz8OXTLSSUTZvMsDcOlw73UWMizGdIZzSW3VsQ4SztoYbWoHlcKOVPhYJLNrQdBrFYQZjdR3V1E00U8u8L/h2N5aVkGm3+JaIMBLSHay0oCKUBxRs73dvTy2XweGDn8UiJiDcYO11FF4cUFnUNUwfEAXE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707363879; c=relaxed/simple; bh=g0fx2hA5H7XGXKhInZLiSKn01bgcxRTeVThP7ASvphc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=KBHqwlHo3hXKz15seOolWcQ30w/wEUHHFWL8F1mwz/VrOWvpBoWrD2Ko7Agy+alLuSRaRnl1iYsj/bkTkAoh096L2jU5PoEph3HdS3BrVhh/Iu49dOyFvyV6zU8+Vsp9mpXeZ9WaB+n+M0lHwEXYrqzU8NCdWphgdGZfCbG5/ng= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com; spf=pass smtp.mailfrom=ventanamicro.com; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b=D6lzucUR; arc=none smtp.client-ip=209.85.160.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ventanamicro.com Received: by mail-oa1-f48.google.com with SMTP id 586e51a60fabf-21433afcc53so754103fac.3 for ; Wed, 07 Feb 2024 19:44:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1707363877; x=1707968677; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=yizVqarSWst4aU/Dh5XxoRIOdJJxEsR3ATXXBPWi+lw=; b=D6lzucURy+G58YW49NY9DjKm15fcUNvgkHS6CPHWXsc+eF+Yyx0R8Vr3RN4qmjPvSS RBCrJtbOaedOoKtym1BDD4nzsw5qKUyhMthXTWF6WjgsW0tw9qsXUBE3J09tBzy+XqKN 1UPJPRnP+g+zKEzFS2t2us43tsWBcyCArIt9HlW7Nuf4R3fWmVGqQR8/4lDKeKfh5Vpm m8l8+q+A0f+MzcInNiWUW+ck7KEgSnnCxftqQWYGt6CHS1a25xnAnsH9yOfNs8AJ5co6 hXZKLu8vghzVMbG1gV7dXJKPPnm2bRch4w1MsyKnPFRgqzneWHJdf3/MSVgqwU0eALjj yZhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707363877; x=1707968677; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yizVqarSWst4aU/Dh5XxoRIOdJJxEsR3ATXXBPWi+lw=; b=MoT+C+gC8NM65FMDcv2+1CL96z0YLhSipYqKVSEhBFGzj5Sfy9lGi8FzVW6xiBdRwA XdZgt1wfUebSu8myOLcmp7BVCR7v6cQXVLNIzkPTSQUaQBKNDF8FqqiwY1IktVJuitMf V4wbNcYTR9Tk2KGSahuppZmHe9hvPBQzuJEmZN5Y78VnLdiP0T0xUDU4B3ytMK7egmYu fNmssj3mWHxHSxJtUbfg39ZzGMwUP+bKth3Fa79FXifovYFTyAd2pRGCFcc6jPUlGbMi km4tUNWOq0HKR9HQQI3avojbkuX1BNnLj9/3teZoDDLMwRwm0cEnkrrJbjDRj+SI2LbT FElA== X-Forwarded-Encrypted: i=1; AJvYcCXCz5OQPRyllGsZuVis9HCfvZmAhuUqYMTM7Dku0nMS2kWKbXz5BIxfI7alXh6LwqfmDc8RmHaNFWDD0X+FP/PIyoY9Cc5YRRFIVAD4 X-Gm-Message-State: AOJu0YxIsJHtBZKwUUBvKPiVuotV81JXQspHYCdr2A5QhBYf8owVmoj2 TV+Y3cRsuNyLAJisHgQTKuoRmwxIOP5GiEZixTecf4csSOKM90AZEHjPCg1UHpQ= X-Received: by 2002:a05:6870:1681:b0:214:269d:785a with SMTP id j1-20020a056870168100b00214269d785amr8743371oae.53.1707363877181; Wed, 07 Feb 2024 19:44:37 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCWn8ZEOAjgnL+Jx4yBkYXCD5ALrkdT7ucfJBWU9DaGB2ywmBZjUnJW6ow7WqR3G5rX3vuzL+eJ3RulTStUSDcL6jTeGuOk3FAVNlVnC0cHJTRByIsx6ubfO/gOQZMro5pxY51D8WO++N/TlH4xtf6GZXlM9Gf918L6ENzgiQLyRny4viixyAPlBjxsHJhUAv0Piws3gr0ZQW9i59dTiUNVeyppZzrAk8QVeI7WGKSJifX9yCAMtJHGbo2VLVAojonpd6MgisF8Z5E9IzHJzW+dhkdwmd6QYg2A//29RZOG1h2iccMu5ipJIdI53iunhTFmAoqliiCsh1GE/HZw/by+qJK5lNPuWPMAa9JRdOt13fgFESIsvB0mUnrVa5rAciBlKP7ZYVbJlNXcTyUUa13pQUuEXUArgsWwcCT2jalgwb9YH2imqeDU0D76YTcY2hNgj0KYf Received: from sunil-laptop.dc1.ventanamicro.com ([106.51.83.242]) by smtp.gmail.com with ESMTPSA id g10-20020a056830160a00b006ddbfc37c87sm443595otr.49.2024.02.07.19.44.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 19:44:36 -0800 (PST) From: Sunil V L To: linux-riscv@lists.infradead.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "Rafael J . Wysocki" , Len Brown , Paul Walmsley , Palmer Dabbelt , Albert Ou , Viresh Kumar , Conor Dooley , Andrew Jones , Atish Kumar Patra , Anup Patel , Sunil V L Subject: [PATCH v1 -next 2/3] cpufreq: Move CPPC configs to common Kconfig and add RISC-V Date: Thu, 8 Feb 2024 09:14:13 +0530 Message-Id: <20240208034414.22579-3-sunilvl@ventanamicro.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240208034414.22579-1-sunilvl@ventanamicro.com> References: <20240208034414.22579-1-sunilvl@ventanamicro.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit CPPC related config options are currently defined only in ARM specific file. However, they are required for RISC-V as well. Instead of creating a new Kconfig.riscv file and duplicating them, move them to the common Kconfig file and enable RISC-V too. Signed-off-by: Sunil V L --- drivers/cpufreq/Kconfig | 29 +++++++++++++++++++++++++++++ drivers/cpufreq/Kconfig.arm | 26 -------------------------- 2 files changed, 29 insertions(+), 26 deletions(-) diff --git a/drivers/cpufreq/Kconfig b/drivers/cpufreq/Kconfig index 35efb53d5492..94e55c40970a 100644 --- a/drivers/cpufreq/Kconfig +++ b/drivers/cpufreq/Kconfig @@ -302,4 +302,33 @@ config QORIQ_CPUFREQ which are capable of changing the CPU's frequency dynamically. endif + +config ACPI_CPPC_CPUFREQ + tristate "CPUFreq driver based on the ACPI CPPC spec" + depends on ACPI_PROCESSOR + depends on ARM || ARM64 || RISCV + select ACPI_CPPC_LIB + help + This adds a CPUFreq driver which uses CPPC methods + as described in the ACPIv5.1 spec. CPPC stands for + Collaborative Processor Performance Controls. It + is based on an abstract continuous scale of CPU + performance values which allows the remote power + processor to flexibly optimize for power and + performance. CPPC relies on power management firmware + support for its operation. + + If in doubt, say N. + +config ACPI_CPPC_CPUFREQ_FIE + bool "Frequency Invariance support for CPPC cpufreq driver" + depends on ACPI_CPPC_CPUFREQ && GENERIC_ARCH_TOPOLOGY + depends on ARM || ARM64 || RISCV + default y + help + This extends frequency invariance support in the CPPC cpufreq driver, + by using CPPC delivered and reference performance counters. + + If in doubt, say N. + endmenu diff --git a/drivers/cpufreq/Kconfig.arm b/drivers/cpufreq/Kconfig.arm index f911606897b8..987b3d900a89 100644 --- a/drivers/cpufreq/Kconfig.arm +++ b/drivers/cpufreq/Kconfig.arm @@ -3,32 +3,6 @@ # ARM CPU Frequency scaling drivers # -config ACPI_CPPC_CPUFREQ - tristate "CPUFreq driver based on the ACPI CPPC spec" - depends on ACPI_PROCESSOR - select ACPI_CPPC_LIB - help - This adds a CPUFreq driver which uses CPPC methods - as described in the ACPIv5.1 spec. CPPC stands for - Collaborative Processor Performance Controls. It - is based on an abstract continuous scale of CPU - performance values which allows the remote power - processor to flexibly optimize for power and - performance. CPPC relies on power management firmware - support for its operation. - - If in doubt, say N. - -config ACPI_CPPC_CPUFREQ_FIE - bool "Frequency Invariance support for CPPC cpufreq driver" - depends on ACPI_CPPC_CPUFREQ && GENERIC_ARCH_TOPOLOGY - default y - help - This extends frequency invariance support in the CPPC cpufreq driver, - by using CPPC delivered and reference performance counters. - - If in doubt, say N. - config ARM_ALLWINNER_SUN50I_CPUFREQ_NVMEM tristate "Allwinner nvmem based SUN50I CPUFreq driver" depends on ARCH_SUNXI -- 2.34.1