Re: [Asterisk-Users] wctdm and two tdm cards

2005-03-03 Thread Rich Adamson
   * Uncomment if you happen have an early TDM400P Rev H
  which
 
   * sometimes forgets its PCI ID to have wcfxs match essentially
  all
   * subvendor
  ID's
 
 I'd love to know how the TJ320 forgets its PCI ID...  it's set using 
 resistors, for Chrissakes...

Some sort of timing issue in retreiving it?



___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] wctdm and two tdm cards

2005-03-03 Thread Cirelle Internet Products
Matt Gibson wrote:
Still not working -
I did notice something kinda weird tho, After adding
{  0xe159, 0x0001, 0xa900, PCI_ANY_ID, 0, 0, (unsigned long) wctdmh },
to wctdm.c, and rebooting
when I issue lspci -v, the PCI id on the card has changed (?). Is this 
a normal thing to happen?

Instead of being 0xa900 it's now seeing as a9fd:0003
I havent changed anything cept rebuilt the zaptel source.
Matt
ps: none of the methods mentioned have worked so far.
You might want to send this off to Digium
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] wctdm and two tdm cards

2005-03-03 Thread Cirelle Internet Products
Matt Gibson wrote:
I tried this, but I think this message is slightly outdated, as In my 
wctdm.c (not wcfxs.c) I have the following, which leads me to believe 
that it should be already incorporated.


Yeah the file name has changed, but the concept is still valid.

Is there some way to send a command to the card on reboot to signify 
that it has lost power and should come back up or something? I'm not
familiar at all with low level driver programming or anything, but
just a thought.

Not that I am aware
regards
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] wctdm and two tdm cards

2005-03-02 Thread Matt Gibson
Greetings,
I have a server I'm working on here with two tdm cards in it.
4 FXS and 4FX0. Both cards work fine on their own. The problem
lies with using both in the system at once. I have verified the
IRQ's are fine. I have tried switching the slots the cards reside in, no 
luck though. I am using ACPI but not APM. I am using gentoo latest, with 
vanilla 2.6(.10) kernel and udev. CVS as of CVS-HEAD-03/02/05-03:42:41.

The problem is as follows:
If I power up the system from system off, the cards both get detected
If I reboot the system with reset button, ctrl alt del, or 'reboot'
the TDM04P does not get detected.
If I then reboot, then hit the power button, and let it turn off, then
turn it back on again and boot, it detects both cards fine.
I have tried searchign the list archives, but I have not had much luck. 
 One person on IRC mentioned he's seen this before, but didn't have any
solutions.

Does anyone here know what might be the problem? or have a fix/work 
around? I know I shouldnt be rebooting servers, but I have to make sure 
it works upon reboot as it is going to be installed in a power-outtage 
happy part of the world :)

TIA,
Matts
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] wctdm and two tdm cards

2005-03-02 Thread Begumisa Gerald M
 If I reboot the system with reset button, ctrl alt del, or 'reboot'
 the TDM04P does not get detected.

To completely reset the TDM cards before they can be reliably detected
again, you may have to completely power down the machine - even to the
extent of pulling out the power plug and replacing it, then booting up.


Regards,
Gerald.
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] wctdm and two tdm cards

2005-03-02 Thread Andrew Kohlsmith
On March 2, 2005 05:07 am, Begumisa Gerald M wrote:
 To completely reset the TDM cards before they can be reliably detected
 again, you may have to completely power down the machine - even to the
 extent of pulling out the power plug and replacing it, then booting up.

There's *got* to be a way to programmatically do this in the driver init; I 
mean there aren't many (any?) other cards (network, video, sound, etc.) cards 
out there that require this.

-A.
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] wctdm and two tdm cards

2005-03-02 Thread Rich Adamson

 I have a server I'm working on here with two tdm cards in it.
 4 FXS and 4FX0. Both cards work fine on their own. The problem
 lies with using both in the system at once. I have verified the
 IRQ's are fine. I have tried switching the slots the cards reside in, no 
 luck though. I am using ACPI but not APM. I am using gentoo latest, with 
 vanilla 2.6(.10) kernel and udev. CVS as of CVS-HEAD-03/02/05-03:42:41.
 
 The problem is as follows:
 
 If I power up the system from system off, the cards both get detected
 
 If I reboot the system with reset button, ctrl alt del, or 'reboot'
 the TDM04P does not get detected.
 
 If I then reboot, then hit the power button, and let it turn off, then
 turn it back on again and boot, it detects both cards fine.
 
 I have tried searchign the list archives, but I have not had much luck. 
   One person on IRC mentioned he's seen this before, but didn't have any
 solutions.
 
 Does anyone here know what might be the problem? or have a fix/work 
 around? I know I shouldnt be rebooting servers, but I have to make sure 
 it works upon reboot as it is going to be installed in a power-outtage 
 happy part of the world :)

