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

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.