Skip to contentSkip to conversation

sparc32 reset's regression

Qemu-devel Artyom Tarasenko 2 participants 3 messages Aug 5, 2009 – Aug 6, 2009

lore
Share & tools
lore
#0 lore raw

reset on SS-10/SS-20 machines hangs on memory detection if qemu-system-sparc is launched with OBP (not OpenBios).

git bisect shows that the regression comes with the patch "Don't set IRQs on device reset and loadvm/savevm" on 2009-06-17 19:20:01.

Artyom

#1 lore raw
Quoted 5 lines · Artyom Tarasenko

reset on SS-10/SS-20 machines hangs on memory detection if qemu-system-sparc is launched with OBP (not OpenBios).

git bisect shows that the regression comes with the patch "Don't set IRQs on device reset and loadvm/savevm" on 2009-06-17 19:20:01.

The commit looks fine to me. Would this patch happen to fix the bug?

From 9dbada21174183433bd5560c59d3dc7a1a89bbe9 Mon Sep 17 00:00:00 2001
From: Blue Swirl <[email protected]>
Date: Wed, 5 Aug 2009 18:31:32 +0000
Subject: [PATCH] Fix reset

---
 hw/slavio_intctl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
hw/slavio_intctl.c +1 -1
index 188511e..623f82c 100644
@@ -383,7 +383,7 @@ static void slavio_intctl_reset(void *opaque)
     s->intregm_disabled = ~MASTER_IRQ_MASK;
     s->intregm_pending = 0;
     s->target_cpu = 0;
-    slavio_check_interrupts(s, 0);
+    slavio_check_interrupts(s, 1);
 }
 
 static void slavio_intctl_init1(SysBusDevice *dev)
Signature · 1 line
1.5.6.5
#2 lore raw
Quoted 1 line

The commit looks fine to me. Would this patch happen to fix the bug?

Yes, this patch fixes the bug, thanks.

It can be though that the bug is not directly related to the initial commit. There seems to be a race condition. Sometimes the bug didn't appear even without the fix if I put a lot of DPRINTFs in irq handling in sun4m.c and cpu-exec.c and turn the logging on. Unfortunately it's not always reproducible, so I can't tell yet which printf hides the problem.