mirror_ubuntu-kernels/drivers/gpu/drm/amd/display/dc
Nicholas Kazlauskas 98f9229ff6 drm/amd/display: Fix reg timeout in enc314_enable_fifo
[Why]
The link enablement sequence can end up resetting the encoder while
the PHY symclk isn't yet on.

This means that waiting for symclk on will timeout, along with the reset
bit never asserting high.

This causes unnecessary delay when enabling the link and produces a
warning affecting multiple IGT tests.

[How]
Don't wait for the symclk to be on here because firmware already does.

Don't wait for reset if we know the symclk isn't on.

Split the reset into a helper function that checks the bit and decides
whether or not a delay is sufficient.

Reviewed-by: Roman Li <Roman.Li@amd.com>
Acked-by: Alan Liu <HaoPing.Liu@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2022-11-09 17:41:41 -05:00
..
basics drm/amd/display: Include scaling factor for SubVP command 2022-08-16 18:14:20 -04:00
bios drm/amd/display: Remove unused struct i2c_id_config_access 2022-10-06 12:07:09 -04:00
clk_mgr drm/amd/display: Update SR watermarks for DCN314 2022-11-09 17:25:06 -05:00
core drm/amd/display: Fix fallback issues for DP LL 1.4a tests 2022-11-09 17:41:28 -05:00
dce drm/amd/display: Waiting for 1 frame to fix the flash issue on PSR1 2022-11-09 17:24:57 -05:00
dce60 drm/amd/display: prevent memory leak 2022-10-27 15:12:08 -04:00
dce80 drm/amd/display: prevent memory leak 2022-10-27 15:12:08 -04:00
dce100 drm/amd/display: Add dc_ctx to link_enc_create() parameters 2022-07-25 17:17:28 -04:00
dce110 drm/amd/display: move stream encoder audio setup to link_hwss 2022-10-24 14:35:34 -04:00
dce112 drm/amd/display: Add dc_ctx to link_enc_create() parameters 2022-07-25 17:17:28 -04:00
dce120 drm/amd/display: Add dc_ctx to link_enc_create() parameters 2022-07-25 17:17:28 -04:00
dcn10 drm/amd/display: move remaining FPU code to dml folder 2022-10-27 15:12:08 -04:00
dcn20 drm/amd/display: Wait for VBLANK during pipe programming 2022-11-09 17:24:14 -05:00
dcn21 drm/amd/display: Refactor eDP PSR codes 2022-10-24 14:35:54 -04:00
dcn30 drm/amd/display: Disable DRR actions during state commit 2022-11-09 17:25:52 -05:00
dcn31 drm/amd/display: Fix null pointer issues found in emulation 2022-11-01 11:48:18 -04:00
dcn32 drm/amd/display: Disable phantom OTG after enable for plane disable 2022-11-09 17:25:45 -05:00
dcn201 drm/amd/display: update dccg based on HW delta 2022-09-19 15:16:49 -04:00
dcn301 drm/amd/display: clean up one inconsistent indenting 2022-10-06 12:04:57 -04:00
dcn302 drm/amd/display: Refactor eDP PSR codes 2022-10-24 14:35:54 -04:00
dcn303 drm/amd/display: Refactor eDP PSR codes 2022-10-24 14:35:54 -04:00
dcn314 drm/amd/display: Fix reg timeout in enc314_enable_fifo 2022-11-09 17:41:41 -05:00
dcn315 drm/amd/display: Add a debug option HBR2CP2520 over TPS4 2022-11-01 11:47:39 -04:00
dcn316 drm/amd/display: Add a debug option HBR2CP2520 over TPS4 2022-11-01 11:47:39 -04:00
dcn321 drm/amd/display: clean up one inconsistent indenting 2022-10-06 12:04:49 -04:00
dml drm/amd/display: Fix FCLK deviation and tool compile issues 2022-11-09 17:41:41 -05:00
dsc drm/amd: Fix spelling typo in comments 2022-06-03 16:43:36 -04:00
gpio drm/amd/display: Enable DCN314 in DC 2022-07-13 20:57:05 -04:00
hdcp
inc drm/amd/display: Disable phantom OTG after enable for plane disable 2022-11-09 17:25:45 -05:00
irq drm/amd/display: add an ASSERT() to irq service functions 2022-10-17 17:41:21 -04:00
link drm/amd/display: move stream encoder audio setup to link_hwss 2022-10-24 14:35:34 -04:00
virtual drm/amd/display: make virtual_disable_link_output static 2022-10-11 11:32:59 -04:00
dc_bios_types.h drm/amd/display: Add dependant changes for DCN32/321 2022-06-03 16:43:38 -04:00
dc_ddc_types.h
dc_dmub_srv.c drm/amd/display: Cursor update refactor: PSR-SU support condition 2022-11-09 17:24:29 -05:00
dc_dmub_srv.h drm/amd/display: Use the same cursor info across features 2022-10-10 17:32:55 -04:00
dc_dp_types.h drm/amd/display: add support for handling 128b/132b link training test request 2022-04-05 10:29:48 -04:00
dc_dsc.h
dc_edid_parser.c
dc_edid_parser.h
dc_helper.c
dc_hw_types.h drm/amd/display: Expand documentation for timing 2022-08-16 18:14:31 -04:00
dc_link.h drm/amd/display: Fix fallback issues for DP LL 1.4a tests 2022-11-09 17:41:28 -05:00
dc_stat.h
dc_stream.h drm/amd/display: Expand kernel doc for DC 2022-10-27 14:45:29 -04:00
dc_trace.h drm/amd/display: Add events log to trace OPTC lock and unlock 2022-10-24 14:36:06 -04:00
dc_types.h drm/amd/display: Drop struct crc_region and reuse struct rect 2022-10-27 14:42:40 -04:00
dc.h drm/amd/display: 3.2.210 2022-11-01 11:48:30 -04:00
dm_cp_psp.h
dm_event_log.h
dm_helpers.h drm/amd/display: Refactor edp panel power sequencer(PPS) codes 2022-09-19 15:13:08 -04:00
dm_pp_smu.h
dm_services_types.h
dm_services.h
irq_types.h drm/amd/display: Remove underflow IRQ type 2022-04-05 10:29:47 -04:00
Makefile drm/amd/display: Enable building new display engine with KCOV enabled 2022-07-18 16:42:38 -04:00
os_types.h drm/amd/display: remove repeated includes 2022-07-07 15:55:39 -04:00