Re: [ BUG: Invalid wait context ] rtc_lock at: mc146818_avoid_UIP
From: Thomas Gleixner
Date: Thu Apr 03 2025 - 17:13:47 EST
On Thu, Apr 03 2025 at 21:36, Sebastian Andrzej Siewior wrote:
> On 2025-04-03 15:50:32 [+0200], To Thomas Gleixner wrote:
>> > I wonder, why this splat hasn't popped before. On RT lockdep should have
>> > complained forever. Sebastian???
>>
>> I sure haven't seen it. But it has to.
>
> might_sleep() is quite because system_states is SYSTEM_SUSPEND.
> lockdep seems to be quiet because I don't have an outer lock while
> testing via
> echo mem > /sys/power/state
Right. freeze triggers the suspend to idle path
> it is just
> | WARNING: CPU: 0 PID: 1007 at kernel/time/timekeeping.c:1858 timekeeping_suspend+0x3b/0x330
Which kernel version is that? I don't see a warning in timekeeping_suspend()
Thanks,
tglx