drm/nouveau/kms/gv100-: move window ownership setup into modesetting path
authorBen Skeggs <bskeggs@redhat.com>
Mon, 3 Feb 2020 08:36:30 +0000 (03:36 -0500)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 3 Feb 2020 11:36:54 +0000 (21:36 +1000)
commit5bb88d07948b6779cb783ec0f08b4c1474d592dd
tree2b49e20de0fe87a0f48fe86e78276581999fb584
parent58ae5284f663f0856a13bc6caad93a0fe49d7cb4
drm/nouveau/kms/gv100-: move window ownership setup into modesetting path

For various complicated reasons, we need to avoid sending a core update
method during display init.  Something, which we've been required to do
on GV100 and up because we've been assigning windows to heads there and
the HW is rather picky about when that's allowed.

This moves window assignment into the modesetting path at a point where
it's much safer to send our first update methods to NVDisplay.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/dispnv50/core.h
drivers/gpu/drm/nouveau/dispnv50/corec37d.c
drivers/gpu/drm/nouveau/dispnv50/corec57d.c
drivers/gpu/drm/nouveau/dispnv50/disp.c