From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 7D3781AF0C1; Thu, 3 Jul 2025 16:07:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751558829; cv=none; b=J3ju2QVtKmm6LXOROTBDs+t832NMlDDOZYdwRzn/ZFvvFdTu3mchJNrvfdQ23OtR4B4hteAQb0ZwPnd8q4Rg693UtpFN4ysjGHnUocc5uqvhUHJYPhuKjQ6sSEJ9jmPxOGRdTBxOuDVMxYeItd5noFTZKahhGB8rty3B4Tdfwcs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751558829; c=relaxed/simple; bh=ZSkjJVDS/3cGmMplY5tTT0xLsAOMYcsx64kCgAGuo7Q=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=liYYdoXlbxAiE/TpL9U5/oeGx5l2x4d1Tm7+SK7jlq45WBqJid9oSvMtyneeMXO3jIFvFC2elmvNvVa/TUKlGox5eyG/nL8+HyOTw4HKNyNrOp1C0nyzHkImScJ2wvrkTacBEB4jVwen+vJuHcM4df0JxPMGX2lj/HS0IXmVx0U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9A8C3C4CEE3; Thu, 3 Jul 2025 16:07:05 +0000 (UTC) Date: Thu, 3 Jul 2025 17:07:03 +0100 From: Catalin Marinas To: Lorenzo Pieralisi Cc: Marc Zyngier , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Will Deacon , Arnd Bergmann , Sascha Bischoff , Jonathan Cameron , Timothy Hayes , Bjorn Helgaas , "Liam R. Howlett" , Peter Maydell , Mark Rutland , Jiri Slaby , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH v7 21/31] irqchip/gic-v5: Add GICv5 IRS/SPI support Message-ID: References: <20250703-gicv5-host-v7-0-12e71f1b3528@kernel.org> <20250703-gicv5-host-v7-21-12e71f1b3528@kernel.org> Precedence: bulk X-Mailing-List: devicetree@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: <20250703-gicv5-host-v7-21-12e71f1b3528@kernel.org> On Thu, Jul 03, 2025 at 12:25:11PM +0200, Lorenzo Pieralisi wrote: > The GICv5 Interrupt Routing Service (IRS) component implements > interrupt management and routing in the GICv5 architecture. > > A GICv5 system comprises one or more IRSes, that together > handle the interrupt routing and state for the system. > > An IRS supports Shared Peripheral Interrupts (SPIs), that are > interrupt sources directly connected to the IRS; they do not > rely on memory for storage. The number of supported SPIs is > fixed for a given implementation and can be probed through IRS > IDR registers. > > SPI interrupt state and routing are managed through GICv5 > instructions. > > Each core (PE in GICv5 terms) in a GICv5 system is identified with > an Interrupt AFFinity ID (IAFFID). > > An IRS manages a set of cores that are connected to it. > > Firmware provides a topology description that the driver uses > to detect to which IRS a CPU (ie an IAFFID) is associated with. > > Use probeable information and firmware description to initialize > the IRSes and implement GICv5 IRS SPIs support through an > SPI-specific IRQ domain. > > The GICv5 IRS driver: > > - Probes IRSes in the system to detect SPI ranges > - Associates an IRS with a set of cores connected to it > - Adds an IRQchip structure for SPI handling > > SPIs priority is set to a value corresponding to the lowest > permissible priority in the system (taking into account the > implemented priority bits of the IRS and CPU interface). > > Since all IRQs are set to the same priority value, the value > itself does not matter as long as it is a valid one. > > Co-developed-by: Sascha Bischoff > Signed-off-by: Sascha Bischoff > Co-developed-by: Timothy Hayes > Signed-off-by: Timothy Hayes > Signed-off-by: Lorenzo Pieralisi > Reviewed-by: Marc Zyngier > Cc: Will Deacon > Cc: Thomas Gleixner > Cc: Catalin Marinas > Cc: Marc Zyngier Acked-by: Catalin Marinas