Re: [Qemu-devel] [Qemu-ppc] [PATCH 00/77] ppc: Add "native" POWER8 platform

2015-12-07 Thread Cédric Le Goater
On 12/07/2015 02:25 AM, Stewart Smith wrote: > Cédric Le Goater writes: >> On 11/28/2015 08:59 AM, Benjamin Herrenschmidt wrote: >>> On Fri, 2015-11-27 at 11:21 +0100, Alexander Graf wrote: How does real hardware store petitboot? If it's flash, you could pass it in using -pflash and

Re: [Qemu-devel] [Qemu-ppc] [PATCH 00/77] ppc: Add "native" POWER8 platform

2015-12-06 Thread Stewart Smith
Cédric Le Goater writes: > On 11/28/2015 08:59 AM, Benjamin Herrenschmidt wrote: >> On Fri, 2015-11-27 at 11:21 +0100, Alexander Graf wrote: >>> >>> How does real hardware store petitboot? If it's flash, you could pass it >>> in using -pflash and thus model things even more closely and allow users

Re: [Qemu-devel] [Qemu-ppc] [PATCH 00/77] ppc: Add "native" POWER8 platform

2015-11-30 Thread Benjamin Herrenschmidt
On Mon, 2015-11-30 at 22:24 +0100, Cédric Le Goater wrote: > > In practice we should read the partition tables, I don't like hard > > coded offsets... But we should probably create a proper "flash driver" > > that does a bunch of this, and also adds the BMC style flash interface > > so OPAL can wri

Re: [Qemu-devel] [Qemu-ppc] [PATCH 00/77] ppc: Add "native" POWER8 platform

2015-11-30 Thread Cédric Le Goater
On 11/30/2015 09:09 PM, Benjamin Herrenschmidt wrote: > On Mon, 2015-11-30 at 19:15 +0100, Cédric Le Goater wrote: >> The pnor file is compiled from github. The patch is below (without the dirty >> cut and paste I did in loader.c). The offset for the PAYLOAD and BOOTKERNEL >> partitions are hard co

Re: [Qemu-devel] [Qemu-ppc] [PATCH 00/77] ppc: Add "native" POWER8 platform

2015-11-30 Thread Benjamin Herrenschmidt
On Mon, 2015-11-30 at 19:15 +0100, Cédric Le Goater wrote: > The pnor file is compiled from github. The patch is below (without the dirty > cut and paste I did in loader.c). The offset for the PAYLOAD and BOOTKERNEL > partitions are hard coded but I guess we don't need to read the flash > partitio

Re: [Qemu-devel] [Qemu-ppc] [PATCH 00/77] ppc: Add "native" POWER8 platform

2015-11-30 Thread Cédric Le Goater
On 11/28/2015 08:59 AM, Benjamin Herrenschmidt wrote: > On Fri, 2015-11-27 at 11:21 +0100, Alexander Graf wrote: >> >> How does real hardware store petitboot? If it's flash, you could pass it >> in using -pflash and thus model things even more closely and allow users >> to just take the ROM image a

Re: [Qemu-devel] [Qemu-ppc] [PATCH 00/77] ppc: Add "native" POWER8 platform

2015-11-28 Thread Benjamin Herrenschmidt
On Sat, 2015-11-28 at 11:53 +0100, Alexander Graf wrote: > > > Am 28.11.2015 um 08:59 schrieb Benjamin Herrenschmidt > crashing.org>: > > > > > On Fri, 2015-11-27 at 11:21 +0100, Alexander Graf wrote: > > > > > > How does real hardware store petitboot? If it's flash, you could > > > pass it > >

Re: [Qemu-devel] [Qemu-ppc] [PATCH 00/77] ppc: Add "native" POWER8 platform

2015-11-28 Thread Alexander Graf
> Am 28.11.2015 um 08:59 schrieb Benjamin Herrenschmidt > : > >> On Fri, 2015-11-27 at 11:21 +0100, Alexander Graf wrote: >> >> How does real hardware store petitboot? If it's flash, you could pass it >> in using -pflash and thus model things even more closely and allow users >> to just take t

Re: [Qemu-devel] [Qemu-ppc] [PATCH 00/77] ppc: Add "native" POWER8 platform

2015-11-28 Thread Benjamin Herrenschmidt
On Fri, 2015-11-27 at 11:21 +0100, Alexander Graf wrote: > > How does real hardware store petitboot? If it's flash, you could pass it > in using -pflash and thus model things even more closely and allow users > to just take the ROM image as is. It is a flash image, we could use an Open Power mach

Re: [Qemu-devel] [Qemu-ppc] [PATCH 00/77] ppc: Add "native" POWER8 platform

