summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu
diff options
context:
space:
mode:
authorPeyton Lee <peytolee@amd.com>2024-03-13 16:53:49 +0800
committerAlex Deucher <alexander.deucher@amd.com>2024-03-22 15:50:20 -0400
commit9ddafd1d140441d288d3fc376d2809995ce504b7 (patch)
tree3b4196a99cdd330d70004c4c934f0718cfbee5c7 /drivers/gpu/drm/amd/amdgpu
parent734ae8ef625e30ea9b3ea0e7c8110bdceb6ddf26 (diff)
downloadlinux-stable-9ddafd1d140441d288d3fc376d2809995ce504b7.tar.gz
linux-stable-9ddafd1d140441d288d3fc376d2809995ce504b7.tar.bz2
linux-stable-9ddafd1d140441d288d3fc376d2809995ce504b7.zip
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 <peytolee@amd.com> Reviewed-by: Lang Yu <lang.yu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c
index 7a65a2b128ec..6695481f870f 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c
@@ -396,6 +396,12 @@ static int vpe_hw_init(void *handle)
struct amdgpu_vpe *vpe = &adev->vpe;
int ret;
+ /* Power on VPE */
+ ret = amdgpu_device_ip_set_powergating_state(adev, AMD_IP_BLOCK_TYPE_VPE,
+ AMD_PG_STATE_UNGATE);
+ if (ret)
+ return ret;
+
ret = vpe_load_microcode(vpe);
if (ret)
return ret;