drm/nouveau/kms: handle mDP connectors
authorKarol Herbst <kherbst@redhat.com>
Fri, 27 Nov 2020 18:39:09 +0000 (19:39 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 29 Jan 2021 06:49:15 +0000 (16:49 +1000)
commitd1f5a3fc85566e9ddce9361ef180f070367e6eab
treee0132955351dcc50e3aa30feacedb29d92309d64
parenteaba3b28401f50e22d64351caa8afe8d29509f27
drm/nouveau/kms: handle mDP connectors

In some cases we have the handle those explicitly as the fallback
connector type detection fails and marks those as eDP connectors.

Attempting to use such a connector with mutter leads to a crash of mutter
as it ends up with two eDP displays.

Information is taken from the official DCB documentation.

Cc: stable@vger.kernel.org
Cc: dri-devel@lists.freedesktop.org
Cc: Ben Skeggs <bskeggs@redhat.com>
Reported-by: Mark Pearson <markpearson@lenovo.com>
Tested-by: Mark Pearson <markpearson@lenovo.com>
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/conn.h
drivers/gpu/drm/nouveau/nouveau_connector.c