]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
drm/amd/display: Use dce_version instead of chip_id
authorRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Tue, 2 Apr 2024 21:58:31 +0000 (15:58 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 17 Apr 2024 01:26:34 +0000 (21:26 -0400)
The chip ID DEVICE_ID_NV_13FE is not meaningful and represents a legacy
way of dealing with chip ID. This commit uses dc_version instead of
chip_id and also DCN_VERSION_2_01 instead of DEVICE_ID_NV_13FE.

Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Reviewed-by: Leo Li <sunpeng.li@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c

index c1a5908b97c84cfc5b0c74d9aafbe4fe9c5f8fb5..a2b4ff2cff1661cd121141bef2f44fc306086d2a 100644 (file)
@@ -272,7 +272,7 @@ struct clk_mgr *dc_clk_mgr_create(struct dc_context *ctx, struct pp_smu_funcs *p
                        dcn3_clk_mgr_construct(ctx, clk_mgr, pp_smu, dccg);
                        return &clk_mgr->base;
                }
-               if (asic_id.chip_id == DEVICE_ID_NV_13FE) {
+               if (ctx->dce_version == DCN_VERSION_2_01) {
                        dcn201_clk_mgr_construct(ctx, clk_mgr, pp_smu, dccg);
                        return &clk_mgr->base;
                }