During migration from VRAM to RAM, when PTE is cleared, reset
the PTE to always ensure that PTE.P=1 is set on GFX 12.1. If
PTE.P is not set, it can lead to TF faults.
Signed-off-by: Mukul Joshi <mukul.joshi@amd.com>
Reviewed-by: Alex Sierra <alex.sierra@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
uint64_t start, uint64_t last,
struct dma_fence **fence)
{
- uint64_t init_pte_value = 0;
+ uint64_t init_pte_value = adev->gmc.init_pte_flags;
pr_debug("[0x%llx 0x%llx]\n", start, last);