Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp790386rdg; Fri, 13 Oct 2023 00:41:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH2tjGYyEjwvvGZ0Vlcc2iUc1NmuuN4kEkISAKjiKSKcTXhgi3ZuO2TdqHIVKY794R+Bhzl X-Received: by 2002:a17:903:244f:b0:1c3:19d6:3559 with SMTP id l15-20020a170903244f00b001c319d63559mr38929083pls.1.1697182892158; Fri, 13 Oct 2023 00:41:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697182892; cv=none; d=google.com; s=arc-20160816; b=mXIBuI6TrLMhPlbaPfweYAdUXmE2RLPxSO/OTJWHbARGYFxLEx/xci1WdLKGwL9Zde JrYT0dzxF1Gb+IFUdBEwvVPrIYUAkXlj4ayLi6FIeh2TXIy9Ht3h+/0o/nAKRLeqRL8f 0XE2z7kCg7jz56KQKlx0gLbmr0uBSfvkt/9Lm9VidT+Y0xkwv/I5vyyAhcZBYwSMUbYc yLtPpSokCdPMQKfYDz5PeSTvGMTBaAxwwj7VbG/l/wc2sp4S2Z/MNuVBsgkrmBsMwv37 PhHWQHoaJV3yqTRmM+OuvM75FQUBIk+05FTFKxit+m5gKQ7orwGYaPhyTpzyvaovkAQ+ atfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=HCwC6BY1bb24e17Bl+yq4xWJAW4Po3ldTzp38IgTEq4=; fh=N08tgzsTY113GYJu5NaE6KXqf9pS63hPqE8eVZJbL+8=; b=UQXUn6vADKsDLVzJk+3afaJ3Vae2Nf1sDVIAnCccHn/65kPpl38cWlv5mEWz3/6z7E gUuMB/Y9iRTlmZkvEwb6Gp6lrutTRzbJVE6Imvg4gOLq+s1I/O/pbe3S9XVs+iSOSXk1 HetaL9Tm38mtsQ3VD5Z14+pbIEjeigs8csAxLqEUgZV/RUvSikCeugl1s8v0a9UwI6Tg N/1y+tposk5Hedux4FHAwhSILXnXsQelORXap+cbTMtT9+csxYaaLPXTaAzdafSGD+yJ swk/+zHrmZmRlYIBjq0D55G60LafPPW1w2zIXO8LX7XSgu4SZFzxcrUbpl4ZSMLvNkOH NDug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jCfzTnfS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id d2-20020a170903230200b001c62bbdde51si4292652plh.479.2023.10.13.00.41.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 00:41:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jCfzTnfS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 8A91F81F38A1; Fri, 13 Oct 2023 00:41:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229886AbjJMHlU (ORCPT + 99 others); Fri, 13 Oct 2023 03:41:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229688AbjJMHlS (ORCPT ); Fri, 13 Oct 2023 03:41:18 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACD2083 for ; Fri, 13 Oct 2023 00:41:16 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AA431C433C7; Fri, 13 Oct 2023 07:41:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697182876; bh=HCwC6BY1bb24e17Bl+yq4xWJAW4Po3ldTzp38IgTEq4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jCfzTnfSPNpr8oHgUrMAWWnGod72/w0SFUhRryo5wbDOeG76rzR9TMuDoQ2Sad0hP /j71x4Nhiuaz6uiC8BwRiTh5/TE6HuK+cT6suCUjlZ3JHWFA0Ma7vnSANFyuFDANaw feIEzFicz9B/+sM24DE+X12K8tAMgUpenuZINmyQkg46K2qmdUAft2WB84uHs/3hfE mLAITV3d5wU9XT33C2qGpePlAaR81pj4iInfmIBp+VHm4UYM1wdGKmpVaYeAqbtwk5 LUPUm9uYj2HD/MlLl9A4Dr8alOYiy8u/HbxvCWmFnn+saMX4Vz4APGkZt1ZnMA+t6f kWz7+6MPDP24A== Date: Fri, 13 Oct 2023 08:41:10 +0100 From: Conor Dooley To: Anup Patel Cc: Palmer Dabbelt , Paul Walmsley , Thomas Gleixner , Marc Zyngier , Rob Herring , Krzysztof Kozlowski , Frank Rowand , Conor Dooley , Atish Patra , Andrew Jones , Sunil V L , Saravana Kannan , Anup Patel , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Conor Dooley , Krzysztof Kozlowski Subject: Re: [PATCH v10 07/15] dt-bindings: interrupt-controller: Add RISC-V incoming MSI controller Message-ID: <20231013-pluck-skies-1b4ee57e770c@spud> References: <20231003044403.1974628-1-apatel@ventanamicro.com> <20231003044403.1974628-8-apatel@ventanamicro.com> <20231012-countable-darkish-7e449edc763d@spud> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="SpvMUTlv7MvkLw0D" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Fri, 13 Oct 2023 00:41:28 -0700 (PDT) --SpvMUTlv7MvkLw0D Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey Anup, On Fri, Oct 13, 2023 at 12:16:45PM +0530, Anup Patel wrote: > On Thu, Oct 12, 2023 at 10:05=E2=80=AFPM Conor Dooley = wrote: > > On Tue, Oct 03, 2023 at 10:13:55AM +0530, Anup Patel wrote: > > > We add DT bindings document for the RISC-V incoming MSI controller > > > (IMSIC) defined by the RISC-V advanced interrupt architecture (AIA) > > > specification. > > > > > > Signed-off-by: Anup Patel > > > Reviewed-by: Conor Dooley > > > > Just FYI, since they'll reply to this themselves, but some of the > > Microchip folks have run into problems with sparse hart indexes while > > trying to use the imsic binding to describe some configurations they > > have. I think there were also so problems with how to describe to a > > linux guest which file to use, when the first hart available to the > > guest does not use the first file. They'll do a better job of describing > > their problems than I will, so I shall leave it to them! >=20 > Quoting AIA spec: > "For the purpose of locating the memory pages of interrupt files in the > address space, assume each hart (or each hart within a group) has a > unique hart number that may or may not be related to the unique hart > identifiers (=E2=80=9Chart IDs=E2=80=9D) that the RISC-V Privileged Archi= tecture assigns > to harts." >=20 > It is very easy to get confused between the AIA "hart index" and > "hart IDs" defined by the RISC-V Privileged specification but these > are two very different things. The AIA "hart index" over here is the > bits in the address of an IMSIC file. >=20 > This DT binding follows the IMSIC file arrangement in the address > space as defined by the section "3.6 Arrangement of the memory > regions of multiple interrupt files" of the AIA specification. This > arrangement is MANDATORY for platforms having both APLIC > and IMSIC because in MSI-mode the APLIC generates target > MSI address based the IMSIC file arrangement described in the > section "3.6 Arrangement of the memory regions of multiple > interrupt files". In fact, this also applies to virtual platforms > created by hypervisors (KVM, Xen, ...) Thanks for pointing this out - I'll pass it on and hopefully it is helpful to them. If not, I expect that you'll hear :) Cheers, Conor. --SpvMUTlv7MvkLw0D Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZSj0lgAKCRB4tDGHoIJi 0npGAQC6rGsNEsyvptpG1+5wrE9ET1h1yjmigGMA1ot+EgTHewD/eQHPUyx/z1tG Jx0CDrTp0SXbanOo3/If7opBTzOB5Qc= =owzU -----END PGP SIGNATURE----- --SpvMUTlv7MvkLw0D--