linux/arch
Alexandre Ghiti 9bf829def8 riscv: Improve flush_tlb_kernel_range()
[ Upstream commit 5e22bfd520 ]

This function used to simply flush the whole tlb of all harts, be more
subtile and try to only flush the range.

The problem is that we can only use PAGE_SIZE as stride since we don't know
the size of the underlying mapping and then this function will be improved
only if the size of the region to flush is < threshold * PAGE_SIZE.

Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Tested-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> # On RZ/Five SMARC
Reviewed-by: Samuel Holland <samuel.holland@sifive.com>
Tested-by: Samuel Holland <samuel.holland@sifive.com>
Link: https://lore.kernel.org/r/20231030133027.19542-5-alexghiti@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Stable-dep-of: d9807d60c1 ("riscv: mm: execute local TLB flush after populating vmemmap")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-02-16 19:10:52 +01:00
..
alpha rtc: Add support for configuring the UIP timeout for RTC reads 2024-01-31 16:18:56 -08:00
arc ARC: fix smatch warning 2024-01-20 11:51:44 +01:00
arm ARM: dts: imx23/28: Fix the DMA controller node name 2024-02-05 20:14:23 +00:00
arm64 arm64: irq: set the correct node for shadow call stack 2024-02-05 20:14:38 +00:00
csky arch: consolidate arch_irq_work_raise prototypes 2024-02-05 20:14:17 +00:00
hexagon Add x86 shadow stack support 2023-08-31 12:20:12 -07:00
ia64 cpu-hotplug: Provide prototypes for arch CPU registration 2023-10-11 14:27:37 +02:00
loongarch LoongArch/smp: Call rcutree_report_cpu_starting() at tlb_init() 2024-02-05 20:14:38 +00:00
m68k ata changes for 6.6 2023-09-05 12:37:28 -07:00
microblaze Microblaze patches for 6.6-rc1 2023-09-05 10:15:22 -07:00
mips mips: Call lose_fpu(0) before initializing fcr31 in mips_set_personality_nan 2024-01-31 16:19:13 -08:00
nios2 Add x86 shadow stack support 2023-08-31 12:20:12 -07:00
openrisc OpenRISC updates for 6.6 2023-09-05 10:09:31 -07:00
parisc parisc/firmware: Fix F-extend for PDC addresses 2024-01-31 16:18:52 -08:00
powerpc arch: consolidate arch_irq_work_raise prototypes 2024-02-05 20:14:17 +00:00
riscv riscv: Improve flush_tlb_kernel_range() 2024-02-16 19:10:52 +01:00
s390 KVM: s390: fix setting of fpc register 2024-02-05 20:14:17 +00:00
sh sh: ecovec24: Rename missed backlight field from fbdev to dev 2024-01-31 16:18:48 -08:00
sparc sparc32: fix a braino in fault handling in csum_and_copy_..._user() 2023-10-27 20:06:06 -04:00
um um: time-travel: fix time corruption 2024-02-05 20:14:31 +00:00
x86 mm, kmsan: fix infinite recursion due to RCU critical section 2024-02-05 20:14:38 +00:00
xtensa xtensa: boot/lib: fix function prototypes 2023-09-20 05:03:30 -07:00
.gitignore
Kconfig Add x86 shadow stack support 2023-08-31 12:20:12 -07:00