Merge patch series "riscv: tlb flush improvements"
authorPalmer Dabbelt <palmer@rivosinc.com>
Mon, 6 Nov 2023 15:20:54 +0000 (07:20 -0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Mon, 6 Nov 2023 15:20:54 +0000 (07:20 -0800)
commit9ba91d1356db3ad4df7c79d5284bc1427d51c03b
treef146db541a3338c2e1a91a85ba87b7460e7ea873
parentdbfbda3bd6bfb5189e05b9eab8dfaad2d1d23f62
parent5e22bfd520ea8740e9a20314d2a890baf304c9d2
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>