Summary: | xorg-server-1.2.0 crashes/doesn't work on sparc (ultra 10) using onboard ATI Rage video | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Dmitry 'MAD' Artamonow <mad_soft> |
Component: | [OLD] Server | Assignee: | Gentoo X packagers <x11> |
Status: | RESOLVED FIXED | ||
Severity: | critical | CC: | benni, sparc |
Priority: | High | Keywords: | Inclusion |
Version: | unspecified | ||
Hardware: | Sparc64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 175465 | ||
Attachments: |
Log of X failure with onboard ati
Log of X failure with addon matrox 06_use_proc_instead_of_sysfs_for_pci_domains patch from Debian working /etc/X11/xorg.conf Another xorg.conf file Cleaned-up patch |
Description
Dmitry 'MAD' Artamonow
2007-02-15 15:32:56 UTC
Tested on my u5 with onboard ati + addon mga, both fail with the following versions: =media-libs/mesa-6.5.2-r1 =x11-base/xorg-x11-1.2.0-r3 =x11-libs/libdrm-2.3.0 The rest is plain stable. Created attachment 116835 [details]
Log of X failure with onboard ati
Created attachment 116837 [details]
Log of X failure with addon matrox
Need your xorg.conf files please. http://dev.gentoo.org/~gustavoz/sparc/xorg.conf.ati http://dev.gentoo.org/~gustavoz/sparc/xorg.conf.mga Same ones work fine on current stable xorg-server, and i specify BusID for the matrox because xorg-server gets confused when i've got both cards in (actually i can have the mga without the ati since it's onboard). I've talked to Debian people and this is apparently an issue there too. http://bugs.gentoo.org/show_bug.cgi?id=180521 See my bug. It's related to sysfs. xorg doesn't handle /sys on sparc (and probably on powerpc, too) correctly. umount /sys and starting X should solve the issue. They (i.e. the xorg-devs) seem to have hardcoded PCI-Domain 0 in their sourcecodes. This breaks on everything not related to x86. Basically your bug #180521 is a dupe of this one. Maybe it works unmounting sysfs, but that's definitely not a solution, sysfs is used by a ton of other stuff so this should be fixed upstream. *** Bug 180521 has been marked as a duplicate of this bug. *** Created attachment 125441 [details, diff] 06_use_proc_instead_of_sysfs_for_pci_domains patch from Debian I've successfully build and ran xorg-server-1.2.0 using the attached patch, which I borrowed from Debian (they seem to fixed this bug already, see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=422077 ). Patch is for xorg-server-1.3.0.0, and for applying it to xorg-server-1.2.0 sources you'll need to use "patch --ignore-whitespace". Here's my steps to compile: echo "<x11-base/xorg-server-1.3.0 ~*" >> /etc/portage/package.keywords ebuild /usr/portage/x11-base/xorg-server/xorg-server-1.2.0-r3.ebuild unpack cd /var/tmp/portage/x11-base/xorg-server-1.2.0-r3/work/xorg-server-1.2.0/ patch -p1 -l < ~mad/tmp/06_use_proc_instead_of_sysfs_for_pci_domains.diff ebuild /usr/portage/x11-base/xorg-server/xorg-server-1.2.0-r3.ebuild compile ebuild /usr/portage/x11-base/xorg-server/xorg-server-1.2.0-r3.ebuild install ebuild /usr/portage/x11-base/xorg-server/xorg-server-1.2.0-r3.ebuild qmerge Need your xorg.conf files please. Created attachment 125729 [details] working /etc/X11/xorg.conf (In reply to comment #11) > Need your xorg.conf files please. Attached, but there's nothing unusual in it IMHO. BTW, I've build xorg-server-1.3.0.0 with aforementioned patch and it also works fine. Sadly, all versions of xorg-server I tried (even stable 1.1.1) don't work for me with kernels >= 2.6.22. That seems to be another issue, though. Created attachment 125882 [details]
Another xorg.conf file
More xorg.conf files? Here take mine...
Donnie, any news on the patch you want tested by us? (that you mentioned on #gentoo-dev) Otherwise might i suggest we work around this with Debian's patch and a sparc kludge?... Created attachment 126176 [details, diff]
Cleaned-up patch
Cleaned-up patch (otherwise it doesn't apply cleanly for some reason).
And yeah, it works fine here on my tests too. Dmitry: the X fix for 2.6.22 is queued on the kernel@ guys for the next instance of gentoo-sources-2.6.22 (likely -r2). Just committed to 1.3.0.0, thanks for your patience! |