And of course that time I missed the Reply All button....<div><br></div><div>Thanks,</div><div>Kevin<span></span><br><br>---------- Forwarded message ----------<br>From: <b>Kevin Murphy</b> <br>Date: Thursday, May 10, 2012<br>
Subject: [PATCH] drm: fixed bug regarding minimal buffer size<br>To: Dave Airlie &lt;<a href="mailto:airlied@gmail.com">airlied@gmail.com</a>&gt;<br><br><br>Ah, I thought I pasted it in....  My mistake.  Here it is, for real this time :)<br>

<br>
Thanks,<br>
Kevin<br>
<br>
On Thu, May 10, 2012 at 3:22 AM, Dave Airlie &lt;<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;airlied@gmail.com&#39;)">airlied@gmail.com</a>&gt; wrote:<br>
&gt; On Thu, May 10, 2012 at 6:15 AM, Ray Strode &lt;<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;halfline@gmail.com&#39;)">halfline@gmail.com</a>&gt; wrote:<br>
&gt;&gt; Hey,<br>
&gt;&gt;<br>
&gt;&gt; On Wed, May 9, 2012 at 3:43 PM, Kevin Murphy &lt;<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;kemurphy.cmu@gmail.com&#39;)">kemurphy.cmu@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt; If we ask for a buffer of size 0 when testing for 32bpp framebuffer<br>
&gt;&gt;&gt; support, we trigger a condition in the kernel that will cause the<br>
&gt;&gt;&gt; test to fail, ultimately causing a fallback to the framebuffer<br>
&gt;&gt;&gt; driver.<br>
&gt;&gt;&gt; See <a href="http://lxr.free-electrons.com/source/drivers/gpu/drm/ttm/ttm_bo.c#L1193" target="_blank">http://lxr.free-electrons.com/source/drivers/gpu/drm/ttm/ttm_bo.c#L1193</a><br>
&gt;&gt;&gt; for the block of code that gets triggered.<br>
&gt;&gt;<br>
&gt;&gt; Oh, bummer.  So ttm drivers report a min_width that&#39;s less than they support?<br>
&gt;&gt;<br>
&gt;&gt;&gt; Compiz ran into a similar<br>
&gt;&gt;&gt; issue at some point and they just forced each minimum dimension to 2<br>
&gt;&gt;&gt; if it detected it was about to ask for a 0, so that&#39;s the approach I<br>
&gt;&gt;&gt; took.<br>
&gt;&gt; Sounds fine. I think you forgot to attach the patch though?<br>
&gt;<br>
&gt; Yeah a size &gt; 0 is probably a good plan, I&#39;ll fix the kernel to not<br>
&gt; report 0 as well.<br>
&gt;<br>
&gt; Dave.<br>
<br></div>