[PATCH 0/4] Reuse some functions from the previous DCN in the newest DCNs
Rodrigo Siqueira
siqueira at igalia.com
Sun May 4 22:11:27 UTC 2025
DCN has multiple callbacks, some of which can be replaced with specific
operations for a particular ASIC. Sometimes, the implementation of the
previous ASIC can be used in a new one; traditionally, the display
approach for those cases has been to use the old function implementation
in the new ASICs if nothing changes. For example, if function Y
implemented in DCN 10 did not change anything in the DCN 30, the DCN 10
implementation is used in the DCN 30 callback. Sometimes, this approach
is not followed, which may lead to code duplication. This series
addresses some of those cases by promoting the reuse of old ASIC
implementation in new ASICs.
Thanks
Rodrigo Siqueira (4):
drm/amd/display: Use optc31_enable_crtc implementation for new DCNs
drm/amd/display: Use optc31_disable_crtc for DCN 31 and 401
drm/amd/display: Uses optc31_disable_crtc for DCN35
drm/amd/display: Replace dcn35_update_odm with dcn314_update_odm
.../amd/display/dc/hwss/dcn35/dcn35_hwseq.c | 52 --------------
.../amd/display/dc/hwss/dcn35/dcn35_hwseq.h | 2 -
.../amd/display/dc/hwss/dcn35/dcn35_init.c | 2 +-
.../amd/display/dc/hwss/dcn351/dcn351_init.c | 3 +-
.../amd/display/dc/optc/dcn31/dcn31_optc.c | 15 ++--
.../amd/display/dc/optc/dcn31/dcn31_optc.h | 4 ++
.../amd/display/dc/optc/dcn314/dcn314_optc.c | 27 +-------
.../amd/display/dc/optc/dcn32/dcn32_optc.c | 33 +--------
.../amd/display/dc/optc/dcn35/dcn35_optc.c | 62 +----------------
.../amd/display/dc/optc/dcn401/dcn401_optc.c | 68 +------------------
.../amd/display/dc/optc/dcn401/dcn401_optc.h | 2 -
11 files changed, 24 insertions(+), 246 deletions(-)
--
2.47.2
More information about the amd-gfx
mailing list