Re: [Qemu-devel] [Qemu-ppc] [PATCH 08/13] pseries: Update SLOF for NVRAM support

2012-12-07 Thread Alexander Graf

On 07.12.2012, at 12:48, Erlon Cruz wrote:

> Hi Nikunj,
> 
> Its probabily might be a problem that happen only with SLES. I could install 
> fedora 17 ppc. The instalation was OK, the only problem I had was in the 
> boot, fedora needs the NVRAM capability. 
> David, Is this upstream already?

It's in my tree, so it will be in master probably by next week.


Alex



Re: [Qemu-devel] [Qemu-ppc] [PATCH 08/13] pseries: Update SLOF for NVRAM support

2012-12-07 Thread Erlon Cruz
Hi Nikunj,

Its probabily might be a problem that happen only with SLES. I could
install fedora 17 ppc. The instalation was OK, the only problem I had was
in the boot, fedora needs the NVRAM capability.
David, Is this upstream already?

Erlon

On Fri, Dec 7, 2012 at 6:10 AM, Nikunj A Dadhania  wrote:

>
> Hi Erlon,
>
> Erlon Cruz  writes:
> > Hi Alex,
> >
> >
> >> Could you please post
> >>
> >>   * the exact command line you were using
> >>
> >
> >  ./ppc64-softmmu/qemu-system-ppc64 -machine type=pseries,usb=off -m 512
> > -net nic,vlan=0 -net tap -nographic -cdrom
> > /exports/isos/SLES-11-SP2-DVD-ppc64-GM-DVD1.iso -hda
> > /exports/sles11_sp2.qcow2 -monitor unix:/dev/tty1,nowait,server
>
> I have had success with following command:
>
> ./ppc64-softmmu/qemu-system-ppc64 -machine type=pseries,usb=off -m 512
> -nographic -cdrom ../../distro/openSUSE-NET64-ppc64-Build0022-Media.iso
> -hda ../../imgs/guest_suse.disk
>
> Using the following server repo:
> http://download.opensuse.org/ports/ppc/distribution/12.2/repo/oss
>
> I havent tried SLES tough.
>
> Regards
> Nikunj
>
>


Re: [Qemu-devel] [Qemu-ppc] [PATCH 08/13] pseries: Update SLOF for NVRAM support

2012-12-07 Thread Nikunj A Dadhania

Hi Erlon,

Erlon Cruz  writes:
> Hi Alex,
>
>
>> Could you please post
>>
>>   * the exact command line you were using
>>
>
>  ./ppc64-softmmu/qemu-system-ppc64 -machine type=pseries,usb=off -m 512
> -net nic,vlan=0 -net tap -nographic -cdrom
> /exports/isos/SLES-11-SP2-DVD-ppc64-GM-DVD1.iso -hda
> /exports/sles11_sp2.qcow2 -monitor unix:/dev/tty1,nowait,server

I have had success with following command:

./ppc64-softmmu/qemu-system-ppc64 -machine type=pseries,usb=off -m 512 
-nographic -cdrom ../../distro/openSUSE-NET64-ppc64-Build0022-Media.iso -hda 
../../imgs/guest_suse.disk

Using the following server repo:
http://download.opensuse.org/ports/ppc/distribution/12.2/repo/oss

I havent tried SLES tough.

Regards
Nikunj




Re: [Qemu-devel] [Qemu-ppc] [PATCH 08/13] pseries: Update SLOF for NVRAM support

2012-12-06 Thread Erlon Cruz
On Wed, Dec 5, 2012 at 12:39 PM, Alexander Graf  wrote:

>
> On 05.12.2012, at 15:37, Alexander Graf wrote:
>
>
> On 05.12.2012, at 15:35, Alexander Graf wrote:
>
>
> On 05.12.2012, at 15:09, Erlon Cruz wrote:
>
> Hi Alex,
>
>
>>  Could you please post
>>
>>   * the exact command line you were using
>>
>
>  ./ppc64-softmmu/qemu-system-ppc64 -machine type=pseries,usb=off -m 512
> -net nic,vlan=0 -net tap -nographic -cdrom
> /exports/isos/SLES-11-SP2-DVD-ppc64-GM-DVD1.iso -hda
> /exports/sles11_sp2.qcow2 -monitor unix:/dev/tty1,nowait,server
>
>
> Ah, so you're using -M mac99, which means any patch that says "pseries"
> shouldn't affect that VM at all.
>
>
> Scratch that. -machine type=pseries obviously makes this a pseries machine.
>
> Please still try to check if 1.2 or 1.1 work for you. Checking if
> disabling graphics makes things work would be interesting too.
>
>
> Also -cpu 970 would be an interesting thing to try.
>

This fails right in the kernel  start:

