[PATCH v2 0/2] riscv: access_ok() optimization

patchwork-bot+linux-riscv at kernel.org patchwork-bot+linux-riscv at kernel.org
Wed May 22 07:10:31 PDT 2024


Hello:

This series was applied to riscv/linux.git (for-next)
by Palmer Dabbelt <palmer at rivosinc.com>:

On Wed, 27 Mar 2024 07:38:11 -0700 you wrote:
> This series optimizes access_ok() by defining TASK_SIZE_MAX. At Alex's
> suggestion, I also tried making TASK_SIZE constant (specifically by
> making PGDIR_SHIFT a variable instead of a ternary expression, then
> replacing the load with an immediate using ALTERNATIVE). This appeared
> to slightly improve performance on some implementations (C906) but
> regressed it on others (FU740). So I am leaving further optimizations to
> a later series.
> 
> [...]

Here is the summary with links:
  - [v2,1/2] riscv: Remove PGDIR_SIZE_L3 and TASK_SIZE_MIN
    https://git.kernel.org/riscv/c/9ad6bb3298d1
  - [v2,2/2] riscv: Define TASK_SIZE_MAX for __access_ok()
    https://git.kernel.org/riscv/c/ad5643cf2f69

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html





More information about the linux-riscv mailing list