Re: Radeon KMS [was Re: KWin no longer compositing?]

2011-11-01 Thread Adam K Kirchhoff

On 11/01/2011 07:55 AM, Kostik Belousov wrote:
Involved in what sense ? Basically, you take the Linux sources, 
drivers/gpu/drm/radeon/* and makes them compilable, runnable and then 
bug-free under FreeBSD. In the course of actions, you add the missed 
infrastructure bits from drivers/gpu/drm/*. The most infrastructure 
parts needed for the KMS are already ported in my kms git branch. 
Biggest missed stuff is TTM, but I already promised to do it if 
somebody takes care of the radeon. The line count for radeon driver is 
~100KLOC, that is twice as big as Intel driver. I am optimistic that 
the porting will take 3-4 months, judging after the Intel experience. 
Also, I am more then willing to help, but definitely won't do it myself. 


For what it's worth, I started an e-mail exchange with the FreeBSD 
Foundation about funding work on radeon KMS.  Their response was:


"We think this is a great idea and we would love to do work in this 
area, but we currently don't have anyone available to do this work."


If someone is interested, and capable, they should get in touch with the 
Foundation.


Adam

___
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: Radeon KMS [was Re: KWin no longer compositing?]

2011-11-01 Thread Kostik Belousov
On Tue, Nov 01, 2011 at 06:06:01AM +1100, Peter Jeremy wrote:
> On 2011-Oct-29 12:34:11 +0300, Kostik Belousov  wrote:
> >I think 3-4 months is the reasonable estimation for bringing up both
> >TTM/execution and KMS for radeons. The KMS infrastructure is already
> >ported.
> >
> >If somebody is interested in doing the Radeon driver proper, I may port
> >TTM.
> 
> I'm also interested in this.  Can you give some indication as to what
> is involved?

Involved in what sense ?

Basically, you take the Linux sources, drivers/gpu/drm/radeon/* and makes
them compilable, runnable and then bug-free under FreeBSD. In the course
of actions, you add the missed infrastructure bits from drivers/gpu/drm/*.

The most infrastructure parts needed for the KMS are already ported in my
kms git branch. Biggest missed stuff is TTM, but I already promised to do
it if somebody takes care of the radeon.

The line count for radeon driver is ~100KLOC, that is twice as big as Intel
driver. I am optimistic that the porting will take 3-4 months, judging after
the Intel experience. Also, I am more then willing to help, but definitely
won't do it myself.


pgp5nLWoPu2kx.pgp
Description: PGP signature


Radeon KMS [was Re: KWin no longer compositing?]

2011-10-31 Thread Peter Jeremy
On 2011-Oct-29 12:34:11 +0300, Kostik Belousov  wrote:
>I think 3-4 months is the reasonable estimation for bringing up both
>TTM/execution and KMS for radeons. The KMS infrastructure is already
>ported.
>
>If somebody is interested in doing the Radeon driver proper, I may port
>TTM.

I'm also interested in this.  Can you give some indication as to what
is involved?

-- 
Peter Jeremy


pgpQ8zu9OSA2o.pgp
Description: PGP signature


Re: KWin no longer compositing?

2011-10-29 Thread Kostik Belousov
On Sat, Oct 29, 2011 at 07:56:36PM +1100, Lawrence Stewart wrote:
> On 10/29/11 19:47, Kostik Belousov wrote:
> >On Sat, Oct 29, 2011 at 07:24:52PM +1100, Lawrence Stewart wrote:
> >>On 10/24/11 19:05, Andriy Gapon wrote:
> >>>on 24/10/2011 07:07 Greg Lewis said the following:
> So it seems like even the newest version we support in ports is an
> antique :(.  I'm going to guess upgrading it is not going to be easy.
> >>>
> >>>Almost trivial in a sense.
> >>>I've been using xorg-dev for quite a while and it works great (for me).
> >>>Mesa is
> >>>at 7.11 in those ports.
> >>>
> >>>http://trillian.chruetertee.ch/ports/wiki
> >>>
> >>
> >>I too no longer have compositing in KDE 4.7.2 where I used to with
> >>4.6.x. Is there a technical reason the newer MESA hasn't been merged
> >>into mainline ports? Or is it purely a manpower thing?
> >
> >There is newer Mesa in xorg-dev. See the instructions at
> >http://miwi.bsdcrew.de/2011/02/cft-xorg-7-5-miwi1-freebsd-edition/
> 
> Thanks for the pointer.
> 
> >There is a rat nest of the system dependencies and ddx/xorg server
> >versions that makes the update really tricky. Until GEMified i915.ko
> >is not committed to the src/, the Intel GPUs will not work, I believe.
> >Also, it seems that Mesa 7.11 is the last release that will work
> >for Radeon DRM that lacks TTM and execution support.
> 
> I use Radeon so I guess it's an interim update which will get things 
> going in the short term followed by hoping someone capable of doing the 
> TTM support for it comes forward. Do you have a feel for just how much 
> time would be involved in doing the required work to get the radeon 
> driver up to scratch? Does your work for the Intel GPUs lay some common 
> groundwork which will reduce the work required to update other drivers 
> like radeon? (It is clear I have no concept about how all the moving 
> parts fit together or what's involved in getting all drivers into shape 
> for "the future" i.e. KMS).

I think 3-4 months is the reasonable estimation for bringing up both
TTM/execution and KMS for radeons. The KMS infrastructure is already
ported.

If somebody is interested in doing the Radeon driver proper, I may port
TTM.


pgp5jGxNdvF6y.pgp
Description: PGP signature


Re: KWin no longer compositing?

2011-10-29 Thread Lawrence Stewart

On 10/29/11 19:47, Kostik Belousov wrote:

On Sat, Oct 29, 2011 at 07:24:52PM +1100, Lawrence Stewart wrote:

On 10/24/11 19:05, Andriy Gapon wrote:

on 24/10/2011 07:07 Greg Lewis said the following:

So it seems like even the newest version we support in ports is an
antique :(.  I'm going to guess upgrading it is not going to be easy.


Almost trivial in a sense.
I've been using xorg-dev for quite a while and it works great (for me).
Mesa is
at 7.11 in those ports.

http://trillian.chruetertee.ch/ports/wiki



I too no longer have compositing in KDE 4.7.2 where I used to with
4.6.x. Is there a technical reason the newer MESA hasn't been merged
into mainline ports? Or is it purely a manpower thing?


There is newer Mesa in xorg-dev. See the instructions at
http://miwi.bsdcrew.de/2011/02/cft-xorg-7-5-miwi1-freebsd-edition/


Thanks for the pointer.


There is a rat nest of the system dependencies and ddx/xorg server
versions that makes the update really tricky. Until GEMified i915.ko
is not committed to the src/, the Intel GPUs will not work, I believe.
Also, it seems that Mesa 7.11 is the last release that will work
for Radeon DRM that lacks TTM and execution support.


I use Radeon so I guess it's an interim update which will get things 
going in the short term followed by hoping someone capable of doing the 
TTM support for it comes forward. Do you have a feel for just how much 
time would be involved in doing the required work to get the radeon 
driver up to scratch? Does your work for the Intel GPUs lay some common 
groundwork which will reduce the work required to update other drivers 
like radeon? (It is clear I have no concept about how all the moving 
parts fit together or what's involved in getting all drivers into shape 
for "the future" i.e. KMS).


Cheers,
Lawrence
___
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: KWin no longer compositing?

2011-10-29 Thread Kostik Belousov
On Sat, Oct 29, 2011 at 07:24:52PM +1100, Lawrence Stewart wrote:
> On 10/24/11 19:05, Andriy Gapon wrote:
> >on 24/10/2011 07:07 Greg Lewis said the following:
> >>So it seems like even the newest version we support in ports is an
> >>antique :(.  I'm going to guess upgrading it is not going to be easy.
> >
> >Almost trivial in a sense.
> >I've been using xorg-dev for quite a while and it works great (for me).  
> >Mesa is
> >at 7.11 in those ports.
> >
> >http://trillian.chruetertee.ch/ports/wiki
> >
> 
> I too no longer have compositing in KDE 4.7.2 where I used to with 
> 4.6.x. Is there a technical reason the newer MESA hasn't been merged 
> into mainline ports? Or is it purely a manpower thing?

There is newer Mesa in xorg-dev. See the instructions at
http://miwi.bsdcrew.de/2011/02/cft-xorg-7-5-miwi1-freebsd-edition/

There is a rat nest of the system dependencies and ddx/xorg server
versions that makes the update really tricky. Until GEMified i915.ko
is not committed to the src/, the Intel GPUs will not work, I believe.
Also, it seems that Mesa 7.11 is the last release that will work
for Radeon DRM that lacks TTM and execution support.


pgpFpgyH0ufEj.pgp
Description: PGP signature


Re: KWin no longer compositing?

2011-10-29 Thread Lawrence Stewart

On 10/24/11 19:05, Andriy Gapon wrote:

on 24/10/2011 07:07 Greg Lewis said the following:

So it seems like even the newest version we support in ports is an
antique :(.  I'm going to guess upgrading it is not going to be easy.


Almost trivial in a sense.
I've been using xorg-dev for quite a while and it works great (for me).  Mesa is
at 7.11 in those ports.

http://trillian.chruetertee.ch/ports/wiki



I too no longer have compositing in KDE 4.7.2 where I used to with 
4.6.x. Is there a technical reason the newer MESA hasn't been merged 
into mainline ports? Or is it purely a manpower thing?


Cheers,
Lawrence
___
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: KWin no longer compositing?

2011-10-25 Thread Andrew
I found rather wonky X after the xorg-server upgrade until I
re-installed nvidia-driver, but then I see output mentioned in your
first link:

OpenGL vendor string:   NVIDIA Corporation
OpenGL renderer string: Quadro FX 580/PCI/SSE2
OpenGL version string:  3.3.0 NVIDIA 285.05.09
OpenGL shading language version string: 3.30 NVIDIA via Cg compiler
Driver: NVIDIA
Driver version: 285.5.9
GPU class:  Unknown
OpenGL version: 3.3
GLSL version:   3.30
X server version:   1.7.7
Direct rendering:   yes
Requires strict binding:no
GLSL shaders:   yes
Texture NPOT support:   yes
OpenGL vendor string:   NVIDIA Corporation
OpenGL renderer string: Quadro FX 580/PCI/SSE2
OpenGL version string:  3.3.0 NVIDIA 285.05.09
OpenGL shading language version string: 3.30 NVIDIA via Cg compiler
Driver: NVIDIA
Driver version: 285.5.9
GPU class:  Unknown
OpenGL version: 3.3
GLSL version:   3.30
X server version:   1.7.7
Direct rendering:   yes
Requires strict binding:no
GLSL shaders:   yes
Texture NPOT support:   yes


Doesn't help I suppose if you're not using an Nvidia card and the
binary driver...
___
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: KWin no longer compositing?

2011-10-24 Thread Andriy Gapon
on 24/10/2011 07:07 Greg Lewis said the following:
> So it seems like even the newest version we support in ports is an
> antique :(.  I'm going to guess upgrading it is not going to be easy.

Almost trivial in a sense.
I've been using xorg-dev for quite a while and it works great (for me).  Mesa is
at 7.11 in those ports.

http://trillian.chruetertee.ch/ports/wiki

-- 
Andriy Gapon
___
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: KWin no longer compositing?

2011-10-23 Thread Greg Lewis
G'day Raphael,

On Sun, Oct 23, 2011 at 11:01:10PM -0200, Raphael Kubo da Costa wrote:
> Greg Lewis  writes:
> > kwin(2319): KWin requires at least Mesa 7.10 for OpenGL compositing.
> > kwin(2319): Failed to initialize compositing, compositing disabled
> > kwin(2319): Consult 
> > http://techbase.kde.org/Projects/KWin/4.0-release-notes#Setting_up
> >
> > Is that a new requirement with 4.7?  Compositing worked previously with
> > the older version of Mesa we have in ports (7.6.1).  That is going to be
> > a problem since 7.6.1 is the newest version of Mesa we have in ports.
> >
> > Has anyone else run into this or has KWin doing compositing after the
> > upgrade?
> 
> According to a message Martin Gr??sslin sent to the KDE packagers mailing
> list (sorry, no archive, the list is not public), this is a new
> requirement for 4.7: at least Mesa 7.10 is required. BTW, the Mesa we
> have in ports seems to be 7.4.4, not 7.6.1.

7.4.4 is the default.  If you have WITHOUT_NOUVEAU defined (I do) you get
7.6.1 (see graphics/libGL/bsd.mesalib.mk).

> Some references I can point to:
> 
> 1. 
> http://blog.martin-graesslin.com/blog/2011/05/the-compositing-modes-of-kde-plasma-workspaces-explained/
> 2. 
> http://commits.kde.org/kde-workspace/ae63f84ba102cff532adbf403ac088522365425f
> 3. 
> http://commits.kde.org/kde-workspace/afe966579d56f85444c432a3a6adf026d2941bd5

Thanks.  I'll take a look over these.

> When I contacted Martin at the time of his announcement, he said this
> verification was to ensure all the drivers used KMS (and their
> development experience only went back as far as Mesa 7.7; 7.4.4 is old
> enough for KWin bug reports with it to be ignored) and thus didn't break.

So it seems like even the newest version we support in ports is an
antique :(.  I'm going to guess upgrading it is not going to be easy.

-- 
Greg Lewis  Email   : gle...@eyesbeyond.com
Eyes Beyond Web : http://www.eyesbeyond.com
Information Technology  FreeBSD : gle...@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: KWin no longer compositing?

2011-10-23 Thread Raphael Kubo da Costa
Greg Lewis  writes:

> kwin(2319): KWin requires at least Mesa 7.10 for OpenGL compositing.
> kwin(2319): Failed to initialize compositing, compositing disabled
> kwin(2319): Consult 
> http://techbase.kde.org/Projects/KWin/4.0-release-notes#Setting_up
>
> Is that a new requirement with 4.7?  Compositing worked previously with
> the older version of Mesa we have in ports (7.6.1).  That is going to be
> a problem since 7.6.1 is the newest version of Mesa we have in ports.
>
> Has anyone else run into this or has KWin doing compositing after the
> upgrade?

According to a message Martin Grässlin sent to the KDE packagers mailing
list (sorry, no archive, the list is not public), this is a new
requirement for 4.7: at least Mesa 7.10 is required. BTW, the Mesa we
have in ports seems to be 7.4.4, not 7.6.1.

Some references I can point to:

1. 
http://blog.martin-graesslin.com/blog/2011/05/the-compositing-modes-of-kde-plasma-workspaces-explained/
2. http://commits.kde.org/kde-workspace/ae63f84ba102cff532adbf403ac088522365425f
3. http://commits.kde.org/kde-workspace/afe966579d56f85444c432a3a6adf026d2941bd5

When I contacted Martin at the time of his announcement, he said this
verification was to ensure all the drivers used KMS (and their
development experience only went back as far as Mesa 7.7; 7.4.4 is old
enough for KWin bug reports with it to be ignored) and thus didn't break.

___
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"


KWin no longer compositing?

2011-10-23 Thread Greg Lewis
I've just finished upgrading to KDE 4.7.2.  Apart from the errors that
others have reported I've found that KWin is no longer acting as a
compositing window manager.  Specifically, my terminals (Gnome Terminals)
are no longer transparent, the window bar at the bottom of the screen no
longer shows a snapshot of a window on another desktop when I hover over it,
windows no longer glow when they have the focus, etc.

In .xsession-errors I see this:

kwin(2319)/KSharedDataCache: Unable to unmap shared memory segment
0x2fb0 
IRQ's not enabled, falling back to busy waits: 2 0
OpenGL vendor string:   Advanced Micro Devices, Inc.
OpenGL renderer string: Mesa DRI R600 (RS880 9715) 20090101
x86/
MMX+/3DNow!+/SSE2 TCL
OpenGL version string:  1.2 Mesa 7.6.1
Driver: R600C
GPU class:  R600
OpenGL version: 1.2
Mesa version:   7.6.1
X server version:   1.7.7
Direct rendering:   no
Requires strict binding:yes
GLSL shaders:   no
Texture NPOT support:   no

The fact that Direct rendering is set to "no" is most likely the problem,
but I don't see why that's failing (DRI used to work).

I also see this:

kwin(2319): KWin requires at least Mesa 7.10 for OpenGL compositing. 
kwin(2319): Failed to initialize compositing, compositing disabled 
kwin(2319): Consult 
http://techbase.kde.org/Projects/KWin/4.0-release-notes#Setting_up

Is that a new requirement with 4.7?  Compositing worked previously with
the older version of Mesa we have in ports (7.6.1).  That is going to be
a problem since 7.6.1 is the newest version of Mesa we have in ports.

Has anyone else run into this or has KWin doing compositing after the
upgrade?

-- 
Greg Lewis  Email   : gle...@eyesbeyond.com
Eyes Beyond Web : http://www.eyesbeyond.com
Information Technology  FreeBSD : gle...@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"