From: Ben Skeggs Date: Tue, 31 Jan 2012 23:05:42 +0000 (+1000) Subject: drm/nvc0/fb: detect presense of second rank X-Git-Tag: v3.4-rc1~143^2~61^2~21 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=950c44b6ddc0dfb44e59fdb031e09567a1b391c0;p=karo-tx-linux.git drm/nvc0/fb: detect presense of second rank Signed-off-by: Ben Skeggs --- 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;