Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Jan 2001 00:20:19 +0200
From:      Andrey Lakhno <land@dnepr.net>
To:        prallon@tmp.com.br
Cc:        freebsd-isdn@FreeBSD.ORG
Subject:   Re: 2 Teles PCI cards in one PC
Message-ID:  <20010103002019.A11223@dnepr.net>
In-Reply-To: <20010102151432.A21821@tmp.com.br>; from prallon@tmp.com.br on Tue, Jan 02, 2001 at 15:14:32 -0200
References:  <20010102093844.A10729@dnepr.net> <20010102085741.ED8243A1@hcswork.hcs.de> <20010102110719.A829@dnepr.net> <20010102151432.A21821@tmp.com.br>

next in thread | previous in thread | raw e-mail | index | archive | help

--vtzGhvizbBRQ85DL
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi Sergio!

On Tue, 02 Jan 2001, Sergio de Souza Prallon wrote:

> > > > I encountered with problem. I can't make work two ISDN Teles PCI adapters.
> > > > When I working only with one of two cards things going ok.
> > > 
> 
> Hi,
> 
> I have two cards but only one ISDN line, so I was unable to test the driver
> with both of them simultaneously. If you have the time & patience to spare

I also have only one ISDN line. But when I try to use one adapter and than 
another one system panics and reboots. Things doesn't change when i try to
use them simultaneously even with one ISDN line.

> I can try to remotely (by email I mean) debug the problem. I've made a new
> revision of the driver that implements a workaround for the problem stated
> on the original README file and another one that was causing reboots, but
> both bugs are related to the kernel SPPP; the userland SPPP seems to have
> a more robust interface. I'll try to update my web site tonight with this

Does kernel sppp supports multilink ppp ?

> one. I'd like to known if the problem persist. For now, you can post your
> isdnd.rc & ppp.conf (please remember to wipe out any authentication info).
> This will give me a better starting point.

To this letter attached ppp.conf, isdnd.rc and script of kernel debug session.

-- 
Best regards,
 Andrey

--vtzGhvizbBRQ85DL
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="ppp.conf"

default:
  set speed sync
  set timeout 0
  set authname aname
  set authkey apasswd
  set ifaddr 10.0.0.1/0 10.0.0.2/0 0.0.0.0 0.0.0.0
  set log Phase Chat LCP IPCP CCP tun command
  enable lqr
  set reconnect 3 5
  set redial 3 10
  set lqrperiod 45
   
 disable pred1 deflate mppe
 deny pred1 deflate mppe

 set dial
 set login
 set logout
 set hangup

ppp0:
  set phone 1234567
  set device /dev/i4brbch0 /dev/i4brbch1

  set mrru 1500
  set mru 1504

  clone 1,2
  link deflink rm

  link * set mode ddial

ppp1:
  set phone 7654321
  set device /dev/i4brbch2

--vtzGhvizbBRQ85DL
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="kdebug.log"
Content-Transfer-Encoding: quoted-printable

GNU gdb 4.18=0D
Copyright 1998 Free Software Foundation, Inc.=0D
GDB is free software, covered by the GNU General Public License, and you ar=
e=0D
welcome to change it and/or distribute copies of it under certain condition=
s.=0D
Type "show copying" to see the conditions.=0D
There is absolutely no warranty for GDB.  Type "show warranty" for details.=
=0D
This GDB was configured as "i386-unknown-freebsd"...=0D
IdlePTD 2879488=0D
initial pcb at 243100=0D
panicstr: page fault=0D
panic messages:=0D
---=0D
Fatal trap 12: page fault while in kernel mode=0D
fault virtual address	=3D 0x0=0D
fault code		=3D supervisor read, page not present=0D
instruction pointer	=3D 0x8:0xc01eec30=0D
stack pointer	        =3D 0x10:0xc0225db4=0D
frame pointer	        =3D 0x10:0xc0225de8=0D
code segment		=3D base 0x0, limit 0xfffff, type 0x1b=0D
			=3D DPL 0, pres 1, def32 1, gran 1=0D
