Skip to content

Cop2 save and restore for Netlogic XLP

Jayachandran C linux-mips 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 3 repliesIn review
  2. v1 RFC5 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- XLR support dropped, status register is readonly in XLR and cannot be restored
- fix naming of COP2 registers

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5MIPS: Move cop2 save/restore to switch_to()arch/mips/include/asm/cop2.h arch/mips/include/asm/processor.h arch/mips/include/asm/switch_to.h +1 more+44 -390 replies
2/5MIPS: Allow kernel to use coprocessor 2arch/mips/kernel/traps.c+5 -103 replies
3/5MIPS: Netlogic: Fix nlm_read_c2_status() definitionarch/mips/include/asm/netlogic/xlr/fmn.h arch/mips/netlogic/xlr/fmn.c+7 -30 replies
4/5MIPS: Netlogic: rename nlm_cop2_save/restorearch/mips/include/asm/netlogic/xlr/fmn.h arch/mips/netlogic/xlr/fmn.c+10 -100 replies
5/5MIPS: Netlogic: COP2 save/restore codearch/mips/include/asm/cop2.h arch/mips/include/asm/processor.h arch/mips/netlogic/xlp/Makefile +1 more+142 -10 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH 0/5 v2] Cop2 save and restore for Netlogic XLP

This patchset is to generalize the COP2 save/restore implemented for Octeon and to use it for Netlogic XLP.

Patch 1 and 2 of the series affects the Octeon platform as well, please let me know if there are any suggestions/comments.

Thanks,
JC.

---

Changes in v2:
- XLR support dropped, status register is readonly in XLR and cannot be restored
- fix naming of COP2 registers

Jayachandran C (5):
MIPS: Move cop2 save/restore to switch_to()
MIPS: Allow kernel to use coprocessor 2
MIPS: Netlogic: Fix nlm_read_c2_status() definition
MIPS: Netlogic: rename nlm_cop2_save/restore
MIPS: Netlogic: COP2 save/restore code

 arch/mips/include/asm/cop2.h             |   29 ++++++++
 arch/mips/include/asm/netlogic/xlr/fmn.h |   12 ++-
 arch/mips/include/asm/processor.h        |   31 +++++---
 arch/mips/include/asm/switch_to.h        |   19 ++++-
 arch/mips/kernel/octeon_switch.S         |   27 -------
 arch/mips/kernel/traps.c                 |   15 ++--
 arch/mips/netlogic/xlp/Makefile          |    2 +-
 arch/mips/netlogic/xlp/cop2-ex.c         |  118 ++++++++++++++++++++++++++++++
 arch/mips/netlogic/xlr/fmn.c             |   18 ++---
 9 files changed, 208 insertions(+), 63 deletions(-)
 create mode 100644 arch/mips/netlogic/xlp/cop2-ex.c
Signature · 1 line
1.7.9.5