Skip to content

MIPS: Unify low-level debugging functionalities

Jiaxun Yang linux-mips lkml 3 versions – In review

Get series with b4
b4 am [email protected] change-id 20231028-mips_debug_ll-ef9cce16767b

Versions newest first

  1. v3 Latest9 patches 7 repliesIn review
  2. v29 patches 6 repliesSuperseded inferred link
  3. v18 patches 4 repliesSuperseded

Changes in v3 from the cover letter

- Collect review tags
- Fix an indentation
- Link to v2: https://lore.kernel.org/r/[email protected]

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9MIPS: asm: Move strings to .rodata.str sectionarch/mips/include/asm/asm.h+1 -10 replies
2/9MIPS: debug: Implement low-level debugging functionsarch/mips/Kconfig.debug arch/mips/include/debug/8250.S arch/mips/include/debug/uhi.S +2 more+320 -00 replies
3/9MIPS: debug: Hook up DEBUG_LL with early printkarch/mips/Kconfig.debug arch/mips/kernel/early_printk.c+20 -10 replies
4/9MIPS: debug: Provide an early exception vector for low-level debuggingarch/mips/Kconfig.debug arch/mips/kernel/Makefile arch/mips/kernel/debug-vec.S +1 more+208 -00 replies
5/9MIPS: debug_ll: Add Kconfig symbols for some 8250 uartsarch/mips/Kconfig.debug+56 -00 replies
6/9MIPS: debug_ll: Implement support for Alchemy uartsarch/mips/Kconfig.debug arch/mips/include/debug/alchemy.S+56 -00 replies
7/9MIPS: debug_ll: Implement support for AR933X uartsarch/mips/Kconfig.debug arch/mips/include/debug/ar933x.S+50 -00 replies
8/9MIPS: zboot: Convert to use debug_ll facilitiesarch/mips/Kconfig arch/mips/Kconfig.debug arch/mips/boot/compressed/Makefile +9 more+39 -1560 replies
9/9MIPS: CPS: Convert to use debug_ll facilitiesarch/mips/Kconfig.debug arch/mips/kernel/Makefile arch/mips/kernel/cps-vec.S+18 -510 replies

Reviews trailers per patch

6 of 9 patches have a Reviewed-by or Acked-by.

PatchPhilippe Mathieu-Daudé
1/9R-b
2/9R-b
3/9R-b
4/9
5/9R-b
6/9
7/9
8/9R-b
9/9R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/9] MIPS: Unify low-level debugging functionalities

Hi all,

This is a attempt to bring all low-level debugging print functions together and provide a arm-like low-level debugging interface and a further capability to debug early exceptions.

This patch elimiate platform specific early_printk, zboot printing functions and cps-vec-ns16550 by newly introduced debug_ll.

Hope you'll find them handy :-)

Happy hacking!

Thanks

---
Changes in v3:
- Collect review tags
- Fix an indentation
- Link to v2: https://lore.kernel.org/r/[email protected]

---
Jiaxun Yang (9):
MIPS: asm: Move strings to .rodata.str section
MIPS: debug: Implement low-level debugging functions
MIPS: debug: Hook up DEBUG_LL with early printk
MIPS: debug: Provide an early exception vector for low-level debugging
MIPS: debug_ll: Add Kconfig symbols for some 8250 uarts
MIPS: debug_ll: Implement support for Alchemy uarts
MIPS: debug_ll: Implement support for AR933X uarts
MIPS: zboot: Convert to use debug_ll facilities
MIPS: CPS: Convert to use debug_ll facilities

 arch/mips/Kconfig                        |  12 +-
 arch/mips/Kconfig.debug                  | 240 +++++++++++++++++++++++--------
 arch/mips/boot/compressed/Makefile       |   9 +-
 arch/mips/boot/compressed/dbg.c          |  39 -----
 arch/mips/boot/compressed/debug-vec.S    |   3 +
 arch/mips/boot/compressed/debug.S        |   3 +
 arch/mips/boot/compressed/decompress.h   |   8 +-
 arch/mips/boot/compressed/head.S         |   6 +
 arch/mips/boot/compressed/uart-16550.c   |  49 -------
 arch/mips/boot/compressed/uart-alchemy.c |   9 --
 arch/mips/boot/compressed/uart-ath79.c   |   2 -
 arch/mips/boot/compressed/uart-prom.c    |   9 --
 arch/mips/include/asm/asm.h              |   2 +-
 arch/mips/include/debug/8250.S           |  60 ++++++++
 arch/mips/include/debug/alchemy.S        |  46 ++++++
 arch/mips/include/debug/ar933x.S         |  41 ++++++
 arch/mips/include/debug/uhi.S            |  48 +++++++
 arch/mips/kernel/Makefile                |   4 +-
 arch/mips/kernel/cps-vec.S               |  16 +--
 arch/mips/kernel/debug-vec.S             | 194 +++++++++++++++++++++++++
 arch/mips/kernel/debug.S                 | 130 +++++++++++++++++
 arch/mips/kernel/early_printk.c          |  19 +++
 arch/mips/kernel/head.S                  |   4 +
 23 files changed, 756 insertions(+), 197 deletions(-)

---
base-commit: 084c8e315db34b59d38d06e684b1a0dd07d30287
change-id: 20240326-mips_debug_ll-ce72fee1b6a2

Best regards,

Signature · 1 line
Jiaxun Yang <[email protected]>