processor eflags	=3D interrupt enabled, resume, IOPL =3D 0=0D
current process		=3D Idle=0D
interrupt mask		=3D net =0D
trap number		=3D 12=0D
panic: page fault=0D
=0D
syncing disks... =0D
=0D
Fatal trap 12: page fault while in kernel mode=0D
fault virtual address	=3D 0x30=0D
fault code		=3D supervisor read, page not present=0D
instruction pointer	=3D 0x8:0xc019c468=0D
stack pointer	        =3D 0x10:0xc0225bac=0D
frame pointer	        =3D 0x10:0xc0225bb0=0D
code segment		=3D base 0x0, limit 0xfffff, type 0x1b=0D
			=3D DPL 0, pres 1, def32 1, gran 1=0D
processor eflags	=3D interrupt enabled, resume, IOPL =3D 0=0D
current process		=3D Idle=0D
interrupt mask		=3D net bio cam =0D
trap number		=3D 12=0D
panic: page fault=0D
Uptime: 3m41s=0D
=0D
dumping to dev #ad/0x20001, offset 792273=0D
dump ata0: resetting devices .. done=0D
127 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112 111 110 109=
 108 107 106 105 104 103 102 101 100 99 98 97 96 95 94 93 92 91 90 89 88 87=
 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62=
 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37=
 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12=
 11 10 9 8 7 6 5 4 3 2 1 0 =0D
---=0D
#0  dumpsys () at ../../kern/kern_shutdown.c:469=0D
469		if (dumping++) {=0D
(kgdb) bt=0D
#0  dumpsys () at ../../kern/kern_shutdown.c:469=0D
#1  0xc013f437 in boot (howto=3D260) at ../../kern/kern_shutdown.c:309=0D
#2  0xc013f7b4 in poweroff_wait (junk=3D0xc021c12f, howto=3D0)=0D
    at ../../kern/kern_shutdown.c:556=0D
#3  0xc01e6079 in trap_fatal (frame=3D0xc0225b6c, eva=3D48)=0D
    at ../../i386/i386/trap.c:951=0D
#4  0xc01e5d51 in trap_pfault (frame=3D0xc0225b6c, usermode=3D0, eva=3D48)=
=0D
    at ../../i386/i386/trap.c:844=0D
#5  0xc01e590b in trap (frame=3D{tf_fs =3D 6684688, tf_es =3D -1071513584, =
=0D
      tf_ds =3D -1057226736, tf_edi =3D 0, tf_esi =3D -1057203456, =0D
      tf_ebp =3D -1071490128, tf_isp =3D -1071490152, tf_ebx =3D -107142589=
2, =0D
      tf_edx =3D 6832128, tf_ecx =3D -908380736, tf_eax =3D 0, tf_trapno =
=3D 12, =0D
      tf_err =3D 0, tf_eip =3D -1072053144, tf_cs =3D 8, tf_eflags =3D 6605=
4, =0D
      tf_esp =3D -1057203456, tf_ss =3D -1071490096}) at ../../i386/i386/tr=
ap.c:443=0D
#6  0xc019c468 in acquire_lock (lk=3D0xc023569c)=0D
    at ../../ufs/ffs/ffs_softdep.c:268=0D
#7  0xc01a021c in softdep_update_inodeblock (ip=3D0xc0fc5b00, bp=3D0xc38261=
50, =0D
    waitfor=3D0) at ../../ufs/ffs/ffs_softdep.c:3643=0D
#8  0xc019b745 in ffs_update (vp=3D0xc9db35c0, waitfor=3D0)=0D
    at ../../ufs/ffs/ffs_inode.c:106=0D
#9  0xc01a4aed in ffs_fsync (ap=3D0xc0225c5c) at ../../ufs/ffs/ffs_vnops.c:=
273=0D
#10 0xc01a3453 in ffs_sync (mp=3D0xc0f09c00, waitfor=3D2, cred=3D0xc0731680=
, =0D
    p=3D0xc0257be0) at vnode_if.h:537=0D
#11 0xc016cd53 in sync (p=3D0xc0257be0, uap=3D0x0) at ../../kern/vfs_syscal=
ls.c:545=0D
---Type <return> to continue, or q <return> to quit--- =08 =08=0D
#12 0xc013f20a in boot (howto=3D256) at ../../kern/kern_shutdown.c:233=0D
#13 0xc013f7b4 in poweroff_wait (junk=3D0xc021c12f, howto=3D0)=0D
    at ../../kern/kern_shutdown.c:556=0D
