Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1033618lqm; Thu, 2 May 2024 03:20:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVUVftANhRS0lftXgpimwKW3MRd9atBlwiR6nAobMq2Pg13qJBSXeotHoSlKXPn8UR6cMjMlkBOlirvVi05hCZTmuaBYSoOZ/5zrV7jHw== X-Google-Smtp-Source: AGHT+IFd7Kv1bfBShd7EEIasK1tk6UE3d1L9G7Lxh8fUj/DpL+52bUcXOd1zjyxVcREs+fDkoyuV X-Received: by 2002:a17:906:fb17:b0:a58:e3bd:f43d with SMTP id lz23-20020a170906fb1700b00a58e3bdf43dmr1111649ejb.2.1714645220707; Thu, 02 May 2024 03:20:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714645220; cv=pass; d=google.com; s=arc-20160816; b=IurYls2Dd/R4wJef2I8W+Rtw44Nxv1tzx6bHbTOIhYc1ZVjVsmfnuaALHCpbHjDLn9 OpUFJNZM9uNKdvA7Phj61hwiGYSb8YzxcGsDWr6P0aVWRUtnI8Jxl4UsvEYYYA9uanYm 584yz1JWGTRVuV0+YZYr38dcC3Pg+xloGCgpuJh1eHITdZJSU/+I+8Owg1YJSgf7PLnh BqLOrefiWJlOA2qSfB56ruWCjUToCYU6C3vAoDHrmAXKhkqwtm805ZS90VdHeHPee7zV cVmxVW9vm5mx2wfmGwk+H5PXlnFdpOMBblKfA8EdLQzj3VkrVP8pvksuqrmyLzN8GFU4 TjcA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization: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=PekxGfbpK3dpcPEYhanwiVQgOcD+dmcrM4AkvdsP4Ms=; fh=mxSbnC0XbY3oihSgxenlF5+sWmPmui8x7lG+2IW1pTE=; b=HVx0t7dKd74w4By0SUOWxzAkiCwiTuidnvDsBOeEnZRNxHg0BqWr2FO+WYQxZTUVr0 kXY9JiiRTZG7aHS4Prp0h00ZQHgn8tS7juIYh4S7WklDUPKtLi1mCOYUmyJHCusqMOlI SXfMgkT2KI7R8FxWM+zY5lfmIiiu4hZVd0OoicCxAPB2w4HKhyd101Frb3LHjNID5UQK 2HW6xSvJfwT2gtMh2O2bs/2oqtO0fYR+QbRQYug5HoyXFlMlgm3f7PbErUJgnlJF0dkO RCEqgUft1stA25ZZPmBxY5UCSbYfK39/rSBrRqcZPBPgkiQdN5Hlede8pjpIv0v9wwca dz+g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=eR8KkMxA; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-166295-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166295-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id nc31-20020a1709071c1f00b00a55ba05eae0si390385ejc.382.2024.05.02.03.20.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 03:20:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-166295-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=eR8KkMxA; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-166295-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166295-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 31CDD1F2126E for ; Thu, 2 May 2024 10:20:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 416AC58AA7; Thu, 2 May 2024 10:20:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="eR8KkMxA" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F253356B73; Thu, 2 May 2024 10:20:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714645207; cv=none; b=EYxOtFqeqfAG43P369zAg/5gMFWsPg3QCthUZsL2apHNdq6MPzRrp1rVbRISnGOAyb5WVrDkuArde+gWggfiFh3XsxU9oMhJkmpm4HKwR7IDi+uToN9JDx+M/G92G65uxEdCs09+6lD6Sf64SOIJkyIvwv0y3KFa7/7+ej/coB0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714645207; c=relaxed/simple; bh=UBlJgz5xG7D/qPa02aoxxcu20LLe8O6olWTsYyH24Fs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Us1dGavvep9YLzW52aPyud78wvTcI4/KRiacFr1OWMjgSiA+oyuU0soRLVNLTUpmQfMV19DIKTj4T4TKXZyXQ0EbMc4UETUTxFEG103d5qaFap+Qc2lLLAcxtU4vzspV6zbUrm33sd/HBGBN8EYHgzZdPp2a3pcPl5YLJVRSfRs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=eR8KkMxA; arc=none smtp.client-ip=192.198.163.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714645206; x=1746181206; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=UBlJgz5xG7D/qPa02aoxxcu20LLe8O6olWTsYyH24Fs=; b=eR8KkMxAtUNk6oNpSb+R2gKKPNp1+VrqSKx+kVed7+dMqBgW3q9dGvM5 2OKN75juDi7EV7ABiBU0ur8esTG3OlE3ivdzehkZX6ksvnYmQtHqflHet TksBoF57soSkcZC4qslTkn1v6HzFd3OqQS4RfIqLEh9rcLfcNFjaMywJJ 7ywasKlEOpl2S16+ZaG8sbPg75Jp6ZJp4pWaC4wFxEGdhC6t9b4VSd6wW TBBSKsGXHV+0HiZTXAsR5ub8RDzbQcuIwadTj0IeNENHqVXi6Ov7W2TvP XT3fgoGZtDoEvHacexiT8KsBLT6UCIEnLpcIKwPq2hPL+fUQZaIoKbJSO A==; X-CSE-ConnectionGUID: ZjVvLZInTRO6plmMaaq+eg== X-CSE-MsgGUID: mryL4ml3RtaO2nDKvqsxKQ== X-IronPort-AV: E=McAfee;i="6600,9927,11061"; a="10278806" X-IronPort-AV: E=Sophos;i="6.07,247,1708416000"; d="scan'208";a="10278806" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 May 2024 03:20:05 -0700 X-CSE-ConnectionGUID: aiX0mY4vQSeFpVaHn0EPsg== X-CSE-MsgGUID: Z4pRODJ+R8ebvjkfa5L59g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,247,1708416000"; d="scan'208";a="27156971" Received: from smile.fi.intel.com ([10.237.72.54]) by fmviesa010.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 May 2024 03:20:00 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1s2TXf-00000003HNp-2W6n; Thu, 02 May 2024 13:19:55 +0300 Date: Thu, 2 May 2024 13:19:55 +0300 From: Andy Shevchenko To: Sudeep Holla 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, 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: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo 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. -- With Best Regards, Andy Shevchenko