Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp850580rdb; Fri, 9 Feb 2024 03:11:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IGb8naGBz3ufdIkRqRq6ZSOagpEyAPgwkNsm+2iIznYjl/Fnhcr59qh39WPMvM7AZFrxn7M X-Received: by 2002:aa7:d84c:0:b0:55f:99:c895 with SMTP id f12-20020aa7d84c000000b0055f0099c895mr984081eds.20.1707477109319; Fri, 09 Feb 2024 03:11:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707477109; cv=pass; d=google.com; s=arc-20160816; b=UT/dl17Oio5iKG7tsBd30wr/4WSk48mf/FtRgJIz2djmllFhC6qR2QCJrDW8hXhK2t gLsEMwEFKonbLd4DxzQkOK6pMaFZY68zSze175sSqnGWKLm5AiHog3I8gi+TIGayMYL9 eojyGndRGexkq9kfk6qMuMfcIpMkVEY6tyMb6GgooxVFKVC9lYZ3/FQeINIXbxUcCSru CVFXEDrtk3Kr7drhAtZ1wb9W4yv9ZQ9O3TcoPnxbqEiaGPqsO/W51sJeYn5UOwh7oxC/ Nkz7bpzON/4alYQ+PhZnw2zkqZbTxmyJCwnOCJTGpRkQIfCqlCUrF+J3nA/x14+XxhEf lVGw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=a8G2q4w69b+IEFY34b98975yN9oBPF5SjPZNvlDIvmo=; fh=VIJNZP8kIHaIkVtu5iYeL8B/dWYr7bsc9tdYS8SndFM=; b=ufhoeb497xysh9jPYMYDaZzDFdU1GF76hze/sdE+ip5TpZwiLhPKRFq2jkoux9x5B9 XclowG6gBb4hJqSaAQNFKxzCeduZtJ0dOlkX8a70MohcPr0N14WmpYj5ozZHOjzYNMau IIWMNrBNr493Aelz36LXnjgscBtY8KO8r13EBfZWeKVLNnf0++74HI9C/Um97d7i4hc6 Iw4+w91r0u85ovfJuSoMZSCMQ78CHKB2uoGRhDtZWWey912d15tkOK8qD61dfw9XyYfE 49kfTbYwcu6V1VIb+ZrExeJV/Yq3ysNEN+0gzi9R7Br0aj0sOe0tqZAujgZ7NeK2LDaG 4SMA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-59270-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59270-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com X-Forwarded-Encrypted: i=2; AJvYcCVX2flvWob4cHKcQKrzuee6wmiutjBdN8HhDdtDXprZ0KsCeJM6eq3s51T2OOSZSFHWF3ON1JiiD0QbwVdrfHb2q/VP7WVA4qZ4/J3icw== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id e22-20020a50ec96000000b0055ff3c80869si774155edr.362.2024.02.09.03.11.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 03:11:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59270-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-59270-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59270-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com 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 55DB71F23990 for ; Fri, 9 Feb 2024 11:11:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0CD2D2DF92; Fri, 9 Feb 2024 11:11:25 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AAFD528DCB; Fri, 9 Feb 2024 11:11:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707477084; cv=none; b=djH7SPmC4czRoQuvdoszSovA7k8G/d4l6CzjDzTz1dssAdaBGnhFWdT6RW01IFMWgn/E2CmZvpwGNXXHZLFn2QIbn59UWDi/cUWa9x5OUKdDC+8NyMW9Vo0CTTbzd8X2UNLY/dg1SAjDEnsxvavtfPoYGpy7NzX4SQFqzfhKQwg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707477084; c=relaxed/simple; bh=2sHleEjAfsXlECwT5CNpMpQsUNDdU15gyNB4pJ6ldRg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=EnitWk1Ywr6zpmKY/se8GSVr89hNwRvy6FsBgUry9xwyppGDIIEVuwkV2KHJO+kPWzdFTvz97LO1kO5fCpZhZwIJvDgEY0kOHQuL5WQgpCABQgIm2sjVGxRiXfuO7y5yeoCy/2T2mQSj5gQ79q6sSVRul9f2iXw9hKSwVp15yTc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2F22DFEC; Fri, 9 Feb 2024 03:12:04 -0800 (PST) Received: from [10.57.47.170] (unknown [10.57.47.170]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DCA853F8A4; Fri, 9 Feb 2024 03:11:18 -0800 (PST) Message-ID: <72ef475f-513b-4e33-ae85-f7e693a0cd38@arm.com> Date: Fri, 9 Feb 2024 12:11:11 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 -next 0/3] RISC-V: ACPI: Enable CPPC based cpufreq support Content-Language: en-US To: Sunil V L , linux-riscv@lists.infradead.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Anup Patel , Albert Ou , "Rafael J . Wysocki" , Viresh Kumar , Atish Kumar Patra , Conor Dooley , Palmer Dabbelt , Paul Walmsley , Andrew Jones , Len Brown , Sudeep Holla References: <20240208034414.22579-1-sunilvl@ventanamicro.com> From: Pierre Gondois In-Reply-To: <20240208034414.22579-1-sunilvl@ventanamicro.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit The code looks good to me, so FWIW: Reviewed-by: Pierre Gondois +Sudeep as this touches cppc/arm in case he didn't see the patches On 2/8/24 04:44, Sunil V L wrote: > This series enables the support for "Collaborative Processor Performance > Control (CPPC) on ACPI based RISC-V platforms. It depends on the > encoding of CPPC registers as defined in RISC-V FFH spec [2]. > > CPPC is described in the ACPI spec [1]. RISC-V FFH spec required to > enable this, is available at [2]. > > [1] - https://uefi.org/specs/ACPI/6.5/08_Processor_Configuration_and_Control.html#collaborative-processor-performance-control > [2] - https://github.com/riscv-non-isa/riscv-acpi-ffh/releases/download/v1.0.0/riscv-ffh.pdf > > The series is based on the LPI support series. > Based-on: 20240118062930.245937-1-sunilvl@ventanamicro.com > (https://lore.kernel.org/lkml/20240118062930.245937-1-sunilvl@ventanamicro.com/) > > Sunil V L (3): > ACPI: RISC-V: Add CPPC driver > cpufreq: Move CPPC configs to common Kconfig and add RISC-V > RISC-V: defconfig: Enable CONFIG_ACPI_CPPC_CPUFREQ > > arch/riscv/configs/defconfig | 1 + > drivers/acpi/riscv/Makefile | 1 + > drivers/acpi/riscv/cppc.c | 157 +++++++++++++++++++++++++++++++++++ > drivers/cpufreq/Kconfig | 29 +++++++ > drivers/cpufreq/Kconfig.arm | 26 ------ > 5 files changed, 188 insertions(+), 26 deletions(-) > create mode 100644 drivers/acpi/riscv/cppc.c >