Gentoo Archives: gentoo-amd64

From: Duncan <1i5t5.duncan@×××.net>
To: gentoo-amd64@l.g.o
Subject: [gentoo-amd64] Re: accelerated X 7.1 & ATI card
Date: Sun, 20 Aug 2006 21:01:55
Message-Id: ecaie6$i4a$3@sea.gmane.org
In Reply to: Re: [gentoo-amd64] Re: accelerated X 7.1 & ATI card by Reinhard Kotucha
1 Reinhard Kotucha <reinhard.kotucha@×××.de> posted
2 17639.58433.905934.461579@××××××××××××××.local, excerpted below, on Sun,
3 20 Aug 2006 06:25:37 +0200:
4
5 > Hi, please apologize that I hijack the thread but it seems that I have
6 > the same problem as Piotr.
7 >
8 > The output of lspci is the same as described by Piotr. So I think
9 > that we have the same cards.
10 >
11 >>>>>> "Duncan" == Duncan <1i5t5.duncan@×××.net> writes:
12 >
13 > > Support for the RV300 series is /very/ new and still somewhat
14 > > experimental. You may get 2D but not 3D support. You are also
15 > > likely to have better luck with the latest xorg 7.2, which may
16 > > still be masked, I'm not sure (I loaded it when it was).
17 >
18 > I don't think that the RV300 cards are too new. I bought it end of
19 > last year and it worked very well with the xorg-6.8 radeon server.
20
21 The cards aren't new, and they've had 2D support for awhile (AFAIK), but
22 the 3D support is what's new and experimental... Checking, 3D for
23 your card isn't yet in what I'm running, either (xf86-video-ati-6.6.1,
24 xorg-server-1.1.1). It must be only in CVS/SVN.
25
26 > It doesn't work after the latest system update (which switched to
27 > xorg-7.0.0.).
28 >
29 > I suppose that I did not install X11 completely. I renamed /etc/X11
30 > to /etc/X11-backup and re-emerged xorg-x11 in the hope I get a new
31 > /etc/X11 directory. But this did not happen. /etc/X11 contains a lot
32 > of files and I assume that many things had been changed there.
33
34 There's a lot of stuff that has been switching to more standardized
35 system locations, instead of the old xf86 specific locations. However,
36 most of that is in /usr. Checking here, xorg-server doesn't have anything
37 in /etc/X11 at all.
38
39 FWIW, here's an equery showing all packages I have merged with files in
40 /etc/X11. In particular, you'll want to check xinit and if you use it,
41 xfs (but your fonts section doesn't have a listing for it so you
42 apparently don't).
43
44 $equery b -f /etc/X11/.*
45 [ Searching for file(s) /etc/X11/.,/etc/X11/.. in *... ]
46 media-gfx/xloadimage-4.1-r4 (/etc/X11/xloadimagerc)
47 x11-base/xorg-x11-7.1 (/etc/X11/xorg.conf)
48 media-sound/xmms-1.2.10-r16 (/etc/X11/wmconfig)
49 media-sound/xmms-1.2.10-r16 (/etc/X11/wmconfig/xmms)
50 x11-apps/xfs-1.0.2 (/etc/X11/fs)
51 x11-apps/xfs-1.0.2 (/etc/X11/fs/config)
52 x11-apps/xinit-1.0.2-r6 (/etc/X11/Sessions/Xsession)
53 x11-apps/xinit-1.0.2-r6 (/etc/X11/chooser.sh)
54 x11-apps/xinit-1.0.2-r6 (/etc/X11/xinit/xinitrc)
55 x11-apps/xinit-1.0.2-r6 (/etc/X11/Sessions)
56 x11-apps/xinit-1.0.2-r6 (/etc/X11/xinit)
57 x11-apps/xinit-1.0.2-r6 (/etc/X11/startDM.sh)
58 sys-apps/groff-1.19.2-r1 (/etc/X11/app-defaults/GXditview)
59 sys-apps/groff-1.19.2-r1 (/etc/X11/app-defaults)
60 x11-libs/motif-config-0.10 (/etc/X11/mwm)
61 x11-libs/motif-config-0.10 (/etc/X11/mwm/system.mwmrc)
62 x11-libs/motif-config-0.10 (/etc/X11/app-defaults)
63 x11-libs/motif-config-0.10 (/etc/X11/app-defaults/Mwm.defaults)
64 kde-base/kdebase-startkde-3.5.4 (/etc/X11/Sessions)
65 kde-base/kdebase-startkde-3.5.4 (/etc/X11/Sessions/kde-3.5)
66
67 > I followed the instructions given in
68 >
69 > http://gentoo.org/proj/en/desktop/x/x11/modular-x-howto.xml
70 >
71 > but I'm not sure that everything I did was correct.
72
73 Good following the instructions, not good of course that you aren't sure
74 you followed them correctly.
75
76 > Here is my xorg.conf with all comments removed.
77
78 [much snippage in file]
79
80 > Section "Monitor"
81 > Identifier "Monitor0"
82 > HorizSync 30.0 - 121.0 # Warning: This may fry old Monitors
83 > VertRefresh 50.0 - 150.0 # Very conservative. May flicker.
84 >
85 > DisplaySize 400 300
86
87 Hmm... nice size monitor size! =8^) I'm running two that size, @
88 1600x1200 stacked for 1600x2400. (I used to run them at 2048x1536 for
89 2048x3072, but decided that was a bit much.)
90
91
92 > Section "Device"
93 > Identifier "ATI Graphics Adapter 0"
94 > Driver "radeon"
95 > Option "NoAccel" "no"
96 > Option "MergedFB" "off"
97 > Option "UseFBDev" "off"
98 > Option "BusType" "PCIE"
99 > Option "MonitorLayout" "CRT"
100 > EndSection
101 >
102 > Section "Screen"
103 > Identifier "Screen 0"
104 > Device "ATI Graphics Adapter 0"
105 > Monitor "Monitor 0"
106
107 Note that the monitor section above may not be used -- here the ID
108 specified has a space. Above, no space. Does xorg ignore the space and
109 treat them the same?
110
111 > Here is the server log:
112
113 > (WW) RADEON: No matching Device section for instance (BusID PCI:1:0:1)
114 > found
115
116 This is the only indication of problems there, but as you probably already
117 know, this is often normal on chips that can have two outputs (whether
118 your card does or not), with the second instance only auxiliary and not
119 needed/used under normal circumstances, even when both outputs are used.
120
121 The only other thing of note here is how short the log file is. Mine has
122 far more stuff about setting up the memory and DMA space and the like, and
123 about detecting the monitor. However, I believe 7.1/7.2 are more verbose
124 in their log, part of that is 3D stuff only and you only have 2D drivers
125 for that chip, and it may be also be less verbose when you don't have a
126 direct monitor entry (as I said, it doesn't appear the monitor entry will
127 be used, due to the space in one place, no-space in the other).
128
129 > __________________________________________________________________
130 >
131 > The output of
132 >
133 > strace -f -eopen startx
134 >
135 > is at:
136 >
137 > http://ms25.ath.cx/strace_x.log
138 > http://ms25.ath.cx/strace_x.log.bz2
139 >
140 > The log file is 800kB while the bz2 version is only 9kB.
141 >
142 > Any ideas what is going wrong?
143
144 I checked the strace output. I'm /not/ an expert in such things and don't
145 claim to be, but the following caught my eye:
146
147 (**) RADEON(0): RADEONScreenInit finished
148 [pid 9421] open("/proc/bus/pci/devices", O_RDONLY) = 6
149 [pid 9421] open("/proc/bus/pci/devices", O_RDONLY) = 6
150 [pid 9421] open("/proc/bus/pci/devices", O_RDONLY) = 6
151 [pid 9421] open("/proc/bus/pci/devices", O_RDONLY) = 6
152 [pid 9421] open("/proc/bus/pci/devices", O_RDONLY) = 6
153 [pid 9421] open("/proc/bus/pci/devices", O_RDONLY) = 6
154 [pid 9421] open("/proc/bus/pci/devices", O_RDONLY) = 6
155 [pid 9421] open("/proc/bus/pci/devices", O_RDONLY) = 6
156 [pid 9421] open("/proc/bus/pci/devices", O_RDONLY) = 6
157 [pid 9421] open("/proc/bus/pci/devices", O_RDONLY) = 6
158 [pid 9421] open("/usr/lib64/xserver/SecurityPolicy", O_RDONLY) = 6
159 [pid 9421] open("/dev/input/mouse0", O_RDWR|O_NONBLOCK) = 6
160 [pid 9421] --- SIGFPE (Floating point exception) @ 0 (0) ---
161
162 *** If unresolved symbols were reported above, they might not
163 *** be the reason for the server aborting.
164
165 It looks like it finishes ScreenInit (it /says/ it does <g>), then crashes
166 just a bit later. To my inexpert eye anyway, it /appears/ this crash is
167 right after, thus likely related to, either the SecurityPolicy read, or
168 the mouse initialization.
169
170 Now, that security file is part of xorg-server (according to equery
171 belongs), which you tried rebuilding, so that /shouldn't/ be the problem.
172 Still, double-check it manually. Open it in an editor and verify that
173 it's all normal text and looks "clean". Sometimes a file system
174 corruption can stick a big block of binary trash in the config file, and
175 unsurprisingly, coming upon a bunch of binary garbage unexpectedly when
176 the app expects a nice text configuration can cause a crash! (Yes, I know
177 I'm stating the obvious. <g>)
178
179 The more likely issue from my viewpoint is the mouse config.
180 /dev/input/mouse0 exists, right? I notice in your xorg.conf, in the
181 ServerFlags section, you don't have an Option "AllowMouseOpenFail" entry.
182 Try adding that and see what happens. I don't expect it to work however
183 because it will still try the mouse and that might be causing the crash.
184 Next, try commenting out the mouse device section entirely. Maybe it will
185 work then?
186
187 Here's what earch (a script I picked up off of the dev list) has to say
188 about the available mouse drivers:
189
190 earch xf86-input-mouse
191 xf86-input-mouse-1.0.4[0]: amd64 hppa x86 ~x86-fbsd
192 xf86-input-mouse-1.1.1[0]: alpha ~amd64 arm ~hppa ia64 mips ppc ppc64 sh sparc ~x86 ~x86-fbsd
193
194 So 1.0.4 is marked stable amd64, 1.1.1 is ~amd64. You appear to be on
195 stable, so should have 1.0.4. Try remerging it, but just in case, try
196 remerging x11-proto/inputproto first, /then/ the mouse driver.
197
198 Next suggestion if that doesn't work...
199
200 Here, in my xorg log, immediately after the RADEONScreenInit finished
201 entry, I have this:
202
203
204 (**) RADEON(0): RADEONScreenInit finished
205 (==) RandR enabled
206 (II) Initializing built-in extension MIT-SHM
207 (II) Initializing built-in extension XInputExtension
208 (II) Initializing built-in extension XTEST
209 (II) Initializing built-in extension XKEYBOARD
210 (II) Initializing built-in extension XC-APPGROUP
211 (II) Initializing built-in extension SECURITY
212 (II) Initializing built-in extension XINERAMA
213 (II) Initializing built-in extension XFIXES
214 (II) Initializing built-in extension XFree86-Bigfont
215 (II) Initializing built-in extension RENDER
216 (II) Initializing built-in extension RANDR
217 (II) Initializing built-in extension COMPOSITE
218 (II) Initializing built-in extension DAMAGE
219 (II) Initializing built-in extension XEVIE
220 drmOpenDevice: node name is /dev/dri/card0
221
222 Thus, it's possible one of your extensions is causing the crash. I'd try
223 remerging all your x11-proto/* packages, then anything owning
224 /usr/lib64/xorg/proto/. For reference, here's what an equery belongs
225 turns up here:
226
227 $equery b /usr/lib64/xorg/modules
228 [ Searching for file(s) /usr/lib64/xorg/modules in *... ]
229 x11-drivers/xf86-input-keyboard-1.1.0 (/usr/lib64/xorg/modules)
230 x11-drivers/xf86-video-ati-6.6.1 (/usr/lib64/xorg/modules)
231 x11-drivers/xf86-input-mouse-1.1.1 (/usr/lib64/xorg/modules)
232 x11-base/xorg-server-1.1.1 (/usr/lib64/xorg/modules)
233
234 You will have remerged most of these above, but if the protos were screwed
235 up, that may not have fixed it, so after remerging them, hopefully
236 remerging these fixes the problem.
237
238 If you are still having issues after that... it's time to consider filing
239 a bug and seeing if the Gentoo xorg team can help. I'm sure they have
240 more experience looking at those files for problems than most of us do.
241 (I have a great respect for them. It must be a big job dealing with all
242 the various xorg issues for all of Gentoo, even more so than most
243 distribs, given Gentoo's every user compiles from sources strategy, with
244 the immense variety in local
245 environments/compilers/kernels/binutils/glibcs/etc people have. It's not
246 a job I'd want, but they actually volunteer for it! As I said, a very
247 great respect!)
248
249 --
250 Duncan - List replies preferred. No HTML msgs.
251 "Every nonfree program has a lord, a master --
252 and if you use the program, he is your master." Richard Stallman
253
254 --
255 gentoo-amd64@g.o mailing list

Replies

Subject Author
Re: [gentoo-amd64] Re: accelerated X 7.1 & ATI card Reinhard Kotucha <reinhard.kotucha@×××.de>