Re: freebsd7 (and 8), radeon, xorg-server - deadlock or so

2010-02-16 Thread Oliver Pinter
Xorg.log after: #killall xdm #kldunload radeon #dmesg: info: [drm] Resetting GPU vgapci0: child drm0 requested pci_disable_busmaster info: [drm] MSI released drm0: detached Warning: memory type drm_bufs leaked memory on destroy (2 allocations, 64 bytes leaked). drm0: ATI Radeon HD 3450 on

Re: freebsd7 (and 8), radeon, xorg-server - deadlock or so

2010-02-15 Thread Martin Kristensen
On Sat, 13 Feb 2010 15:27:04 -0600 Robert Noland rnol...@freebsd.org wrote: On Sat, 2010-02-13 at 11:37 -0800, Norbert Papke wrote: On February 13, 2010, Robert Noland wrote: Ok, I've put up a patch at: http://people.freebsd.org/~rnoland/drm-radeon-test.patch

Re: freebsd7 (and 8), radeon, xorg-server - deadlock or so

2010-02-15 Thread Robert Noland
On Mon, 2010-02-15 at 14:23 +0100, Martin Kristensen wrote: On Sat, 13 Feb 2010 15:27:04 -0600 Robert Noland rnol...@freebsd.org wrote: On Sat, 2010-02-13 at 11:37 -0800, Norbert Papke wrote: On February 13, 2010, Robert Noland wrote: Ok, I've put up a patch at:

Re: freebsd7 (and 8), radeon, xorg-server - deadlock or so

2010-02-13 Thread Robert Noland
On Thu, 2010-02-11 at 08:49 +0100, Ulrich Spörlein wrote: On Wed, 10.02.2010 at 12:08:12 -0600, Robert Noland wrote: On Wed, 2010-02-10 at 19:00 +0100, Ulrich Spörlein wrote: On Wed, 10.02.2010 at 09:11:10 -0600, Robert Noland wrote: I have a strong suspicion that the issue is with

Re: freebsd7 (and 8), radeon, xorg-server - deadlock or so

2010-02-13 Thread Norbert Papke
On February 13, 2010, Robert Noland wrote: Ok, I've put up a patch at: http://people.freebsd.org/~rnoland/drm-radeon-test.patch This is sort of a mega patch and includes: Re-worked drm mapping code, that ensures that we don't end up incorrectly mapping certain maps with overlapping

Re: freebsd7 (and 8), radeon, xorg-server - deadlock or so

2010-02-13 Thread Robert Noland
On Sat, 2010-02-13 at 11:37 -0800, Norbert Papke wrote: On February 13, 2010, Robert Noland wrote: Ok, I've put up a patch at: http://people.freebsd.org/~rnoland/drm-radeon-test.patch This is sort of a mega patch and includes: Re-worked drm mapping code, that ensures that we

Re: freebsd7 (and 8), radeon, xorg-server - deadlock or so

2010-02-13 Thread Robert Noland
On Sat, 2010-02-13 at 11:37 -0800, Norbert Papke wrote: On February 13, 2010, Robert Noland wrote: Ok, I've put up a patch at: http://people.freebsd.org/~rnoland/drm-radeon-test.patch http://people.freebsd.org/~rnoland/drm-radeon-8-test.patch This one should work on 8... robert.

Re: freebsd7 (and 8), radeon, xorg-server - deadlock or so

2010-02-13 Thread Norbert Papke
On February 13, 2010, Robert Noland wrote: On Sat, 2010-02-13 at 11:37 -0800, Norbert Papke wrote: On February 13, 2010, Robert Noland wrote: Ok, I've put up a patch at: http://people.freebsd.org/~rnoland/drm-radeon-test.patch

Re: freebsd7 (and 8), radeon, xorg-server - deadlock or so

2010-02-13 Thread Oliver Pinter
The interest thing is, with the previous version of xorg-server never locked the system up... On 2/13/10, Norbert Papke npa...@acm.org wrote: On February 13, 2010, Robert Noland wrote: On Sat, 2010-02-13 at 11:37 -0800, Norbert Papke wrote: On February 13, 2010, Robert Noland wrote: Ok,

Re: freebsd7 (and 8), radeon, xorg-server - deadlock or so

2010-02-13 Thread Norbert Papke
On February 13, 2010, Norbert Papke wrote: I will repeat the experiment a few more times. After quite a number of trials, I never managed to get any further with the radeon driver. I also tried the radeonhd driver. It seems to behave a little differently. I usually get to an X screen with

Re: freebsd7 (and 8), radeon, xorg-server - deadlock or so

2010-02-11 Thread Martin Kristensen
On Wed, 10 Feb 2010 20:17:43 -0600 Robert Noland rnol...@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 rnol...@freebsd.org wrote: On Wed, 2010-02-10 at 22:05 +0100, Martin Kristensen wrote: On Wed, 10

