* [PULL 0/1] ppc queue
@ 2022-08-04 18:41 Daniel Henrique Barboza
2022-08-04 18:41 ` [PULL 1/1] hw/ppc: sam460ex.c: store all GPIO lines in mal_irqs[] Daniel Henrique Barboza
2022-08-04 21:05 ` [PULL 0/1] ppc queue Richard Henderson
0 siblings, 2 replies; 3+ messages in thread
From: Daniel Henrique Barboza @ 2022-08-04 18:41 UTC (permalink / raw)
To: qemu-devel; +Cc: qemu-ppc, danielhb413, peter.maydell, richard.henderson
The following changes since commit 2480f3bbd03814b0651a1f74959f5c6631ee5819:
Merge tag 'linux-user-for-7.1-pull-request' of https://gitlab.com/laurent_vivier/qemu into staging (2022-08-03 08:32:44 -0700)
are available in the Git repository at:
https://gitlab.com/danielhb/qemu.git tags/pull-ppc-20220804
for you to fetch changes up to ed021daf2d6c19499ae406055156dc19c073228f:
hw/ppc: sam460ex.c: store all GPIO lines in mal_irqs[] (2022-08-04 15:20:14 -0300)
----------------------------------------------------------------
ppc patch queue for 2022-08-04:
In this short queue we have a fix in the sam460ex machine where we're
not storing all GPIO lines in sam460ex_init().
This is not causing problems (as far as we're aware of) at this moment,
but this is getting in the way of a ppc405 rework we want to do for 7.2,
so let's fix it now.
----------------------------------------------------------------
Daniel Henrique Barboza (1):
hw/ppc: sam460ex.c: store all GPIO lines in mal_irqs[]
hw/ppc/sam460ex.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
^ permalink raw reply [flat|nested] 3+ messages in thread* [PULL 1/1] hw/ppc: sam460ex.c: store all GPIO lines in mal_irqs[] 2022-08-04 18:41 [PULL 0/1] ppc queue Daniel Henrique Barboza @ 2022-08-04 18:41 ` Daniel Henrique Barboza 2022-08-04 21:05 ` [PULL 0/1] ppc queue Richard Henderson 1 sibling, 0 replies; 3+ messages in thread From: Daniel Henrique Barboza @ 2022-08-04 18:41 UTC (permalink / raw) To: qemu-devel Cc: qemu-ppc, danielhb413, peter.maydell, richard.henderson, BALATON Zoltan, Cédric Le Goater We're not storing all GPIO lines we're retrieving with qdev_get_gpio_in() in mal_irqs[]. We're storing just the last one in the first index: for (i = 0; i < ARRAY_SIZE(mal_irqs); i++) { mal_irqs[0] = qdev_get_gpio_in(uic[2], 3 + i); } ppc4xx_mal_init(env, 4, 16, mal_irqs); mal_irqs is used in ppc4xx_mal_init() to assign the IRQs to MAL: for (i = 0; i < 4; i++) { mal->irqs[i] = irqs[i]; } Since only irqs[0] has been initialized, mal->irqs[1,2,3] are being zeroed. This doesn´t seem to trigger any apparent issues at this moment, but Cedric's QOMification of the MAL device [1] is executing a sysbus_connect_irq() that will fail if we do not store all GPIO lines properly. [1] https://lists.gnu.org/archive/html/qemu-devel/2022-08/msg00497.html Cc: Peter Maydell <peter.maydell@linaro.org> Cc: BALATON Zoltan <balaton@eik.bme.hu> Fixes: 706e944206d7 ("hw/ppc/sam460ex: Drop use of ppcuic_init()") Acked-by: BALATON Zoltan <balaton@eik.bme.hu> Reviewed-by: Cédric Le Goater <clg@kaod.org> Message-Id: <20220803233204.2724202-1-danielhb413@gmail.com> Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com> --- hw/ppc/sam460ex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/ppc/sam460ex.c b/hw/ppc/sam460ex.c index 7e8da657c2..0357ee077f 100644 --- a/hw/ppc/sam460ex.c +++ b/hw/ppc/sam460ex.c @@ -384,7 +384,7 @@ static void sam460ex_init(MachineState *machine) /* MAL */ for (i = 0; i < ARRAY_SIZE(mal_irqs); i++) { - mal_irqs[0] = qdev_get_gpio_in(uic[2], 3 + i); + mal_irqs[i] = qdev_get_gpio_in(uic[2], 3 + i); } ppc4xx_mal_init(env, 4, 16, mal_irqs); -- 2.36.1 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PULL 0/1] ppc queue 2022-08-04 18:41 [PULL 0/1] ppc queue Daniel Henrique Barboza 2022-08-04 18:41 ` [PULL 1/1] hw/ppc: sam460ex.c: store all GPIO lines in mal_irqs[] Daniel Henrique Barboza @ 2022-08-04 21:05 ` Richard Henderson 1 sibling, 0 replies; 3+ messages in thread From: Richard Henderson @ 2022-08-04 21:05 UTC (permalink / raw) To: Daniel Henrique Barboza, qemu-devel; +Cc: qemu-ppc, peter.maydell On 8/4/22 11:41, Daniel Henrique Barboza wrote: > The following changes since commit 2480f3bbd03814b0651a1f74959f5c6631ee5819: > > Merge tag 'linux-user-for-7.1-pull-request' of https://gitlab.com/laurent_vivier/qemu into staging (2022-08-03 08:32:44 -0700) > > are available in the Git repository at: > > https://gitlab.com/danielhb/qemu.git tags/pull-ppc-20220804 > > for you to fetch changes up to ed021daf2d6c19499ae406055156dc19c073228f: > > hw/ppc: sam460ex.c: store all GPIO lines in mal_irqs[] (2022-08-04 15:20:14 -0300) > > ---------------------------------------------------------------- > ppc patch queue for 2022-08-04: > > In this short queue we have a fix in the sam460ex machine where we're > not storing all GPIO lines in sam460ex_init(). > > This is not causing problems (as far as we're aware of) at this moment, > but this is getting in the way of a ppc405 rework we want to do for 7.2, > so let's fix it now. Applied, thanks. Please update https://wiki.qemu.org/ChangeLog/7.1 as appropriate. r~ > > ---------------------------------------------------------------- > Daniel Henrique Barboza (1): > hw/ppc: sam460ex.c: store all GPIO lines in mal_irqs[] > > hw/ppc/sam460ex.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-08-04 21:07 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2022-08-04 18:41 [PULL 0/1] ppc queue Daniel Henrique Barboza 2022-08-04 18:41 ` [PULL 1/1] hw/ppc: sam460ex.c: store all GPIO lines in mal_irqs[] Daniel Henrique Barboza 2022-08-04 21:05 ` [PULL 0/1] ppc queue Richard Henderson
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.