aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
diff options
context:
space:
mode:
authorPrike Liang <Prike.Liang@amd.com>2019-05-27 04:05:50 -0400
committerAlex Deucher <alexander.deucher@amd.com>2019-06-11 13:40:06 -0400
commit80f41f84ae2c99ff2fd88163f2293f86c3c68af1 (patch)
tree0890dd94d0b2046b7a0fee388dfce596081602f3 /drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
parentefa0bf86a59cbe920b8c75074aa1a38535d6e05d (diff)
drm/amd/amdgpu: add RLC firmware to support raven1 refresh
Use SMU firmware version to indentify the raven1 refresh device and then load homologous RLC FW. Signed-off-by: Prike Liang <Prike.Liang@amd.com> Suggested-by: Huang Rui<Ray.Huang@amd.com> Reviewed-by: Huang Rui <ray.huang@amd.com> Reviewed-by: Evan Quan <evan.quan@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
index a73e1903d29b..21b5be1ac8ef 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
@@ -2698,6 +2698,21 @@ void amdgpu_pm_print_power_states(struct amdgpu_device *adev)
2698 2698
2699} 2699}
2700 2700
2701int amdgpu_pm_load_smu_firmware(struct amdgpu_device *adev, uint32_t *smu_version)
2702{
2703 int r = -EINVAL;
2704
2705 if (adev->powerplay.pp_funcs && adev->powerplay.pp_funcs->load_firmware) {
2706 r = adev->powerplay.pp_funcs->load_firmware(adev->powerplay.pp_handle);
2707 if (r) {
2708 pr_err("smu firmware loading failed\n");
2709 return r;
2710 }
2711 *smu_version = adev->pm.fw_version;
2712 }
2713 return r;
2714}
2715
2701int amdgpu_pm_sysfs_init(struct amdgpu_device *adev) 2716int amdgpu_pm_sysfs_init(struct amdgpu_device *adev)
2702{ 2717{
2703 struct pp_hwmgr *hwmgr = adev->powerplay.pp_handle; 2718 struct pp_hwmgr *hwmgr = adev->powerplay.pp_handle;