summaryrefslogtreecommitdiff
path: root/lib/objects.mk
diff options
context:
space:
mode:
authorAnup Patel <[email protected]>2019-05-20 11:20:53 +0530
committerAnup Patel <[email protected]>2019-05-21 10:06:08 +0530
commit4e2cd478208531c47343290f15b577d40c82649c (patch)
treeb5bc85b2364b958166376debd03ab485264fbd70 /lib/objects.mk
parent392749f6338ac8a63ce5492770caa4fb75ad6b96 (diff)
lib: Flush everything when remote TLB flush range is too large
On latest Linux kernel (i.e. 5.2-rc1), we get large TLB flush request for user space addresses (typically, start=x and end=-1). This is caused by Linux kernel commit a21344dfc6 ("riscv: fix sbi_remote_sfence_vma{,_asid}"). It's not practical to execute large number of sfence instructions for a large TLB flush range because it takes too much time and eventually causes CPU stall in Linux kernel. This patch addresses above issue by upgrading TLB flush range to TLB flush all whenever TLB flush range is greater than 1GB. Signed-off-by: Anup Patel <[email protected]> Reviewed-by: Atish Patra <[email protected]>
Diffstat (limited to 'lib/objects.mk')
0 files changed, 0 insertions, 0 deletions