#14 0xc01e6079 in trap_fatal (frame=3D0xc0225d74, eva=3D0)=0D
    at ../../i386/i386/trap.c:951=0D
#15 0xc01e5d51 in trap_pfault (frame=3D0xc0225d74, usermode=3D0, eva=3D0)=0D
    at ../../i386/i386/trap.c:844=0D
#16 0xc01e590b in trap (frame=3D{tf_fs =3D 16, tf_es =3D -1072168944, =0D
      tf_ds =3D -1066205168, tf_edi =3D -1058324004, tf_esi =3D -1058324004=
, =0D
      tf_ebp =3D -1071489560, tf_isp =3D -1071489632, tf_ebx =3D -105832448=
0, =0D
      tf_edx =3D -1071489516, tf_ecx =3D -1058324004, tf_eax =3D 0, tf_trap=
no =3D 12, =0D
      tf_err =3D 0, tf_eip =3D -1071715280, tf_cs =3D 8, tf_eflags =3D 6611=
8, =0D
      tf_esp =3D -1058324480, tf_ss =3D 21249}) at ../../i386/i386/trap.c:4=
43=0D
#17 0xc01eec30 in itjc_get_tx_mbuf (sc=3D0xc0eb4000, chan=3D0xc0eb41dc, =0D
    src_p=3D0xc0225e14, which=3DITJC_MB_CURR)=0D
    at ../../i4b/layer1/itjc/i4b_itjc_pci.c:894=0D
#18 0xc01ef8a2 in itjc_dma_tx_intr (sc=3D0xc0eb4000, chan=3D0xc0eb41dc, =0D
    ctx=3D0xc0259ae0) at ../../i4b/layer1/itjc/i4b_itjc_pci.c:1351=0D
#19 0xc01f00c6 in itjc_intr (xsc=3D0xc0eb4000)=0D
    at ../../i4b/layer1/itjc/i4b_itjc_pci.c:1796=0D
(kgdb) up 17=0D
#17 0xc01eec30 in itjc_get_tx_mbuf (sc=3D0xc0eb4000, chan=3D0xc0eb41dc, =0D
    src_p=3D0xc0225e14, which=3DITJC_MB_CURR)=0D
    at ../../i4b/layer1/itjc/i4b_itjc_pci.c:894=0D
894			(*chan->isic_drvr_linktab->bch_tx_queue_empty)=0D
(kgdb) list=0D
889			chan->out_mbuf_cur_ptr =3D *src_p =3D NULL;=0D
890			chan->out_mbuf_cur_len =3D 0;=0D
891	=0D
892			chan->state &=3D ~(HSCX_TX_ACTIVE);=0D
893	=0D
894			(*chan->isic_drvr_linktab->bch_tx_queue_empty)=0D
895				(chan->isic_drvr_linktab->unit);=0D
896	=0D
897			return 0;=0D
898		}=0D
(kgdb) down=0D
#16 0xc01e590b in trap (frame=3D{tf_fs =3D 16, tf_es =3D -1072168944, =0D
      tf_ds =3D -1066205168, tf_edi =3D -1058324004, tf_esi =3D -1058324004=
, =0D
      tf_ebp =3D -1071489560, tf_isp =3D -1071489632, tf_ebx =3D -105832448=
0, =0D
      tf_edx =3D -1071489516, tf_ecx =3D -1058324004, tf_eax =3D 0, tf_trap=
no =3D 12, =0D
      tf_err =3D 0, tf_eip =3D -1071715280, tf_cs =3D 8, tf_eflags =3D 6611=
8, =0D
      tf_esp =3D -1058324480, tf_ss =3D 21249}) at ../../i386/i386/trap.c:4=
43=0D
443				(void) trap_pfault(&frame, FALSE, eva);=0D
(kgdb) list=0D
438	kernel_trap:=0D
439			/* kernel trap */=0D
440	=0D
441			switch (type) {=0D
442			case T_PAGEFLT:			/* page fault */=0D
443				(void) trap_pfault(&frame, FALSE, eva);=0D
444				return;=0D
445	=0D
446			case T_DNA:=0D
447	#if NNPX > 0=0D
(kgdb) up 2=0D
#18 0xc01ef8a2 in itjc_dma_tx_intr (sc=3D0xc0eb4000, chan=3D0xc0eb41dc, =0D
    ctx=3D0xc0259ae0) at ../../i4b/layer1/itjc/i4b_itjc_pci.c:1351=0D
1351		len =3D itjc_get_tx_mbuf(sc, chan, &src, ITJC_MB_CURR);=0D
(kgdb) list=0D
1346		}=0D
1347	=0D
1348		ring   =3D ctx->ring;=0D
1349		filled =3D ctx->filled;=0D
1350	=0D
1351		len =3D itjc_get_tx_mbuf(sc, chan, &src, ITJC_MB_CURR);=0D
1352	=0D
1353		if (len =3D=3D 0 && filled >=3D ITJC_RING_WORDS)=0D
1354			return;=0D
1355	=0D
(kgdb) up=0D
#19 0xc01f00c6 in itjc_intr (xsc=3D0xc0eb4000)=0D
    at ../../i4b/layer1/itjc/i4b_itjc_pci.c:1796=0D
1796		itjc_dma_tx_intr(sc, chan, txc);=0D
(kgdb) list=0D
1791		itjc_write_1(TIGER_INT0_STATUS, TIGER_TARGET_ABORT_INT=0D
1792			| TIGER_MASTER_ABORT_INT | TIGER_RD_END_INT=0D
1793			| TIGER_RD_INT_INT	 | TIGER_WR_END_INT | TIGER_WR_INT_INT);=0D
1794	=0D
1795		itjc_dma_rx_intr(sc, chan, rxc);=0D
1796		itjc_dma_tx_intr(sc, chan, txc);=0D
1797	=0D
1798		++chan; ++rxc; ++txc;=0D
1799	=0D
1800		itjc_dma_rx_intr(sc, chan, rxc);=0D
(kgdb) up=0D
Initial frame selected; you cannot go up.=0D
(kgdb) list=0D
1801		itjc_dma_tx_intr(sc, chan, txc);=0D
1802	}=0D
1803	=0D
1804	=0D
1805	/*--------------------------------------------------------------------=
-------*=0D
1806	 *	itjc_bchannel_setup - (Re)initialize and start/stop a Bchannel.=0D
1807	 *--------------------------------------------------------------------=
-------*/=0D
1808	static void=0D
1809	itjc_bchannel_setup(int unit, int h_chan, int bprot, int activate)=0D
1810	{=0D
(kgdb) quit=0D

--vtzGhvizbBRQ85DL
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="isdnd.rc"

system

acctall		= on			# generate info for everything
acctfile	= /var/log/isdnd.acct	# name & location of accounting file
useacctfile	= yes			# generate accouting info to file

beepconnect	= on
isdntime	= on

monitor-allowed	= yes			# global switch: monitor on/off
monitor-port	= 451			# default monitor TCP port

monitor		= "/var/run/isdn-monitor" 
monitor-access	= fullcmd
monitor-access	= channelstate, logevents
monitor-access	= callin, callout

ratesfile	= /etc/isdn/isdnd.rates	# name & location of rates file

rtprio		= 25			# modify isdnd's process priority

#==============================================================================
# entry section I4BPPP0
#==============================================================================
entry				

name        		= I4BPPP0
usrdevicename		= rbch		# ipr, isp, tel, rbch
usrdeviceunit		= 0		# unit number
isdncontroller		= 0		#contoller to use or -1 to use any
isdnchannel		= 1		#channel (1/2) to use or 0 or -1 for any

direction		= out		# in, out, inout
local-phone-dialout	= 56789
remote-phone-dialout	= 1234567
remdial-handling	= first		# first, last or next
dialin-reaction		= reject	# accept,reject,ignore, answer, callback
dialout-type		= normal	# normal / calledback
callbackwait		= 1		# no of secs to wait before calling back
b1protocol		= hdlc		# hdlc, raw

ratetype		= 0		# ratesfile entry to use
unitlength		= 90		# unitlength to assume
unitlengthsrc		= rate		# none, rate, cmdl, conf, aocd
idletime-incoming	= 120		# incoming call idle timeout
idletime-outgoing	= 30		# outgoing call idle timeout
earlyhangup		= 5

dialretries		= 3		# # of dial retries
dialrandincr		= off		# random dial increment time
recoverytime		= 5		# time to wait between 2 dial tries
usedown			= off		# set i/f down
downtries		= 5		# retry cycles before set down
downtime		= 30		# time to be in down before going up

#==============================================================================
# entry section I4BPPP1
#==============================================================================
entry				

name        		= I4BPPP1
usrdevicename		= rbch		# ipr, isp, tel, rbch
usrdeviceunit		= 1		# unit number
isdncontroller		= 0		#contoller to use or -1 to use any
isdnchannel		= 2		#channel (1/2) to use or 0 or -1 for any

direction		= out		# in, out, inout
local-phone-dialout	= 56789
remote-phone-dialout	= 1234567
remdial-handling	= first		# first, last or next
dialin-reaction		= reject	# accept,reject,ignore, answer, callback
dialout-type		= normal	# normal / calledback
callbackwait		= 1		# no of secs to wait before calling back
b1protocol		= hdlc		# hdlc, raw

ratetype		= 0		# ratesfile entry to use
unitlength		= 90		# unitlength to assume
unitlengthsrc		= rate		# none, rate, cmdl, conf, aocd
idletime-incoming	= 120		# incoming call idle timeout
idletime-outgoing	= 30		# outgoing call idle timeout
earlyhangup		= 5

dialretries		= 3		# # of dial retries
dialrandincr		= off		# random dial increment time
recoverytime		= 5		# time to wait between 2 dial tries
usedown			= off		# set i/f down
downtries		= 5		# retry cycles before set down
downtime		= 30		# time to be in down before going up

#==============================================================================
# entry section I4BPPP2
#==============================================================================
entry				

name        		= I4BPPP2
usrdevicename		= rbch		# ipr, isp, tel, rbch
usrdeviceunit		= 2		# unit number
isdncontroller		= 1		#contoller to use or -1 to use any
isdnchannel		= 1		#channel (1/2) to use or 0 or -1 for any

direction		= out		# in, out, inout
local-phone-dialout	= 567890
remote-phone-dialout	= 7654321
remdial-handling	= first		# first, last or next
dialin-reaction		= reject	# accept,reject,ignore, answer, callback
dialout-type		= normal	# normal / calledback
callbackwait		= 1		# no of secs to wait before calling back
b1protocol		= hdlc		# hdlc, raw

ratetype		= 0		# ratesfile entry to use
unitlength		= 90		# unitlength to assume
unitlengthsrc		= rate		# none, rate, cmdl, conf, aocd
idletime-incoming	= 120		# incoming call idle timeout
idletime-outgoing	= 30		# outgoing call idle timeout
earlyhangup		= 5

dialretries		= 3		# # of dial retries
dialrandincr		= off		# random dial increment time
recoverytime		= 5		# time to wait between 2 dial tries
usedown			= off		# set i/f down
downtries		= 5		# retry cycles before set down
downtime		= 30		# time to be in down before going up

#==============================================================================
# entry section I4BPPP3
#==============================================================================
entry				

name        		= I4BPPP3
usrdevicename		= rbch		# ipr, isp, tel, rbch
usrdeviceunit		= 3		# unit number
isdncontroller		= 1		#contoller to use or -1 to use any
isdnchannel		= 2		#channel (1/2) to use or 0 or -1 for any

direction		= out		# in, out, inout
local-phone-dialout	= 567890
remote-phone-dialout	= 7654321
remdial-handling	= first		# first, last or next
dialin-reaction		= reject	# accept,reject,ignore, answer, callback
dialout-type		= normal	# normal / calledback
callbackwait		= 1		# no of secs to wait before calling back
b1protocol		= hdlc		# hdlc, raw

ratetype		= 0		# ratesfile entry to use
unitlength		= 90		# unitlength to assume
unitlengthsrc		= rate		# none, rate, cmdl, conf, aocd
idletime-incoming	= 120		# incoming call idle timeout
idletime-outgoing	= 30		# outgoing call idle timeout
earlyhangup		= 5

dialretries		= 3		# # of dial retries
dialrandincr		= off		# random dial increment time
recoverytime		= 5		# time to wait between 2 dial tries
usedown			= off		# set i/f down
downtries		= 5		# retry cycles before set down
downtime		= 30		# time to be in down before going up

--vtzGhvizbBRQ85DL--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isdn" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010103002019.A11223>