aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c
diff options
context:
space:
mode:
authorJohn Ogness <[email protected]>2024-12-09 11:17:46 +0000
committerPetr Mladek <[email protected]>2024-12-16 12:26:31 +0000
commit0161e2d6950fe66cf6ac1c10d945bae971f33667 (patch)
treee12087793cfe89c62446951321929beeb03ae651 /drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c
parentprintk: Remove redundant deferred check in vprintk() (diff)
downloadkernel-0161e2d6950fe66cf6ac1c10d945bae971f33667.tar.gz
kernel-0161e2d6950fe66cf6ac1c10d945bae971f33667.zip
printk: Defer legacy printing when holding printk_cpu_sync
The documentation of printk_cpu_sync_get() clearly states that the owner must never perform any activities where it waits for a CPU. For legacy printing there can be spinning on the console_lock and on the port lock. Therefore legacy printing must be deferred when holding the printk_cpu_sync. Note that in the case of emergency states, atomic consoles are not prevented from printing when printk is deferred. This is appropriate because they do not spin-wait indefinitely for other CPUs. Reported-by: Rik van Riel <[email protected]> Closes: https://lore.kernel.org/r/[email protected] Signed-off-by: John Ogness <[email protected]> Fixes: 55d6af1d6688 ("lib/nmi_backtrace: explicitly serialize banner and regs") Reviewed-by: Petr Mladek <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Petr Mladek <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c')
0 files changed, 0 insertions, 0 deletions