aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_mem.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_mem.c')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_mem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_mem.c b/drivers/gpu/drm/nouveau/nouveau_mem.c
index 2853ba0137af..4b42bf218f61 100644
--- a/drivers/gpu/drm/nouveau/nouveau_mem.c
+++ b/drivers/gpu/drm/nouveau/nouveau_mem.c
@@ -371,7 +371,7 @@ nouveau_mem_detect(struct drm_device *dev)
371 } else { 371 } else {
372 dev_priv->vram_size = nv_rd32(dev, NV04_FIFO_DATA); 372 dev_priv->vram_size = nv_rd32(dev, NV04_FIFO_DATA);
373 dev_priv->vram_size |= (dev_priv->vram_size & 0xff) << 32; 373 dev_priv->vram_size |= (dev_priv->vram_size & 0xff) << 32;
374 dev_priv->vram_size &= 0xffffffff00; 374 dev_priv->vram_size &= 0xffffffff00ll;
375 if (dev_priv->chipset == 0xaa || dev_priv->chipset == 0xac) { 375 if (dev_priv->chipset == 0xaa || dev_priv->chipset == 0xac) {
376 dev_priv->vram_sys_base = nv_rd32(dev, 0x100e10); 376 dev_priv->vram_sys_base = nv_rd32(dev, 0x100e10);
377 dev_priv->vram_sys_base <<= 12; 377 dev_priv->vram_sys_base <<= 12;