diff options
| author | Peyton Lee <[email protected]> | 2024-04-19 06:07:39 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-04-24 03:23:02 +0000 |
| commit | d59198d2d0c5cb2a360819b000b0f173c472c9ef (patch) | |
| tree | ce2103f782548879fbdfffba8026adfb05a05084 /drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c | |
| parent | drm/amdgpu: Assign correct bits for SDMA HDP flush (diff) | |
| download | kernel-d59198d2d0c5cb2a360819b000b0f173c472c9ef.tar.gz kernel-d59198d2d0c5cb2a360819b000b0f173c472c9ef.zip | |
drm/amdgpu/vpe: fix vpe dpm setup failed
The vpe dpm settings should be done before firmware is loaded.
Otherwise, the frequency cannot be successfully raised.
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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c index 6695481f870f..c23d97d34b7e 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c @@ -205,7 +205,7 @@ disable_dpm: dpm_ctl &= 0xfffffffe; /* Disable DPM */ WREG32(vpe_get_reg_offset(vpe, 0, vpe->regs.dpm_enable), dpm_ctl); dev_dbg(adev->dev, "%s: disable vpe dpm\n", __func__); - return 0; + return -EINVAL; } int amdgpu_vpe_psp_update_sram(struct amdgpu_device *adev) |
