drm/nvc0/fb: detect presense of second rank
authorBen Skeggs <bskeggs@redhat.com>
Tue, 31 Jan 2012 23:05:42 +0000 (09:05 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 13 Mar 2012 07:14:56 +0000 (17:14 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvc0_vram.c

index fd687ee888dec6743da7e8aee51b0a8f9b21ea57..82b51b2506abb91a31be39e9d878923be3cd5d81 100644 (file)
@@ -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;