diff options
| author | Peyton Lee <[email protected]> | 2023-12-12 02:12:33 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-12-14 20:25:59 +0000 |
| commit | a2f2f43f74cd050146cd2660bbc3c7e1e7c0da0b (patch) | |
| tree | 2ba3e1f693dd6c1647951d145df0dd3ce2ca01f9 /drivers/gpu/drm/amd/pm/amdgpu_dpm.c | |
| parent | drm/amdgpu: fix ftrace event amdgpu_bo_move always move on same heap (diff) | |
| download | kernel-a2f2f43f74cd050146cd2660bbc3c7e1e7c0da0b.tar.gz kernel-a2f2f43f74cd050146cd2660bbc3c7e1e7c0da0b.zip | |
drm/amd/pm: support return vpe clock table
pm supports return vpe clock table and soc clock table
Signed-off-by: Peyton Lee <[email protected]>
Reviewed-by: Li Ma <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/pm/amdgpu_dpm.c')
| -rw-r--r-- | drivers/gpu/drm/amd/pm/amdgpu_dpm.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/pm/amdgpu_dpm.c b/drivers/gpu/drm/amd/pm/amdgpu_dpm.c index 97b40c5fa1ff..6627ee07d52d 100644 --- a/drivers/gpu/drm/amd/pm/amdgpu_dpm.c +++ b/drivers/gpu/drm/amd/pm/amdgpu_dpm.c @@ -616,6 +616,16 @@ void amdgpu_dpm_enable_jpeg(struct amdgpu_device *adev, bool enable) enable ? "enable" : "disable", ret); } +void amdgpu_dpm_enable_vpe(struct amdgpu_device *adev, bool enable) +{ + int ret = 0; + + ret = amdgpu_dpm_set_powergating_by_smu(adev, AMD_IP_BLOCK_TYPE_VPE, !enable); + if (ret) + DRM_ERROR("Dpm %s vpe failed, ret = %d.\n", + enable ? "enable" : "disable", ret); +} + int amdgpu_pm_load_smu_firmware(struct amdgpu_device *adev, uint32_t *smu_version) { const struct amd_pm_funcs *pp_funcs = adev->powerplay.pp_funcs; |
