qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [PATCH v1 02/18] hw/intc/aspeed: Support different memory region ops


From: Jamin Lin
Subject: RE: [PATCH v1 02/18] hw/intc/aspeed: Support different memory region ops
Date: Tue, 4 Feb 2025 07:00:59 +0000

Hi Andrew, 

> From: Andrew Jeffery <andrew@codeconstruct.com.au>
> Sent: Thursday, January 30, 2025 11:32 AM
> To: Jamin Lin <jamin_lin@aspeedtech.com>; Cédric Le Goater <clg@kaod.org>;
> Peter Maydell <peter.maydell@linaro.org>; Steven Lee
> <steven_lee@aspeedtech.com>; Troy Lee <leetroy@gmail.com>; Joel Stanley
> <joel@jms.id.au>; open list:ASPEED BMCs <qemu-arm@nongnu.org>; open
> list:All patches CC here <qemu-devel@nongnu.org>
> Cc: Troy Lee <troy_lee@aspeedtech.com>; Yunlin Tang
> <yunlin.tang@aspeedtech.com>
> Subject: Re: [PATCH v1 02/18] hw/intc/aspeed: Support different memory
> region ops
> 
> On Tue, 2025-01-21 at 15:04 +0800, Jamin Lin wrote:
> > The previous implementation set the "aspeed_intc_ops" struct,
> > containing read and write callbacks, to be used when I/O is performed
> > on the INTC region.
> > Both "aspeed_intc_read" and "aspeed_intc_write" callback functions
> > were used for INTC0 (CPU DIE).
> >
> > To support the INTC1 (I/O DIE) model, introduces a new "reg_ops"
> > class
> > attribute. This allows setting different memory region operations to
> > support different INTC models.
> 
> Is there a reason not to make it a different type altogether? I'm not sure I 
> like
> the idea of playing tricks with the memory ops. The timer model does
> something similar, but I was toying with the idea of removing that part of its
> implementation...
> 
Please see my comments in Patch 1.

The reason for the changes is that INTC0 and INTC1 have different address space 
and register definitions.
So, I created a separate callback functions for INTC0 and INTC1 register 
read/write operations.
INTC0:
INTC0_10
INTC0_14

INTC1:
INTC1_10
INTC1_14

Thanks-Jamin

> Andrew

reply via email to

[Prev in Thread] Current Thread [Next in Thread]