mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-02 12:34:54 +00:00
drm/nv10-nv20: Fix instability after MPLL changes.
Signed-off-by: Francisco Jerez <currojerez@riseup.net> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
56ac747535
commit
63d6fd3288
1 changed files with 9 additions and 0 deletions
|
@ -76,6 +76,15 @@ nv04_pm_clock_set(struct drm_device *dev, void *pre_state)
|
||||||
reg += 4;
|
reg += 4;
|
||||||
|
|
||||||
nouveau_hw_setpll(dev, reg, &state->calc);
|
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);
|
kfree(state);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue