Skip to content

Commit 85b7341

Browse files
Victor Zhaoalexdeucher
authored andcommitted
drm/amdgpu: fill the ucode bo during psp resume for SRIOV
refill the ucode bo during psp resume for SRIOV, otherwise ucode load will fail after VM hibernation and fb clean. Signed-off-by: Victor Zhao <Victor.Zhao@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 9814626 commit 85b7341

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3020,10 +3020,7 @@ static int psp_hw_init(struct amdgpu_ip_block *ip_block)
30203020
struct amdgpu_device *adev = ip_block->adev;
30213021

30223022
mutex_lock(&adev->firmware.mutex);
3023-
/*
3024-
* This sequence is just used on hw_init only once, no need on
3025-
* resume.
3026-
*/
3023+
30273024
ret = amdgpu_ucode_init_bo(adev);
30283025
if (ret)
30293026
goto failed;
@@ -3148,6 +3145,10 @@ static int psp_resume(struct amdgpu_ip_block *ip_block)
31483145

31493146
mutex_lock(&adev->firmware.mutex);
31503147

3148+
ret = amdgpu_ucode_init_bo(adev);
3149+
if (ret)
3150+
goto failed;
3151+
31513152
ret = psp_hw_start(psp);
31523153
if (ret)
31533154
goto failed;

0 commit comments

Comments
 (0)