mirror_ubuntu-kernels/drivers/gpu/drm/amd/display/dc
Wenjing Liu ed6941b632 drm/amd/display: on dp link lost event toggle dpms for master pipe only
[why]
We mistakenly toggle dpms state for non master pipe when handling
link lost. A non master pipe doesn't connect to a backend. So it is
toggling dpms for non master is undefined and caused NULL pointer
dereference.

[how]
Add helper functions to find an array of active master pipes for current
link and only toggle DPMS for active master pipes connected to the link.
Add assert in case we get called to program dpms with non master pipe.

Reviewed-by: Alvin Lee <Alvin.Lee2@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Wenjing Liu <wenjing.liu@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2023-02-14 16:03:49 -05:00
..
basics drm/amd/display: Include scaling factor for SubVP command 2022-08-16 18:14:20 -04:00
bios drm/amd/display: use swap() helper macro in bios_parser 2023-01-17 16:11:51 -05:00
clk_mgr Revert "drm/amd/display: Correct bw_params population" 2023-02-14 16:02:07 -05:00
core drm/amd/display: enable DPG when disabling plane for phantom pipe 2023-02-14 16:03:27 -05:00
dce drm/amd/display: Pass DSC slice height to PSR FW 2023-01-24 13:26:25 -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: break down dc_link.c 2023-02-08 17:15:51 -05:00
dce112 drm/amd/display: Add dc_ctx to link_enc_create() parameters 2022-07-25 17:17:28 -04:00
dce120 drm/amd/dc/dce120: Fix audio register mapping, stop triggering KASAN 2022-11-23 09:47:13 -05:00
dcn10 drm/amd/display: fix cursor offset on rotation 180 2023-02-08 17:16:27 -05:00
dcn20 drm/amd/display: break down dc_link.c 2023-02-08 17:15:51 -05:00
dcn21 drm/amd/display: break down dc_link.c 2023-02-08 17:15:51 -05:00
dcn30 drm/amd/display: break down dc_link.c 2023-02-08 17:15:51 -05:00
dcn31 drm/amd/display: break down dc_link.c 2023-02-08 17:15:51 -05:00
dcn32 drm/amd/display: fix k1 k2 divider programming for phantom streams 2023-02-14 16:00:18 -05:00
dcn201 drm/amd/display: refactor ddc logic from dc_link_ddc to link_ddc 2023-01-13 14:57:40 -05:00
dcn301 drm/amd/display: refactor ddc logic from dc_link_ddc to link_ddc 2023-01-13 14:57:40 -05:00
dcn302 drm/amd/display: refactor ddc logic from dc_link_ddc to link_ddc 2023-01-13 14:57:40 -05:00
dcn303 drm/amd/display: refactor ddc logic from dc_link_ddc to link_ddc 2023-01-13 14:57:40 -05:00
dcn314 drm/amd/display: Enable P-state validation checks for DCN314 2023-02-14 16:00:31 -05:00
dcn315 drm/amd/display: rework macros for DWB register access 2022-11-15 13:35:15 -05:00
dcn316 drm/amd/display: Change i2c speed for hdcp 2023-01-17 15:38:15 -05:00
dcn321 drm/amd/display: fix MALL size hardcoded for DCN321 2023-01-31 14:00:57 -05:00
dml drm/amd/display: Fix prefetch vratio check 2023-02-14 16:00:40 -05:00
dsc drm/amd/display: add rc_params_override option in dc_dsc_config 2023-01-31 14:00:51 -05:00
gpio drm/amd/display: fix mapping to non-allocated address 2023-01-17 15:40:44 -05:00
hdcp drm/amd/display: create accessories, hwss and protocols sub folders in link 2023-01-24 13:26:25 -05:00
inc drm/amd/display: break down dc_link.c 2023-02-08 17:15:51 -05:00
irq drm/amd/display: Remove the unused function dmub_outbox_irq_info_funcs 2023-01-03 16:57:58 -05:00
link drm/amd/display: on dp link lost event toggle dpms for master pipe only 2023-02-14 16:03:49 -05: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: Skip backlight control delay on external powered links 2023-01-17 15:40:28 -05:00
dc_ddc_types.h drm/amd/display: refactor ddc logic from dc_link_ddc to link_ddc 2023-01-13 14:57:40 -05:00
dc_dmub_srv.c drm/amd/display: Add margin on DRR vblank start for subvp 2022-11-23 09:47:13 -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: Enable AdaptiveSync in DC interface 2023-01-24 13:26:25 -05:00
dc_dsc.h
dc_edid_parser.c
dc_edid_parser.h
dc_hdmi_types.h drm/amd/display: Add HDMI manufacturer OUI and device id read 2023-02-08 17:15:42 -05:00
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: add rc_params_override option in dc_dsc_config 2023-01-31 14:00:51 -05:00
dc_link.h drm/amd/display: break down dc_link.c 2023-02-08 17:15:51 -05:00
dc_stat.h
dc_stream.h drm/amd/display: Enable AdaptiveSync in DC interface 2023-01-24 13:26:25 -05: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: Pass DSC slice height to PSR FW 2023-01-24 13:26:25 -05:00
dc.h drm/amd/display: Extract temp drm mst deallocation wa into its own function 2023-02-14 16:03:35 -05: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: Enable Freesync over PCon 2023-01-31 14:00:44 -05: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: break down dc_link.c 2023-02-08 17:15:51 -05:00
os_types.h drm/amd/display: remove repeated includes 2022-07-07 15:55:39 -04:00