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

Configure Feed

Select the types of activity you want to include in your feed.

drm/amd/display: Fix silence signed/unsigned mismatch warnings in dml

[Why & How]
Fix signed/unsigned mismatch warnings by using the same signedness for a
given value

Reviewed-by: Austin Zheng <austin.zheng@amd.com>
Signed-off-by: Clay King <clayking@amd.com>
Signed-off-by: Chuanyu Tseng <chuanyu.tseng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Clay King and committed by
Alex Deucher
5efcf63a 26ebcac0

+8 -7
+1
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn42/dcn42_clk_mgr.h
··· 74 74 bool dcn42_is_smu_present(struct clk_mgr *clk_mgr_base); 75 75 bool dcn42_has_active_display(struct dc *dc, const struct dc_state *context); 76 76 int dcn42_get_active_display_cnt_wa(struct dc *dc, struct dc_state *context, int *all_active_disps); 77 + bool dcn42_has_active_display(struct dc *dc, const struct dc_state *context); 77 78 void dcn42_update_clocks_update_dpp_dto(struct clk_mgr_internal *clk_mgr, struct dc_state *context, bool safe_to_lower); 78 79 void dcn42_update_clocks_update_dtb_dto(struct clk_mgr_internal *clk_mgr, struct dc_state *context, int ref_dtbclk_khz); 79 80 bool dcn42_is_spll_ssc_enabled(struct clk_mgr *clk_mgr_base);
+5 -5
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c
··· 35 35 #define MAX_MPCC_FACTOR 4 36 36 37 37 struct dc_plane_pipe_pool { 38 - int pipes_assigned_to_plane[MAX_ODM_FACTOR][MAX_MPCC_FACTOR]; 38 + unsigned int pipes_assigned_to_plane[MAX_ODM_FACTOR][MAX_MPCC_FACTOR]; 39 39 bool pipe_used[MAX_ODM_FACTOR][MAX_MPCC_FACTOR]; 40 40 int num_pipes_assigned_to_plane_for_mpcc_combine; 41 41 int num_pipes_assigned_to_plane_for_odm_combine; ··· 340 340 static bool find_more_pipes_for_stream(struct dml2_context *ctx, 341 341 struct dc_state *state, // The state we want to find a free mapping in 342 342 unsigned int stream_id, // The stream we want this pipe to drive 343 - int *assigned_pipes, 344 - int *assigned_pipe_count, 343 + unsigned int *assigned_pipes, 344 + unsigned int *assigned_pipe_count, 345 345 int pipes_needed, 346 346 const struct dc_state *existing_state) // The state (optional) that we want to minimize remapping relative to 347 347 { ··· 406 406 static bool find_more_free_pipes(struct dml2_context *ctx, 407 407 struct dc_state *state, // The state we want to find a free mapping in 408 408 unsigned int stream_id, // The stream we want this pipe to drive 409 - int *assigned_pipes, 410 - int *assigned_pipe_count, 409 + unsigned int *assigned_pipes, 410 + unsigned int *assigned_pipe_count, 411 411 int pipes_needed, 412 412 const struct dc_state *existing_state) // The state (optional) that we want to minimize remapping relative to 413 413 {
+2 -2
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_translation_helper.c
··· 330 330 { 331 331 struct dml2_policy_build_synthetic_soc_states_scratch *s = &dml2->v20.scratch.create_scratch.build_synthetic_socbb_scratch; 332 332 struct dml2_policy_build_synthetic_soc_states_params *p = &dml2->v20.scratch.build_synthetic_socbb_params; 333 - unsigned int dcfclk_stas_mhz[NUM_DCFCLK_STAS] = {0}; 334 - unsigned int dcfclk_stas_mhz_new[NUM_DCFCLK_STAS_NEW] = {0}; 333 + int dcfclk_stas_mhz[NUM_DCFCLK_STAS] = {0}; 334 + int dcfclk_stas_mhz_new[NUM_DCFCLK_STAS_NEW] = {0}; 335 335 unsigned int dml_project = dml2->v20.dml_core_ctx.project; 336 336 337 337 unsigned int i = 0;