Bug 30402 - xorg server fails to start when using xorg state tracker
Summary: xorg server fails to start when using xorg state tracker
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/r300 (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-27 09:15 UTC by Martin Stolpe
Modified: 2011-10-05 06:42 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
xorg server log (5.06 KB, text/x-log)
2010-09-27 09:15 UTC, Martin Stolpe
Details
replaces 'radeong' in src/gallium/targets/xorg-radeon/radeon_xorg.c with 'radeon' (1.59 KB, patch)
2010-09-27 13:01 UTC, Martin Stolpe
Details | Splinter Review
log file for xorg server (5.49 KB, text/plain)
2011-09-29 15:21 UTC, Martin Stolpe
Details
Build script used to create mesa package (6.71 KB, text/plain)
2011-09-29 15:21 UTC, Martin Stolpe
Details
Screenshot of Firefox when 2d acceleration is disabled (466.50 KB, image/png)
2011-09-30 15:57 UTC, Martin Stolpe
Details
Screenshot of Firefox when 2d acceleration is enabled (502.14 KB, image/png)
2011-09-30 15:57 UTC, Martin Stolpe
Details
Configuration for r600 card (2.08 KB, text/plain)
2011-09-30 15:58 UTC, Martin Stolpe
Details
Xorg configuration for r300 card (6.07 KB, text/plain)
2011-09-30 15:59 UTC, Martin Stolpe
Details
Xorg log file for r300 card when 2d acceleration is disabled (57.23 KB, text/plain)
2011-09-30 16:00 UTC, Martin Stolpe
Details
Xorg log file for r300 card when 2d acceleration is enabled (78.53 KB, text/plain)
2011-09-30 16:00 UTC, Martin Stolpe
Details
Xorg log file for r600 card when 2d acceleration is disabled (36.45 KB, text/plain)
2011-09-30 16:01 UTC, Martin Stolpe
Details

Description Martin Stolpe 2010-09-27 09:15:19 UTC
Created attachment 38984 [details]
xorg server log

I've tried to use the xorg state tracker as a replacement for the xf86-video-ati driver. The server fails to start with the following error message:
 "LoadModule: Module radeon does not have a radeonModuleData data object."
Comment 1 Andy Furniss 2010-09-27 10:05:43 UTC
I am getting the same when building mesa with r600 gallium, with the autogen command -

 --enable-debug --disable-egl  --enable-gallium-r600 --enable-gallium-swrast --with-dri-drivers=r600,swrast

My radeon_drv.so gets overwritten so that the next startx fails with the error as reported.
Comment 2 Michel Dänzer 2010-09-27 10:29:04 UTC
Either the binary needs to be renamed to radeong_drv.so, or the references to 'radeong' in src/gallium/targets/xorg-radeon/radeon_xorg.c need to be changed to 'radeon'.
Comment 3 Martin Stolpe 2010-09-27 13:01:02 UTC
Created attachment 38991 [details] [review]
replaces 'radeong' in src/gallium/targets/xorg-radeon/radeon_xorg.c with 'radeon'

Thank you! I changed the references in radeon_xorg.c like you said.
Comment 4 Martin Stolpe 2010-09-27 13:03:18 UTC
Forgot to mention: After replacing 'radeong' with 'radeon' xorg server was starting and I was able to log into KDE. Looks fine so far.
Comment 5 Jerome Glisse 2011-02-09 07:35:54 UTC
So it's fixed ?
Comment 6 Martin Stolpe 2011-02-09 14:22:08 UTC
(In reply to comment #5)
> So it's fixed ?

It's been a while since I was playing with the Xorg state tracker. It did work when I booted into the graphical mode using the xf86-video-ati driver, then quit the xserver and restarting the xserver with the Xorg state tracker. It didn't work after a reboot of the system.

There is a little bit more information in this bug report: https://bugs.freedesktop.org/show_bug.cgi?id=30406
Comment 7 Knut Petersen 2011-09-29 07:09:32 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > So it's fixed ?
> 
> It's been a while since I was playing with the Xorg state tracker. It did work
> when I booted into the graphical mode using the xf86-video-ati driver, then
> quit the xserver and restarting the xserver with the Xorg state tracker. It
> didn't work after a reboot of the system.
> 
> There is a little bit more information in this bug report:
> https://bugs.freedesktop.org/show_bug.cgi?id=30406

If it is still broken: Could you please attach a full log of a failed Xorg start with the state tracker enabled.

cu,
 Knut
Comment 8 Martin Stolpe 2011-09-29 15:20:44 UTC
Hello Knut,

thanks for looking into the problem. I did try to make a package with the xorg driver but xorg doesn't start. I don't know what the exact problem is though. Could you have a look at my build file which I use to build my packages if I have some configuration problem?


Greetings
Martin
Comment 9 Martin Stolpe 2011-09-29 15:21:25 UTC
Created attachment 51779 [details]
log file for xorg server
Comment 10 Martin Stolpe 2011-09-29 15:21:53 UTC
Created attachment 51780 [details]
Build script used to create mesa package
Comment 11 Martin Stolpe 2011-09-30 15:57:21 UTC
Created attachment 51815 [details]
Screenshot of Firefox when 2d acceleration is disabled
Comment 12 Martin Stolpe 2011-09-30 15:57:48 UTC
Created attachment 51816 [details]
Screenshot of Firefox when 2d acceleration is enabled
Comment 13 Martin Stolpe 2011-09-30 15:58:30 UTC
Created attachment 51817 [details]
Configuration for r600 card
Comment 14 Martin Stolpe 2011-09-30 15:59:24 UTC
Created attachment 51818 [details]
Xorg configuration for r300 card
Comment 15 Martin Stolpe 2011-09-30 16:00:06 UTC
Created attachment 51819 [details]
Xorg log file for r300 card when 2d acceleration is disabled
Comment 16 Martin Stolpe 2011-09-30 16:00:31 UTC
Created attachment 51820 [details]
Xorg log file for r300 card when 2d acceleration is enabled
Comment 17 Martin Stolpe 2011-09-30 16:01:36 UTC
Created attachment 51821 [details]
Xorg log file for r600 card when 2d acceleration is disabled
Comment 18 Martin Stolpe 2011-09-30 16:07:30 UTC
Hello,

I've found the problem why it didn't work. I didn't know that the entry funtion (or whatever it is called) has to have the same name as the driver. After creating a xorg.conf file I was able to successfully start the Xorg server. It's working great on my two systems (no problems after rebooting the system). One system has a r500 type card installed and the other system has a r600 type card installed.

When I enable 2d acceleration in xorg.conf I get screen corruptions though (see attached screenshots of Firefox). There is an error/info message in the Xorg log file:
"[  2724.965] (II) r300(0): xorg_composite_accelerated fallback Component alpha not supported with source alpha and source value blending. (op=3)"
This message is the same for both cards.

Best regards
Martin
Comment 19 Michel Dänzer 2011-10-05 06:42:11 UTC
The bug reported here is fixed. Current Mesa Git produces lib/gallium/r300_drv.so which can be loaded with Driver "r300".

(In reply to comment #18)
> When I enable 2d acceleration in xorg.conf I get screen corruptions though (see
> attached screenshots of Firefox).

That's not related to the original problem and needs to be tracked separately.

> There is an error/info message in the Xorg log file:
> "[  2724.965] (II) r300(0): xorg_composite_accelerated fallback Component alpha
> not supported with source alpha and source value blending. (op=3)"

That's not related. If you don't want to get these debugging messages, use Option "DebugFallback" "off".


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.