Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1030290lqm; Thu, 2 May 2024 03:13:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX3YxChhs0RQaeYKJ8KXxsIIfrFlOAdl5ob/KzrPp2egJM23qu5rydae86stuExO6unUcg6Kct3ZUlENVdfuHqyv7X2+FscycyfZPRjgw== X-Google-Smtp-Source: AGHT+IEEPYVagyG2etLsApB4jLf1Bxqr9o/Q+alo33f0G7VNHSrm2TjiMzrmrWlwBRu+cEDOz0lz X-Received: by 2002:a05:6a21:3396:b0:1aa:8fe2:5adf with SMTP id yy22-20020a056a21339600b001aa8fe25adfmr2116953pzb.15.1714644782865; Thu, 02 May 2024 03:13:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714644782; cv=pass; d=google.com; s=arc-20160816; b=Rql01I9zvHr4AZk1Z3iPMpRSwxUcwUj/l7fWsvn5DymTB/okvWIP5LCpqdSKEOOZPO 3tO/Szxcqym9nLYCgvIusD5MpAbwSsOmAn8QsW7kXuAzO/lNuc04UshpHMaQlojjUp3Z IAMi2lj/8OQI/2Cd5B2LUJXede8nr30QftqyVE6fZCLi/SiTKNA3sMm9cZhmCge8ICbd +6+smkH8iqXBqJX4ElPCjgWd54cCs/VpfL2vrS+vTleBu8LxtDqOmeHQnV4KqA3bwZ+h ofxkF4tyWaejt9+KdnPz74xWaLKjxHVU6KNffFlxIXMHlP0pEAzW5i5rsJ9+KQGrBpEd HZSQ== 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; bh=IJLO7lK4MuUZ4lhoA53IDhYlXK4mZYX5Rc8GQjN3+24=; fh=4xonmMhAtKqIx1/L+6AvnRLjPY73bTVN/R7AqXSbp7w=; b=WM/SCxdoNCAbiSf0lQk7bi/nNHzB5IxVmB/S15Zqjm7uJBR+DohkQtVhVQC0s1sp3I rEj9RltW9Zit3idQVmNvGPDsxJeQXXTmkOAOaEvsrTkLAJvCGhbiiuiUEGbPGhMljqCF oyAG2UBtiWvnhmSphGZBU4gcE65/T9Gfpvjx8ZbHXhr6tpNkbTLbFwwkJyNBUrF5X/IB OIKPF1u3rDDwnuq+2AHepBickCtonfkrnkmALI7FEyP8odS//9bwhK675gKxYbThYFR8 LEEir7r6kaqIqi2IaJW8MuFJFuLt5ZFIYn43FBh2dqXx5WbYmOxQFyqqn0InbyoBuFV1 JBdg==; 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-166290-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166290-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id t39-20020a056a0013a700b006ed89d1cc23si745568pfg.356.2024.05.02.03.13.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 03:13:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-166290-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; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-166290-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166290-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 81B00281A8F for ; Thu, 2 May 2024 10:13:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DD80958213; Thu, 2 May 2024 10:12:52 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6DAAF56440; Thu, 2 May 2024 10:12:50 +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=1714644772; cv=none; b=gG6xMiBnnuL1uvZaml2RtKVU4IMqZFNbKm/ffSoT3jcTrPv4yc2l12GkXBs/dvuGaeyFZ+srS11kLYEKN4MEmAa7j8OLyx+X2sPphjJyEXIkC7FnZ2ht36O5tvOsakI4XwBGYQWPq3ucOi40NhQExFHrJB9vqZgpgeuGcZys6L8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714644772; c=relaxed/simple; bh=IJLO7lK4MuUZ4lhoA53IDhYlXK4mZYX5Rc8GQjN3+24=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ubIYNkTy4zK26p6WpEXeOKsOzYzYtLZA3nxjBFBEX+js7+3GVH5Em3UAEvO7nfxmcxHJEy4+R5NBLRJ6sx9p1JO2AZ5PygTQmVvnKYO1WEzji3gTMGg/2pp9Pe68WpDuqYk1EI2ed/zjaMkuNFQt7xRD4LdCcvG/vw3cjDxyY5E= 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 073A62F4; Thu, 2 May 2024 03:13:15 -0700 (PDT) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id F12A53F793; Thu, 2 May 2024 03:12:45 -0700 (PDT) Date: Thu, 2 May 2024 11:12:43 +0100 From: Sudeep Holla To: Andy Shevchenko Cc: Sunil V L , 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, Sudeep Holla , 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 , =?iso-8859-1?Q?Bj=F6rn_T=F6pel?= 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 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. -- Regards, Sudeep