projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a7287e
)
drm/nv50: fix detection of second vram rank
author
Ben Skeggs
<bskeggs@redhat.com>
Tue, 24 Jan 2012 01:03:14 +0000
(11:03 +1000)
committer
Ben Skeggs
<bskeggs@redhat.com>
Tue, 13 Mar 2012 07:08:51 +0000
(17:08 +1000)
Goes a long way to correcting NVS295 memory reclocking issues.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Martin Peres <martin.peres@labri.fr>
drivers/gpu/drm/nouveau/nv50_vram.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/nouveau/nv50_vram.c
b/drivers/gpu/drm/nouveau/nv50_vram.c
index a52b9a51e01095fea8020c1ac9cd196d8b2031f5..9ed9ae397d75c774609dc6562896c9df8fb16867 100644
(file)
--- a/
drivers/gpu/drm/nouveau/nv50_vram.c
+++ b/
drivers/gpu/drm/nouveau/nv50_vram.c
@@
-207,7
+207,7
@@
nv50_vram_init(struct drm_device *dev)
break;
}
- dev_priv->vram_rank_B =
(nv_rd32(dev, NV04_PFB_CFG0) & 0x100) >> 8
;
+ dev_priv->vram_rank_B =
!!(nv_rd32(dev, 0x100200) & 0x4)
;
dev_priv->vram_size = nv_rd32(dev, 0x10020c);
dev_priv->vram_size |= (dev_priv->vram_size & 0xff) << 32;
dev_priv->vram_size &= 0xffffffff00ULL;