diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c index e61f6a3ca241..6d7baf59d6e1 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | |||
@@ -97,6 +97,7 @@ MODULE_FIRMWARE("amdgpu/raven2_rlc.bin"); | |||
97 | static const struct soc15_reg_golden golden_settings_gc_9_0[] = | 97 | static const struct soc15_reg_golden golden_settings_gc_9_0[] = |
98 | { | 98 | { |
99 | SOC15_REG_GOLDEN_VALUE(GC, 0, mmDB_DEBUG2, 0xf00fffff, 0x00000400), | 99 | SOC15_REG_GOLDEN_VALUE(GC, 0, mmDB_DEBUG2, 0xf00fffff, 0x00000400), |
100 | SOC15_REG_GOLDEN_VALUE(GC, 0, mmDB_DEBUG3, 0x80000000, 0x80000000), | ||
100 | SOC15_REG_GOLDEN_VALUE(GC, 0, mmGB_GPU_ID, 0x0000000f, 0x00000000), | 101 | SOC15_REG_GOLDEN_VALUE(GC, 0, mmGB_GPU_ID, 0x0000000f, 0x00000000), |
101 | SOC15_REG_GOLDEN_VALUE(GC, 0, mmPA_SC_BINNER_EVENT_CNTL_3, 0x00000003, 0x82400024), | 102 | SOC15_REG_GOLDEN_VALUE(GC, 0, mmPA_SC_BINNER_EVENT_CNTL_3, 0x00000003, 0x82400024), |
102 | SOC15_REG_GOLDEN_VALUE(GC, 0, mmPA_SC_ENHANCE, 0x3fffffff, 0x00000001), | 103 | SOC15_REG_GOLDEN_VALUE(GC, 0, mmPA_SC_ENHANCE, 0x3fffffff, 0x00000001), |
@@ -4904,7 +4905,20 @@ static void gfx_v9_0_set_rlc_funcs(struct amdgpu_device *adev) | |||
4904 | static void gfx_v9_0_set_gds_init(struct amdgpu_device *adev) | 4905 | static void gfx_v9_0_set_gds_init(struct amdgpu_device *adev) |
4905 | { | 4906 | { |
4906 | /* init asci gds info */ | 4907 | /* init asci gds info */ |
4907 | adev->gds.mem.total_size = RREG32_SOC15(GC, 0, mmGDS_VMID0_SIZE); | 4908 | switch (adev->asic_type) { |
4909 | case CHIP_VEGA10: | ||
4910 | case CHIP_VEGA12: | ||
4911 | case CHIP_VEGA20: | ||
4912 | adev->gds.mem.total_size = 0x10000; | ||
4913 | break; | ||
4914 | case CHIP_RAVEN: | ||
4915 | adev->gds.mem.total_size = 0x1000; | ||
4916 | break; | ||
4917 | default: | ||
4918 | adev->gds.mem.total_size = 0x10000; | ||
4919 | break; | ||
4920 | } | ||
4921 | |||
4908 | adev->gds.gws.total_size = 64; | 4922 | adev->gds.gws.total_size = 64; |
4909 | adev->gds.oa.total_size = 16; | 4923 | adev->gds.oa.total_size = 16; |
4910 | 4924 | ||