Merge patch series "riscv: access_ok() optimization"
authorPalmer Dabbelt <palmer@rivosinc.com>
Thu, 16 May 2024 20:00:00 +0000 (13:00 -0700)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 22 May 2024 23:12:47 +0000 (16:12 -0700)
commit12cf29c6f900f04cd34e8867d4421aba49cd6a5d
treebb772156df7d8afbb24e7e32f3ad56a82d6a5bf3
parent2aff5f955bbae311ca4b66e1dbd934e8f346d1f1
parentad5643cf2f699989daa85d909403febd6712fccb
Merge patch series "riscv: access_ok() optimization"

Samuel Holland <samuel.holland@sifive.com> says:

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.

* b4-shazam-merge:
  riscv: Define TASK_SIZE_MAX for __access_ok()
  riscv: Remove PGDIR_SIZE_L3 and TASK_SIZE_MIN

Link: https://lore.kernel.org/r/20240327143858.711792-1-samuel.holland@sifive.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/pgtable.h