All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Andreas Färber" <afaerber@suse.de>
To: Alexander Graf <agraf@suse.de>,
	Frederic Konrad <fred.konrad@greensocs.com>
Cc: Alexey Kardashevskiy <aik@ozlabs.ru>,
	qemu-ppc <qemu-ppc@nongnu.org>,
	qemu-devel <qemu-devel@nongnu.org>,
	gkurz@linux.vnet.ibm.com
Subject: Re: [Qemu-devel] Bug with smp ppc guest.
Date: Thu, 03 Apr 2014 20:39:50 +0200	[thread overview]
Message-ID: <533DAAF6.1000104@suse.de> (raw)
In-Reply-To: <EE8A72AC-3E83-4C79-ACE6-475F6FE82EEF@suse.de>

Am 03.04.2014 20:26, schrieb Alexander Graf:
> 
> On 03.04.2014, at 19:00, Frederic Konrad <fred.konrad@greensocs.com> wrote:
> 
>> On 03/04/2014 17:29, Andreas Färber wrote:
>>> Hi Fred,
>>>
>>> Am 03.04.2014 17:19, schrieb Frederic Konrad:
>>>> I tried to boot a mpc85xx smp image with a new platform inside qemu.
>>>>
>>>> This command line reproduce the issue:
>>>> ./ppc-softmmu/qemu-system-ppc -M mpc8544ds -kernel zImage --smp 2
>>>>
>>>> This use to work but since this commit:
>>>> d197fdbc3b83655f3c145722805f0998c04dce16
>>>>
>>>>
>>>> target-ppc: Reset SPRs on CPU reset
>>>>
>>>>     
>>>>     This resets SPR values to defaults on CPU reset. This should help
>>>>
>>>>     with little-endian guests reboot issues.
>>>>
>>>> I get some errors inside the guest:
>>> Is this after today's fix?
>>>
>>> http://git.qemu-project.org/?p=qemu.git;a=commit;h=87d8354de3560eb705bcee83142d775f703177a6
>>>
>>> Regards,
>>> Andreas
>>>
>> Hi Andreas,
>>
>> I just tried seems it doesn't make any difference for me ;).
> 
> That patch should only have an effect when you're running with KVM which you probably don't :).
> 
> I can see the same breakage here, but only when my guest kernel is e500v2. With an e500mc kernel (even for -M mpc8544ds) it works fine. The secondary core also does get woken up. So it's probably something related to SPE emulation - hrm.

I think I found it:

hw/ppc/e500.c:
        env->spr[SPR_BOOKE_PIR] = cs->cpu_index = i;

With this patch this gets overwritten to spr->default_value, so the CPUs
end up having the same value on reset.

http://git.qemu-project.org/?p=qemu.git;a=blobdiff;f=target-ppc/translate_init.c;h=954dee3ec27b6a00559c878b8248ec6a07f35d79;hp=6084f40f28a62903e59db40771f33dd3e2c2996d;hb=d197fdbc3b83655f3c145722805f0998c04dce16;hpb=7aaf4957efad2bf6ac449d0caa9a1535f61006bc

Regards,
Andreas

-- 
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg

      reply	other threads:[~2014-04-03 18:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-03 15:19 [Qemu-devel] Bug with smp ppc guest Frederic Konrad
2014-04-03 15:29 ` Andreas Färber
2014-04-03 17:00   ` Frederic Konrad
2014-04-03 18:26     ` Alexander Graf
2014-04-03 18:39       ` Andreas Färber [this message]

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=533DAAF6.1000104@suse.de \
    --to=afaerber@suse.de \
    --cc=agraf@suse.de \
    --cc=aik@ozlabs.ru \
    --cc=fred.konrad@greensocs.com \
    --cc=gkurz@linux.vnet.ibm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@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 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.