All of lore.kernel.org
 help / color / mirror / Atom feed
* Question about NV18 and GBM library.
@ 2012-04-25 15:34 gabriel muguerza
       [not found] ` <CAJvabWDH8U_H-LaHj1LzZXYdSGb8E+grNUwDeJK+W0KrxKgAqg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: gabriel muguerza @ 2012-04-25 15:34 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW


[-- Attachment #1.1: Type: text/plain, Size: 2778 bytes --]

Hi,

I have a geforce 4mx 440 agp 8x, and I'm trying to use the GBM library,
(as jbarnes in: http://virtuousgeek.org/blog/index.php/jbarnes/2011/10/
and David Hermann in KMSCON: https://github.com/dvdhrm/kmscon),
without success.

when I try to create a gbm_device, I get: (below the code.)

nouveau_drm_screen_create: unknown chipset nv18
dri_init_screen_helper: failed to create pipe_screen
loaded /usr/lib/gbm/pipe_nouveau.so
nouveau_drm_screen_create: unknown chipset nv18
failed to load driver: nouveau


My question is:
Is this not supported by the driver?,
It's a GBM problem? or am I doing something wrong?



when I run the following code:

#include <errno.h>
#include <fcntl.h>
#include <gbm.h>

#include <stdlib.h>
#include <stdio.h>

#include <xf86drmMode.h>
#include <xf86drm.h>
#include <libdrm/drm.h>

int main(int argc, char* argv[])
{
    int fd;
    struct gbm_device *gbm = NULL;

    fd = open("/dev/dri/card0", O_RDWR | O_CLOEXEC);
    if (fd < 0) {
        perror("====> open error /dev/dri/card0...");
        exit(-1);
    }
    printf("..... open /dev/dri/card0, fd = %d\n\n", fd);

    gbm = gbm_create_device(fd);
    if (!gbm) {
        perror("\n====> cannot create gbm device...");
        fprintf(stderr, "====> errno = %d\n", errno);
            exit(-1);
    }

    exit(0);
}


I get:

..... open /dev/dri/card0, fd = 3

nouveau_drm_screen_create: unknown chipset nv18
dri_init_screen_helper: failed to create pipe_screen
loaded /usr/lib/gbm/pipe_nouveau.so
nouveau_drm_screen_create: unknown chipset nv18
failed to load driver: nouveau

====> cannot create gbm device...: No such file or directory
====> errno = 2


some details:
distro: Archlinux
kernel: 3.3.3
Mesa 8.0 from git: ./autogen.sh --prefix=/usr
--with-dri-driverdir=/usr/lib/xorg/modules/dri \
                --with-dri-drivers=i915,i965,nouveau,radeon,r200 \
                --with-gallium-drivers=r300,r600,nouveau,svga,swrast \
                --with-egl-platforms=drm,x11 \
                --enable-gallium-llvm \
                --enable-gallium-egl \
                --enable-shared-dricore \
                --enable-shared-glapi \
                --enable-egl \
                --enable-gles1 \
                --enable-gles2 \
                --enable-openvg \
                --enable-glx-tls \
                --enable-xcb \
                --enable-gbm \
                --enable-dri \
                --enable-xa \
                --enable-gallium-gbm \
                --enable-osmesa \
                --enable-texture-float \
                --enable-debug

libdrm 2.4.33 from git.
xf86-video-nouveau from git.


If necessary I will provide any other relevant information.

Thanks,
Gabriel Muguerza.

(English is not my native language, please excuse the typos.)

[-- Attachment #1.2: Type: text/html, Size: 3486 bytes --]

[-- Attachment #2: Type: text/plain, Size: 181 bytes --]

_______________________________________________
Nouveau mailing list
Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
http://lists.freedesktop.org/mailman/listinfo/nouveau

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Question about NV18 and GBM library.
       [not found] ` <CAJvabWDH8U_H-LaHj1LzZXYdSGb8E+grNUwDeJK+W0KrxKgAqg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2012-04-26 17:41   ` Lucas Stach
  2012-04-28  0:11     ` gabriel muguerza
  0 siblings, 1 reply; 4+ messages in thread
From: Lucas Stach @ 2012-04-26 17:41 UTC (permalink / raw)
  To: gabriel muguerza; +Cc: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

Am Mittwoch, den 25.04.2012, 12:34 -0300 schrieb gabriel muguerza:

