drm/nouveau/nv50/disp: Fix modeset on G94
authorRoy Spliet <rspliet@eclipso.eu>
Thu, 30 Oct 2014 21:57:45 +0000 (22:57 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 13 Nov 2014 05:54:55 +0000 (15:54 +1000)
commiteae7382bc5547391e72f8cde83f5e2be9c359d5b
treeb2b1a60b70afc602aebdfe0fc0194bb9d28f7bdf
parentb2c19870063f81209fbdb471a56ab6c4a9d9e172
drm/nouveau/nv50/disp: Fix modeset on G94

Commit 1dce6264045cd23e9c07574ed0bb31c7dce9354f introduced a regression
spotted on several G94 (FDObz #85160). This device seems to expect the
vblank period to be set after setting scale instead of before.

V2: shove this in a separate function

This is a candidate bug-fix for 3.18

Signed-off-by: Roy Spliet <rspliet@eclipso.eu>
Tested-by: Zlatko Calusic <zcalusic@bitsync.net>
Tested-by: Michael Riesch <michael@riesch.at>
Tested-by: "poma" <pomidorabelisima@gmail.com>
Tested-by: Adam Williamson <adamw@happyassassin.net>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nv50_display.c