* [Qemu-devel] [PATCH] boot-serial-test: Add a test for the powernv machine
@ 2016-11-08 12:36 Thomas Huth
2016-11-08 13:05 ` Cédric Le Goater
0 siblings, 1 reply; 5+ messages in thread
From: Thomas Huth @ 2016-11-08 12:36 UTC (permalink / raw)
To: David Gibson, Alexander Graf, qemu-ppc; +Cc: qemu-devel, Cédric Le Goater
The new powernv machine ships with a firmware that outputs
some text to the serial console, so we can automatically
test this machine type in the boot-serial tester, too.
And to get some (very limited) test coverage for the new
POWER9 CPU emulation, too, this test is also started with
"-cpu POWER9".
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
tests/boot-serial-test.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/boot-serial-test.c b/tests/boot-serial-test.c
index d98c564..44c82e5 100644
--- a/tests/boot-serial-test.c
+++ b/tests/boot-serial-test.c
@@ -29,6 +29,7 @@ static testdef_t tests[] = {
{ "ppc64", "ppce500", "", "U-Boot" },
{ "ppc64", "prep", "", "Open Hack'Ware BIOS" },
{ "ppc64", "pseries", "", "Open Firmware" },
+ { "ppc64", "powernv", "-cpu POWER9", "SkiBoot" },
{ "i386", "isapc", "-cpu qemu32 -device sga", "SGABIOS" },
{ "i386", "pc", "-device sga", "SGABIOS" },
{ "i386", "q35", "-device sga", "SGABIOS" },
--
1.8.3.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH] boot-serial-test: Add a test for the powernv machine
2016-11-08 12:36 [Qemu-devel] [PATCH] boot-serial-test: Add a test for the powernv machine Thomas Huth
@ 2016-11-08 13:05 ` Cédric Le Goater
2016-11-09 1:02 ` David Gibson
0 siblings, 1 reply; 5+ messages in thread
From: Cédric Le Goater @ 2016-11-08 13:05 UTC (permalink / raw)
To: Thomas Huth, David Gibson, Alexander Graf, qemu-ppc; +Cc: qemu-devel
On 11/08/2016 01:36 PM, Thomas Huth wrote:
> The new powernv machine ships with a firmware that outputs
> some text to the serial console, so we can automatically
> test this machine type in the boot-serial tester, too.
> And to get some (very limited) test coverage for the new
> POWER9 CPU emulation, too, this test is also started with
> "-cpu POWER9".
and we see the minimum :
[8450016,6] CPU: P9 generation processor(max 4 threads/core)
Reviewed-by: Cédric Le Goater <clg@kaod.org>
With very minimal changes (definition of some SPRs and the use
of the SHV mode), the guest would load the kernel.
Thanks,
C.
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
> tests/boot-serial-test.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/tests/boot-serial-test.c b/tests/boot-serial-test.c
> index d98c564..44c82e5 100644
> --- a/tests/boot-serial-test.c
> +++ b/tests/boot-serial-test.c
> @@ -29,6 +29,7 @@ static testdef_t tests[] = {
> { "ppc64", "ppce500", "", "U-Boot" },
> { "ppc64", "prep", "", "Open Hack'Ware BIOS" },
> { "ppc64", "pseries", "", "Open Firmware" },
> + { "ppc64", "powernv", "-cpu POWER9", "SkiBoot" },
> { "i386", "isapc", "-cpu qemu32 -device sga", "SGABIOS" },
> { "i386", "pc", "-device sga", "SGABIOS" },
> { "i386", "q35", "-device sga", "SGABIOS" },
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH] boot-serial-test: Add a test for the powernv machine
2016-11-08 13:05 ` Cédric Le Goater
@ 2016-11-09 1:02 ` David Gibson
2016-11-09 6:00 ` Cédric Le Goater
0 siblings, 1 reply; 5+ messages in thread
From: David Gibson @ 2016-11-09 1:02 UTC (permalink / raw)
To: Cédric Le Goater; +Cc: Thomas Huth, Alexander Graf, qemu-ppc, qemu-devel
[-- Attachment #1: Type: text/plain, Size: 1819 bytes --]
On Tue, Nov 08, 2016 at 02:05:35PM +0100, Cédric Le Goater wrote:
> On 11/08/2016 01:36 PM, Thomas Huth wrote:
> > The new powernv machine ships with a firmware that outputs
> > some text to the serial console, so we can automatically
> > test this machine type in the boot-serial tester, too.
> > And to get some (very limited) test coverage for the new
> > POWER9 CPU emulation, too, this test is also started with
> > "-cpu POWER9".
>
> and we see the minimum :
>
> [8450016,6] CPU: P9 generation processor(max 4 threads/core)
>
> Reviewed-by: Cédric Le Goater <clg@kaod.org>
>
>
>
> With very minimal changes (definition of some SPRs and the use
> of the SHV mode), the guest would load the kernel.
Applied to ppc-for-2.8. Good to have this basic smoke test for
powernv.
>
> Thanks,
>
> C.
>
>
> > Signed-off-by: Thomas Huth <thuth@redhat.com>
> > ---
> > tests/boot-serial-test.c | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/tests/boot-serial-test.c b/tests/boot-serial-test.c
> > index d98c564..44c82e5 100644
> > --- a/tests/boot-serial-test.c
> > +++ b/tests/boot-serial-test.c
> > @@ -29,6 +29,7 @@ static testdef_t tests[] = {
> > { "ppc64", "ppce500", "", "U-Boot" },
> > { "ppc64", "prep", "", "Open Hack'Ware BIOS" },
> > { "ppc64", "pseries", "", "Open Firmware" },
> > + { "ppc64", "powernv", "-cpu POWER9", "SkiBoot" },
> > { "i386", "isapc", "-cpu qemu32 -device sga", "SGABIOS" },
> > { "i386", "pc", "-device sga", "SGABIOS" },
> > { "i386", "q35", "-device sga", "SGABIOS" },
> >
>
--
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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH] boot-serial-test: Add a test for the powernv machine
2016-11-09 1:02 ` David Gibson
@ 2016-11-09 6:00 ` Cédric Le Goater
2016-11-10 0:59 ` David Gibson
0 siblings, 1 reply; 5+ messages in thread
From: Cédric Le Goater @ 2016-11-09 6:00 UTC (permalink / raw)
To: David Gibson; +Cc: Thomas Huth, Alexander Graf, qemu-ppc, qemu-devel
On 11/09/2016 02:02 AM, David Gibson wrote:
> On Tue, Nov 08, 2016 at 02:05:35PM +0100, Cédric Le Goater wrote:
>> On 11/08/2016 01:36 PM, Thomas Huth wrote:
>>> The new powernv machine ships with a firmware that outputs
>>> some text to the serial console, so we can automatically
>>> test this machine type in the boot-serial tester, too.
>>> And to get some (very limited) test coverage for the new
>>> POWER9 CPU emulation, too, this test is also started with
>>> "-cpu POWER9".
>>
>> and we see the minimum :
>>
>> [8450016,6] CPU: P9 generation processor(max 4 threads/core)
>>
>> Reviewed-by: Cédric Le Goater <clg@kaod.org>
>>
>>
>>
>> With very minimal changes (definition of some SPRs and the use
>> of the SHV mode), the guest would load the kernel.
>
> Applied to ppc-for-2.8. Good to have this basic smoke test for
> powernv.
yes. qom-test is also starting a powernv guest.
skiboot has a cool little program called hello_kernel that can be
run in place of the real kernel, but that's beyond the qemu layer
I guess
For qemu, maybe we could do xscom accesses to test some devices.
C.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH] boot-serial-test: Add a test for the powernv machine
2016-11-09 6:00 ` Cédric Le Goater
@ 2016-11-10 0:59 ` David Gibson
0 siblings, 0 replies; 5+ messages in thread
From: David Gibson @ 2016-11-10 0:59 UTC (permalink / raw)
To: Cédric Le Goater; +Cc: Thomas Huth, Alexander Graf, qemu-ppc, qemu-devel
[-- Attachment #1: Type: text/plain, Size: 1546 bytes --]
On Wed, Nov 09, 2016 at 07:00:42AM +0100, Cédric Le Goater wrote:
> On 11/09/2016 02:02 AM, David Gibson wrote:
> > On Tue, Nov 08, 2016 at 02:05:35PM +0100, Cédric Le Goater wrote:
> >> On 11/08/2016 01:36 PM, Thomas Huth wrote:
> >>> The new powernv machine ships with a firmware that outputs
> >>> some text to the serial console, so we can automatically
> >>> test this machine type in the boot-serial tester, too.
> >>> And to get some (very limited) test coverage for the new
> >>> POWER9 CPU emulation, too, this test is also started with
> >>> "-cpu POWER9".
> >>
> >> and we see the minimum :
> >>
> >> [8450016,6] CPU: P9 generation processor(max 4 threads/core)
> >>
> >> Reviewed-by: Cédric Le Goater <clg@kaod.org>
> >>
> >>
> >>
> >> With very minimal changes (definition of some SPRs and the use
> >> of the SHV mode), the guest would load the kernel.
> >
> > Applied to ppc-for-2.8. Good to have this basic smoke test for
> > powernv.
>
> yes. qom-test is also starting a powernv guest.
>
> skiboot has a cool little program called hello_kernel that can be
> run in place of the real kernel, but that's beyond the qemu layer
> I guess
>
> For qemu, maybe we could do xscom accesses to test some devices.
That would be good - the qtest framework is basically made for this
sort of thing.
--
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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-11-10 2:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-08 12:36 [Qemu-devel] [PATCH] boot-serial-test: Add a test for the powernv machine Thomas Huth
2016-11-08 13:05 ` Cédric Le Goater
2016-11-09 1:02 ` David Gibson
2016-11-09 6:00 ` Cédric Le Goater
2016-11-10 0:59 ` David Gibson
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.