commit 55e2a0f8b9cc87ec89579ff25da0942c4474163f Author: Maxim Levitsky Date: Mon Sep 19 01:07:22 2011 +0300 HACK: This makes Diego Viola's GeForce 9500 GT not hate life after resume See https://bugs.freedesktop.org/show_bug.cgi?id=40630 diff --git a/drivers/gpu/drm/nouveau/nv50_mc.c b/drivers/gpu/drm/nouveau/nv50_mc.c index e0a9c3f..831e49f 100644 --- a/drivers/gpu/drm/nouveau/nv50_mc.c +++ b/drivers/gpu/drm/nouveau/nv50_mc.c @@ -31,6 +31,12 @@ int nv50_mc_init(struct drm_device *dev) { + + /* HACK: makes Diego Viola's GeForce 9500 GT not hate life after + resume + */ + nv_mask(dev, 0x4008, 0x400000, 0x400000); + nv_wr32(dev, NV03_PMC_ENABLE, 0xFFFFFFFF); return 0; }