[Home]

Summary:DAHLIN-00232: [patch] proc does not show ClockSource when using multiple cards that are not connected by a timing cable
Reporter:Michael Spiceland (mspiceland)Labels:
Date Opened:2011-02-17 15:35:21.000-0600Date Closed:
Priority:MinorRegression?No
Status:In Progress/In ProgressComponents:General
Versions:2.4.0 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) 0001-dahdi-fix-ClockSource-in-proc-with-multiple-cards-wh.patch
Description:In my specific case, I have two quad T1/E1 TE405P cards in a system and they are not connected with a timing cable.  The /proc output for dahdi appends a "ClockSource" designator to show which span is the currently selected timing source.  When using multiple cards without a timing cable, each of the cards has its own independent clock source.  There is an issue for this case where only the ClockSource for the first card is shown.  This change resolves this issue and it is now show for each card in the system.

Before this change:

# cat /proc/dahdi/* | grep -i span
Span 1: TE4/1/1 "T4XXP (PCI) Card 1 Span 1" (MASTER) B8ZS/ESF ClockSource
Span 2: TE4/1/2 "T4XXP (PCI) Card 1 Span 2" B8ZS/ESF
Span 3: TE4/1/3 "T4XXP (PCI) Card 1 Span 3" B8ZS/ESF
Span 4: TE4/1/4 "T4XXP (PCI) Card 1 Span 4" B8ZS/ESF
Span 5: TE4/0/1 "T4XXP (PCI) Card 0 Span 1" B8ZS/ESF
Span 6: TE4/0/2 "T4XXP (PCI) Card 0 Span 2" B8ZS/ESF
Span 7: TE4/0/3 "T4XXP (PCI) Card 0 Span 3" B8ZS/ESF
Span 8: TE4/0/4 "T4XXP (PCI) Card 0 Span 4" B8ZS/ESF

After this change:
# cat /proc/dahdi/* | grep -i span
Span 1: TE4/1/1 "T4XXP (PCI) Card 1 Span 1" (MASTER) B8ZS/ESF ClockSource
Span 2: TE4/1/2 "T4XXP (PCI) Card 1 Span 2" B8ZS/ESF
Span 3: TE4/1/3 "T4XXP (PCI) Card 1 Span 3" B8ZS/ESF
Span 4: TE4/1/4 "T4XXP (PCI) Card 1 Span 4" B8ZS/ESF
Span 5: TE4/0/1 "T4XXP (PCI) Card 0 Span 1" B8ZS/ESF ClockSource
Span 6: TE4/0/2 "T4XXP (PCI) Card 0 Span 2" B8ZS/ESF
Span 7: TE4/0/3 "T4XXP (PCI) Card 0 Span 3" B8ZS/ESF
Span 8: TE4/0/4 "T4XXP (PCI) Card 0 Span 4" B8ZS/ESF

I tested this change while unplugging and replugging spans to ensure it works as expected for my case.  I'm sharing this in case someone wants to test with different hardware (e.g. B410P, HA8, etc) because this is in dahdi-base.
Comments:By: Michael Spiceland (mspiceland) 2011-02-17 17:29:42.000-0600

I did some more testing but this time with a timing cable.  It appears that this does not fix the ClockSource from /proc in that case.  The patch will have to be enhanced to also fix the case where a timing cable is used.