Skip to content

riscv: Introduce compat-mode helpers & improve arch_get_mmap_end()

Leonardo Bras linux-mm linux-riscv lkml 1 version Applied

Status from this message: This series was applied to riscv/linux.git (for-next)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesApplied 5/5

Changes since RFC from the cover letter

- Fused with other patchset: Improve arch_get_mmap_end() macro
- Renamed from "Introduce & Optimize compat-mode helpers"

Patches in v1 All 5 applied

#Subject and filesSizeRepliesApplied
1/5riscv: Improve arch_get_mmap_end() macroarch/riscv/include/asm/processor.h+9 -30 repliesApplied
2/5riscv: Replace direct thread flag check with is_compat_task()arch/riscv/include/asm/elf.h arch/riscv/include/asm/pgtable.h+2 -20 repliesApplied
3/5riscv: add compile-time test into is_compat_task()arch/riscv/include/asm/compat.h arch/riscv/include/asm/elf.h arch/riscv/include/asm/pgtable.h +1 more+5 -120 repliesApplied
4/5riscv: Introduce is_compat_thread() into compat.harch/riscv/include/asm/compat.h arch/riscv/kernel/ptrace.c+11 -30 repliesApplied
5/5riscv: Introduce set_compat_task() in asm/compat.harch/riscv/include/asm/compat.h arch/riscv/include/asm/elf.h+9 -40 repliesApplied

Reviews trailers per patch

4 of 5 patches have a Reviewed-by or Acked-by.

PatchGuo RenAndy Chiu
1/5R-b
2/5
3/5R-b R-b
4/5R-b R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 0/5] riscv: Introduce compat-mode helpers & improve arch_get_mmap_end()

I just saw the opportunity of optimizing the helper is_compat_task() by introducing a compile-time test, and it made possible to remove some #ifdef's without any loss of performance.

I also saw the possibility of removing the direct check of task flags from general code, and concentrated it in asm/compat.h by creating a few more helpers, which in the end helped optimize code.

arch_get_mmap_end() just got a simple improvement and some extra docs.

Changes since RFC:
- Fused with other patchset: Improve arch_get_mmap_end() macro
- Renamed from "Introduce & Optimize compat-mode helpers"

Leonardo Bras (5):
riscv: Improve arch_get_mmap_end() macro
riscv: Replace direct thread flag check with is_compat_task()
riscv: add compile-time test into is_compat_task()
riscv: Introduce is_compat_thread() into compat.h
riscv: Introduce set_compat_task() in asm/compat.h

 arch/riscv/include/asm/compat.h    | 19 +++++++++++++++++++
 arch/riscv/include/asm/elf.h       | 11 ++---------
 arch/riscv/include/asm/pgtable.h   |  8 +-------
 arch/riscv/include/asm/processor.h | 16 +++++++++++-----
 arch/riscv/kernel/ptrace.c         |  6 +++---
 5 files changed, 36 insertions(+), 24 deletions(-)

base-commit: 610a9b8f49fbcf1100716370d3b5f6f884a2835a

Signature · 1 line
2.43.0