forked from Minki/linux
habanalabs/gaudi: invalidate PMMU mem cache on init
This must be done to clear the internal mem cache so we won't get ecc errors on the first invalidation. Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
This commit is contained in:
parent
6be42f0a1c
commit
e1b61f8e97
@ -3905,6 +3905,9 @@ static int gaudi_mmu_init(struct hl_device *hdev)
|
||||
WREG32(mmSTLB_CACHE_INV_BASE_39_8, MMU_CACHE_MNG_ADDR >> 8);
|
||||
WREG32(mmSTLB_CACHE_INV_BASE_49_40, MMU_CACHE_MNG_ADDR >> 40);
|
||||
|
||||
/* mem cache invalidation */
|
||||
WREG32(mmSTLB_MEM_CACHE_INVALIDATION, 1);
|
||||
|
||||
hdev->asic_funcs->mmu_invalidate_cache(hdev, true, 0);
|
||||
|
||||
WREG32(mmMMU_UP_MMU_ENABLE, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user