List Info

Thread: MMX in Zaptel




MMX in Zaptel
country flaguser name
Israel
2007-09-22 03:39:14
Hi

Reminder: zconfig.h includes a defina called
CONFIG_ZAPTEL_MMX,
undefined by default, to enable/disable MMX support in
Zaptel. It also
warns of problems with various CPUs.

See also the previous thread:
http://lists.digium.com/pipermail/asterisk
-dev/2007-August/029221.html

I have just commited a change to the kernel 2.6 Makefile to
enable this
if the CPU supports MMX:
http://svn.digium.com/view/zaptel?view=rev&revis
ion=3076
This is disabled by default. You need to explicitly edit
that file or
something of the sort of:

  ZAPTEL_MMX_AUTO=yes make

to enable it. I do plan to enable it by default in the
following release
(1.4.7 ).

The planed changes for that release (1.4.7 . Recall that
1.4.6 is not
yet released) - 
1. Test MMX support on various systems
2. Enable the MMX support by default.
3. Remove all the echo cancellers except MG2 (and JPAH, for
testing).
   Any need to keep KB1? It's dead code nobody uses.

I have initially kept "AMD" out of that list, and
to add it later on
only after it has been tested to work.

Can anybody suggest a simple test for FPU unit corurption?

-- 
               Tzafrir Cohen       
icq#16849755                    jabber:tzafrirjabber.org
+972-50-7952406           mailto:tzafrir.cohenxorcom.com       
http://www.xorcom.com 
iax:guestlocal.xorcom.com/tzafrir

_______________________________________________

Sign up now for AstriCon 2007!  September 25-28th.  http://www.astricon.net/


--Bandwidth and Colocation Provided by http://www.api-digital.c
om--

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

Re: MMX in Zaptel
country flaguser name
Canada
2007-09-22 08:32:49
Tzafrir Cohen wrote:
> Reminder: zconfig.h includes a defina called
CONFIG_ZAPTEL_MMX,
> undefined by default, to enable/disable MMX support in
Zaptel. It also
> warns of problems with various CPUs.
>   
This worries me a bit. I've never been able to have zaptel
act in a 
stable manner when I enable this on an Intel(R) Celeron(R)
CPU 1.70GHz. 
There's another celeron I've tried it on as well where I
have not had 
success.

When enabling MMX I'd hear all sorts of weird sounds and
distortions in 
conversations. Disabling MMX and all was fine. The last time
I tried to 
use MMX was sometime around June/July with both the 1.2 and
1.4 releases.

I don't have any more information to provide other than it
doesn't seem 
to work with Celerons, even though they say they support
MMX.

Trevor

-- 
Does your Canadian VoIP service need CRTC-compliant 9-1-1
services?  Please
visit http://www.digita
lcon.ca/voip9-1-1/ to find out more!


_______________________________________________

Sign up now for AstriCon 2007!  September 25-28th.  http://www.astricon.net/


--Bandwidth and Colocation Provided by http://www.api-digital.c
om--

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

Re: MMX in Zaptel
country flaguser name
United States
2007-09-22 08:42:15
Trevor Peirce wrote:
> Tzafrir Cohen wrote:
>> Reminder: zconfig.h includes a defina called
CONFIG_ZAPTEL_MMX,
>> undefined by default, to enable/disable MMX support
in Zaptel. It also
>> warns of problems with various CPUs.
>>   
> This worries me a bit. I've never been able to have
zaptel act in a 
> stable manner when I enable this on an Intel(R)
Celeron(R) CPU 1.70GHz. 
> There's another celeron I've tried it on as well where
I have not had 
> success.
> 
> When enabling MMX I'd hear all sorts of weird sounds
and distortions in 
> conversations. Disabling MMX and all was fine. The last
time I tried to 
> use MMX was sometime around June/July with both the 1.2
and 1.4 releases.
> 
> I don't have any more information to provide other than
it doesn't seem 
> to work with Celerons, even though they say they
support MMX.

For some reason I thought MMX Optimizations in Asterisk only
applied to 
the GSM codec.

_______________________________________________

Sign up now for AstriCon 2007!  September 25-28th.  http://www.astricon.net/


--Bandwidth and Colocation Provided by http://www.api-digital.c
om--

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

Re: MMX in Zaptel
country flaguser name
Israel
2007-09-22 08:43:52
On Sat, Sep 22, 2007 at 06:32:49AM -0700, Trevor Peirce
wrote:
> Tzafrir Cohen wrote:
> > Reminder: zconfig.h includes a defina called
CONFIG_ZAPTEL_MMX,
> > undefined by default, to enable/disable MMX
support in Zaptel. It also
> > warns of problems with various CPUs.
> >   
> This worries me a bit. I've never been able to have
zaptel act in a 
> stable manner when I enable this on an Intel(R)
Celeron(R) CPU 1.70GHz. 
> There's another celeron I've tried it on as well where
I have not had 
> success.
> 
> When enabling MMX I'd hear all sorts of weird sounds
and distortions in 
> conversations. Disabling MMX and all was fine. The last
time I tried to 
> use MMX was sometime around June/July with both the 1.2
and 1.4 releases.
> 
> I don't have any more information to provide other than
it doesn't seem 
> to work with Celerons, even though they say they
support MMX.

What kernel version do you use, exactly? What version of
gcc?

-- 
               Tzafrir Cohen       
icq#16849755                    jabber:tzafrirjabber.org
+972-50-7952406           mailto:tzafrir.cohenxorcom.com       
http://www.xorcom.com 
iax:guestlocal.xorcom.com/tzafrir

_______________________________________________

Sign up now for AstriCon 2007!  September 25-28th.  http://www.astricon.net/


--Bandwidth and Colocation Provided by http://www.api-digital.c
om--

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

Re: MMX in Zaptel
country flaguser name
Canada
2007-09-22 08:52:36
Tzafrir Cohen wrote:
> On Sat, Sep 22, 2007 at 06:32:49AM -0700, Trevor Peirce
wrote:
>   
>> This worries me a bit. I've never been able to have
zaptel act in a 
>> stable manner when I enable this on an Intel(R)
Celeron(R) CPU 1.70GHz. 
>> There's another celeron I've tried it on as well
where I have not had 
>> success.
>>
>> When enabling MMX I'd hear all sorts of weird
sounds and distortions in 
>> conversations. Disabling MMX and all was fine. The
last time I tried to 
>> use MMX was sometime around June/July with both the
1.2 and 1.4 releases.
>>
>> I don't have any more information to provide other
than it doesn't seem 
>> to work with Celerons, even though they say they
support MMX.
>>     
>
> What kernel version do you use, exactly? What version
of gcc?
>
>   
That machine would have

gcc version 4.0.2 20051125 (Red Hat 4.0.2-8)
Linux x 2.6.14-1.1644_FC4.local #1 Fri Dec 9 18:08:08 PST
2005 i686 i686 
i386 GNU/Linux

-- 
Does your Canadian VoIP service need CRTC-compliant 9-1-1
services?  Please
visit http://www.digita
lcon.ca/voip9-1-1/ to find out more!


_______________________________________________

Sign up now for AstriCon 2007!  September 25-28th.  http://www.astricon.net/


--Bandwidth and Colocation Provided by http://www.api-digital.c
om--

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

Re: MMX in Zaptel
country flaguser name
Israel
2007-09-22 08:59:55
On Sat, Sep 22, 2007 at 08:42:15AM -0500, Eric ManxPower
Wieling wrote:

> For some reason I thought MMX Optimizations in Asterisk
only applied to 
> the GSM codec.

The MMX optimizations in Zaptel are not the MMX
optimizations in
Asterisk.

Look for CONFIG_ZAPTEL_MMX in zaptel.

-- 
               Tzafrir Cohen       
icq#16849755                    jabber:tzafrirjabber.org
+972-50-7952406           mailto:tzafrir.cohenxorcom.com       
http://www.xorcom.com 
iax:guestlocal.xorcom.com/tzafrir

_______________________________________________

Sign up now for AstriCon 2007!  September 25-28th.  http://www.astricon.net/


--Bandwidth and Colocation Provided by http://www.api-digital.c
om--

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

Re: MMX in Zaptel
country flaguser name
United States
2007-09-22 09:55:26
On Sat, 2007-09-22 at 06:32 -0700, Trevor Peirce wrote:
> This worries me a bit. I've never been able to have
zaptel act in a 
> stable manner when I enable this on an Intel(R)
Celeron(R) CPU 1.70GHz. 
> There's another celeron I've tried it on as well where
I have not had 
> success.

To be honest, this worries me too... I've never had success
in getting
these so-called optimizations to work correctly for me, on
either Intel
or AMD processors.  As far as I know, it's been broken for
years.  (So
long, in fact, that is been at least a year since I tried it
out.)

-Jared


_______________________________________________

Sign up now for AstriCon 2007!  September 25-28th.  http://www.astricon.net/


--Bandwidth and Colocation Provided by http://www.api-digital.c
om--

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

