summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2010-07-10 18:10:59 +0200
committerBen Skeggs <bskeggs@redhat.com>2010-07-13 10:13:58 +1000
commit112d20ad5ca06a9ec7237602ee33bef6fa881daa (patch)
tree8adf473785edccb804aadd435cdbc974e9ecfe25
parent77144554de9af353795698161af26e36f7cdbbef (diff)
downloadlinux-112d20ad5ca06a9ec7237602ee33bef6fa881daa.tar.gz
linux-112d20ad5ca06a9ec7237602ee33bef6fa881daa.tar.bz2
linux-112d20ad5ca06a9ec7237602ee33bef6fa881daa.zip
drm/nouveau: Disable PROM access on init.
On older cards (<nv17) scanout gets blocked when the ROM is being accessed. PROM access usually comes out enabled from suspend, switch it off. Signed-off-by: Francisco Jerez <currojerez@riseup.net> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r--drivers/gpu/drm/nouveau/nv04_mc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nv04_mc.c b/drivers/gpu/drm/nouveau/nv04_mc.c
index 617ed1e05269..2af43a1cb2ec 100644
--- a/drivers/gpu/drm/nouveau/nv04_mc.c
+++ b/drivers/gpu/drm/nouveau/nv04_mc.c
@@ -11,6 +11,10 @@ nv04_mc_init(struct drm_device *dev)
*/
nv_wr32(dev, NV03_PMC_ENABLE, 0xFFFFFFFF);
+
+ /* Disable PROM access. */
+ nv_wr32(dev, NV_PBUS_PCI_NV_20, NV_PBUS_PCI_NV_20_ROM_SHADOW_ENABLED);
+
return 0;
}