Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1052021lqm; Thu, 2 May 2024 04:02:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWUWDbpYka7SIwNtvovijp/lRKIXJLShLxVcTCaGxG3m4rOEG3n5knpHGy3RGYVTYZsjOYZGEC491XJDmY0ulgHhq4BJjJNlUEYtvpssA== X-Google-Smtp-Source: AGHT+IHYyY8/vYwJk7xOKwUa4AsyrW/tgPvTAX08h92/ye4Rgyy3F9cUqEioDyPNjsI2RwpSJLx7 X-Received: by 2002:a05:6a20:c78d:b0:1a7:892b:5f89 with SMTP id hk13-20020a056a20c78d00b001a7892b5f89mr6368761pzb.11.1714647763393; Thu, 02 May 2024 04:02:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714647763; cv=pass; d=google.com; s=arc-20160816; b=VJr34LRXAqtvjPpZ0r3DcRhG9hv3XH+CGJWfBDXIa/HQR+2uVcMIEnOCyAlJbYg+wb sCoJNKxSWddWzZ3LzqZZb4XxTrd96cZaGCwkYHBzU2OwtNHyW/2NWACx3SvEWlkXk6A9 trPDdNB3MUsc2T5+Rq8nFLbkeSLuwHrrXQ6hSHRiI6dGx8SH/sqi0ES8KNmGZ/0sbo+H 8+F7CwyLB0k/yu1SluhiQ1smkR8l0em1niiJ9Soy06x3rScN/CSYvPSltkU4WY9UwvHB 7jSitqywVa/hhyV60lx8gw+SP9UpKq8aK5pArApTmJyDG8DyposnjC9QyvSg63Cx1iAb jLBw== ARC-Message-Signature: i=2; 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=yjTLbsaK8lFll8/qZ6Wbe+KOojRpVIeEGiQdgeTUV/M=; fh=JTf+TZf4fM/IcPs5qaBVdjMNRvC0GAUB6os16xfYVpg=; b=g1hosgT9wZXizRAt/qKBE4TN0iJmf29kMpuZBkzfIGTBP+xMllsOtXltZi2unhUrMo 0IUwTGZkpkTHSEXBMuEI9Jyg+I50uOlYbI7hYk9k4Am/itFdkEoNEhGHj0COnBaxZNIQ w2LPym/Jib/J+4OcWiHQ5BuGo4AzeGXvIQC1+Fg0KVtBC+FeM+to7+3sQBGRrlm8fe0s 1hi7Sb/cjczpVNQYnyn0juhmhCm+BAGCwdt8nJfUfdkWi6MD/lSfAZ0ZTO3v5gJsTTMj 24GQnHSYOKH5ODyOr2NSQ+DExBEryDDAH1cYsZ3jTpY7N8ZkoelP0RRStIi6x3OpRTLG 041w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=idqeKlgv; arc=pass (i=1 spf=pass spfdomain=ventanamicro.com dkim=pass dkdomain=ventanamicro.com); spf=pass (google.com: domain of linux-kernel+bounces-166368-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166368-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id mf15-20020a170902fc8f00b001eabd90c43fsi797015plb.157.2024.05.02.04.02.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 04:02:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-166368-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=idqeKlgv; arc=pass (i=1 spf=pass spfdomain=ventanamicro.com dkim=pass dkdomain=ventanamicro.com); spf=pass (google.com: domain of linux-kernel+bounces-166368-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166368-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8A10C28A53E for ; Thu, 2 May 2024 11:02:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CED256BB47; Thu, 2 May 2024 11:01:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="idqeKlgv" Received: from mail-yw1-f169.google.com (mail-yw1-f169.google.com [209.85.128.169]) (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 794485FEE4 for ; Thu, 2 May 2024 11:01:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714647672; cv=none; b=D7R29j18LeUtiNLkDoSC4Z5uP0L/ZvkcGAj/2SBVWh+yuM45yO0hbdunItgcYH+p/wETfrkXVSAMWWUGVnU8BjOgQ2+kvy8Tp5CumTf290ZACCU/9giwA4/NBYCXQj9LuFJZ3ehPXKpYw6Tm7xubHWbV+C/qW7gfArsV+Me6u5w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714647672; c=relaxed/simple; bh=ndLSvNTaHy7rcB+YkF1gfmdHrNAQTVgDr2rY9G9+Z/k=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=hhDIaMWGhbg+lJ0IXrxP+yIOA3nJgGDNiTQRqfm3KuCGz8CZv3vpmXltmH8sJ+vVkrUADdfKPt09sCAl5CEFCyve3//O0Rvy9DaIeM19AlluWkUet1sEsrVtKPo0R3saY8GqnTNgiUPZ263G+cnRqFrYWsebXWfP29pCig809Zs= 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=idqeKlgv; arc=none smtp.client-ip=209.85.128.169 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-yw1-f169.google.com with SMTP id 00721157ae682-61af74a010aso77437417b3.0 for ; Thu, 02 May 2024 04:01:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1714647670; x=1715252470; 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=yjTLbsaK8lFll8/qZ6Wbe+KOojRpVIeEGiQdgeTUV/M=; b=idqeKlgvQ+/lcZpWrTfTYFW/DJvkRNzbSS/eMoELdnj27RVAT9IZIsCp2ZLtlQg9ii Lv/zb2fzYXGAgRbPddqlbdffFnILvXi3IoHjeFYOsgVNlo6IUfMi5Ctu1RSwOA3cTQyf r/k2FPrtIWLFtA/TB+LgGcpohrpc6aaaCXUU3Y9Ca/9EmCQ/LsU/qIEMRdak9pdUFm1P WLQzyEXFBC5IGdq8LPrTlm7zJOhSGOOVGZH/QLpW6E8FDQ/i64Z0keQKdFJUzHN7J35k 1+/Y7vW5phfhT91m31swW5c5LeRVRpIMZ5/w1TGGxH7izyQfX8ZmGHa/ZWSvcVczatxC 0HWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714647670; x=1715252470; 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=yjTLbsaK8lFll8/qZ6Wbe+KOojRpVIeEGiQdgeTUV/M=; b=upio/Y5KfF7ERNHd1/t7U4mEZUx/Pz7B9UtmEoDpYOA+lWEXBgiJWuj1zfg/V2Ahgv LzHgk40RQ69Ao5wa2+fszm2iO/rir+b24C8fdEMbZZhKOr55aNk7QlcUnfWyteh6jbyA 1Fm+oivHoCpDs0SghDPGGqp62FI8ggfNW/CCzSKkv5QqWjzJSbGQOflIQUcgvr5rTfRJ k4fN2UdRKBcmXxq02MffoH1nAvcORben1vajsAICPPX2NqOZGDJrMb1cRwq+2WE9KqDM +q6XN6f8bEjCjRHSHENTUhhTebMWtsUWuV+aigEUfCdlENNtCkZR+MdWQIZc8RKRW6yl bGZA== X-Forwarded-Encrypted: i=1; AJvYcCXGziba8WY95OQYCLw8xbp275NZCKgUDnoDBCocPJ7IkR3+ENHtYkB2r0kXAcQeevxgVvf1rz+KoJ8IkpFLoPWpJzqYnr+kwLQudzJg X-Gm-Message-State: AOJu0YyOfuz4cXVh5HfXYI0QvrnUvvJqwmKv8no9LbGRyrBQPNOsbq2R THDdiFYwv2ExBM4yURhyC0wUCU3r3+5qfs3TWQwi9Ighps3P5bAsZpoKp/1XWzs= X-Received: by 2002:a05:690c:d88:b0:61a:d2d9:5488 with SMTP id da8-20020a05690c0d8800b0061ad2d95488mr6160180ywb.7.1714647670339; Thu, 02 May 2024 04:01:10 -0700 (PDT) Received: from sunil-laptop ([106.51.190.19]) by smtp.gmail.com with ESMTPSA id dg17-20020a05690c0fd100b0061adfb01cc2sm147882ywb.90.2024.05.02.04.01.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 04:01:09 -0700 (PDT) Date: Thu, 2 May 2024 16:30:50 +0530 From: Sunil V L To: Andy Shevchenko Cc: Sudeep Holla , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-acpi@vger.kernel.org, linux-pci@vger.kernel.org, linux-serial@vger.kernel.org, acpica-devel@lists.linux.dev, Catalin Marinas , Will Deacon , Paul Walmsley , Albert Ou , "Rafael J . Wysocki" , Len Brown , Bjorn Helgaas , Anup Patel , Thomas Gleixner , Samuel Holland , Greg Kroah-Hartman , Jiri Slaby , Robert Moore , Conor Dooley , Andrew Jones , Marc Zyngier , Atish Kumar Patra , Andrei Warkentin , Haibo1 Xu , =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= Subject: Re: [PATCH v5 03/17] ACPI: bus: Add acpi_riscv_init function Message-ID: References: <20240501121742.1215792-1-sunilvl@ventanamicro.com> <20240501121742.1215792-4-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: On Thu, May 02, 2024 at 01:19:55PM +0300, Andy Shevchenko wrote: > On Thu, May 02, 2024 at 11:12:43AM +0100, Sudeep Holla wrote: > > On Thu, May 02, 2024 at 03:32:25PM +0530, Sunil V L wrote: > > > On Thu, May 02, 2024 at 12:24:14PM +0300, Andy Shevchenko wrote: > > > > On Wed, May 01, 2024 at 05:47:28PM +0530, Sunil V L wrote: > > > > > Add a new function for RISC-V to do any architecture specific > > > > > initialization. This function will be used to create platform devices > > > > > like APLIC, PLIC, RISC-V IOMMU etc. This is similar to acpi_arm_init(). > > > > > > > > What is the special about this architecture that it requires a separate > > > > initialization that is _not_ going to be in other cases? > > > > Please, elaborate. > > > > > > > This init function will be used to create GSI mapping structures and in > > > future may be others like iommu. Like I mentioned, ARM already has > > > similar function acpi_arm_init(). So, it is not new right? > > > > Just to add: > > > > This is to initialise everything around all the arch specific tables > > which you will not have on any other architectures. We could execute > > on all architectures but the tables will never be found. The main point > > is why do we want to do that if we can optimise and skip on all other > > archs. > > You need to carefully write the commit messages. Some kind of the above > paragraphs has to be in there. > Sure, let me update the commit message on similar lines. Thanks, Sunil