Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 293721
b: refs/heads/master
c: ddfd2da
h: refs/heads/master
i:
  293719: aa527f4
v: v3
  • Loading branch information
Ben Skeggs committed Mar 13, 2012
1 parent 45147e9 commit d43fbcc
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7ad2d31cb692597f7918fce2f52a4c1949fbcf8d
refs/heads/master: ddfd2da48421e6b217e8b4fa7ec967e55555ce65
5 changes: 5 additions & 0 deletions trunk/drivers/gpu/drm/nouveau/nv04_fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ nv04_fb_vram_init(struct drm_device *dev)
}
}

if ((boot0 & 0x00000038) <= 0x10)
dev_priv->vram_type = NV_MEM_TYPE_SGRAM;
else
dev_priv->vram_type = NV_MEM_TYPE_SDRAM;

return 0;
}

Expand Down
8 changes: 8 additions & 0 deletions trunk/drivers/gpu/drm/nouveau/nv10_fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ nv10_fb_vram_init(struct drm_device *dev)
u32 fifo_data = nv_rd32(dev, NV04_PFB_FIFO_DATA);

dev_priv->vram_size = fifo_data & NV10_PFB_FIFO_DATA_RAM_AMOUNT_MB_MASK;
if (dev_priv->card_type < NV_20) {
u32 cfg0 = nv_rd32(dev, 0x100200);
if (cfg0 & 0x00000001)
dev_priv->vram_type = NV_MEM_TYPE_DDR1;
else
dev_priv->vram_type = NV_MEM_TYPE_SDRAM;
}

return 0;
}

Expand Down

0 comments on commit d43fbcc

Please sign in to comment.