> Hi,
> 
> I have a geforce 4mx 440 agp 8x, and I'm trying to use the GBM
> library, 
> (as jbarnes in:
> http://virtuousgeek.org/blog/index.php/jbarnes/2011/10/
> and David Hermann in KMSCON: https://github.com/dvdhrm/kmscon), 
> without success.
> 
> when I try to create a gbm_device, I get: (below the code.)
> 
> nouveau_drm_screen_create: unknown chipset nv18
> dri_init_screen_helper: failed to create pipe_screen
> loaded /usr/lib/gbm/pipe_nouveau.so
> nouveau_drm_screen_create: unknown chipset nv18
> failed to load driver: nouveau
> 
> 
> My question is:
> Is this not supported by the driver?,
> It's a GBM problem? or am I doing something wrong?
> 
Yep, you are right, your GPU is simply too old. GBM is only supported
with the nouveau gallium drivers, which start with the nv30 generation.
The nouveau_vieux driver for your card does not support GBM.

-- Lucas

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Question about NV18 and GBM library.
  2012-04-26 17:41   ` Lucas Stach
@ 2012-04-28  0:11     ` gabriel muguerza
       [not found]       ` <CAJvabWApOKF69nDiAmKRrK0vh_9wK+yFe8+J8huiVWMgLYUmsg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: gabriel muguerza @ 2012-04-28  0:11 UTC (permalink / raw)
  To: Lucas Stach; +Cc: nouveau mailinglist


[-- Attachment #1.1: Type: text/plain, Size: 1153 bytes --]

On Thu, Apr 26, 2012 at 2:41 PM, Lucas Stach <dev-8ppwABl0HbeELgA04lAiVw@public.gmane.org> wrote:

> Am Mittwoch, den 25.04.2012, 12:34 -0300 schrieb gabriel muguerza:
>
> > Hi,
> >
> > I have a geforce 4mx 440 agp 8x, and I'm trying to use the GBM
> > library,
> > (as jbarnes in:
> > http://virtuousgeek.org/blog/index.php/jbarnes/2011/10/
> > and David Hermann in KMSCON: https://github.com/dvdhrm/kmscon),
> > without success.
> >
> > when I try to create a gbm_device, I get: (below the code.)
> >
> > nouveau_drm_screen_create: unknown chipset nv18
> > dri_init_screen_helper: failed to create pipe_screen
> > loaded /usr/lib/gbm/pipe_nouveau.so
> > nouveau_drm_screen_create: unknown chipset nv18
> > failed to load driver: nouveau
> >
> >
> > My question is:
> > Is this not supported by the driver?,
> > It's a GBM problem? or am I doing something wrong?
> >
> Yep, you are right, your GPU is simply too old. GBM is only supported
> with the nouveau gallium drivers, which start with the nv30 generation.
> The nouveau_vieux driver for your card does not support GBM.
>
> -- Lucas
>
>
Ok, thank you.
(and nor Wayland works, I guess).

Gabriel.

[-- Attachment #1.2: Type: text/html, Size: 1846 bytes --]

[-- Attachment #2: Type: text/plain, Size: 181 bytes --]

_______________________________________________
Nouveau mailing list
Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
http://lists.freedesktop.org/mailman/listinfo/nouveau

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Question about NV18 and GBM library.
       [not found]       ` <CAJvabWApOKF69nDiAmKRrK0vh_9wK+yFe8+J8huiVWMgLYUmsg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2012-05-01  8:53         ` Pekka Paalanen
  0 siblings, 0 replies; 4+ messages in thread
From: Pekka Paalanen @ 2012-05-01  8:53 UTC (permalink / raw)
  To: gabriel muguerza; +Cc: nouveau mailinglist

On Fri, 27 Apr 2012 21:11:35 -0300
gabriel muguerza <glmcabra-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

> On Thu, Apr 26, 2012 at 2:41 PM, Lucas Stach <dev-8ppwABl0HbeELgA04lAiVw@public.gmane.org>
> wrote:
> 
> > Am Mittwoch, den 25.04.2012, 12:34 -0300 schrieb gabriel
> > muguerza:
> >
> > > Hi,
> > >
> > > I have a geforce 4mx 440 agp 8x, and I'm trying to use the GBM
> > > library,
> > > (as jbarnes in:
> > > http://virtuousgeek.org/blog/index.php/jbarnes/2011/10/
> > > and David Hermann in KMSCON:
> > > https://github.com/dvdhrm/kmscon), without success.
> > >
> > > when I try to create a gbm_device, I get: (below the code.)
> > >
> > > nouveau_drm_screen_create: unknown chipset nv18
> > > dri_init_screen_helper: failed to create pipe_screen
> > > loaded /usr/lib/gbm/pipe_nouveau.so
> > > nouveau_drm_screen_create: unknown chipset nv18
> > > failed to load driver: nouveau
> > >
> > >
> > > My question is:
> > > Is this not supported by the driver?,
> > > It's a GBM problem? or am I doing something wrong?
> > >
> > Yep, you are right, your GPU is simply too old. GBM is only
> > supported with the nouveau gallium drivers, which start with
> > the nv30 generation. The nouveau_vieux driver for your card
> > does not support GBM.
> >
> > -- Lucas
> >
> >
> Ok, thank you.
> (and nor Wayland works, I guess).

You mean Weston. Weston uses GL ES 2, which relies on shaders and
does not have a fixed-function pipeline. NV18 AFAIK does not have
any shader capability, but only a fixed-function pipeline. This
is another big obstacle.

Wayland could be made to work, but it would need some work:
- writing a Wayland server on fixed-function OpenGL
- writing the infrastructure for using EGL/OpenGL on the
  framebuffer offered by DRM

and maybe something else I overlooked.

-- 
Pekka Paalanen
http://www.iki.fi/pq/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-05-01  8:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-25 15:34 Question about NV18 and GBM library gabriel muguerza
     [not found] ` <CAJvabWDH8U_H-LaHj1LzZXYdSGb8E+grNUwDeJK+W0KrxKgAqg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-04-26 17:41   ` Lucas Stach
2012-04-28  0:11     ` gabriel muguerza
     [not found]       ` <CAJvabWApOKF69nDiAmKRrK0vh_9wK+yFe8+J8huiVWMgLYUmsg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-05-01  8:53         ` Pekka Paalanen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.