Discussion:
mga_vid.c smp problem
Attila Kinali
2005-04-07 08:41:56 UTC
Permalink
Hi,

On Tue, 5 Apr 2005 13:36:59 +0200 (CEST)
---------- Forwarded message ----------
Date: Mon, 4 Apr 2005 21:45:27 +0200 (CEST)
Subject: [MPlayer-dev-eng] mga_vid.c smp problem
Hi.
./configure --enable-gui --enable-menu --enable-mga --enable-xmga
--with-reallibdir=/usr/lib/win32 --with-xanimlibdir=/usr/lib/win32
I use gcc version 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)
I use FC3 with kernel 2.6.10-1.770_FC3smp. I dont have smp but got a HT
processor so thats the reason that I use smp.
mga-vid-2.6.10-2005-01-11.tar.gz wont build on my smp box :(
make mga_vid.ko mga_vid_test
make[1]: Entering directory `/usr/src/mga-vid-2.6.10'
make -C /lib/modules/`uname -r`/build SUBDIRS=/usr/src/mga-vid-2.6.10 modules
make[2]: Entering directory `/lib/modules/2.6.10-1.770_FC3smp/build'
CC [M] /usr/src/mga-vid-2.6.10/mga_vid.o
In file included from include/asm/processor.h:18,
from include/asm/thread_info.h:17,
from include/linux/thread_info.h:21,
from include/linux/spinlock.h:12,
from include/linux/capability.h:45,
from include/linux/sched.h:7,
from include/linux/module.h:10,
include/asm/system.h:193: warning: dereferencing type-punned pointer will break
strict-aliasing rules
include/asm/system.h:193: warning: dereferencing type-punned pointer will break
strict-aliasing rules
In file included from include/asm/smp.h:18,
from include/linux/smp.h:17,
from include/linux/sched.h:23,
from include/linux/module.h:10,
include/asm/mpspec.h:6:25: mach_mpspec.h: No such file or directory
Missing file #1
In file included from include/asm/smp.h:18,
from include/linux/smp.h:17,
from include/linux/sched.h:23,
from include/linux/module.h:10,
include/asm/mpspec.h:8: error: `MAX_MP_BUSSES' undeclared here (not in a
functio
n)
include/asm/mpspec.h:22: error: `MAX_IRQ_SOURCES' undeclared here (not in a
func
tion)
Those two errors might be because of the missing file #1.
In file included from include/linux/smp.h:17,
from include/linux/sched.h:23,
from include/linux/module.h:10,
include/asm/smp.h:72:26: mach_apicdef.h: No such file or directory
Missing file #2

[...]
However, mga-vid-2.6.11-2005-03-06.tar.gz will build just fine. But later it
wont work, probably because its not the right kernel :)
I have tried to rewrite the Makefile and link files where it expect them to be.
Like in /lib/modules/2.6.10-1.770_FC3smp/build/include/asm I tried
Actualy mga-vid-2.6.11-2005-03-06 should work with .10 kernels too, as
the only changes were either clean ups or removal of deprecated functions.
lrwxrwxrwx 1 root 26 Mar 31 06:57 mach_apicdef.h ->
mach-bigsmp/mach_apicdef.h
lrwxrwxrwx 1 root 25 Mar 31 06:58 mach_mpspec.h ->
mach-bigsmp/mach_mpspec.h
but it didnt help either :(
I'd guess that your kernel isn't correctly configured.
Help?
Try a vanilla kernel from kernel.org and tell me the results.

Please note, that i don't have the time to support non-vanilla
kernels as i already lack the time to fully support the mainline.

Please also note that there is a mplayer-matrox mailinglist
for anything related to mga_vid, you should subscripe and
send any further mails there.


Attila Kinali
--
郷に入れば郷に従え
Peter Magnusson
2005-04-10 00:01:19 UTC
Permalink
Should it be a files there? mga_vid for 2.6.11 compiles without problem and
I didnt put any file there when I compiled mga_vid-2.6.11.
Could be that the makefile of the .10 version caused this
(yes, it was broken)
Yes, most likely.
Post by Attila Kinali
Actualy mga-vid-2.6.11-2005-03-06 should work with .10 kernels too, as
the only changes were either clean ups or removal of deprecated functions.
Ok. It doesnt... Im not in front of that computer now so I cant see the
error msg.
Send that message with a complete description of the error behavior
A friend that also got a G400 told me that he had gotten it to work in
2.6.10. He didnt have the orginal archive and didnt remember where he got
it from, but he did a tar.gz for me. That version worked DIRECTLY! I was so
suprised. TV-out worked aswell.

[***@flashdance dev]# ll mga*
crw-rw---- 1 root 83, 0 Apr 8 22:08 mga_vid

It uses 83 as major number.

It isnt your version and it appears that it isnt this version
http://www.linuxops.net/~pw/mga_vid/ either because I download it and
it didnt compile.

He also said that this version didnt work on 2.6.11 which he was running
now so I gave him the link for your version and that worked on 2.6.11.
Probably (but not certain) your version will work on 2.6.11 SMP also.

Since I avoid to switch kernel (new kernel = new possible problems) if I
can I'll stick to this version until I really need to upgrade.

This is the contens of his tar.gz if anyone knows where it cames from:

drwxrwxr-x fredrik/fredrik 0 2005-04-08 20:48:25 mga_vid/
-rwxrwxr-x fredrik/fredrik 1470 2005-04-08 20:47:22 mga_vid/Makefile
-rw-r--r-- root/root 7396 2005-04-08 20:48:25
mga_vid/.mga_vid.mod.o.cmd
-rwxrwxr-x fredrik/fredrik 15532 2005-04-08 20:47:22 mga_vid/mga_vid_test
-rwxrwxr-x fredrik/fredrik 58447 2005-04-08 20:47:22 mga_vid/mga_vid.c
-rwxrwxr-x fredrik/fredrik 1392 2005-04-08 20:47:22 mga_vid/mga_vid.h
-rw-r--r-- root/root 13744 2005-04-08 20:48:23 mga_vid/mga_vid.o
-rwxrwxr-x fredrik/fredrik 1376 2005-04-08 20:47:22 mga_vid/README
-rwxrwxr-x fredrik/fredrik 26725 2005-04-08 20:47:22 mga_vid/tdfx_vid.c
-rwxrwxr-x fredrik/fredrik 2954 2005-04-08 20:47:23 mga_vid/tdfx_vid.h
-rw-r--r-- root/root 182 2005-04-08 20:48:25
mga_vid/.mga_vid.ko.cmd
drwxr-xr-x root/root 0 2005-04-08 20:48:23 mga_vid/.tmp_versions/
-rw-r--r-- root/root 75 2005-04-08 20:48:23
mga_vid/.tmp_versions/mga_vid.mod
drwxrwxr-x fredrik/fredrik 0 2005-04-08 20:47:22 mga_vid/radeon/
-rwxrwxr-x fredrik/fredrik 1206 2005-04-08 20:47:22
mga_vid/radeon/Makefile
-rwxrwxr-x fredrik/fredrik 4015 2005-04-08 20:47:22 mga_vid/radeon/README
-rwxrwxr-x fredrik/fredrik 91193 2005-04-08 20:47:22
mga_vid/radeon/radeonfb.c
-rwxrwxr-x fredrik/fredrik 71235 2005-04-08 20:47:22
mga_vid/radeon/radeon.h
-rwxrwxr-x fredrik/fredrik 46554 2005-04-08 20:47:22
mga_vid/radeon/radeon_vid.c
-rwxrwxr-x fredrik/fredrik 3100 2005-04-08 20:47:22
mga_vid/radeon/radeon_vid.h
-rwxrwxr-x fredrik/fredrik 160 2005-04-08 20:47:22
mga_vid/radeon/Rage128.readme
-rwxrwxr-x fredrik/fredrik 9633 2005-04-08 20:47:22 mga_vid/radeon/hacking
-rwxrwxr-x fredrik/fredrik 10779 2005-04-08 20:47:22
mga_vid/radeon/generic_math.h
-rwxrwxr-x fredrik/fredrik 1470 2005-04-08 20:47:22 mga_vid/Makefile.new
-rw-r--r-- root/root 10310 2005-04-08 20:48:23 mga_vid/.mga_vid.o.cmd
-rwxrwxr-x fredrik/fredrik 4427 2005-04-08 20:47:22 mga_vid/mga_vid_test.c
-rwxrwxr-x fredrik/fredrik 1940 2005-04-08 20:47:23 mga_vid/tdfx_vid_tst.c
-rw-r--r-- root/root 15934 2005-04-08 20:48:25 mga_vid/mga_vid.ko
-rwxrwxr-x fredrik/fredrik 10403 2005-04-08 20:47:22 mga_vid/3dfx.h
-rw-r--r-- root/root 1242 2005-04-08 20:48:24 mga_vid/mga_vid.mod.c
-rw-r--r-- root/root 2784 2005-04-08 20:48:25 mga_vid/mga_vid.mod.o
-rwxrwxr-x fredrik/fredrik 894 2005-04-08 20:47:22
mga_vid/Makefile.orginal
Post by Attila Kinali
Please also note that there is a mplayer-matrox mailinglist
for anything related to mga_vid, you should subscripe and
send any further mails there.
I did that, they told me to mail you directly instead.
Nope, you used mplayer-dev-eng, that's a different mailinglist
Oh, sorry.
Attila Kinali
2005-04-10 00:51:10 UTC
Permalink
On Sun, 10 Apr 2005 02:01:19 +0200 (CEST)
Post by Peter Magnusson
A friend that also got a G400 told me that he had gotten it to work in
2.6.10. He didnt have the orginal archive and didnt remember where he got
it from, but he did a tar.gz for me. That version worked DIRECTLY! I was so
suprised. TV-out worked aswell.
Can you send me that version ?
Post by Peter Magnusson
crw-rw---- 1 root 83, 0 Apr 8 22:08 mga_vid
It uses 83 as major number.
Yes, we recently got 83 as official major number and thus
had to switch. My .11 version does also use this.
All prior versions used 178
These look like the contents of the mplayer main/driver dir,
ie it seems like a patched version of it. Most probably
Ferdinand O. Tempels patch


Attila Kinali
--
郷に入れば郷に従え
Peter Magnusson
2005-04-10 16:27:40 UTC
Permalink
Post by Attila Kinali
Post by Peter Magnusson
A friend that also got a G400 told me that he had gotten it to work in
2.6.10. He didnt have the orginal archive and didnt remember where he got
it from, but he did a tar.gz for me. That version worked DIRECTLY! I was so
suprised. TV-out worked aswell.
Can you send me that version ?
Sure: http://flashdance.cx/tmp/mga_vid_unknown_version.tar.gz
Post by Attila Kinali
These look like the contents of the mplayer main/driver dir,
ie it seems like a patched version of it. Most probably
Ferdinand O. Tempels patch
Oki.
sam chan
2005-04-11 07:57:04 UTC
Permalink
all,

i'm having flickerling lines on the right portion of
videos using mplayer thru mga_vid. it appears on different
formats. any ideas what is causing this? and how to
fix?

i don't have the problem using a different video output
(eg, vo=x11 or vo=xv).


thanks,
sam
Martin Collins
2005-04-11 12:01:21 UTC
Permalink
On Mon, 11 Apr 2005 00:57:04 -0700 (PDT)
Post by sam chan
i'm having flickerling lines on the right portion of
videos using mplayer thru mga_vid. it appears on different
formats. any ideas what is causing this? and how to
fix?
It seems to be a bandwidth issue. Running X in 16 bit colour fixed
it for me.

Martin
Attila Kinali
2005-04-11 08:31:00 UTC
Permalink
On Mon, 11 Apr 2005 00:57:04 -0700 (PDT)
Post by sam chan
i'm having flickerling lines on the right portion of
videos using mplayer thru mga_vid. it appears on different
formats. any ideas what is causing this? and how to
fix?
i don't have the problem using a different video output
(eg, vo=x11 or vo=xv).
I assume you are using a G200 with a "high" resolution,
then you have hit the limit of the BES. Either lower
the resolution, the horizontal frequency.

If it's not that, then you have to tell us more.

Attila Kinali


PS: Please read http://www.river.com/users/share/etiquette/edit.html
Especialy, do not press reply if you are starting a new mail, it
breaks threading.
--
郷に入れば郷に従え
Peter Magnusson
2005-04-11 13:03:16 UTC
Permalink
Post by Attila Kinali
Post by sam chan
i'm having flickerling lines on the right portion of
videos using mplayer thru mga_vid. it appears on different
formats. any ideas what is causing this? and how to
fix?
I assume you are using a G200 with a "high" resolution,
then you have hit the limit of the BES. Either lower
the resolution, the horizontal frequency.
I get the same problem with G400MAX and 1792x1344x32 @ 75 Hz. I as told
some year ago that it was because the same reason as above.
sam chan
2005-04-19 08:53:07 UTC
Permalink
i can fix the problem either by setting a lower
resolution(1280x1024) or lowering the color depth
to 16.

this is a G400, by the way.

thanks.

-sam
Post by Peter Magnusson
Post by Attila Kinali
Post by sam chan
i'm having flickerling lines on the right portion of
videos using mplayer thru mga_vid. it appears on different
formats. any ideas what is causing this? and how to
fix?
I assume you are using a G200 with a "high" resolution,
then you have hit the limit of the BES. Either lower
the resolution, the horizontal frequency.
some year ago that it was because the same reason as above.
_______________________________________________
MPlayer-matrox mailing list
http://mplayerhq.hu/mailman/listinfo/mplayer-matrox
Ferdinand O. Tempel
2005-04-10 07:40:55 UTC
Permalink
Post by Peter Magnusson
A friend that also got a G400 told me that he had gotten it to work in
2.6.10. He didnt have the orginal archive and didnt remember where he got
it from, but he did a tar.gz for me. That version worked DIRECTLY! I was so
suprised. TV-out worked aswell.
crw-rw---- 1 root 83, 0 Apr 8 22:08 mga_vid
It uses 83 as major number.
It isnt your version and it appears that it isnt this version
http://www.linuxops.net/~pw/mga_vid/ either because I download it and
it didnt compile.
*** UPDATE ***
The Mplayer developer has put out his own 2.6 port for mga_vid, which you can find at
http://attila.kinali.ch/mga/

This means there is no reason anymore to maintain this patch, so I won't. Please convert to using Attila's driver
instead of this one.
**************

So am I surprised that what worked for 2.6.10 doesn't work for 2.6.11?
No, I'm not as I stopped trying to keep up with the kernel changes
because Attila kindly took over the flag from me. If there is demand I
might maintain my version too, but that seems a bit of a duplication of
effort. Besides, it's not that much different from Attila's anyway.

Anyway, I'm going to have a whack at Attila's driver now as I switched
to 2.6.11 myself. See if it builds and works (I trust it will). If I'm
really bored, I'll try on my SMP box too :-)

Regards,

Ferdinand O. Tempel
Loading...