Re: MMX in Zaptel
country flaguser name
United States
2007-09-22 12:33:17
Tzafrir Cohen wrote:
> Hi
> 
> Reminder: zconfig.h includes a defina called
CONFIG_ZAPTEL_MMX,
> undefined by default, to enable/disable MMX support in
Zaptel. It also
> warns of problems with various CPUs.
> 
> See also the previous thread:
> http://lists.digium.com/pipermail/asterisk
-dev/2007-August/029221.html
> 
> I have just commited a change to the kernel 2.6
Makefile to enable this
> if the CPU supports MMX:
> http://svn.digium.com/view/zaptel?view=rev&revis
ion=3076
> This is disabled by default. You need to explicitly
edit that file or
> something of the sort of:
> 
>   ZAPTEL_MMX_AUTO=yes make
> 
> to enable it. I do plan to enable it by default in the
following release
> (1.4.7 ).

Many have already replied to this thread giving similar
sentiments. 
That code is potentially broken and definitely unreliable. 
Do not 
enable it by default.  If you want to work on it to improve
it, do so, 
but until there is a LOT of positive feedback, I don't want
to see it 
enabled by default.

> 
> The planed changes for that release (1.4.7 . Recall
that 1.4.6 is not
> yet released) - 
> 1. Test MMX support on various systems
> 2. Enable the MMX support by default.
> 3. Remove all the echo cancellers except MG2 (and JPAH,
for testing).
>    Any need to keep KB1? It's dead code nobody uses.

I don't see any problem with removing the others.  They are
old and 
probably should not be used.

-- 
Matthew Fredrickson
Software/Firmware Engineer
Digium, Inc.

_______________________________________________

Sign up now for AstriCon 2007!  September 25-28th.  http://www.astricon.net/


--Bandwidth and Colocation Provided by http://www.api-digital.c
om--

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

Re: MMX in Zaptel
country flaguser name
Israel
2007-09-22 13:40:39
On Sat, Sep 22, 2007 at 10:55:26AM -0400, Jarenessto wrote:
> On Sat, 2007-09-22 at 06:32 -0700, Trevor Peirce
wrote:
> > This worries me a bit. I've never been able to
have zaptel act in a 
> > stable manner when I enable this on an Intel(R)
Celeron(R) CPU 1.70GHz. 
> > There's another celeron I've tried it on as well
where I have not had 
> > success.
> 
> To be honest, this worries me too... I've never had
success in getting
> these so-called optimizations to work correctly for me,
on either Intel
> or AMD processors.  As far as I know, it's been broken
for years.  (So
> long, in fact, that is been at least a year since I
tried it out.)

What do you mean by "broken"? What problems have
you experinced with
them?

-- 
               Tzafrir Cohen       
icq#16849755                    jabber:tzafrirjabber.org
+972-50-7952406           mailto:tzafrir.cohenxorcom.com       
http://www.xorcom.com 
iax:guestlocal.xorcom.com/tzafrir

_______________________________________________

Sign up now for AstriCon 2007!  September 25-28th.  http://www.astricon.net/


--Bandwidth and Colocation Provided by http://www.api-digital.c
om--

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

Re: MMX in Zaptel
country flaguser name
Israel
2007-09-22 13:49:16
On Sat, Sep 22, 2007 at 12:33:17PM -0500, Matthew
Fredrickson wrote:
> Tzafrir Cohen wrote:
> > Hi
> > 
> > Reminder: zconfig.h includes a defina called
CONFIG_ZAPTEL_MMX,
> > undefined by default, to enable/disable MMX
support in Zaptel. It also
> > warns of problems with various CPUs.
> > 
> > See also the previous thread:
> > http://lists.digium.com/pipermail/asterisk
-dev/2007-August/029221.html
> > 
> > I have just commited a change to the kernel 2.6
Makefile to enable this
> > if the CPU supports MMX:
> > http://svn.digium.com/view/zaptel?view=rev&revis
ion=3076
> > This is disabled by default. You need to
explicitly edit that file or
> > something of the sort of:
> > 
> >   ZAPTEL_MMX_AUTO=yes make
> > 
> > to enable it. I do plan to enable it by default in
the following release
> > (1.4.7 ).
> 
> Many have already replied to this thread giving similar
sentiments. 
> That code is potentially broken and definitely
unreliable.  Do not 
> enable it by default.  If you want to work on it to
improve it, do so, 
> but until there is a LOT of positive feedback, I don't
want to see it 
> enabled by default.

The previous thread on this subject left me more optimistic.
Two have
replied to this message and reported it as
"broken" but were not too
specific.

So it indeed calls for further testing.

-- 
               Tzafrir Cohen       
icq#16849755                    jabber:tzafrirjabber.org
+972-50-7952406           mailto:tzafrir.cohenxorcom.com       
http://www.xorcom.com 
iax:guestlocal.xorcom.com/tzafrir

_______________________________________________

Sign up now for AstriCon 2007!  September 25-28th.  http://www.astricon.net/


--Bandwidth and Colocation Provided by http://www.api-digital.c
om--

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

[1-10]

about | contact  Other archives ( Real Estate discussion Medical topics )