projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02c825d
)
drm/amdgpu/vpe: power on vpe when hw_init
author
Peyton Lee
<peytolee@amd.com>
Wed, 13 Mar 2024 08:53:49 +0000
(16:53 +0800)
committer
Alex Deucher
<alexander.deucher@amd.com>
Wed, 27 Mar 2024 12:50:20 +0000
(08:50 -0400)
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c
index 7a65a2b128ec4372c5e6c219c70b9ab110b869fc..6695481f870f8a0dc61edfbe0d9947b19288bc25 100644
(file)
--- 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;