projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56ac747
)
drm/nv10-nv20: Fix instability after MPLL changes.
author
Francisco Jerez
<currojerez@riseup.net>
Mon, 25 Oct 2010 00:13:21 +0000
(
02:13
+0200)
committer
Ben Skeggs
<bskeggs@redhat.com>
Thu, 18 Nov 2010 04:38:47 +0000
(14:38 +1000)
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nv04_pm.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/nouveau/nv04_pm.c
b/drivers/gpu/drm/nouveau/nv04_pm.c
index 6a6eb697d38e0b387941b05b38dadc8a5bd371f1..eb1c70dd82ed41540629792dc7264452f511e6f3 100644
(file)
--- a/
drivers/gpu/drm/nouveau/nv04_pm.c
+++ b/
drivers/gpu/drm/nouveau/nv04_pm.c
@@
-76,6
+76,15
@@
nv04_pm_clock_set(struct drm_device *dev, void *pre_state)
reg += 4;
nouveau_hw_setpll(dev, reg, &state->calc);
+
+ if (dev_priv->card_type < NV_30 && reg == NV_PRAMDAC_MPLL_COEFF) {
+ if (dev_priv->card_type == NV_20)
+ nv_mask(dev, 0x1002c4, 0, 1 << 20);
+
+ /* Reset the DLLs */
+ nv_mask(dev, 0x1002c0, 0, 1 << 8);
+ }
+
kfree(state);
}