FAILED: patch "[PATCH] drm/amd/display: guard against overflow in HDCP message dump" failed to apply to 7.1-stable tree
[email protected]
maintainerThe patch below does not apply to the 7.1-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
To reproduce the conflict and resubmit, you may use the following commands:
git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-7.1.y
git checkout FETCH_HEAD
git cherry-pick -x 93c8fe6d56037f284be7116d0c8155847c6d7fbe
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2026072943-starboard-brisket-7559@gregkh' --subject-prefix 'PATCH 7.1.y' 'HEAD^..'
Possible dependencies:
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 93c8fe6d56037f284be7116d0c8155847c6d7fbe Mon Sep 17 00:00:00 2001
From: Harry Wentland <[email protected]>
Date: Tue, 16 Jun 2026 12:17:45 -0400
Subject: [PATCH] drm/amd/display: guard against overflow in HDCP message dump
[Why]mod_hdcp_dump_binary_message() computed target_size (a uint32_t) as roughly byte_size * msg_size and gated the whole write on buf_size >= target_size. A large msg_size can overflow target_size, wrapping it to a small value that passes the check while the loop still writes byte_size * msg_size bytes into buf. All current callers pass small constants so this is not reachable today, but the unchecked arithmetic should be hardened.
[How]
Drop the overflow-prone target_size precomputation and instead bounds-check the output position on every iteration, stopping once the next entry would not leave room for the trailing terminator. This cannot overflow and, for oversized messages, dumps as much as fits rather than printing nothing.
drivers/gpu/drm/amd/display/modules/hdcp/hdcp_log.c +18 -12
@@ -33,22 +33,28 @@ void mod_hdcp_dump_binary_message(uint8_t *msg, uint32_t msg_size, byte_size =3 , newline_size =1 , terminator_size =1 ; -uint32_t line_count = msg_size / bytes_per_line, - trailing_bytes = msg_size % bytes_per_line; -uint32_t target_size = (byte_size * bytes_per_line + newline_size) * line_count + - byte_size * trailing_bytes + newline_size + terminator_size;uint32_t buf_pos =0 ;uint32_t i =0 ; -if (buf_size >= target_size) { -for (i =0 ; i < msg_size; i++) { -if (i % bytes_per_line ==0 ) - buf[buf_pos++] ='\n' ; -sprintf ((char *)&buf[buf_pos],"%02X " , msg[i]); - buf_pos += byte_size; - } - buf[buf_pos++] ='\0' ; +/* Need room for at least the terminator. */ +if (buf_size < terminator_size) +return ; + +for (i =0 ; i < msg_size; i++) { +uint32_t needed = byte_size + terminator_size; + +if (i % bytes_per_line ==0 ) + needed += newline_size; + +if (buf_pos + needed > buf_size) +break ; + +if (i % bytes_per_line ==0 ) + buf[buf_pos++] ='\n' ; +sprintf ((char *)&buf[buf_pos],"%02X " , msg[i]); + buf_pos += byte_size; } + buf[buf_pos++] ='\0' ; }void mod_hdcp_log_ddc_trace (struct mod_hdcp *hdcp)
Sasha Levin
maintainerPATCH 1/3 drm/amd/display: Fix type mismatches in DML and normalize loop bounds
From: Gaghik Khachatrian <[email protected]>
[ Upstream commit faaeeecef94ad312b051dbe628d6e3f016ba5263 ]
[Why]
Address signed/unsigned comparison warnings across DML paths to keep builds warning-clean and improve type safety at comparison boundaries. Most warnings came from signed loop/index temporaries compared against unsigned counters (for example pipe_count, num_states, and candidate/state counts), plus a small number of mixed signed/unsigned clock and geometry checks.
[How]
Aligned iterator and temporary variable types with the semantic type of the compared bounds. Used unsigned indices for loops bounded by unsigned counters, and retained signed types where values are semantically signed (for example plane_count math, timing/micro-schedule arithmetic, and reverse/sentinel-style iteration). Where mixed signed/unsigned comparisons are intentional, applied explicit boundary casts instead of broad type changes (for example dispclk minimum clamp and selected timing/height comparisons).
As a side effect of converting count parameters such as NumberOfActivePlanes to unsigned, normalized equivalent loop forms from:
for (i = 0; i <= NumberOfActivePlanes - 1; i++)
into the normalized form:
for (i = 0; i < NumberOfActivePlanes; i++)
to keep bound style coherent and avoid avoidable mismatch patterns.
No functional behavior changes are intended; this is a warning-resolution and type-alignment cleanup.
Stable-dep-of: 93c8fe6d5603 ("drm/amd/display: guard against overflow in HDCP message dump")
--- .../drm/amd/display/dc/dml/calcs/dcn_calcs.c | 9 +- .../drm/amd/display/dc/dml/dcn20/dcn20_fpu.c | 34 +++-- .../dc/dml/dcn20/display_mode_vba_20.c | 36 ++--- .../dc/dml/dcn20/display_mode_vba_20v2.c | 36 ++--- .../dc/dml/dcn21/display_mode_vba_21.c | 36 ++--- .../drm/amd/display/dc/dml/dcn30/dcn30_fpu.c | 14 +- .../dc/dml/dcn30/display_mode_vba_30.c | 83 +++++------ .../amd/display/dc/dml/dcn301/dcn301_fpu.c | 5 +- .../amd/display/dc/dml/dcn302/dcn302_fpu.c | 2 +- .../amd/display/dc/dml/dcn303/dcn303_fpu.c | 2 +- .../drm/amd/display/dc/dml/dcn31/dcn31_fpu.c | 15 +- .../dc/dml/dcn31/display_mode_vba_31.c | 121 ++++++++-------- .../amd/display/dc/dml/dcn314/dcn314_fpu.c | 5 +- .../dc/dml/dcn314/display_mode_vba_314.c | 129 ++++++++++-------- .../drm/amd/display/dc/dml/dcn32/dcn32_fpu.c | 75 +++++----- .../dc/dml/dcn32/display_mode_vba_32.c | 21 +-- .../dc/dml/dcn32/display_mode_vba_util_32.c | 2 +- .../amd/display/dc/dml/dcn321/dcn321_fpu.c | 46 +++---- .../drm/amd/display/dc/dml/dcn35/dcn35_fpu.c | 5 +- .../amd/display/dc/dml/dcn351/dcn351_fpu.c | 5 +- .../drm/amd/display/dc/dml/display_mode_vba.c | 4 +- 21 files changed, 366 insertions(+), 319 deletions(-)
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c +5 -4
@@ -759,7 +759,8 @@ bool dcn_validate_bandwidth(const struct resource_pool *pool = dc->res_pool;struct dcn_bw_internal_vars *v = &context->dcn_bw_vars; -int i, input_idx, k; +unsigned int i; +int input_idx, k;int vesa_sync_start, asic_blank_end, asic_blank_start;bool bw_limit_pass;float bw_limit;
@@ -1168,9 +1169,9 @@ bool dcn_validate_bandwidth( context->bw_ctx.bw.dcn.clk.dispclk_khz = (int )(dc->dcn_soc->max_dispclk_vmax0p9 *1000 );if (context->bw_ctx.bw.dcn.clk.dispclk_khz < - dc->debug.min_disp_clk_khz) { + (int )dc->debug.min_disp_clk_khz) { context->bw_ctx.bw.dcn.clk.dispclk_khz = - dc->debug.min_disp_clk_khz; + (int )dc->debug.min_disp_clk_khz; } context->bw_ctx.bw.dcn.clk.dppclk_khz = context->bw_ctx.bw.dcn.clk.dispclk_khz /
@@ -1307,7 +1308,7 @@ bool dcn_validate_bandwidth(PERFORMANCE_TRACE_END ();BW_VAL_TRACE_FINISH (); -if (bw_limit_pass && v->voltage_level <=get_highest_allowed_voltage_level (dc->config.is_vmin_only_asic)) +if (bw_limit_pass && v->voltage_level <= (int )get_highest_allowed_voltage_level (dc->config.is_vmin_only_asic))return true;else return false;
drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c +20 -14
@@ -990,7 +990,8 @@ void dcn20_populate_dml_writeback_from_context(struct dc *dc,struct resource_context *res_ctx, display_e2e_pipe_params_st *pipes) { - int pipe_cnt, i; + unsigned int i; +int pipe_cnt;dc_assert_fp_enabled ();
@@ -1044,7 +1045,7 @@ void dcn20_fpu_set_wb_arb_params(struct mcif_arb_params *wb_arb_params,static bool is_dtbclk_required (struct dc *dc,struct dc_state *context) { -int i; +unsigned int i;for (i =0 ; i < dc->res_pool->pipe_count; i++) {if (!context->res_ctx.pipe_ctx[i].stream)continue ;
@@ -1134,7 +1135,7 @@ static void dcn20_adjust_freesync_v_startup(/* The newVStartUp is 1 line before vsync point */ newVstartup = asic_blank_end +1 ; - *vstartup_start = ((newVstartup > *vstartup_start) ? newVstartup : *vstartup_start); + *vstartup_start = (((int )newVstartup > *vstartup_start) ? (int )newVstartup : *vstartup_start); } void dcn20_calculate_dlg_params(struct dc *dc,
@@ -1143,7 +1144,8 @@ void dcn20_calculate_dlg_params(struct dc *dc,int pipe_cnt, int vlevel) { - int i, pipe_idx, active_hubp_count = 0; + int pipe_idx, active_hubp_count = 0; +unsigned int i;dc_assert_fp_enabled ();
@@ -1155,7 +1157,7 @@ void dcn20_calculate_dlg_params(struct dc *dc, context->bw_ctx.bw.dcn.clk.socclk_khz = context->bw_ctx.dml.vba.SOCCLK *1000 ; context->bw_ctx.bw.dcn.clk.dramclk_khz = context->bw_ctx.dml.vba.DRAMSpeed *1000 /16 ; -if (dc->debug.min_dram_clk_khz > context->bw_ctx.bw.dcn.clk.dramclk_khz) +if ((int )dc->debug.min_dram_clk_khz > context->bw_ctx.bw.dcn.clk.dramclk_khz) context->bw_ctx.bw.dcn.clk.dramclk_khz = dc->debug.min_dram_clk_khz; context->bw_ctx.bw.dcn.clk.dcfclk_deep_sleep_khz = context->bw_ctx.dml.vba.DCFCLKDeepSleep *1000 ;
@@ -1173,8 +1175,8 @@ void dcn20_calculate_dlg_params(struct dc *dc, context->bw_ctx.bw.dcn.clk.dtbclk_en =is_dtbclk_required (dc, context); -if (context->bw_ctx.bw.dcn.clk.dispclk_khz < dc->debug.min_disp_clk_khz) - context->bw_ctx.bw.dcn.clk.dispclk_khz = dc->debug.min_disp_clk_khz; +if ((unsigned int )context->bw_ctx.bw.dcn.clk.dispclk_khz < dc->debug.min_disp_clk_khz) + context->bw_ctx.bw.dcn.clk.dispclk_khz = (int )dc->debug.min_disp_clk_khz;for (i =0 , pipe_idx =0 ; i < dc->res_pool->pipe_count; i++) {if (!context->res_ctx.pipe_ctx[i].stream)
@@ -1317,7 +1319,8 @@ int dcn20_populate_dml_pipes_from_context(struct dc *dc, enum dc_validate_mode validate_mode) { (void )validate_mode; -int pipe_cnt, i; +int pipe_cnt; +unsigned int i;bool synchronized_vblank = true;struct resource_context *res_ctx = &context->res_ctx;
@@ -1735,7 +1738,8 @@ void dcn20_calculate_wm(struct dc *dc, struct dc_state *context,int vlevel, enum dc_validate_mode validate_mode) { - int pipe_cnt, i, pipe_idx; + int pipe_cnt, pipe_idx; +unsigned int i;dc_assert_fp_enabled ();
@@ -1853,7 +1857,7 @@ void dcn20_update_bounding_box(struct dc *dc, {int num_calculated_states =0 ;int min_dcfclk =0 ; -int i; +unsigned int i;dc_assert_fp_enabled ();
@@ -1914,7 +1918,7 @@ void dcn20_update_bounding_box(struct dc *dc,void dcn20_cap_soc_clocks (struct _vcs_dpi_soc_bounding_box_st *bb,struct pp_smu_nv_clock_table max_clocks) { -int i; +unsigned int i;dc_assert_fp_enabled ();
@@ -2158,7 +2162,7 @@ int dcn21_populate_dml_pipes_from_context(struct dc *dc, enum dc_validate_mode validate_mode) {uint32_t pipe_cnt; -int i; +unsigned int i;dc_assert_fp_enabled ();
@@ -2240,7 +2244,8 @@ static void dcn21_calculate_wm(struct dc *dc, struct dc_state *context,int vlevel_req, enum dc_validate_mode validate_mode) { - int pipe_cnt, i, pipe_idx; + int pipe_cnt, pipe_idx; +unsigned int i;int vlevel, vlevel_max;struct wm_range_table_entry *table_entry;struct clk_bw_params *bw_params = dc->clk_mgr->bw_params;
@@ -2476,7 +2481,8 @@ void dcn201_populate_dml_writeback_from_context_fpu(struct dc *dc,struct resource_context *res_ctx, display_e2e_pipe_params_st *pipes) { - int pipe_cnt, i, j; + int pipe_cnt; +unsigned int i, j;double max_calc_writeback_dispclk;double writeback_dispclk;struct writeback_st dout_wb = {0 };
drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c +18 -18
@@ -3288,8 +3288,8 @@ void dml20_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l {struct vba_vars_st *locals = &mode_lib->vba; -int i; -unsigned int j, k, m; +int idx; +unsigned int i, j, k, m;/*MODE SUPPORT, VOLTAGE STATE AND SOC CONFIGURATION*/
@@ -5018,7 +5018,7 @@ void dml20_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l }/*Mode Support, Voltage State and SOC Configuration*/ -for (i = mode_lib->vba.soc.num_states; i >=0 ; i--) { +for (idx = mode_lib->vba.soc.num_states; idx >=0 ; idx--) {for (j =0 ; j <2 ; j++) {enum dm_validation_status status =DML_VALIDATION_OK ;
@@ -5026,21 +5026,21 @@ void dml20_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l status =DML_FAIL_SCALE_RATIO_TAP ; }else if (mode_lib->vba.SourceFormatPixelAndScanSupport != true) { status =DML_FAIL_SOURCE_PIXEL_FORMAT ; - }else if (locals->ViewportSizeSupport[i][0 ] != true) { + }else if (locals->ViewportSizeSupport[idx][0 ] != true) { status =DML_FAIL_VIEWPORT_SIZE ; - }else if (locals->DIOSupport[i] != true) { + }else if (locals->DIOSupport[idx] != true) { status =DML_FAIL_DIO_SUPPORT ; - }else if (locals->NotEnoughDSCUnits[i] != false) { + }else if (locals->NotEnoughDSCUnits[idx] != false) { status =DML_FAIL_NOT_ENOUGH_DSC ; - }else if (locals->DSCCLKRequiredMoreThanSupported[i] != false) { + }else if (locals->DSCCLKRequiredMoreThanSupported[idx] != false) { status =DML_FAIL_DSC_CLK_REQUIRED ; - }else if (locals->UrgentLatencySupport[i][j] != true) { + }else if (locals->UrgentLatencySupport[idx][j] != true) { status =DML_FAIL_URGENT_LATENCY ; - }else if (locals->ROBSupport[i][0 ] != true) { + }else if (locals->ROBSupport[idx][0 ] != true) { status =DML_FAIL_REORDERING_BUFFER ; - }else if (locals->DISPCLK_DPPCLK_Support[i][j] != true) { + }else if (locals->DISPCLK_DPPCLK_Support[idx][j] != true) { status =DML_FAIL_DISPCLK_DPPCLK ; - }else if (locals->TotalAvailablePipesSupport[i][j] != true) { + }else if (locals->TotalAvailablePipesSupport[idx][j] != true) { status =DML_FAIL_TOTAL_AVAILABLE_PIPES ; }else if (mode_lib->vba.NumberOfOTGSupport != true) { status =DML_FAIL_NUM_OTG ;
@@ -5054,24 +5054,24 @@ void dml20_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l status =DML_FAIL_CURSOR_SUPPORT ; }else if (mode_lib->vba.PitchSupport != true) { status =DML_FAIL_PITCH_SUPPORT ; - }else if (locals->PrefetchSupported[i][j] != true) { + }else if (locals->PrefetchSupported[idx][j] != true) { status =DML_FAIL_PREFETCH_SUPPORT ; - }else if (locals->TotalVerticalActiveBandwidthSupport[i][0 ] != true) { + }else if (locals->TotalVerticalActiveBandwidthSupport[idx][0 ] != true) { status =DML_FAIL_TOTAL_V_ACTIVE_BW ; - }else if (locals->VRatioInPrefetchSupported[i][j] != true) { + }else if (locals->VRatioInPrefetchSupported[idx][j] != true) { status =DML_FAIL_V_RATIO_PREFETCH ; - }else if (locals->PTEBufferSizeNotExceeded[i][j] != true) { + }else if (locals->PTEBufferSizeNotExceeded[idx][j] != true) { status =DML_FAIL_PTE_BUFFER_SIZE ; }else if (mode_lib->vba.NonsupportedDSCInputBPC != false) { status =DML_FAIL_DSC_INPUT_BPC ; }if (status ==DML_VALIDATION_OK ) { - locals->ModeSupport[i][j] = true; + locals->ModeSupport[idx][j] = true; }else { - locals->ModeSupport[i][j] = false; + locals->ModeSupport[idx][j] = false; } - locals->ValidationStatus[i] = status; + locals->ValidationStatus[idx] = status; } } {
drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c +18 -18
@@ -3396,8 +3396,8 @@ void dml20v2_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode {struct vba_vars_st *locals = &mode_lib->vba; -int i; -unsigned int j, k, m; +int idx; +unsigned int i, j, k, m;/*MODE SUPPORT, VOLTAGE STATE AND SOC CONFIGURATION*/
@@ -5135,7 +5135,7 @@ void dml20v2_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode }/*Mode Support, Voltage State and SOC Configuration*/ -for (i = mode_lib->vba.soc.num_states; i >=0 ; i--) { +for (idx = mode_lib->vba.soc.num_states; idx >=0 ; idx--) {for (j =0 ; j <2 ; j++) {enum dm_validation_status status =DML_VALIDATION_OK ;
@@ -5143,21 +5143,21 @@ void dml20v2_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode status =DML_FAIL_SCALE_RATIO_TAP ; }else if (mode_lib->vba.SourceFormatPixelAndScanSupport != true) { status =DML_FAIL_SOURCE_PIXEL_FORMAT ; - }else if (locals->ViewportSizeSupport[i][0 ] != true) { + }else if (locals->ViewportSizeSupport[idx][0 ] != true) { status =DML_FAIL_VIEWPORT_SIZE ; - }else if (locals->DIOSupport[i] != true) { + }else if (locals->DIOSupport[idx] != true) { status =DML_FAIL_DIO_SUPPORT ; - }else if (locals->NotEnoughDSCUnits[i] != false) { + }else if (locals->NotEnoughDSCUnits[idx] != false) { status =DML_FAIL_NOT_ENOUGH_DSC ; - }else if (locals->DSCCLKRequiredMoreThanSupported[i] != false) { + }else if (locals->DSCCLKRequiredMoreThanSupported[idx] != false) { status =DML_FAIL_DSC_CLK_REQUIRED ; - }else if (locals->UrgentLatencySupport[i][j] != true) { + }else if (locals->UrgentLatencySupport[idx][j] != true) { status =DML_FAIL_URGENT_LATENCY ; - }else if (locals->ROBSupport[i][0 ] != true) { + }else if (locals->ROBSupport[idx][0 ] != true) { status =DML_FAIL_REORDERING_BUFFER ; - }else if (locals->DISPCLK_DPPCLK_Support[i][j] != true) { + }else if (locals->DISPCLK_DPPCLK_Support[idx][j] != true) { status =DML_FAIL_DISPCLK_DPPCLK ; - }else if (locals->TotalAvailablePipesSupport[i][j] != true) { + }else if (locals->TotalAvailablePipesSupport[idx][j] != true) { status =DML_FAIL_TOTAL_AVAILABLE_PIPES ; }else if (mode_lib->vba.NumberOfOTGSupport != true) { status =DML_FAIL_NUM_OTG ;
@@ -5171,24 +5171,24 @@ void dml20v2_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode status =DML_FAIL_CURSOR_SUPPORT ; }else if (mode_lib->vba.PitchSupport != true) { status =DML_FAIL_PITCH_SUPPORT ; - }else if (locals->PrefetchSupported[i][j] != true) { + }else if (locals->PrefetchSupported[idx][j] != true) { status =DML_FAIL_PREFETCH_SUPPORT ; - }else if (locals->TotalVerticalActiveBandwidthSupport[i][0 ] != true) { + }else if (locals->TotalVerticalActiveBandwidthSupport[idx][0 ] != true) { status =DML_FAIL_TOTAL_V_ACTIVE_BW ; - }else if (locals->VRatioInPrefetchSupported[i][j] != true) { + }else if (locals->VRatioInPrefetchSupported[idx][j] != true) { status =DML_FAIL_V_RATIO_PREFETCH ; - }else if (locals->PTEBufferSizeNotExceeded[i][j] != true) { + }else if (locals->PTEBufferSizeNotExceeded[idx][j] != true) { status =DML_FAIL_PTE_BUFFER_SIZE ; }else if (mode_lib->vba.NonsupportedDSCInputBPC != false) { status =DML_FAIL_DSC_INPUT_BPC ; }if (status ==DML_VALIDATION_OK ) { - locals->ModeSupport[i][j] = true; + locals->ModeSupport[idx][j] = true; }else { - locals->ModeSupport[i][j] = false; + locals->ModeSupport[idx][j] = false; } - locals->ValidationStatus[i] = status; + locals->ValidationStatus[idx] = status; } } {
drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c +18 -18
@@ -3525,8 +3525,8 @@ void dml21_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l {struct vba_vars_st *locals = &mode_lib->vba; -int i; -unsigned int j, k, m; +int idx; +unsigned int i, j, k, m;/*MODE SUPPORT, VOLTAGE STATE AND SOC CONFIGURATION*/
@@ -5138,7 +5138,7 @@ void dml21_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l }/*Mode Support, Voltage State and SOC Configuration*/ -for (i = mode_lib->vba.soc.num_states; i >=0 ; i--) { +for (idx = mode_lib->vba.soc.num_states; idx >=0 ; idx--) {for (j =0 ; j <2 ; j++) {enum dm_validation_status status =DML_VALIDATION_OK ;
@@ -5146,19 +5146,19 @@ void dml21_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l status =DML_FAIL_SCALE_RATIO_TAP ; }else if (!mode_lib->vba.SourceFormatPixelAndScanSupport) { status =DML_FAIL_SOURCE_PIXEL_FORMAT ; - }else if (!locals->ViewportSizeSupport[i][0 ]) { + }else if (!locals->ViewportSizeSupport[idx][0 ]) { status =DML_FAIL_VIEWPORT_SIZE ; - }else if (!locals->DIOSupport[i]) { + }else if (!locals->DIOSupport[idx]) { status =DML_FAIL_DIO_SUPPORT ; - }else if (locals->NotEnoughDSCUnits[i]) { + }else if (locals->NotEnoughDSCUnits[idx]) { status =DML_FAIL_NOT_ENOUGH_DSC ; - }else if (locals->DSCCLKRequiredMoreThanSupported[i]) { + }else if (locals->DSCCLKRequiredMoreThanSupported[idx]) { status =DML_FAIL_DSC_CLK_REQUIRED ; - }else if (!locals->ROBSupport[i][0 ]) { + }else if (!locals->ROBSupport[idx][0 ]) { status =DML_FAIL_REORDERING_BUFFER ; - }else if (!locals->DISPCLK_DPPCLK_Support[i][j]) { + }else if (!locals->DISPCLK_DPPCLK_Support[idx][j]) { status =DML_FAIL_DISPCLK_DPPCLK ; - }else if (!locals->TotalAvailablePipesSupport[i][j]) { + }else if (!locals->TotalAvailablePipesSupport[idx][j]) { status =DML_FAIL_TOTAL_AVAILABLE_PIPES ; }else if (!mode_lib->vba.NumberOfOTGSupport) { status =DML_FAIL_NUM_OTG ;
@@ -5172,27 +5172,27 @@ void dml21_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l status =DML_FAIL_CURSOR_SUPPORT ; }else if (!mode_lib->vba.PitchSupport) { status =DML_FAIL_PITCH_SUPPORT ; - }else if (!locals->TotalVerticalActiveBandwidthSupport[i][0 ]) { + }else if (!locals->TotalVerticalActiveBandwidthSupport[idx][0 ]) { status =DML_FAIL_TOTAL_V_ACTIVE_BW ; - }else if (!locals->PTEBufferSizeNotExceeded[i][j]) { + }else if (!locals->PTEBufferSizeNotExceeded[idx][j]) { status =DML_FAIL_PTE_BUFFER_SIZE ; }else if (mode_lib->vba.NonsupportedDSCInputBPC) { status =DML_FAIL_DSC_INPUT_BPC ; }else if ((mode_lib->vba.HostVMEnable - && !locals->ImmediateFlipSupportedForState[i][j])) { + && !locals->ImmediateFlipSupportedForState[idx][j])) { status =DML_FAIL_HOST_VM_IMMEDIATE_FLIP ; - }else if (!locals->PrefetchSupported[i][j]) { + }else if (!locals->PrefetchSupported[idx][j]) { status =DML_FAIL_PREFETCH_SUPPORT ; - }else if (!locals->VRatioInPrefetchSupported[i][j]) { + }else if (!locals->VRatioInPrefetchSupported[idx][j]) { status =DML_FAIL_V_RATIO_PREFETCH ; }if (status ==DML_VALIDATION_OK ) { - locals->ModeSupport[i][j] = true; + locals->ModeSupport[idx][j] = true; }else { - locals->ModeSupport[i][j] = false; + locals->ModeSupport[idx][j] = false; } - locals->ValidationStatus[i] = status; + locals->ValidationStatus[idx] = status; } } {
drivers/gpu/drm/amd/display/dc/dml/dcn30/dcn30_fpu.c +8 -6
@@ -181,7 +181,8 @@ struct _vcs_dpi_soc_bounding_box_st dcn3_0_soc = {void dcn30_fpu_populate_dml_writeback_from_context (struct dc *dc,struct resource_context *res_ctx,display_e2e_pipe_params_st *pipes) { -int pipe_cnt, i, j; +int pipe_cnt; +unsigned int i, j;double max_calc_writeback_dispclk;double writeback_dispclk;struct writeback_st dout_wb = {0 };
@@ -308,6 +309,7 @@ void dcn30_fpu_calculate_wm_and_dlg( {int maxMpcComb = context->bw_ctx.dml.vba.maxMpcComb;int i, pipe_idx; +unsigned int pipe_i, state_i;double dcfclk = context->bw_ctx.dml.vba.DCFCLKState[vlevel][maxMpcComb];bool pstate_en = context->bw_ctx.dml.vba.DRAMClockChangeSupport[vlevel][maxMpcComb] != dm_dram_clock_change_unsupported;unsigned int dummy_latency_index =0 ;
@@ -475,8 +477,8 @@ void dcn30_fpu_calculate_wm_and_dlg(/* Make set D = set A until set D is enabled */ context->bw_ctx.bw.dcn.watermarks.d = context->bw_ctx.bw.dcn.watermarks.a; -for (i =0 , pipe_idx =0 ; i < dc->res_pool->pipe_count; i++) { -if (!context->res_ctx.pipe_ctx[i].stream) +for (pipe_i =0 , pipe_idx =0 ; pipe_i < dc->res_pool->pipe_count; pipe_i++) { +if (!context->res_ctx.pipe_ctx[pipe_i].stream)continue ; pipes[pipe_idx].clks_cfg.dispclk_mhz =get_dispclk_calculated (&context->bw_ctx.dml, pipes, pipe_cnt);
@@ -500,9 +502,9 @@ void dcn30_fpu_calculate_wm_and_dlg( context->bw_ctx.dml.vba.DRAMSpeed <= 1700 && context->bw_ctx.dml.vba.DRAMSpeed >= 1500) { -for (i =0 ; i < dc->dml.soc.num_states; i++) { -if (dc->dml.soc.clock_limits[i].dram_speed_mts >1700 ) { - context->bw_ctx.dml.vba.DRAMSpeed = dc->dml.soc.clock_limits[i].dram_speed_mts; +for (state_i =0 ; state_i < dc->dml.soc.num_states; state_i++) { +if (dc->dml.soc.clock_limits[state_i].dram_speed_mts >1700 ) { + context->bw_ctx.dml.vba.DRAMSpeed = dc->dml.soc.clock_limits[state_i].dram_speed_mts;break ; } }
drivers/gpu/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c +45 -38
202 lines not on this page · raw message
drivers/gpu/drm/amd/display/dc/dml/dcn301/dcn301_fpu.c +3 -2
@@ -326,7 +326,8 @@ void dcn301_fpu_update_bw_bounding_box(struct dc *dc, struct clk_bw_params *bw_pstruct dcn301_resource_pool *pool =TO_DCN301_RES_POOL (dc->res_pool);struct clk_limit_table *clk_table = &bw_params->clk_table;unsigned int i, closest_clk_lvl; -int j =0 , max_dispclk_mhz =0 , max_dppclk_mhz =0 ; +int j =0 ; +unsigned int max_dispclk_mhz =0 , max_dppclk_mhz =0 ;dc_assert_fp_enabled ();
@@ -429,7 +430,7 @@ void dcn301_fpu_calculate_wm_and_dlg(struct dc *dc, int pipe_cnt, int vlevel_req) { - int i, pipe_idx; +unsigned int i, pipe_idx;int vlevel, vlevel_max;struct wm_range_table_entry *table_entry;struct clk_bw_params *bw_params = dc->clk_mgr->bw_params;
drivers/gpu/drm/amd/display/dc/dml/dcn302/dcn302_fpu.c +1 -1
@@ -218,7 +218,7 @@ void dcn302_fpu_update_bw_bounding_box(struct dc *dc, struct clk_bw_params *bw_p dc->dml.soc.dispclk_dppclk_vco_speed_mhz = dc->clk_mgr->dentist_vco_freq_khz /1000.0 ;if (bw_params->clk_table.entries[0 ].memclk_mhz) { -int max_dcfclk_mhz =0 , max_dispclk_mhz =0 , max_dppclk_mhz =0 , max_phyclk_mhz =0 ; +unsigned int max_dcfclk_mhz =0 , max_dispclk_mhz =0 , max_dppclk_mhz =0 , max_phyclk_mhz =0 ;for (i =0 ; i <MAX_NUM_DPM_LVL ; i++) {if (bw_params->clk_table.entries[i].dcfclk_mhz > max_dcfclk_mhz)
drivers/gpu/drm/amd/display/dc/dml/dcn303/dcn303_fpu.c +1 -1
@@ -214,7 +214,7 @@ void dcn303_fpu_update_bw_bounding_box(struct dc *dc, struct clk_bw_params *bw_p dc->dml.soc.dispclk_dppclk_vco_speed_mhz = dc->clk_mgr->dentist_vco_freq_khz /1000.0 ;if (bw_params->clk_table.entries[0 ].memclk_mhz) { -int max_dcfclk_mhz =0 , max_dispclk_mhz =0 , max_dppclk_mhz =0 , max_phyclk_mhz =0 ; +unsigned int max_dcfclk_mhz =0 , max_dispclk_mhz =0 , max_dppclk_mhz =0 , max_phyclk_mhz =0 ;for (i =0 ; i <MAX_NUM_DPM_LVL ; i++) {if (bw_params->clk_table.entries[i].dcfclk_mhz > max_dcfclk_mhz)
drivers/gpu/drm/amd/display/dc/dml/dcn31/dcn31_fpu.c +9 -6
@@ -485,9 +485,12 @@ void dcn31_calculate_wm_and_dlg_fp(int pipe_cnt, int vlevel) { - int i, pipe_idx, total_det = 0, active_hubp_count = 0; + int total_det = 0, active_hubp_count = 0; +unsigned int i, pipe_idx;double dcfclk = context->bw_ctx.dml.vba.DCFCLKState[vlevel][context->bw_ctx.dml.vba.maxMpcComb];uint32_t cstate_enter_plus_exit_z8_ns; +uint32_t minimum_z8_residency_time_ns = + (uint32_t )dc->debug.minimum_z8_residency_time *1000U ;dc_assert_fp_enabled ();
@@ -511,8 +514,8 @@ void dcn31_calculate_wm_and_dlg_fp(get_wm_z8_stutter_enter_exit (&context->bw_ctx.dml, pipes, pipe_cnt) *1000 ;if (get_stutter_period (&context->bw_ctx.dml, pipes, pipe_cnt) < dc->debug.minimum_z8_residency_time && - cstate_enter_plus_exit_z8_ns < dc->debug.minimum_z8_residency_time *1000 ) - cstate_enter_plus_exit_z8_ns = dc->debug.minimum_z8_residency_time *1000 ; + cstate_enter_plus_exit_z8_ns < minimum_z8_residency_time_ns) + cstate_enter_plus_exit_z8_ns = minimum_z8_residency_time_ns;/* Set A: * All clocks min required
@@ -592,7 +595,7 @@ void dcn31_update_bw_bounding_box_fpu(struct dc *dc, struct clk_bw_params *bw_pastruct _vcs_dpi_voltage_scaling_st *s = dc->scratch.update_bw_bounding_box.clock_limits;struct clk_limit_table *clk_table = &bw_params->clk_table;unsigned int i, closest_clk_lvl; -int max_dispclk_mhz =0 , max_dppclk_mhz =0 ; +unsigned int max_dispclk_mhz =0 , max_dppclk_mhz =0 ;int j;dc_assert_fp_enabled ();
@@ -668,7 +671,7 @@ void dcn31_update_bw_bounding_box_fpu(struct dc *dc, struct clk_bw_params *bw_pavoid dcn315_update_bw_bounding_box_fpu (struct dc *dc,struct clk_bw_params *bw_params) {struct clk_limit_table *clk_table = &bw_params->clk_table; -int i, max_dispclk_mhz =0 , max_dppclk_mhz =0 ; +unsigned int i, max_dispclk_mhz =0 , max_dppclk_mhz =0 ;dc_assert_fp_enabled ();
@@ -731,7 +734,7 @@ void dcn316_update_bw_bounding_box_fpu(struct dc *dc, struct clk_bw_params *bw_pstruct _vcs_dpi_voltage_scaling_st *s = dc->scratch.update_bw_bounding_box.clock_limits;struct clk_limit_table *clk_table = &bw_params->clk_table;unsigned int i, closest_clk_lvl; -int max_dispclk_mhz =0 , max_dppclk_mhz =0 ; +unsigned int max_dispclk_mhz =0 , max_dppclk_mhz =0 ;int j;dc_assert_fp_enabled ();
drivers/gpu/drm/amd/display/dc/dml/dcn31/display_mode_vba_31.c +65 -56
240 lines not on this page · raw message
drivers/gpu/drm/amd/display/dc/dml/dcn314/dcn314_fpu.c +3 -2
@@ -185,7 +185,7 @@ void dcn314_update_bw_bounding_box_fpu(struct dc *dc, struct clk_bw_params *bw_pstruct _vcs_dpi_voltage_scaling_st *clock_limits = dcn3_14_soc.clock_limits;unsigned int i, closest_clk_lvl; -int max_dispclk_mhz =0 , max_dppclk_mhz =0 ; +unsigned int max_dispclk_mhz =0 , max_dppclk_mhz =0 ;int j;dc_assert_fp_enabled ();
@@ -308,7 +308,8 @@ int dcn314_populate_dml_pipes_from_context_fpu(struct dc *dc, struct dc_state *cdisplay_e2e_pipe_params_st *pipes, enum dc_validate_mode validate_mode) { - int i, pipe_cnt; + int pipe_cnt; +unsigned int i;struct resource_context *res_ctx = &context->res_ctx;struct pipe_ctx *pipe =0 ;bool upscaled = false;
drivers/gpu/drm/amd/display/dc/dml/dcn314/display_mode_vba_314.c +69 -60
267 lines not on this page · raw message
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c +40 -35
240 lines not on this page · raw message
drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_32.c +11 -10
@@ -1724,7 +1724,8 @@ static void mode_support_configuration(struct vba_vars_st *v,void dml32_ModeSupportAndSystemConfigurationFull (struct display_mode_lib *mode_lib) {struct vba_vars_st *v = &mode_lib->vba; -int i, j, start_state; +int i, start_state; +unsigned int j;unsigned int k, m;unsigned int MaximumMPCCombine;unsigned int NumberOfNonCombinedSurfaceOfMaximumBandwidth;
@@ -2030,7 +2031,7 @@ void dml32_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l mode_lib->vba.MPCCombineMethodIncompatible = v->dummy_vars.dml32_ModeSupportAndSystemConfigurationFull.MPCCombineMethodAsNeededForPStateChangeAndVoltage && v->dummy_vars.dml32_ModeSupportAndSystemConfigurationFull.MPCCombineMethodAsPossible; -for (i = start_state; i < v->soc.num_states; i++) { +for (i = start_state; i < (int )v->soc.num_states; i++) {for (j =0 ; j <2 ; j++) { mode_lib->vba.TotalNumberOfActiveDPP[i][j] =0 ; mode_lib->vba.TotalAvailablePipesSupport[i][j] = true;
@@ -2307,7 +2308,7 @@ void dml32_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l } } -for (i = start_state; i < v->soc.num_states; ++i) { +for (i = start_state; i < (int )v->soc.num_states; ++i) { mode_lib->vba.ExceededMultistreamSlots[i] = false;for (k =0 ; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) {if (mode_lib->vba.OutputMultistreamEn[k] == true && mode_lib->vba.OutputMultistreamId[k] == k) {
@@ -2410,7 +2411,7 @@ void dml32_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l } } -for (i = start_state; i < v->soc.num_states; ++i) { +for (i = start_state; i < (int )v->soc.num_states; ++i) { mode_lib->vba.DTBCLKRequiredMoreThanSupported[i] = false;for (k =0 ; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { if (mode_lib->vba.BlendingAndTiming[k] == k
@@ -2427,7 +2428,7 @@ void dml32_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l } } -for (i = start_state; i < v->soc.num_states; ++i) { +for (i = start_state; i < (int )v->soc.num_states; ++i) { mode_lib->vba.ODMCombine2To1SupportCheckOK[i] = true; mode_lib->vba.ODMCombine4To1SupportCheckOK[i] = true;for (k =0 ; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) {
@@ -2445,7 +2446,7 @@ void dml32_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l } } -for (i = start_state; i < v->soc.num_states; i++) { +for (i = start_state; i < (int )v->soc.num_states; i++) { mode_lib->vba.DSCCLKRequiredMoreThanSupported[i] = false;for (k =0 ; k <= mode_lib->vba.NumberOfActiveSurfaces -1 ; k++) {if (mode_lib->vba.BlendingAndTiming[k] == k) {
@@ -2482,7 +2483,7 @@ void dml32_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l/* Check DSC Unit and Slices Support */ v->dummy_vars.dml32_ModeSupportAndSystemConfigurationFull.TotalDSCUnitsRequired =0 ; -for (i = start_state; i < v->soc.num_states; ++i) { +for (i = start_state; i < (int )v->soc.num_states; ++i) { mode_lib->vba.NotEnoughDSCUnits[i] = false; mode_lib->vba.NotEnoughDSCSlices[i] = false; v->dummy_vars.dml32_ModeSupportAndSystemConfigurationFull.TotalDSCUnitsRequired =0 ;
@@ -2517,7 +2518,7 @@ void dml32_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l }/*DSC Delay per state*/ -for (i = start_state; i < v->soc.num_states; ++i) { +for (i = start_state; i < (int )v->soc.num_states; ++i) {for (k =0 ; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { mode_lib->vba.DSCDelayPerState[i][k] = dml32_DSCDelayRequirement( mode_lib->vba.RequiresDSC[i][k], mode_lib->vba.ODMCombineEnablePerState[i][k],
@@ -2531,7 +2532,7 @@ void dml32_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_lfor (k =0 ; k <= mode_lib->vba.NumberOfActiveSurfaces -1 ; k++) {for (m =0 ; m <= mode_lib->vba.NumberOfActiveSurfaces -1 ; m++) { -for (j =0 ; j <= mode_lib->vba.NumberOfActiveSurfaces -1 ; j++) { +for (j =0 ; j < mode_lib->vba.NumberOfActiveSurfaces; j++) {if (mode_lib->vba.BlendingAndTiming[k] == m && mode_lib->vba.RequiresDSC[i][m] == true) { mode_lib->vba.DSCDelayPerState[i][k] =
@@ -2682,7 +2683,7 @@ void dml32_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l mode_lib->vba.SurfaceSizeInMALL, &mode_lib->vba.ExceededMALLSize); -for (i = start_state; i < v->soc.num_states; i++) { +for (i = start_state; i < (int )v->soc.num_states; i++) {for (j =0 ; j <2 ; j++) {for (k =0 ; k <= mode_lib->vba.NumberOfActiveSurfaces -1 ; k++) { mode_lib->vba.swath_width_luma_ub_this_state[k] =
drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c +1 -1
@@ -6318,7 +6318,7 @@ bool dml32_CalculateDETSwathFillLatencyHiding(unsigned int NumberOfActiveSurfaceenum dm_use_mall_for_pstate_change_mode UsesMALLForPStateChange[], enum unbounded_requesting_policy UseUnboundedRequesting) { - int k; + unsigned int k;double SwathSizeAllSurfaces =0 ;double SwathSizeAllSurfacesInFetchTimeUs;double DETSwathLatencyHidingUs;
drivers/gpu/drm/amd/display/dc/dml/dcn321/dcn321_fpu.c +23 -23
149 lines not on this page · raw message
drivers/gpu/drm/amd/display/dc/dml/dcn35/dcn35_fpu.c +3 -2
@@ -233,7 +233,7 @@ void dcn35_update_bw_bounding_box_fpu(struct dc *dc,struct clk_limit_table *clk_table = &bw_params->clk_table;struct _vcs_dpi_voltage_scaling_st *clock_limits = dc->scratch.update_bw_bounding_box.clock_limits; -int max_dispclk_mhz =0 , max_dppclk_mhz =0 ; +unsigned int max_dispclk_mhz =0 , max_dppclk_mhz =0 ;dc_assert_fp_enabled ();
@@ -440,7 +440,8 @@ int dcn35_populate_dml_pipes_from_context_fpu(struct dc *dc,display_e2e_pipe_params_st *pipes, enum dc_validate_mode validate_mode) { - int i, pipe_cnt; + unsigned int i; +int pipe_cnt;struct resource_context *res_ctx = &context->res_ctx;struct pipe_ctx *pipe =0 ;bool upscaled = false;
drivers/gpu/drm/amd/display/dc/dml/dcn351/dcn351_fpu.c +3 -2
@@ -266,7 +266,7 @@ void dcn351_update_bw_bounding_box_fpu(struct dc *dc,struct clk_limit_table *clk_table = &bw_params->clk_table;struct _vcs_dpi_voltage_scaling_st *clock_limits = dc->scratch.update_bw_bounding_box.clock_limits; -int max_dispclk_mhz =0 , max_dppclk_mhz =0 ; +unsigned int max_dispclk_mhz =0 , max_dppclk_mhz =0 ;dc_assert_fp_enabled ();
@@ -472,7 +472,8 @@ int dcn351_populate_dml_pipes_from_context_fpu(struct dc *dc,display_e2e_pipe_params_st *pipes, enum dc_validate_mode validate_mode) { - int i, pipe_cnt; + int pipe_cnt; +unsigned int i;struct resource_context *res_ctx = &context->res_ctx;struct pipe_ctx *pipe =0 ;bool upscaled = false;
drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c +2 -2
@@ -304,7 +304,7 @@ bool get_is_phantom_pipe(struct display_mode_lib *mode_lib, const display_e2e_pistatic void fetch_socbb_params (struct display_mode_lib *mode_lib) {soc_bounding_box_st *soc = &mode_lib->vba.soc; -int i; +unsigned int i;// SOC Bounding Box Parameters mode_lib->vba.ReturnBusWidth = soc->return_bus_width_bytes;
@@ -946,7 +946,7 @@ static void fetch_pipe_params(struct display_mode_lib *mode_lib)*/ static void cache_debug_params (struct display_mode_lib *mode_lib) { -int k =0 ; +unsigned int k =0 ;for (k =0 ; k < mode_lib->vba.NumberOfActivePlanes; k++) mode_lib->vba.CachedActiveDRAMClockChangeLatencyMargin[k] = mode_lib->vba.ActiveDRAMClockChangeLatencyMargin[k];
Signature · 1 line
2.53.0
Sasha Levin
maintainerPATCH 2/3 drm/amd/display: Fix warnings
From: Clay King <[email protected]>
[ Upstream commit c3fb1fb9e65fa6a108b4d19c61bdcb47fd4fe180 ]
[Why & How]
Fix various warnings related to unsigned/signed mismatches
- Consistently use the same signedness for a given value
- Explcitly cast between types when needed
Stable-dep-of: 93c8fe6d5603 ("drm/amd/display: guard against overflow in HDCP message dump")
--- .../display/dc/clk_mgr/dce100/dce_clk_mgr.c | 6 +- .../display/dc/clk_mgr/dce100/dce_clk_mgr.h | 2 +- .../display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c | 8 +- .../dc/clk_mgr/dcn30/dcn30_clk_mgr_smu_msg.c | 4 +- .../dc/clk_mgr/dcn30/dcn30_clk_mgr_smu_msg.h | 2 +- .../display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c | 2 +- .../dc/clk_mgr/dcn401/dcn401_clk_mgr.c | 2 +- .../dc/clk_mgr/dcn401/dcn401_clk_mgr.h | 4 +- .../clk_mgr/dcn401/dcn401_clk_mgr_smu_msg.c | 4 +- .../clk_mgr/dcn401/dcn401_clk_mgr_smu_msg.h | 2 +- .../display/dc/clk_mgr/dcn42/dcn42_clk_mgr.c | 2 +- drivers/gpu/drm/amd/display/dc/core/dc.c | 4 +- .../drm/amd/display/dc/core/dc_link_exports.c | 2 +- .../gpu/drm/amd/display/dc/core/dc_resource.c | 18 +- .../drm/amd/display/dc/core/dc_vm_helper.c | 4 +- drivers/gpu/drm/amd/display/dc/dc.h | 68 +-- drivers/gpu/drm/amd/display/dc/dc_dsc.h | 2 +- drivers/gpu/drm/amd/display/dc/dc_stream.h | 4 +- drivers/gpu/drm/amd/display/dc/dc_types.h | 2 +- .../amd/display/dc/dcn21/dcn21_link_encoder.c | 2 +- .../display/dc/dio/dcn10/dcn10_link_encoder.c | 2 +- .../drm/amd/display/dc/dml/dcn20/dcn20_fpu.c | 4 +- .../dc/dml/dcn21/display_mode_vba_21.c | 28 +- .../dc/dml/dcn30/display_mode_vba_30.c | 342 +++++++-------- .../dc/dml/dcn31/display_mode_vba_31.c | 408 +++++++++--------- .../dc/dml/dcn314/display_mode_vba_314.c | 400 ++++++++--------- .../drm/amd/display/dc/dml/dcn32/dcn32_fpu.c | 2 +- .../dc/dml/dcn32/display_mode_vba_util_32.c | 8 +- .../dc/dml/dcn32/display_mode_vba_util_32.h | 8 +- .../drm/amd/display/dc/dml/display_mode_vba.h | 12 +- .../amd/display/dc/dpp/dcn10/dcn10_dpp_cm.c | 2 +- .../drm/amd/display/dc/dpp/dcn30/dcn30_dpp.c | 2 +- .../amd/display/dc/dpp/dcn30/dcn30_dpp_cm.c | 4 +- drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c | 2 +- .../drm/amd/display/dc/dsc/dcn20/dcn20_dsc.c | 8 +- .../drm/amd/display/dc/dsc/dcn35/dcn35_dsc.c | 8 +- .../amd/display/dc/dsc/dcn401/dcn401_dsc.c | 10 +- .../amd/display/dc/hubp/dcn401/dcn401_hubp.c | 4 +- .../amd/display/dc/hubp/dcn401/dcn401_hubp.h | 2 +- .../amd/display/dc/hwss/dcn10/dcn10_hwseq.c | 6 +- .../amd/display/dc/hwss/dcn314/dcn314_hwseq.c | 2 +- .../amd/display/dc/hwss/dcn32/dcn32_hwseq.c | 2 +- .../amd/display/dc/hwss/dcn35/dcn35_hwseq.c | 2 +- drivers/gpu/drm/amd/display/dc/inc/bw_fixed.h | 2 +- drivers/gpu/drm/amd/display/dc/inc/hw/hubp.h | 2 +- drivers/gpu/drm/amd/display/dc/inc/hw/opp.h | 4 +- .../amd/display/dc/inc/hw/timing_generator.h | 8 +- .../gpu/drm/amd/display/dc/inc/link_service.h | 2 +- .../gpu/drm/amd/display/dc/inc/reg_helper.h | 72 ++-- .../drm/amd/display/dc/link/link_detection.c | 2 +- .../drm/amd/display/dc/link/link_detection.h | 2 +- .../link/protocols/link_edp_panel_control.c | 8 +- .../drm/amd/display/dc/mpc/dcn10/dcn10_mpc.c | 2 +- .../drm/amd/display/dc/mpc/dcn30/dcn30_mpc.c | 6 +- .../drm/amd/display/dc/opp/dcn20/dcn20_opp.c | 2 +- .../drm/amd/display/dc/opp/dcn20/dcn20_opp.h | 2 +- .../amd/display/dc/optc/dcn32/dcn32_optc.c | 2 +- .../gpu/drm/amd/display/include/fixed31_32.h | 6 +- .../drm/amd/display/modules/hdcp/hdcp_log.c | 2 +- 59 files changed, 769 insertions(+), 767 deletions(-)
drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/dce_clk_mgr.c +3 -3
@@ -88,7 +88,7 @@ static const struct state_dependent_clocks dce80_max_clks_by_state[] = {/* ClocksStatePerformance */ { .display_clk_khz = 625000, .pixel_clk_khz = 400000 } }; -int dentist_get_divider_from_did (int did) +unsigned int dentist_get_divider_from_did (unsigned int did) {if (did <DENTIST_BASE_DID_1 ) did =DENTIST_BASE_DID_1 ;
@@ -155,8 +155,8 @@ static int dce60_get_dp_ref_freq_khz(struct clk_mgr *clk_mgr_base)int dce_get_dp_ref_freq_khz (struct clk_mgr *clk_mgr_base) {struct clk_mgr_internal *clk_mgr =TO_CLK_MGR_INTERNAL (clk_mgr_base); -int dprefclk_wdivider; -int dprefclk_src_sel; +uint32_t dprefclk_wdivider; +uint32_t dprefclk_src_sel;int dp_ref_clk_khz;int target_div;
drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/dce_clk_mgr.h +1 -1
@@ -54,6 +54,6 @@ int dce_set_clock(void dce_clk_mgr_destroy (struct clk_mgr **clk_mgr); -int dentist_get_divider_from_did (int did); +unsigned int dentist_get_divider_from_did (unsigned int did);#endif /* _DCE_CLK_MGR_H_ */
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c +4 -4
@@ -427,8 +427,8 @@ void dcn2_read_clocks_from_hw_dentist(struct clk_mgr *clk_mgr_base)struct clk_mgr_internal *clk_mgr =TO_CLK_MGR_INTERNAL (clk_mgr_base);uint32_t dispclk_wdivider;uint32_t dppclk_wdivider; -int disp_divider; -int dpp_divider; +unsigned int disp_divider; +unsigned int dpp_divider;REG_GET (DENTIST_DISPCLK_CNTL ,DENTIST_DISPCLK_WDIVIDER , &dispclk_wdivider);REG_GET (DENTIST_DISPCLK_CNTL ,DENTIST_DPPCLK_WDIVIDER , &dppclk_wdivider);
@@ -531,8 +531,8 @@ void dcn20_clk_mgr_construct(struct pp_smu_funcs *pp_smu, struct dccg *dccg) { - int dprefclk_did; -int target_div; + unsigned int dprefclk_did; +unsigned int target_div;uint32_t pll_req_reg;struct fixed31_32 pll_req;
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/dcn30_clk_mgr_smu_msg.c +2 -2
@@ -123,12 +123,12 @@ bool dcn30_smu_test_message(struct clk_mgr_internal *clk_mgr, uint32_t input)return false; } -bool dcn30_smu_get_smu_version (struct clk_mgr_internal *clk_mgr,unsigned int *version) +bool dcn30_smu_get_smu_version (struct clk_mgr_internal *clk_mgr,int *version) {smu_print ("SMU Get SMU version\n" );if (dcn30_smu_send_msg_with_param (clk_mgr, - DALSMC_MSG_GetSmuVersion,0 , version)) { + DALSMC_MSG_GetSmuVersion,0 , (uint32_t *)version)) {smu_print ("SMU version: %d\n" , *version);
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/dcn30_clk_mgr_smu_msg.h +1 -1
@@ -31,7 +31,7 @@struct clk_mgr_internal ;bool dcn30_smu_test_message (struct clk_mgr_internal *clk_mgr,uint32_t input); -bool dcn30_smu_get_smu_version (struct clk_mgr_internal *clk_mgr,unsigned int *version); +bool dcn30_smu_get_smu_version (struct clk_mgr_internal *clk_mgr,int *version);bool dcn30_smu_check_driver_if_version (struct clk_mgr_internal *clk_mgr);bool dcn30_smu_check_msg_header_version (struct clk_mgr_internal *clk_mgr);void dcn30_smu_set_dram_addr_high (struct clk_mgr_internal *clk_mgr,uint32_t addr_high);
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c +1 -1
@@ -475,7 +475,7 @@ static int dcn32_get_dispclk_from_dentist(struct clk_mgr *clk_mgr_base) {struct clk_mgr_internal *clk_mgr =TO_CLK_MGR_INTERNAL (clk_mgr_base);uint32_t dispclk_wdivider; -int disp_divider; +unsigned int disp_divider;REG_GET (DENTIST_DISPCLK_CNTL ,DENTIST_DISPCLK_WDIVIDER , &dispclk_wdivider); disp_divider =dentist_get_divider_from_did (dispclk_wdivider);
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn401/dcn401_clk_mgr.c +1 -1
@@ -1487,7 +1487,7 @@ static int dcn401_get_dispclk_from_dentist(struct clk_mgr *clk_mgr_base) {struct clk_mgr_internal *clk_mgr =TO_CLK_MGR_INTERNAL (clk_mgr_base);uint32_t dispclk_wdivider; -int disp_divider; +unsigned int disp_divider;REG_GET (DENTIST_DISPCLK_CNTL ,DENTIST_DISPCLK_WDIVIDER , &dispclk_wdivider); disp_divider =dentist_get_divider_from_did (dispclk_wdivider);
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn401/dcn401_clk_mgr.h +2 -2
@@ -17,14 +17,14 @@ union dcn401_clk_mgr_block_sequence_params {uint32_t ppclk;uint16_t freq_mhz;/* outputs */ -uint32_t *response; +int *response; } update_hardmin_params;struct {/* inputs */ uint32_t ppclk;int freq_khz;/* outputs */ -uint32_t *response; +int *response; } update_hardmin_optimized_params;struct {/* inputs */
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn401/dcn401_clk_mgr_smu_msg.c +2 -2
@@ -143,12 +143,12 @@ static bool dcn401_smu_send_msg_with_param_delay(struct clk_mgr_internal *clk_mgreturn false; } -bool dcn401_smu_get_smu_version (struct clk_mgr_internal *clk_mgr,unsigned int *version) +bool dcn401_smu_get_smu_version (struct clk_mgr_internal *clk_mgr,int *version) {smu_print ("SMU Get SMU version\n" );if (dcn401_smu_send_msg_with_param (clk_mgr, - DALSMC_MSG_GetSmuVersion,0 , version)) { + DALSMC_MSG_GetSmuVersion,0 , (uint32_t *)version)) {smu_print ("SMU version: %d\n" , *version);
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn401/dcn401_clk_mgr_smu_msg.h +1 -1
@@ -10,7 +10,7 @@struct clk_mgr_internal ; -bool dcn401_smu_get_smu_version (struct clk_mgr_internal *clk_mgr,unsigned int *version); +bool dcn401_smu_get_smu_version (struct clk_mgr_internal *clk_mgr,int *version);bool dcn401_smu_check_driver_if_version (struct clk_mgr_internal *clk_mgr);bool dcn401_smu_check_msg_header_version (struct clk_mgr_internal *clk_mgr);void dcn401_smu_send_fclk_pstate_message (struct clk_mgr_internal *clk_mgr,bool support);
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn42/dcn42_clk_mgr.c +1 -1
@@ -870,7 +870,7 @@ int dcn42_get_dispclk_from_dentist(struct clk_mgr *clk_mgr_base) (void )clk_mgr_base;struct clk_mgr_internal *clk_mgr =TO_CLK_MGR_INTERNAL (clk_mgr_base);uint32_t dispclk_wdivider; -int disp_divider; +unsigned int disp_divider;REG_GET (DENTIST_DISPCLK_CNTL ,DENTIST_DISPCLK_WDIVIDER , &dispclk_wdivider); disp_divider =dentist_get_divider_from_did (dispclk_wdivider);
drivers/gpu/drm/amd/display/dc/core/dc.c +2 -2
@@ -6665,7 +6665,7 @@ bool dc_can_clear_cursor_limit(const struct dc *dc)return false; } -void dc_get_underflow_debug_data_for_otg (struct dc *dc,int primary_otg_inst, +void dc_get_underflow_debug_data_for_otg (struct dc *dc,unsigned int primary_otg_inst,struct dc_underflow_debug_data *out_data) {struct timing_generator *tg =NULL ;
@@ -6683,7 +6683,7 @@ void dc_get_underflow_debug_data_for_otg(struct dc *dc, int primary_otg_inst, dc->hwss.get_underflow_debug_data (dc, tg, out_data); } -void dc_get_power_feature_status (struct dc *dc,int primary_otg_inst, +void dc_get_power_feature_status (struct dc *dc,unsigned int primary_otg_inst,struct power_features *out_data) { (void )primary_otg_inst;
drivers/gpu/drm/amd/display/dc/core/dc_link_exports.c +1 -1
@@ -282,7 +282,7 @@ unsigned int dc_dp_trace_get_link_loss_count(struct dc_link *link)struct dc_sink *dc_link_add_remote_sink (struct dc_link *link,const uint8_t *edid, -int len, +unsigned int len,struct dc_sink_init_data *init_data) {return link->dc->link_srv->add_remote_sink (link, edid, len, init_data);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c +9 -9
@@ -982,7 +982,7 @@ static struct rect calculate_mpc_slice_in_timing_active( }static void calculate_adjust_recout_for_visual_confirm (struct pipe_ctx *pipe_ctx, -int *base_offset,int *dpp_offset) +unsigned int *base_offset,unsigned int *dpp_offset) {struct dc *dc = pipe_ctx->stream->ctx->dc; *base_offset =0 ;
@@ -1004,7 +1004,7 @@ static void calculate_adjust_recout_for_visual_confirm(struct pipe_ctx *pipe_ctxstatic void reverse_adjust_recout_for_visual_confirm (struct rect *recout,struct pipe_ctx *pipe_ctx) { -int dpp_offset, base_offset; +unsigned int dpp_offset, base_offset;calculate_adjust_recout_for_visual_confirm (pipe_ctx, &base_offset, &dpp_offset);
@@ -1015,7 +1015,7 @@ static void reverse_adjust_recout_for_visual_confirm(struct rect *recout,static void adjust_recout_for_visual_confirm (struct rect *recout,struct pipe_ctx *pipe_ctx) { -int dpp_offset, base_offset; +unsigned int dpp_offset, base_offset;calculate_adjust_recout_for_visual_confirm (pipe_ctx, &base_offset, &dpp_offset);
@@ -1692,7 +1692,7 @@ bool resource_can_pipe_disable_cursor(struct pipe_ctx *pipe_ctx)struct pipe_ctx *test_pipe, *split_pipe;struct rect r1 = pipe_ctx->plane_res.scl_data.recout;int r1_right, r1_bottom; -int cur_layer = pipe_ctx->plane_state->layer_index; +unsigned int cur_layer = pipe_ctx->plane_state->layer_index;reverse_adjust_recout_for_visual_confirm (&r1, pipe_ctx); r1_right = r1.x + r1.width;
@@ -4102,9 +4102,9 @@ bool dc_resource_is_dsc_encoding_supported(const struct dc *dc)static bool planes_changed_for_existing_stream (struct dc_state *context,struct dc_stream_state *stream,const struct dc_validation_set set[], -int set_count) +unsigned int set_count) { -int i, j; +unsigned int i, j;struct dc_stream_status *stream_status =NULL ;for (i =0 ; i < context->stream_count; i++) {
@@ -4140,10 +4140,10 @@ static bool add_all_planes_for_stream(const struct dc *dc, struct dc_stream_state *stream, const struct dc_validation_set set[], - int set_count, + unsigned int set_count, struct dc_state *state) { - int i, j; + unsigned int i, j;for (i =0 ; i < set_count; i++)if (set[i].stream == stream)
@@ -4181,7 +4181,7 @@ static bool add_all_planes_for_stream(*/ enum dc_status dc_validate_with_context (struct dc *dc,const struct dc_validation_set set[], -int set_count, +unsigned int set_count,struct dc_state *context,enum dc_validate_mode validate_mode) {
drivers/gpu/drm/amd/display/dc/core/dc_vm_helper.c +2 -2
@@ -34,9 +34,9 @@ void vm_helper_mark_vmid_used(struct vm_helper *vm_helper, unsigned int pos, uin vmids.vmid_usage[1 ] =1 << pos; } -int dc_setup_system_context (struct dc *dc,struct dc_phy_addr_space_config *pa_config) +unsigned int dc_setup_system_context (struct dc *dc,struct dc_phy_addr_space_config *pa_config) { -int num_vmids =0 ; +unsigned int num_vmids =0 ;/* Call HWSS to setup HUBBUB for address config */ if (dc->hwss.init_sys_ctx) {
drivers/gpu/drm/amd/display/dc/dc.h +34 -34
157 lines not on this page · raw message
drivers/gpu/drm/amd/display/dc/dc_dsc.h +1 -1
@@ -92,7 +92,7 @@ uint32_t dc_dsc_stream_bandwidth_in_kbps(const struct dc_crtc_timing *timing,uint32_t dc_dsc_stream_bandwidth_overhead_in_kbps (const struct dc_crtc_timing *timing, -const int num_slices_h, +const uint32_t num_slices_h,const bool is_dp); void dc_dsc_dump_decoder_caps(const struct display_stream_compressor *dsc,
drivers/gpu/drm/amd/display/dc/dc_stream.h +2 -2
@@ -179,8 +179,8 @@ struct luminance_data {int luminance_millinits[LUMINANCE_DATA_TABLE_SIZE ];int flicker_criteria_milli_nits_GAMING;int flicker_criteria_milli_nits_STATIC; -int nominal_refresh_rate; -int dm_max_decrease_from_nominal; +unsigned int nominal_refresh_rate; +unsigned int dm_max_decrease_from_nominal; };enum dc_drr_trigger_mode {
drivers/gpu/drm/amd/display/dc/dc_types.h +1 -1
@@ -887,7 +887,7 @@ struct dsc_dec_dpcd_caps {union dsc_slice_caps2 slice_caps2;int32_t lb_bit_depth;bool is_block_pred_supported; -int32_t edp_max_bits_per_pixel;/* Valid only in eDP */ +uint32_t edp_max_bits_per_pixel;/* Valid only in eDP */ union dsc_color_formats color_formats;union dsc_color_depth color_depth;int32_t throughput_mode_0_mps;/* In MPs */
drivers/gpu/drm/amd/display/dc/dcn21/dcn21_link_encoder.c +1 -1
@@ -205,7 +205,7 @@ static bool update_cfg_data(static bool dcn21_link_encoder_acquire_phy (struct link_encoder *enc) {struct dcn10_link_encoder *enc10 =TO_DCN10_LINK_ENC (enc); -int value; +uint32_t value;if (enc->features.flags.bits.DP_IS_USB_C) { REG_GET(RDPCSTX_PHY_CNTL6,
drivers/gpu/drm/amd/display/dc/dio/dcn10/dcn10_link_encoder.c +1 -1
@@ -450,7 +450,7 @@ static uint8_t get_frontend_source(unsigned int dcn10_get_dig_frontend (struct link_encoder *enc) {struct dcn10_link_encoder *enc10 =TO_DCN10_LINK_ENC (enc); -int32_t value; +uint32_t value;enum engine_id result;REG_GET (DIG_BE_CNTL ,DIG_FE_SOURCE_SELECT , &value);
drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c +2 -2
@@ -1105,7 +1105,7 @@ static enum dcn_zstate_support_state decide_zstate_support(struct dc *dc, struc }static void dcn20_adjust_freesync_v_startup ( -const struct dc_crtc_timing *dc_crtc_timing,int *vstartup_start) +const struct dc_crtc_timing *dc_crtc_timing,unsigned int *vstartup_start) {struct dc_crtc_timing patched_crtc_timing;uint32_t asic_blank_end =0 ;
@@ -1253,7 +1253,7 @@ void dcn20_calculate_dlg_params(struct dc *dc,static void swizzle_to_dml_params (enum swizzle_mode_values swizzle, -unsigned int *sw_mode) +int *sw_mode) {switch (swizzle) {case DC_SW_LINEAR :
drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c +14 -14
@@ -296,7 +296,7 @@ static void CalculateWatermarksAndDRAMSpeedChangeSupport(double UrgentOutOfOrderReturn, double ReturnBW, bool GPUVMEnable, - int dpte_group_bytes[], + unsigned int dpte_group_bytes[], unsigned int MetaChunkSize, double UrgentLatency, double ExtraLatency,
@@ -307,7 +307,7 @@ static void CalculateWatermarksAndDRAMSpeedChangeSupport(double SRExitTime, double SREnterPlusExitTime, double DCFCLKDeepSleep, - int DPPPerPlane[], + unsigned int DPPPerPlane[], bool DCCEnable[], double DPPCLK[], double SwathWidthSingleDPPY[],
@@ -346,7 +346,7 @@ static void CalculateDCFCLKDeepSleep(double BytePerPixelDETC[], double VRatio[], double SwathWidthY[], - int DPPPerPlane[], + unsigned int DPPPerPlane[], double HRatio[], double PixelClock[], double PSCL_THROUGHPUT[],
@@ -390,7 +390,7 @@ static void CalculatePixelDeliveryTimes(double VRatioPrefetchC[], unsigned int swath_width_luma_ub[], unsigned int swath_width_chroma_ub[], - int DPPPerPlane[], + unsigned int DPPPerPlane[], double HRatio[], double PixelClock[], double PSCL_THROUGHPUT[],
@@ -436,7 +436,7 @@ static void CalculateMetaAndPTETimes(unsigned int meta_row_height[], unsigned int meta_req_width[], unsigned int meta_req_height[], - int dpte_group_bytes[], + unsigned int dpte_group_bytes[], unsigned int PTERequestSizeY[], unsigned int PTERequestSizeC[], unsigned int PixelPTEReqWidthY[],
@@ -477,8 +477,8 @@ static double CalculateExtraLatency(bool GPUVMEnable, bool HostVMEnable, int NumberOfActivePlanes, - int NumberOfDPP[], - int dpte_group_bytes[], + unsigned int NumberOfDPP[], + unsigned int dpte_group_bytes[], double PercentOfIdealDRAMFabricAndSDPPortBWReceivedAfterUrgLatencyPixelMixedWithVMData, double PercentOfIdealDRAMFabricAndSDPPortBWReceivedAfterUrgLatencyVMDataOnly, int HostVMMaxPageTableLevels,
@@ -5257,7 +5257,7 @@ static void CalculateWatermarksAndDRAMSpeedChangeSupport(double UrgentOutOfOrderReturn, double ReturnBW, bool GPUVMEnable, - int dpte_group_bytes[], + unsigned int dpte_group_bytes[], unsigned int MetaChunkSize, double UrgentLatency, double ExtraLatency,
@@ -5268,7 +5268,7 @@ static void CalculateWatermarksAndDRAMSpeedChangeSupport(double SRExitTime, double SREnterPlusExitTime, double DCFCLKDeepSleep, - int DPPPerPlane[], + unsigned int DPPPerPlane[], bool DCCEnable[], double DPPCLK[], double SwathWidthSingleDPPY[],
@@ -5543,7 +5543,7 @@ static void CalculateDCFCLKDeepSleep(double BytePerPixelDETC[], double VRatio[], double SwathWidthY[], - int DPPPerPlane[], + unsigned int DPPPerPlane[], double HRatio[], double PixelClock[], double PSCL_THROUGHPUT[],
@@ -5749,7 +5749,7 @@ static void CalculatePixelDeliveryTimes(double VRatioPrefetchC[], unsigned int swath_width_luma_ub[], unsigned int swath_width_chroma_ub[], - int DPPPerPlane[], + unsigned int DPPPerPlane[], double HRatio[], double PixelClock[], double PSCL_THROUGHPUT[],
@@ -5870,7 +5870,7 @@ static void CalculateMetaAndPTETimes(unsigned int meta_row_height[], unsigned int meta_req_width[], unsigned int meta_req_height[], - int dpte_group_bytes[], + unsigned int dpte_group_bytes[], unsigned int PTERequestSizeY[], unsigned int PTERequestSizeC[], unsigned int PixelPTEReqWidthY[],
@@ -6128,8 +6128,8 @@ static double CalculateExtraLatency(bool GPUVMEnable, bool HostVMEnable, int NumberOfActivePlanes, - int NumberOfDPP[], - int dpte_group_bytes[], + unsigned int NumberOfDPP[], + unsigned int dpte_group_bytes[], double PercentOfIdealDRAMFabricAndSDPPortBWReceivedAfterUrgLatencyPixelMixedWithVMData, double PercentOfIdealDRAMFabricAndSDPPortBWReceivedAfterUrgLatencyVMDataOnly, int HostVMMaxPageTableLevels,
drivers/gpu/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c +171 -171
564 lines not on this page · raw message
drivers/gpu/drm/amd/display/dc/dml/dcn31/display_mode_vba_31.c +204 -204
706 lines not on this page · raw message
drivers/gpu/drm/amd/display/dc/dml/dcn314/display_mode_vba_314.c +200 -200
686 lines not on this page · raw message
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c +1 -1
@@ -1397,7 +1397,7 @@ static void try_odm_power_optimization_and_revalidate( display_e2e_pipe_params_st *pipes, int *split, bool *merge, - unsigned int *vlevel, + int *vlevel, int pipe_cnt) {int i;
drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c +4 -4
@@ -2954,7 +2954,7 @@ void dml32_UseMinimumDCFCLK(unsigned int VTotal[], unsigned int VActive[], unsigned int DynamicMetadataTransmittedBytes[], - unsigned int DynamicMetadataLinesBeforeActiveRequired[], + int DynamicMetadataLinesBeforeActiveRequired[], bool Interlace[], double RequiredDPPCLKPerSurface[][2][DC__NUM_DPP__MAX], double RequiredDISPCLK[][2],
@@ -5631,7 +5631,7 @@ void dml32_CalculateStutterEfficiency(bool Interlace[], double MinTTUVBlank[], unsigned int DPPPerSurface[], - unsigned int DETBufferSizeY[], + unsigned int DETBufferSizeY[], unsigned int BytePerPixelY[], double BytePerPixelDETY[], double SwathWidthY[],
@@ -5663,10 +5663,10 @@ void dml32_CalculateStutterEfficiency(/* Output */ double *StutterEfficiencyNotIncludingVBlank, double *StutterEfficiency, - unsigned int *NumberOfStutterBurstsPerFrame, + int *NumberOfStutterBurstsPerFrame, double *Z8StutterEfficiencyNotIncludingVBlank, double *Z8StutterEfficiency, - unsigned int *Z8NumberOfStutterBurstsPerFrame, + int *Z8NumberOfStutterBurstsPerFrame, double *StutterPeriod, bool *DCHUBBUB_ARB_CSTATE_MAX_CAP_MODE) {
drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.h +4 -4
@@ -614,7 +614,7 @@ void dml32_UseMinimumDCFCLK(unsigned int VTotal[], unsigned int VActive[], unsigned int DynamicMetadataTransmittedBytes[], - unsigned int DynamicMetadataLinesBeforeActiveRequired[], + int DynamicMetadataLinesBeforeActiveRequired[], bool Interlace[], double RequiredDPPCLKPerSurface[][2][DC__NUM_DPP__MAX], double RequiredDISPCLK[][2],
@@ -1013,7 +1013,7 @@ void dml32_CalculateStutterEfficiency(bool ProgressiveToInterlaceUnitInOPP, bool Interlace[], double MinTTUVBlank[], - unsigned int DPPPerSurface[], + unsigned int DPPPerSurface[], unsigned int DETBufferSizeY[], unsigned int BytePerPixelY[], double BytePerPixelDETY[],
@@ -1046,10 +1046,10 @@ void dml32_CalculateStutterEfficiency(/* Output */ double *StutterEfficiencyNotIncludingVBlank, double *StutterEfficiency, - unsigned int *NumberOfStutterBurstsPerFrame, + int *NumberOfStutterBurstsPerFrame, double *Z8StutterEfficiencyNotIncludingVBlank, double *Z8StutterEfficiency, - unsigned int *Z8NumberOfStutterBurstsPerFrame, + int *Z8NumberOfStutterBurstsPerFrame, double *StutterPeriod, bool *DCHUBBUB_ARB_CSTATE_MAX_CAP_MODE);
drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.h +6 -6
@@ -472,7 +472,7 @@ struct vba_vars_st {unsigned int VTotal[DC__NUM_DPP__MAX ];unsigned int VTotal_Max[DC__NUM_DPP__MAX ];unsigned int VTotal_Min[DC__NUM_DPP__MAX ]; -int DPPPerPlane[DC__NUM_DPP__MAX ]; +unsigned int DPPPerPlane[DC__NUM_DPP__MAX ];double PixelClock[DC__NUM_DPP__MAX ];double PixelClockBackEnd[DC__NUM_DPP__MAX ];bool DCCEnable[DC__NUM_DPP__MAX ];
@@ -739,7 +739,7 @@ struct vba_vars_st {/* ms locals */ double IdealSDPPortBandwidthPerState[DC__VOLTAGE_STATES ][2 ];unsigned int NoOfDPP[DC__VOLTAGE_STATES ][2 ][DC__NUM_DPP__MAX ]; -int NoOfDPPThisState[DC__NUM_DPP__MAX ]; +unsigned int NoOfDPPThisState[DC__NUM_DPP__MAX ];enum odm_combine_mode ODMCombineEnablePerState[DC__VOLTAGE_STATES ][DC__NUM_DPP__MAX ];double SwathWidthYThisState[DC__NUM_DPP__MAX ];unsigned int SwathHeightCPerState[DC__VOLTAGE_STATES ][2 ][DC__NUM_DPP__MAX ];
@@ -900,7 +900,7 @@ struct vba_vars_st {int PTEBufferSizeInRequestsForChroma;// Missing from VBA -int dpte_group_bytes_chroma; +unsigned int dpte_group_bytes_chroma;unsigned int vm_group_bytes_chroma;double dst_x_after_scaler;double dst_y_after_scaler;
@@ -1100,8 +1100,8 @@ struct vba_vars_st {unsigned int DETBufferSizeCThisState[DC__NUM_DPP__MAX ];bool NoUrgentLatencyHiding[DC__NUM_DPP__MAX ];bool NoUrgentLatencyHidingPre[DC__NUM_DPP__MAX ]; -int swath_width_luma_ub_this_state[DC__NUM_DPP__MAX ]; -int swath_width_chroma_ub_this_state[DC__NUM_DPP__MAX ]; +unsigned int swath_width_luma_ub_this_state[DC__NUM_DPP__MAX ]; +unsigned int swath_width_chroma_ub_this_state[DC__NUM_DPP__MAX ];double UrgLatency[DC__VOLTAGE_STATES ];double VActiveCursorBandwidth[DC__VOLTAGE_STATES ][2 ][DC__NUM_DPP__MAX ];double VActivePixelBandwidth[DC__VOLTAGE_STATES ][2 ][DC__NUM_DPP__MAX ];
@@ -1172,7 +1172,7 @@ struct vba_vars_st {int ConfigReturnBufferSizeInKByte;enum unbounded_requesting_policy UseUnboundedRequesting;int CompressedBufferSegmentSizeInkByte; -int CompressedBufferSizeInkByte; +unsigned int CompressedBufferSizeInkByte;int MetaFIFOSizeInKEntries;int ZeroSizeBufferEntries;int COMPBUF_RESERVED_SPACE_64B ;
drivers/gpu/drm/amd/display/dc/dpp/dcn10/dcn10_dpp_cm.c +1 -1
@@ -307,7 +307,7 @@ void dpp1_cm_set_output_csc_default( {struct dcn10_dpp *dpp =TO_DCN10_DPP (dpp_base);const uint16_t *regval =NULL ; -int arr_size; +uint32_t arr_size; regval =find_color_matrix (colorspace, &arr_size);if (regval ==NULL ) {
drivers/gpu/drm/amd/display/dc/dpp/dcn30/dcn30_dpp.c +1 -1
@@ -543,7 +543,7 @@ bool dpp3_get_optimal_number_of_taps(static void dpp3_deferred_update (struct dpp *dpp_base) { -int bypass_state; +uint32_t bypass_state;struct dcn3_dpp *dpp =TO_DCN30_DPP (dpp_base);if (dpp_base->deferred_reg_writes.bits.disable_dscl) {
drivers/gpu/drm/amd/display/dc/dpp/dcn30/dcn30_dpp_cm.c +2 -2
@@ -317,7 +317,7 @@ void dpp3_set_hdr_multiplier(static void program_gamut_remap (struct dcn3_dpp *dpp,const uint16_t *regval, -int select) +unsigned int select) {uint16_t selection =0 ;struct color_matrices_reg gam_regs;
@@ -379,7 +379,7 @@ void dpp3_cm_set_gamut_remap( {struct dcn3_dpp *dpp =TO_DCN30_DPP (dpp_base);int i =0 ; -int gamut_mode; +uint32_t gamut_mode;if (adjust->gamut_adjust_type !=GRAPHICS_GAMUT_ADJUST_TYPE_SW )/* Bypass if type is bypass or hw */
drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c +1 -1
@@ -1333,7 +1333,7 @@ uint32_t dc_dsc_stream_bandwidth_in_kbps(const struct dc_crtc_timing *timing,uint32_t dc_dsc_stream_bandwidth_overhead_in_kbps (const struct dc_crtc_timing *timing, -const int num_slices_h, +const uint32_t num_slices_h,const bool is_dp) {struct fixed31_32 max_dsc_overhead;
drivers/gpu/drm/amd/display/dc/dsc/dcn20/dcn20_dsc.c +4 -4
@@ -227,9 +227,9 @@ bool dsc2_get_packed_pps(struct display_stream_compressor *dsc, const struct dscvoid dsc2_enable (struct display_stream_compressor *dsc,int opp_pipe) {struct dcn20_dsc *dsc20 =TO_DCN20_DSC (dsc); -int dsc_clock_en; -int dsc_fw_config; -int enabled_opp_pipe; +uint32_t dsc_clock_en; +uint32_t dsc_fw_config; +uint32_t enabled_opp_pipe;DC_LOG_DSC ("enable DSC %d at opp pipe %d" , dsc->inst, opp_pipe);
@@ -252,7 +252,7 @@ void dsc2_enable(struct display_stream_compressor *dsc, int opp_pipe)void dsc2_disable (struct display_stream_compressor *dsc) {struct dcn20_dsc *dsc20 =TO_DCN20_DSC (dsc); -int dsc_clock_en; +uint32_t dsc_clock_en;DC_LOG_DSC ("disable DSC %d" , dsc->inst);
drivers/gpu/drm/amd/display/dc/dsc/dcn35/dcn35_dsc.c +4 -4
@@ -79,9 +79,9 @@ void dsc35_construct(struct dcn20_dsc *dsc,static void dsc35_enable (struct display_stream_compressor *dsc,int opp_pipe) {struct dcn20_dsc *dsc20 =TO_DCN20_DSC (dsc); -int dsc_clock_en; -int dsc_fw_config; -int enabled_opp_pipe; +uint32_t dsc_clock_en; +uint32_t dsc_fw_config; +uint32_t enabled_opp_pipe;DC_LOG_DSC ("enable DSC %d at opp pipe %d" , dsc->inst, opp_pipe);
@@ -96,7 +96,7 @@ static void dsc35_enable(struct display_stream_compressor *dsc, int opp_pipe)REG_GET (DSC_TOP_CONTROL ,DSC_CLOCK_EN , &dsc_clock_en);REG_GET_2 (DSCRM_DSC_FORWARD_CONFIG ,DSCRM_DSC_FORWARD_EN , &dsc_fw_config,DSCRM_DSC_OPP_PIPE_SOURCE , &enabled_opp_pipe);if ((dsc_clock_en || dsc_fw_config) && enabled_opp_pipe != opp_pipe) { -DC_LOG_DSC ("ERROR: DSC %d at opp pipe %d already enabled!" , dsc->inst, enabled_opp_pipe); +DC_LOG_DSC ("ERROR: DSC %d at opp pipe %u already enabled!" , dsc->inst, enabled_opp_pipe);ASSERT (0 ); }
drivers/gpu/drm/amd/display/dc/dsc/dcn401/dcn401_dsc.c +5 -5
@@ -144,16 +144,16 @@ void dsc401_set_config(struct display_stream_compressor *dsc, const struct dsc_cvoid dsc401_enable (struct display_stream_compressor *dsc,int opp_pipe) {struct dcn401_dsc *dsc401 =TO_DCN401_DSC (dsc); -int dsc_clock_en; -int dsc_fw_config; -int enabled_opp_pipe; +uint32_t dsc_clock_en; +uint32_t dsc_fw_config; +uint32_t enabled_opp_pipe;DC_LOG_DSC ("enable DSC %d at opp pipe %d" , dsc->inst, opp_pipe);REG_GET (DSC_TOP_CONTROL ,DSC_CLOCK_EN , &dsc_clock_en);REG_GET_2 (DSCRM_DSC_FORWARD_CONFIG ,DSCRM_DSC_FORWARD_EN , &dsc_fw_config,DSCRM_DSC_OPP_PIPE_SOURCE , &enabled_opp_pipe);if ((dsc_clock_en || dsc_fw_config) && enabled_opp_pipe != opp_pipe) { -DC_LOG_DSC ("ERROR: DSC %d at opp pipe %d already enabled!" , dsc->inst, enabled_opp_pipe); +DC_LOG_DSC ("ERROR: DSC %d at opp pipe %u already enabled!" , dsc->inst, enabled_opp_pipe);ASSERT (0 ); }
@@ -169,7 +169,7 @@ void dsc401_enable(struct display_stream_compressor *dsc, int opp_pipe)void dsc401_disable (struct display_stream_compressor *dsc) {struct dcn401_dsc *dsc401 =TO_DCN401_DSC (dsc); -int dsc_clock_en; +uint32_t dsc_clock_en;DC_LOG_DSC ("disable DSC %d" , dsc->inst);
drivers/gpu/drm/amd/display/dc/hubp/dcn401/dcn401_hubp.c +2 -2
@@ -63,10 +63,10 @@ void hubp401_enable_3dlut_fl(struct hubp *hubp, bool enable)REG_UPDATE (HUBP_3DLUT_CONTROL ,HUBP_3DLUT_ENABLE , enable ?1 :0 ); } -int hubp401_get_3dlut_fl_done (struct hubp *hubp) +uint32_t hubp401_get_3dlut_fl_done (struct hubp *hubp) {struct dcn20_hubp *hubp2 =TO_DCN20_HUBP (hubp); -int ret; +uint32_t ret;REG_GET (HUBP_3DLUT_CONTROL ,HUBP_3DLUT_DONE , &ret);return ret;
drivers/gpu/drm/amd/display/dc/hubp/dcn401/dcn401_hubp.h +1 -1
@@ -324,7 +324,7 @@ bool hubp401_construct(void hubp401_init (struct hubp *hubp); -int hubp401_get_3dlut_fl_done (struct hubp *hubp); +uint32_t hubp401_get_3dlut_fl_done (struct hubp *hubp);void hubp401_set_unbounded_requesting (struct hubp *hubp,bool enable);
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c +4 -2
@@ -2484,7 +2484,8 @@ void dcn10_enable_vblanks_synchronization( (void )group_index;struct output_pixel_processor *opp;struct timing_generator *tg; -int i, width =0 , height =0 , master; +int i, master; +uint32_t width =0 , height =0 ;DC_LOGGER_INIT (dc->ctx);
@@ -2550,7 +2551,8 @@ void dcn10_enable_timing_synchronization( (void )group_index;struct output_pixel_processor *opp;struct timing_generator *tg; -int i, width =0 , height =0 ; +int i; +uint32_t width =0 , height =0 ;DC_LOGGER_INIT (dc->ctx);
drivers/gpu/drm/amd/display/dc/hwss/dcn314/dcn314_hwseq.c +1 -1
@@ -147,7 +147,7 @@ static void update_dsc_on_stream(struct pipe_ctx *pipe_ctx, bool enable)// Given any pipe_ctx, return the total ODM combine factor, and optionally return // the OPPids which are used -static unsigned int get_odm_config (struct pipe_ctx *pipe_ctx,unsigned int *opp_instances) +static unsigned int get_odm_config (struct pipe_ctx *pipe_ctx,int *opp_instances) {unsigned int opp_count =1 ;struct pipe_ctx *odm_pipe;
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c +1 -1
@@ -1119,7 +1119,7 @@ void dcn32_update_dsc_on_stream(struct pipe_ctx *pipe_ctx, bool enable)* Given any pipe_ctx, return the total ODM combine factor, and optionally return * the OPPids which are used * */ -static unsigned int get_odm_config (struct pipe_ctx *pipe_ctx,unsigned int *opp_instances) +static unsigned int get_odm_config (struct pipe_ctx *pipe_ctx,int *opp_instances) {unsigned int opp_count =1 ;struct pipe_ctx *odm_pipe;
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c +1 -1
@@ -403,7 +403,7 @@ static void update_dsc_on_stream(struct pipe_ctx *pipe_ctx, bool enable)// Given any pipe_ctx, return the total ODM combine factor, and optionally return // the OPPids which are used -static unsigned int get_odm_config (struct pipe_ctx *pipe_ctx,unsigned int *opp_instances) +static unsigned int get_odm_config (struct pipe_ctx *pipe_ctx,int *opp_instances) {unsigned int opp_count =1 ;struct pipe_ctx *odm_pipe;
drivers/gpu/drm/amd/display/dc/inc/bw_fixed.h +1 -1
@@ -126,7 +126,7 @@ static inline struct bw_fixed bw_div(const struct bw_fixed arg1, const struct bwstatic inline struct bw_fixed bw_mod (const struct bw_fixed arg1,const struct bw_fixed arg2) {struct bw_fixed res; -div64_u64_rem (arg1.value, arg2.value, (uint64_t *)&res.value); +div64_u64_rem ((uint64_t )arg1.value, (uint64_t )arg2.value, (uint64_t *)&res.value);return res; }
drivers/gpu/drm/amd/display/dc/inc/hw/hubp.h +1 -1
@@ -305,7 +305,7 @@ struct hubp_funcs {enum hubp_3dlut_fl_crossbar_bit_slice bit_slice_y_g, enum hubp_3dlut_fl_crossbar_bit_slice bit_slice_cb_b, enum hubp_3dlut_fl_crossbar_bit_slice bit_slice_cr_r); -int (*hubp_get_3dlut_fl_done)(struct hubp *hubp); +uint32_t (*hubp_get_3dlut_fl_done)(struct hubp *hubp);void (*hubp_program_3dlut_fl_config)(struct hubp *hubp,struct hubp_fl_3dlut_config *cfg);void (*hubp_clear_tiling)(struct hubp *hubp);uint32_t (*hubp_get_current_read_line)(struct hubp *hubp);
drivers/gpu/drm/amd/display/dc/inc/hw/opp.h +2 -2
@@ -356,8 +356,8 @@ struct opp_funcs {void (*opp_program_dpg_dimensions)(struct output_pixel_processor *opp, -int width, -int height); +uint32_t width, +uint32_t height);bool (*dpg_is_blanked)(struct output_pixel_processor *opp);
drivers/gpu/drm/amd/display/dc/inc/hw/timing_generator.h +4 -4
@@ -32,9 +32,9 @@ struct dc_bios;/* Contains CRTC vertical/horizontal pixel counters */ struct crtc_position { -int32_t vertical_count; -int32_t horizontal_count; -int32_t nominal_vcount; +uint32_t vertical_count; +uint32_t horizontal_count; +uint32_t nominal_vcount; };struct dcp_gsl_params {
@@ -321,7 +321,7 @@ struct timing_generator {const struct timing_generator_funcs *funcs;struct dc_bios *bp;struct dc_context *ctx; -int inst; +uint32_t inst; };struct dc_crtc_timing ;
drivers/gpu/drm/amd/display/dc/inc/link_service.h +1 -1
@@ -110,7 +110,7 @@ struct link_service {struct dc_sink *(*add_remote_sink)(struct dc_link *link,const uint8_t *edid, -int len, +unsigned int len,struct dc_sink_init_data *init_data);void (*remove_remote_sink)(struct dc_link *link,struct dc_sink *sink);bool (*get_hpd_state)(struct dc_link *link);
drivers/gpu/drm/amd/display/dc/inc/reg_helper.h +36 -36
99 lines not on this page · raw message
drivers/gpu/drm/amd/display/dc/link/link_detection.c +1 -1
@@ -1562,7 +1562,7 @@ static bool link_add_remote_sink_helper(struct dc_link *dc_link, struct dc_sinkstruct dc_sink *link_add_remote_sink (struct dc_link *link,const uint8_t *edid, -int len, +unsigned int len,struct dc_sink_init_data *init_data) {struct dc_sink *dc_sink;
drivers/gpu/drm/amd/display/dc/link/link_detection.h +1 -1
@@ -32,7 +32,7 @@ bool link_detect_connection_type(struct dc_link *link,struct dc_sink *link_add_remote_sink (struct dc_link *link,const uint8_t *edid, -int len, +unsigned int len,struct dc_sink_init_data *init_data);void link_remove_remote_sink (struct dc_link *link,struct dc_sink *sink);bool link_reset_cur_dp_mst_topology (struct dc_link *link);
drivers/gpu/drm/amd/display/dc/link/protocols/link_edp_panel_control.c +4 -4
@@ -47,9 +47,9 @@#define DP_SINK_PR_ENABLE_AND_CONFIGURATION 0x37B/* Travis */ -static const uint8_t DP_VGA_LVDS_CONVERTER_ID_2 [] ="sivarT" ; +static const char DP_VGA_LVDS_CONVERTER_ID_2 [] ="sivarT" ;/* Nutmeg */ -static const uint8_t DP_VGA_LVDS_CONVERTER_ID_3 [] ="dnomlA" ; +static const char DP_VGA_LVDS_CONVERTER_ID_3 [] ="dnomlA" ;void dp_set_panel_mode (struct dc_link *link,enum dp_panel_mode panel_mode) {
@@ -1211,9 +1211,9 @@ int edp_get_backlight_level(const struct dc_link *link) fw_set_brightness = dmcu->funcs->is_dmcu_initialized (dmcu);if (!fw_set_brightness && panel_cntl->funcs->get_current_backlight) -return panel_cntl->funcs->get_current_backlight (panel_cntl); +return (int )panel_cntl->funcs->get_current_backlight (panel_cntl);else if (abm !=NULL && abm->funcs->get_current_backlight !=NULL ) -return (int ) abm->funcs->get_current_backlight (abm); +return (int )abm->funcs->get_current_backlight (abm);else return DC_ERROR_UNEXPECTED ; }
drivers/gpu/drm/amd/display/dc/mpc/dcn10/dcn10_mpc.c +1 -1
@@ -375,7 +375,7 @@ void mpc1_mpc_init(struct mpc *mpc)void mpc1_mpc_init_single_inst (struct mpc *mpc,unsigned int mpcc_id) {struct dcn10_mpc *mpc10 =TO_DCN10_MPC (mpc); -int opp_id; +uint32_t opp_id;REG_GET (MPCC_OPP_ID [mpcc_id],MPCC_OPP_ID , &opp_id);
drivers/gpu/drm/amd/display/dc/mpc/dcn30/dcn30_mpc.c +3 -3
@@ -1067,7 +1067,7 @@ static void program_gamut_remap(struct dcn30_mpc *mpc30, int mpcc_id, const uint16_t *regval, - int select) + uint32_t select) { uint16_t selection = 0;struct color_matrices_reg gam_regs;
@@ -1129,7 +1129,7 @@ void mpc3_set_gamut_remap( {struct dcn30_mpc *mpc30 =TO_DCN30_MPC (mpc);int i =0 ; -int gamut_mode; +uint32_t gamut_mode;if (adjust->gamut_adjust_type !=GRAPHICS_GAMUT_ADJUST_TYPE_SW )program_gamut_remap (mpc30, mpcc_id,NULL ,GAMUT_REMAP_BYPASS );
@@ -1201,7 +1201,7 @@ void mpc3_get_gamut_remap(struct mpc *mpc, {struct dcn30_mpc *mpc30 =TO_DCN30_MPC (mpc);uint16_t arr_reg_val[12 ] = {0 }; -int select; +uint32_t select;read_gamut_remap (mpc30, mpcc_id, arr_reg_val, &select);
drivers/gpu/drm/amd/display/dc/opp/dcn20/dcn20_opp.c +1 -1
@@ -293,7 +293,7 @@ void opp2_set_disp_pattern_generator( void opp2_program_dpg_dimensions( struct output_pixel_processor *opp,
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/display/dc/opp/dcn20/dcn20_opp.h +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/display/dc/optc/dcn32/dcn32_optc.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/display/include/fixed31_32.h +3 -3
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/display/modules/hdcp/hdcp_log.c +1 -1
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.53.0
Part of the diff is not shown here. View the raw message.