Skip to content

Commit

Permalink
drm/nvc0: add initial memory type detection
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ben Skeggs committed Mar 13, 2012
1 parent c70c41e commit f329853
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gpu/drm/nouveau/nvc0_vram.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ nvc0_vram_init(struct drm_device *dev)
NV_DEBUG(dev, "0x100800: 0x%08x\n", nv_rd32(dev, 0x100800));
NV_DEBUG(dev, "parts 0x%08x bcast_mem_amount 0x%08x\n", parts, bsize);

dev_priv->vram_type = nouveau_mem_vbios_type(dev);

/* read amount of vram attached to each memory controller */
part = 0;
while (parts) {
Expand Down

0 comments on commit f329853

Please sign in to comment.