Commit e1b61f8e authored by Oded Gabbay's avatar Oded Gabbay

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: default avatarOded Gabbay <ogabbay@kernel.org>
parent 6be42f0a
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment