From owner-freebsd-x11@FreeBSD.ORG Tue Jan 11 18:21:41 2011 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 597CD106564A for ; Tue, 11 Jan 2011 18:21:41 +0000 (UTC) (envelope-from markiyan.kushnir@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 1E2258FC13 for ; Tue, 11 Jan 2011 18:21:40 +0000 (UTC) Received: by iyb26 with SMTP id 26so19777785iyb.13 for ; Tue, 11 Jan 2011 10:21:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=rT9pp0QFSBL6qWQALv5+Z3fntGoQ8vP4Pak/x4Vy/48=; b=E24Nys5NAssKxc98vPbSiIQaPipancjJgp9FJ6Ouht09c3ADq8xIKU+/34xBEcHCCQ LJc7v56JtxZFD/ezbQKiNXpL6c28iq5O0EEPhNxiazDWPXipbQCAaZEbk/chtmry53nW IdIDoWno/T3PX9nw9VyoKVb+3OyrQ/nGCZI6k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=kKWajL4xLG7RrWBvGuZ1tvV4Paa5kt45rZlsPkpW8LAWhFgoNU9pMteQIg/bVuLWDt HRQjF7XM3ODOgaEjTQmfiLGWkHOz0zv5nznhszyE9cD5/knFkLeZfWFgCclCZuEIGXQI ByEilY1i8M7EDNYuHBC8do7T7L1+DCOUewp8o= MIME-Version: 1.0 Received: by 10.231.199.10 with SMTP id eq10mr30307375ibb.112.1294770100357; Tue, 11 Jan 2011 10:21:40 -0800 (PST) Received: by 10.231.147.131 with HTTP; Tue, 11 Jan 2011 10:21:39 -0800 (PST) In-Reply-To: References: Date: Tue, 11 Jan 2011 20:21:39 +0200 Message-ID: From: Markiyan Kushnir To: freebsd-x11 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: ATI Radeon HD 4350 (RV710) on ASUS P5K Deluxe/WiFi-AP hang at Xorg startup. 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: Tue, 11 Jan 2011 18:21:41 -0000 Switched to NVIDIA GeForce 8600 GT (G84). Direct rendering appears to work using the NVIDIA-FreeBSD-x86-260.19.29 driver (the latest from the NVidia at the moment), as well as with that from the ports, currently 256.53. DRI does not work with the xf86-video-nv 2.1.17. Markiyan. 2011/1/5 Markiyan Kushnir : > 2011/1/5, Mehmet Erol Sanliturk : >> On Tue, Jan 4, 2011 at 6:55 PM, Markiyan Kushnir >> wrote: >> >>> Another DRI-related freeze ... >>> >>> ATI Radeon HD 4350 (RV710) on ASUS P5K Deluxe hangs at the >>> startup of the Xorg with DRI enabled. Hard freeze, the Power Button >>> does not bring the system down. I could only use the Reset Button. >>> >>> % uname -a >>> FreeBSD localhost.test 8.2-PRERELEASE FreeBSD 8.2-PRERELEASE #0: Mon >>> Jan =A03 17:29:21 EET 2011 >>> root@localhost.test:/usr/obj/usr/src/sys/MAREK =A0i386 >>> >>> An older Radeon R200 on an Intel 945PRN worked OK running the same Free= BSD >>> release. This older Radeon, when plugged in the ASUS P5K, hits the same >>> hard freeze (I actually moved the hard drive and the video card from >>> that Intel 945PRM to the ASUS P5K). >>> >>> This ASUS board has two PCI-E alots, so I tried a different slot, >>> no success. As another exercise, I forced a separate IRQ to the video >>> card using "hw.pci0.2.0.INTA.irq=3D3" loader tunable (based on the >>> $PIR table). With this separate irq, still no luck, not sure if I shoul= d >>> try it at all, since the card gets an MSI any way. >>> >>> I also tried a trick with forcing the libthr.so.3 linking into the Xorg >>> binary, discussed a year ago at: >>> >>> =A0http://lists.freebsd.org/pipermail/freebsd-x11/2010-February/009362.= html >>> >>> I built the xorg-server with the HAL support, no luck. >>> >>> As a side note, each test of the Xorg was done on a newly started-up >>> system, >>> that is no previous "successful" X session took place. >>> >>> Since no Xorg.log.0 in such cases was normally available, I have collec= ted >>> output from /var/log/messages. Because of the "hw.dri.0.debug: 1", the >>> output is quite huge, here are a couple of cases: >>> >>> >>> http://sites.google.com/site/markiyankushnir/radeon-dri-freebsd-files/1= 960.tgz >>> >>> http://sites.google.com/site/markiyankushnir/radeon-dri-freebsd-files/1= 991.tgz >>> >>> http://sites.google.com/site/markiyankushnir/radeon-dri-freebsd-files/3= 238.tgz >>> >>> http://sites.google.com/site/markiyankushnir/radeon-dri-freebsd-files/3= 239.tgz >>> >>> http://sites.google.com/site/markiyankushnir/radeon-dri-freebsd-files/3= 249.tgz >>> >>> Additional info: >>> >>> % devinfo -rv: >>> >>> http://sites.google.com/site/markiyankushnir/radeon-dri-freebsd-files/d= evinfo-rv.tgz >>> >>> % pciconf -lvc >>> >>> http://sites.google.com/site/markiyankushnir/radeon-dri-freebsd-files/p= ciconf-lvc.tgz >>> >>> The output of dmesg: >>> >>> http://sites.google.com/site/markiyankushnir/radeon-dri-freebsd-files/d= mesg.tgz >>> >>> The Xorg configuration: >>> >>> http://sites.google.com/site/markiyankushnir/radeon-dri-freebsd-files/x= org.conf.tgz >>> >>> I am aware that some video card + motherboard ensembles have issues >>> like this one, so I am curious if anyone could suggest a hint. >>> >>> Thanks, >>> Markiyan. >>> >> >> >> There is the following list : >> >> http://www.asus.com/websites/global/aboutasus/OS/Linux.pdf >> >> The mother board P5K Deluxe does not appear in that list . It means that= it >> is not tested and listed for Linux ( which is an indicator about usabili= ty >> by Unix like operating systems ) . >> >> >> Also there is no any such name among =A0=A8All products=A8 list about Ma= in boards >> : >> >> >> http://www.asus.com/AllProducts.aspx?PG_ID=3DmKyCKlQ4oSEtSu5m >> >> >> The following board ( if your board is exactly that one ) >> P5K Deluxe/WiFi-AP( exact match of names is very important ) is for only= XP >> and Vista : >> >> http://www.asus.com/product.aspx?P_ID=3D0e9NyGEDLjtBRtyB >> >> > > You are right, the board is P5K Deluxe/WiFi-AP. I have updated the > subject with the full name. > > >> If name of your board is exactly >> >> P5K Deluxe >> these are different from each other ( in the sense that , if one is work= ing >> with a Unix-like operating system , it does not make a guaranty that the >> other will work ( Please see the above Linux.pdf list and products in Al= l >> Products list for similar sounding names )) . >> >> >> It could not be possible to see your dmesg because access to >> sites.google.com is prohibited in Turkey . >> > > Sorry, didn't know of it. I am attaching dmesg, and others with this mail= . > >> >> To test your main board , you may install one of the Linux ( =A0Asus is = using >> Ubuntu , RedHat , SuSe , Fedora ) distributions . If it works well , thi= s >> may mean that FreeBSD >> related driver(s) has(have) problems . >> >> > > I bought this board from my friend. He was successfully running Linux > on it, including Xorg + DRI. So looks like it's an issue with the > FreeBSD handling this board? > > I have just got an idea to try an NVIDIA card with this motherboard. > Will let you know if it works. > >> My expectation is that FreeBSD or any Linux will NOT work satisfactorily= on >> that board >> because it is mainly produced for Windows means some circuits are not >> suitable for Unix-like operating systems . It may work for a while but i= t is >> very likely that , at some point it will crash ( from my personal experi= ence >> from another board ). >> >> > > I also have the same feeling, but cannot certainly tell. I don't know > which details to give to help fix it. From the message logs (all they > are kernel-side) it's clear that some initial step went OK, and in all > cases the last message before the hanging is > > =A0[drm:pid1960:drm_ioctl] pid=3D1960, cmd=3D0x800c6459, nr=3D0x59, dev > 0x86f0a880, auth=3D1 > > The ioctl number (0x59, vendor specific) is defined as > DRM_RADEON_SETPARAM in the xorg ati driver's =A0radeon_drm.h. This ioctl > is called in several places to set GART parameters, tiling, etc... in > the driver code. =A0Looks like an attempt to set some video card > parameter makes the system freeze. I don't know which point is it in > the overall initialization path. I think I could trace it, if needed. > > >> It is not clear from you message that whether FreeBSD is installed in th= at >> board , or an installed hard disk in another board is moved to that boar= d . >> If previously installed hard disk moved without new install in the new m= ain >> board ( I think , this is not the case ), it will surely not work . >> >> > > Here I am not so sure on this point, since I widely use this approach. > I have a home file server, which runs OK both on a removable system > drive, which I prepared on a different system, or, if needed, it runs > on a network-mounted system drive, that is completely without its own > system drive. > > In the case being discussed here, only couple of things is needed: > adjust the names of FreeBSD slices in the /etc/fstab file, unless they > were previously labeled with glabel, and "position independent" labels > are used; names of network interfaces in the /etc/rc.conf[.local] -- > all this is pretty obvious in FreeBSD. > > Before posting to the list, I also made a clean install on the system > without any hardware manipulation, and ran several attempts, so I am > pretty sure, the drive should not be an issue here. > > >> ( If the above links do not work , please access directly to Asus site a= nd >> follow links in their pages . ) >> >> > > Thank you for your suggestion, I will explore the possibility to try > different motherboard (and different video card). I will also think of > finding a way to fix the problem on the P5K Deluxe/WiFi-AP. I am also > considering to post to freebsd-hardware@ and freebsd-drivers@ ... > >> Thank you very much . >> >> Mehmet Erol Sanliturk >> >