Bug 6463

Summary: AIGLX+radeon+FreeBSD hang on startup
Product: xorg Reporter: Eric Anholt <eric>
Component: Server/GeneralAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED DUPLICATE QA Contact: Xorg Project Team <xorg-team>
Severity: critical    
Priority: high CC: pawel.worach
Version: git   
Hardware: Other   
OS: FreeBSD   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Xorg.0.log
none
backtrace
none
X config
none
My X Log none

Description Eric Anholt 2006-04-02 16:16:17 UTC
When I don't disable AIGLX on my FreeBSD machines (one r100, one r200), I get a
hang on startup that appears to be due to incorrect locking.  The dmesg says:

error: [drm:pid17529:radeon_cp_buffers] *ERROR* radeon_cp_buffers called without
lock held
error: [drm:pid17529:radeon_cp_reset] *ERROR* radeon_cp_reset called without
lock held
error: [drm:pid17529:radeon_cp_start] *ERROR* radeon_cp_start called without
lock held

over and over, as the server sits hung at a black screen.  Log to follow.
Comment 1 Eric Anholt 2006-04-02 16:16:52 UTC
Created attachment 5161 [details]
Xorg.0.log
Comment 2 Adam Jackson 2006-05-09 10:56:47 UTC
can you get a call trace of where you are when you get the GetBuffer message?
Comment 3 Eric Anholt 2006-05-10 07:12:36 UTC
ajax: I'll try to dig up a backtrace at some point (my DRI is broken for other
reasons on the new laptop)

For others that I point at this bug, the section for xorg.conf to disable AIGLX is:

Section "ServerFlags"
	Option "AIGLX" "FALSE"
EndSection
Comment 4 Eric Anholt 2006-05-18 03:56:17 UTC
Created attachment 5659 [details]
backtrace

Not surprising backtrace: first acceleration hangs grabbing the buffer, since
the lock is not held so the grab-a-buffer never succeeds.

This does appear to be Radeon-specific, as my i915 doesn't show this issue
(Still have a couple of crashes, but no hang at startup).
Comment 5 Angka H. K. 2006-11-01 01:51:24 UTC
Created attachment 7615 [details]
X config

My config
Comment 6 Angka H. K. 2006-11-01 01:52:14 UTC
Created attachment 7616 [details]
My X Log
Comment 7 Angka H. K. 2006-11-01 01:52:59 UTC
Does this bug resolved already ?
My FreeBSD box that effected by this bug can ran normally now. I can start X,
run  X apps, run OpenGL with DRI, quit X, and start X again without proble. My
source was fetched as of Oct 27, 2006.
Comment 8 Eric Anholt 2006-11-22 11:08:57 UTC
Re: comment #7: you've found the wrong bug report.  This is about radeon.
Comment 9 Pawel Worach 2006-12-06 15:20:55 UTC
Tested with Mesa 6.5.2, mesa/drm HEAD and xorg-server 1.1.99.903, same thing.
Next up I'll try xorg-server HEAD. The ThinkPad doens't have a serial port so I
can't get to the kernel debugger.
Comment 10 Daniel Stone 2006-12-16 09:46:22 UTC
doesn't look like it's getting fixed, so punting
Comment 11 Daniel Stone 2006-12-16 09:46:35 UTC
doesn't look like it's getting fixed, so punting
Comment 12 Daniel Stone 2007-02-27 01:31:22 UTC
Sorry about the phenomenal bug spam, guys.  Adding xorg-team@ to the QA contact so bugs don't get lost in future.
Comment 13 Michel Dänzer 2007-09-17 04:20:30 UTC

*** This bug has been marked as a duplicate of bug 11870 ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.