Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1534696rdd; Thu, 11 Jan 2024 02:00:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IE6p+YKdhAY+pYxb8zluBFQqpAygK4pOpMzmzf8pfj1Cyf1hHevKwTotpWffxUU2stm5+R8 X-Received: by 2002:a05:622a:2d6:b0:429:b64f:3e1e with SMTP id a22-20020a05622a02d600b00429b64f3e1emr320365qtx.2.1704967228569; Thu, 11 Jan 2024 02:00:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704967228; cv=none; d=google.com; s=arc-20160816; b=0jSYLgwIR0JlKzSbi4OaQPFMwXxeu3VPWZIT6AFBd072SHqP3TeQ7Rx6zWox49zeUy qy+4imXx+FG6g6wYJFYM1z3FZEGlPArULkaMH6Sh4eARvXaLZLcCyY/kFDaiILlbXEX9 dnlHIGUjbChYxCJxo8/VyUJp0/vbwn5JeYxixh5vKEy7c9NSj2nXaYAqMuKzOMQrmum1 HOZjvaDsuftTzTI6fEP2mRO1Jw/zAzR1MwkDNrnv2OdFFNIymf5TaOiADEaFFKN7FIpu D/t/CKgs8xouVex3Ni++BBNnjSFIdNkd3fcO554VNLWACYhQdSYZswOx9k8+GtN1CgJV /x9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=SK6l91q7AEIn5ipGCEJlFPJF27Zw8+0MoPYYgQPY0a4=; fh=NThHPQqw7NOuJ/3fWiqY6bQ/W7p/C+RiviAxfOkpca8=; b=IoqZdhCnT1RFbD6Z5o5r7MdtgSZG4f7EX+WvfNg+e7rr/9dbD07YcqdZiZh6NNUr4E RwUG9XEne6L050+nPgW4omo7QFvvqmdn28x2XR1kIJ1rS0GqknTiRVgFxCTZmQD6Klvj fnleAuHJpVKKyXWzk7KugOYzXqA6oEs4ecY8zyS2JpBX+LCW++QiM8F1Phm7LCk8GemP er9vI8/ucBZXwdESOd4F6B8GKJjVavZzSVVRsFD8VD1iRbVVB1+ubACV5rZQCry11S3b EWZbO1HnYpKWXbVOBVPBzqoyp+MVxXcDdgQrhSMv3YZD4Zp+UYAv/L5eEYrpIMSyYFOA GnnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=AsEZXAkq; spf=pass (google.com: domain of linux-kernel+bounces-23350-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23350-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id v16-20020a05622a015000b00425cdac0e8bsi610437qtw.759.2024.01.11.02.00.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 02:00:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23350-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=AsEZXAkq; spf=pass (google.com: domain of linux-kernel+bounces-23350-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23350-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 2E9611C21777 for ; Thu, 11 Jan 2024 10:00:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2342F125D2; Thu, 11 Jan 2024 10:00:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="AsEZXAkq" Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (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 5292D125BE for ; Thu, 11 Jan 2024 10:00:16 +0000 (UTC) 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-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-555bd21f9fdso5818277a12.0 for ; Thu, 11 Jan 2024 02:00:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1704967214; x=1705572014; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=SK6l91q7AEIn5ipGCEJlFPJF27Zw8+0MoPYYgQPY0a4=; b=AsEZXAkq7rgCb3FMKtxC+H3Axt8OhMzF2gp6HL3KglEpPC7pY7kHgjFG81lXzvZ/UN wLwIG5YIr1ReEYlGnn+d90k0CfdMpuxobTPyawzLSiaDcBaKeP2HJ4KQWiJS1XmMyJ39 k/Ox2Pc/agvuZh/X6kGyNAFogbRgembnxmEN5DN1il19f96KXjO0q4yMO2ZKT8wB+uhW Z3uuo40KyPsRHX0BL8uZd/DaWA7ZBygNYC0OOd8vcHNYPg/HzJKv+59yuLsDWAmdoXxO 9kD7Obb+S73Nur8WGtFBbObUn8GOEjpRCq5IgfVPGJJtdo1oBRyj4Jx1HvVklaXvws9N G1cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704967214; x=1705572014; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=SK6l91q7AEIn5ipGCEJlFPJF27Zw8+0MoPYYgQPY0a4=; b=dfslvgQdy05fJi9fZriqUV+sf0QpAOjiGXZZyPb9BZduoSQsHTI89Vb7V5r56hJ+Ln 4VzMA8Spyme7WifXCu/P5zJqeKwux5Ji+bkmwQ4GRv+ieeXNhrSoEBuw095tNuOhhccN UZ7AUgq2qZSTRel+Vnq5M1Yx+YTrtsNxUUZhLV3qvNP1ILJwCh3qh3+1a9LFaNpMnWXj 28hCUvEhth8l+JvcEMbvpYL37o282ICQ0t6MDYbLpUXz0mMif40xA4cTYqGqVsn2V4vy rrWkWkeU0a0asD60RcVi6QJltxBx30UE85HSOCXEfeEnsjLhEu0P4z/VfRdI+IhITpKQ Qw5g== X-Gm-Message-State: AOJu0Yw8t9pZgC4c1qxJw72ZMcFC1P/DQZ5nVLeEWMiVDEOxmgspF2D5 uVEIVM59WziHUkHrggbdivqYqqezrnlDpQ== X-Received: by 2002:a17:907:9281:b0:a27:f6aa:c7b0 with SMTP id bw1-20020a170907928100b00a27f6aac7b0mr576724ejc.11.1704967214471; Thu, 11 Jan 2024 02:00:14 -0800 (PST) Received: from localhost (cst2-173-16.cust.vodafone.cz. [31.30.173.16]) by smtp.gmail.com with ESMTPSA id o8-20020a170906358800b00a2ace215a78sm368912ejb.114.2024.01.11.02.00.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 02:00:13 -0800 (PST) Date: Thu, 11 Jan 2024 11:00:12 +0100 From: Andrew Jones To: Sunil V L Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-riscv@lists.infradead.org, "Rafael J . Wysocki" , Len Brown , Anup Patel , Daniel Lezcano , Paul Walmsley , Palmer Dabbelt , Albert Ou , Conor Dooley , Atish Kumar Patra Subject: Re: [PATCH -next 1/2] ACPI: Enable ACPI_PROCESSOR for RISC-V Message-ID: <20240111-bb411d2dd39eb859dd049fa0@orel> References: <20240111093058.121838-1-sunilvl@ventanamicro.com> <20240111093058.121838-2-sunilvl@ventanamicro.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240111093058.121838-2-sunilvl@ventanamicro.com> On Thu, Jan 11, 2024 at 03:00:57PM +0530, Sunil V L wrote: > The ACPI processor driver is not currently enabled for RISC-V. > This is required to enable CPU related functionalities like > LPI and CPPC. Hence, enable ACPI_PROCESSOR for RISC-V. > > Signed-off-by: Sunil V L > --- > drivers/acpi/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig > index f819e760ff19..9a920752171c 100644 > --- a/drivers/acpi/Kconfig > +++ b/drivers/acpi/Kconfig > @@ -282,7 +282,7 @@ config ACPI_CPPC_LIB > > config ACPI_PROCESSOR > tristate "Processor" > - depends on X86 || ARM64 || LOONGARCH > + depends on X86 || ARM64 || LOONGARCH || RISCV > select ACPI_PROCESSOR_IDLE > select ACPI_CPU_FREQ_PSS if X86 || LOONGARCH > select THERMAL > -- > 2.34.1 > Hi Sunil, Typically we'll want the Kconfig changes to come at the end of a series, or squashed into the patch that adds support for it, otherwise there's risk of build breakage during bisection. In this case, we're safe because the two new functions (I looked ahead) have __weak versions when they're not present. Also, interestingly, it looks like this ancient line obj-$(CONFIG_ACPI_PROCESSOR) += processor.o in drivers/acpi/Makefile should be removed, since there's no drivers/acpi/processor.c file. I guess the make process silently filters object files which don't have corresponding source files? Maybe we should write a Makefile analyzer to see what other lines can be removed... Anyway, for this patch, which I'd prefer to be swapped in order with the other patch, or just squashed into the other patch, Reviewed-by: Andrew Jones Thanks, drew