linux/drivers/gpu/drm/amd/display
Anthony Koo afed48a00c drm/amd/display: Fix color module crash when hotplug monitors.
Assume we have two monitors, and monitor 0 is unplugged.
This shifts the internal state of index 1 to index 0 by memcpy.
This means there are two copies of the gamma pointer previously
owned by state[1].

When hotplug occurs, this re-assigns the new display with state[1],
which has some garbage left over from before, including the
gamma pointer.

We should correctly clear unused states and re-initialize correctly.

Also, due to async nature of the hotplug and other events like commit,
we also need to safe guard against sink that has been removed.

Signed-off-by: Anthony Koo <anthony.koo@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2017-09-26 17:07:54 -04:00
..
amdgpu_dm drm/amd/display: Pass adev to fill_plane_attr 2017-09-26 17:07:22 -04:00
dc drm/amd/display: set HBR3 and TPS4 capable flags 2017-09-26 17:07:51 -04:00
include drm/amd/display: DAL3: HDR10 Infoframe encoding 2017-09-26 17:07:29 -04:00
modules drm/amd/display: Fix color module crash when hotplug monitors. 2017-09-26 17:07:54 -04:00
Kconfig
Makefile