]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit116988d613fc9f7e8f0d462e684a0841af189d65
tree3215f63360ffb93d685582edeca2e48ee7646170
parent7e72e41fec7fdd70e503aeb01112261c5774f5c6
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