]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5d9782bbe37dede99d6e5dd279a0bd123b5d1ddd
tree83582297749cfa38cabfef12a7833344a75f261c
parentcd6d6e9835c4828fa6b4d70f04736c3348742383
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