From owner-freebsd-x11@FreeBSD.ORG Fri Dec 1 17:13:23 2006 Return-Path: X-Original-To: freebsd-x11@freebsd.org Delivered-To: freebsd-x11@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9398E16A412 for ; Fri, 1 Dec 2006 17:13:23 +0000 (UTC) (envelope-from rpavery79@gmail.com) Received: from nz-out-0102.google.com (nz-out-0506.google.com [64.233.162.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id E1E7043CA5 for ; Fri, 1 Dec 2006 17:13:07 +0000 (GMT) (envelope-from rpavery79@gmail.com) Received: by nz-out-0102.google.com with SMTP id i11so1516443nzh for ; Fri, 01 Dec 2006 09:13:22 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=RyY/3WdTtN8mBIa1Bt+oF5h6e3PVxMqkxaOqfdXkFpqOy9l5ctNT/q0AXejyy5Q46wBZRHPZzzwMwr8jldPSbaW3RRmO5ipGoi/qMWe6M3OdQDscV2iybcp4R78UREWpWoOedhumB1ToZgZOG31ZQdHvyZdAUA5BwgZNVYBTqlo= Received: by 10.64.184.14 with SMTP id h14mr7237134qbf.1164993202000; Fri, 01 Dec 2006 09:13:22 -0800 (PST) Received: by 10.65.141.14 with HTTP; Fri, 1 Dec 2006 09:13:21 -0800 (PST) Message-ID: <6adba26c0612010913l4b60123ahd03bc90f24c49efd@mail.gmail.com> Date: Fri, 1 Dec 2006 18:13:21 +0100 From: "Ryan Avery" To: freebsd-x11@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Xorg 6.9 - 7.2-RC2 hangs at startup with Radeon 9700 X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Dec 2006 17:13:23 -0000 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: 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 AMD Features=0xe0500800 real memory = 1072955392 (1023 MB) avail memory = 1021984768 (974 MB) ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 ath_hal: 0.9.17.2 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) acpi0: 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: port 0x62,0x66 on acpi0 cpu0: on acpi0 powernow0: on cpu0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: mem 0xf0000000-0xf7ffffff at device 0.0 on pci0 isab0: at device 1.0 on pci0 isa0: on isab0 pci0: at device 1.1 (no driver attached) ohci0: 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: 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: 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: 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: 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: 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: port 0xe400-0xe4ff,0xe080-0xe0ff mem 0xfebfe000-0xfebfefff irq 21 at device 6.0 on pci0 pcm0: pci0: at device 6.1 (no driver attached) atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf at device 8.0 on pci0 ata0: on atapci0 ata1: on atapci0 pcib1: at device 10.0 on pci0 pci2: on pcib1 skc0: port 0xd800-0xd8ff mem 0xfeaf8000-0xfeafbfff irq 19 at device 0.0 on pci2 skc0: Marvell Yukon Lite Gigabit Ethernet rev. A3(0x7) sk0: on skc0 sk0: Ethernet address: 00:11:2f:ec:ed:36 miibus0: on sk0 e1000phy0: on miibus0 e1000phy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto cbb0: mem 0xfd200000-0xfd200fff at device 1.0on pci2 cardbus0: on cbb0 pccard0: <16-bit PCCard bus> on cbb0 cbb1: mem 0xfa200000-0xfa200fff at device 1.1on pci2 cardbus1: on cbb1 pccard1: <16-bit PCCard bus> on cbb1 fwohci0: 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: on fwohci0 fwe0: 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: 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: 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: at device 11.0 on pci0 pci1: on pcib2 pci1: at device 0.0 (no driver attached) acpi_button0: on acpi0 acpi_lid0: on acpi0 acpi_button1: on acpi0 acpi_tz0: on acpi0 acpi_acad0: on acpi0 battery0: on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: 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: port 0x2f8-0x2ff irq 3 flags 0x10 on acpi0 sio0: type 16550A ppc0: 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: on ppc0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 orm0: at iomem 0xc0000-0xcefff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounter "TSC" frequency 2194346313 Hz quality 800 Timecounters tick every 1.000 msec ad0: 76319MB at ata0-master UDMA100 cpu0: Cx states changed acd0: CDRW 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: 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