qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Broken Microblaze timer
@ 2012-06-14  2:29 Peter Crosthwaite
  2012-06-14  9:19 ` Paolo Bonzini
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Crosthwaite @ 2012-06-14  2:29 UTC (permalink / raw)
  To: qemu-devel@nongnu.org Developers, Edgar E. Iglesias
  Cc: Anthony Liguori, Paul Brook

Hi all,

For a while now I have had this hack in my tree:

Author: Peter A. G. Crosthwaite <peter.crosthwaite@petalogix.com>
Date:   Fri Mar 30 15:04:05 2012 +1000

    async.c: disabled event notifications.

    This is a nasty hack thats needed to prevent the xilinx timer from
deadlocking

    Signed-off-by: Peter A. G. Crosthwaite <peter.crosthwaite@petalogix.com>

diff --git a/async.c b/async.c
index 85cc641..6173a59 100644
--- a/async.c
+++ b/async.c
@@ -106,7 +106,7 @@ void qemu_bh_schedule(QEMUBH *bh)
     bh->scheduled = 1;
     bh->idle = 0;
     /* stop the currently executing CPU to execute the BH ASAP */
-    qemu_notify_event();
+    //qemu_notify_event();
 }

Obviously this sucks as a patch, but without this hack, the system
freezes on boot. I managed to ascertain that its coming from the
ptimer used by the system timer (hw/xilinx_timer.c). The CPU is either
halted and never resumes, or the timer is flooding with halt requests
and the CPU never gets another look in.

The question is, is this a failure in ptimer, xilinx_timer or the
async framework? Can ptimer be misused such that the CPU is locked up?

I wish to push my linux image as test image for microblaze little
endian, but this issue acts as a blocker. I could play with kernel
configs to get it to behave like the s3adsp image of Edgars, but id
rather fix the issue in QEMU. I will upload my images to qemu.org when
I sort out accnts etc.

Regards,
Peter

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-06-15  5:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-14  2:29 [Qemu-devel] Broken Microblaze timer Peter Crosthwaite
2012-06-14  9:19 ` Paolo Bonzini
2012-06-14 22:39   ` Peter Chubb
2012-06-15  4:40     ` Peter Crosthwaite
2012-06-15  5:07       ` Peter Chubb

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).