Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Feb 2010 11:49:10 +0100
From:      Martin Kristensen <mik@pc.dk>
To:        Robert Noland <rnoland@FreeBSD.org>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: freebsd7 (and 8), radeon, xorg-server -> deadlock or so
Message-ID:  <20100211114910.392f919e@alpha.miknet.dk>
In-Reply-To: <1265854663.8609.117.camel@balrog.2hip.net>
References:  <6101e8c41002091524q25a7e026u585e575eb4f1589c@mail.gmail.com> <4B728A7A.60706@gmail.com> <4B72D57D.6080002@icyb.net.ua> <4B72D854.5080902@gmail.com> <1265818363.8609.70.camel@balrog.2hip.net> <4B72FB00.3000105@gmail.com> <4B72FC0A.1020701@icyb.net.ua> <20100210220508.790ee773@alpha.miknet.dk> <1265839318.8609.104.camel@balrog.2hip.net> <20100210234315.7abde83c@alpha.miknet.dk> <1265854663.8609.117.camel@balrog.2hip.net>

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

[-- Attachment #1 --]
On Wed, 10 Feb 2010 20:17:43 -0600
Robert Noland <rnoland@FreeBSD.org> wrote:

> On Wed, 2010-02-10 at 23:43 +0100, Martin Kristensen wrote:
> > On Wed, 10 Feb 2010 16:01:58 -0600
> > Robert Noland <rnoland@FreeBSD.org> wrote:
> > 
> > > On Wed, 2010-02-10 at 22:05 +0100, Martin Kristensen wrote:
> > > > On Wed, 10 Feb 2010 20:33:46 +0200
> > > > Andriy Gapon <avg@icyb.net.ua> wrote:
> > > > 
> > > > > on 10/02/2010 20:29 Vitaly Magerya said the following:
> > > > > > Robert Noland wrote:
> > > > > >>> It is not, and yes I use WITHOUT_HAL. Currently disabling
> > > > > >>> DRI helps; should I try rebuilding xorg-server with HAL?
> > > > > >> Yes, you can still disable hal at runtime by setting
> > > > > >> AutoAddDevices "Off" in xorg.conf.
> > > > > > 
> > > > > > Seems to work with HAL.
> > > > > 
> > > > > I've long thought that xorg server should be linked with
> > > > > libthr regardless of HAL option.  Unfortunately, I never came
> > > > > up with patch, nor have anyone else. Xorg server really uses
> > > > > pthreads when doing DRM and HAL brings in libthr dependency
> > > > > only as an accident.
> > > > > 
> > > > 
> > > > This is my first post to this list, so hello all.
> > > > 
> > > > I have been running with NoAccel for a long time, since
> > > > disabling DRI alone would cause a complete deadlock (screen to
> > > > standby, no ssh, no response to keyboard, etc.).
> > > > 
> > > > However, I rebuilt xorg-server with HAL support, and now simply
> > > > disabling DRI allows me to start X.
> > > > 
> > > > The card is RV790 based.
> > > 
> > > Just checked... This card should work with Accel and DRI... At
> > > least on -CURRENT with updated ports.  Check UPDATING, and set
> > > WITHOUT_NOUVEAU to get correct version of libdrm.
> > > 
> > > robert.
> > > 
> > 
> > I am on -STABLE built on Jan. 19. I updated mesa today (to
> > libdrm-2.4.17), and rebuilt xorg-server and drivers. I have
> > WITHOUT_NOUVEAU="YES" in /etc/make.conf. pkg_info reports
> > libGL-7.6.1.
> 
> Is that 8-STABLE or 7?  8 should work, and I think 7 should as well,
> but just checking.  6 won't work.
> 
I am on 8-STABLE.
> > I have tried loading radeon.ko manually before startx.
> 
> What are the results?  If things are not working, I'll want to see
> your xorg.conf, xorg.log, pciconf -lvb and a sysctl hw.dri with X
> started if you can get it.
> 
> robert.
> 

I have attached the output from pciconf -lvb, sysctl -a |grep ^hw.dri
reports:

hw.dri.0.name: radeon 0x96
hw.dri.0.vm: 
hw.dri.0.clients: 
hw.dri.0.vblank: 
hw.dri.0.debug: 0

I loaded radeon.ko from within my X session, which was started with DRI
"OFF".

If I run startx with DRI "True" or without an xorg.conf, the
screen goes into standby as if the pc is turned off, the mouse and
keyboard stops responding to keypresses (ie. numlock-led will not
respond to me pressing the key.) and I cannot ssh into the machine. As
far as I can tell it has crashed. 

There is nothing in /var/log/messages, which gives any indication
that something went wrong (If I boot the machine - startx and force a
reboot I get 2 x dmesg plus fsck messages). 

Xorg.0.log contains only messages from the last successful start of
xorg, and is a far as I can tell useless in tracking this down.

> > If it will help, I can switch to -CURRENT to see if that changes
> > anything.
> > 
> > Martin
> > 
> > PS. Robert, in researching this I got some idea of the effort you
> > put into this, thanks!
>  

Martin

-- 
Martin Kristensen

[-- Attachment #2 --]
hostb0@pci0:0:0:0:	class=0x060000 card=0x82951043 chip=0x29e08086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'X38/X48 (Bearlake) Processor to I/O Controller'
    class      = bridge
    subclass   = HOST-PCI
pcib1@pci0:0:1:0:	class=0x060400 card=0x82951043 chip=0x29e18086 rev=0x01 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = 'X38/X48 (Bearlake) PCIe Root Port 1'
    class      = bridge
    subclass   = PCI-PCI
uhci0@pci0:0:26:0:	class=0x0c0300 card=0x82771043 chip=0x29378086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801IB/IR/IH (ICH9 Family) USB Universal Host Controller'
    class      = serial bus
    subclass   = USB
    bar   [20] = type I/O Port, range 32, base 0xa800, size 32, enabled
uhci1@pci0:0:26:1:	class=0x0c0300 card=0x82771043 chip=0x29388086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801IB/IR/IH (ICH9 Family) USB Universal Host Controller'
    class      = serial bus
    subclass   = USB
    bar   [20] = type I/O Port, range 32, base 0xa880, size 32, enabled
uhci2@pci0:0:26:2:	class=0x0c0300 card=0x82771043 chip=0x29398086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801IB/IR/IH (ICH9 Family) USB Universal Host Controller'
    class      = serial bus
    subclass   = USB
    bar   [20] = type I/O Port, range 32, base 0xac00, size 32, enabled
ehci0@pci0:0:26:7:	class=0x0c0320 card=0x82771043 chip=0x293c8086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801IB/IR/IH (ICH9 Family) USB2 Enhanced Host Controller'
    class      = serial bus
    subclass   = USB
    bar   [10] = type Memory, range 32, base 0xfe7ffc00, size 1024, enabled
pcib2@pci0:0:28:0:	class=0x060400 card=0x82771043 chip=0x29408086 rev=0x02 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = '82801IB/IR/IH (ICH9 Family) PCIe Root Port 1'
    class      = bridge
    subclass   = PCI-PCI
pcib3@pci0:0:28:2:	class=0x060400 card=0x82771043 chip=0x29448086 rev=0x02 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = '82801IB/IR/IH (ICH9 Family) PCIe Root Port 3'
    class      = bridge
    subclass   = PCI-PCI
pcib4@pci0:0:28:4:	class=0x060400 card=0x82771043 chip=0x29488086 rev=0x02 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = '82801IB/IR/IH (ICH9 Family) PCIe Root Port 5'
    class      = bridge
    subclass   = PCI-PCI
uhci3@pci0:0:29:0:	class=0x0c0300 card=0x82771043 chip=0x29348086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801IB/IR/IH (ICH9 Family) USB Universal Host Controller'
    class      = serial bus
    subclass   = USB
    bar   [20] = type I/O Port, range 32, base 0xa080, size 32, enabled
uhci4@pci0:0:29:1:	class=0x0c0300 card=0x82771043 chip=0x29358086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801IB/IR/IH (ICH9 Family) USB Universal Host Controller'
    class      = serial bus
    subclass   = USB
    bar   [20] = type I/O Port, range 32, base 0xa400, size 32, enabled
uhci5@pci0:0:29:2:	class=0x0c0300 card=0x82771043 chip=0x29368086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801IB/IR/IH (ICH9 Family) USB Universal Host Controller'
    class      = serial bus
    subclass   = USB
    bar   [20] = type I/O Port, range 32, base 0xa480, size 32, enabled
ehci1@pci0:0:29:7:	class=0x0c0320 card=0x82771043 chip=0x293a8086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801IB/IR/IH (ICH9 Family) USB2 Enhanced Host Controller'
    class      = serial bus
    subclass   = USB
    bar   [10] = type Memory, range 32, base 0xfe7ff800, size 1024, enabled
pcib5@pci0:0:30:0:	class=0x060401 card=0x82771043 chip=0x244e8086 rev=0x92 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = '82801 Family (ICH2/3/4/5/6/7/8/9,63xxESB) Hub Interface to PCI Bridge'
    class      = bridge
    subclass   = PCI-PCI
isab0@pci0:0:31:0:	class=0x060100 card=0x82771043 chip=0x29168086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801IR (ICH9R) LPC Interface Controller'
    class      = bridge
    subclass   = PCI-ISA
atapci1@pci0:0:31:2:	class=0x010601 card=0x82771043 chip=0x29228086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801IB/IR/IH (ICH9 Family) 6 port SATA AHCI Controller'
    class      = mass storage
    subclass   = SATA
    bar   [10] = type I/O Port, range 32, base 0x9c00, size  8, enabled
    bar   [14] = type I/O Port, range 32, base 0x9880, size  4, enabled
    bar   [18] = type I/O Port, range 32, base 0x9800, size  8, enabled
    bar   [1c] = type I/O Port, range 32, base 0x9480, size  4, enabled
    bar   [20] = type I/O Port, range 32, base 0x9400, size 32, enabled
    bar   [24] = type Memory, range 32, base 0xfe7fe800, size 2048, enabled
none0@pci0:0:31:3:	class=0x0c0500 card=0x82771043 chip=0x29308086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801IB/IR/IH (ICH9 Family) SMBus Controller'
    class      = serial bus
    subclass   = SMBus
    bar   [10] = type Memory, range 64, base 0xfe7ff400, size 256, enabled
    bar   [20] = type I/O Port, range 32, base 0x400, size 32, enabled
vgapci0@pci0:1:0:0:	class=0x030000 card=0x27001682 chip=0x94601002 rev=0x00 hdr=0x00
    vendor     = 'ATI Technologies Inc. / Advanced Micro Devices, Inc.'
    class      = display
    subclass   = VGA
    bar   [10] = type Prefetchable Memory, range 64, base 0xd0000000, size 268435456, enabled
    bar   [18] = type Memory, range 64, base 0xfe8e0000, size 65536, enabled
    bar   [20] = type I/O Port, range 32, base 0xb000, size 256, enabled
none1@pci0:1:0:1:	class=0x040300 card=0xaa301682 chip=0xaa301002 rev=0x00 hdr=0x00
    vendor     = 'ATI Technologies Inc. / Advanced Micro Devices, Inc.'
    class      = multimedia
    subclass   = HDA
    bar   [10] = type Memory, range 64, base 0xfe8fc000, size 16384, enabled
mskc0@pci0:3:0:0:	class=0x020000 card=0x81f81043 chip=0x436411ab rev=0x12 hdr=0x00
    vendor     = 'Marvell Semiconductor (Was: Galileo Technology Ltd)'
    device     = 'Yukon PCI-E Gigabit Ethernet Controller (88E8056)'
    class      = network
    subclass   = ethernet
    bar   [10] = type Memory, range 64, base 0xfeafc000, size 16384, enabled
    bar   [18] = type I/O Port, range 32, base 0xd800, size 256, enabled
atapci0@pci0:2:0:0:	class=0x010185 card=0x824f1043 chip=0x2368197b rev=0x00 hdr=0x00
    vendor     = 'JMicron Technology Corp.'
    device     = 'JMB368 IDE Controller'
    class      = mass storage
    subclass   = ATA
    bar   [10] = type I/O Port, range 32, base 0xcc00, size  8, enabled
    bar   [14] = type I/O Port, range 32, base 0xc880, size  4, enabled
    bar   [18] = type I/O Port, range 32, base 0xc800, size  8, enabled
    bar   [1c] = type I/O Port, range 32, base 0xc480, size  4, enabled
    bar   [20] = type I/O Port, range 32, base 0xc400, size 16, enabled
oss_cmi878x0@pci0:5:2:0:	class=0x040100 card=0x97617284 chip=0x878813f6 rev=0x00 hdr=0x00
    vendor     = 'C-Media Electronics Inc.'
    device     = 'C-Media Oxygen HD (CMI8788/PCI-8CH)'
    class      = multimedia
    subclass   = audio
    bar   [10] = type I/O Port, range 32, base 0xe800, size 256, enabled
fwohci0@pci0:5:3:0:	class=0x0c0010 card=0x81fe1043 chip=0x30441106 rev=0xc0 hdr=0x00
    vendor     = 'VIA Technologies Inc'
    device     = 'VT6306 VIA Fire II IEEE-1394 OHCI Link Layer Controller'
    class      = serial bus
    subclass   = FireWire
    bar   [10] = type Memory, range 32, base 0xfebff800, size 2048, enabled
    bar   [14] = type I/O Port, range 32, base 0xec00, size 128, enabled

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