]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/amdgpu: skip gfx 9 common golden settings for arct
authorHawking Zhang <Hawking.Zhang@amd.com>
Sat, 29 Jun 2019 14:22:13 +0000 (22:22 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 18 Jul 2019 19:18:06 +0000 (14:18 -0500)
They are not needed by arct

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Feifei Xu <Feifei.Xu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c

index 76e7e103f245f4f7853e1af2d4766e61b0359a8c..b9c347d2b989ddecb2affa1b761accf582b54c60 100644 (file)
@@ -390,8 +390,9 @@ static void gfx_v9_0_init_golden_registers(struct amdgpu_device *adev)
                break;
        }
 
-       soc15_program_register_sequence(adev, golden_settings_gc_9_x_common,
-                                       (const u32)ARRAY_SIZE(golden_settings_gc_9_x_common));
+       if (adev->asic_type != CHIP_ARCTURUS)
+               soc15_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)