Discussion:
Error in config ioctl using mga_vid
v***@yahoo.com
2009-05-30 06:05:02 UTC
Permalink
Hello all...looking for some debug recommendations for this mga_vid problem I'm having. 

System information:  2.6.18-53.el5.ppc64 kernel, compiled tags/2.6.18 mga_vid, using Matrox G400

To create problem:
-build mga_vid/mga_vid/tags/2.6.18
-insmod mga_vid.ko

Result:
Matrox MGA G200/G400/G450/G550 YUV Video interface v2.01 (c) Aaron Holtzman & A'rpi
mga_vid: Found MGA G400/G450 at 0002:d1:00.0
mga_vid: MMIO at 0xd0000800820f0000 framebuffer: 0xE8000000
mga_vid: OPTION word: 0x400A1160  mem: 0x04  SDRAM
mga_vid: detected RAMSIZE is 16 MB
mga_vid: 1 supported cards found
mga_vid: using major: 83 (assigned or default!)

./mga_vid_test
Error in config ioctl: Invalid argument
Testing MGA G400 Backend Scaler with 0 MB of RAM
mga_vid_base = 0xffffffff
Segmentation fault

output of dmesg:
ioctl32(mga_vid_test:4545): Unknown cmd fd(3) cmd(40304a01){00} arg(100419a8) on /dev/mga_vid
ioctl32(mga_vid_test:4545): Unknown cmd fd(3) cmd(20004a02){' '} arg(00000000) on /dev/mga_vid
mga_vid: card is not configured, cannot mmap

Anyone know of a patch for this or what other dbug information is needed to get past this?
Attila Kinali
2009-05-30 06:10:12 UTC
Permalink
Moin,

On Fri, 29 May 2009 23:05:02 -0700 (PDT)
Post by v***@yahoo.com
Hello all...looking for some debug recommendations for this mga_vid problem I'm having. 
System information:  2.6.18-53.el5.ppc64 kernel, compiled tags/2.6.18 mga_vid, using Matrox G400
-build mga_vid/mga_vid/tags/2.6.18
-insmod mga_vid.ko
./mga_vid_test
Error in config ioctl: Invalid argument
Testing MGA G400 Backend Scaler with 0 MB of RAM
mga_vid_base = 0xffffffff
Segmentation fault
It looks like you are using a very outdated version of mga_vid
together with a current mga_vid_test.
I changed in May 2008 the ioctl interface of mga_vid, which means
that if you are using such an old kernel, you have to use the
same mga_vid.h to compile your application with. Otherwise
you'll run into ioctl problems.

Attila Kinali
--
The true CS students do not need to know how to program.
They learn how to abstract the process of programming to
the point of making programmers obsolete.
-- Jabber in #holo
v***@yahoo.com
2009-06-02 02:47:14 UTC
Permalink
Thanks for the reply.  I tried one more thing by recompiling mplayer and replacing
the mga_vid source files in the libvo directory with the source files from the mga_vid
tarball.  The result was
[MGA] mismatch between kernel (1) and MPlayer (514) mga_vid driver versions
so it is as you said, a mismatch with the kernel.  Now I will try to find where in the kernel
is causing this mismatch with ioctl. 


--- On Sat, 5/30/09, Attila Kinali <***@kinali.ch> wrote:

From: Attila Kinali <***@kinali.ch>
Subject: Re: [MPlayer-matrox] Error in config ioctl using mga_vid
To: "MPlayer on Matrox graphics cards" <mplayer-***@mplayerhq.hu>
Date: Saturday, May 30, 2009, 1:10 AM

Moin,

On Fri, 29 May 2009 23:05:02 -0700 (PDT)
Post by v***@yahoo.com
Hello all...looking for some debug recommendations for this mga_vid problem I'm having. 
System information:  2.6.18-53.el5.ppc64 kernel, compiled tags/2.6.18 mga_vid, using Matrox G400
-build mga_vid/mga_vid/tags/2.6.18
-insmod mga_vid.ko
./mga_vid_test
Error in config ioctl: Invalid argument
Testing MGA G400 Backend Scaler with 0 MB of RAM
mga_vid_base = 0xffffffff
Segmentation fault
It looks like you are using a very outdated version of mga_vid
together with a current mga_vid_test.
I changed in May 2008 the ioctl interface of mga_vid, which means
that if you are using such an old kernel, you have to use the
same mga_vid.h to compile your application with. Otherwise
you'll run into ioctl problems.

            Attila Kinali
--
The true CS students do not need to know how to program.
They learn how to abstract the process of programming to
the point of making programmers obsolete.
        -- Jabber in #holo
Loading...