Skip to contentSkip to conversation

drm/amdgpu/navi10: add mclk to navi10_get_clock_by_type_with_latency

PATCH In review Alex Deucher 2 participants 3 messages Jan 25, 2020 – Jan 28, 2020

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

PATCH 1/1 drm/amdgpu/navi10: add mclk to navi10_get_clock_by_type_with_latency

Doesn't seem to be used, but add it just in case.

---
 drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/powerplay/navi10_ppt.c +2 -0
index 015f5ea38901..f60762f9b143 100644
@@ -1008,6 +1008,8 @@ static int navi10_get_clock_by_type_with_latency(struct smu_context *smu,
 	case SMU_GFXCLK:
 	case SMU_DCEFCLK:
 	case SMU_SOCCLK:
+	case SMU_MCLK:
+	case SMU_UCLK:
 		ret = smu_get_dpm_level_count(smu, clk_type, &level_count);
 		if (ret)
 			return ret;
Signature · 6 lines
2.24.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Reviewed-by on v1 1/1
#1 lore raw

Let me know if I'm not doing this correctly since I'm still new.

Patch is

Quoted 13 lines · Alex Deucher

Doesn't seem to be used, but add it just in case.

---
 drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/powerplay/navi10_ppt.c +0 -0
index 015f5ea38901..f60762f9b143 100644

drivers/gpu/drm/amd/powerplay/navi10_ppt.c static int navi10_get_clock_by_type_with_latency(struct smu_context *smu, · line 1015

Quoted 8 lines
drivers/gpu/drm/amd/powerplay/navi10_ppt.c +2 -0
@@ -1008,6 +1008,8 @@ static int navi10_get_clock_by_type_with_latency(struct smu_context *smu,
 	case SMU_GFXCLK:
 	case SMU_DCEFCLK:
 	case SMU_SOCCLK:
+	case SMU_MCLK:
+	case SMU_UCLK:
 		ret = smu_get_dpm_level_count(smu, clk_type, &level_count);
 		if (ret)
 			return ret;

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

#2 lore raw
Quoted 8 lines · Matt Coffin

Let me know if I'm not doing this correctly since I'm still new.

Patch is

Thanks!

Alex

Quoted 9 lines · Alex Deucher
Quoted 7 lines

Doesn't seem to be used, but add it just in case.

---
 drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 2 ++
 1 file changed, 2 insertions(+)
Quoted 14 lines
Quoted 6 lines
drivers/gpu/drm/amd/powerplay/navi10_ppt.c +0 -0
index 015f5ea38901..f60762f9b143 100644

drivers/gpu/drm/amd/powerplay/navi10_ppt.c static int navi10_get_clock_by_type_with_latency(struct smu_context *smu, · line 1015

Quoted 8 lines
drivers/gpu/drm/amd/powerplay/navi10_ppt.c +2 -0
@@ -1008,6 +1008,8 @@ static int navi10_get_clock_by_type_with_latency(struct smu_context *smu,
      case SMU_GFXCLK:
      case SMU_DCEFCLK:
      case SMU_SOCCLK:
+     case SMU_MCLK:
+     case SMU_UCLK:
              ret = smu_get_dpm_level_count(smu, clk_type, &level_count);
              if (ret)
                      return ret;

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx