diff options
| author | Peyton Lee <[email protected]> | 2024-03-13 08:53:49 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-03-27 12:50:20 +0000 |
| commit | eed14eb48ee176fe0144c6a999d00c855d0b199b (patch) | |
| tree | d4b52e0ce82ce9e7ca537c0a40b803f5f2a701ca /drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c | |
| parent | drm/amd/display: increase bb clock for DCN351 (diff) | |
| download | kernel-eed14eb48ee176fe0144c6a999d00c855d0b199b.tar.gz kernel-eed14eb48ee176fe0144c6a999d00c855d0b199b.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 <[email protected]>
Reviewed-by: Lang Yu <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c | 6 |
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; |
