[PATCH] drm/amdgpu/st: move ATC CG golden init from gfx to mc

Christian König deathsimple at vodafone.de
Tue Oct 18 09:00:48 UTC 2016


Am 18.10.2016 um 06:34 schrieb Alex Deucher:
> It's technically an MC register so make sure we initialize it
> in the MC module rather than the gfx module.  Since other bits
> in the same register are used to enable ATC CG features make
> sure we apply the golden setting first.
>
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>

Reviewed-by: Christian König <christian.koenig at amd.com>.

> ---
>   drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 1 -
>   drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c | 1 +
>   2 files changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
> index 1c2544f..6ce44bf 100644
> --- a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
> @@ -640,7 +640,6 @@ static const u32 stoney_mgcg_cgcg_init[] =
>   	mmCP_MEM_SLP_CNTL, 0xffffffff, 0x00020201,
>   	mmRLC_MEM_SLP_CNTL, 0xffffffff, 0x00020201,
>   	mmCGTS_SM_CTRL_REG, 0xffffffff, 0x96940200,
> -	mmATC_MISC_CG, 0xffffffff, 0x000c0200,
>   };
>   
>   static void gfx_v8_0_set_ring_funcs(struct amdgpu_device *adev);
> diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
> index 74d7cc3..f7372d3 100644
> --- a/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
> @@ -100,6 +100,7 @@ static const u32 cz_mgcg_cgcg_init[] =
>   
>   static const u32 stoney_mgcg_cgcg_init[] =
>   {
> +	mmATC_MISC_CG, 0xffffffff, 0x000c0200,
>   	mmMC_MEM_POWER_LS, 0xffffffff, 0x00000104
>   };
>   




More information about the amd-gfx mailing list