]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amd/display: delete legacy code
authorShunlu Zhang <Shunlu.Zhang@amd.com>
Thu, 14 Nov 2024 00:21:40 +0000 (19:21 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 Dec 2024 17:19:57 +0000 (12:19 -0500)
Delete unused code.

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Reviewed-by: Jun Lei <jun.lei@amd.com>
Signed-off-by: Shunlu Zhang <Shunlu.Zhang@amd.com>
Signed-off-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml/dcn30/display_rq_dlg_calc_30.c
drivers/gpu/drm/amd/display/dc/dml2/dml_display_rq_dlg_calc.c

index 76d3bb3c91550c47913f087cb39d7a3b6d3c705c..8d4873f80df023073ce949e1b11b7c856e1f235b 100644 (file)
@@ -1562,6 +1562,7 @@ static void dml_rq_dlg_get_dlg_params(struct display_mode_lib *mode_lib,
        dml_print("DML_DLG: %s: disp_dlg_regs->dst_y_per_row_vblank = 0x%x\n", __func__, disp_dlg_regs->dst_y_per_row_vblank);
        dml_print("DML_DLG: %s: disp_dlg_regs->dst_y_per_vm_flip    = 0x%x\n", __func__, disp_dlg_regs->dst_y_per_vm_flip);
        dml_print("DML_DLG: %s: disp_dlg_regs->dst_y_per_row_flip   = 0x%x\n", __func__, disp_dlg_regs->dst_y_per_row_flip);
+
        disp_dlg_regs->refcyc_per_pte_group_vblank_l =
                (unsigned int)(dst_y_per_row_vblank * (double)htotal
                        * ref_freq_to_pix_freq / (double)dpte_groups_per_row_ub_l);
index 377ef6d01ae5d3027ce8db1424734936dc0ca624..00d22e5424699287efd5f34788ed84e17527ffbf 100644 (file)
@@ -427,18 +427,6 @@ void dml_rq_dlg_get_dlg_reg(dml_display_dlg_regs_st                   *disp_dlg_regs,
        dml_print("DML_DLG: %s: disp_dlg_regs->dst_y_per_vm_flip        = 0x%x\n", __func__, disp_dlg_regs->dst_y_per_vm_flip);
        dml_print("DML_DLG: %s: disp_dlg_regs->dst_y_per_row_flip       = 0x%x\n", __func__, disp_dlg_regs->dst_y_per_row_flip);
 
-       // hack for FPGA
-       /* NOTE: We dont have getenv defined in driver and it does not make any sense in the driver */
-       /*char* fpga_env = getenv("FPGA_FPDIV");
-       if(fpga_env !=NULL)
-       {
-               if(disp_dlg_regs->vratio_prefetch >= (dml_uint_t)dml_pow(2, 22))
-               {
-                       disp_dlg_regs->vratio_prefetch = (dml_uint_t)dml_pow(2, 22)-1;
-                       dml_print("FPGA msg: vratio_prefetch exceed the max value, the register field is [21:0]\n");
-               }
-       }*/
-
        disp_dlg_regs->refcyc_per_vm_group_vblank               = (dml_uint_t)(dml_get_refcyc_per_vm_group_vblank_in_us(mode_lib, pipe_idx) * refclk_freq_in_mhz);
        disp_dlg_regs->refcyc_per_vm_group_flip                 = (dml_uint_t)(dml_get_refcyc_per_vm_group_flip_in_us(mode_lib, pipe_idx) * refclk_freq_in_mhz);
        disp_dlg_regs->refcyc_per_vm_req_vblank                 = (dml_uint_t)(dml_get_refcyc_per_vm_req_vblank_in_us(mode_lib, pipe_idx) * refclk_freq_in_mhz * dml_pow(2, 10));