OSDN Git Service

drm/amdgpu: fix modprobe failure for uvd_4/5/6
authorHawking Zhang <Hawking.Zhang@amd.com>
Mon, 24 Jun 2019 11:26:00 +0000 (19:26 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 24 Jun 2019 14:29:59 +0000 (09:29 -0500)
commit73c86d628d6aa3d7162094ef1f0503bda17b506e
tree83582297749cfa38cabfef12a7833344a75f261c
parentf3f48d7331cf5ad9a6b3a6beff38f3dad1871b49
drm/amdgpu: fix modprobe failure for uvd_4/5/6

For uvd_4/5/6, amdgpu driver will only power on them when
there are jobs assigned to decode/enc rings.uvd_4/5/6 dpm was broken
since amdgpu_dpm_set_powergating_by_smu only covers gfx block.

The change would add more IP block support in amdgpu_dpm_set_powergating_by_smu
For GFX/UVD/VCN/VCE, if the new SMU driver is supported, invoke new
power gate helper function smu_dpm_set_power_gate, otherwise, fallback to
legacy powerplay helper function pp_set_powergating_by_smu. For other IP blocks
always invoke legacy powerplay helper function.

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Tianci Yin <tianci.yin@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c