[PATCH] drm/amd/powerplay: lock grbm_gfx index when changing instance

Deucher, Alexander Alexander.Deucher at amd.com
Tue Sep 12 16:37:28 UTC 2017


> -----Original Message-----
> From: amd-gfx [mailto:amd-gfx-bounces at lists.freedesktop.org] On Behalf
> Of Tom St Denis
> Sent: Tuesday, September 12, 2017 12:35 PM
> To: amd-gfx at lists.freedesktop.org
> Cc: StDenis, Tom
> Subject: [PATCH] drm/amd/powerplay: lock grbm_gfx index when changing
> instance
> 
> Signed-off-by: Tom St Denis <tom.stdenis at amd.com>

Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  drivers/gpu/drm/amd/powerplay/hwmgr/smu7_powertune.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_powertune.c
> b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_powertune.c
> index 8c264c195e1a..0f75af33e581 100644
> --- a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_powertune.c
> +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_powertune.c
> @@ -746,6 +746,7 @@ int smu7_enable_didt_config(struct pp_hwmgr
> *hwmgr)
>  	    PP_CAP(PHM_PlatformCaps_TCPRamping)) {
> 
>  		cgs_enter_safe_mode(hwmgr->device, true);
> +		cgs_lock_grbm_idx(hwmgr->device, true);
>  		value = 0;
>  		value2 = cgs_read_register(hwmgr->device,
> mmGRBM_GFX_INDEX);
>  		for (count = 0; count < num_se; count++) {
> @@ -785,6 +786,7 @@ int smu7_enable_didt_config(struct pp_hwmgr
> *hwmgr)
>  			PP_ASSERT_WITH_CODE((0 == result),
>  					"Failed to enable DPM DIDT.", return
> result);
>  		}
> +		cgs_lock_grbm_idx(hwmgr->device, false);
>  		cgs_enter_safe_mode(hwmgr->device, false);
>  	}
> 
> --
> 2.12.0
> 
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


More information about the amd-gfx mailing list