Skip to content

xtensa: support coprocessors on SMP

Max Filippov lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest10 patches 0 repliesNew
  2. v16 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- clean up exception handler prototypes
- merge SAVE_CP_REGS_TAB and LOAD_CP_REGS_TAB
- get rid of stack frame in coprocessor_flush
- document rules for coprocessor context management
- clean up context management from the LKMM point of view, introduce and document barriers
- support CPU hotplug

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10xtensa: clean up function declarations in traps.carch/xtensa/include/asm/traps.h arch/xtensa/kernel/traps.c+32 -320 replies
2/10xtensa: clean up exception handler prototypesarch/xtensa/include/asm/traps.h arch/xtensa/kernel/s32c1i_selftest.c arch/xtensa/kernel/traps.c+13 -150 replies
3/10xtensa: clean up declarations in coprocessor.harch/xtensa/include/asm/coprocessor.h+3 -40 replies
4/10xtensa: clean up excsave1 initializationarch/xtensa/include/asm/traps.h arch/xtensa/kernel/traps.c+3 -40 replies
5/10xtensa: use callx0 opcode in fast_coprocessorarch/xtensa/kernel/coprocessor.S+8 -100 replies
6/10xtensa: handle coprocessor exceptions in kernel modearch/xtensa/kernel/traps.c+1 -10 replies
7/10xtensa: add xtensa_xsr macroarch/xtensa/include/asm/processor.h+7 -00 replies
8/10xtensa: merge SAVE_CP_REGS_TAB and LOAD_CP_REGS_TABarch/xtensa/kernel/coprocessor.S+37 -480 replies
9/10xtensa: get rid of stack frame in coprocessor_flusharch/xtensa/kernel/coprocessor.S+5 -60 replies
10/10xtensa: support coprocessors on SMParch/xtensa/include/asm/coprocessor.h arch/xtensa/include/asm/thread_info.h arch/xtensa/include/asm/traps.h +8 more+230 -670 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 00/10] xtensa: support coprocessors on SMP

Hello,

this series does a bunch of small cleanups around exception and coprocessor handling code and adds coprocessors support in SMP configurations.

Changes v1->v2:

- clean up exception handler prototypes
- merge SAVE_CP_REGS_TAB and LOAD_CP_REGS_TAB
- get rid of stack frame in coprocessor_flush
- document rules for coprocessor context management
- clean up context management from the LKMM point of view, introduce and document barriers
- support CPU hotplug

Max Filippov (10):
xtensa: clean up function declarations in traps.c
xtensa: clean up exception handler prototypes
xtensa: clean up declarations in coprocessor.h
xtensa: clean up excsave1 initialization
xtensa: use callx0 opcode in fast_coprocessor
xtensa: handle coprocessor exceptions in kernel mode
xtensa: add xtensa_xsr macro
xtensa: merge SAVE_CP_REGS_TAB and LOAD_CP_REGS_TAB
xtensa: get rid of stack frame in coprocessor_flush
xtensa: support coprocessors on SMP

 arch/xtensa/include/asm/coprocessor.h |  11 +-
 arch/xtensa/include/asm/processor.h   |   7 +
 arch/xtensa/include/asm/thread_info.h |   7 +-
 arch/xtensa/include/asm/traps.h       |  40 +++--
 arch/xtensa/kernel/asm-offsets.c      |   8 +-
 arch/xtensa/kernel/coprocessor.S      | 230 +++++++++++++++-----------
 arch/xtensa/kernel/entry.S            |  12 +-
 arch/xtensa/kernel/process.c          | 112 ++++++++++---
 arch/xtensa/kernel/ptrace.c           |   3 +-
 arch/xtensa/kernel/s32c1i_selftest.c  |   7 +-
 arch/xtensa/kernel/signal.c           |   3 +-
 arch/xtensa/kernel/smp.c              |   7 +
 arch/xtensa/kernel/traps.c            |  69 ++++----
 13 files changed, 334 insertions(+), 182 deletions(-)
Signature · 1 line
2.30.2