Skip to content

Commit

Permalink
drm/nouveau: Disable PROM access on init.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Francisco Jerez authored and Ben Skeggs committed Jul 13, 2010
1 parent 7714455 commit 112d20a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/gpu/drm/nouveau/nv04_mc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 112d20a

Please sign in to comment.