diff options
| author | Finn Thain <[email protected]> | 2025-06-24 04:32:48 +0000 |
|---|---|---|
| committer | Geert Uytterhoeven <[email protected]> | 2025-07-06 10:53:21 +0000 |
| commit | c8995932db2bad6fa093ac64dbaf7a3e8870eafa (patch) | |
| tree | edf98c91b3fa333626d32fa52dc1ec35c34a900f /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
| parent | m68k: defconfig: Update defconfigs for v6.16-rc2 (diff) | |
| download | kernel-c8995932db2bad6fa093ac64dbaf7a3e8870eafa.tar.gz kernel-c8995932db2bad6fa093ac64dbaf7a3e8870eafa.zip | |
m68k: mac: Improve clocksource driver commentary
qemu-system-m68k -M q800 has an old bug that causes the kernel to
occasionally complain about a soft lockup:
watchdog: BUG: soft lockup - CPU#0 stuck for 5107s!
There isn't any actual lockup. The via1 clocksource produced a large
jump in jiffies, causing the watchdog to detect a stale timestamp.
The 32-bit clocksource counter runs at 783360 Hz and its period is
about 5482 seconds. Applying the "nanosecond" approximation used in
get_timestamp() in kernel/watchdog.c then yields the duration reported
in the log message above (always 5107 or 5108 in my tests):
0xffffffff / VIA_CLOCK_FREQ * 10**9 / 2**30 = 5106.209 seconds
It is notoriously difficult to correctly emulate a MOS6522 VIA chip. So
it seems wise to document the VIA clocksource driver better, especially
those hardware behaviours which the kernel relies upon.
Cc: Joshua Thompson <[email protected]>
Signed-off-by: Finn Thain <[email protected]>
Reviewed-by: Geert Uytterhoeven <[email protected]>
Link: https://lore.kernel.org/f7b4c02a1c8ed74ccceb5535d7e1e202deada8ce.1750739568.git.fthain@linux-m68k.org
Signed-off-by: Geert Uytterhoeven <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions
