drm/amdgpu: re-create idle bo's PTE during VM state machine reset
authorZhenGuo Yin <zhenguo.yin@amd.com>
Tue, 19 Dec 2023 06:39:42 +0000 (14:39 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Jan 2024 12:42:35 +0000 (12:42 +0000)
commit63835e3f4e0b3046584945ec9723e515f180ee58
tree69a18663ae30d22df181c0107246d90e0f1f999c
parent5fcd03fa028ba2d77717de41197fd5baa5bc7c5c
drm/amdgpu: re-create idle bo's PTE during VM state machine reset

[ Upstream commit 4a0057afa35872a5f2e65576785844688dd9fa5e ]

Idle bo's PTE needs to be re-created when resetting VM state machine.
Set idle bo's vm_bo as moved to mark it as invalid.

Fixes: 55bf196f60df ("drm/amdgpu: reset VM when an error is detected")
Signed-off-by: ZhenGuo Yin <zhenguo.yin@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c