All of lore.kernel.org
 help / color / mirror / Atom feed
* drm/amdgpu: Print out voltage in DM_PPLIB
@ 2019-07-08 11:50 Paul Menzel
  2019-07-09  4:36   ` Alex Deucher
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Menzel @ 2019-07-08 11:50 UTC (permalink / raw)
  To: Alex Deucher, Christian König, David (ChunMing) Zhou
  Cc: linux-kernel, amd-gfx

[-- Attachment #1: Type: text/plain, Size: 1156 bytes --]

From: Paul Menzel <pmenzel@molgen.mpg.de>
Date: Sun, 7 Jul 2019 14:23:08 +0200

As the clock is already logged, also log the voltage.

Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>
---
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c
index 350e7a620d45..7fdf2f53c0ee 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c
@@ -292,7 +292,7 @@ static void pp_to_dc_clock_levels_with_voltage(
 			DC_DECODE_PP_CLOCK_TYPE(dc_clk_type));
 
 	for (i = 0; i < clk_level_info->num_levels; i++) {
-		DRM_INFO("DM_PPLIB:\t %d in kHz\n", pp_clks->data[i].clocks_in_khz);
+		DRM_INFO("DM_PPLIB:\t %d in kHz, %d in mV\n", pp_clks->data[i].clocks_in_khz,
+		          pp_clks->data[i].voltage_in_mv);
 		clk_level_info->data[i].clocks_in_khz = pp_clks->data[i].clocks_in_khz;
 		clk_level_info->data[i].voltage_in_mv = pp_clks->data[i].voltage_in_mv;
 	}
-- 
2.22.0


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 5174 bytes --]

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: drm/amdgpu: Print out voltage in DM_PPLIB
@ 2019-07-09  4:36   ` Alex Deucher
  0 siblings, 0 replies; 3+ messages in thread
From: Alex Deucher @ 2019-07-09  4:36 UTC (permalink / raw)
  To: Paul Menzel
  Cc: Alex Deucher, Christian König, David (ChunMing) Zhou, LKML,
	amd-gfx list

On Mon, Jul 8, 2019 at 7:50 AM Paul Menzel
<pmenzel+amd-gfx@molgen.mpg.de> wrote:
>
> From: Paul Menzel <pmenzel@molgen.mpg.de>
> Date: Sun, 7 Jul 2019 14:23:08 +0200
>
> As the clock is already logged, also log the voltage.
>
> Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>

Applied.  Thanks.

Alex

> ---
>  drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c
> index 350e7a620d45..7fdf2f53c0ee 100644
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c
> @@ -292,7 +292,7 @@ static void pp_to_dc_clock_levels_with_voltage(
>                         DC_DECODE_PP_CLOCK_TYPE(dc_clk_type));
>
>         for (i = 0; i < clk_level_info->num_levels; i++) {
> -               DRM_INFO("DM_PPLIB:\t %d in kHz\n", pp_clks->data[i].clocks_in_khz);
> +               DRM_INFO("DM_PPLIB:\t %d in kHz, %d in mV\n", pp_clks->data[i].clocks_in_khz,
> +                         pp_clks->data[i].voltage_in_mv);
>                 clk_level_info->data[i].clocks_in_khz = pp_clks->data[i].clocks_in_khz;
>                 clk_level_info->data[i].voltage_in_mv = pp_clks->data[i].voltage_in_mv;
>         }
> --
> 2.22.0
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: drm/amdgpu: Print out voltage in DM_PPLIB
@ 2019-07-09  4:36   ` Alex Deucher
  0 siblings, 0 replies; 3+ messages in thread
From: Alex Deucher @ 2019-07-09  4:36 UTC (permalink / raw)
  To: Paul Menzel
  Cc: Alex Deucher, David (ChunMing) Zhou, Christian König,
	amd-gfx list, LKML

On Mon, Jul 8, 2019 at 7:50 AM Paul Menzel
<pmenzel+amd-gfx@molgen.mpg.de> wrote:
>
> From: Paul Menzel <pmenzel@molgen.mpg.de>
> Date: Sun, 7 Jul 2019 14:23:08 +0200
>
> As the clock is already logged, also log the voltage.
>
> Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>

Applied.  Thanks.

Alex

> ---
>  drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c
> index 350e7a620d45..7fdf2f53c0ee 100644
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c
> @@ -292,7 +292,7 @@ static void pp_to_dc_clock_levels_with_voltage(
>                         DC_DECODE_PP_CLOCK_TYPE(dc_clk_type));
>
>         for (i = 0; i < clk_level_info->num_levels; i++) {
> -               DRM_INFO("DM_PPLIB:\t %d in kHz\n", pp_clks->data[i].clocks_in_khz);
> +               DRM_INFO("DM_PPLIB:\t %d in kHz, %d in mV\n", pp_clks->data[i].clocks_in_khz,
> +                         pp_clks->data[i].voltage_in_mv);
>                 clk_level_info->data[i].clocks_in_khz = pp_clks->data[i].clocks_in_khz;
>                 clk_level_info->data[i].voltage_in_mv = pp_clks->data[i].voltage_in_mv;
>         }
> --
> 2.22.0
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-07-09  4:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-08 11:50 drm/amdgpu: Print out voltage in DM_PPLIB Paul Menzel
2019-07-09  4:36 ` Alex Deucher
2019-07-09  4:36   ` Alex Deucher

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.