linux-csky.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] csky: Use generic asid function from arm
@ 2019-06-19  7:49 guoren
  2019-06-19  7:49 ` [PATCH 1/4] csky: Revert mmu ASID mechanism guoren
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: guoren @ 2019-06-19  7:49 UTC (permalink / raw)
  To: julien.grall, arnd, linux-kernel; +Cc: linux-csky, Guo Ren

From: Guo Ren <ren_guo@c-sky.com>

Julien Grall plan to seperate asid allocator into generic and vmid and
other architectures could use it.

ref:
https://lore.kernel.org/linux-arm-kernel/20190321163623.20219-1-julien.grall@arm.com/

For C-SKY the first implementation is from mips and it's not implemented
well for SMP in performance. Arm's asid allocator is right for us and
we've tested it in our all CPUs:610/807/810/860 and it really reduce the
tlb flush. We'll continue stress testing before merge into master.

It's good for all architectures in linux and let's continue the work.

@Julien
 Could you give a seperate patch for add generic asid ?

Guo Ren (4):
  csky: Revert mmu ASID mechanism
  arch: Add generic asid implement from arm
  csky: Use generic asid algorithm to implement switch_mm
  csky: Improve tlb operation with help of asid

 arch/csky/abiv1/inc/abi/ckmmu.h     |   6 +
 arch/csky/abiv2/inc/abi/ckmmu.h     |  10 ++
 arch/csky/include/asm/asid.h        |  77 ++++++++++++
 arch/csky/include/asm/mmu.h         |   2 +-
 arch/csky/include/asm/mmu_context.h | 114 ++---------------
 arch/csky/include/asm/pgtable.h     |   2 -
 arch/csky/kernel/smp.c              |   2 -
 arch/csky/mm/Makefile               |   2 +
 arch/csky/mm/asid.c                 | 185 ++++++++++++++++++++++++++++
 arch/csky/mm/context.c              |  46 +++++++
 arch/csky/mm/init.c                 |   2 -
 arch/csky/mm/tlb.c                  | 238 ++++++++++++++----------------------
 12 files changed, 434 insertions(+), 252 deletions(-)
 create mode 100644 arch/csky/include/asm/asid.h
 create mode 100644 arch/csky/mm/asid.c
 create mode 100644 arch/csky/mm/context.c

-- 
2.7.4


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-06-19  7:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-19  7:49 [PATCH 0/4] csky: Use generic asid function from arm guoren
2019-06-19  7:49 ` [PATCH 1/4] csky: Revert mmu ASID mechanism guoren
2019-06-19  7:49 ` [PATCH 2/4] arch: Add generic asid implement from arm guoren
2019-06-19  7:49 ` [PATCH 3/4] csky: Use generic asid algorithm to implement switch_mm guoren
2019-06-19  7:49 ` [PATCH 4/4] csky: Improve tlb operation with help of asid guoren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).