diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2011-12-12 21:46:18 -0500 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2012-03-13 03:05:52 -0400 |
commit | f3298532f71f163877b9003009d6e1eefe988258 (patch) | |
tree | 27c64ff386f0ef450086f5865828d3e544f421f5 /drivers/gpu/drm | |
parent | c70c41e89f0481f26749d8264aebc594566c2a6d (diff) |
drm/nvc0: add initial memory type detection
Uses only the VBIOS tables, from what I can tell this is what NVIDIA do
too, I was able to change the detected memory type by modifying this table
on a NVC1 chipset.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/nouveau/nvc0_vram.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nvc0_vram.c b/drivers/gpu/drm/nouveau/nvc0_vram.c index ce984d573a51..fd687ee888de 100644 --- a/drivers/gpu/drm/nouveau/nvc0_vram.c +++ b/drivers/gpu/drm/nouveau/nvc0_vram.c | |||
@@ -115,6 +115,8 @@ nvc0_vram_init(struct drm_device *dev) | |||
115 | NV_DEBUG(dev, "0x100800: 0x%08x\n", nv_rd32(dev, 0x100800)); | 115 | NV_DEBUG(dev, "0x100800: 0x%08x\n", nv_rd32(dev, 0x100800)); |
116 | NV_DEBUG(dev, "parts 0x%08x bcast_mem_amount 0x%08x\n", parts, bsize); | 116 | NV_DEBUG(dev, "parts 0x%08x bcast_mem_amount 0x%08x\n", parts, bsize); |
117 | 117 | ||
118 | dev_priv->vram_type = nouveau_mem_vbios_type(dev); | ||
119 | |||
118 | /* read amount of vram attached to each memory controller */ | 120 | /* read amount of vram attached to each memory controller */ |
119 | part = 0; | 121 | part = 0; |
120 | while (parts) { | 122 | while (parts) { |