found display   : /pci@8002001/vga@0, opening... done
instantiating rtas at 0x1dbf... done
boot cpu hw idx 0
copying OF device tree...
Building dt strings...
Building dt structure...
Device tree strings 0x0578 -> 0x05780780
Device tree struct  0x0579 -> 0x057a
Calling quiesce...
returning from prom_init
Trying to read invalid spr 8 008 at c0926cbc
Trying to read invalid spr 28 01c at 0720



> Alex
>
>


Re: [Qemu-devel] [Qemu-ppc] [PATCH 08/13] pseries: Update SLOF for NVRAM support

2012-12-06 Thread Erlon Cruz
On Wed, Dec 5, 2012 at 12:37 PM, Alexander Graf  wrote:

>
> On 05.12.2012, at 15:35, Alexander Graf wrote:
>
>
> On 05.12.2012, at 15:09, Erlon Cruz wrote:
>
> Hi Alex,
>
>
>>  Could you please post
>>
>>   * the exact command line you were using
>>
>
>  ./ppc64-softmmu/qemu-system-ppc64 -machine type=pseries,usb=off -m 512
> -net nic,vlan=0 -net tap -nographic -cdrom
> /exports/isos/SLES-11-SP2-DVD-ppc64-GM-DVD1.iso -hda
> /exports/sles11_sp2.qcow2 -monitor unix:/dev/tty1,nowait,server
>
>
> Ah, so you're using -M mac99, which means any patch that says "pseries"
> shouldn't affect that VM at all.
>
>
> Scratch that. -machine type=pseries obviously makes this a pseries machine.
>
> Please still try to check if 1.2 or 1.1 work for you. Checking if
> disabling graphics makes things work would be interesting too.
>
>
All versions (v1.0, v1.1.0, v1.2.0) shows the same problem. Any idea on how
to get more info about this? Is there a way to reproduce the error from the
shell I got after aborting?


> Alex
>
>


Re: [Qemu-devel] [Qemu-ppc] [PATCH 08/13] pseries: Update SLOF for NVRAM support

2012-12-05 Thread Alexander Graf

On 05.12.2012, at 15:37, Alexander Graf wrote:

> 
> On 05.12.2012, at 15:35, Alexander Graf wrote:
> 
>> 
>> On 05.12.2012, at 15:09, Erlon Cruz wrote:
>> 
>>> Hi Alex,
>>>  
>>> Could you please post
>>> 
>>>   * the exact command line you were using
>>> 
>>>  ./ppc64-softmmu/qemu-system-ppc64 -machine type=pseries,usb=off -m 512 
>>> -net nic,vlan=0 -net tap -nographic -cdrom 
>>> /exports/isos/SLES-11-SP2-DVD-ppc64-GM-DVD1.iso -hda 
>>> /exports/sles11_sp2.qcow2 -monitor unix:/dev/tty1,nowait,server
>> 
>> Ah, so you're using -M mac99, which means any patch that says "pseries" 
>> shouldn't affect that VM at all.
> 
> Scratch that. -machine type=pseries obviously makes this a pseries machine.
> 
> Please still try to check if 1.2 or 1.1 work for you. Checking if disabling 
> graphics makes things work would be interesting too.

Also -cpu 970 would be an interesting thing to try.


Alex



Re: [Qemu-devel] [Qemu-ppc] [PATCH 08/13] pseries: Update SLOF for NVRAM support

2012-12-05 Thread Alexander Graf

On 05.12.2012, at 15:35, Alexander Graf wrote:

> 
> On 05.12.2012, at 15:09, Erlon Cruz wrote:
> 
>> Hi Alex,
>>  
>> Could you please post
>> 
>>   * the exact command line you were using
>> 
>>  ./ppc64-softmmu/qemu-system-ppc64 -machine type=pseries,usb=off -m 512 -net 
>> nic,vlan=0 -net tap -nographic -cdrom 
>> /exports/isos/SLES-11-SP2-DVD-ppc64-GM-DVD1.iso -hda 
>> /exports/sles11_sp2.qcow2 -monitor unix:/dev/tty1,nowait,server
> 
> Ah, so you're using -M mac99, which means any patch that says "pseries" 
> shouldn't affect that VM at all.

Scratch that. -machine type=pseries obviously makes this a pseries machine.

Please still try to check if 1.2 or 1.1 work for you. Checking if disabling 
graphics makes things work would be interesting too.


Alex



Re: [Qemu-devel] [Qemu-ppc] [PATCH 08/13] pseries: Update SLOF for NVRAM support

