[GIT PULL] LoongArch fixes for v6.2-rc5
From: Huacai Chen
Date: Wed Jan 18 2023 - 05:22:43 EST
The following changes since commit 5dc4c995db9eb45f6373a956eb1f69460e69e6d4:
Linux 6.2-rc4 (2023-01-15 09:22:43 -0600)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson.git tags/loongarch-fixes-6.2-1
for you to fetch changes up to dc74a9e8a8c57966a563ab078ba91c8b2c0d0a72:
LoongArch: Add generic ex-handler unwind in prologue unwinder (2023-01-17 11:42:16 +0800)
----------------------------------------------------------------
LoongArch fixes for v6.2-rc5
Fix a missing elf_hwcap, fix some stack unwinder bugs and two trivial
cleanups.
----------------------------------------------------------------
Huacai Chen (1):
LoongArch: Add HWCAP_LOONGARCH_CPUCFG to elf_hwcap
Jinyang He (5):
LoongArch: Adjust PC value when unwind next frame in unwinder
LoongArch: Get frame info in unwind_start() when regs is not available
LoongArch: Use correct sp value to get graph addr in stack unwinders
LoongArch: Strip guess unwinder out from prologue unwinder
LoongArch: Add generic ex-handler unwind in prologue unwinder
Tiezhu Yang (1):
LoongArch: Use common function sign_extend64()
Youling Tang (1):
LoongArch: Simplify larch_insn_gen_xxx implementation
arch/loongarch/include/asm/ftrace.h | 2 -
arch/loongarch/include/asm/inst.h | 9 +-
arch/loongarch/include/asm/unwind.h | 41 +++++-
arch/loongarch/kernel/Makefile | 2 +-
arch/loongarch/kernel/alternative.c | 6 +-
arch/loongarch/kernel/cpu-probe.c | 2 +-
arch/loongarch/kernel/genex.S | 3 +
arch/loongarch/kernel/inst.c | 45 +-----
arch/loongarch/kernel/process.c | 12 +-
arch/loongarch/kernel/traps.c | 3 -
arch/loongarch/kernel/unwind.c | 32 ++++
arch/loongarch/kernel/unwind_guess.c | 49 +------
arch/loongarch/kernel/unwind_prologue.c | 252 +++++++++++++++++++-------------
arch/loongarch/mm/tlb.c | 2 +-
14 files changed, 247 insertions(+), 213 deletions(-)
create mode 100644 arch/loongarch/kernel/unwind.c