drm/amd/powerplay: update soc boot and max level on vega10

Submitted by Kenneth Feng on Feb. 3, 2019, 3:25 a.m.

Details

Message ID 1549164352-11937-1-git-send-email-kenneth.feng@amd.com
State Accepted
Commit 373e87fc91527124cb8ec21465a6d070a65c56af
Headers show
Series "drm/amd/powerplay: update soc boot and max level on vega10" ( rev: 1 ) in AMD X.Org drivers

Not browsing as part of any series.

Commit Message

Kenneth Feng Feb. 3, 2019, 3:25 a.m.
update soc boot and max level,then uclk isn't stuck
at minimum.

Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
---
 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 7 +++++++
 1 file changed, 7 insertions(+)

Patch hide | download patch | download mbox

diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
index 0d38ac2..5479125 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
@@ -3579,6 +3579,10 @@  static int vega10_generate_dpm_level_enable_mask(
 			vega10_find_lowest_dpm_level(&(data->dpm_table.mem_table));
 	data->smc_state_table.mem_max_level =
 			vega10_find_highest_dpm_level(&(data->dpm_table.mem_table));
+	data->smc_state_table.soc_boot_level =
+			vega10_find_lowest_dpm_level(&(data->dpm_table.soc_table));
+	data->smc_state_table.soc_max_level =
+			vega10_find_highest_dpm_level(&(data->dpm_table.soc_table));
 
 	PP_ASSERT_WITH_CODE(!vega10_upload_dpm_bootup_level(hwmgr),
 			"Attempt to upload DPM Bootup Levels Failed!",
@@ -3593,6 +3597,9 @@  static int vega10_generate_dpm_level_enable_mask(
 	for(i = data->smc_state_table.mem_boot_level; i < data->smc_state_table.mem_max_level; i++)
 		data->dpm_table.mem_table.dpm_levels[i].enabled = true;
 
+	for (i = data->smc_state_table.soc_boot_level; i < data->smc_state_table.soc_max_level; i++)
+		data->dpm_table.soc_table.dpm_levels[i].enabled = true;
+
 	return 0;
 }
 

Comments

On Sat, Feb 2, 2019 at 10:26 PM Kenneth Feng <kenneth.feng@amd.com> wrote:
>
> update soc boot and max level,then uclk isn't stuck
> at minimum.
>

Add:
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=109462

With that,
Acked-by: Alex Deucher <alexander.deucher@amd.com>


> Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
> ---
>  drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
> index 0d38ac2..5479125 100644
> --- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
> +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
> @@ -3579,6 +3579,10 @@ static int vega10_generate_dpm_level_enable_mask(
>                         vega10_find_lowest_dpm_level(&(data->dpm_table.mem_table));
>         data->smc_state_table.mem_max_level =
>                         vega10_find_highest_dpm_level(&(data->dpm_table.mem_table));
> +       data->smc_state_table.soc_boot_level =
> +                       vega10_find_lowest_dpm_level(&(data->dpm_table.soc_table));
> +       data->smc_state_table.soc_max_level =
> +                       vega10_find_highest_dpm_level(&(data->dpm_table.soc_table));
>
>         PP_ASSERT_WITH_CODE(!vega10_upload_dpm_bootup_level(hwmgr),
>                         "Attempt to upload DPM Bootup Levels Failed!",
> @@ -3593,6 +3597,9 @@ static int vega10_generate_dpm_level_enable_mask(
>         for(i = data->smc_state_table.mem_boot_level; i < data->smc_state_table.mem_max_level; i++)
>                 data->dpm_table.mem_table.dpm_levels[i].enabled = true;
>
> +       for (i = data->smc_state_table.soc_boot_level; i < data->smc_state_table.soc_max_level; i++)
> +               data->dpm_table.soc_table.dpm_levels[i].enabled = true;
> +
>         return 0;
>  }
>
> --
> 2.7.4
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx