Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Nov 2012 03:57:01 +0100
From:      "Henry B." <cryptix@riseup.net>
To:        freebsd-x11@freebsd.org
Subject:   Re: Radeon HD 4350 - no DRI / only Software Rasterizer under FreeBSD 9.0?
Message-ID:  <e7adcfd7264c6037d8867bc064663ed4.squirrel@fulvetta.riseup.net>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On 29.11.2012, at 1:31 , matt <sendtomatt@gmail.com> wrote:
> That card should work, I personally use a crappy 4650 (PowerColor GO!,
RV730) and it usually only has issues with buggy GL programs.

That's good news! I was beginning to think nobody uses ATI graphics cards
on FreeBSD. :)
I currently can't recall the card manufacturer but the chip is RV710.

> Try a different card (system setup bad)
That's what I'm thinking about next if this can't be figured out..

> Try a different monitor (corrupt EDID crashes driver)
I also use the monitors (Benq G2110w) with my macbook, a raspi and had
them on two PCs of friends.
Never had a problem with them and they worked fine under Linux on the same
box.

> Try same card in Linux/Windows (card is bad)
I'm trying to adopt my dual head setup from a previous ArchLinux
installation, so I think I can rule out 'bad card'.

It feels like bad driver / bad timing. The driver on Linux was much more
recent and using KMS but i have the card for quite some time and also had
this setup before KMS was introduced, which makes this problem quite
unexpected and weird.

> It looks like a bad crash...can you SSH in and keep gdb attached to get
a backtrace?
>From what i can tell, the system actually panics when I try to load X with
DRI enabled and it takes down the SSH connections with it.

I attached what is left from gdb's output to the mail. Sadly I don't have
a chance to input bt before it goes down..


> 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


Comparing your output to the one i get from gdb it looks like the next
line would be
[165240.091] Mode 1680x1050 - 2240 1089 6

I'm also intrigued by the "failed to set mtrr: Invalid argument" not sure
what to make of it.


kind regards,

Henry
[-- Attachment #2 --]
root@oObsd:/root # gdb X
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...(no debugging symbols found)...
(gdb) r
Starting program: /usr/local/bin/X 
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...[New LWP 100173]
(no debugging symbols found)...(no debugging symbols found)...[New Thread 803007400 (LWP 100173/Xorg)]

X.Org X Server 1.7.7
Release Date: 2010-05-04
X Protocol Version 11, Revision 0
Build Operating System: FreeBSD 9.1-RC3 amd64 
Current Operating System: FreeBSD oObsd 9.1-RC3 FreeBSD 9.1-RC3 #0 r242324: Tue Oct 30 00:58:57 UTC 2012     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
Build Date: 29 November 2012  01:02:12AM
 
Current version of pixman: 0.24.2
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Thu Nov 29 02:34:53 2012
(==) Using config file: "/etc/X11/xorg.conf"
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...  XRANDR name: DVI-1
  Connector: DVI-I
  CRT2: INTERNAL_KLDSCP_DAC2
  DFP1: INTERNAL_UNIPHY
  DDC reg: 0x7e40
  XRANDR name: DVI-0
  Connector: DVI-I
  CRT1: INTERNAL_KLDSCP_DAC1
  DFP2: INTERNAL_UNIPHY2
  DDC reg: 0x7f10
finished output detect: 0
finished output detect: 1
finished all detect
(no debugging symbols found)...failed to set mtrr: Invalid argument
Output UNIPHY0 transmitter setup success
Blank CRTC 0 success
Disable CRTC memreq 0 success
Disable CRTC 0 success
Output UNIPHY2 transmitter setup success
Blank CRTC 1 success
Disable CRTC memreq 1 success
Disable CRTC 1 success
mc fb loc is 00df00d0


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e7adcfd7264c6037d8867bc064663ed4.squirrel>