Skip to contentSkip to conversation

boot-serial-test: Add a test for the powernv machine

PATCH In review Thomas Huth 3 participants 5 messages Nov 8, 2016 – Nov 10, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 boot-serial-test: Add a test for the powernv machine

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".

---
 tests/boot-serial-test.c | 1 +
 1 file changed, 1 insertion(+)
tests/boot-serial-test.c +1 -0
index d98c564..44c82e5 100644
@@ -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" },
Signature · 1 line
1.8.3.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Thomas Huth

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)

With very minimal changes (definition of some SPRs and the use of the SHV mode), the guest would load the kernel.

Thanks,

C.

Quoted 18 lines
---
 tests/boot-serial-test.c | 1 +
 1 file changed, 1 insertion(+)
tests/boot-serial-test.c +1 -0
index d98c564..44c82e5 100644
@@ -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" },
#2 lore raw
Quoted 10 lines · Cédric Le Goater
Quoted 6 lines · Thomas Huth

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 :

Quoted 8 lines

[8450016,6] CPU: P9 generation processor(max 4 threads/core)

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.

Quoted 25 lines

Thanks,

C.

Quoted 18 lines
---
 tests/boot-serial-test.c | 1 +
 1 file changed, 1 insertion(+)
tests/boot-serial-test.c +1 -0
index d98c564..44c82e5 100644
@@ -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" },
Signature · 4 lines
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
#3 lore raw
Quoted 17 lines · David Gibson
Quoted 16 lines · Cédric Le Goater
Quoted 6 lines · Thomas Huth

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)

Quoted 5 lines
Quoted 2 lines

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.

#4 lore raw
Quoted 24 lines · Cédric Le Goater
Quoted 17 lines · David Gibson
Quoted 16 lines · Cédric Le Goater
Quoted 6 lines · Thomas Huth

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)

Quoted 5 lines
Quoted 2 lines

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.

Quoted 7 lines

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.

Signature · 4 lines
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