Skip to content

riscv: Enable LOCKDEP

[email protected] linux-csky linux-riscv lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 20 repliesIn review
  2. v13 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Remove sX regs recovery codes which are unnecessary, because callee will handle them. Thx Greentime :)

- Move "restore a0 - a7" to handle_syscall, but if _TIF_SYSCALL_WORK is set, "restore a1 - a7" is still duplicated. I prefer a C wrapper for syscall.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3riscv: Fixup static_obj() failarch/riscv/kernel/vmlinux.lds.S+1 -117 replies
2/3riscv: Fixup lockdep_assert_held with wrong param cpu_runningarch/riscv/kernel/smpboot.c+0 -11 reply
3/3riscv: Enable LOCKDEP_SUPPORT & fixup TRACE_IRQFLAGS_SUPPORTarch/riscv/Kconfig arch/riscv/kernel/entry.S+36 -10 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchAurelien JarnoAtish Patra
1/3T-b
2/3R-b
3/3

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

Read the v2 thread

Cover letter [PATCH V2 0/3] riscv: Enable LOCKDEP

From: Guo Ren <[email protected]>

Lockdep is needed by proving the spinlocks and rwlocks. To support it, we need to add TRACE_IRQFLAGS codes in kernel/entry.S. These patches follow Documentation/irqflags-tracing.txt.

Fixup 2 bugs that block the lockdep implementation.

---
Changes in v2
- Remove sX regs recovery codes which are unnecessary, because callee will handle them. Thx Greentime :)

- Move "restore a0 - a7" to handle_syscall, but if _TIF_SYSCALL_WORK is set, "restore a1 - a7" is still duplicated. I prefer a C wrapper for syscall.

Guo Ren (2):
riscv: Fixup static_obj() fail
riscv: Enable LOCKDEP_SUPPORT & fixup TRACE_IRQFLAGS_SUPPORT

Zong Li (1):
riscv: Fixup lockdep_assert_held with wrong param cpu_running

 arch/riscv/Kconfig              |  3 +++
 arch/riscv/kernel/entry.S       | 33 ++++++++++++++++++++++++++++++++-
 arch/riscv/kernel/smpboot.c     |  1 -
 arch/riscv/kernel/vmlinux.lds.S |  2 +-
 4 files changed, 36 insertions(+), 3 deletions(-)
Signature · 1 line
2.7.4