I'm not having any problems like that with RHv9 (2.4 kernel), so I'd have
to guess the issue is 'timing' related in whatever script that loads your
tdm-zaptel drivers.

As I recall (as a non-v2.6 user), there was an issue with timing and 
someone added a sleep/wait statement in the startup script to bypass the
problem. Might consider finding your startup and add some additional time
to that sleep/wait.

Another approach to isolating the problem is to load the drivers by hand
paying close attention to error messages, delays, etc. If your not sure
how to do that, read your startup script and simply do those steps manually.

Someone mentioned unplugging power and/or removing the card. That approach
is totally BS. The same startup process is run regardless of whether one
is rebooting or starting from power-on. There is nothing on the tdm card
that stores values (no flash, no battery backup mem, etc). If the startup
script operates one time from any startup mode, it is setting the tdm
registers, etc, correctly.

I'm away from the office this week, but I recall there was a readme shipped
with the zaptel source that discusses kernel 2.6 timing issues. Might look
for that in your src directory.


___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] wctdm and two tdm cards

2005-03-02 Thread Andrew Kohlsmith
On March 2, 2005 07:26 am, Rich Adamson wrote:
 I'm not having any problems like that with RHv9 (2.4 kernel), so I'd have
 to guess the issue is 'timing' related in whatever script that loads your
 tdm-zaptel drivers.

I disagree.  My TDM430P will misdetect/miss modules entirely.  rmmod and 
modprobe wctdm (not zaptel, it stays loaded) and it works.  rmmod and reload 
again and it's missing/misdetecting modules.

It's a driver bug.  I haven't mantis'd it only because it hasn't caused me any 
significant grief and I don't have a testcase that will reliably work.

-A.

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] wctdm and two tdm cards

2005-03-02 Thread Cirelle Internet Products
Matt Gibson wrote:
Greetings,
I have a server I'm working on here with two tdm cards in it.
4 FXS and 4FX0. Both cards work fine on their own. The problem
lies with using both in the system at once. I have verified the
IRQ's are fine. I have tried switching the slots the cards reside in, 
no luck though. I am using ACPI but not APM. I am using gentoo latest, 
with vanilla 2.6(.10) kernel and udev. CVS as of 
CVS-HEAD-03/02/05-03:42:41.

The problem is as follows:
If I power up the system from system off, the cards both get detected
If I reboot the system with reset button, ctrl alt del, or 'reboot'
the TDM04P does not get detected.
If I then reboot, then hit the power button, and let it turn off, then
turn it back on again and boot, it detects both cards fine.
I have tried searchign the list archives, but I have not had much 
luck.  One person on IRC mentioned he's seen this before, but didn't 
have any
solutions.

Does anyone here know what might be the problem? or have a fix/work 
around? I know I shouldnt be rebooting servers, but I have to make 
sure it works upon reboot as it is going to be installed in a 
power-outtage happy part of the world :)

TIA,
Matts

Sounds like you would be fine if the power completely drops out. but 
there are 2 things I can
think of.

In zconfig.h (in the zaptel directory) there is a line at the bottom (at 
least in my cvs version)

/*  

* Uncomment if you happen have an early TDM400P Rev H 
which

* sometimes forgets its PCI ID to have wcfxs match essentially 
all
* subvendor 
ID's   

*/ 

#define TDM_REVH_MATCHALL

The other is a bit more involved and can be found here:
http://lists.digium.com/pipermail/asterisk-users/2004-October/07.html
This might be a bit different with the newer software, but the basic 
idea is the same

Regards
Greg
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] wctdm and two tdm cards