2012-12-04 Thread David Gibson
On Tue, Dec 04, 2012 at 09:27:54PM -0200, Erlon Cruz wrote:
> Em 04/12/2012 20:58, "David Gibson"  escreveu:
> >
> > On Tue, Dec 04, 2012 at 11:20:03AM -0200, Erlon Cruz wrote:
> > > On Tue, Dec 4, 2012 at 12:42 AM, David Gibson
> > > wrote:
> > >
> > > > Now that we have implemented PAPR compatible NVRAM interfaces in
> qemu, this
> > > > updates the SLOF firmware to actually initialize and use the NVRAM as
> a
> > > > PAPR guest firmware is expected to do.
> > > >
> > > > This SLOF update also includes an ugly but useful workaround for a
> bug in
> > > > the SLES11 installer which caused it to fail under KVM.
> > > >
> > > >
> > > I had a problem when installing SLES, when the installer et at 23%, a
> get:
> > >
> > > Installation of package ./suse/ppc64/vim-base-7.2-8.15.2.ppc64.rpm
> failed.
> > > Subprocess failed. Error: RPM failed: error:
> > > %post(vim-base-7.2-8.15.2.ppc64.rpm)
> > >
> > > Is this the same problem?
> >
> > No, I don't think so.  The NVRAM failure, I believe happens at the end
> > when it's doing the yaboot setup.  Although, I haven't met it myself,
> > so I'm not certain.
> 
> Have you succeed installing any SLES on QEMU pSeries? This is the first
> system I'm trying to install in an lpar. The guests I have I've installed
> in a power machine and then use the roots.

I haven't personally tried installing SLES, only Fedora and Debian
(and not very recently for those).  Some others in IBM have tried
installing SLES - it used to fail because of this bug and another, I'm
not sure if they've had a chance to try again since this fix.

Failing suddenly in the post script for vim-base seems a really
unlikely problem to be caused by qemu/host bugs, though anything's
possible.  First thing I'd try is to triple-check your install media.

-- 
David Gibson| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au  | minimalist, thank you.  NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson



Re: [Qemu-devel] [Qemu-ppc] [PATCH 08/13] pseries: Update SLOF for NVRAM support

2012-12-04 Thread Erlon Cruz
Em 04/12/2012 20:58, "David Gibson"  escreveu:
>
> On Tue, Dec 04, 2012 at 11:20:03AM -0200, Erlon Cruz wrote:
> > On Tue, Dec 4, 2012 at 12:42 AM, David Gibson
> > wrote:
> >
> > > Now that we have implemented PAPR compatible NVRAM interfaces in
qemu, this
> > > updates the SLOF firmware to actually initialize and use the NVRAM as
a
> > > PAPR guest firmware is expected to do.
> > >
> > > This SLOF update also includes an ugly but useful workaround for a
bug in
> > > the SLES11 installer which caused it to fail under KVM.
> > >
> > >
> > I had a problem when installing SLES, when the installer et at 23%, a
get:
> >
> > Installation of package ./suse/ppc64/vim-base-7.2-8.15.2.ppc64.rpm
failed.
> > Subprocess failed. Error: RPM failed: error:
> > %post(vim-base-7.2-8.15.2.ppc64.rpm)
> >
> > Is this the same problem?
>
> No, I don't think so.  The NVRAM failure, I believe happens at the end
> when it's doing the yaboot setup.  Although, I haven't met it myself,
> so I'm not certain.

Have you succeed installing any SLES on QEMU pSeries? This is the first
system I'm trying to install in an lpar. The guests I have I've installed
in a power machine and then use the roots.

> --
> David Gibson| I'll have my music baroque, and my code
> david AT gibson.dropbear.id.au  | minimalist, thank you.  NOT _the_
_other_
> | _way_ _around_!
> http://www.ozlabs.org/~dgibson


Re: [Qemu-devel] [Qemu-ppc] [PATCH 08/13] pseries: Update SLOF for NVRAM support

2012-12-04 Thread David Gibson
On Tue, Dec 04, 2012 at 11:20:03AM -0200, Erlon Cruz wrote:
> On Tue, Dec 4, 2012 at 12:42 AM, David Gibson
> wrote:
> 
> > Now that we have implemented PAPR compatible NVRAM interfaces in qemu, this
> > updates the SLOF firmware to actually initialize and use the NVRAM as a
> > PAPR guest firmware is expected to do.
> >
> > This SLOF update also includes an ugly but useful workaround for a bug in
> > the SLES11 installer which caused it to fail under KVM.
> >
> >
> I had a problem when installing SLES, when the installer et at 23%, a get:
> 
> Installation of package ./suse/ppc64/vim-base-7.2-8.15.2.ppc64.rpm failed.
> Subprocess failed. Error: RPM failed: error:
> %post(vim-base-7.2-8.15.2.ppc64.rpm)
> 
> Is this the same problem?

No, I don't think so.  The NVRAM failure, I believe happens at the end
when it's doing the yaboot setup.  Although, I haven't met it myself,
so I'm not certain.

-- 
David Gibson| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au  | minimalist, thank you.  NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson