Patch "drm/amdgpu: re-create idle bo's PTE during VM state machine reset" has been added to the 6.6-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    drm/amdgpu: re-create idle bo's PTE during VM state machine reset

to the 6.6-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     drm-amdgpu-re-create-idle-bo-s-pte-during-vm-state-m.patch
and it can be found in the queue-6.6 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 7b97670b08afe7a77343f6529de6ff24322ab5a9
Author: ZhenGuo Yin <zhenguo.yin@xxxxxxx>
Date:   Tue Dec 19 14:39:42 2023 +0800

    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@xxxxxxx>
    Reviewed-by: Christian König <christian.koenig@xxxxxxx>
    Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
index 89c8e51cd3323..9fe1278fd5861 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
@@ -285,6 +285,7 @@ static void amdgpu_vm_bo_reset_state_machine(struct amdgpu_vm *vm)
 	list_for_each_entry_safe(vm_bo, tmp, &vm->idle, vm_status) {
 		struct amdgpu_bo *bo = vm_bo->bo;
 
+		vm_bo->moved = true;
 		if (!bo || bo->tbo.type != ttm_bo_type_kernel)
 			list_move(&vm_bo->vm_status, &vm_bo->vm->moved);
 		else if (bo->parent)




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux