Skip to contentSkip to conversation

ppc/pnv: update skiboot to v6.4

PATCH Cédric Le Goater 2 participants 3 messages Jul 18, 2019 – Jul 22, 2019 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 13 lines · David Gibson
Quoted 12 lines · Joel Stanley

Currently we fail to boot a qemu powernv machine with a Power9 processor:

PLAT: Detected generic platform
PLAT: Detected BMC platform generic
CPU: All 1 processors called in...
CHIPTOD: Unknown TOD type !
CHIPTOD: Failed ChipTOD detection !
Aborting!

With v6.4 we can boot both a Power8 and Power9 powernv machine.

Quoted 7 lines
Quoted 3 lines

Built from submodule with powerpc64le-linux-gnu-gcc (Debian 8.3.0-2).

Applied to ppc-for-4.2, thanks.

If you could add both POWER8 and POWER9 smoke tests to boot-serial-test that would be even better.

There is one for POWER8 and adding an extra for POWER9 results in a test conflict. So I came up with the patch below. Would that be OK ?

C.

@@ -104,6 +104,7 @@ static testdef_t tests[] = {
"-machine cap-cfpc=broken,cap-sbbc=broken,cap-ibs=broken", "Open Firmware" },
{ "ppc64", "powernv", "-cpu POWER8", "OPAL" },
+ { "ppc64", "powernv", "-cpu POWER9", "OPAL" },

     { "ppc64", "sam460ex", "-device e1000", "8086  100e" },
     { "i386", "isapc", "-cpu qemu32 -device sga", "SGABIOS" },
     { "i386", "pc", "-device sga", "SGABIOS" },
@@ -222,6 +223,17 @@ static void test_machine(const void *dat
     close(ser_fd);

}

+static char* build_testname(testdef_t *t)
+{
+ char suffix[2] = "";
+
+ if (!strcmp(t->machine, "powernv")) {
+ sscanf(t->extra, "-cpu POWER%1s", suffix);
+ }
+
+ return g_strdup_printf("boot-serial/%s%s", t->machine, suffix);
+}
+
int main(int argc, char *argv[])

 {
     const char *arch = qtest_get_arch();

@@ -231,7 +243,7 @@ int main(int argc, char *argv[])

     for (i = 0; tests[i].arch != NULL; i++) {
         if (strcmp(arch, tests[i].arch) == 0) {
-            char *name = g_strdup_printf("boot-serial/%s", tests[i].machine);
+            char *name = build_testname(&tests[i]);
             qtest_add_data_func(name, &tests[i], test_machine);
             g_free(name);
         }
#3 lore raw
Quoted 17 lines · Cédric Le Goater
Quoted 16 lines · David Gibson
Quoted 15 lines · Joel Stanley

Currently we fail to boot a qemu powernv machine with a Power9 processor:

PLAT: Detected generic platform
PLAT: Detected BMC platform generic
CPU: All 1 processors called in...
CHIPTOD: Unknown TOD type !
CHIPTOD: Failed ChipTOD detection !
Aborting!

With v6.4 we can boot both a Power8 and Power9 powernv machine.

Built from submodule with powerpc64le-linux-gnu-gcc (Debian 8.3.0-2).

Quoted 8 lines
Quoted 4 lines

Applied to ppc-for-4.2, thanks.

If you could add both POWER8 and POWER9 smoke tests to boot-serial-test that would be even better.

There is one for POWER8 and adding an extra for POWER9 results in a test conflict. So I came up with the patch below. Would that be OK ?

Ugh. This name mangling is pretty ugly. It would be neater to extend the table format to have cpu explicitly and base the test names on that, rather than special casing powernv.

But...

It occurs to me the reason we're hitting this is that for the other systems represented here, the exact cpu model is really just a detail. It's not for us, because the whole system is substantially different for the two cpus.

Which says to me that tbe POWER8 and POWER9 systems should really be different machine types, not lumped together in "powernv" which then has a heap of conditionals on the cpu family. If we do that, the problem here goes away.

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
#4 lore raw
Quoted 38 lines · David Gibson
Quoted 17 lines · Cédric Le Goater
Quoted 16 lines · David Gibson
Quoted 15 lines · Joel Stanley

Currently we fail to boot a qemu powernv machine with a Power9 processor:

PLAT: Detected generic platform
PLAT: Detected BMC platform generic
CPU: All 1 processors called in...
CHIPTOD: Unknown TOD type !
CHIPTOD: Failed ChipTOD detection !
Aborting!

With v6.4 we can boot both a Power8 and Power9 powernv machine.

Built from submodule with powerpc64le-linux-gnu-gcc (Debian 8.3.0-2).

Quoted 8 lines
Quoted 4 lines

Applied to ppc-for-4.2, thanks.

If you could add both POWER8 and POWER9 smoke tests to boot-serial-test that would be even better.

There is one for POWER8 and adding an extra for POWER9 results in a test conflict. So I came up with the patch below. Would that be OK ?

Ugh. This name mangling is pretty ugly. It would be neater to extend the table format to have cpu explicitly and base the test names on that, rather than special casing powernv.

But...

It occurs to me the reason we're hitting this is that for the other systems represented here, the exact cpu model is really just a detail. It's not for us, because the whole system is substantially different for the two cpus.

Quoted 4 lines

Which says to me that tbe POWER8 and POWER9 systems should really be different machine types, not lumped together in "powernv" which then has a heap of conditionals on the cpu family. If we do that, the problem here goes away.

Yes. I just sent a patch for it.

Thanks,

C.