]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amdgpu: retire ip init code specific for A0 rev
authorShiwu Zhang <shiwu.zhang@amd.com>
Mon, 3 Mar 2025 13:03:03 +0000 (21:03 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 7 Mar 2025 17:53:43 +0000 (12:53 -0500)
For aqua_vanjaram, A0 HW is retired so remove the code
specific for it in gfx ip init.

Signed-off-by: Shiwu Zhang <shiwu.zhang@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c

index 87add6274b98ade548834cbd57915997685c74b9..b276a16a8121c73605510cfe9e808768c46607a4 100644 (file)
@@ -349,18 +349,7 @@ static void gfx_v9_4_3_init_golden_registers(struct amdgpu_device *adev)
 
                WREG32_SOC15(GC, dev_inst, regGB_ADDR_CONFIG,
                             GOLDEN_GB_ADDR_CONFIG);
-               if (amdgpu_ip_version(adev, GC_HWIP, 0) == IP_VERSION(9, 5, 0)) {
-                       WREG32_FIELD15_PREREG(GC, dev_inst, TCP_UTCL1_CNTL2, SPARE, 0x1);
-               } else {
-                       /* Golden settings applied by driver for ASIC with rev_id 0 */
-                       if (adev->rev_id == 0) {
-                               WREG32_FIELD15_PREREG(GC, dev_inst, TCP_UTCL1_CNTL1,
-                                                     REDUCE_FIFO_DEPTH_BY_2, 2);
-                       } else {
-                               WREG32_FIELD15_PREREG(GC, dev_inst, TCP_UTCL1_CNTL2,
-                                                     SPARE, 0x1);
-                       }
-               }
+               WREG32_FIELD15_PREREG(GC, dev_inst, TCP_UTCL1_CNTL2, SPARE, 0x1);
        }
 }