# Re: \[PATCH\] powerpc/watchdog: Fix wd\_smp\_last\_reset\_tb reporting

- From: Nicholas Piggin \<npiggin@gmail.com\>
- Date: 2021-11-26 00:51:47 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2021/11/9525302
- Thread: https://ratatoskr.run/linuxppc-dev/2021/11/9525265/t.md

```text
Excerpts from Laurent Dufour's message of November 26, 2021 3:21 am:
> On 25/11/2021, 11:33:46, Nicholas Piggin wrote:
>> wd_smp_last_reset_tb now gets reset by watchdog_smp_panic() as part of
>> marking CPUs stuck and removing them from the pending mask before it
>> begins any printing. This causes last reset times reported to be off.
>> 
>> Fix this by reading it into a local variable before it gets reset.
>> 
>> Fixes: 76521c4b0291 ("powerpc/watchdog: Avoid holding wd_smp_lock over printk and smp_send_nmi_ipi")
>> Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
>> ---
>> 
>> This is the delta for patches 1-4 between v3 and v4 of the series which
>> is the result of fixing the bug in patch 3. Sending because v3 got
>> merged into powerpc next
> 
> What about the 5th patch in the v4 series titled "[PATCH v4 5/5]
> powerpc/watchdog: help remote CPUs to flush NMI printk output"?

Yes it would be good to get that one in too.

Thanks,
Nick
```
