drm/nouveau: detect vram amount once, and save the value
authorBen Skeggs <bskeggs@redhat.com>
Wed, 17 Mar 2010 23:45:20 +0000 (09:45 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 9 Apr 2010 00:12:02 +0000 (10:12 +1000)
commita76fb4e8ffe42144529e21fe1e609b762e8eb5cc
tree3215f63360ffb93d685582edeca2e48ee7646170
parent952eb63543552deb1bf1113739d59d29172d7755
drm/nouveau: detect vram amount once, and save the value

As opposed to repeatedly reading the amount back from the GPU every
time we need to know the VRAM size.

We should now fail to load gracefully on detecting no VRAM, rather than
something potentially messy happening.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_bo.c
drivers/gpu/drm/nouveau/nouveau_debugfs.c
drivers/gpu/drm/nouveau/nouveau_drv.h
drivers/gpu/drm/nouveau/nouveau_mem.c
drivers/gpu/drm/nouveau/nouveau_state.c
drivers/gpu/drm/nouveau/nv40_fifo.c
drivers/gpu/drm/nouveau/nv50_display.c
drivers/gpu/drm/nouveau/nv50_instmem.c