From: Palmer Dabbelt Date: Thu, 16 May 2024 20:00:00 +0000 (-0700) Subject: Merge patch series "riscv: access_ok() optimization" X-Git-Tag: microblaze-v6.13~1027^2~13 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=12cf29c6f900f04cd34e8867d4421aba49cd6a5d;p=linux-2.6-microblaze.git Merge patch series "riscv: access_ok() optimization" Samuel Holland 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 --- 12cf29c6f900f04cd34e8867d4421aba49cd6a5d