linux/drivers/gpu/drm/amd/display
Srinivasan Shanmugam a43dbeaba8 drm/amd/display: Remove redundant condition in dcn35_calc_blocks_to_gate()
pipe_ctx->plane_res.mpcc_inst is of a type that can only hold values
between 0 and 255, so it's always greater than or equal to 0.

Thus the condition 'pipe_ctx->plane_res.mpcc_inst >= 0' was always true
and has been removed.

Fixes the below:
drivers/gpu/drm/amd/amdgpu/../display/dc/hwss/dcn35/dcn35_hwseq.c:1023 dcn35_calc_blocks_to_gate() warn: always true condition '(pipe_ctx->plane_res.mpcc_inst >= 0) => (0-255 >= 0)'

Fixes: 6f8b7565cc ("drm/amd/display: Add DCN35 HWSEQ")
Cc: Qingqing Zhuo <Qingqing.Zhuo@amd.com>
Cc: Harry Wentland <Harry.Wentland@amd.com>
Cc: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Cc: Roman Li <roman.li@amd.com>
Cc: Aurabindo Pillai <aurabindo.pillai@amd.com>
Cc: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2024-03-20 13:38:14 -04:00
..
amdgpu_dm drm/amd/display: Fix function banner for amdgpu_dm_psr_disable_all() 2024-03-20 13:37:36 -04:00
dc drm/amd/display: Remove redundant condition in dcn35_calc_blocks_to_gate() 2024-03-20 13:38:14 -04:00
dmub drm/amd/display: Update DMUB flags and definitions 2024-03-20 13:37:38 -04:00
include drm/amd/display: Add comments to v_total calculation and drop legacy TODO 2024-03-20 13:37:38 -04:00
modules drm/amd/display: Remove wrong signal from vrr calculation 2024-03-20 13:38:11 -04:00
Kconfig
Makefile drm/amd/display: Refactor DPP into a component directory 2024-03-20 13:37:37 -04:00