2001<BR> From: Emil Velikov <eeydev at nottingham.ac.uk><BR> Date: Sun, 26 Sep 2010 20:26:02 +0100<BR> Subject: [PATCH] Do not use the default pll found in pll table v2.1 on nv50+ cards<BR> <BR> This fixes issues bug 30370 and prevents another possible divide by zero on the original nv50 cards, by returning -ENOENT<BR> <BR> Signed-off-by: Emil Velikov <eeydev at nottingham.ac.uk><BR> ---<BR> drivers/gpu/drm/nouveau/nouveau_bios.c | 6 ++++++<BR> 1 files changed, 6 insertions(+), 0 deletions(-)<BR> <BR> diff --git a/drivers/gpu/drm/nouveau/nouveau_bios.c b/drivers/gpu/drm/nouveau/nouveau_bios.c<BR> index 0b844ea..9bd7099 100644<BR> --- a/drivers/gpu/drm/nouveau/nouveau_bios.c<BR> +++ b/drivers/gpu/drm/nouveau/nouveau_bios.c<BR> @@ -4890,6 +4890,12 @@ int get_pll_limits(struct drm_device *dev, uint32_t limit_match, struct pll_lims<BR> break;<BR> }<BR> <BR> + if ((dev_priv->card_type >=3D NV_50) && (pllindex =3D=3D 0)) {<BR> + NV_ERROR(dev, "Register 0x%08x not found in PLL "<BR> + "limits table", pll_lim->reg);<BR> + return -ENOENT;<BR> + }<BR> +<BR> pll_rec =3D &bios->data[plloffs + recordlen * pllindex];<BR> <BR> BIOSLOG(bios, "Loading PLL limits for reg 0x%08x\n",<BR> --<BR> 1.7.2.3</FONT> </P> <br/>=0D=0A<p>=0D=0AThis message and any attachment are intended solely for the addressee and may=20=0D=0Acontain confidential information. If you have received this message in error,=20=0D=0Aplease send it back to me, and immediately delete it. Please do not use,=20=0D=0Acopy or disclose the information contained in this message or in any attachment. =20=0D=0AAny views or opinions expressed by the author of this email do not necessarily=20=0D=0Areflect the views of the University of Nottingham.=0D=0A</p>=0D=0A<p>=0D=0AThis message has been checked for viruses but the contents of an attachment=0D=0Amay still contain software viruses which could damage your computer system:=0D=0Ayou are advised to perform your own checks. Email communications with the=0D=0AUniversity of Nottingham may be monitored as permitted by UK legislation.=0D=0A</p></BODY> </HTML> ------_=_NextPart_001_01CB5DDD.FA47BBF0--