drm/nvc0: fix suspend/resume of PGRAPH/PCOPYn
authorBen Skeggs <bskeggs@redhat.com>
Wed, 25 May 2011 07:22:43 +0000 (17:22 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 23 Jun 2011 05:57:33 +0000 (15:57 +1000)
commitf8522fc80f2e0392fc44b069f61721bd25907270
tree0a28182341f949766fd9efc5567fd88e50a7384e
parentaba99a8400e0b1ca9e6306e3a71013cc7a25bc29
drm/nvc0: fix suspend/resume of PGRAPH/PCOPYn

We need the physical VRAM address in vinst, even for objects mapped into
a vm, as the gpuobj suspend/resume code uses PMEM to access the object.

Previously, vinst was overloaded to mean "VRAM address" for !VM objects,
and "VM address" for VM objects, causing the wrong data to be accessed
during suspend/resume.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_drv.h
drivers/gpu/drm/nouveau/nv50_instmem.c
drivers/gpu/drm/nouveau/nvc0_copy.c
drivers/gpu/drm/nouveau/nvc0_graph.c