]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/nouveau/dp: Don't probe eDP ports twice harder
authorLyude Paul <lyude@redhat.com>
Thu, 4 Apr 2024 23:35:54 +0000 (19:35 -0400)
committerLyude Paul <lyude@redhat.com>
Mon, 15 Apr 2024 18:46:50 +0000 (14:46 -0400)
commitbf52d7f9b2067f02efe7e32697479097aba4a055
treed8d889cf69dc7faf5b4b5b2586c23fd356505f47
parentee7e980dc7c9f22c142807c5f582a6524138f57a
drm/nouveau/dp: Don't probe eDP ports twice harder

I didn't pay close enough attention the last time I tried to fix this
problem - while we currently do correctly take care to make sure we don't
probe a connected eDP port more then once, we don't do the same thing for
eDP ports we found to be disconnected.

So, fix this and make sure we only ever probe eDP ports once and then leave
them at that connector state forever (since without HPD, it's not going to
change on its own anyway). This should get rid of the last few GSP errors
getting spit out during runtime suspend and resume on some machines, as we
tried to reprobe eDP ports in response to ACPI hotplug probe events.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240404233736.7946-3-lyude@redhat.com
(cherry picked from commit fe6660b661c3397af0867d5d098f5b26581f1290)
drivers/gpu/drm/nouveau/nouveau_dp.c