Re: freebsd7 (and 8), radeon, xorg-server - deadlock or so

2010-02-11 Thread Robert Noland
On Thu, 2010-02-11 at 08:49 +0100, Ulrich Spörlein wrote: On Wed, 10.02.2010 at 12:08:12 -0600, Robert Noland wrote: On Wed, 2010-02-10 at 19:00 +0100, Ulrich Spörlein wrote: On Wed, 10.02.2010 at 09:11:10 -0600, Robert Noland wrote: I have a strong suspicion that the issue is with

Re: freebsd7 (and 8), radeon, xorg-server - deadlock or so

2010-02-11 Thread Robert Noland
On Thu, 2010-02-11 at 11:49 +0100, Martin Kristensen wrote: On Wed, 10 Feb 2010 20:17:43 -0600 Robert Noland rnol...@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 rnol...@freebsd.org wrote: On

Re: freebsd7 (and 8), radeon, xorg-server - deadlock or so

2010-02-11 Thread Martin Kristensen
On Thu, 11 Feb 2010 06:16:12 -0600 Robert Noland rnol...@freebsd.org wrote: On Thu, 2010-02-11 at 11:49 +0100, Martin Kristensen wrote: On Wed, 10 Feb 2010 20:17:43 -0600 Robert Noland rnol...@freebsd.org wrote: On Wed, 2010-02-10 at 23:43 +0100, Martin Kristensen wrote: On Wed, 10

Re: freebsd7 (and 8), radeon, xorg-server - deadlock or so

2010-02-11 Thread Martin Kristensen
On Thu, 11 Feb 2010 14:50:44 +0100 Martin Kristensen m...@pc.dk wrote: On Thu, 11 Feb 2010 06:16:12 -0600 Robert Noland rnol...@freebsd.org wrote: On Thu, 2010-02-11 at 11:49 +0100, Martin Kristensen wrote: On Wed, 10 Feb 2010 20:17:43 -0600 Robert Noland rnol...@freebsd.org wrote:

Re: freebsd7 (and 8), radeon, xorg-server - deadlock or so

2010-02-11 Thread Robert Noland
On Thu, 2010-02-11 at 17:41 +0100, Martin Kristensen wrote: On Thu, 11 Feb 2010 14:50:44 +0100 Martin Kristensen m...@pc.dk wrote: On Thu, 11 Feb 2010 06:16:12 -0600 Robert Noland rnol...@freebsd.org wrote: On Thu, 2010-02-11 at 11:49 +0100, Martin Kristensen wrote: On Wed, 10

Re: freebsd7 (and 8), radeon, xorg-server - deadlock or so

2010-02-10 Thread Vitaly Magerya
Oliver Pinter wrote: After updated the xorg* and dri* and dependency, the system going to deadlock at second start of xserver. I think it is not an uniqe issue, as others wrote them at freebsd-x11: http://lists.freebsd.org/pipermail/freebsd-x11/2010-February/009370.html I have a similar

Re: freebsd7 (and 8), radeon, xorg-server - deadlock or so

2010-02-10 Thread Robert Noland
On Wed, 2010-02-10 at 12:29 +0200, Vitaly Magerya wrote: Oliver Pinter wrote: After updated the xorg* and dri* and dependency, the system going to deadlock at second start of xserver. I think it is not an uniqe issue, as others wrote them at freebsd-x11:

Re: freebsd7 (and 8), radeon, xorg-server - deadlock or so

2010-02-10 Thread Vitaly Magerya
Robert Noland wrote: I have a similar problem with ATI Mobility Radeon 9000 (r250) and FreeBSD 8.0-RELEASE-p2 i386 (dmesg is at [1]). The system hangs when I run Xorg with xorg.conf obtained by `Xorg -configure' and do either of these: * pkill Xorg * close xorg via ^C and start it again *

Re: freebsd7 (and 8), radeon, xorg-server - deadlock or so

2010-02-10 Thread Andriy Gapon
on 10/02/2010 12:29 Vitaly Magerya said the following: Oliver Pinter wrote: After updated the xorg* and dri* and dependency, the system going to deadlock at second start of xserver. I think it is not an uniqe issue, as others wrote them at freebsd-x11:

Re: freebsd7 (and 8), radeon, xorg-server - deadlock or so

2010-02-10 Thread Vitaly Magerya
Andriy Gapon wrote: Please check if your X binary is linked with libthr (using ldd). I saw similar problems when it was not. That was because it was compiled without HAL support. It is not, and yes I use WITHOUT_HAL. Currently disabling DRI helps; should I try rebuilding xorg-server with HAL?

Re: freebsd7 (and 8), radeon, xorg-server - deadlock or so

2010-02-10 Thread Andriy Gapon
on 10/02/2010 18:01 Vitaly Magerya said the following: Andriy Gapon wrote: Please check if your X binary is linked with libthr (using ldd). I saw similar problems when it was not. That was because it was compiled without HAL support. It is not, and yes I use WITHOUT_HAL. Currently disabling

Re: freebsd7 (and 8), radeon, xorg-server - deadlock or so

2010-02-10 Thread Robert Noland
On Wed, 2010-02-10 at 18:01 +0200, Vitaly Magerya wrote: Andriy Gapon wrote: Please check if your X binary is linked with libthr (using ldd). I saw similar problems when it was not. That was because it was compiled without HAL support. It is not, and yes I use WITHOUT_HAL. Currently

Re: freebsd7 (and 8), radeon, xorg-server - deadlock or so

2010-02-10 Thread Ulrich Spörlein
On Wed, 10.02.2010 at 09:11:10 -0600, Robert Noland wrote: I have a strong suspicion that the issue is with bus_dma. If this is a pci based card, then it is trying to allocate 32MB of contiguous physical ram when the drm device is opened. This usually succeeds the first time that the driver

Re: freebsd7 (and 8), radeon, xorg-server - deadlock or so

2010-02-10 Thread Robert Noland
On Wed, 2010-02-10 at 19:00 +0100, Ulrich Spörlein wrote: On Wed, 10.02.2010 at 09:11:10 -0600, Robert Noland wrote: I have a strong suspicion that the issue is with bus_dma. If this is a pci based card, then it is trying to allocate 32MB of contiguous physical ram when the drm device is

Re: freebsd7 (and 8), radeon, xorg-server - deadlock or so

2010-02-10 Thread Vitaly Magerya
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. Unloading radeon also works, but the kernel

Re: freebsd7 (and 8), radeon, xorg-server - deadlock or so

2010-02-10 Thread Andriy Gapon
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

Re: freebsd7 (and 8), radeon, xorg-server - deadlock or so

2010-02-10 Thread Robert Noland
On Thu, 2010-02-11 at 06:58 +1100, Peter Jeremy wrote: On 2010-Feb-10 20:33:46 +0200, Andriy Gapon a...@icyb.net.ua wrote: 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

Re: freebsd7 (and 8), radeon, xorg-server - deadlock or so

2010-02-10 Thread Martin Kristensen
On Wed, 10 Feb 2010 20:33:46 +0200 Andriy Gapon a...@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

Re: freebsd7 (and 8), radeon, xorg-server - deadlock or so

2010-02-10 Thread Robert Noland
On Wed, 2010-02-10 at 22:05 +0100, Martin Kristensen wrote: On Wed, 10 Feb 2010 20:33:46 +0200 Andriy Gapon a...@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

Re: freebsd7 (and 8), radeon, xorg-server - deadlock or so

2010-02-10 Thread Robert Noland
On Wed, 2010-02-10 at 22:05 +0100, Martin Kristensen wrote: On Wed, 10 Feb 2010 20:33:46 +0200 Andriy Gapon a...@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

Re: freebsd7 (and 8), radeon, xorg-server - deadlock or so

2010-02-10 Thread Peter Jeremy
On 2010-Feb-10 20:33:46 +0200, Andriy Gapon a...@icyb.net.ua wrote: 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

Re: freebsd7 (and 8), radeon, xorg-server - deadlock or so

2010-02-10 Thread Martin Kristensen
On Wed, 10 Feb 2010 15:57:42 -0600 Robert Noland rnol...@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 a...@icyb.net.ua wrote: on 10/02/2010 20:29 Vitaly Magerya said the following: Robert Noland

Re: freebsd7 (and 8), radeon, xorg-server - deadlock or so

2010-02-10 Thread Martin Kristensen
On Wed, 10 Feb 2010 16:01:58 -0600 Robert Noland rnol...@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 a...@icyb.net.ua wrote: on 10/02/2010 20:29 Vitaly Magerya said the following: Robert Noland

Re: freebsd7 (and 8), radeon, xorg-server - deadlock or so

2010-02-10 Thread Robert Noland
On Wed, 2010-02-10 at 23:43 +0100, Martin Kristensen wrote: On Wed, 10 Feb 2010 16:01:58 -0600 Robert Noland rnol...@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 a...@icyb.net.ua wrote: on

Re: freebsd7 (and 8), radeon, xorg-server - deadlock or so

2010-02-10 Thread Ulrich Spörlein
On Wed, 10.02.2010 at 12:08:12 -0600, Robert Noland wrote: On Wed, 2010-02-10 at 19:00 +0100, Ulrich Spörlein wrote: On Wed, 10.02.2010 at 09:11:10 -0600, Robert Noland wrote: I have a strong suspicion that the issue is with bus_dma. If this is a pci based card, then it is trying to