summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2012-02-01 03:05:42 +0400
committerBen Skeggs <bskeggs@redhat.com>2012-03-13 11:14:56 +0400
commit950c44b6ddc0dfb44e59fdb031e09567a1b391c0 (patch)
treef0a6cfcbd5cb57dfb4b9716bc34557fba316dec2
parentdf26bc9c320602539b1b5b3d85786e4c8de7bf43 (diff)
downloadlinux-950c44b6ddc0dfb44e59fdb031e09567a1b391c0.tar.xz
drm/nvc0/fb: detect presense of second rank
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r--drivers/gpu/drm/nouveau/nvc0_vram.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nvc0_vram.c b/drivers/gpu/drm/nouveau/nvc0_vram.c
index fd687ee888de..82b51b2506ab 100644
--- a/drivers/gpu/drm/nouveau/nvc0_vram.c
+++ b/drivers/gpu/drm/nouveau/nvc0_vram.c
@@ -116,6 +116,7 @@ nvc0_vram_init(struct drm_device *dev)
NV_DEBUG(dev, "parts 0x%08x bcast_mem_amount 0x%08x\n", parts, bsize);
dev_priv->vram_type = nouveau_mem_vbios_type(dev);
+ dev_priv->vram_rank_B = !!(nv_rd32(dev, 0x10f200) & 0x00000004);
/* read amount of vram attached to each memory controller */
part = 0;