From owner-freebsd-x11@FreeBSD.ORG Thu Nov 29 00:32:02 2012 Return-Path: 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 A5A583CB for ; Thu, 29 Nov 2012 00:32:02 +0000 (UTC) (envelope-from sendtomatt@gmail.com) Received: from mail-da0-f54.google.com (mail-da0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 6BC798FC13 for ; Thu, 29 Nov 2012 00:32:02 +0000 (UTC) Received: by mail-da0-f54.google.com with SMTP id n2so4269764dad.13 for ; Wed, 28 Nov 2012 16:32:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type; bh=2nFnyb7vwVwBaFWzfG7qXCGkoEcpwKu5VplPAv757Bs=; b=T5MuyO8oiMEGDmLLzuqeovN9FbhJ4p53E9aCMsZYPeIcb5ACj1ma+ts0jKkviGjQAC wMkHCnD5NPD/ipS/8CO+Gq9WRz1xb7QUA/OJVGfCFDYsAZ8sXnI0lLZgaS3AkAwPUAnT kwMJppAJilq6MttrrNesgzhH/RM/u+dHF9I36vcl5tcPcHdws8f+cX83jwkKSqDVI/SX jo9HpNAzJUVQUvk7up5dagONNODlMmIvaI1kwvj7I/Ke+CsL2L3Bm/oOsl+GKCIgA5YV Bmxzb3w2Fz/5bIK6Y3iamxBiVh8+NW5gfPJg3Ro16zgGsDxCfugGE14OOwqofSDRg4EG 9BTQ== Received: by 10.66.79.167 with SMTP id k7mr57252107pax.24.1354149121971; Wed, 28 Nov 2012 16:32:01 -0800 (PST) Received: from bakeneko.local (108-213-216-134.lightspeed.sntcca.sbcglobal.net. [108.213.216.134]) by mx.google.com with ESMTPS id t10sm28374paz.5.2012.11.28.16.31.59 (version=SSLv3 cipher=OTHER); Wed, 28 Nov 2012 16:32:00 -0800 (PST) Message-ID: <50B6ACE3.8010806@gmail.com> Date: Wed, 28 Nov 2012 16:31:31 -0800 From: matt User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.10) Gecko/20121106 Thunderbird/10.0.10 MIME-Version: 1.0 To: "Henry B." Subject: Re: Radeon HD 4350 - no DRI / only Software Rasterizer under FreeBSD 9.0? References: In-Reply-To: X-Enigmail-Version: 1.3.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-x11@freebsd.org X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Nov 2012 00:32:02 -0000 On 11/28/12 15:18, Henry B. wrote: > Hello, > > I'm currently trying to setup Xorg to use DRI on my new (and first ever) > FreeBSD 9.0 installation, without success. > > I followed the Handbook Chapter 6.4 and used Xorg -configure to get a > baseline configuration which detects my graphics card but when I try to > load it, I end up with a blank screen (no signal) and broken pipes on my > SSH sessions into the system. CTRL+ALT+F1 or any other key combo doesn't > do a thing and since i can't connect over SSH anymore I'm forced to do a > hard reboot. > > I found two working ways of running Xorg, the first is using the VESA > driver and the second is using the radeon driver with DRI disabled and > setting AutoAddDevices to False. I also tried the radeonhd driver, i get > about 2 seconds of video before the system hangs in the same way as when > using radeon. > > I discarded VESA because it couldn't even drive the full resolution to my > first screen. > > The DRI disabled option is a problem for me because I'm used to a > dual-head setup with both of the screens rotated 90 degrees and then > joined together. (I use two 16:10 screens for this. Reading and editing > long files/websites is marvelous on this setup.) > > > [cryptix@oObsi ~]$ xrandr --output DVI-0 --rotate left > xrandr: Configure crtc 1 failed > [cryptix@oObsi ~]$ xrandr --output DVI-1 --rotate right > xrandr: Configure crtc 0 failed > [cryptix@oObsi ~]$ xrandr --output DVI-1 --right-of DVI-0 > xrandr: screen cannot be larger than 1680x1680 (desired size 3360x1050) > > If the rotation works it would be 2100x1680 but that is still lager than > 1680x1680. > It won't work without DRI, I guess. > > I followed the steps in this[1] thread on the FreeBSD forum since it deals > with a similar card and the point was to get DRI working but it didn't > work out for me in the end. (Same dead/paniced system when i try to load > Xorg with DRI enabled.) > > The first thing I succeed in was getting dmesg to tell me that DRM was > detected on my card. > > > [root@oObsi ~]# dmesg | grep drm > [root@oObsi ~]# kldload radeon > [root@oObsi ~]# dmesg | grep drm > drm0: on vgapci0 > info: [drm] MSI enabled 1 message(s) > info: [drm] Initialized radeon 1.31.0 20080613 > > But that's about all i could use from the before mentioned thread. > WITHOUT_NOUVEAU has no effect anymore and my card is listed with vendor > and product ID in /usr/src/sys/dev/drm/drm_pciids.h. > > I harvested this[2] Xorg.0.log from a run with DRI enabled over SSH using > tail -F /var/log/Xorg.0.log and copying out of my terminal by hand. (After > the reboot the file is empty because it wasn't cleanly closed, I guess). > > Here is my current xorg.conf[3]. > > From what i can see DRI initializes fine but sadly the log file doesn't > point to the specific problem because the box crashes before it prints > what the problem is. > > I would be happy about any suggestion on what to try out next. Getting my > ports tree to a state when WITHOUT_NOUVEAU was required seems to be a > solution but i would like to have a verification of that before i continue > to tinker in darkness on this. I would also be willing to get a 1394 cable > and try to get a backtrace of the panic with dcons if it is of any help. > I would also be willing to try out older releases of FreeBSD if they are > more likely to work. It's just that the most recent stable release seemed > like the best option for a new installation. > > Looks like I chose a bad time for my move from Linux to FreeBSD with the > KMS issues hanging in the air but I'm still eager to keep trying! > > > Thanks in advance, > > cryptix > > > [1] Forum Thread - http://forums.freebsd.org/showthread.php?t=27038 > [2] Xorg.0.log - http://pastebin.com/raw.php?i=dhz800W7 > [3] xorg.conf - http://pastebin.com/raw.php?i=80EJiCnw > > p.s.: I also attached the log and config files to this mail but I wasn't > sure if the mailman chops them off. > > > _______________________________________________ > freebsd-x11@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-x11 > To unsubscribe, send any mail to "freebsd-x11-unsubscribe@freebsd.org" That card should work, I personally use a crappy 4650 (PowerColor GO!, RV730) and it usually only has issues with buggy GL programs. -Try a different card (system setup bad) -Try a different monitor (corrupt EDID crashes driver) -Try same card in Linux/Windows (card is bad) -It looks like a bad crash...can you SSH in and keep gdb attached to get a backtrace? I think it might be connector table or PLL related, my card says this after yours crashes. [165240.090] Output UNIPHY1 transmitter setup success [165240.090] Output CRT2 disable success [165240.090] Output UNIPHY0 transmitter setup success [165240.090] Blank CRTC 0 success [165240.090] Disable CRTC memreq 0 success [165240.090] Disable CRTC 0 success [165240.090] Blank CRTC 1 success [165240.090] Disable CRTC memreq 1 success [165240.090] Disable CRTC 1 success [165240.091] Output UNIPHY0 transmitter setup success [165240.091] Blank CRTC 0 success [165240.091] Disable CRTC memreq 0 success [165240.091] Disable CRTC 0 success [165240.091] Set CRTC 0 Source success [165240.091] Mode 1680x1050 - 2240 1089 6 [165240.091] (II) RADEON(0): RADEONRestoreMemMapRegisters() : [165240.091] (II) RADEON(0): MC_FB_LOCATION : 0x00df00d0 0x00df00d0 [165240.091] (II) RADEON(0): MC_AGP_LOCATION : 0x00030000 [165240.091] Picked PLL 0 [165240.091] before 14625 [165240.091] after 14625 [165240.091] best_freq: 146250 [165240.091] best_feedback_div: 130 [165240.091] best_frac_feedback_div: 0 [165240.091] best_ref_div: 3 [165240.091] best_post_div: 8 [165240.091] (II) RADEON(0): crtc(0) Clock: mode 146250, PLL 1462500 [165240.091] (II) RADEON(0): crtc(0) PLL : refdiv 3, fbdiv 0x82(130), fracfbdiv 0, pdiv 8 [165240.101] Set CRTC 0 PLL success [165240.101] Set CRTC Timing success [165240.101] Set CRTC 0 Overscan success [165240.101] Not using RMX Matt