From: Huang Rui Date: Wed, 23 Jan 2019 11:09:08 +0000 (+0800) Subject: drm/amd/powerplay: don't check hwmgr while using the sw smu X-Git-Tag: v5.15~6346^2~36^2~251 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ad88f0517b239a08b148fbd300de103e8f7a78ef;p=platform%2Fkernel%2Flinux-starfive.git 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 Reviewed-by: Kevin Wang Reviewed-by: Likun Gao Acked-by: Alex Deucher Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c index 5b5a563..7fe0330 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) "pp_power_profile_mode\n"); return ret; } - if (hwmgr->od_enabled) { + if (is_support_sw_smu(adev) || hwmgr->od_enabled) { ret = device_create_file(adev->dev, &dev_attr_pp_od_clk_voltage); if (ret) {