[MPlayer-matrox] Re: mga_vid.c smp problem

Attila Kinali attila at kinali.ch
Thu Apr 7 10:41:56 CEST 2005


Hi,

On Tue, 5 Apr 2005 13:36:59 +0200 (CEST)
Peter Magnusson <iocc at mplayer.lists.flashdance.cx> wrote:

> ---------- Forwarded message ----------
> Date: Mon, 4 Apr 2005 21:45:27 +0200 (CEST)
> From: Peter Magnusson <iocc at mplayer.lists.flashdance.cx>
> Reply-To: mplayer-dev-eng at mplayerhq.hu
> To: mplayer-dev-eng at mplayerhq.hu
> Subject: [MPlayer-dev-eng] mga_vid.c smp problem
> 
> Hi.
> 
> I use MPlayer-1.0pre6a. Compiled with:
> ./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 :(
> 
> [root at flashdance mga-vid-2.6.10]# make
> 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,
>                   from /usr/src/mga-vid-2.6.10/mga_vid.c:48:
> include/asm/system.h: In function `__set_64bit_var':
> 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,
>                   from /usr/src/mga-vid-2.6.10/mga_vid.c:48:
> 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,
>                   from /usr/src/mga-vid-2.6.10/mga_vid.c:48:
> include/asm/mpspec.h: At top level:
> 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,
>                   from /usr/src/mga-vid-2.6.10/mga_vid.c:48:
> 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
> to link:

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

-- 
郷に入れば郷に従え




More information about the MPlayer-matrox mailing list