Skip to content

Commit

Permalink
drm/nouveau: don't use the default pll limits in table v2.1 on nv50+ …
Browse files Browse the repository at this point in the history
…cards

This fixes issues bug 30370 and prevents another possible divide by zero on
the original nv50 cards, by returning -ENOENT

Signed-off-by: Emil Velikov <eeydev@nottingham.ac.uk>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
  • Loading branch information
Emil Velikov authored and Ben Skeggs committed Oct 4, 2010
1 parent 8af29cc commit eadc69c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/gpu/drm/nouveau/nouveau_bios.c
Original file line number Diff line number Diff line change
Expand Up @@ -4890,6 +4890,12 @@ int get_pll_limits(struct drm_device *dev, uint32_t limit_match, struct pll_lims
break;
}

if ((dev_priv->card_type >= NV_50) && (pllindex == 0)) {
NV_ERROR(dev, "Register 0x%08x not found in PLL "
"limits table", pll_lim->reg);
return -ENOENT;
}

pll_rec = &bios->data[plloffs + recordlen * pllindex];

BIOSLOG(bios, "Loading PLL limits for reg 0x%08x\n",
Expand Down

0 comments on commit eadc69c

Please sign in to comment.