2015-11-27 Thread Alexander Graf
On 11.11.15 05:41, Alexey Kardashevskiy wrote: > On 11/11/2015 03:16 PM, Benjamin Herrenschmidt wrote: >> On Wed, 2015-11-11 at 15:07 +1100, Alexey Kardashevskiy wrote: >>> >>> p/qemu-powernv/ppc64-softmmu/qemu-system-ppc64 -m 2048 -machine >>> powernv \ >>> -nographic -vga none -initrd t/le.cpio

Re: [Qemu-devel] [Qemu-ppc] [PATCH 00/77] ppc: Add "native" POWER8 platform

2015-11-10 Thread Benjamin Herrenschmidt
On Wed, 2015-11-11 at 15:41 +1100, Alexey Kardashevskiy wrote: > Another note. I tried to know what the default devices are and got > another > crash: > > (qemu) info qtree > bus: main-system-bus >    type System >    dev: phb3-msi, id "" > /home/aik/p/qemu-powernv/hw/core/sysbus.c:276:sysbus_dev

Re: [Qemu-devel] [Qemu-ppc] [PATCH 00/77] ppc: Add "native" POWER8 platform

2015-11-10 Thread Alexey Kardashevskiy
On 11/11/2015 03:16 PM, Benjamin Herrenschmidt wrote: On Wed, 2015-11-11 at 15:07 +1100, Alexey Kardashevskiy wrote: p/qemu-powernv/ppc64-softmmu/qemu-system-ppc64 -m 2048 -machine powernv \ -nographic -vga none -initrd t/le.cpio -kernel t/vml420le -bios \ skiboot.lid -smp 1,threads=1 just han

Re: [Qemu-devel] [Qemu-ppc] [PATCH 00/77] ppc: Add "native" POWER8 platform

2015-11-10 Thread Benjamin Herrenschmidt
On Wed, 2015-11-11 at 15:07 +1100, Alexey Kardashevskiy wrote: > > p/qemu-powernv/ppc64-softmmu/qemu-system-ppc64 -m 2048 -machine > powernv \ > -nographic -vga none -initrd t/le.cpio -kernel t/vml420le -bios \ > skiboot.lid -smp 1,threads=1 > > just hangs at: > > [1491287872,5] INIT: Waiting fo

Re: [Qemu-devel] [Qemu-ppc] [PATCH 00/77] ppc: Add "native" POWER8 platform

2015-11-10 Thread Alexey Kardashevskiy
On 11/11/2015 02:38 PM, Benjamin Herrenschmidt wrote: On Wed, 2015-11-11 at 14:27 +1100, Alexey Kardashevskiy wrote: On 11/11/2015 11:56 AM, Benjamin Herrenschmidt wrote: On Tue, 2015-11-10 at 17:50 -0700, Eric Blake wrote: It would be nice to include a diffstat (git defaults to doing this if

Re: [Qemu-devel] [Qemu-ppc] [PATCH 00/77] ppc: Add "native" POWER8 platform

2015-11-10 Thread Benjamin Herrenschmidt
On Wed, 2015-11-11 at 14:27 +1100, Alexey Kardashevskiy wrote: > On 11/11/2015 11:56 AM, Benjamin Herrenschmidt wrote: > > On Tue, 2015-11-10 at 17:50 -0700, Eric Blake wrote: > > > > > > It would be nice to include a diffstat (git defaults to doing > > > this if > > > you use 'git format-patch --

Re: [Qemu-devel] [Qemu-ppc] [PATCH 00/77] ppc: Add "native" POWER8 platform

2015-11-10 Thread Alexey Kardashevskiy
On 11/11/2015 11:56 AM, Benjamin Herrenschmidt wrote: On Tue, 2015-11-10 at 17:50 -0700, Eric Blake wrote: It would be nice to include a diffstat (git defaults to doing this if you use 'git format-patch --cover-letter' for generating the 0/77 letter), so that we can see at a glance how big this

Re: [Qemu-devel] [Qemu-ppc] [PATCH 00/77] ppc: Add "native" POWER8 platform

2015-11-10 Thread Stewart Smith
Benjamin Herrenschmidt writes: > This requires an OPAL firmware file which isn't included yet, > will emulate enough to boot existing distros and run KVM > inside TCG For anyone wanting to try out this patchset, to build skiboot.lid, grab https://github.com/open-power/skiboot.git and build. You'

Re: [Qemu-devel] [Qemu-ppc] [PATCH 00/77] ppc: Add "native" POWER8 platform

2015-11-10 Thread Benjamin Herrenschmidt
On Wed, 2015-11-11 at 11:27 +1100, Benjamin Herrenschmidt wrote: > This requires an OPAL firmware file which isn't included yet, > will emulate enough to boot existing distros and run KVM > inside TCG Note that this doesn't migrate nor supports running under PR KVM, both are possible but will take