Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Dec 2006 18:13:21 +0100
From:      "Ryan Avery" <rpavery79@gmail.com>
To:        freebsd-x11@freebsd.org
Subject:   Xorg 6.9 - 7.2-RC2 hangs at startup with Radeon 9700
Message-ID:  <6adba26c0612010913l4b60123ahd03bc90f24c49efd@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hello all. I've been having a heck of a time getting my radeon card to work
on my laptop with DRI. I have a Radeon Mobility 9700 card on an amd64
laptop. I've had the laptop for a year and a half, and have yet to get DRI
working properly. I've searched the freebsd-x11, Xorg lists, and Google
exhaustively. I was running 6.0-RELEASE with patches and using the vesa
driver for everyday use. Although Xorg does not hang on 6.0-RELEASE, DRI is
always disabled because the radeon driver is not new enough (supposed to be
1.17 or higher).

I tried 6-STABLE and 6.1-RELEASE to upgrade the radeon kernel driver, but
ever since around February of this year, using radeon on these platforms
causes X to hang on startup as reported in both this and the xorg lists,
without a clear solution. I've been paying attention to X-modular, hoping
this would fix my problem. Unfortunately, it doesn't. Using 6-STABLE as on
Nov 26 with a GENERIC kernel and X-org modular from Nov 29 results in X
hanging at startup, like before, rendering the computer completely
unresponsive and forcing a hard reboot. The vesa driver works fine, as
expected. Also, disabling DRI on 6-STABLE and 6.1-RELEASE allows Xorg to
work, but without hardware acceleration, and I have encountered some display
corruption which has also been noted in the xorg lists without a clear
resolution. The consensus seems to be "wait for better drivers", but I
thought Xorg 7.2 would have better drivers than 6.8.2 and 6.9. Thus, for the
last year, I have resorted to using the vesa driver.

I can verify that it's not a bad card, because I *occasionally* use windows
and everything is fine. Furthermore, both of my brothers have identical
laptops to mine, and this problem occurs on their laptops as well. I
understand it isn't a AIGLX problem, since that is disabled by default in
the FreeBSD Xorg-7.2RC2 build due to other known issues.

Does anyone have any idea what it going on? All I really want is to use the
radeon driver for my radeon hardware all the time, and have things *just
work* with DRI. I noticed that even in 6-STABLE (now 6.2-PRERELEASE, I
guess), the radeon.ko that DRM loads is version 1.24.0, from 20060225. Is
there anything newer than this? Do I have to run 7-CURRENT instead? Also, I
know it's not a good idea to use current modules on a stable platform, but
has anyone tried compiling DRM and radeon kernel modules from 7-current and
using them on STABLE?

Here is a bunch of information from my system. I couldn't provide a
Xorg.0.log because the file is never written when the server hangs. I also
don't have another machine or any means of setting up a serial console since
I am currently studying in Sweden, and don't have my other computer here.
Please let me know if there is any other information which would be useful
in diagnosing this problem.

Thanks for your help!
Ryan

uname -a:
FreeBSD test.infra.kth.se 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #0: Sun Nov
26 18:40:26 CET 2006     root@test.infra.kth.se:/usr/obj/usr/src/sys/GENERIC
amd64

card:
ATI Radeon Mobility 9600/9700 (M10/M11) NP AGP

