qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Blue Swirl <blauwirbel@gmail.com>
To: 陈宇飞 <cyfdecyf@gmail.com>, "Artyom Tarasenko" <atar4qemu@googlemail.com>
Cc: Qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] SPARC not booting SMP Linux kernel
Date: Tue, 27 Apr 2010 21:23:43 +0300	[thread overview]
Message-ID: <j2sf43fc5581004271123p4801c216se688caa5395970ed@mail.gmail.com> (raw)
In-Reply-To: <j2k270169101004262322rfb9f3bdfs94de94f7765e4ccc@mail.gmail.com>

On 4/27/10, 陈宇飞 <cyfdecyf@gmail.com> wrote:
> Actually this has been test before.
>
>  http://lists.gnu.org/archive/html/qemu-devel/2006-08/msg00512.html

That was before I added SMP support to OpenBIOS.

>  I've tested Debian 3.1 (with Linux 2.4.27.3) and Debian 4.0 (with
>  Linux 2.6.18.6), on both qemu 0.10.6 and 0.12.3, emulating machine is
>  set to SS-20.
>
>  1. non-smp kernel successfully boots with both -smp 1 or -smp 2.
>  2. smp kernel can only boot with -smp 1. (The 2.6 kernel is cross
>  compiled by gcc 4.2.4 since no binary package is available)
>
>  Some investigation with qemu's debug message and Linux kernel dump
>  (the 2.6 kernel) shows that
>
>  1. When the boot cpu tries to start cpu 1, cpu 1 calls
>  local_irq_enable. After that, cpu 1 get's lot's of level 14 interrupt.
>  2. Printing out the executed TBs' pc values shows that kernel
>  interrupt handler is executed.
>  3. Qemu's do_interrupt debug message shows that cpu 1 always get level
>  14 interrupt at the same pc, which is the nop instruction just after
>  the "mov %g1, %psr" instruction.
>
>  I guess that the interrupt is not cleared even after the execution of
>  the interrupt handler. I've found debian installation report which
>  boots smp linux kernel, so I thinks this problem is caused by qemu?
>
>  I'm tring to fix this problem but I'm not familiar with sparc
>  architecture, is there any clue?

This sounds awfully familiar to the problems Solaris had with
interrupts. Does the problem still exist with git HEAD version of
QEMU?

  reply	other threads:[~2010-04-27 18:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-27  6:22 [Qemu-devel] SPARC not booting SMP Linux kernel 陈宇飞
2010-04-27 18:23 ` Blue Swirl [this message]
2010-04-28  5:53   ` 陈宇飞
2010-06-22  5:46     ` Artyom Tarasenko
2010-06-22  8:10       ` 陈宇飞
2010-06-22 22:29         ` Artyom Tarasenko

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=j2sf43fc5581004271123p4801c216se688caa5395970ed@mail.gmail.com \
    --to=blauwirbel@gmail.com \
    --cc=Qemu-devel@nongnu.org \
    --cc=atar4qemu@googlemail.com \
    --cc=cyfdecyf@gmail.com \
    /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).