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 <ruanjinjie@huawei.com>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
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 <tzimmermann@suse.de>Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>Link: https://patchwork.freedesktop.org/patch/msgid/20220421073108.19226-6-tzimmermann@suse.de
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 <lkp@intel.com>Signed-off-by: Magali Lemes <magalilemes00@gmail.com>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
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 <abaci@linux.alibaba.com>Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
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 <Wenjing.Liu@amd.com>Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>Signed-off-by: Bing Guo <Bing.Guo@amd.com>Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
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 <christian.koenig@amd.com>Cc: Hersen Wu <hersenxs.wu@amd.com>Cc: Anson Jacob <Anson.Jacob@amd.com>Cc: Harry Wentland <harry.wentland@amd.com>Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>Acked-by: Agustin Gutierrez <agustin.gutierrez@amd.com>Tested-by: Anson Jacob <Anson.Jacob@amd.com>Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>Signed-off-by: Qingqing Zhuo <qingqing.zhuo@amd.com>Acked-by: Christian König <christian.koenig@amd.com>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>