2005-03-02 Thread Matt Gibson
Hi Greg,
Cirelle Internet Products wrote:
In zconfig.h (in the zaptel directory) there is a line at the bottom (at 
least in my cvs version)
#define TDM_REVH_MATCHALL   
I tried this, then followed with make clean ; make linux26 ; make 
install  reboot, but it did not function. Then I decided to try your 
next suggestion.


The other is a bit more involved and can be found here:
http://lists.digium.com/pipermail/asterisk-users/2004-October/07.html
This might be a bit different with the newer software, but the basic 
idea is the same
I tried this, but I think this message is slightly outdated, as In my 
wctdm.c (not wcfxs.c) I have the following, which leads me to believe 
that it should be already incorporated.

here is an output from the file:
static struct pci_device_id wctdm_pci_tbl[] = {
  { 0xe159, 0x0001, 0xa159, PCI_ANY_ID, 0, 0, (unsigned long) wctdm },
  { 0xe159, 0x0001, 0xe159, PCI_ANY_ID, 0, 0, (unsigned long) wctdm },
  { 0xe159, 0x0001, 0xb100, PCI_ANY_ID, 0, 0, (unsigned long) wctdme },
  { 0xe159, 0x0001, 0xa9fd, PCI_ANY_ID, 0, 0, (unsigned long) wctdmh },
  { 0xe159, 0x0001, 0xa8fd, PCI_ANY_ID, 0, 0, (unsigned long) wctdmh },
  { 0xe159, 0x0001, 0xa800, PCI_ANY_ID, 0, 0, (unsigned long) wctdmh },
  { 0xe159, 0x0001, 0xa801, PCI_ANY_ID, 0, 0, (unsigned long) wctdmh },
  { 0xe159, 0x0001, 0xa908, PCI_ANY_ID, 0, 0, (unsigned long) wctdmh },
  { 0xe159, 0x0001, 0xa901, PCI_ANY_ID, 0, 0, (unsigned long) wctdmh },
#ifdef TDM_REVH_MATCHALL
{ 0xe159, 0x0001, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (unsigned long) wctdmh },
#endif
  { 0 }
};
and this is the output from lspci -v
:02:0c.0 Communication controller: Tiger Jet Network Inc. Tiger3XX 
Modem/ISDN interface
Subsystem: Unknown device a900:0003
Flags: bus master, medium devsel, latency 64, IRQ 7
I/O ports at e400
Memory at fbffa000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [40] Power Management version 2

:02:0d.0 Communication controller: Tiger Jet Network Inc. Tiger3XX 
Modem/ISDN interface
Subsystem: Unknown device b100:0003
Flags: bus master, medium devsel, latency 64, IRQ 4
I/O ports at e000
Memory at fbff9000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [40] Power Management version 2

Notice that the devices b100 and a900 are already present in the wctdm.c.
I did do a bit more digging, and it seems that the a900 line is not set 
in wctdm.mod.c. I'm not really sure if that could be the culprit as I'm 
not a C coder, but I will try and add it there.

It's not that big of a deal, it just doesn't make sense to me that
in order to use the card it must be powered down first. Nobody would
want to power down before listening to music via their soundcard.
Is there some way to send a command to the card on reboot to signify 
that it has lost power and should come back up or something? I'm not
familiar at all with low level driver programming or anything, but
just a thought.

Thanks for all your help,
Matt
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] wctdm and two tdm cards

2005-03-02 Thread Andrew Kohlsmith
On March 2, 2005 04:54 pm, Cirelle Internet Products wrote:
  * Uncomment if you happen have an early TDM400P Rev H
 which

  * sometimes forgets its PCI ID to have wcfxs match essentially
 all
  * subvendor
 ID's

I'd love to know how the TJ320 forgets its PCI ID...  it's set using 
resistors, for Chrissakes...

-A.
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] wctdm and two tdm cards

2005-03-02 Thread Matt Gibson
Still not working -
I did notice something kinda weird tho, After adding
{  0xe159, 0x0001, 0xa900, PCI_ANY_ID, 0, 0, (unsigned long) wctdmh },
to wctdm.c, and rebooting
when I issue lspci -v, the PCI id on the card has changed (?). Is this a 
normal thing to happen?

Instead of being 0xa900 it's now seeing as a9fd:0003
I havent changed anything cept rebuilt the zaptel source.
Matt
ps: none of the methods mentioned have worked so far.

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users