linux/include
Marcos Paulo de Souza 62627bf0ca kdb: Adapt kdb_msg_write to work with NBCON consoles
Function kdb_msg_write was calling con->write for any found console,
but it won't work on NBCON consoles. In this case we should acquire the
ownership of the console using NBCON_PRIO_EMERGENCY, since printing
kdb messages should only be interrupted by a panic.

At this point, the console is required to use the atomic callback. The
console is skipped if the write_atomic callback is not set or if the
context could not be acquired. The validation of NBCON is done by the
console_is_usable helper. The context is released right after
write_atomic finishes.

The oops_in_progress handling is only needed in the legacy consoles,
so it was moved around the con->write callback.

Suggested-by: Petr Mladek <pmladek@suse.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Reviewed-by: John Ogness <john.ogness@linutronix.de>
Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
Link: https://patch.msgid.link/20251016-nbcon-kgdboc-v6-5-866aac60a80e@suse.com
[pmladek@suse.com: Fixed compilation with !CONFIG_PRINTK.]
Signed-off-by: Petr Mladek <pmladek@suse.com>
2025-10-24 12:56:20 +02:00
..
acpi Merge branches 'acpi-scan', 'acpi-processor' and 'acpi-sysfs' 2025-09-29 15:12:52 +02:00
asm-generic Summary of significant series in this pull request: 2025-10-02 18:18:33 -07:00
clocksource clocksource/drivers/arm_arch_timer_mmio: Switch over to standalone driver 2025-09-23 12:31:50 +02:00
crypto Summary of significant series in this pull request: 2025-10-02 18:18:33 -07:00
cxl
drm
dt-bindings soc: build fix for 6.18 2025-10-03 19:36:39 -07:00
hyperv
keys
kunit linux_kselftest-kunit-6.18-rc1 2025-10-01 19:15:11 -07:00
kvm KVM/arm64 updates for 6.18 2025-09-30 13:23:28 -04:00
linux kdb: Adapt kdb_msg_write to work with NBCON consoles 2025-10-24 12:56:20 +02:00
math-emu
media
memory
misc
net Networking changes for 6.18. 2025-10-02 15:17:01 -07:00
pcmcia
ras
rdma
rv kernel-6.18-rc1.clone3 2025-09-29 10:36:50 -07:00
scsi SCSI misc on 20251002 2025-10-03 19:17:48 -07:00
soc ARM: soc updates for 6.18 2025-10-01 17:41:15 -07:00
sound ASoC: Updates for v6.18 round 2 2025-09-28 15:41:17 +02:00
target
trace guest_memfd: 2025-10-04 08:52:16 -07:00
uapi guest_memfd: 2025-10-04 08:52:16 -07:00
ufs scsi: ufs: core: Fix data race in CPU latency PM QoS request handling 2025-09-24 21:59:14 -04:00
vdso Updates for the VDSO subsystem: 2025-09-30 16:58:21 -07:00
video
xen
Kbuild