diff options
| author | John Ogness <[email protected]> | 2024-09-04 12:05:36 +0000 |
|---|---|---|
| committer | Petr Mladek <[email protected]> | 2024-09-04 13:56:33 +0000 |
| commit | daeed1595b4ddf314bad8ee40b2662e03fd012dc (patch) | |
| tree | 7058e216617de9368a1e011a8a1b67fd1dcbffa2 /drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c | |
| parent | printk: nbcon: Assign nice -20 for printing threads (diff) | |
| download | kernel-daeed1595b4ddf314bad8ee40b2662e03fd012dc.tar.gz kernel-daeed1595b4ddf314bad8ee40b2662e03fd012dc.zip | |
printk: Avoid false positive lockdep report for legacy printing
Legacy console printing from printk() caller context may invoke
the console driver from atomic context. This leads to a lockdep
splat because the console driver will acquire a sleeping lock
and the caller may already hold a spinning lock. This is noticed
by lockdep on !PREEMPT_RT configurations because it will lead to
a problem on PREEMPT_RT.
However, on PREEMPT_RT the printing path from atomic context is
always avoided and the console driver is always invoked from a
dedicated thread. Thus the lockdep splat on !PREEMPT_RT is a
false positive.
For !PREEMPT_RT override the lock-context before invoking the
console driver to avoid the false positive.
Do not override the lock-context for PREEMPT_RT in order to
allow lockdep to catch any real locking context issues related
to the write callback usage.
Signed-off-by: John Ogness <[email protected]>
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_isp.c')
0 files changed, 0 insertions, 0 deletions
