Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1578407rdd; Thu, 11 Jan 2024 03:34:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IHTj+fvafgFd1ogY8uE1R5o1Gggsn73OFZRFS0GFNyWJTBDN9Yw6lmshaqbMwAWbykiJ/rx X-Received: by 2002:a92:dc0c:0:b0:360:908b:7ec2 with SMTP id t12-20020a92dc0c000000b00360908b7ec2mr1060525iln.60.1704972879729; Thu, 11 Jan 2024 03:34:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704972879; cv=none; d=google.com; s=arc-20160816; b=I9gMi5KfefYE71MD80icxS701UjrWhV9QALEZTcj+LJb5WDGvMqXSwiPr6KosS75MV Rw3OA6845FjT0owh91ii1uA/zi8wvGnbs4lR5ycJbZVNblbgGWexBGJHYSE7GaFzw5Y/ Hhv5gJIS+4gg+JyAk4+wvgNib8yNb9TKzwvfEgTFkSHzUvxdMQT3sOKGKl8Fx3CD6i3+ 6iKaephnBYYgfDS9tEqGFTswGesFlq4An20gOylDV+enxbQP1KliZlbjs/uUOBxwqQx+ jD6B/fIq9SdkjmV6+kb4nZiUCk2n5DZnE1G4yNCyI+7iYUwvi+pMQpKsmGi4H25CQF27 PjGg== 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=L1/9OBgUnbI4qV6pkGpalRcx7MgtwXi8Ekel0WOHXQs=; fh=cm8/hCOpgoNtTSJEbF1s2vBphANEd9pA3E2YPotAvLg=; b=s1UQBL47NhShNsT/4jSudYwHp0Wedv5W7XmoRsme//BaTag3vOLedgn233jrt9xiBf JaZJSTfg0+5E2kxZspz/qJF1kpxM2JTQA9Y9kWRMnatjtGmwHCuUf8QOQEvC5hoH8XU0 5jlLajOME/9kjgsPTZqIxdLXmAL4HdLa9VNQxNPN1/TACMSrT9ej37iBMVylbO8AvuHh nCdn5eolNaDsHCs1fKiYvBEpUlUhCZsGhwNgz2NQVyVp7FZ6M2D3X09NkzUaHVU3+ySf KGa7eIMAj7urwWXifCzev7z85+Va9iYuH7uQa9lxliEXLMqHq4X13qGx1xN5KAEDjksP 5xVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=axVFp5FU; spf=pass (google.com: domain of linux-kernel+bounces-23486-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23486-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id k23-20020a63ba17000000b005bd27be66e1si909280pgf.719.2024.01.11.03.34.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 03:34:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23486-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=axVFp5FU; spf=pass (google.com: domain of linux-kernel+bounces-23486-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23486-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id E50B6B23FBB for ; Thu, 11 Jan 2024 11:30:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8A77611727; Thu, 11 Jan 2024 11:29:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="axVFp5FU" Received: from mail-oi1-f176.google.com (mail-oi1-f176.google.com [209.85.167.176]) (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 6B10B14F9D for ; Thu, 11 Jan 2024 11:29:57 +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-oi1-f176.google.com with SMTP id 5614622812f47-3bbbdf0b859so5550114b6e.3 for ; Thu, 11 Jan 2024 03:29:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1704972596; x=1705577396; 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=L1/9OBgUnbI4qV6pkGpalRcx7MgtwXi8Ekel0WOHXQs=; b=axVFp5FU03cyM3XxUlRW4A1+Af30SmYit08s6H2hKmmih4wOrjWxnvCQAZgbw3mWqE YR9trjFZ40lEehQQ3oSe9esID+j8cTq6MGpb5ZmpYIrA5JByUBFhKdwAs0kigL1lyMuW jy1h1DANW1eRGABdrMUg1Sj/51M2nkkrAG75ZtiSHcbFmS1/d5hypp9NDGnTkgM9rZKZ yaxRHkUlAONKPckPvlCEL6Sc+m67S+cGa19UlNH4t1iaKjlq1w7emyWqZTWnVS5Lrplj TNqEXj9Q5eO+KUM+2YC53wXpGDkwG05eLrt7Fx3SpAi4sFBvglhFVLJChJbrL+LIo0Kz ocdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704972596; x=1705577396; 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=L1/9OBgUnbI4qV6pkGpalRcx7MgtwXi8Ekel0WOHXQs=; b=YdM95pLap1hjk/3WiyxLaja0eZbOpxiOiqJtLJS+Z3aThGOD9EgskZ+syiO31mwzIJ 5+hVnKSX6d6tFdtP/DkVwujRj3WXBTarribYszTnDb2EwMn8+6drjFYmrG4AjQHojFmQ RcGONznva3cdJ32lufeGrJMPF6lR1haZKNUSAcZDRI2qp5TrPPmRLGgDmDU2wOMvLYQz S8xvSKDpsMeG5NbFn9TdB96kK+NrAF6bz00+y9QfM0idod7GgeKwxbIKq1xTfN9K7Bo2 uiXqAI+GEf1mMK5n48HJtVHncBlNYA7tMl/U0X5oKPMrxUtiay1kb7wRkQmopRUGSSHN KjYw== X-Gm-Message-State: AOJu0Yw2oLRmqao+xGzuTHoj67kzVqdXY0EZKiMGYseoFryg4zVZgwny sWqtIF3skKXvbEcaR7PB8zxu4N7F2QefGQ== X-Received: by 2002:a05:6358:d39d:b0:175:9bfc:1b34 with SMTP id mp29-20020a056358d39d00b001759bfc1b34mr1332658rwb.22.1704972596331; Thu, 11 Jan 2024 03:29:56 -0800 (PST) Received: from sunil-laptop ([106.51.188.200]) by smtp.gmail.com with ESMTPSA id nb1-20020a17090b35c100b0028d804ef772sm3504720pjb.25.2024.01.11.03.29.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 03:29:55 -0800 (PST) Date: Thu, 11 Jan 2024 16:59:47 +0530 From: Sunil V L To: Andrew Jones 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: References: <20240111093058.121838-1-sunilvl@ventanamicro.com> <20240111093058.121838-2-sunilvl@ventanamicro.com> <20240111-bb411d2dd39eb859dd049fa0@orel> 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: <20240111-bb411d2dd39eb859dd049fa0@orel> On Thu, Jan 11, 2024 at 11:00:12AM +0100, Andrew Jones wrote: > 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. > Sure. Let me swap the order of the patches. > 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... > Interesting. Hi Rafael, any thoughts? > Anyway, for this patch, which I'd prefer to be swapped in order with > the other patch, or just squashed into the other patch, > I prefer to keep as 2 separate patches. I will swap the order. > Reviewed-by: Andrew Jones > Thanks! Sunil