Skip to content

Commit eed14eb

Browse files
peytoleealexdeucher
authored andcommitted
drm/amdgpu/vpe: power on vpe when hw_init
To fix mode2 reset failure. Should power on VPE when hw_init. Signed-off-by: Peyton Lee <[email protected]> Reviewed-by: Lang Yu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 02c825d commit eed14eb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,12 @@ static int vpe_hw_init(void *handle)
396396
struct amdgpu_vpe *vpe = &adev->vpe;
397397
int ret;
398398

399+
/* Power on VPE */
400+
ret = amdgpu_device_ip_set_powergating_state(adev, AMD_IP_BLOCK_TYPE_VPE,
401+
AMD_PG_STATE_UNGATE);
402+
if (ret)
403+
return ret;
404+
399405
ret = vpe_load_microcode(vpe);
400406
if (ret)
401407
return ret;

0 commit comments

Comments
 (0)