]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/kms/nv50-: fix panel scaling
authorBen Skeggs <bskeggs@redhat.com>
Tue, 10 Dec 2019 02:15:44 +0000 (12:15 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 10 Dec 2019 11:34:52 +0000 (21:34 +1000)
commitb2a03969539e8eb7cc473702494af4120e0c42ad
treeee37baca65101077919e4afe54497304362de0ac
parent8511471d12668283f5ffdd318a7bcb7d407737fc
drm/nouveau/kms/nv50-: fix panel scaling

Under certain circumstances, encoder atomic_check() can be entered
without adjusted_mode having been reset to the same as mode, which
confuses the scaling logic and can lead to a misprogrammed display.

Fix this by checking against the user-provided mode directly.

Link: https://bugs.freedesktop.org/show_bug.cgi?id=108615
Link: https://gitlab.freedesktop.org/xorg/driver/xf86-video-nouveau/issues/464
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/dispnv50/disp.c