Re: [PATCH] powerpc, wdt: disable ratelimiting when disabling interrupts

2021-04-12 Thread Stefan Roese
On 12.04.21 09:04, Rasmus Villemoes wrote: On 09/04/2021 16.37, Christophe Leroy wrote: Le 09/04/2021 à 16:12, Rasmus Villemoes a écrit : The ratelimiting isn't really strictly needed (prior to DM WDT, no such thing existed), so just disable it when we know that time no longer passes and

Re: [PATCH] powerpc, wdt: disable ratelimiting when disabling interrupts

2021-04-12 Thread Rasmus Villemoes
On 09/04/2021 16.37, Christophe Leroy wrote: > > > Le 09/04/2021 à 16:12, Rasmus Villemoes a écrit : >> The ratelimiting isn't really strictly needed (prior to DM WDT, no >> such thing existed), so just disable it when we know that time no >> longer passes and have watchdog_reset() (e.g. called

Re: [PATCH] powerpc, wdt: disable ratelimiting when disabling interrupts

2021-04-09 Thread Christophe Leroy
Le 09/04/2021 à 16:12, Rasmus Villemoes a écrit : On powerpc, time as measured by get_timer() ceases to pass when interrupts are disabled (since on powerpc get_timer() returns the value of a volatile variable that gets updated via a timer interrupt). That in turn means the watchdog_reset()

[PATCH] powerpc, wdt: disable ratelimiting when disabling interrupts

2021-04-09 Thread Rasmus Villemoes
On powerpc, time as measured by get_timer() ceases to pass when interrupts are disabled (since on powerpc get_timer() returns the value of a volatile variable that gets updated via a timer interrupt). That in turn means the watchdog_reset() function provided by CONFIG_WDT ceases to work due to the