drm/amdgpu/gmc9: Add vega20 support
authorFeifei Xu <Feifei.Xu@amd.com>
Fri, 20 Apr 2018 05:56:43 +0000 (13:56 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 17 May 2018 15:13:13 +0000 (10:13 -0500)
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Feifei Xu <Feifei.Xu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c

index 734306902e4e573a8cac09167d18e3369cc8e1f6..b60ed288d3149bf80251d2e64f9f465c601ce7e2 100644 (file)
@@ -752,6 +752,7 @@ static int gmc_v9_0_mc_init(struct amdgpu_device *adev)
                switch (adev->asic_type) {
                case CHIP_VEGA10:  /* all engines support GPUVM */
                case CHIP_VEGA12:  /* all engines support GPUVM */
+               case CHIP_VEGA20:
                default:
                        adev->gmc.gart_size = 512ULL << 20;
                        break;
@@ -857,6 +858,7 @@ static int gmc_v9_0_sw_init(void *handle)
                break;
        case CHIP_VEGA10:
        case CHIP_VEGA12:
+       case CHIP_VEGA20:
                /*
                 * To fulfill 4-level page support,
                 * vm size is 256TB (48bit), maximum size of Vega10,
@@ -974,6 +976,7 @@ static void gmc_v9_0_init_golden_registers(struct amdgpu_device *adev)
 
        switch (adev->asic_type) {
        case CHIP_VEGA10:
+       case CHIP_VEGA20:
                soc15_program_register_sequence(adev,
                                                golden_settings_mmhub_1_0_0,
                                                ARRAY_SIZE(golden_settings_mmhub_1_0_0));