drm/nouveau/devinit: lock/unlock crtc regs for all devices, not just pre-nv50
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 19 Jan 2014 09:18:15 +0000 (04:18 -0500)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 23 Jan 2014 03:39:15 +0000 (13:39 +1000)
commitf87cd8b695d372087685976460fac1ec6ba2fca9
tree8c46a2f23bc25618beb134bf3d7a11f0cf228e28
parentd5c1e84b3a130f0743b218b33ff7d9cb493ab5b4
drm/nouveau/devinit: lock/unlock crtc regs for all devices, not just pre-nv50

Also make nv_lockvgac work for nv50+ devices. This should fix
IO_CONDITION and related VBIOS opcodes that read/write the crtc regs.

See https://bugs.freedesktop.org/show_bug.cgi?id=60680

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/engine/disp/vga.c
drivers/gpu/drm/nouveau/core/subdev/devinit/base.c
drivers/gpu/drm/nouveau/core/subdev/devinit/nv04.c
drivers/gpu/drm/nouveau/core/subdev/devinit/priv.h