Skip to contentSkip to conversation

linux-next: boot messages from today's linux-next

DISCUSSION Stephen Rothwell 2 participants 6 messages May 29, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi all,

My qemu boots of today's powerpc linux-next kernel produced the following boot message differences:

-Max number of cores passed to firmware: 2048 (NR_CPUS = 2048) +Max number of cores passed to firmware: u (NR_CPUS = 2048)

Seemingly caused by commit

eae5f709a4d7 ("powerpc: Add __printf verification to prom_printf")

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 11 lines · Stephen Rothwell

Hi all,

My qemu boots of today's powerpc linux-next kernel produced the following boot message differences:

(quoted diff) +1 -1
-Max number of cores passed to firmware: 2048 (NR_CPUS = 2048)
+Max number of cores passed to firmware: u (NR_CPUS = 2048)

Seemingly caused by commit

eae5f709a4d7 ("powerpc: Add __printf verification to prom_printf")

My bad. Patch is pending (thanks Michael!):

https://patchwork.ozlabs.org/patch/921948/

Quoted 3 lines

--
Cheers,
Stephen Rothwell

#2 lore raw
Quoted 9 lines · Mathieu Malaterre
Quoted 8 lines · Stephen Rothwell

Hi all,

My qemu boots of today's powerpc linux-next kernel produced the following boot message differences:

(quoted diff) +1 -1
-Max number of cores passed to firmware: 2048 (NR_CPUS = 2048)
+Max number of cores passed to firmware: u (NR_CPUS = 2048)
Quoted 7 lines
Quoted 3 lines

Seemingly caused by commit

eae5f709a4d7 ("powerpc: Add __printf verification to prom_printf")

My bad. Patch is pending (thanks Michael!):

https://patchwork.ozlabs.org/patch/921948/

Nope, nevermind this is unrelated.

Quoted 3 lines
Quoted 3 lines

--
Cheers,
Stephen Rothwell

#3 lore raw

Michael,

Quoted 12 lines · Mathieu Malaterre
Quoted 11 lines · Mathieu Malaterre
Quoted 10 lines · Stephen Rothwell

Hi all,

My qemu boots of today's powerpc linux-next kernel produced the following boot message differences:

(quoted diff) +1 -1
-Max number of cores passed to firmware: 2048 (NR_CPUS = 2048)
+Max number of cores passed to firmware: u (NR_CPUS = 2048)

Seemingly caused by commit

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

eae5f709a4d7 ("powerpc: Add __printf verification to prom_printf")

My bad. Patch is pending (thanks Michael!):

https://patchwork.ozlabs.org/patch/921948/

Nope, nevermind this is unrelated.

Could you update your patch "powerpc/prom: Fix %llx usage since prom_printf() change" to also do "powerpc/prom: Fix %u usage since prom_printf() change"

I did not pay attention that "%u" was also not supported in prom_printf.

I may be able to provide a patch tonight, if this is not acceptable, please revert my faulty patch. Sorry for the mess.

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

--
Cheers,
Stephen Rothwell

#4 lore raw
In reply to Mathieu Malaterre

Hi Mathieu,

Quoted 10 lines · On Tue, 29 May 2018 13:56:48 +0200 Mathieu Malaterre <[email protected]> wrote:
Quoted 8 lines · Stephen Rothwell

Hi all,

My qemu boots of today's powerpc linux-next kernel produced the following boot message differences:

(quoted diff) +1 -1
-Max number of cores passed to firmware: 2048 (NR_CPUS = 2048)
+Max number of cores passed to firmware: u (NR_CPUS = 2048)
Quoted 7 lines
Quoted 3 lines

Seemingly caused by commit

eae5f709a4d7 ("powerpc: Add __printf verification to prom_printf")

My bad. Patch is pending (thanks Michael!):

https://patchwork.ozlabs.org/patch/921948/

Umm, that fixes some other messages, but not this particular one.

Signature · 2 lines
Cheers,
Stephen Rothwell
#5 lore raw

Stephen,

Quoted 15 lines · Stephen Rothwell

Hi Mathieu,

Quoted 12 lines · On Tue, 29 May 2018 13:56:48 +0200 Mathieu Malaterre <[email protected]> wrote:
Quoted 10 lines · Stephen Rothwell

Hi all,

My qemu boots of today's powerpc linux-next kernel produced the following boot message differences:

(quoted diff) +1 -1
-Max number of cores passed to firmware: 2048 (NR_CPUS = 2048)
+Max number of cores passed to firmware: u (NR_CPUS = 2048)

Seemingly caused by commit

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

eae5f709a4d7 ("powerpc: Add __printf verification to prom_printf")

My bad. Patch is pending (thanks Michael!):

https://patchwork.ozlabs.org/patch/921948/

Umm, that fixes some other messages, but not this particular one.

Here is what I tried to say:

arch/powerpc/kernel/prom_init.c +5 -0
index 4d62f561f272..72ebe5896c1d 100644
@@ -379,6 +379,11 @@ static void __init prom_printf(const char *format, ...)
                        }
                        prom_print_dec(vs);
                        break;
+               case 'u':
+                       ++q;
+                       vs = va_arg(args, unsigned long);
+                       prom_print_dec(vs);
+                       break;
                case 'l':
                        ++q;
                        if (*q == 0)
Quoted 3 lines

--
Cheers,
Stephen Rothwell