Skip to content

Commit e7e4f77

Browse files
Roman Lialexdeucher
authored andcommitted
drm/amd/display: Fix optc2_configure warning on dcn314
[Why] dcn314 uses optc2_configure_crc() that wraps optc1_configure_crc() + set additional registers not applicable to dcn314. It's not critical but when used leads to warning like: WARNING: drivers/gpu/drm/amd/amdgpu/../display/dc/dc_helper.c Call Trace: <TASK> generic_reg_set_ex+0x6d/0xe0 [amdgpu] optc2_configure_crc+0x60/0x80 [amdgpu] dc_stream_configure_crc+0x129/0x150 [amdgpu] amdgpu_dm_crtc_configure_crc_source+0x5d/0xe0 [amdgpu] [How] Use optc1_configure_crc() directly Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com> Acked-by: Tom Chung <chiahsuan.chung@amd.com> Signed-off-by: Roman Li <roman.li@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org # 6.0.x
1 parent 4d28524 commit e7e4f77

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/amd/display/dc/dcn314/dcn314_optc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ static struct timing_generator_funcs dcn314_tg_funcs = {
237237
.clear_optc_underflow = optc1_clear_optc_underflow,
238238
.setup_global_swap_lock = NULL,
239239
.get_crc = optc1_get_crc,
240-
.configure_crc = optc2_configure_crc,
240+
.configure_crc = optc1_configure_crc,
241241
.set_dsc_config = optc3_set_dsc_config,
242242
.get_dsc_status = optc2_get_dsc_status,
243243
.set_dwb_source = NULL,

0 commit comments

Comments
 (0)