From: Michal Suchánek <hidden> Date: 2019-11-14 19:46:28
On Thu, Nov 14, 2019 at 05:46:55PM +0100, Michal Suchánek wrote:
Hello,
on powernv with 5.3.8 kernel I get flood of messages on boot.
The messages match WARN_ONCE(1, "opal: OPAL_CONSOLE_FLUSH missing.\n");
Asking around it was pointed out that WARN_ONCE warns up to as many
times as you have CPUs.
Did not bother counting the messages but it may very well be the case it
is printed once for each CPU.
Thanks
Michal
From: Michal Suchánek <hidden> Date: 2019-11-15 09:28:41
On Fri, Nov 15, 2019 at 03:43:24PM +1100, Michael Ellerman wrote:
Michal Suchánek [off-list ref] writes:
quoted
On Thu, Nov 14, 2019 at 05:46:55PM +0100, Michal Suchánek wrote:
quoted
Hello,
on powernv with 5.3.8 kernel I get flood of messages on boot.
The messages match WARN_ONCE(1, "opal: OPAL_CONSOLE_FLUSH missing.\n");
Asking around it was pointed out that WARN_ONCE warns up to as many
times as you have CPUs.
Does it?
quoted
Did not bother counting the messages but it may very well be the case it
is printed once for each CPU.
The way it's implemented is slightly racy, but I'd be surprised if every
CPU hit that race all at once.
Printing a warn_once this early probably forces some peculiar timing.
grep WARN.*__opal_flush_console dmesg.txt | wc -l gives exactly the
number of CPUs as shown by lscpu.
From: Michal Suchánek <hidden> Date: 2019-11-15 09:34:36
On Fri, Nov 15, 2019 at 09:44:34AM +0100, Michal Suchánek wrote:
On Fri, Nov 15, 2019 at 03:43:24PM +1100, Michael Ellerman wrote:
quoted
Michal Suchánek [off-list ref] writes:
quoted
On Thu, Nov 14, 2019 at 05:46:55PM +0100, Michal Suchánek wrote:
quoted
Hello,
on powernv with 5.3.8 kernel I get flood of messages on boot.
The messages match WARN_ONCE(1, "opal: OPAL_CONSOLE_FLUSH missing.\n");
Asking around it was pointed out that WARN_ONCE warns up to as many
times as you have CPUs.
Does it?
quoted
Did not bother counting the messages but it may very well be the case it
is printed once for each CPU.
The way it's implemented is slightly racy, but I'd be surprised if every
CPU hit that race all at once.
Printing a warn_once this early probably forces some peculiar timing.
grep WARN.*__opal_flush_console dmesg.txt | wc -l gives exactly the
number of CPUs as shown by lscpu.
And this dose not change with enforcing once using an atomic.