drm/gf100-/bar: don't fill in bar->alloc until after all vm setup done
authorBen Skeggs <bskeggs@redhat.com>
Wed, 3 Dec 2014 08:19:58 +0000 (18:19 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 22 Jan 2015 02:14:44 +0000 (12:14 +1000)
commit8d90d1ef88ddad5353888e9ecf1d30c75a5effff
tree16670ac9c6b79f1619583e2922bfcc3bd35183a4
parent6f5cee5b57b09b260fd61ef116859f0240cff067
drm/gf100-/bar: don't fill in bar->alloc until after all vm setup done

gpuobj has a condition of (bar && bar->alloc) around usage to avoid
some nasty ordering issues (which, i've now been reminded to add a
todo about fixing...) between bar and vm.

The bar->alloc part of the condition isn't currently necessary (it
used to be, another change made bar always NULL where it matters),
so we got lucky.  That won't be the case for much longer.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/subdev/bar/nvc0.c