drm/amd/display: Add hpd_source index check for DCE60/80/100/110/112/120 link encodersThis patch adds a boundary check for the hpd_source index during thelink encoder creation process for all DCEx
drm/amd/display: Add hpd_source index check for DCE60/80/100/110/112/120 link encodersThis patch adds a boundary check for the hpd_source index during thelink encoder creation process for all DCExxx IP's. The check ensuresthat the index is within the valid range of the link_enc_hpd_regs arrayto prevent out-of-bounds access.Cc: Tom Chung <[email protected]>Cc: Rodrigo Siqueira <[email protected]>Cc: Roman Li <[email protected]>Cc: Alex Hung <[email protected]>Cc: Aurabindo Pillai <[email protected]>Cc: Harry Wentland <[email protected]>Cc: Hamza Mahfooz <[email protected]>Signed-off-by: Srinivasan Shanmugam <[email protected]>Reviewed-by: Roman Li <[email protected]>Signed-off-by: Alex Deucher <[email protected]>
show more ...
drm/amd/display: Check null pointers before multiple uses[WHAT & HOW]Poniters, such as stream_enc and dc->bw_vbios, are null checked previouslyin the same function, so Coverity warns "implies tha
drm/amd/display: Check null pointers before multiple uses[WHAT & HOW]Poniters, such as stream_enc and dc->bw_vbios, are null checked previouslyin the same function, so Coverity warns "implies that stream_enc anddc->bw_vbios might be null". They are used multiple times in thesubsequent code and need to be checked.This fixes 10 FORWARD_NULL issues reported by Coverity.Reviewed-by: Rodrigo Siqueira <[email protected]>Signed-off-by: Jerry Zuo <[email protected]>Signed-off-by: Alex Hung <[email protected]>Tested-by: Daniel Wheeler <[email protected]>Signed-off-by: Alex Deucher <[email protected]>
drm/amd/display: Fix compiler warnings on high compiler warning levels[why]Enabling higher compiler warning levels results in many issues that canbe trivially resolved as well as some potentially
drm/amd/display: Fix compiler warnings on high compiler warning levels[why]Enabling higher compiler warning levels results in many issues that canbe trivially resolved as well as some potentially critical issues.[how]Fix all compiler warnings found with various compilers and higherwarning levels. Primarily, potentially uninitialized variables andunreachable code.Reviewed-by: Leo Li <[email protected]>Acked-by: Roman Li <[email protected]>Signed-off-by: Aric Cyr <[email protected]>Signed-off-by: Alex Deucher <[email protected]>
drm/amd/display: Refactor resource into component directory[WHY]Move all resource files to unique folder resource.[HOW]Created resource folder in dc, moved thedcnxx_resource.c and dcnxx_resour
drm/amd/display: Refactor resource into component directory[WHY]Move all resource files to unique folder resource.[HOW]Created resource folder in dc, moved thedcnxx_resource.c and dcnxx_resource.h files intocorresponding new folders inside the resource andmade appropriate changes for compilation in Makefiles.Reviewed-by: Martin Leung <[email protected]>Acked-by: Alex Hung <[email protected]>Signed-off-by: Mounika Adhuri <[email protected]>Tested-by: Daniel Wheeler <[email protected]>Signed-off-by: Alex Deucher <[email protected]>