From: Aurelien Jarno <aurelien@aurel32.net>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Re: Regression: QEMU 0.8.2 (and CVS) fails to boot a debian arm
Date: Thu, 7 Sep 2006 21:46:33 +0200 [thread overview]
Message-ID: <20060907194632.GA24711@bode.aurel32.net> (raw)
In-Reply-To: <20060907171852.GA18055@bode.aurel32.net>
On Thu, Sep 07, 2006 at 07:18:52PM +0200, Aurelien Jarno wrote:
> On Thu, Sep 07, 2006 at 11:45:37AM +0200, Aurelien Jarno wrote:
> > Paul Brook wrote:
> > >>>There is the same problem with QEMU CVS. Note that using root=/bin/sh
> > >>>works well using root on NFS and even using the emulated SCSI drive.
> > >>I think I have found the problem. Actually the system is not frozen, but
> > >>just very slow. I now get while booting the kernel:
> > >> Calibrating delay loop... 12.16 BogoMIPS (lpj=60800)
> > >>instead of
> > >> Calibrating delay loop... 486.60 BogoMIPS (lpj=2433024)
> > >>
> > >>Note that it is with the versatilepb (or versatileab) machine, the
> > >>problem is not there with the integrator one.
> > >
> > >I've not idea what might be causing this. It works fine for me using both
> > >machine types.
> > >
> >
> > So maybe I am doing something wrong, or I have something broken in my
> > kernel. Here is the command line I used:
> >
> > qemu-system-arm -M versatilepb -kernel vmlinuz -initrd initrd.gz -append
> > "root=/dev/ram console=ttyAMA0" -nographic
> >
> > The kernel and the initrd are available on http://temp.aurel32.net/arm .
> > The initrd is actually the one from the debian-installer. To get a
> > console, select "Go Back" to get a menu where you can select "Execute a
> > shell".
> >
> > I have compared QEMU 0.8.1, QEMU 0.8.2 and QEMU CVS, both on an i386 and
> > an amd64 machines. Versions 0.8.2 and CVS are a lot slower than version
> > 0.8.1, even for booting the kernel.
> >
> > It would be nice if somebody could do the same tests, to make sure it is
> > not related to my machines.
> >
>
> I have been able to determine that the bug has been introduced between
> 20060714 and 20060715, so it is hidden somewhere in the diff attached. I
> will have a closer look later.
>
>From the attached diff, removing this small change make QEMU working
back at normal speed:
diff -Nurd qemu-0.8.2.orig/vl.c qemu-0.8.2/vl.c
--- qemu-0.8.2.orig/vl.c 2006-07-22 19:23:34.000000000 +0200
+++ qemu-0.8.2/vl.c 2006-09-07 21:42:45.962537314 +0200
@@ -774,7 +774,7 @@
return get_clock() / 1000000;
default:
case QEMU_TIMER_VIRTUAL:
- return cpu_get_clock();
+ return cpu_get_ticks();
}
}
It's probably a very wrong patch. As the arm integrator target is
running correctly, my guess is that the sp804 timer call this function
too often, and the small overhead introduced by this change becomes
really important.
--
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
: :' : Debian developer | Electrical Engineer
`. `' aurel32@debian.org | aurelien@aurel32.net
`- people.debian.org/~aurel32 | www.aurel32.net
next prev parent reply other threads:[~2006-09-07 19:46 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-06 10:14 [Qemu-devel] Regression: QEMU 0.8.2 (and CVS) fails to boot a debian arm Aurelien Jarno
2006-09-06 13:08 ` [Qemu-devel] " Aurelien Jarno
2006-09-06 13:32 ` Paul Brook
2006-09-07 9:45 ` Aurelien Jarno
2006-09-07 17:18 ` Aurelien Jarno
2006-09-07 17:31 ` Aurelien Jarno
2006-09-07 19:46 ` Aurelien Jarno [this message]
2006-09-07 11:12 ` [Qemu-devel] Load PL110 module driver to reserve a specified address? Tieu Ma Dau
2006-09-07 13:14 ` Paul Brook
-- strict thread matches above, loose matches on Subject: below --
2006-09-26 17:27 [Qemu-devel] Re: Regression: QEMU 0.8.2 (and CVS) fails to boot a debian arm Martin Guy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060907194632.GA24711@bode.aurel32.net \
--to=aurelien@aurel32.net \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).