Re: [Regression] [Radeon] Stream command failures and render problemsin Evergreen (Radeon HD 5600) in kernel 3.4

From: Brian Gitonga Marete
Date: Sat Jun 09 2012 - 12:14:29 EST


On Fri, Jun 8, 2012 at 11:43 PM, Jerome Glisse <j.glisse@xxxxxxxxx> wrote:
> On Fri, Jun 8, 2012 at 4:28 PM, Brian Gitonga Marete <marete@xxxxxxxxxxx> wrote:
>> On Fri, Jun 8, 2012 at 10:56 PM, Jerome Glisse <j.glisse@xxxxxxxxx> wrote:
>>> On Fri, Jun 8, 2012 at 6:13 AM, Brian Gitonga Marete <marete@xxxxxxxxxxx> wrote:
>>>> On Fri, Jun 8, 2012 at 12:56 AM, Brian Gitonga Marete
>>>> <marete@xxxxxxxxxxx> wrote:
>>>>> On Fri, Jun 8, 2012 at 12:44 AM, Brian Gitonga Marete
>>>>> <marete@xxxxxxxxxxx> wrote:
>>>>>> On Thu, Jun 7, 2012 at 11:20 PM, Jerome Glisse <j.glisse@xxxxxxxxx> wrote:
>>>>>>> On Thu, Jun 7, 2012 at 3:59 PM, Brian Gitonga Marete <marete@xxxxxxxxxxx> wrote:
>>>>>>>> On Thu, Jun 7, 2012 at 5:25 PM, Jerome Glisse <j.glisse@xxxxxxxxx> wrote:
>>>>>>>>>
>>>>>>>>> Update your libdrm to libdrm from git should fix your issue.
>>>>>>>>
>>>>>>>> Hello Jerome,
>>>>>>>>
>>>>>>>> Thanks for looking into this.
>>>>>>>>
>>>>>>>> I am afraid that even with the very latest libdrm (git 93a5117d), the
>>>>>>>> rendering is still broken.
>>>>>>>>
>>>>>>>> What else should I try? I would revert the patch that git-bisect
>>>>>>>> fingered (your patch, git 285484e2d, Linux mainline) but there are
>>>>>>>> merge problems when I try to do that, which I have not yet looked
>>>>>>>> into. Perhaps you can see if you can help me revert that patch so that
>>>>>>>> we can see if the problem then goes away?
>>>>>>>>
>>>>>>> What happen if you upgrade to xf86-video-ati from git ?
>>>>>>
>>>>>> Hello Jerome,
>>>>>>
>>>>>> Once again, thanks a lot for your help.
>>>>>>
>>>>>> Some progress but also a setback: Upgrading to the latest
>>>>>> xf86-video-ati git gets rid of the stream command failures - No more
>>>>>> error messages in dmesg(8). But then, now, rendering is completely
>>>>>> messed up. Previously, it was mostly the window boundaries that were
>>>>>> blurred/messed but now also entire windows and text so that you can't
>>>>>> read anything from the desktop. (For example, the previous render
>>>>>> problems would still allow me to use gnome-terminal even though its
>>>>>> frames were completely blurred. Now the text withing gnome-terminal is
>>>>>> also blurred/smudged)
>>>>>>
>>>>>
>>>>> I should add that in this case rendering is completely messed up in
>>>>> _both_ 3.3.x and 3.4. But the stream command failures in 3.4 go away
>>>>> upon upgrading to the latext xf86-video-ati git HEAD.
>>>>
>>>> Ok. All is fixed in kernel v3.4 if I additionally upgrade Mesa to the
>>>> latest git. Jerome, many thanks for your help on this!
>>>>
>>>> So to summarize, the 3.4 breakage in Ubuntu 11.04 (and probably other
>>>> distributions released around the same time) is fixed by:
>>>>
>>>> a) Upgrade libdrm to latest GIT as of this writing (93a5117d5)
>>>> b) Upgrade xf86-video-ati to latest GIT as of this writing (5888371)
>>>> c) Upgrade mesa to latest GIT as of this writing (529476b)
>>>>
>>>> Now kernel 3.4 works on my laptop.
>>>>
>>>> Thanks!
>>>>
>>>> BGM.
>>>
>>> Brian can you please test patch below on 6.14.0 ddx and old mesa (ie
>>> revert to ubuntu mesa & ddx) and report if it fix your issue. Thanks
>>>
>>> http://people.freedesktop.org/~glisse/0001-drm-radeon-fix-tiling-and-command-stream-checking-on.patch
>>>
>>  OK. Will test and report back. Thanks!
>>
>> --
>> Brian Gitonga Marete
>> Toshnix Systems - http://toshnix.com
>
> I uploaded a v3 version same url, the v2 won't work for you. v3 should
> work (at least according to my local testing with same gpu as you and
> same use case)

OK. I actually hadn't gotten around to testing yet. Will do so later
today. About libdrm, should I test against git or the Ubuntu version?

--
Brian Gitonga Marete
Toshnix Systems - http://toshnix.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/