Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amd/display: Remove legacy code in DC

This commit just remove some trivial legacy code in some of the DC
files.

Acked-by: Wayne Lin <wayne.lin@amd.com>
Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Rodrigo Siqueira and committed by
Alex Deucher
90a7f0dd a82a632c

+1 -24
-12
drivers/gpu/drm/amd/display/dc/dml/dcn31/dcn31_fpu.c
··· 762 762 break; 763 763 } 764 764 } 765 - // Ported from DCN315 766 - if (clk_table->num_entries == 1) { 767 - /*smu gives one DPM level, let's take the highest one*/ 768 - closest_clk_lvl = dcn3_16_soc.num_states - 1; 769 - } 770 765 771 766 s[i].state = i; 772 767 773 768 /* Clocks dependent on voltage level. */ 774 769 s[i].dcfclk_mhz = clk_table->entries[i].dcfclk_mhz; 775 - if (clk_table->num_entries == 1 && 776 - s[i].dcfclk_mhz < 777 - dcn3_16_soc.clock_limits[closest_clk_lvl].dcfclk_mhz) { 778 - /*SMU fix not released yet*/ 779 - s[i].dcfclk_mhz = 780 - dcn3_16_soc.clock_limits[closest_clk_lvl].dcfclk_mhz; 781 - } 782 770 s[i].fabricclk_mhz = clk_table->entries[i].fclk_mhz; 783 771 s[i].socclk_mhz = clk_table->entries[i].socclk_mhz; 784 772 s[i].dram_speed_mts = clk_table->entries[i].memclk_mhz *
-6
drivers/gpu/drm/amd/display/dc/hwss/Makefile
··· 110 110 111 111 ############################################################################### 112 112 113 - ############################################################################### 114 - 115 - ############################################################################### 116 - 117 113 HWSS_DCN30 = dcn30_hwseq.o dcn30_init.o 118 114 119 115 AMD_DAL_HWSS_DCN30 = $(addprefix $(AMDDALPATH)/dc/hwss/dcn30/,$(HWSS_DCN30)) ··· 181 185 AMD_DAL_HWSS_DCN351 = $(addprefix $(AMDDALPATH)/dc/hwss/dcn351/,$(HWSS_DCN351)) 182 186 183 187 AMD_DISPLAY_FILES += $(AMD_DAL_HWSS_DCN351) 184 - 185 - ############################################################################### 186 188 187 189 ############################################################################### 188 190
+1 -1
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.h
··· 27 27 #define __DC_HWSS_DCN30_H__ 28 28 29 29 #include "hw_sequencer_private.h" 30 - #include "dcn20/dcn20_hwseq.h" 30 + 31 31 struct dc; 32 32 33 33 void dcn30_init_hw(struct dc *dc);
-3
drivers/gpu/drm/amd/display/dc/hwss/dcn301/dcn301_init.c
··· 53 53 .enable_stream = dcn20_enable_stream, 54 54 .disable_stream = dce110_disable_stream, 55 55 .unblank_stream = dcn20_unblank_stream, 56 - #ifdef FREESYNC_POWER_OPTIMIZE 57 - .are_streams_coarse_grain_aligned = dcn20_are_streams_coarse_grain_aligned, 58 - #endif 59 56 .blank_stream = dce110_blank_stream, 60 57 .enable_audio_stream = dce110_enable_audio_stream, 61 58 .disable_audio_stream = dce110_disable_audio_stream,
-2
drivers/gpu/drm/amd/display/dc/os_types.h
··· 29 29 30 30 #include <linux/slab.h> 31 31 #include <linux/kgdb.h> 32 - #include <linux/kref.h> 33 - #include <linux/types.h> 34 32 #include <linux/delay.h> 35 33 #include <linux/mm.h> 36 34