From freddy@webcom.hu  Mon Oct 13 12:57:49 2003
Return-Path: <freddy@webcom.hu>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 9D47716A4B3
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 13 Oct 2003 12:57:49 -0700 (PDT)
Received: from webcom.hu (webcom.hu [212.92.19.112])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 36F7A43FAF
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 13 Oct 2003 12:57:44 -0700 (PDT)
	(envelope-from freddy@webcom.hu)
Received: from adsl212200.vnet.hu ([62.77.212.200] helo=tornado.hokinet.net)
	by webcom.hu with esmtp (Exim 3.35 #1 (Debian))
	id 1A98p4-0001WH-00
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 13 Oct 2003 21:57:42 +0200
Received: from tornado.hokinet.net (localhost [127.0.0.1])
	by tornado.hokinet.net (8.12.10/8.12.10) with ESMTP id h9DJvTSS001362
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 13 Oct 2003 21:57:29 +0200 (CEST)
	(envelope-from freddy@tornado.hokinet.net)
Received: (from freddy@localhost)
	by tornado.hokinet.net (8.12.10/8.12.10/Submit) id h9DJvTCf001361;
	Mon, 13 Oct 2003 21:57:29 +0200 (CEST)
	(envelope-from freddy)
Message-Id: <200310131957.h9DJvTCf001361@tornado.hokinet.net>
Date: Mon, 13 Oct 2003 21:57:29 +0200 (CEST)
From: "Tamas R." <freddy@webcom.hu>
Reply-To: "Tamas R." <freddy@webcom.hu>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: KDE freezes on startup with ATI RADEON 9000 (PRO)
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         57973
>Category:       misc
>Synopsis:       KDE freezes on startup with ATI RADEON 9000 (PRO)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 13 13:00:32 PDT 2003
>Closed-Date:    Thu Aug 26 04:07:41 GMT 2004
>Last-Modified:  Thu Aug 26 04:07:41 GMT 2004
>Originator:     Tamas R.
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
>Environment:
System: FreeBSD 5.1-CURRENT i386

	VGA card   : ATI (HIGHTECH EXCALIBUR) RADEON 9000 PRO

	
>Description:
        KDE freezes after X server started and before the 'KDE init logo'
	displayed. In this state the keyboard become useless (mouse cursor can
	be moved roughly) and the screen also freezes (it does not refresh).
	The system can be rebooted through ACPI power button but it behaves
	interesting: this process is much slower than in normal case and it once
	control the monitor 'out of frequency' range then reboots (during this
	shutdown process the screen remains frozen). Using a trick, switching
	back to console immediately after issuing the 'startx' command, the
	system does not hang until switching back to X again. Then KDE seems to
	be started properly but some seconds later the same freezing takes
	place. (Testing X server with 'XFree86 -xf86config ...' itself works
	good and it does not cause any freezing.)
	
	Lastest kernel, which work good was cvsup-ed and compiled on 25th of
	September. I used another vga card for temporary some days ago and I
	compiled a new base system/kernel, which had no such problems until I
	put back the ATI to the AGP slot.

	I guess it may be a bug around radeondrm kernel driver. In the last days
	I cvsup-ed my source tree and I compiled the base system/kernel more
	times but it did not help.

	My kernel config based on the lastest GENERIC config shipped with the
	source. I noticed (about one or two months ago but I think this problem
	did not solved since then) if I comment out hardwares (like SCSI, RAID),
	which I does not have, although the kernel boots properly but exactly
	the same freezing takes place with KDE as described above. So I have to
	compile in really everything into my custom kernel to avoid KDE crash.
	
	Log file comparision (diff's output) between a 'normal' (>) and a
	'frozen' (<) startup:
	
	13c13
	< (==) Log file: "/var/log/XFree86.0.log", Time: Mon Oct 13 13:01:50 2003
	---
	> (==) Log file: "/var/log/XFree86.0.log", Time: Mon Oct 13 11:43:59 2003
	681,682c681,682
	< (II) RADEON(0): [drm] added 8192 byte SAREA at 0xc4d23000
	< (II) RADEON(0): [drm] mapped SAREA 0xc4d23000 to 0x282ca000
	---
	> (II) RADEON(0): [drm] added 8192 byte SAREA at 0xc5ad7000
	> (II) RADEON(0): [drm] mapped SAREA 0xc5ad7000 to 0x282ca000
	686c686
	< (II) RADEON(0): [agp] 65536 kB allocated with handle 0xc49a24c0
	---
	> (II) RADEON(0): [agp] 65536 kB allocated with handle 0xc503ca00
	758a759,770
	> (==) RADEON(0): Removed Write-combining range (0xa0000,0x10000)
	> (**) Option "BaudRate" "1200"
	> (**) Option "StopBits" "2"
	> (**) Option "DataBits" "8"
	> (**) Option "Parity" "None"
	> (**) Option "Vmin" "1"
	> (**) Option "Vtime" "0"
	> (**) Option "FlowControl" "None"
	> (==) RADEON(0): Removed Write-combining range (0xa0000,0x10000)
	> (II) RADEON(0): [drm] removed 1 reserved context for kernel
	> (II) RADEON(0): [drm] unmapping 8192 bytes of SAREA 0xc5ad7000 at 0x282ca000
	> (==) RADEON(0): Removed Write-combining range (0xa0000,0x10000)
	
	
	NOTE: XFree86 and KDE were compiled from ports and these are up-to-date.

	
>How-To-Repeat:
	Compile a recent FreeBSD-CURRENT i386 kernel and try to start KDE with
	ATI RADEON 9000 (PRO).
	
>Fix:
	Sorry, but I have no idea how to fix it.
	


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Thu Jul 22 07:38:00 GMT 2004 
State-Changed-Why:  
Does this still happen with FreeBSD 5.2.1?  If so, when it happens, 
can you ssh into the box and see what processes are running (so that 
we can tell whether this is an X bug or a kernel bug?) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=57973 

From: =?iso-8859-2?Q?Tam=E1s_R.?= <freddy@webcom.hu>
To: <freebsd-gnats-submit@FreeBSD.org>, <freddy@webcom.hu>
Cc:  
Subject: Re: misc/57973: KDE freezes on startup with ATI RADEON 9000 (PRO)
Date: Sat, 24 Jul 2004 17:37:08 +0200

 The problem immediately solved when I bought a new motherboard.
 Sorry, I cannot reproduce it with this one. Excaclty the same system
 and kernel, which froze with the old one, works good with the new
 one. I had an ASUS P4S533-E (SIS 645DX+ chipset), and the new
 one is an ASUS P4P800-Deluxe (Intel 865PE chipset). I guess the
 support around SIS chipsets is poor in FreeBSD (and in other operating
 systems as well).
State-Changed-From-To: feedback->closed 
State-Changed-By: linimon 
State-Changed-When: Thu Aug 26 04:07:24 GMT 2004 
State-Changed-Why:  
Submitter is no longer able to duplicate the problem. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=57973 
>Unformatted:
