Merge patch series "riscv: tlb flush improvements"
authorPalmer Dabbelt <palmer@rivosinc.com>
Tue, 7 Nov 2023 06:49:30 +0000 (22:49 -0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Tue, 7 Nov 2023 06:49:30 +0000 (22:49 -0800)
commitf367db71d5755d6476dd6f3d84b53c098c111255
tree118712d2391103d8a3cbb35cdf58b3ac24645b35
parente0c0a7c35f67191152635e5913f76aa7094d967c
parent62b78fd5fe39b5b82e4b4b8d0ba87ad40d1a99bb
Merge patch series "riscv: tlb flush improvements"

Alexandre Ghiti <alexghiti@rivosinc.com> says:

This series optimizes the tlb flushes on riscv which used to simply
flush the whole tlb whatever the size of the range to flush or the size
of the stride.

Patch 3 introduces a threshold that is microarchitecture specific and
will very likely be modified by vendors, not sure though which mechanism
we'll use to do that (dt? alternatives? vendor initialization code?).

* b4-shazam-merge:
  riscv: Improve flush_tlb_kernel_range()
  riscv: Make __flush_tlb_range() loop over pte instead of flushing the whole tlb
  riscv: Improve flush_tlb_range() for hugetlb pages
  riscv: Improve tlb_flush()

Link: https://lore.kernel.org/r/20231030133027.19542-1-alexghiti@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>