diff options
| author | Ruili Ji <[email protected]> | 2025-03-24 05:08:50 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2025-04-07 22:01:08 +0000 |
| commit | 9f7ce6a9ab95ed0c3a9aacdde219bb02d127cdfc (patch) | |
| tree | 0163521712137ae7a8b2916946bd2c05cc868fba /drivers/gpu/drm/amd/pm/amdgpu_dpm.c | |
| parent | drm/amd/display: Promote DC to 3.2.328 (diff) | |
| download | kernel-9f7ce6a9ab95ed0c3a9aacdde219bb02d127cdfc.tar.gz kernel-9f7ce6a9ab95ed0c3a9aacdde219bb02d127cdfc.zip | |
drm/amd/pm: implement dpm vcn reset function
Implement VCN engine reset by sending MSG_ResetVCN
on smu 13.0.6.
v2: fix format for code and message
Reviewed-by: Sonny Jiang <[email protected]>
Reviewed-by: Leo Liu <[email protected]>
Signed-off-by: Ruili Ji <[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 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/pm/amdgpu_dpm.c b/drivers/gpu/drm/amd/pm/amdgpu_dpm.c index 9f5768fa97dd..740ee2435f54 100644 --- a/drivers/gpu/drm/amd/pm/amdgpu_dpm.c +++ b/drivers/gpu/drm/amd/pm/amdgpu_dpm.c @@ -789,6 +789,21 @@ int amdgpu_dpm_reset_sdma(struct amdgpu_device *adev, uint32_t inst_mask) return ret; } +int amdgpu_dpm_reset_vcn(struct amdgpu_device *adev, uint32_t inst_mask) +{ + struct smu_context *smu = adev->powerplay.pp_handle; + int ret; + + if (!is_support_sw_smu(adev)) + return -EOPNOTSUPP; + + mutex_lock(&adev->pm.mutex); + ret = smu_reset_vcn(smu, inst_mask); + mutex_unlock(&adev->pm.mutex); + + return ret; +} + int amdgpu_dpm_get_dpm_freq_range(struct amdgpu_device *adev, enum pp_clock_type type, uint32_t *min, |