/boot/loader.conf:
hw.apic.enable_extint=1                            # fixed some problem
allowing me to use local APIC
hw.pci.allow_unsupported_io_range=1         # attempt to fix cardbus memory
ranges so memory stick card reader can work (it still doesn't)
cpufreq_load="YES"
snd_ich_load="YES"
bcmwl564_sys_load="YES"
crypto_load="YES"

/etc/X11/xorg.conf:
Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Touchpad" "CorePointer"
        InputDevice    "Keyboard" "CoreKeyboard"
EndSection

Section "Files"
        RgbPath      "/usr/local/lib/X11/rgb"
        ModulePath   "/usr/local/lib/modules/"
        ModulePath   "/usr/local/lib/xorg/modules/"
        FontPath     "/usr/local/lib/X11/fonts/misc/"
        FontPath     "/usr/local/lib/X11/fonts/TTF/"
        FontPath     "/usr/local/lib/X11/fonts/Type1/"
        FontPath     "/usr/local/lib/X11/fonts/75dpi/"
        FontPath     "/usr/local/lib/X11/fonts/100dpi/"
EndSection

Section "Module"
        Load  "dbe"
        Load  "dri"
        Load  "extmod"
        Load  "glx"
        Load  "record"
        Load  "xtrap"
        Load  "freetype"
        Load  "type1"
EndSection

Section "InputDevice"
        Identifier  "Keyboard"
        Driver      "kbd"
        Option      "XkbModel" "pc101"
        Option      "XkbLayout" "us,se"
EndSection

Section "InputDevice"
        Identifier  "Touchpad"
        Driver      "mouse"
        Option      "Protocol" "Auto"
        Option      "Device" "/dev/sysmouse"
        Option      "Emulate3Buttons"
EndSection

Section "Monitor"
        #HorizSync    31.5 - 64.3
        #VertRefresh  50.0 - 70.0
        Identifier   "LaptopLCD"
        VendorName   "ASUS"
        ModelName    "ASUS z80k"
EndSection

Section "Device"
        Identifier  "Card0"
        Driver      "radeon"
        #ChipID      0x4e50
        Option      "ForcePCIMode"      "on"
        VendorName  "ATI Technologies Inc"
        BoardName   "RV350 [Mobility Radeon 9600/9700 M10/M11]"
        BusID       "PCI:1:0:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "LaptopLCD"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth     24
                Modes    "1400x1050" "1280x960" "1152x864" "1024x768"
        EndSubSection
EndSection

Section "Extensions"
        #Option "Composite" "Enable"
EndSection

Section "DRI"
        Mode 0666
EndSection

dmesg:
Copyright (c) 1992-2006 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 6.2-PRERELEASE #0: Sun Nov 26 18:40:26 CET 2006
root@test.infra.kth.se:/usr/obj/usr/src/sys/GENERIC
ACPI APIC Table: <A M I  OEMAPIC >
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Mobile AMD Athlon(tm) 64 Processor 3400+ ( 2194.35-MHz K8-class CPU)
Origin = "AuthenticAMD"  Id = 0xf4a  Stepping = 10
Features=0x78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2>
AMD Features=0xe0500800<SYSCALL,NX,MMX+,LM,3DNow+,3DNow>
real memory  = 1072955392 (1023 MB)
avail memory = 1021984768 (974 MB)
ioapic0 <Version 1.1> irqs 0-23 on motherboard
kbd1 at kbdmux0
ath_hal: 0.9.17.2 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
acpi0: <A M I OEMRSDT> on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0
acpi_ec0: <Embedded Controller: GPE 0x25> port 0x62,0x66 on acpi0
cpu0: <ACPI CPU> on acpi0
powernow0: <PowerNow! K8> on cpu0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <NVIDIA nForce3 AGP Controller> mem 0xf0000000-0xf7ffffff at device
0.0 on pci0
isab0: <PCI-ISA bridge> at device 1.0 on pci0
isa0: <ISA bus> on isab0
pci0: <serial bus, SMBus> at device 1.1 (no driver attached)
ohci0: <nVidia nForce3 USB Controller> mem 0xfebfb000-0xfebfbfff irq 20 at
device 2.0 on pci0
ohci0: [GIANT-LOCKED]
usb0: OHCI version 1.0 , legacy support
usb0: SMM does not respond, resetting
usb0: <nVidia nForce3 USB Controller> on ohci0
usb0: USB revision 1.0
uhub0: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1: <nVidia nForce3 USB Controller> mem 0xfebfc000-0xfebfcfff irq 20 at
device 2.1 on pci0
ohci1: [GIANT-LOCKED]
usb1: OHCI version 1.0, legacy support
usb1: SMM does not respond, resetting
usb1: <nVidia nForce3 USB Controller> on ohci1
usb1: USB revision 1.0
uhub1: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
ehci0: <NVIDIA nForce3 USB 2.0 controller> mem 0xfebfdc00-0xfebfdcff irq 20
at device 2.2 on pci0
ehci0: [GIANT-LOCKED]
usb2: EHCI version 1.0
usb2: companion controllers, 4 ports each: usb0 usb1
usb2: <NVIDIA nForce3 USB 2.0 controller> on ehci0
usb2: USB revision 2.0
uhub2: nVidia EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub2: 6 ports with 6 removable, self powered
uhub3: vendor 0x05e3 USB2.0 Hub, class 9/0, rev 2.00/6.0b, addr 2
uhub3: single transaction translator
uhub3: 4 ports with 4 removable, self powered
pcm0: <nVidia nForce3> port 0xe400-0xe4ff,0xe080-0xe0ff mem
0xfebfe000-0xfebfefff irq 21 at device 6.0 on pci0
pcm0: <Avance Logic ALC650 AC97 Codec>
pci0: <simple comms, generic modem> at device 6.1 (no driver attached)
atapci0: <nVidia nForce3 UDMA133 controller> port
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf at device 8.0 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
pcib1: <ACPI PCI-PCI bridge> at device 10.0 on pci0
pci2: <ACPI PCI bus> on pcib1
skc0: <Marvell Gigabit Ethernet> port 0xd800-0xd8ff mem
0xfeaf8000-0xfeafbfff irq 19 at device 0.0 on pci2
skc0: Marvell Yukon Lite Gigabit Ethernet rev. A3(0x7)
sk0: <Marvell Semiconductor, Inc. Yukon> on skc0
sk0: Ethernet address: 00:11:2f:ec:ed:36
miibus0: <MII bus> on sk0
e1000phy0: <Marvell 88E1000 Gigabit PHY> on miibus0
e1000phy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX,
auto
cbb0: <RF5C476 PCI-CardBus Bridge> mem 0xfd200000-0xfd200fff at device
1.0on pci2
cardbus0: <CardBus bus> on cbb0
pccard0: <16-bit PCCard bus> on cbb0
cbb1: <RF5C476 PCI-CardBus Bridge> mem 0xfa200000-0xfa200fff at device
1.1on pci2
cardbus1: <CardBus bus> on cbb1
pccard1: <16-bit PCCard bus> on cbb1
fwohci0: <Ricoh R5C552> mem 0xfeafd800-0xfeafdfff irq 17 at device 1.2 on
pci2
fwohci0: OHCI version 1.0 (ROM=1)
fwohci0: No. of Isochronous channels is 4.
fwohci0: EUI64 00:e0:18:00:03:23:da:7c
fwohci0: Phy 1394a available S400, 2 ports.
fwohci0: Link S400, max_rec 2048 bytes.
firewire0: <IEEE1394(FireWire) bus> on fwohci0
fwe0: <Ethernet over FireWire> on firewire0
if_fwe0: Fake Ethernet address: 02:e0:18:23:da:7c
fwe0: Ethernet address: 02:e0:18:23:da:7c
fwe0: if_start running deferred for Giant
sbp0: <SBP-2/SCSI over FireWire> on firewire0
fwohci0: Initiate bus reset
fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode
firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
firewire0: bus manager 0 (me)
ndis0: <ASUS 802.11g Network Adapter> mem 0xfeafe000-0xfeafffff irq 18 at
device 2.0 on pci2
ndis0: NDIS API version: 5.1
ndis0: Ethernet address: 00:11:2f:d9:d2:64
pcib2: <ACPI PCI-PCI bridge> at device 11.0 on pci0
pci1: <ACPI PCI bus> on pcib2
pci1: <display, VGA> at device 0.0 (no driver attached)
acpi_button0: <Sleep Button> on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
acpi_button1: <Power Button> on acpi0
acpi_tz0: <Thermal Zone> on acpi0
acpi_acad0: <AC Adapter> on acpi0
battery0: <ACPI Control Method Battery> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model Generic PS/2 mouse, device ID 0
sio0: configured irq 3 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0: <Generic IRDA-compatible device> port 0x2f8-0x2ff irq 3 flags 0x10 on
acpi0
sio0: type 16550A
ppc0: <ECP parallel printer port> port 0x378-0x37f,0x778-0x77f irq 7 drq 3
on acpi0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/16 bytes threshold
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
orm0: <ISA Option ROM> at iomem 0xc0000-0xcefff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 2194346313 Hz quality 800
Timecounters tick every 1.000 msec
ad0: 76319MB <FUJITSU MHT2080AH 006C> at ata0-master UDMA100
cpu0: Cx states changed
acd0: CDRW <UJDA760 DVD/CDRW/1.00> at ata1-master UDMA33
Trying to mount root from ufs:/dev/ad0s4a
WARNING: / was not properly dismounted
cpu0: Cx states changed
WARNING: /home was not properly dismounted
WARNING: /tmp was not properly dismounted
WARNING: /usr was not properly dismounted
WARNING: /var was not properly dismounted
ROOT LOGIN (root) ON ttyv0
/dev/ad0s4f: 249 files, 20335 used, 486152 free (32 frags, 60765 blocks,
0.0% fragmentation)
/dev/ad0s4e: 10 files, 6 used, 394753 free (41 frags, 49339 blocks,
0.0%fragmentation)
/dev/ad0s4g: 354972 files, 1524205 used, 5358791 free (51503 frags, 663411
blocks, 0.7% fragmentation)
drm0: <ATI Radeon RV350 Mobility 9600 M10 NP> port 0xa000-0xa0ff mem
0xe0000000-0xe7ffffff,0xf89f0000-0xf89fffff irq 16 at device 0.0 on pci1
info: [drm] AGP at 0xf0000000 128MB
info: [drm] Initialized radeon 1.24.0 20060225

Again, thanks for any help!
Ryan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6adba26c0612010913l4b60123ahd03bc90f24c49efd>