Hi Andrew, 

> From: Andrew Jeffery <and...@codeconstruct.com.au>
> Sent: Thursday, January 30, 2025 11:55 AM
> To: Jamin Lin <jamin_...@aspeedtech.com>; Cédric Le Goater <c...@kaod.org>;
> Peter Maydell <peter.mayd...@linaro.org>; Steven Lee
> <steven_...@aspeedtech.com>; Troy Lee <leet...@gmail.com>; Joel Stanley
> <j...@jms.id.au>; open list:ASPEED BMCs <qemu-...@nongnu.org>; open
> list:All patches CC here <qemu-devel@nongnu.org>
> Cc: Troy Lee <troy_...@aspeedtech.com>; Yunlin Tang
> <yunlin.t...@aspeedtech.com>
> Subject: Re: [PATCH v1 06/18] hw/intc/aspeed: Introduce AspeedINTCIRQ
> structure to save the irq index and register address
> 
> On Tue, 2025-01-21 at 15:04 +0800, Jamin Lin wrote:
> > The INTC0 controller supports GICINT128 to GICINT136, mapping 1:1 to
> > input and output IRQs 0 to 8. Previously, the formula "address &
> > 0x0f00" was used to derive the IRQ index numbers.
> >
> > However, the INTC0 controller also supports GICINT192_201, mapping 1
> > input IRQ pin to 10 output IRQ pins. The pin numbers for input and
> > output are different.
> > Additionally, the INTC0 controller supports routing to GIC, SSP, TSP,
> > and BOOTMCU, making it difficult to use a formula to determine the
> > index number of
> > INTC0 model supported input and output IRQs.
> 
> It's also a bit difficult to follow, even having looked at the datasheet. Do 
> you
> mind adding some documentation with discussion and a diagram of the
> components involved and the potential interrupt paths?
> Further, it would be great if the documentation also described the motivation
> for the interrupt chaining involving involving INT128-159, INTM*, and
> GICINT192_201, GICINT208 and GICINT224. Clearly it's a thing, but, why?
> 
> 

Please see my comments in patch 12.
Thanks for your review and suggestion.
Jamin

> Andrew

Reply via email to