linux-uconsole/drivers/gpu/drm/amd/display/dc
David Galiffi 12fefecbcb drm/amd/display: Fixed kernel panic when booting with DP-to-HDMI dongle
[ Upstream commit a51d9f8fe7 ]

[Why]
In dc_link_is_dp_sink_present, if dal_ddc_open fails, then
dal_gpio_destroy_ddc is called, destroying pin_data and pin_clock. They
are created only on dc_construct, and next aux access will cause a panic.

[How]
Instead of calling dal_gpio_destroy_ddc, call dal_ddc_close.

Signed-off-by: David Galiffi <David.Galiffi@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-09 10:18:55 +01:00
..
basics drm/amd/display: Convert remaining loggers off dc_logger 2018-07-13 14:48:42 -05:00
bios Revert "drm/amdgpu/display: Replace CONFIG_DRM_AMD_DC_DCN1_0 with CONFIG_X86" 2018-08-21 14:32:28 -05:00
calcs drm/amd/display: readd -msse2 to prevent Clang from emitting libcalls to undefined SW FP routines 2019-10-01 08:26:00 +02:00
core drm/amd/display: Fixed kernel panic when booting with DP-to-HDMI dongle 2020-01-09 10:18:55 +01:00
dce drm/amd/display: support spdif 2019-10-07 18:56:57 +02:00
dce80 drm/amd/display: Don't share clk source between DP and HDMI 2018-08-06 14:35:43 -05:00
dce100 drm/amd/display: Don't share clk source between DP and HDMI 2018-08-06 14:35:43 -05:00
dce110 drm/amd/display: Fill prescale_params->scale for RGB565 2019-07-31 07:26:57 +02:00
dce112 drm/amd/display: Destroy aux_engines only once 2018-08-06 14:35:24 -05:00
dce120 drm/amd/display: Fix Vega10 lightup on S3 resume 2018-09-27 10:03:12 -05:00
dcn10 drm/amd/display: fix issue where 252-255 values are clipped 2019-10-07 18:56:41 +02:00
dml drm/amd/display: readd -msse2 to prevent Clang from emitting libcalls to undefined SW FP routines 2019-10-01 08:26:00 +02:00
gpio Revert "drm/amdgpu/display: Replace CONFIG_DRM_AMD_DC_DCN1_0 with CONFIG_X86" 2018-08-21 14:32:28 -05:00
i2caux Revert "drm/amdgpu/display: Replace CONFIG_DRM_AMD_DC_DCN1_0 with CONFIG_X86" 2018-08-21 14:32:28 -05:00
inc drm/amd/display: Increase size of audios array 2019-08-16 10:12:45 +02:00
irq Revert "drm/amdgpu/display: Replace CONFIG_DRM_AMD_DC_DCN1_0 with CONFIG_X86" 2018-08-21 14:32:28 -05:00
virtual drm/amd/display: Pass signal directly to enable_tmds_output 2018-03-07 16:27:20 -05:00
dc.h drm/amd/display: If one stream full updates, full update all planes 2019-05-16 19:41:22 +02:00
dc_bios_types.h drm/amd/display: get board layout for edid emulation 2018-07-05 16:38:45 -05:00
dc_ddc_types.h drm/amd/display: Move i2c and aux structs into dc_ddc_types.h 2018-06-15 12:23:38 -05:00
dc_dp_types.h drm/amd/display: Write TEST_EDID_CHECKSUM_WRITE for EDID tests 2018-06-15 12:22:09 -05:00
dc_helper.c drm/amd/display: generic indirect register access 2018-07-13 14:47:33 -05:00
dc_hw_types.h drm/amd/display: Implement custom degamma lut on dcn 2018-08-06 14:35:25 -05:00
dc_link.h drm/amd/display: Fix Edid emulation for linux 2018-09-27 10:05:21 -05:00
dc_stream.h drm/amd/display: Refactor SDR cursor boosting in HDR mode 2018-07-16 16:11:49 -05:00
dc_types.h drm/amd/display: Patch for extend time to panel poweron. 2018-07-13 14:49:29 -05:00
dm_helpers.h drm/amd/display: Add hook for MST root branch info 2018-07-16 16:11:49 -05:00
dm_pp_smu.h drm/amd/display: Introduce pp-smu raven functions 2018-07-05 16:38:30 -05:00
dm_services.h amdgpu: display: use modern ktime accessors 2018-06-19 13:17:38 -05:00
dm_services_types.h drm/amd/display: Fix a typo in wm_min_memg_clk_in_khz 2018-07-05 16:38:51 -05:00
irq_types.h drm/amd/display: get rid of 32.32 unsigned fixed point 2018-05-18 16:08:21 -05:00
Makefile Revert "drm/amdgpu/display: Replace CONFIG_DRM_AMD_DC_DCN1_0 with CONFIG_X86" 2018-08-21 14:32:28 -05:00
os_types.h Revert "drm/amdgpu/display: Replace CONFIG_DRM_AMD_DC_DCN1_0 with CONFIG_X86" 2018-08-21 14:32:28 -05:00