From owner-freebsd-x11@FreeBSD.ORG Wed Jan 5 13:16:25 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 7D1471065673 for ; Wed, 5 Jan 2011 13:16:25 +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 17CB58FC0C for ; Wed, 5 Jan 2011 13:16:24 +0000 (UTC) Received: by iyb26 with SMTP id 26so14501064iyb.13 for ; Wed, 05 Jan 2011 05:16:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=2KqkqWiHMt7DGraXs+Zv3l+IL6L07umRdX+0KdC/HbE=; b=vRVmiL569JtezH/yMOchTY62S/PbUxNMb7ts1r8pXNRGVJRkm+RpN4L3lgljsR5okR sHa/OXIpq1ZuQSXJvU3mQlmEPYqcdh/zt1lOoHVO/9cM0yBjWsDOK3PjB7qaMexmp5wK lzxpwGP5HTYkhZyI2d/XEg/vtxneRKP/8rGiM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=uvaw3TpiAtwkMOBEZeWj0wuLzGx7g7gj+L2EqSpbeIhQdFLwf6HvpwFE7o+gbov2UR I5FcsygiqG2jT0Jvi3GMBHOrBnY1ygXLG3Hx7TmTb3jitblf3rvkA7BpU8DM+EgtOjYu cMPlHiJHE+z7XtH8o9QmWodfNt50K6JR/CtlA= MIME-Version: 1.0 Received: by 10.231.15.133 with SMTP id k5mr22391355iba.187.1294233384377; Wed, 05 Jan 2011 05:16:24 -0800 (PST) Received: by 10.231.147.131 with HTTP; Wed, 5 Jan 2011 05:16:23 -0800 (PST) Date: Wed, 5 Jan 2011 15:16:23 +0200 Message-ID: From: Markiyan Kushnir To: freebsd-x11 Content-Type: multipart/mixed; boundary=00032555f11a21e08604991931cb X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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: Wed, 05 Jan 2011 13:16:25 -0000 --00032555f11a21e08604991931cb Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 3 17:29:21 EET 2011 >> root@localhost.test:/usr/obj/usr/src/sys/MAREK i386 >> >> An older Radeon R200 on an Intel 945PRN worked OK running the same FreeB= SD >> 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 should >> 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: >> >> http://lists.freebsd.org/pipermail/freebsd-x11/2010-February/009362.htm= l >> >> 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 collect= ed >> 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/19= 60.tgz >> >> http://sites.google.com/site/markiyankushnir/radeon-dri-freebsd-files/19= 91.tgz >> >> http://sites.google.com/site/markiyankushnir/radeon-dri-freebsd-files/32= 38.tgz >> >> http://sites.google.com/site/markiyankushnir/radeon-dri-freebsd-files/32= 39.tgz >> >> http://sites.google.com/site/markiyankushnir/radeon-dri-freebsd-files/32= 49.tgz >> >> Additional info: >> >> % devinfo -rv: >> >> http://sites.google.com/site/markiyankushnir/radeon-dri-freebsd-files/de= vinfo-rv.tgz >> >> % pciconf -lvc >> >> http://sites.google.com/site/markiyankushnir/radeon-dri-freebsd-files/pc= iconf-lvc.tgz >> >> The output of dmesg: >> >> http://sites.google.com/site/markiyankushnir/radeon-dri-freebsd-files/dm= esg.tgz >> >> The Xorg configuration: >> >> http://sites.google.com/site/markiyankushnir/radeon-dri-freebsd-files/xo= rg.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 usabilit= y > by Unix like operating systems ) . > > > Also there is no any such name among =A8All products=A8 list about Main = 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 worki= ng > 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 All > 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 ( Asus is usi= ng > Ubuntu , RedHat , SuSe , Fedora ) distributions . If it works well , this > 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 it= is > very likely that , at some point it will crash ( from my personal experie= nce > 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 [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 radeon_drm.h. This ioctl is called in several places to set GART parameters, tiling, etc... in the driver code. Looks 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 tha= t > board , or an installed hard disk in another board is moved to that board= . > If previously installed hard disk moved without new install in the new ma= in > 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 an= d > 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 > --00032555f11a21e08604991931cb--