No subject


Sun Sep 26 17:16:33 PDT 2010


2001<BR>
From: Emil Velikov &lt;eeydev at nottingham.ac.uk&gt;<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 &lt;eeydev at nottingham.ac.uk&gt;<BR>
---<BR>
&nbsp;drivers/gpu/drm/nouveau/nouveau_bios.c |&nbsp;&nbsp;&nbsp; 6 =
++++++<BR>
&nbsp;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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>
<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ((dev_priv-&gt;card_type =
&gt;=3D NV_50) &amp;&amp; (pllindex =3D=3D 0)) {<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NV_ERROR(dev, &quot;Register =
0x%08x not found in PLL &quot;<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;limits =
table&quot;, pll_lim-&gt;reg);<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return -ENOENT;<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>
+<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pll_rec =3D =
&amp;bios-&gt;data[plloffs + recordlen * pllindex];<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BIOSLOG(bios, &quot;Loading =
PLL limits for reg 0x%08x\n&quot;,<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 t=
o me, and immediately delete it.   Please do not use,=20=0D=0Acopy or d=
isclose the information contained in this message or in any attachment.=
 =20=0D=0AAny views or opinions expressed by the author of this email d=
o not necessarily=20=0D=0Areflect the views of the University of Nottin=
gham.=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 viru=
ses which could damage your computer system:=0D=0Ayou are advised to pe=
rform 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--


More information about the Nouveau mailing list