Skip to contentSkip to conversation

drm/amd/pm: fix pp_*clk_od typo

PATCH In review Dmitrii Galantsev 3 participants 3 messages Dec 6, 2023 – Dec 7, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amd/pm: fix pp_*clk_od typo

Fix pp_dpm_sclk_od and pp_dpm_mclk_od typos.
Those were defined as pp_*clk_od but used as pp_dpm_*clk_od instead. This change removes the _dpm part.

---
 drivers/gpu/drm/amd/pm/amdgpu_pm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/pm/amdgpu_pm.c +2 -2
index e1497296afee..2cd995b0ceba 100644
@@ -2238,10 +2238,10 @@ static int default_attr_update(struct amdgpu_device *adev, struct amdgpu_device_
 	} else if (DEVICE_ATTR_IS(xgmi_plpd_policy)) {
 		if (amdgpu_dpm_get_xgmi_plpd_mode(adev, NULL) == XGMI_PLPD_NONE)
 			*states = ATTR_STATE_UNSUPPORTED;
-	} else if (DEVICE_ATTR_IS(pp_dpm_mclk_od)) {
+	} else if (DEVICE_ATTR_IS(pp_mclk_od)) {
 		if (amdgpu_dpm_get_mclk_od(adev) == -EOPNOTSUPP)
 			*states = ATTR_STATE_UNSUPPORTED;
-	} else if (DEVICE_ATTR_IS(pp_dpm_sclk_od)) {
+	} else if (DEVICE_ATTR_IS(pp_sclk_od)) {
 		if (amdgpu_dpm_get_sclk_od(adev) == -EOPNOTSUPP)
 			*states = ATTR_STATE_UNSUPPORTED;
 	} else if (DEVICE_ATTR_IS(apu_thermal_cap)) {
Signature · 1 line
2.43.0
maintainer Reviewed-by on v1 1/1
#1 lore raw

[AMD Official Use Only - General]

________________________________
From: amd-gfx <[email protected]> on behalf of Dmitrii Galantsev <[email protected]>
Sent: Wednesday, December 6, 2023 2:39 PM
To: [email protected] <[email protected]>
Cc: Galantsev, Dmitrii <[email protected]>
Subject: [PATCH] drm/amd/pm: fix pp_*clk_od typo

Fix pp_dpm_sclk_od and pp_dpm_mclk_od typos.
Those were defined as pp_*clk_od but used as pp_dpm_*clk_od instead. This change removes the _dpm part.

---
 drivers/gpu/drm/amd/pm/amdgpu_pm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/pm/amdgpu_pm.c +2 -2
index e1497296afee..2cd995b0ceba 100644
@@ -2238,10 +2238,10 @@ static int default_attr_update(struct amdgpu_device *adev, struct amdgpu_device_
         } else if (DEVICE_ATTR_IS(xgmi_plpd_policy)) {
                 if (amdgpu_dpm_get_xgmi_plpd_mode(adev, NULL) == XGMI_PLPD_NONE)
                         *states = ATTR_STATE_UNSUPPORTED;
-       } else if (DEVICE_ATTR_IS(pp_dpm_mclk_od)) {
+       } else if (DEVICE_ATTR_IS(pp_mclk_od)) {
                 if (amdgpu_dpm_get_mclk_od(adev) == -EOPNOTSUPP)
                         *states = ATTR_STATE_UNSUPPORTED;
-       } else if (DEVICE_ATTR_IS(pp_dpm_sclk_od)) {
+       } else if (DEVICE_ATTR_IS(pp_sclk_od)) {
                 if (amdgpu_dpm_get_sclk_od(adev) == -EOPNOTSUPP)
                         *states = ATTR_STATE_UNSUPPORTED;
         } else if (DEVICE_ATTR_IS(apu_thermal_cap)) {

--
2.43.0

Reviewed-by on v1 1/1
#2 lore raw
In reply to Dmitrii Galantsev
Quoted 5 lines · Dmitrii Galantsev

Fix pp_dpm_sclk_od and pp_dpm_mclk_od typos.
Those were defined as pp_*clk_od but used as pp_dpm_*clk_od instead. This change removes the _dpm part.

Add below tag also before while submitting the change.

Fixes 02484ac55114 (“drm/amd/pm: Hide irrelevant pm device attributes”)

Thanks,
Lijo

Quoted 21 lines
---
  drivers/gpu/drm/amd/pm/amdgpu_pm.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/pm/amdgpu_pm.c +2 -2
index e1497296afee..2cd995b0ceba 100644
@@ -2238,10 +2238,10 @@ static int default_attr_update(struct amdgpu_device *adev, struct amdgpu_device_
  	} else if (DEVICE_ATTR_IS(xgmi_plpd_policy)) {
  		if (amdgpu_dpm_get_xgmi_plpd_mode(adev, NULL) == XGMI_PLPD_NONE)
  			*states = ATTR_STATE_UNSUPPORTED;
-	} else if (DEVICE_ATTR_IS(pp_dpm_mclk_od)) {
+	} else if (DEVICE_ATTR_IS(pp_mclk_od)) {
  		if (amdgpu_dpm_get_mclk_od(adev) == -EOPNOTSUPP)
  			*states = ATTR_STATE_UNSUPPORTED;
-	} else if (DEVICE_ATTR_IS(pp_dpm_sclk_od)) {
+	} else if (DEVICE_ATTR_IS(pp_sclk_od)) {
  		if (amdgpu_dpm_get_sclk_od(adev) == -EOPNOTSUPP)
  			*states = ATTR_STATE_UNSUPPORTED;
  	} else if (DEVICE_ATTR_IS(apu_thermal_cap)) {