]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
drm/amd/display: Always allocate initial connector state state
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Tue, 4 Jun 2019 19:21:14 +0000 (15:21 -0400)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commitcf083def2479a6b201b2b35ac20d6e37a7492a30
treec82a17efa12b76fcc7bf02add6ef252c44e2ef8d
parentea3cbf62daf57cc71a4778f0a99a7241eaf4f9d1
drm/amd/display: Always allocate initial connector state state

BugLink: https://bugs.launchpad.net/bugs/1839213
[ Upstream commit f04bee34d6e35df26cbb2d65e801adfd0d8fe20d ]

[Why]
Unlike our regular connectors, MST connectors don't start off with
an initial connector state. This causes a NULL pointer dereference to
occur when attaching the bpc property since it tries to modify the
connector state.

We need an initial connector state on the connector to avoid the crash.

[How]
Use our reset helper to allocate an initial state and reset the values
to their defaults. We were already doing this before, just not for
MST connectors.

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c