[GIT PULL] kgdb changes for v5.8-rc1

From: Daniel Thompson
Date: Tue Jun 02 2020 - 12:24:46 EST

The following changes since commit 6a8b55ed4056ea5559ebe4f6a4b247f627870d4c:

Linux 5.7-rc3 (2020-04-26 13:51:02 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/danielt/linux.git/ tags/kgdb-5.8-rc1

for you to fetch changes up to c893de12e1ef17b581eb2cf8fc9018ec0cbd07df:

kdb: Remove the misfeature 'KDBFLAGS' (2020-06-02 15:15:46 +0100)

kgdb patches for 5.8-rc1

By far the biggest change in this cycle are the changes that allow much
earlier debug of systems that are hooked up via UART by taking advantage
of the earlycon framework to implement the kgdb I/O hooks before handing
over to the regular polling I/O drivers once they are available. When
discussing Doug's work we also found and fixed an broken
raw_smp_processor_id() sequence in in_dbg_master().

Also included are a collection of much smaller fixes and tweaks: a
couple of tweaks to ged rid of doc gen or coccicheck warnings, future
proof some internal calculations that made implicit power-of-2
assumptions and eliminate some rather weird handling of magic
environment variables in kdb.

Signed-off-by: Daniel Thompson <daniel.thompson@xxxxxxxxxx>

Andy Shevchenko (1):
kgdb: Drop malformed kernel doc comment

Daniel Thompson (2):
kgdb: Fix spurious true from in_dbg_master()
serial: kgdboc: Allow earlycon initialization to be deferred

Douglas Anderson (13):
kgdb: Disable WARN_CONSOLE_UNLOCKED for all kgdb
Revert "kgdboc: disable the console lock when in kgdb"
kgdboc: Use a platform device to handle tty drivers showing up late
kgdb: Delay "kgdbwait" to dbg_late_init() by default
kgdb: Prevent infinite recursive entries to the debugger
kgdboc: Remove useless #ifdef CONFIG_KGDB_SERIAL_CONSOLE in kgdboc
kgdboc: Add kgdboc_earlycon to support early kgdb using boot consoles
kgdboc: Disable all the early code when kgdboc is a module
kgdb: Don't call the deinit under spinlock
Documentation: kgdboc: Document new kgdboc_earlycon parameter
serial: qcom_geni_serial: Support kgdboc_earlycon
serial: 8250_early: Support kgdboc_earlycon
kdb: Cleanup math with KDB_CMD_HISTORY_COUNT

Jason Yan (1):
kgdb: Return true in kgdb_nmi_poll_knock()

Sumit Garg (1):
serial: amba-pl011: Support kgdboc_earlycon

Wei Li (1):
kdb: Remove the misfeature 'KDBFLAGS'

Documentation/admin-guide/kernel-parameters.txt | 20 ++
Documentation/dev-tools/kgdb.rst | 24 ++
arch/x86/Kconfig | 1 +
drivers/tty/serial/8250/8250_early.c | 23 ++
drivers/tty/serial/amba-pl011.c | 32 +++
drivers/tty/serial/kgdboc.c | 318 +++++++++++++++++++++---
drivers/tty/serial/qcom_geni_serial.c | 32 +++
include/linux/kdb.h | 2 +-
include/linux/kgdb.h | 8 +-
kernel/debug/debug_core.c | 57 +++--
kernel/debug/kdb/kdb_main.c | 11 +-
lib/Kconfig.kgdb | 18 ++
12 files changed, 490 insertions(+), 56 deletions(-)