From owner-freebsd-bugs@FreeBSD.ORG Sat Oct 20 03:10:01 2012 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4A80BA19 for ; Sat, 20 Oct 2012 03:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.FreeBSD.org [8.8.178.135]) by mx1.freebsd.org (Postfix) with ESMTP id 222CA8FC16 for ; Sat, 20 Oct 2012 03:10:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q9K3A1Wt086171 for ; Sat, 20 Oct 2012 03:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q9K3A1rQ086170; Sat, 20 Oct 2012 03:10:01 GMT (envelope-from gnats) Resent-Date: Sat, 20 Oct 2012 03:10:01 GMT Resent-Message-Id: <201210200310.q9K3A1rQ086170@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "M." Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1092183F for ; Sat, 20 Oct 2012 03:04:53 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id E1D5F8FC08 for ; Sat, 20 Oct 2012 03:04:52 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id q9K34q5m084475 for ; Sat, 20 Oct 2012 03:04:52 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id q9K34qJ1084474; Sat, 20 Oct 2012 03:04:52 GMT (envelope-from nobody) Message-Id: <201210200304.q9K34qJ1084474@red.freebsd.org> Date: Sat, 20 Oct 2012 03:04:52 GMT From: "M." To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: kern/172893: Ati Radeon with Xorg and DRI activated freezes the Machine X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Oct 2012 03:10:01 -0000 >Number: 172893 >Category: kern >Synopsis: Ati Radeon with Xorg and DRI activated freezes the Machine >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Oct 20 03:10:00 UTC 2012 >Closed-Date: >Last-Modified: >Originator: M. >Release: 9-STABLE/PRERELEASE #2 >Organization: michael-schuh.net >Environment: FreeBSD bsdburner.michael-schuh.net 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #2: Wed Oct 17 03:55:20 CEST 2012 root@bsdburner.michael-schuh.net:/usr/obj/usr/src/sys/GENERIC amd64 >Description: # src and ports updated at 2012-10-16 from cvsup.uk.freebsd.org via csup/make The usage of a PCI-Express ATI Radeon HD 4350 with the Xorg-Server and DRI enabled (default) freezes the entire Machine imediatly after the start of the Xorg. The only running solution is to deactivate the acceleration with 'Option "NoAccel" "True" in th xorg.conf. The Xserver does than shadowing the entire graphic memory on the graphic card, which reduces the available/usable memory by an half. Anything that needs at least 2D acceleration like playing a video or flash movie is horridbly slow. Specially with GLX, XV can't get used cause of the missing DRI support. Further is the described freeze only moved at the end of the actual Xsession. If i close fluxbox and exit him, the machine gets freezed than. (slim is as login manager installed and the polkit with the consolekit as session management, this works flawless without HAL in the same configuration on a laptop with intel graphics ) For the fun: if i call reboot from a xterm inside the session, the machine gets rebooted clean without a freeze. :8~) The Display/Monitor is connected to the VGA-Port and gets corretly found by the probing of Xorg. The Mainboard is an Asus P5K, with 6GigByte of OCZ Value-Memory. Memory tests are also ok and the hardware is known to work perfectly. For the interest the irq 16 that is used by the graphics adapter is shared with the north bridge/acpi/usb/firewire. I have no idea how i can set any of both to a free _non shared_ irq. This got tested in any way, with or without the kernel modules for radeon and drm/drm2. the latter one should not be the approbiate cause iirc its only good for intel graphic adapters. the freeze is repeateable with the ati/radeon driver and with the radeonhd driver. ( i know the latter one should be outdated and not used anymore, if i have understood the wiki at xorg) I had this grapic adapter on this mainboard already running earlier _under linux_ with 2D acceleration with the xorg drivers and 3D acceleration with the proprietary fglrx drivers from ati. both with dri. afaik that is neccessary for any hardware acceleration. i addressed this bug into the kern category cause of: under no circuumstances should a buggy X driver drag down the entire machine with all his mounted filesystems while this can cause a serious dataloss and corrupted filesystems. specially not if the default xorg.conf created by Xorg -configure comes up with non safe parameters. if any help is needed to examine this further i can help if i get an guidance how i can trace this down/back. machine/software config following: Kernel modules loaded at boot time wia loader.conf(just a few important): (it makes no difference if with or without these modules loaded ) drm_load="YES" radeon_load="YES" #vesa_load="YES" #acpi_video_load="YES" aibs_load="YES" coretemp_load="YES" ----8<---snip:dmesg-parts---8<--- Copyright (c) 1992-2012 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 9.1-PRERELEASE #2: Wed Oct 17 03:55:20 CEST 2012 root@bsdburner.michael-schuh.net:/usr/obj/usr/src/sys/GENERIC amd64 CPU: Intel(R) Core(TM)2 Duo CPU E7300 @ 2.66GHz (2672.78-MHz K8-class CPU) Origin = "GenuineIntel" Id = 0x10676 Family = 0x6 Model = 0x17 Stepping = 6 Features=0xbfebfbff Features2=0x8e39d AMD Features=0x20100800 AMD Features2=0x1 TSC: P-state invariant, performance statistics real memory = 6442450944 (6144 MB) avail memory = 6163501056 (5877 MB) Event timer "LAPIC" quality 400 ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs FreeBSD/SMP: 1 package(s) x 2 core(s) cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0 irqs 0-23 on motherboard Cuse4BSD v0.1.26 @ /dev/cuse kbd1 at kbdmux0 ctl: CAM Target Layer loaded acpi0: on motherboard acpi0: Power Button (fixed) acpi0: reservation of 0, a0000 (3) failed acpi0: reservation of 100000, cff00000 (3) failed cpu0: on acpi0 ACPI Warning: Incorrect checksum in table [OEMB] - 0x72, should be 0x69 (20110527/tbutils-282) # i think the above line should ot be dramatical cause a warning # and i have seen this already earlier on other fully stable machines. # i think the failed messages above are the powerstates stuff which i didn't # configured in the BIOS >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: