1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/amd/display/amdgpu_dm
Hamza Mahfooz 1101185bc5 drm/amd/display: fix the ability to use lower resolution modes on eDP
On eDP we can receive invalid modes from dm_update_crtc_state() for
entirely new streams for which drm_mode_set_crtcinfo() shouldn't be
called on. So, instead of calling drm_mode_set_crtcinfo() from within
create_stream_for_sink() we can instead call it from
amdgpu_dm_connector_mode_valid(). Since, we are guaranteed to only call
drm_mode_set_crtcinfo() for valid modes from that function (invalid
modes are rejected by that callback) and that is the only user
of create_validate_stream_for_sink() that we need to call
drm_mode_set_crtcinfo() for (as before commit cb841d27b8
("drm/amd/display: Always pass connector_state to stream validation"),
that is the only place where create_validate_stream_for_sink()'s
dm_state was NULL).

Cc: stable@vger.kernel.org
Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2693
Fixes: cb841d27b8 ("drm/amd/display: Always pass connector_state to stream validation")
Tested-by: Mark Broadworth <mark.broadworth@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2023-09-20 16:24:07 -04:00
..
amdgpu_dm.c drm/amd/display: fix the ability to use lower resolution modes on eDP 2023-09-20 16:24:07 -04:00
amdgpu_dm.h drm/amd: Move seamless boot check out of display 2023-09-20 12:24:21 -04:00
amdgpu_dm_color.c Documentation/amdgpu_dm: Add DM color correction documentation 2022-08-16 18:14:32 -04:00
amdgpu_dm_crc.c drm/amd/display: Remove redundant braces in 'amdgpu_dm_crtc_notify_ta_to_read()' 2023-07-07 13:38:57 -04:00
amdgpu_dm_crc.h drm/amd/display: Fix in secure display context creation 2023-04-24 18:36:46 -04:00
amdgpu_dm_crtc.c drm/amd/display: Enable Replay for static screen use cases 2023-08-30 14:56:33 -04:00
amdgpu_dm_crtc.h drm/amd/display: add prefix to amdgpu_dm_crtc.h functions 2023-03-08 14:05:53 -05:00
amdgpu_dm_debugfs.c drm/amd/display: Add DCHUBBUB callback to report MALL status 2023-09-11 17:16:35 -04:00
amdgpu_dm_debugfs.h drm/amd/display: Move connector debugfs to drm 2022-05-23 11:27:44 +03:00
amdgpu_dm_hdcp.c drm/amd/display: Add DCN35 DM Support 2023-08-30 15:51:16 -04:00
amdgpu_dm_hdcp.h drm/amd/display: phase2 enable mst hdcp multiple displays 2023-01-17 15:41:19 -05:00
amdgpu_dm_helpers.c drm/amd/display: Replace ternary operator with min() in 'dm_helpers_parse_edid_caps' 2023-08-15 18:08:30 -04:00
amdgpu_dm_irq.c drm/amd/display: Clean up style problems in amdgpu_dm_irq.c 2023-07-07 13:38:53 -04:00
amdgpu_dm_irq.h drm/amd/display: Support for DMUB AUX 2021-05-10 18:06:44 -04:00
amdgpu_dm_irq_params.h drm/amd/display: Implement secure display on DCN21 2022-10-27 14:42:32 -04:00
amdgpu_dm_mst_types.c drm/amd/display: Fix a regression on Polaris cards 2023-08-09 10:55:41 -04:00
amdgpu_dm_mst_types.h drm/amd/display: Add polling method to handle MST reply packet 2023-07-18 14:32:37 -04:00
amdgpu_dm_plane.c drm/amdgpu: Use function for IP version check 2023-09-20 12:23:28 -04:00
amdgpu_dm_plane.h drm/amd/display: add prefix to amdgpu_dm_plane.h functions 2023-03-08 14:04:45 -05:00
amdgpu_dm_pp_smu.c drm/amd/display: Clean up warnings in amdgpu_dm_pp_smu.c 2023-07-07 13:51:47 -04:00
amdgpu_dm_psr.c drm/amd/display: Clean up warnings in amdgpu_dm _mst_types, _plane, _psr.c 2023-07-07 13:51:47 -04:00
amdgpu_dm_psr.h drm/amd/display: Delay PSR entry 2021-06-21 17:45:14 -04:00
amdgpu_dm_replay.c drm/amd/display: Fix unnecessary conversion to bool in 'amdgpu_dm_setup_replay' 2023-08-30 14:58:11 -04:00
amdgpu_dm_replay.h drm/amd/display: Add Freesync Panel DM code 2023-08-07 17:14:07 -04:00
amdgpu_dm_services.c drm/amd/display: Decouple amdgpu_dm_trace from service 2020-10-26 13:33:59 -04:00
amdgpu_dm_trace.h drm/amd/display: Add events log to trace OPTC lock and unlock 2022-10-24 14:36:06 -04:00
dc_fpu.c drm/amdgpu/display: Enable DC_FP for LoongArch 2023-06-09 09:36:48 -04:00
dc_fpu.h drm/amd/display: Add DC_FP helper to check FPU state 2021-08-05 21:17:59 -04:00
Makefile drm/amd/display: Add Freesync Panel DM code 2023-08-07 17:14:07 -04:00