diff options
author | Huang Rui <ray.huang@amd.com> | 2019-01-23 06:09:08 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-03-19 16:03:59 -0400 |
commit | ad88f0517b239a08b148fbd300de103e8f7a78ef (patch) | |
tree | 3d13aaef342248fb4dbcec4cfc20b90d0f7f38c5 /drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | |
parent | 6316f51c4758a421f7e1fcaa8e3717ea1901d550 (diff) |
drm/amd/powerplay: don't check hwmgr while using the sw smu
While using the sw smu path, driver won't init hwmgr structure.
Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Kevin Wang <kevin1.wang@amd.com>
Reviewed-by: Likun Gao <Likun.Gao@amd.com>
Acked-by: Alex Deucher <alexander.deucher@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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c index 5b5a563169d6..7fe0330ca319 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | |||
@@ -2443,7 +2443,7 @@ int amdgpu_pm_sysfs_init(struct amdgpu_device *adev) | |||
2443 | "pp_power_profile_mode\n"); | 2443 | "pp_power_profile_mode\n"); |
2444 | return ret; | 2444 | return ret; |
2445 | } | 2445 | } |
2446 | if (hwmgr->od_enabled) { | 2446 | if (is_support_sw_smu(adev) || hwmgr->od_enabled) { |
2447 | ret = device_create_file(adev->dev, | 2447 | ret = device_create_file(adev->dev, |
2448 | &dev_attr_pp_od_clk_voltage); | 2448 | &dev_attr_pp_od_clk_voltage); |
2449 | if (ret) { | 2449 | if (ret) { |