From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EDF3E606A32C for ; Thu, 3 Dec 2026 17:08:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=RYzEuuE/; dkim=fail reason="signature verification failed" (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=J876seNv DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=s31tvnz8M4hlJBIJ5e6lFBvmx2nxMKb1x8PcjzwnKaM=; b=RYzEuuE/n/aR2OudE5kKt8ydW+ 4vvi+SLX3zXxRHdxjFyYd9XBDBOd9PAuREAThQH13lLhvu3TEG7uh0PDVeXZrRDldFzOpFZ6aEthu TFDrOydRwJ9YNYfBZmGf9LSbkUarj76IGzZXkEMY8HSbB1EU6TcI9zHnbxTCV3fUJQsApH/dZsAiB Y3ScMZOVIh9XJuSne1S1dGa93NdycMmDOXOcKxTGnvwMdvO3/my6E4aC41VH6CGDzzx4Hzrhe+QhR NBuEjclm2Nb+lmcYWaIaW7Yag1XOMA42IkfRUTEir7gZJECXSxaw8Y+BDn75qEY2bdkgVFiQg5OPi sTsOA5rg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZAIU-0000000FNfX-3EtR; Thu, 03 Dec 2026 17:08:45 +0000 Received: from out-144.mta0.migadu.com ([2001:41d0:1004:224b::90] helo=mta0.migadu.com) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZAIR-0000000FNeV-3aRQ for linux-riscv@lists.infradead.org; Thu, 03 Dec 2026 17:08:41 +0000 X-Envelope-To: linux-riscv@lists.infradead.org DKIM-Signature: a=rsa-sha256; bh=LWvOFwJhfGY9xmBIKcG4kXiqTwDhy2GSaMEXKK36zdA=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1796317717; v=1; x=1796922517; b=J876seNvv2GQ54lpEKRxDYbrYLCASM4GmK5SGLFOOOtZHZb7KoEEovSqL/9J8LOZVuexllQH Str+OxX4KHJbPYkCNUcpfX8CTh/BxPAI6yiQRmr4abdWcw8xN8B3vZVFY6jLa8A2G6MWRpDI6kv bjoZpDCZXcBSiLrNdYfp7FRE= X-Envelope-To: linux-riscv@lists.infradead.org Received: by smtp.migadu.com with ESMTPS id db02cdf63f77e59a; Thu, 03 Dec 2026 17:08:37 +0000 X-Mizu-Trace-ID: db02cdf63f77e59a X-Migadu-Flow: FLOW_OUT Date: Thu, 3 Dec 2026 18:07:49 +0100 From: Andrew Jones To: Jason Gunthorpe Cc: linux-riscv@lists.infradead.org, iommu@lists.linux.dev, linux-kernel@vger.kernel.org, tomasz.jeznach@linux.dev, jgg@ziepe.ca, joro@8bytes.org, will@kernel.org, robin.murphy@arm.com, pjw@kernel.org, palmer@dabbelt.com, anup@brainfault.org, tglx@kernel.org, kevin.tian@intel.com, fangyu.yu@linux.alibaba.com, nutty.liu@hotmail.com Subject: Re: [PATCH v7 3/5] irqchip/riscv-imsic: Add MSI address list Message-ID: References: <20261022154603.1374754-1-andrew.jones@linux.dev> <20261022154603.1374754-4-andrew.jones@linux.dev> <179623439658.978469.1721057549250097357.b4-review@b4> X-Archived-By: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <179623439658.978469.1721057549250097357.b4-review@b4> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261203_090840_034558_55DDE930 X-CRM114-Status: GOOD ( 14.01 ) X-Spam-Score: -2.1 (--) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" X-Spam-Status: No, score=-13.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Wed, Dec 02, 2026 at 01:59:56PM -0400, Jason Gunthorpe wrote: > > Upcoming RISC-V IOMMU interrupt remapping needs to map every possible > > host IMSIC target into one contiguous MSI IOVA range. MSI message > > composition then uses the target CPU's position within that range. > > > > Build an IMSIC physical address array indexed by logical CPU. > > Require every possible CPU to have an initialized IMSIC page before > > publishing the array. This preserves physical address zero as a valid > > target and guarantees the array has num_possible_cpus() entries. > > > > The array size and each target's index can therefore be derived > > directly, without storing duplicate count or per-CPU index metadata. > > > > Signed-off-by: Andrew Jones > > Signed-off-by: Andrew Jones > > Tested-by: Fangyu Yu > > Acked-by: Thomas Gleixner > > Reviewed-by: Nutty Liu > > Reviewed-by: Anup Patel > > Acked-by: Anup Patel > > --- > > drivers/irqchip/irq-riscv-imsic-state.c | 32 +++++++++++++++++++++++++ > > drivers/irqchip/irq-riscv-imsic-state.h | 3 +++ > > 2 files changed, 35 insertions(+) > > Not sure what to make of the Sashiko comments, but the overall notion > seems OK I couldn't find any Sashiko comments for this version (https://sashiko.dev/#/patchset/20261022154603.1374754-1-andrew.jones%40linux.dev) > > Reviewed-by: Jason Gunthorpe Thanks! drew _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv