amdgpu/pm: Enable sysfs node for pp_dpm_vclk for NAVI12
Subsystems (3)
PATCH 1/1 amdgpu/pm: Enable sysfs node for pp_dpm_vclk for NAVI12
SMI clock measure API is failing on NAVI12, because sysfs node for pp_dpm_vclk is not existing
Signed-off-by Marko Zekovic <[email protected]>
Change-Id I240fa055600bfc0d46dfec374339ba61764f9ab2
--- drivers/gpu/drm/amd/pm/amdgpu_pm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/pm/amdgpu_pm.c +2 -1
@@ -2001,7 +2001,8 @@ static int default_attr_update(struct amdgpu_device *adev, struct amdgpu_device_ *states =ATTR_STATE_UNSUPPORTED ; }else if (DEVICE_ATTR_IS (pp_dpm_vclk)) {if (!(gc_ver ==IP_VERSION (10 ,3 ,1 ) || - gc_ver ==IP_VERSION (10 ,3 ,0 ))) + gc_ver ==IP_VERSION (10 ,3 ,0 ) || + gc_ver ==IP_VERSION (10 ,1 ,2 ))) *states =ATTR_STATE_UNSUPPORTED ; }else if (DEVICE_ATTR_IS (pp_dpm_dclk)) { if (!(gc_ver == IP_VERSION(10, 3, 1) ||
Signature · 1 line
2.24.1.windows.2
Quoted 14 lines · Marko Zekovic
SMI clock measure API is failing on NAVI12, because sysfs node for
pp_dpm_vclkis not existingSigned-off-by Marko Zekovic <[email protected]>Change-Id I240fa055600bfc0d46dfec374339ba61764f9ab2--- drivers/gpu/drm/amd/pm/amdgpu_pm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/pm/amdgpu_pm.c +0
-0
drivers/gpu/drm/amd/pm/amdgpu_pm.c static int default_attr_update(struct amdgpu_device *adev, struct amdgpu_device_ · line 2005
Quoted 6 lines
drivers/gpu/drm/amd/pm/amdgpu_pm.c +2
-1@@ -2001,7 +2001,8 @@ static int default_attr_update(struct amdgpu_device *adev, struct amdgpu_device_ *states =ATTR_STATE_UNSUPPORTED ; }else if (DEVICE_ATTR_IS (pp_dpm_vclk)) {if (!(gc_ver ==IP_VERSION (10 ,3 ,1 ) || - gc_ver ==IP_VERSION (10 ,3 ,0 ))) + gc_ver ==IP_VERSION (10 ,3 ,0 ) || + gc_ver ==IP_VERSION (10 ,1 ,2 )))
For VCN, V and DCLK go in pair. A similar change needed for DCLK?
Thanks,
Lijo
Quoted 4 lines
drivers/gpu/drm/amd/pm/amdgpu_pm.c +0
-0*states =ATTR_STATE_UNSUPPORTED ; }else if (DEVICE_ATTR_IS (pp_dpm_dclk)) { if (!(gc_ver == IP_VERSION(10, 3, 1) ||