drm/nouveau/kms/gv100-: fix spurious window immediate interlocks
authorBen Skeggs <bskeggs@redhat.com>
Fri, 3 May 2019 02:23:55 +0000 (12:23 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Jun 2019 09:54:03 +0000 (11:54 +0200)
commit991b51048c498ede516a51d10ec0dc470af34e45
treec1c912b73ff67949422ccd681a00a9876379860e
parent20e1a16702d988a609d8f0122f7f294031169e9c
drm/nouveau/kms/gv100-: fix spurious window immediate interlocks

[ Upstream commit d2434e4d942c32cadcbdbcd32c58f35098f3b604 ]

Cursor position updates were accidentally causing us to attempt to interlock
window with window immediate, and without a matching window immediate update,
NVDisplay could hang forever in some circumstances.

Fixes suspend/resume on (at least) Quadro RTX4000 (TU104).

Reported-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/nouveau/dispnv50/disp.h
drivers/gpu/drm/nouveau/dispnv50/wimmc37b.c
drivers/gpu/drm/nouveau/dispnv50/wndw.c