mirror of
https://github.com/Fishwaldo/opensbi.git
synced 2025-07-09 22:48:24 +00:00
lib: Change tlb range flush threshold to 4k page instead of 1G
In RISC-V, tlb flush happens at a page granularity. That's why OpenSBI also have a tlb range flush limit which decides the which tlb flush requests should be upgraded to full flush to avoid long delays. Currently, this is set to 1G which would result in a many sfence.vma execution in a tight loop for a large range. Change the threshold to 4k to speed things up. Signed-off-by: Atish Patra <atish.patra@wdc.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Anup Patel <anup.patel@wdc.com>
This commit is contained in:
parent
144acef684
commit
f2e82c3d79
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@
|
|||
/* clang-format off */
|
||||
|
||||
#define SBI_TLB_FLUSH_ALL ((unsigned long)-1)
|
||||
#define SBI_TLB_FLUSH_MAX_SIZE (1UL << 30)
|
||||
#define SBI_TLB_FLUSH_MAX_SIZE (1UL << 12)
|
||||
|
||||
/* clang-format on */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue