Re: [ECFT] drm/dri/mesa/xorg-server update [Part 1]

2011-03-21 Thread Urankar Mikael
This is still a problem with Xorg 1.9.5, the patch I've mentioned in my
previous mail were not merged in Xorg 1.9.5.

On Fri 18 March 2011 at 03:51:56PM +0800, Martin Wilke wrote:
 ok, we have a patch set for xorg server 1.9.5 release.
 
 On Fri, Mar 18, 2011 at 3:45 PM, Urankar Mikael 
 mikael.uran...@ujf-grenoble.fr wrote:
 
  On Wed 16 March 2011 at 09:00:30AM +0100, Urankar Mikael wrote:
   On Fri 11 March 2011 at 07:37:59PM +0800, Martin Wilke wrote:
Please report any problems and issues to x11 (at) FreeBSD.org.
   
  
   Works fine here with a GeForce Go 7300 (xf86-intel-2.7)
  
   I have problems with an ATI R710, Xorg randomly crash within 5 to 10
   minutes (sigbus) with KDE4 and desktop effects enabled.
   I've tried Xorg 1.9.3 but to not avail (againg sigbus). I've reverted
   Xorg to 1.7.7 and I can use my desktop more than 10 minutes...
   If I disable desktop effect, Xorg 1.9.4 runs happily with no crash.
   I've recompiled xorg-server, libX11, libGL etc with debug flags but I
   can't get a useful backtrace.
   I've just seen [1], I'll try to get more info later today and will post
   my findings.
  
   [1] http://www.x.org/wiki/Development/Documentation/ServerDebugging
  
 
  I was able to get a backtrace [1]. The trace look similar to the problem
  described at [2], Andriy Gapon had the same problem apparently. I'm
  using the patch at [3] and everything works fine since.
  Patches for xorg-server port are available at [4].
 
  [1] http://membres.multimania.fr/mike8/bsd/xorg-1.9.4/btfull
  [2] https://bugs.freedesktop.org/show_bug.cgi?id=28181
  [3] http://lists.x.org/archives/xorg-devel/2010-December/016969.html
  [4] http://membres.multimania.fr/mike8/bsd/xorg-1.9.4/patch-glx__glxcmds.c
  http://membres.multimania.fr/mike8/bsd/xorg-1.9.4/patch-glx__glxdrawable.h
  http://membres.multimania.fr/mike8/bsd/xorg-1.9.4/patch-glx__glxext.c
 
  HTH,
  Mikaėl
 

-- 
Mikaël Urankar
Moyens Informatiques et Réseaux
IUT1 GRENOBLE BP67
38402 ST MARTIN D'HERES CEDEX
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: [ECFT] drm/dri/mesa/xorg-server update [Part 1]

2011-03-18 Thread Urankar Mikael
On Wed 16 March 2011 at 09:00:30AM +0100, Urankar Mikael wrote:
 On Fri 11 March 2011 at 07:37:59PM +0800, Martin Wilke wrote:
  Please report any problems and issues to x11 (at) FreeBSD.org.
  
 
 Works fine here with a GeForce Go 7300 (xf86-intel-2.7)
 
 I have problems with an ATI R710, Xorg randomly crash within 5 to 10
 minutes (sigbus) with KDE4 and desktop effects enabled.
 I've tried Xorg 1.9.3 but to not avail (againg sigbus). I've reverted
 Xorg to 1.7.7 and I can use my desktop more than 10 minutes...
 If I disable desktop effect, Xorg 1.9.4 runs happily with no crash.
 I've recompiled xorg-server, libX11, libGL etc with debug flags but I
 can't get a useful backtrace.
 I've just seen [1], I'll try to get more info later today and will post
 my findings.
 
 [1] http://www.x.org/wiki/Development/Documentation/ServerDebugging
 

I was able to get a backtrace [1]. The trace look similar to the problem
described at [2], Andriy Gapon had the same problem apparently. I'm
using the patch at [3] and everything works fine since.
Patches for xorg-server port are available at [4].

[1] http://membres.multimania.fr/mike8/bsd/xorg-1.9.4/btfull
[2] https://bugs.freedesktop.org/show_bug.cgi?id=28181
[3] http://lists.x.org/archives/xorg-devel/2010-December/016969.html
[4] http://membres.multimania.fr/mike8/bsd/xorg-1.9.4/patch-glx__glxcmds.c
http://membres.multimania.fr/mike8/bsd/xorg-1.9.4/patch-glx__glxdrawable.h
http://membres.multimania.fr/mike8/bsd/xorg-1.9.4/patch-glx__glxext.c

HTH,
Mikaël
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: [ECFT] drm/dri/mesa/xorg-server update [Part 1]

2011-03-18 Thread Martin Wilke
ok, we have a patch set for xorg server 1.9.5 release.

On Fri, Mar 18, 2011 at 3:45 PM, Urankar Mikael 
mikael.uran...@ujf-grenoble.fr wrote:

 On Wed 16 March 2011 at 09:00:30AM +0100, Urankar Mikael wrote:
  On Fri 11 March 2011 at 07:37:59PM +0800, Martin Wilke wrote:
   Please report any problems and issues to x11 (at) FreeBSD.org.
  
 
  Works fine here with a GeForce Go 7300 (xf86-intel-2.7)
 
  I have problems with an ATI R710, Xorg randomly crash within 5 to 10
  minutes (sigbus) with KDE4 and desktop effects enabled.
  I've tried Xorg 1.9.3 but to not avail (againg sigbus). I've reverted
  Xorg to 1.7.7 and I can use my desktop more than 10 minutes...
  If I disable desktop effect, Xorg 1.9.4 runs happily with no crash.
  I've recompiled xorg-server, libX11, libGL etc with debug flags but I
  can't get a useful backtrace.
  I've just seen [1], I'll try to get more info later today and will post
  my findings.
 
  [1] http://www.x.org/wiki/Development/Documentation/ServerDebugging
 

 I was able to get a backtrace [1]. The trace look similar to the problem
 described at [2], Andriy Gapon had the same problem apparently. I'm
 using the patch at [3] and everything works fine since.
 Patches for xorg-server port are available at [4].

 [1] http://membres.multimania.fr/mike8/bsd/xorg-1.9.4/btfull
 [2] https://bugs.freedesktop.org/show_bug.cgi?id=28181
 [3] http://lists.x.org/archives/xorg-devel/2010-December/016969.html
 [4] http://membres.multimania.fr/mike8/bsd/xorg-1.9.4/patch-glx__glxcmds.c
 http://membres.multimania.fr/mike8/bsd/xorg-1.9.4/patch-glx__glxdrawable.h
 http://membres.multimania.fr/mike8/bsd/xorg-1.9.4/patch-glx__glxext.c

 HTH,
 Mikaėl

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: [ECFT] drm/dri/mesa/xorg-server update [Part 1]

2011-03-16 Thread Urankar Mikael
On Fri 11 March 2011 at 07:37:59PM +0800, Martin Wilke wrote:
 Please report any problems and issues to x11 (at) FreeBSD.org.
 

Works fine here with a GeForce Go 7300 (xf86-intel-2.7)

I have problems with an ATI R710, Xorg randomly crash within 5 to 10
minutes (sigbus) with KDE4 and desktop effects enabled.
I've tried Xorg 1.9.3 but to not avail (againg sigbus). I've reverted
Xorg to 1.7.7 and I can use my desktop more than 10 minutes...
If I disable desktop effect, Xorg 1.9.4 runs happily with no crash.
I've recompiled xorg-server, libX11, libGL etc with debug flags but I
can't get a useful backtrace.
I've just seen [1], I'll try to get more info later today and will post
my findings.

[1] http://www.x.org/wiki/Development/Documentation/ServerDebugging

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: [ECFT] drm/dri/mesa/xorg-server update [Part 1]

2011-03-16 Thread Urankar Mikael
On Wed 16 March 2011 at 09:00:30AM +0100, Urankar Mikael wrote:
 On Fri 11 March 2011 at 07:37:59PM +0800, Martin Wilke wrote:
  Please report any problems and issues to x11 (at) FreeBSD.org.
  
 
 Works fine here with a GeForce Go 7300 (xf86-intel-2.7)
 

Oups, I'm using the nv driver (xf86-video-nv-2.1.18) of course.
Thanks to Tom Evans for pointing this out.

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: [ECFT] drm/dri/mesa/xorg-server update [Part 1]

2011-03-16 Thread David Naylor
On Friday 11 March 2011 13:37:59 Martin Wilke wrote:
 Hi,
 
 First of all, note that *this is very experimental, so you really have to
 know what
 you’re doing.* We managed to get drm/dri with the newer xorg-server to
 work, and we have removed the support for WITHOUT_NOUVEAU.
 
 We have just updated the xorg-dev repo:
 
 – libdrm - 2.4.24
 – libGL to 7.10.1
 – libGLU to 7.10.1
 – libGLUw to 7.10.1
 – libglut to 7.10.1
 – xproto to 7.0.17
 – libXaw to 1.0.9
 – libXt to 1.1.0
 – libX11 to 1.4.1
 – xorg-server to 1.9.4

It appears graphics/mesa-demo is not updated.  

 After installing these, you will have to rebuild the following ports:
 
 – your graphic driver

x11/nvidia-driver 

 – keybord driver
 – mouse/synaptics driver

 Please report any problems and issues to x11 (at) FreeBSD.org.

I have no problems ;-).  I have tested some wine games and all run without 
problem.  
 


signature.asc
Description: This is a digitally signed message part.


Re: [ECFT] drm/dri/mesa/xorg-server update [Part 1]

2011-03-15 Thread Pavel Timofeev

Also I tried with intel D510MO motherboard (dmidecode said me Intel(R) GMA
3150 Video Device).
/usr/ports/x11-drivers/xf86-video-intel doesn`t support this video device.
/usr/ports/x11-drivers/xf86-video-intel29 doesn`t compile (ussually I use
this driver) and patches provided by George Liaskos (Mar 12, 2011; 07:21pm
and Mar 14, 2011; 12:03am) doesn`t help =(  

===  Building for xf86-video-intel29-2.9.1
make `test -z @  echo -s` all-recursive
Making all in uxa
../doltcompile /bin/sh
/usr/ports/x11-drivers/xf86-video-intel29/work/xf86-video-intel-2.9.1/./shave
cc cc -DHAVE_CONFIG_H -I. -I..-D_THREAD_SAFE -I/usr/local/include/xorg
-I/usr/local/include -I/usr/local/include/pixman-1-I/usr/local/include
-I/usr/local/include/libdrm -Wall -Wpointer-arith -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations  -Wnested-externs
-fno-strict-aliasing -D_THREAD_SAFE -I/usr/local/include/xorg
-I/usr/local/include -I/usr/local/include/pixman-1  -O2 -pipe
-fno-strict-aliasing -MT uxa.lo -MD -MP -MF .deps/uxa.Tpo -c -o uxa.lo uxa.c
  CCuxa.o
In file included from uxa.c:37:
uxa-priv.h: In function 'uxa_get_screen':
uxa-priv.h:185: warning: passing argument 2 of 'dixLookupPrivate' from
incompatible pointer type
uxa.c: In function 'uxa_close_screen':
uxa.c:393: warning: 'Xfree' is deprecated (declared at
/usr/local/include/xorg/os.h:234)
uxa.c: In function 'uxa_driver_alloc':
uxa.c:411: warning: 'Xcalloc' is deprecated (declared at
/usr/local/include/xorg/os.h:225)
uxa.c: In function 'uxa_driver_init':
uxa.c:463: warning: 'Xcalloc' is deprecated (declared at
/usr/local/include/xorg/os.h:225)
uxa.c:473: warning: passing argument 2 of 'dixSetPrivate' from incompatible
pointer type
mv -f .deps/uxa.Tpo .deps/uxa.Plo
../doltcompile /bin/sh
/usr/ports/x11-drivers/xf86-video-intel29/work/xf86-video-intel-2.9.1/./shave
cc cc -DHAVE_CONFIG_H -I. -I..-D_THREAD_SAFE -I/usr/local/include/xorg
-I/usr/local/include -I/usr/local/include/pixman-1-I/usr/local/include
-I/usr/local/include/libdrm -Wall -Wpointer-arith -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations  -Wnested-externs
-fno-strict-aliasing -D_THREAD_SAFE -I/usr/local/include/xorg
-I/usr/local/include -I/usr/local/include/pixman-1  -O2 -pipe
-fno-strict-aliasing -MT uxa-accel.lo -MD -MP -MF .deps/uxa-accel.Tpo -c -o
uxa-accel.lo uxa-accel.c
  CCuxa-accel.o
In file included from uxa-accel.c:33:
uxa-priv.h: In function 'uxa_get_screen':
uxa-priv.h:185: warning: passing argument 2 of 'dixLookupPrivate' from
incompatible pointer type
uxa-accel.c: In function 'uxa_poly_point':
uxa-accel.c:523: warning: 'Xalloc' is deprecated (declared at
/usr/local/include/xorg/os.h:221)
uxa-accel.c:537: warning: 'Xfree' is deprecated (declared at
/usr/local/include/xorg/os.h:234)
uxa-accel.c: In function 'uxa_poly_lines':
uxa-accel.c:560: warning: 'Xalloc' is deprecated (declared at
/usr/local/include/xorg/os.h:221)
uxa-accel.c:576: warning: 'Xfree' is deprecated (declared at
/usr/local/include/xorg/os.h:234)
uxa-accel.c:600: warning: 'Xfree' is deprecated (declared at
/usr/local/include/xorg/os.h:234)
uxa-accel.c: In function 'uxa_poly_segment':
uxa-accel.c:631: warning: 'Xalloc' is deprecated (declared at
/usr/local/include/xorg/os.h:221)
uxa-accel.c:659: warning: 'Xfree' is deprecated (declared at
/usr/local/include/xorg/os.h:234)
mv -f .deps/uxa-accel.Tpo .deps/uxa-accel.Plo
../doltcompile /bin/sh
/usr/ports/x11-drivers/xf86-video-intel29/work/xf86-video-intel-2.9.1/./shave
cc cc -DHAVE_CONFIG_H -I. -I..-D_THREAD_SAFE -I/usr/local/include/xorg
-I/usr/local/include -I/usr/local/include/pixman-1-I/usr/local/include
-I/usr/local/include/libdrm -Wall -Wpointer-arith -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations  -Wnested-externs
-fno-strict-aliasing -D_THREAD_SAFE -I/usr/local/include/xorg
-I/usr/local/include -I/usr/local/include/pixman-1  -O2 -pipe
-fno-strict-aliasing -MT uxa-glyphs.lo -MD -MP -MF .deps/uxa-glyphs.Tpo -c
-o uxa-glyphs.lo uxa-glyphs.c
  CCuxa-glyphs.o
In file included from uxa-glyphs.c:49:
uxa-priv.h: In function 'uxa_get_screen':
uxa-priv.h:185: warning: passing argument 2 of 'dixLookupPrivate' from
incompatible pointer type
uxa-glyphs.c: In function 'uxa_unrealize_glyph_caches':
uxa-glyphs.c:131: warning: 'Xfree' is deprecated (declared at
/usr/local/include/xorg/os.h:234)
uxa-glyphs.c:136: warning: 'Xfree' is deprecated (declared at
/usr/local/include/xorg/os.h:234)
uxa-glyphs.c: In function 'uxa_realize_glyph_caches':
uxa-glyphs.c:217: warning: 'Xalloc' is deprecated (declared at
/usr/local/include/xorg/os.h:221)
uxa-glyphs.c:218: warning: 'Xalloc' is deprecated (declared at
/usr/local/include/xorg/os.h:221)
mv -f .deps/uxa-glyphs.Tpo .deps/uxa-glyphs.Plo
../doltcompile /bin/sh
/usr/ports/x11-drivers/xf86-video-intel29/work/xf86-video-intel-2.9.1/./shave
cc cc -DHAVE_CONFIG_H -I. -I..-D_THREAD_SAFE -I/usr/local/include/xorg
-I/usr/local/include 

Re: [ECFT] drm/dri/mesa/xorg-server update [Part 1]

2011-03-14 Thread Ruslan Mahmatkhanov

14.03.2011 00:03, George Liaskos пишет:

The crash is probably happening the first time something tries to access
dri, libdrm.


I believe that kwin tries to use desktop effects by default. Better
try a simple xinit for start to see how it goes and post the log.

Ok, after some research about the patch i believe that this how it should be :



Tried both this patch and previous one. It compiles fine, but still doesn't 
working. There is the messages:


Xorg.0.log:
[22.760] (II) intel(0): I830CheckAvailableMemory: 4026368 kB available
[22.760] drmOpenDevice: node name is /dev/dri/card0
[22.761] Failed to change owner or group for file /dev/dri! 2: No such file 
or directory
[22.761] Failed to change owner or group for file /dev/dri/card0! 2: No such 
file or directory

[22.761] drmOpenDevice: open result is -1, (No such file or directory)
[22.761] Failed to change owner or group for file /dev/dri/card0! 2: No such 
file or directory

[22.761] drmOpenDevice: open result is -1, (No such file or directory)
[22.761] drmOpenDevice: Open failed

gdm/:0.log
/libexec/ld-elf.so.1: /usr/local/lib/xorg/modules/drivers/intel_drv.so: 
Undefined symbol dixRequestPrivate


gdm/:0-greeter.log
polkit-gnome-authentication-agent-1: Fatal IO error 35 (Resource temporarily 
unavailable) on X server :0.0.
polkit-gnome-authentication-agent-1: Fatal IO error 2 (No such file or 
directory) on X server :0.0.


The screen is just blinks couple of times and then just stay black.
I've tried this on 8-stable i386 with gnome, x11-drivers/xf86-video-intel.
My card is Mobile 945GM/GU Express Integrated Graphics Controller.

Since this is my working system, i had to revert to old versions from ports.

--
Regards,
Ruslan
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: [ECFT] drm/dri/mesa/xorg-server update [Part 1]

2011-03-14 Thread Kostik Belousov
On Mon, Mar 14, 2011 at 10:25:21AM +0300, Ruslan Mahmatkhanov wrote:
 14.03.2011 00:03, George Liaskos пишет:
 The crash is probably happening the first time something tries to access
 dri, libdrm.
 
 I believe that kwin tries to use desktop effects by default. Better
 try a simple xinit for start to see how it goes and post the log.
 
 Ok, after some research about the patch i believe that this how it should 
 be :
 
 
 Tried both this patch and previous one. It compiles fine, but still doesn't 
 working. There is the messages:
 
 Xorg.0.log:
 [22.760] (II) intel(0): I830CheckAvailableMemory: 4026368 kB available
 [22.760] drmOpenDevice: node name is /dev/dri/card0
 [22.761] Failed to change owner or group for file /dev/dri! 2: No such 
 file or directory
 [22.761] Failed to change owner or group for file /dev/dri/card0! 2: No 
 such file or directory
 [22.761] drmOpenDevice: open result is -1, (No such file or directory)
 [22.761] Failed to change owner or group for file /dev/dri/card0! 2: No 
 such file or directory
 [22.761] drmOpenDevice: open result is -1, (No such file or directory)
 [22.761] drmOpenDevice: Open failed
This is only an excerpt from the full log, and it is due to slightly weird
open procedure for drm node. Either post the whole log, or look at
the log down, where driver should say that drm opened and dri initialized.

 
 gdm/:0.log
 /libexec/ld-elf.so.1: /usr/local/lib/xorg/modules/drivers/intel_drv.so: 
 Undefined symbol dixRequestPrivate
This looks more serious and might be the actual cause of failed startup.

 
 gdm/:0-greeter.log
 polkit-gnome-authentication-agent-1: Fatal IO error 35 (Resource 
 temporarily unavailable) on X server :0.0.
 polkit-gnome-authentication-agent-1: Fatal IO error 2 (No such file or 
 directory) on X server :0.0.
 
 The screen is just blinks couple of times and then just stay black.
 I've tried this on 8-stable i386 with gnome, x11-drivers/xf86-video-intel.
 My card is Mobile 945GM/GU Express Integrated Graphics Controller.
 
 Since this is my working system, i had to revert to old versions from ports.
 
 -- 
 Regards,
 Ruslan
 ___
 freebsd-...@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-x11
 To unsubscribe, send any mail to freebsd-x11-unsubscr...@freebsd.org


pgpx7LuHcTCqF.pgp
Description: PGP signature


Re: [ECFT] drm/dri/mesa/xorg-server update [Part 1]

2011-03-14 Thread George Liaskos
 /libexec/ld-elf.so.1: /usr/local/lib/xorg/modules/drivers/intel_drv.so:
 Undefined symbol dixRequestPrivate

I am at work right now but from a quick look dixRequestPrivate seems
to be removed from xserver somewhere between 1.8 and 1.9 branch.
It was defined at include/xorg/privates.h and this function gets
called from src/i830_exa.c:1038
http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/tree/src/i830_exa.c?h=2.7

There seems to be some info about the dixRequestPrivate replacement here
http://lists.x.org/archives/xorg-devel/2010-April/007892.html
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: [ECFT] drm/dri/mesa/xorg-server update [Part 1]

2011-03-14 Thread Ruslan Mahmatkhanov

14.03.2011 12:06, Kostik Belousov пишет:

On Mon, Mar 14, 2011 at 10:25:21AM +0300, Ruslan Mahmatkhanov wrote:

14.03.2011 00:03, George Liaskos пишет:

The crash is probably happening the first time something tries to access
dri, libdrm.


I believe that kwin tries to use desktop effects by default. Better
try a simple xinit for start to see how it goes and post the log.

Ok, after some research about the patch i believe that this how it should
be :



Tried both this patch and previous one. It compiles fine, but still doesn't
working. There is the messages:

Xorg.0.log:
[22.760] (II) intel(0): I830CheckAvailableMemory: 4026368 kB available
[22.760] drmOpenDevice: node name is /dev/dri/card0
[22.761] Failed to change owner or group for file /dev/dri! 2: No such
file or directory
[22.761] Failed to change owner or group for file /dev/dri/card0! 2: No
such file or directory
[22.761] drmOpenDevice: open result is -1, (No such file or directory)
[22.761] Failed to change owner or group for file /dev/dri/card0! 2: No
such file or directory
[22.761] drmOpenDevice: open result is -1, (No such file or directory)
[22.761] drmOpenDevice: Open failed

This is only an excerpt from the full log, and it is due to slightly weird
open procedure for drm node. Either post the whole log, or look at
the log down, where driver should say that drm opened and dri initialized.



Yes, you are right. But i thought it worth mentioned.


gdm/:0.log
/libexec/ld-elf.so.1: /usr/local/lib/xorg/modules/drivers/intel_drv.so:
Undefined symbol dixRequestPrivate

This looks more serious and might be the actual cause of failed startup.


Seems so.

--
Regards,
Ruslan
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: [ECFT] drm/dri/mesa/xorg-server update [Part 1]

2011-03-14 Thread Gustau Pérez i Querol

Al 14/03/2011 10:06, En/na Kostik Belousov ha escrit:

On Mon, Mar 14, 2011 at 10:25:21AM +0300, Ruslan Mahmatkhanov wrote:

14.03.2011 00:03, George Liaskos пишет:

The crash is probably happening the first time something tries to access
dri, libdrm.

I believe that kwin tries to use desktop effects by default. Better
try a simple xinit for start to see how it goes and post the log.

Ok, after some research about the patch i believe that this how it should
be :


Tried both this patch and previous one. It compiles fine, but still doesn't
working. There is the messages:

Xorg.0.log:
[22.760] (II) intel(0): I830CheckAvailableMemory: 4026368 kB available
[22.760] drmOpenDevice: node name is /dev/dri/card0
[22.761] Failed to change owner or group for file /dev/dri! 2: No such
file or directory
[22.761] Failed to change owner or group for file /dev/dri/card0! 2: No
such file or directory
[22.761] drmOpenDevice: open result is -1, (No such file or directory)
[22.761] Failed to change owner or group for file /dev/dri/card0! 2: No
such file or directory
[22.761] drmOpenDevice: open result is -1, (No such file or directory)
[22.761] drmOpenDevice: Open failed

This is only an excerpt from the full log, and it is due to slightly weird
open procedure for drm node. Either post the whole log, or look at
the log down, where driver should say that drm opened and dri initialized.


gdm/:0.log
/libexec/ld-elf.so.1: /usr/local/lib/xorg/modules/drivers/intel_drv.so:
Undefined symbol dixRequestPrivate

This looks more serious and might be the actual cause of failed startup.


  I made a simple patch which uses dixRegisterPrivateKey in place of 
dixRequestPrivate (i found somewhere the dixRequestPrivate got 
deprecated). It made it compile and X tries to start. The problem then 
is that X sigfaults because an assertion failed.


  This evening (UTC+1) it will the full log, because I think the 
assertion occurs because the way it reserves the private key is incorrect.


   However, seeing the amount of changes with xf86-video-intel (because 
of changes with xorg-server), I think it would be very difficult to get 
a working version of the old xf86-video-intel{27|29} drivers. I think it 
would be better to wait until gem/kms works (by the way, can we help 
with its development ?)


   Best regards,

   Gus

--
Gustau Pérez i Querol
Tècnic de sistemes.
Departament d'Enginyeria Telemàtica
Universitat Polítècnica de Catalunya
(34) 934 010 986

PGP KEY : http://www-entel.upc.edu/gus/gus.asc
Stop top-posting :  http://ca.wikipedia.org/wiki/Top-posting
http://en.wikipedia.org/wiki/Posting_style  

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: [ECFT] drm/dri/mesa/xorg-server update [Part 1]

2011-03-14 Thread Pavel Timofeev

Hi!
Complete!

During upgrade portmaster (-a) said me 
...
cc -I. -I../mesa -I../mapi -I../../include  -I/usr/local/include -O2 -pipe
-fno-strict-aliasing -Wall -Wmissing-prototypes -std=c99 -ffast-math
-fvisibility=hidden -fno-strict-aliasing  -fPIC  -DUSE_X86_ASM -DUSE_MMX_ASM
-DUSE_3DNOW_ASM -DUSE_SSE_ASM -DHAVE_POSIX_MEMALIGN -DUSE_XCB -DPTHREADS
-DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DHAVE_ALIAS
-DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DHAVE_XCB_DRI2 
-DFEATURE_GL=1 -L/usr/local/lib glcpp/glcpp-lex.o glcpp/glcpp-parse.o
glcpp/pp.o glcpp/glcpp.o ../mesa/program/hash_table.o
../../src/glsl/libglsl.a -o glcpp/glcpp
gmake[2]: Leaving directory
`/usr/ports/graphics/dri/work/Mesa-7.10.1/src/glsl'
gmake[2]: Entering directory
`/usr/ports/graphics/dri/work/Mesa-7.10.1/src/mesa'
python -t -O -O main/es_generator.py -S main/APIspec.xml -V GLES1.1 
main/api_exec_es1.c
Traceback (most recent call last):
  File main/es_generator.py, line 26, in module
import APIspecutil as apiutil
  File
/usr/ports/graphics/dri/work/Mesa-7.10.1/src/mesa/main/APIspecutil.py,
line 28, in module
import libxml2
ImportError: No module named libxml2
gmake[2]: *** No rule to make target `depend', needed by `default'.  Stop.
gmake[2]: Leaving directory
`/usr/ports/graphics/dri/work/Mesa-7.10.1/src/mesa'
gmake[1]: *** [subdirs] Error 1
gmake[1]: Leaving directory `/usr/ports/graphics/dri/work/Mesa-7.10.1/src'
gmake: *** [default] Error 1
*** Error code 1

Stop in /usr/ports/graphics/dri.

=== make failed for graphics/dri
=== Aborting update

=== Update for graphics/dri failed
=== Aborting update

Then I installed /usr/ports/textproc/py-libxml2.
Then portmaster (-a) finished work successfully.

http://pastebin.com/90RdXudb
FreeBSD 8.2 RELEASE i386, xorg-server-1.9.4(with_hal),
xf86-video-ati-6.14.0_1.

I just tried to play in UrbanTerror on-line game, and it works fine ;) xfce
4.8 too.
Waiting for [part 2] =)


miwi-2 wrote:
 
 Hi,
 
 First of all, note that *this is very experimental, so you really have to
 know what
 you’re doing.* We managed to get drm/dri with the newer xorg-server to
 work,
 and we have removed the support for WITHOUT_NOUVEAU.
 
 We have just updated the xorg-dev repo:
 
 – libdrm - 2.4.24
 – libGL to 7.10.1
 – libGLU to 7.10.1
 – libGLUw to 7.10.1
 – libglut to 7.10.1
 – xproto to 7.0.17
 – libXaw to 1.0.9
 – libXt to 1.1.0
 – libX11 to 1.4.1
 – xorg-server to 1.9.4
 
 After installing these, you will have to rebuild the following ports:
 
 – your graphic driver
 – keybord driver
 – mouse/synaptics driver
 
 Upon rebuilt, restart them.
 So to get the xorg stuff you will need to:
 run
 
 svn co https://trillian.chruetertee.ch/svn/ports/branches/xorg-dev
 
 A small merge script to merge the svn checkout into the real portstree can
 be found here:
 
 http://people.freebsd.org/~miwi/xorg/xorgmerge
 
 The script is a modified version of the kdemerge script. Please set the
 KDEDIR
 variable to the path of your X.org ports.
 
 After merging, run one of the following command, depending on which tool
 you
 use
 to manage your installed packages.
 
 portupgrade -af \*
 portmaster -af
 
 Please report any problems and issues to x11 (at) FreeBSD.org.
 
 *Again, please be aware that this is very experimental*, and
 I personally haven’t tested any 3D things yet, but we want
 to share our work and start testing to get early feedback
 for improvements. We plan to update Xorg fully to 7.6 after
 we get some feedback for update part 1. It will be much easier
 for us to figure out what the problems are with the updates
 being separated in 3 parts. Please make sure you know what
 you’re doing.
 
 Thanks to Piter (gahr@) for helping me to get it compiled with our
 base gcc version.
 
 - Martin
 
 PS: ECFT - Experimental Call for Testing [image: :P]
 ___
 freebsd-ports@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-ports
 To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
 
 

-- 
View this message in context: 
http://old.nabble.com/-ECFT--drm-dri-mesa-xorg-server-update--Part-1--tp31124272p31144133.html
Sent from the freebsd-ports mailing list archive at Nabble.com.

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: [ECFT] drm/dri/mesa/xorg-server update [Part 1]

2011-03-13 Thread Martin Wilke
On Mon, Mar 14, 2011 at 1:20 AM, Tilman Keskinöz ar...@freebsd.org wrote:

 Hi List,

 I can confirm that the patch fixes compilation.

 The server starts up, but after the KDE4 splashscreen it segfaults.

 I tried removing the dri modules from my config, but it does not work.


 I tried to start with an autogenerated config, but the autogenerated
 config doesn't work either (on Ctrl+C the Server aborts).


ok this is with intel ?



 On Mar 12, 2011, at 17:21 , George Liaskos wrote:

  I compiled the intel driver with the following patch:
 
  --- src/i830_video.c.orig 2011-03-12 18:00:01.0 +0200
  +++ src/i830_video.c  2011-03-12 17:59:08.0 +0200
  @@ -2164,7 +2164,7 @@
  static void
  i830_fill_colorkey (ScreenPtr pScreen, uint32_t key, RegionPtr clipboxes)
  {
  -   DrawablePtr root = WindowTable[pScreen-myNum]-drawable;
  +   DrawablePtr root = pScreen-root-drawable.id;
 XID   pval[2];
 BoxPtr  pbox = REGION_RECTS(clipboxes);
 int   i, nbox = REGION_NUM_RECTS(clipboxes);
  @@ -2176,7 +2176,7 @@
 gc = GetScratchGC(root-depth, pScreen);
 pval[0] = key;
 pval[1] = IncludeInferiors;
  -   (void) ChangeGC(gc, GCForeground|GCSubwindowMode, pval);
  +   dixChangeGC(NullClient, gc, GCForeground|GCSubwindowMode, NULL);
 ValidateGC(root, gc);
 
 rects = xalloc (nbox * sizeof(xRectangle));
 
  It works but it doesn't support dri1,
 
 http://cgit.freedesktop.org/mesa/mesa/commit/?id=48c0ff14240044935049a1114edfc69bc6682b95
 
  Log: http://pastebin.com/W1iiDvWX
  ___
  freebsd-...@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-x11
  To unsubscribe, send any mail to freebsd-x11-unsubscr...@freebsd.org

 ___
 freebsd-ports@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-ports
 To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: [ECFT] drm/dri/mesa/xorg-server update [Part 1]

2011-03-13 Thread Tilman Keskinöz

On Mar 13, 2011, at 18:40 , Martin Wilke wrote:
 
 Hi List,
 
 I can confirm that the patch fixes compilation.
 
 The server starts up, but after the KDE4 splashscreen it segfaults.
 
 I tried removing the dri modules from my config, but it does not work.
 
 
 I tried to start with an autogenerated config, but the autogenerated
 config doesn't work either (on Ctrl+C the Server aborts).
 
 
 ok this is with intel ?

Yes, with Intel. The card is an Intel G33.
The crash is probably happening the first time something tries to access
dri, libdrm.
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: [ECFT] drm/dri/mesa/xorg-server update [Part 1]

2011-03-13 Thread Martin Wilke
On Mon, Mar 14, 2011 at 2:04 AM, Tilman Keskinöz ar...@freebsd.org wrote:


 On Mar 13, 2011, at 18:40 , Martin Wilke wrote:
 
  Hi List,
 
  I can confirm that the patch fixes compilation.
 
  The server starts up, but after the KDE4 splashscreen it segfaults.
 
  I tried removing the dri modules from my config, but it does not work.
 
 
  I tried to start with an autogenerated config, but the autogenerated
  config doesn't work either (on Ctrl+C the Server aborts).
 
 
  ok this is with intel ?

 Yes, with Intel. The card is an Intel G33.
 The crash is probably happening the first time something tries to access
 dri, libdrm.



ok gives any logs?
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: [ECFT] drm/dri/mesa/xorg-server update [Part 1]

2011-03-13 Thread George Liaskos
 The crash is probably happening the first time something tries to access
 dri, libdrm.

I believe that kwin tries to use desktop effects by default. Better
try a simple xinit for start to see how it goes and post the log.

Ok, after some research about the patch i believe that this how it should be :

--- src/i830_video.c.orig   2009-05-13 03:12:11.0 +0300
+++ src/i830_video.c2011-03-13 21:39:08.0 +0200
@@ -57,7 +57,6 @@

 #include xf86.h
 #include xf86_OSproc.h
-#include xf86Resources.h
 #include compiler.h
 #include xf86PciInfo.h
 #include xf86Pci.h
@@ -2165,7 +2164,7 @@
 static void
 i830_fill_colorkey (ScreenPtr pScreen, uint32_t key, RegionPtr clipboxes)
 {
-   DrawablePtr root = WindowTable[pScreen-myNum]-drawable;
+   DrawablePtr root = pScreen-root-drawable;
XIDpval[2];
BoxPtr  pbox = REGION_RECTS(clipboxes);
inti, nbox = REGION_NUM_RECTS(clipboxes);
@@ -2177,7 +2176,7 @@
gc = GetScratchGC(root-depth, pScreen);
pval[0] = key;
pval[1] = IncludeInferiors;
-   (void) ChangeGC(gc, GCForeground|GCSubwindowMode, pval);
+   (void) dixChangeGC(NullClient, gc, GCForeground|GCSubwindowMode,
pval, NULL);
ValidateGC(root, gc);

rects = xalloc (nbox * sizeof(xRectangle));

This patch replaces xf86-video-intel/files/patch-src_i830_video.c
It works for me without AIGLX, tried dwm/awesome/xfce4. I will build kde next.
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: [ECFT] drm/dri/mesa/xorg-server update [Part 1]

2011-03-12 Thread George Liaskos
I compiled the intel driver with the following patch:

--- src/i830_video.c.orig   2011-03-12 18:00:01.0 +0200
+++ src/i830_video.c2011-03-12 17:59:08.0 +0200
@@ -2164,7 +2164,7 @@
 static void
 i830_fill_colorkey (ScreenPtr pScreen, uint32_t key, RegionPtr clipboxes)
 {
-   DrawablePtr root = WindowTable[pScreen-myNum]-drawable;
+   DrawablePtr root = pScreen-root-drawable.id;
XIDpval[2];
BoxPtr  pbox = REGION_RECTS(clipboxes);
inti, nbox = REGION_NUM_RECTS(clipboxes);
@@ -2176,7 +2176,7 @@
gc = GetScratchGC(root-depth, pScreen);
pval[0] = key;
pval[1] = IncludeInferiors;
-   (void) ChangeGC(gc, GCForeground|GCSubwindowMode, pval);
+   dixChangeGC(NullClient, gc, GCForeground|GCSubwindowMode, NULL);
ValidateGC(root, gc);

rects = xalloc (nbox * sizeof(xRectangle));

It works but it doesn't support dri1,
http://cgit.freedesktop.org/mesa/mesa/commit/?id=48c0ff14240044935049a1114edfc69bc6682b95

Log: http://pastebin.com/W1iiDvWX
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: [ECFT] drm/dri/mesa/xorg-server update [Part 1]

2011-03-11 Thread Michal Varga
On Fri, 2011-03-11 at 19:37 +0800, Martin Wilke wrote:

 After merging, run one of the following command, depending on which
 tool you use to manage your installed packages.
 
 portupgrade -af \*

Is this step really necessary? This will rebuild every single installed
port, which for me is, currently, like close to 1000. This probably
wasn't intended.

Also, -a stands for *, so one of them is superfluous in any case.

m.



-- 
Michal Varga,
Stonehenge (Gmail account)


___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: [ECFT] drm/dri/mesa/xorg-server update [Part 1]

2011-03-11 Thread George Liaskos
On Fri, Mar 11, 2011 at 1:52 PM, Michal Varga varga.mic...@gmail.com wrote:
 On Fri, 2011-03-11 at 19:37 +0800, Martin Wilke wrote:

 After merging, run one of the following command, depending on which
 tool you use to manage your installed packages.

 portupgrade -af \*

 Is this step really necessary? This will rebuild every single installed
 port, which for me is, currently, like close to 1000. This probably
 wasn't intended.

 Also, -a stands for *, so one of them is superfluous in any case.

 m.



 --
 Michal Varga,
 Stonehenge (Gmail account)


 ___
 freebsd-...@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-x11
 To unsubscribe, send any mail to freebsd-x11-unsubscr...@freebsd.org


Ok, i finished compiling and some quick testing with radeon and wow
everything works!

My xorg log: http://pastebin.com/Pv15YA8m

Two issues with the compiling, textproc/py-libxml2 is missing as a
dependency and we need to apply graphics/dri/files/patch-configure to
remove -pedantic from the CXXFLAGS.

I compiled mesa-demos without issue too but the port needs to be
updated, mesa-demos now live in a different directory
[ftp://ftp.freedesktop.org/pub/mesa/demos/8.0.1/] and does not have
the same version as mesa. It also depends on glew.

Off to test intel...
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org