drm/amd/display: Make some symbols staticThese symbols qp_table_422_10bpc_min, qp_table_444_8bpc_max,qp_table_420_12bpc_max, qp_table_444_10bpc_min, qp_table_420_8bpc_max,qp_table_444_8bpc_min, q
drm/amd/display: Make some symbols staticThese symbols qp_table_422_10bpc_min, qp_table_444_8bpc_max,qp_table_420_12bpc_max, qp_table_444_10bpc_min, qp_table_420_8bpc_max,qp_table_444_8bpc_min, qp_table_444_12bpc_min, qp_table_420_12bpc_min,qp_table_422_12bpc_min, qp_table_422_12bpc_max, qp_table_444_12bpc_max,qp_table_420_8bpc_min, qp_table_422_8bpc_min, qp_table_422_10bpc_max,qp_table_420_10bpc_max, qp_table_420_10bpc_min, qp_table_444_10bpc_max,qp_table_422_8bpc_max are not used outside of the file,so mark them static../drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:28:18: warning:symbol 'qp_table_422_10bpc_min' was not declared. Should it be static?./drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:61:18: warning:symbol 'qp_table_444_8bpc_max' was not declared. Should it be static?./drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:102:18: warning:symbol 'qp_table_420_12bpc_max' was not declared. Should it be static?./drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:135:18: warning:symbol 'qp_table_444_10bpc_min' was not declared. Should it be static?./drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:188:18: warning:symbol 'qp_table_420_8bpc_max' was not declared. Should it be static?./drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:209:18: warning:symbol 'qp_table_444_8bpc_min' was not declared. Should it be static?./drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:250:18: warning:symbol 'qp_table_444_12bpc_min' was not declared. Should it be static?./drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:315:18: warning:symbol 'qp_table_420_12bpc_min' was not declared. Should it be static?./drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:348:18: warning:symbol 'qp_table_422_12bpc_min' was not declared. Should it be static?./drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:389:18: warning:symbol 'qp_table_422_12bpc_max' was not declared. Should it be static?./drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:430:18: warning:symbol 'qp_table_444_12bpc_max' was not declared. Should it be static?./drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:495:18: warning:symbol 'qp_table_420_8bpc_min' was not declared. Should it be static?./drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:516:18: warning:symbol 'qp_table_422_8bpc_min' was not declared. Should it be static?./drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:541:18: warning:symbol 'qp_table_422_10bpc_max' was not declared. Should it be static?./drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:574:16: warning:symbol 'qp_table_420_10bpc_max' was not declared. Should it be static?./drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:601:18: warning:symbol 'qp_table_420_10bpc_min' was not declared. Should it be static?./drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:628:18: warning:symbol 'qp_table_444_10bpc_max' was not declared. Should it be static?./drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:681:18: warning:symbol 'qp_table_422_8bpc_max' was not declared. Should it be static?Signed-off-by: ruanjinjie <[email protected]>Signed-off-by: Alex Deucher <[email protected]>
show more ...
drm/display: Move DSC header and helpers into display-helper moduleDSC is the Display Stream Compression standard for DisplayPort. Movethe DSC code into display/ and split the header into files fo
drm/display: Move DSC header and helpers into display-helper moduleDSC is the Display Stream Compression standard for DisplayPort. Movethe DSC code into display/ and split the header into files for protocolcore and DRM helpers. Adapt all users of the code. No functionalchanges.To avoid the proliferation of Kconfig options, DSC is part of DRM'ssupport for DisplayPort. If necessary, a new option could make DSC anindependent feature.Signed-off-by: Thomas Zimmermann <[email protected]>Reviewed-by: Javier Martinez Canillas <[email protected]>Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drm/amd/display: Use NULL pointer instead of plain integerAssigning 0L to a pointer variable caused the following warning:drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/rc_calc_fpu.c:71:40:war
drm/amd/display: Use NULL pointer instead of plain integerAssigning 0L to a pointer variable caused the following warning:drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/rc_calc_fpu.c:71:40:warning: Using plain integer as NULL pointerIn order to remove this warning, this commit assigns a NULL pointer tothe pointer variable that caused this issue.Reported-by: kernel test robot <[email protected]>Signed-off-by: Magali Lemes <[email protected]>Signed-off-by: Alex Deucher <[email protected]>
drm/amd/display: Fix warning comparing pointer to 0Fix the following coccicheck warning:./drivers/gpu/drm/amd/display/dc/dml/dsc/rc_calc_fpu.c:96:14-15: WARNINGcomparing pointer to 0.Reported-
drm/amd/display: Fix warning comparing pointer to 0Fix the following coccicheck warning:./drivers/gpu/drm/amd/display/dc/dml/dsc/rc_calc_fpu.c:96:14-15: WARNINGcomparing pointer to 0.Reported-by: Abaci Robot <[email protected]>Signed-off-by: Jiapeng Chong <[email protected]>Reviewed-by: Rodrigo Siqueira <[email protected]>Signed-off-by: Alex Deucher <[email protected]>
drm/amd/display: fixed an error related to 4:2:0/4:2:2 DSC[Why]OPTC_BYTES_PER_PIXEL calculation for 4:2:2 and 4:2:0 could have error.[How]Change to use following formula:OPTC_DSC_BYTES_PER_PIX
drm/amd/display: fixed an error related to 4:2:0/4:2:2 DSC[Why]OPTC_BYTES_PER_PIXEL calculation for 4:2:2 and 4:2:0 could have error.[How]Change to use following formula:OPTC_DSC_BYTES_PER_PIXEL = ceiling((chunk size * 2^28) / slice width)v2: squash in 64 bit divide fix (Alex)Reviewed-by: Wenjing Liu <[email protected]>Acked-by: Qingqing Zhuo <[email protected]>Signed-off-by: Bing Guo <[email protected]>Tested-by: Daniel Wheeler <[email protected]>Signed-off-by: Alex Deucher <[email protected]>
drm/amd/display: move FPU associated DSC code to DML folder[Why & How]As part of the FPU isolation work documented inhttps://patchwork.freedesktop.org/series/93042/, isolate code that usesFPU in
drm/amd/display: move FPU associated DSC code to DML folder[Why & How]As part of the FPU isolation work documented inhttps://patchwork.freedesktop.org/series/93042/, isolate code that usesFPU in DSC to DML, where all FPU code should locate.This change does not refactor any functions but move code around.Cc: Christian König <[email protected]>Cc: Hersen Wu <[email protected]>Cc: Anson Jacob <[email protected]>Cc: Harry Wentland <[email protected]>Reviewed-by: Rodrigo Siqueira <[email protected]>Acked-by: Agustin Gutierrez <[email protected]>Tested-by: Anson Jacob <[email protected]>Tested-by: Daniel Wheeler <[email protected]>Signed-off-by: Qingqing Zhuo <[email protected]>Acked-by: Christian König <[email protected]>Signed-off-by: Alex Deucher <[email protected]>