Skip to content

Commit

Permalink
lib: Invalid all tlb entries to workaroud c920 bug
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaoguang Xing <[email protected]>
  • Loading branch information
xingxg2022 committed Aug 29, 2024
1 parent 14a44c3 commit b351b88
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/sbi/sbi_tlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ static void sbi_tlb_local_hfence_gvma(struct sbi_tlb_info *tinfo)

static void sbi_tlb_local_sfence_vma(struct sbi_tlb_info *tinfo)
{
#if 0
unsigned long start = tinfo->start;
unsigned long size = tinfo->size;
unsigned long i;
Expand All @@ -96,6 +97,11 @@ static void sbi_tlb_local_sfence_vma(struct sbi_tlb_info *tinfo)
: "r"(start + i)
: "memory");
}
#else
sbi_pmu_ctr_incr_fw(SBI_PMU_FW_SFENCE_VMA_RCVD);

tlb_flush_all();
#endif
}

static void sbi_tlb_local_hfence_vvma_asid(struct sbi_tlb_info *tinfo)
Expand Down

0 comments on commit b351b88

Please sign in to comment.