[Asterisk-bsd] Kernel panic with dahdi_cfg and wcb1xxp0 (HFC-S single-port BRI ISDN cards)

Max Khon fjoe at samodelkin.net
Wed Feb 16 09:26:05 CST 2011


Thomas,

On Wed, Feb 16, 2011 at 8:13 PM, Thomas Zimmermann <tzimmermann at znc.ch>wrote:

I get kernel panic when reloading dahdi_cfg. The panic happens if
> dahdi/system.conf is allready configured. (see my attached system.conf)
> If dahdi/system.conf is unset, panic does not appear in this case. Perhabs
> it gives an indication.
>

wcb1xxp is still in experimental state (and it does not exist in official
dahdi svn at all). I'll let you know when it reaches production state.


> available dahdi modules:
> dahdi_enable="YES"
> dahdi_modules="dahdi_dummy wcb1xxp0.ko"
>
> template# dahdi_cfg -vvvvv
> DAHDI Tools Version - 2.4.0-rc1
>
> DAHDI Version: 2.4.0-rc5
> Echo Canceller(s):
> Configuration
> ======================
>
> SPAN 1: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)
>
> Channel map:
>
> Channel 01: Clear channel (A-law) (Echo Canceler: none) (Slaves: 01)
> Channel 02: Clear channel (A-law) (Echo Canceler: none) (Slaves: 02)
> Channel 03: Hardware assisted D-channel (Default) (Echo Canceler: none)
> (Slaves: 03)
>
> 3 channels to configure.
>
> Setting echocan for channel 1 to none
> Setting echocan for channel 2 to none
> Setting echocan for channel 3 to none
>
> ---panic follows----
>
> Here's the output of the panic:
>
> Fatal trap 12: page fault while in kernel mode
> cpuid = 0; apic id = 00
> fault virtual address   = 0xffffff8123de0000
> fault code              = supervisor write data, page not present
> instruction pointer     = 0x20:0xffffffff808aaa08
> stack pointer           = 0x28:0xffffff8123e7f650
> frame pointer           = 0x28:0xffffff8123e7f6a0
> code segment            = base 0x0, limit 0xfffff, type 0x1b
>                        = DPL 0, pres 1, long 1, def32 0, gran 1
> processor eflags        = resume, IOPL = 0
> current process         = 999 (dahdi_cfg)
> trap number             = 12
> panic: page fault
> cpuid = 0
> KDB: stack backtrace:
> #0 0xffffffff805f4e0e at kdb_backtrace+0x5e
> #1 0xffffffff805c2d07 at panic+0x187
> #2 0xffffffff808ac600 at trap_fatal+0x290
> #3 0xffffffff808acd66 at trap+0x286
> #4 0xffffffff80894fb4 at calltrap+0x8
> #5 0xffffffff810569b6 at hfc_clear_fifo_tx+0x86
> #6 0xffffffff8105472f at hfc_update_fifo_state+0x24f
> #7 0xffffffff81054c11 at hfc_zap_open+0x1a1
> #8 0xffffffff8102f3b6 at dahdi_specchan_open+0x4c6
> #9 0xffffffff8102f5b5 at dahdi_prechan_ioctl+0x95
> #10 0xffffffff8102fd1c at dahdi_ioctl+0x73c
> #11 0xffffffff810316bb at dahdi_device_ioctl+0x3b
> #12 0xffffffff8054cedb at devfs_ioctl_f+0x7b
> #13 0xffffffff806043c2 at kern_ioctl+0x102
> #14 0xffffffff806045fd at ioctl+0xfd
> #15 0xffffffff80600dd5 at syscallenter+0x1e5
> #16 0xffffffff808aca5b at syscall+0x4b
> #17 0xffffffff80895292 at Xfast_syscall+0xe2
> Uptime: 3m4s
> Physical memory: 4072 MB
> Dumping 214 MB: 199 183 167 151 135 119 103 87 71 55 39 23
>
> dmesg with dahdi and hfc relevant informations:
>
> dahdi: Telephony Interface Registered on major 196
> dahdi: Version: 2.4.0-rc5
> wcb1xxp0: vendor=1397 device=2bd0 subvendor=ffffffff
> wcb1xxp0: <CCD HFC-S> port 0xec00-0xec07 mem 0xfebffc00-0xfebffcff irq 20
> at device 0.0 on pci3
> wcb1xxp0: [FILTER]
> vzaphfc: card 0: registered ZTHFC1/0/1
> vzaphfc: card 0: registered ZTHFC1/0/2
> vzaphfc: card 0: registered ZTHFC1/0/3
> vzaphfc: card 0: resetting
> dahdi: Registered tone zone 30 (Switzerland)
> vzaphfc: card 0: chan B1: TX FIFO has become empty
> vzaphfc: card 0: chan B1 opened as ZTHFC1/0/1.
> vzaphfc: card 0: chan B1 closed as ZTHFC1/0/1.
> vzaphfc: card 0: chan B2: TX FIFO has become empty
> vzaphfc: card 0: chan B2 opened as ZTHFC1/0/2.
> vzaphfc: card 0: chan B2 closed as ZTHFC1/0/2.
> vzaphfc: card 0: chan D opened as ZTHFC1/0/3.
> vzaphfc: card 0: chan D closed as ZTHFC1/0/3.
> re0: link state changed to UP
>
> template# uname -a
> FreeBSD template 8.2-RC3 FreeBSD 8.2-RC3 #0: Wed Feb 16 10:57:22 CET 2011
>   root@:/usr/obj/usr/src/sys/GENERIC  amd64
>
>
> template# cat /usr/local/etc/dahdi/system.conf
> span=1,1,0,ccs,ami
> bchan=1,2
> hardhdlc=3
>
> loadzone=ch
> defaultzone=ch
>
> alaw=1-2
> #echocanceller=oslec,1-2 #disabled when testing
>
>
> template# ll /dev/dahdi/
> total 0
> crw-rw-r--  1 root  dahdi    0,  99 Feb 16 12:42 1
> crw-rw-r--  1 root  dahdi    0, 100 Feb 16 12:42 2
> crw-rw-r--  1 root  dahdi    0, 101 Feb 16 12:42 3
> crw-rw-r--  1 root  dahdi    0,  94 Feb 16 12:42 channel
> crw-rw-r--  1 root  dahdi    0,  92 Feb 16 12:42 ctl
> crw-rw-r--  1 root  dahdi    0,  98 Feb 16 12:42 pseudo
> crw-rw-r--  1 root  dahdi    0,  93 Feb 16 12:42 timer
>
>
> template# kldstat
> Id Refs Address            Size     Name
>  1   32 0xffffffff80100000 c9fe20   kernel
>  2    1 0xffffffff80da0000 24d98    snd_hda.ko
>  3    2 0xffffffff80dc5000 75668    sound.ko
>  4    1 0xffffffff80e3b000 f080     aio.ko
>  5    1 0xffffffff80e4b000 918      accf_data.ko
>  6    1 0xffffffff80e4c000 930      accf_dns.ko
>  7    1 0xffffffff80e4d000 15e0     accf_http.ko
>  8    1 0xffffffff80e4f000 1fe0     coretemp.ko
>  9    1 0xffffffff80e51000 8950     acpi_asus.ko
> 10    1 0xffffffff80e5a000 ffb0     ahci.ko
> 11    2 0xffffffff81022000 31f6c    dahdi.ko
> 12    1 0xffffffff81054000 3d1c     wcb1xxp.ko
>
>
> template# dahdi_test
> Opened pseudo dahdi interface, measuring accuracy...
> 99.878% 99.924% 99.977% 99.976% 99.879% 99.977% 99.730% 99.879%
> 99.977% 99.881% 99.730% 99.977% 99.925% 99.880% 99.880% 99.730%
> 99.880% 99.977% 99.977% 99.880% 99.977% 99.632% 99.977% 99.880% ^C
> --- Results after 24 passes ---
> Best: 99.977 -- Worst: 99.632 -- Average: 99.890773, Difference: 99.998445
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-bsd/attachments/20110216/88a4c9bc/attachment.htm>


More information about the Asterisk-BSD mailing list