Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 293747
b: refs/heads/master
c: a9bc247
h: refs/heads/master
i:
  293745: a7ad121
  293743: bb034dc
v: v3
  • Loading branch information
Ben Skeggs committed Mar 13, 2012
1 parent 8506607 commit 817664b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0ce71415587b1fd56f67294ac46f860b8b679b95
refs/heads/master: a9bc247cbbc6310d2aefe4db0a6e92defde4426b
10 changes: 10 additions & 0 deletions trunk/drivers/gpu/drm/nouveau/nouveau_mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,8 @@ nouveau_mem_gddr3_mr(struct drm_device *dev, u32 freq,
struct nouveau_pm_memtiming *boot,
struct nouveau_pm_memtiming *t)
{
u8 rver, rlen, *ramcfg = nouveau_perf_ramcfg(dev, freq, &rver, &rlen);

if (len < 15) {
t->drive_strength = boot->drive_strength;
t->odt = boot->odt;
Expand Down Expand Up @@ -763,9 +765,17 @@ nouveau_mem_gddr3_mr(struct drm_device *dev, u32 freq,
/* CAS */
((nv_mem_cl_lut_gddr3[e->tCL] & 0x7) << 4) |
((nv_mem_cl_lut_gddr3[e->tCL] & 0x8) >> 2);

t->mr[1] = (boot->mr[1] & 0x100f40) | t->drive_strength |
(t->odt << 2) |
(nv_mem_wr_lut_gddr3[e->tWR] & 0xf) << 4;
if (ramcfg && rver == 0x00) {
/* DLL enable/disable */
t->mr[1] &= ~0x00000040;
if (ramcfg[3] & 0x08)
t->mr[1] |= 0x00000040;
}

t->mr[2] = boot->mr[2];

NV_DEBUG(dev, "(%u) MR: %08x %08x %08x", t->id,
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/gpu/drm/nouveau/nouveau_perf.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ nouveau_perf_rammap(struct drm_device *dev, u32 freq,
return NULL;
}

static u8 *
u8 *
nouveau_perf_ramcfg(struct drm_device *dev, u32 freq, u8 *ver, u8 *len)
{
struct drm_nouveau_private *dev_priv = dev->dev_private;
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/gpu/drm/nouveau/nouveau_pm.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ int nouveau_voltage_gpio_set(struct drm_device *, int voltage);
void nouveau_perf_init(struct drm_device *);
void nouveau_perf_fini(struct drm_device *);
u8 *nouveau_perf_timing(struct drm_device *, u32 freq, u8 *ver, u8 *len);
u8 *nouveau_perf_ramcfg(struct drm_device *, u32 freq, u8 *ver, u8 *len);

/* nouveau_mem.c */
void nouveau_mem_timing_init(struct drm_device *);
Expand Down

0 comments on commit 817664b

Please sign in to comment.