From nobody@FreeBSD.org  Fri May 22 04:44:07 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 1E5961065674
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 22 May 2009 04:44:07 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 0D8428FC14
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 22 May 2009 04:44:07 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n4M4i6oh096228
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 22 May 2009 04:44:06 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n4M4i6jf096227;
	Fri, 22 May 2009 04:44:06 GMT
	(envelope-from nobody)
Message-Id: <200905220444.n4M4i6jf096227@www.freebsd.org>
Date: Fri, 22 May 2009 04:44:06 GMT
From: David Johnson <david@usermode.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: radeon driver freezes Xorg server with drmwtq
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         134800
>Category:       kern
>Synopsis:       [drm] radeon driver freezes Xorg server with drmwtq
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    jh
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 22 04:50:02 UTC 2009
>Closed-Date:    Fri Nov 26 10:30:25 UTC 2010
>Last-Modified:  Fri Nov 26 10:30:25 UTC 2010
>Originator:     David Johnson
>Release:        7.2-RELEASE
>Organization:
>Environment:
FreeBSD radagast.usermode.org 7.2-RELEASE FreeBSD 7.2-RELEASE #4: Sun May 10 16:50:08 PDT 2009     root@radagast.usermode.org:/usr/obj/usr/src/sys/RADAGAST  i386
>Description:
This topic has been recently discussed on the -stable list, but without resolution. It now reappears on my system as I upgrade to 7.2-RELEASE. I am desperately hoping for a resolution.

To reiterate the problem: Xorg will occassionally freeze or hang with the radeon driver. This only happens when AIGLX compositing it enabled. I am using KDE 4.2.2, radeon driver, all ports current. About a quarter of the time the kernel locks up, and I cannot ssh into the system. The other times I can ssh into the system. There I notice that Xorg has the state of "drmwtq".

The video card is a Radeon X1550. I have tried both XAA and EXA render modes, with no change.

After some investigation, it appears that commit 189673 is what introduced the hang.

The hang will not occur with hw.dri.0.debug=1, so it is difficult to get debug info. However, after the hang occurs, debug shows the following message repeated continuously:

[drm:pid1195:drm_ioctl]     returning 4
[drm:pid1195:drm_ioctl] pid=1195, cmd=0x80046457, nr=0x57, dev 0xc615fa00, auth=1
>How-To-Repeat:
The system will hang at odd random times, but a sure fire way to reproduce it is to launch several windows at once. The following command should reliably reproduce it:

dolphin & kwrite & kcalc & gwenview &


>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: jh 
State-Changed-When: Mon Oct 11 14:01:17 UTC 2010 
State-Changed-Why:  
Can you still reproduce this on 7.3 or later? A bunch of vblank related 
fixes were MFCd to stable/7 in r195912. 


Responsible-Changed-From-To: freebsd-bugs->jh 
Responsible-Changed-By: jh 
Responsible-Changed-When: Mon Oct 11 14:01:17 UTC 2010 
Responsible-Changed-Why:  
Track. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=134800 
State-Changed-From-To: feedback->closed 
State-Changed-By: jh 
State-Changed-When: Fri Nov 26 10:30:22 UTC 2010 
State-Changed-Why:  
Feedback timeout. Possibly already fixed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=134800 
>Unformatted:
