Skip to content

ARCv2 port to Linux - (A) prepratory patches

Vineet Gupta linux-arch lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest19 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/19ARC: mm/cache_arc700.c -> mm/cache.carch/arc/mm/Makefile arch/arc/mm/cache.c+1 -10 replies
2/19ARC: cacheflush: move some code around, delete old commentsarch/arc/mm/cache.c+102 -1650 replies
3/19ARC: cacheflush: No need to retain DC_CTRL from __before_dc_op()arch/arc/mm/cache.c+17 -190 replies
4/19ARC: untangle cache flush looparch/arc/mm/cache.c+55 -250 replies
5/19ARC: entry.S: common'ize scrtach reg freeup in intr + exceptionsarch/arc/include/asm/entry.h arch/arc/kernel/entry.S+18 -270 replies
6/19ARC: entry.S: Introduce INTERRUPT_{PROLOGUE,EPILOGUE}arch/arc/include/asm/arcregs.h arch/arc/include/asm/entry.h arch/arc/kernel/entry.S+23 -790 replies
7/19ARC: entry.S: canonical'ize EXCEPTION_{PROLOGUE,EPILOGUE}arch/arc/include/asm/entry.h arch/arc/kernel/entry.S+3 -180 replies
8/19ARC: entry.S: confine EXCEPTION_* macros to one filearch/arc/kernel/entry.S arch/arc/mm/tlbex.S+17 -150 replies
9/19ARC: entry.S: FAKE_RET_FROM_EXCPN can always use r9arch/arc/include/asm/entry.h arch/arc/kernel/entry.S+19 -210 replies
10/19ARC: entry.S: Trap handler to use r10 for syscall vs. brkpt decisionarch/arc/kernel/entry.S+2 -20 replies
11/19ARC: entry.S: comments cleanuparch/arc/kernel/entry.S+20 -260 replies
12/19ARC: entry.S: Ensure that restore_regs is local to compilation unitarch/arc/kernel/entry.S+4 -40 replies
13/19ARC: entry.S: split into ARCompact ISA specific, common bitsarch/arc/include/asm/entry-compact.h arch/arc/include/asm/entry.h arch/arc/kernel/Makefile +2 more+711 -6810 replies
14/19ARC: entry.S: move some code around for cache locality in return patharch/arc/kernel/entry-compact.S arch/arc/kernel/entry.S+52 -480 replies
15/19ARC: entry.S: micro-optimize Trap handlerarch/arc/include/asm/entry-compact.h arch/arc/kernel/entry.S+5 -40 replies
16/19ARC: entry.S: use single EXCEPTION_PROLOGUEarch/arc/kernel/entry-compact.S+6 -80 replies
17/19ARC: entry.S: [arcompact] simplify SWITCH_TO_KERNEL_STKarch/arc/include/asm/entry-compact.h+35 -360 replies
18/19ARC: Make way for pt_regs != user_regs_structarch/arc/kernel/ptrace.c arch/arc/kernel/signal.c+136 -90 replies
19/19ARC: intc: split into ARCompact ISA specific, common bitsarch/arc/include/asm/entry-compact.h arch/arc/include/asm/irqflags-compact.h arch/arc/include/asm/irqflags.h +4 more+416 -3790 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/19] ARCv2 port to Linux - (A) prepratory patches

Hi,

ARCv2 is the next generation ISA from Synopsys and basis for the HS3{4,6,8} families of processors which retain the traditional ARC mantra of low power and configurability and are now more performant and feature rich.

Linux has been ported to HS38x series, a 10 stage pipeline core which supports MMU (with huge pages) and SMP (upto 4 cores) among other features.

- www.synopsys.com/dw/ipdir.php?ds=arc-hs38-processor
- http://news.synopsys.com/2014-10-14-New-DesignWare-ARC-HS38-Processor-Doubles-Performance-for-Embedded-Linux-Applications
- http://www.embedded.com/electronics-news/4435975/Synopsys-ARC-HS38-core-gives-2X-boost-to-Linux-based-apps

This sub-series introduces changes to existing in-tree port of ARC700 core (based on ARCompact ISA) to allow for better code sharing with new ARCv2 code.

The actual ARCv2 port will follow as a seperate series.

Please review !

Thx,
-Vineet

Vineet Gupta (19):
ARC: mm/cache_arc700.c -> mm/cache.c
ARC: cacheflush: move some code around, delete old comments
ARC: cacheflush: No need to retain DC_CTRL from __before_dc_op()
ARC: untangle cache flush loop
ARC: entry.S: common'ize scrtach reg freeup in intr + exceptions
ARC: entry.S: Introduce INTERRUPT_{PROLOGUE,EPILOGUE}
ARC: entry.S: canonical'ize EXCEPTION_{PROLOGUE,EPILOGUE}
ARC: entry.S: confine EXCEPTION_* macros to one file
ARC: entry.S: FAKE_RET_FROM_EXCPN can always use r9
ARC: entry.S: Trap handler to use r10 for syscall vs. brkpt decision
ARC: entry.S: comments cleanup
ARC: entry.S: Ensure that restore_regs is local to compilation unit
ARC: entry.S: split into ARCompact ISA specific, common bits
ARC: entry.S: move some code around for cache locality in return path
ARC: entry.S: micro-optimize Trap handler
ARC: entry.S: use single EXCEPTION_PROLOGUE
ARC: entry.S: [arcompact] simplify SWITCH_TO_KERNEL_STK
ARC: Make way for pt_regs != user_regs_struct
ARC: intc: split into ARCompact ISA specific, common bits

 arch/arc/include/asm/arcregs.h          |   3 -
 arch/arc/include/asm/entry-compact.h    | 307 +++++++++++++++++++
 arch/arc/include/asm/entry.h            | 357 +---------------------
 arch/arc/include/asm/irqflags-compact.h | 181 +++++++++++
 arch/arc/include/asm/irqflags.h         | 168 +---------
 arch/arc/kernel/Makefile                |   4 +-
 arch/arc/kernel/entry-compact.S         | 393 ++++++++++++++++++++++++
 arch/arc/kernel/entry.S                 | 527 +++++---------------------------
 arch/arc/kernel/intc-compact.c          | 230 ++++++++++++++
 arch/arc/kernel/irq.c                   | 210 -------------
 arch/arc/kernel/process.c               |   3 +-
 arch/arc/kernel/ptrace.c                |  90 +++++-
 arch/arc/kernel/signal.c                |  55 +++-
 arch/arc/mm/Makefile                    |   2 +-
 arch/arc/mm/{cache_arc700.c => cache.c} | 367 ++++++++++------------
 arch/arc/mm/tlbex.S                     |  16 +-
 16 files changed, 1494 insertions(+), 1419 deletions(-)
 create mode 100644 arch/arc/include/asm/entry-compact.h
 create mode 100644 arch/arc/include/asm/irqflags-compact.h
 create mode 100644 arch/arc/kernel/entry-compact.S
 create mode 100644 arch/arc/kernel/intc-compact.c
 rename arch/arc/mm/{cache_arc700.c => cache.c} (77%)
Signature · 1 line
1.9.1