drm/amd/display/dc: Refactor remove duplicationsAll dce command_table_helper's shares a copy-pasted collectionof copy-pasted functions, which are: phy_id_to_atom,clock_source_id_to_atom_phy_clk_s
drm/amd/display/dc: Refactor remove duplicationsAll dce command_table_helper's shares a copy-pasted collectionof copy-pasted functions, which are: phy_id_to_atom,clock_source_id_to_atom_phy_clk_src_id, and engine_bp_to_atom.This patch removes the multiple copy-pasted by moving them tothe command_table_helper.c and make the command_table_helper'scalls the functions implemented by the command_table_helper.cinstead.The changes were not tested on actual hardware. I am only ableto verify that the changes keep the code compileable and do mybest to to look repeatedly if I am not actually changing any code.This is the version 4 of the PATCH, fixed comments aboutlicence in the new files and the matches From email toSigned-off-by email. Fixed comments about usingcommand_table_helper instead of creating a dce_commonSigned-off-by: Luan Icaro Pinto Arcanjo <luanicaro@usp.br>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
show more ...
amdgpu/dc: fix non-ansi function decls.smatch reported:drivers/gpu/drm/amd/amdgpu/../display/dc/bios/dce80/command_table_helper_dce80.c:351:71: warning: non-ANSI function declaration of function '
amdgpu/dc: fix non-ansi function decls.smatch reported:drivers/gpu/drm/amd/amdgpu/../display/dc/bios/dce80/command_table_helper_dce80.c:351:71: warning: non-ANSI function declaration of function 'dal_cmd_tbl_helper_dce80_get_table'drivers/gpu/drm/amd/amdgpu/../display/dc/bios/dce110/command_table_helper_dce110.c:361:72: warning: non-ANSI function declaration of function 'dal_cmd_tbl_helper_dce110_get_table'drivers/gpu/drm/amd/amdgpu/../display/dc/bios/dce112/command_table_helper_dce112.c:415:72: warning: non-ANSI function declaration of function 'dal_cmd_tbl_helper_dce112_get_table'drivers/gpu/drm/amd/amdgpu/../display/dc/bios/dce112/command_table_helper2_dce112.c:415:73: warning: non-ANSI function declaration of function 'dal_cmd_tbl_helper_dce112_get_table2'drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_surface.c:148:34: warning: non-ANSI function declaration of function 'dc_create_gamma'drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_surface.c:178:50: warning: non-ANSI function declaration of function 'dc_create_transfer_func'This fixes them.Reviewed-by: Harry Wentland <harry.wentland@amd.com>Signed-off-by: Dave Airlie <airlied@redhat.com>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drm/amd/dc: Add dc display driver (v2)Supported DCE versions: 8.0, 10.0, 11.0, 11.2v2: rebase against 4.11Signed-off-by: Harry Wentland <harry.wentland@amd.com>Acked-by: Alex Deucher <alexande
drm/amd/dc: Add dc display driver (v2)Supported DCE versions: 8.0, 10.0, 11.0, 11.2v2: rebase against 4.11Signed-off-by: Harry Wentland <harry.wentland@amd.com>Acked-by: Alex Deucher <alexander.deucher@amd.com>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>