From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=95.215.58.147 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796317720; b=fn7QFHGDKZCveVVOvW0jpeodVRtTKOfVU9zUVX6CdHZ4r5iDaWxjI/q5v/8LLm4B//+r pVqQgMwrz8UqRJGSkxLaJpVTWXdny5i2Vz3tIkOq4TnQzMlgUTh7HF9jX/R2SD0tTv+F9 vw2aSrZrn20x7PpU5NyywnNFyX6ipz4sBiXBu4mkE2AGh82By03oBO4BfwpN9UpV4la6s 2XYK33POgRhuoUIB7E1RSMHshIgqYLfpvYj+B8iAicMDgW8DP4OE9kA8SCOAmmxlENv3o cDBrxXSj9BpGWcrkWI7nJGywg3jMsw0XHWdaoshcOcnEnoYpWjOgTVu3zaZYRWTl6gA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796317720; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=+OeTr0GwFpG1933FOR+D2QUDbWzvuRj8J5MXkc5gzMw=; b=cevGNk1Qpc5CotUorjF1jJ1ZMciWXaBiWdAoKkSQi+76tbkiqxSImA42j2PAbKeDApPp e3oQkVcAD1AZZW0TMPh2/etDfJr/XiTbLfprglCXVwox6KaZjCQNSpGolKlZdxIHk9Kt3 qq9CVoIb6lW8ohJs4njA4MTt2e4kCXShRGgxaqf2C5lSeBHJXuOeQYpB6msmftrNegdbV w7NBPVi+G0vmzsdXEzP4mMfYwW+1CU3Jp88SXDHaOfQjwdsBw/XT9AzT+ZvDgSXKnu3GK N76BYdoaf19m6khncDtS7l+jGivfK/6zS1zGTtJnwNfv5jz4YSt01HV1lUFNVYwfIeg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=J876seNv; arc=none smtp.remote-ip=95.215.58.147 Received: from mta1.migadu.com (out-147.mta1.migadu.com [95.215.58.147]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 75ADF606A337 for ; Thu, 3 Dec 2026 17:08:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 75ADF606A337 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=J876seNv X-Envelope-To: linux-kernel@vger.kernel.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-kernel@vger.kernel.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-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <179623439658.978469.1721057549250097357.b4-review@b4> 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