mirror_ubuntu-kernels/drivers/gpu/drm/amd/display/dc
Nicholas Kazlauskas 19f7b83344 drm/amd/display: Update clock table policy for DCN314
[Why & How]
Depending on how the clock table is constructed from PMFW we can run
into issues where we don't think we have enough bandwidth available
due to FCLK too low - eg. when the FCLK table contains invalid entries
or a single entry.

We should always pick up the maximum clocks for each state as a final
state in this case to prevent validation from failing if the table is
malformed.

We should also contain sensible defaults in the case where values
are invalid.

Redfine the clock table structures by adding a 314 prefix to make
debugging these issues easier by avoiding symbol name clashes.

Overall this policy more closely aligns to how we did things for 315,
but because of how the voltage rail is setup we should favor keeping
DCFCLK low rather than DISPCLK or DPPCLK - so use the max for those
in every entry.

Reviewed-by: Daniel Miess <daniel.miess@amd.com>
Acked-by: Brian Chang <Brian.Chang@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-08-16 18:08:54 -04:00
..
basics drm/amd/display: Move all linux includes into OS types 2022-07-05 16:16:49 -04:00
bios drm/amd/display: Enable DCN314 in DC 2022-07-13 20:57:05 -04:00
clk_mgr drm/amd/display: Update clock table policy for DCN314 2022-08-16 18:08:54 -04:00
core drm/amd/display: Fix plug/unplug external monitor will hang while playback MPO video 2022-08-16 18:08:36 -04:00
dce drm/amd/display: Fix pixel clock programming 2022-08-16 18:07:21 -04:00
dce60 drm/amd/display: Add dc_ctx to link_enc_create() parameters 2022-07-25 17:17:28 -04:00
dce80 drm/amd/display: Add dc_ctx to link_enc_create() parameters 2022-07-25 17:17:28 -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: Add dc_ctx to link_enc_create() parameters 2022-07-25 17:17:28 -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: reverted limiting vscsdp_for_colorimetry and ARGB16161616 pixel format addition 2022-08-16 18:07:06 -04:00
dcn20 drm/amd/display: reverted limiting vscsdp_for_colorimetry and ARGB16161616 pixel format addition 2022-08-16 18:07:06 -04:00
dcn21 drm/amd/display: Add dc_ctx to link_enc_create() parameters 2022-07-25 17:17:28 -04:00
dcn30 drm/amd/display: reverted limiting vscsdp_for_colorimetry and ARGB16161616 pixel format addition 2022-08-16 18:07:06 -04:00
dcn31 drm/amd/display: change family id name for DCN314 2022-08-10 15:10:12 -04:00
dcn32 drm/amd/display: do not compare integers of different widths 2022-08-16 18:07:54 -04:00
dcn201 drm/amd/display: Add dc_ctx to link_enc_create() parameters 2022-07-25 17:17:28 -04:00
dcn301 drm/amd/display: Add dc_ctx to link_enc_create() parameters 2022-07-25 17:17:28 -04:00
dcn302 drm/amd/display: Add dc_ctx to link_enc_create() parameters 2022-07-25 17:17:28 -04:00
dcn303 drm/amd/display: Check correct bounds for stream encoder instances for DCN303 2022-08-10 15:30:06 -04:00
dcn314 drm/amd/display: Fix VPG instancing for dcn314 HPO 2022-08-10 15:30:06 -04:00
dcn315 drm/amd/display: make variables static 2022-08-10 14:57:49 -04:00
dcn316 drm/amd/display: make variables static 2022-08-10 14:57:49 -04:00
dcn321 drm/amd/display: Add 16 lines margin for SubVP 2022-08-10 15:41:17 -04:00
dml drm/amd/display: Modify header inclusion pattern 2022-08-16 18:08:42 -04: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: Fix a compilation failure on PowerPC caused by FPU code 2022-07-29 15:24:38 -04:00
irq drm/amd/display: Support vertical interrupt 0 for all dcn ASIC 2022-07-20 16:04:11 -04:00
link drm/amd/display: Fix dpstreamclk programming 2022-07-25 17:17:10 -04:00
virtual drm/amd/display: Move all linux includes into OS types 2022-07-05 16:16:49 -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: Add 16 lines margin for SubVP 2022-08-10 15:41:17 -04:00
dc_dmub_srv.h drm/amd/display: Updates SubVP and SubVP DRR cases 2022-07-25 17:15:06 -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 drm/amd/display: move bpp range decision in decide dsc bw range function 2021-09-14 15:57:09 -04:00
dc_edid_parser.c
dc_edid_parser.h
dc_helper.c drm/amd/display: Support synchronized indirect reg access 2022-01-25 18:00:35 -05:00
dc_hw_types.h drm/amd/display: OVT Update on InfoFrame and Mode Management 2022-07-05 16:17:20 -04:00
dc_link.h drm/amd/display: Fix TDR eDP and USB4 display light up issue 2022-08-10 15:30:06 -04:00
dc_stat.h
dc_stream.h drm/amd/display: Remove unused struct freesync_context 2022-07-28 16:20:27 -04:00
dc_trace.h drm/amd/display: Add control mechanism for FPU utilization 2021-08-05 21:17:59 -04:00
dc_types.h drm/amd/display: Add NBIO reg offsets to DC 2022-07-13 11:25:17 -04:00
dc.h drm/amd/display: Add debug parameter to retain default clock table 2022-08-16 18:08:08 -04:00
dm_cp_psp.h drm/amd/display: unhard code link to phy idx mapping in dc link and clean up 2022-01-07 17:21:20 -05:00
dm_event_log.h
dm_helpers.h drm/amd/display: remove redundant CONFIG_DRM_AMD_DC_DCN in dc 2022-05-10 17:53:12 -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