]> git.dujemihanovic.xyz Git - linux.git/commit
drm/nouveau/dp: Honor GSP link training retry timeouts
authorLyude Paul <lyude@redhat.com>
Fri, 22 Dec 2023 04:32:00 +0000 (14:32 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 5 Jan 2024 02:27:53 +0000 (12:27 +1000)
commiteb284f4b37817d2038fdfe1a9d51769730ab7b5f
treef01701d18ceb48b3e6a1490579123754130667ff
parenteacabb5462717a52fccbbbba458365a4f5e61f35
drm/nouveau/dp: Honor GSP link training retry timeouts

Turns out that one of the ways that Nvidia's driver handles the pre-LT
timeout for eDP panels is by providing a retry timeout in their link
training callbacks that we're expected to wait for. Up until now we didn't
pay any attention to this parameter.

So, start honoring the timeout if link training fails - and retry up to 3
times. The "3 times" bit comes from OpenRM's link training code.

[airlied: this fixes the panel on one of my laptops]

Signed-off-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231222043308.3090089-12-airlied@gmail.com
drivers/gpu/drm/nouveau/nvkm/engine/disp/r535.c