csky: Use generic asid function from arm
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest4 patches 2 repliesIn review
- v14 patches 0 repliesSuperseded
Changes in v2 from the cover letter
- Add back set/clear cpu_mm.
- Update commit message to explain asid allocator.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | csky: Revert mmu ASID mechanismarch/ arch/ arch/ +3 more | +14 | 0 replies | |
| 2/4 | csky: Add new asid lib code from armarch/ arch/ arch/ +1 more | +273 | 2 replies | |
| 3/4 | csky: Use generic asid algorithm to implement switch_mmarch/ arch/ arch/ +3 more | +74 | 0 replies | |
| 4/4 | csky: Improve tlb operation with help of asidarch/ | +132 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH V2 0/4] csky: Use generic asid function from arm
From: Guo Ren <[email protected]>
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.
Changes for V2:
- Add back set/clear cpu_mm.
- Update commit message to explain asid allocator.
Guo Ren (4):
csky: Revert mmu ASID mechanism
csky: Add new asid lib code from arm
csky: Use generic asid algorithm to implement switch_mm
csky: Improve tlb operation with help of asid
arch/arm64/lib/asid.c | 9 +- arch/csky/abiv1/inc/abi/ckmmu.h | 6 + arch/csky/abiv2/inc/abi/ckmmu.h | 10 ++ arch/csky/include/asm/asid.h | 78 ++++++++++++ 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 | 188 ++++++++++++++++++++++++++++ arch/csky/mm/context.c | 46 +++++++ arch/csky/mm/init.c | 2 - arch/csky/mm/tlb.c | 238 ++++++++++++++---------------------- 13 files changed, 444 insertions(+), 255 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
Signature · 1 line
2.7.4