]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/kms/gv100-: Re-set LUT after clearing for modesets
authorLyude Paul <lyude@redhat.com>
Wed, 12 Feb 2020 23:11:49 +0000 (18:11 -0500)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 17 Feb 2020 07:19:00 +0000 (17:19 +1000)
commit7efbe1ad5e5d2cf66e5b6ed12325894e32b284b5
tree249d193807c79ed622fb5b9487b83b7720b374b9
parent1c89806bbd9d3e16a6d7e9eb4ae5be4ae1246da1
drm/nouveau/kms/gv100-: Re-set LUT after clearing for modesets

While certain modeset operations on gv100+ need us to temporarily
disable the LUT, we make the mistake of sometimes neglecting to
reprogram the LUT after such modesets. In particular, moving a head from
one encoder to another seems to trigger this quite often. GV100+ is very
picky about having a LUT in most scenarios, so this causes the display
engine to hang with the following error code:

disp: chid 1 stat 00005080 reason 5 [INVALID_STATE] mthd 0200 data
00000001 code 0000002d)

So, fix this by always re-programming the LUT if we're clearing it in a
state where the wndw is still visible, and has a XLUT handle programmed.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Fixes: 092049ab8889 ("drm/nouveau/kms/gv100: initial support")
Cc: <stable@vger.kernel.org> # v4.18+
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/dispnv50/wndw.c