[PATCH] drm/amdgpu: Add common golden settings for GFX9

Alex Deucher alexdeucher at gmail.com
Thu Nov 9 16:07:05 UTC 2017


On Thu, Nov 9, 2017 at 3:03 AM,  <Ken.Wang at amd.com> wrote:
> From: Ken Wang <Ken.Wang at amd.com>
>
> Signed-off-by: Ken Wang <Ken.Wang at amd.com>

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

> ---
>  drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 9 +++++++++
>  1 file changed, 9 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
> index 5a4c074..ee565d0 100644
> --- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
> @@ -207,6 +207,12 @@ static const u32 golden_settings_gc_9_1_rv1[] =
>         SOC15_REG_OFFSET(GC, 0, mmTD_CNTL), 0x01bd9f33, 0x00000800
>  };
>
> +static const u32 golden_settings_gc_9_x_common[] =
> +{
> +       SOC15_REG_OFFSET(GC, 0, mmGRBM_CAM_INDEX), 0xffffffff, 0x00000000,
> +       SOC15_REG_OFFSET(GC, 0, mmGRBM_CAM_DATA), 0xffffffff, 0x2544c382
> +};
> +
>  #define VEGA10_GB_ADDR_CONFIG_GOLDEN 0x2a114042
>  #define RAVEN_GB_ADDR_CONFIG_GOLDEN 0x24000042
>
> @@ -242,6 +248,9 @@ static void gfx_v9_0_init_golden_registers(struct amdgpu_device *adev)
>         default:
>                 break;
>         }
> +
> +       amdgpu_program_register_sequence(adev, golden_settings_gc_9_x_common,
> +                                       (const u32)ARRAY_SIZE(golden_settings_gc_9_x_common));
>  }
>
>  static void gfx_v9_0_scratch_init(struct amdgpu_device *adev)
> --
> 2.7.4
>
> _______________________________________________
> 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