Daemon News Ezine BSD News BSD Mall BSD Support Forum BSD Advocacy BSD Updates

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Switched virtual connection

Harti Brandt wrote:
On Tue, 21 Jun 2005, Heiner Strauss wrote:

HS>Harti Brandt wrote:
HS>> On Tue, 21 Jun 2005, Heiner Strauss wrote:
HS>> HS>> Hi, HS>> HS>> HS>Im trying to set up a SVC directly to an atm edge switch (3Com SS II
HS>> with an
HS>> HS>ATM uplink modul). The host has FreeBSD 5.4 and a ForeRunner 155HE card.
HS>> I
HS>> HS>have 2 Questions:
HS>> HS>
HS>> HS>1. Which of the 3 ATM implementations do I have to use ?
HS>> HS>> You should use the HARP stack (that is netatm) plus the hatm driver (that
HS>> needs options atm) and the if_harp driver. Something like:
HS>> HS>> natm_interfaces="hatm0" HS>> HS>> plus HARP configuration. See also rc.d/atm[123]. HS>> HS>> HS>2. Do I need ATMARPD ? HS>> HS>> You should google around for HARP. There is somewhere documentation on the
HS>> net. I think, that atmarpd is only needed if you want to synchronize
HS>> several atmarp daemons.
HS>> HS>> HS>3. Are there examples for SVCs in netgraph/natm/HARP ? HS>> HS>> There is some documentation in /usr/share/examples/atm. For the rc.conf
HS>> variables you should refer to the rc files.
HS>> HS>
HS>Ok. I did some homework. I have now :
HS>$ atm show int
HS>Interface  Sigmgr   State
HS>hatm0      UNI 3.0  INIT
HS>    ATM address = 0x47.0005.80.ffe100.0000.0000.0000.0020482e1367.00
HS>    Network interfaces: fa0
HS>There is now an UNI 3.0 signal manager and an ATM address. When I plug in the
HS>fiber the machine panics:
HS>Fatal trap 12: page fault while in kernel mode
HS>fault virtual address = 0x0
HS>fault code            = supervisor write, page not present
HS>processor eflags      = interrupt enabled, resume, IOPL=0
HS>current process       = 26 (swi1: net)
HS>trap number           = 12
HS>panic: page fault
HS>Uptime 29s
HS>Cannot dump....
HS>I have this in my kernel:
HS>options         ADAPTIVE_GIANT          # Giant mutex is adaptive.
HS>options         NATM
HS>options         ATM_CORE                #core ATM protocol family
HS>options         ATM_IP                  #IP over ATM support
HS>#options         ATM_SIGPVC              #SIGPVC signalling manager
HS>#options         ATM_SPANS               #SPANS signalling manager
HS>options         ATM_UNI                 #UNI signalling manager
HS>device          hatm
HS>device          utopia
HS>device          atm
HS>device          harp
HS>What do I have to do know ?

You can remove options NATM (but this has nothing to do with the panic). Can you please compile in DDB so that we get a stack trace? Also do you run current? If yes, you should fetch the patches I have committed today.

Here is the stack trace from current:

Copyright (c) 1992-2005 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD 6.0-CURRENT #0: Fri Jun 24 09:15:38 CEST 2005
WARNING: debug.mpsafenet forced to 0 as netatm requires Giant
WARNING: MPSAFE network stack disabled, expect reduced performance.
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Pentium II/Pentium II Xeon/Celeron (231.61-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x634  Stepping = 4

real memory  = 268427264 (255 MB)
avail memory = 253214720 (241 MB)
ACPI disabled by blacklist.  Contact your BIOS vendor.
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
cpu0 on motherboard
pcib0: <Intel 82443BX (440 BX) host to PCI bridge> pcibus 0 on motherboard
pir0: <PCI Interrupt Routing Table: 9 Entries> on motherboard
pci0: <PCI bus> on pcib0
agp0: <Intel 82443BX (440 BX) host to PCI bridge> mem 0xf8000000-0xfbffffff at device 0.0 on pci0
pcib1: <PCIBIOS PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <display, VGA> at device 0.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 UDMA33 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfcf0-0xfcff at device 7.1 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0xf800-0xf81f irq 9 at device 7.2 on pci0
usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
pci0: <bridge> at device 7.3 (no driver attached)
ed0: <NE2000 PCI Ethernet (ProLAN)> port 0xf400-0xf41f irq 11 at device 12.0 on pci0
ed0: Ethernet address: 48:54:e8:27:68:d5
ed0: type NE2000 (16 bit)
hatm0: <FORE HE> mem 0xfed00000-0xfedfffff irq 10 at device 14.0 on pci0

Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0x82080800
fault code              = supervisor read, page not present
instruction pointer     = 0x20:0xc0479db8
stack pointer           = 0x28:0xc0c20b58
frame pointer           = 0x28:0xc0c20b64
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 0 (swapper)
[thread pid 0 tid 0 ]
Stopped at      hatm_utopia_readregs+0x54:      movl    0(%edx,%eax,1),%eax
db> trace
Tracing pid 0 tid 0 td 0xc072c720
hatm_utopia_readregs(c15cd140,0,c0c20b7f,c0c20b80) at hatm_utopia_readregs+0x54 utopia_start(c15c706c,c153fd80,c153fd80,c15b7000,c153fd80) at utopia_start+0x22
hatm_attach(c153fd80) at hatm_attach+0x8a0
device_attach(c153fd80,c15b4080,c153fd80,c14f7480,c14f7480) at device_attach+0x58
device_probe_and_attach(c153fd80) at device_probe_and_attach+0xc4
bus_generic_attach(c14f7480,c14f7480,0,7c,0) at bus_generic_attach+0x16
pci_attach(c14f7480) at pci_attach+0x7f
device_attach(c14f7480,c14f7700,c14f7480,0,c14f7580) at device_attach+0x58
device_probe_and_attach(c14f7480) at device_probe_and_attach+0xc4
bus_generic_attach(c14f7580,c14f7580,c06daa84,0,0) at bus_generic_attach+0x16
legacy_pcib_attach(c14f7580) at legacy_pcib_attach+0xce
device_attach(c14f7580,c0724560,c14f7580,0,c14f7700) at device_attach+0x58
device_probe_and_attach(c14f7580) at device_probe_and_attach+0xc4
bus_generic_attach(c14f7700,c14f7700,c14f7700,c14f7700,0) at bus_generic_attach+0x16
legacy_attach(c14f7700) at legacy_attach+0x8e
device_attach(c14f7700,c081f853,c14f7700,c14f7c00,0) at device_attach+0x58
device_probe_and_attach(c14f7700) at device_probe_and_attach+0xc4
bus_generic_attach(c14f7c00,c14f7c00,c14f7c00,c0c20d40,c051e154) at bus_generic_attach+0x16
nexus_attach(c14f7c00) at nexus_attach+0x13
device_attach(c14f7c00,c0528118,c14f7c00,c07191b0,c25000) at device_attach+0x58
device_probe_and_attach(c14f7c00) at device_probe_and_attach+0xc4
root_bus_configure(c0c20d88,c04dfe9e,0,c1ec00,c1e000) at root_bus_configure+0x16
configure(0,c1ec00,c1e000,0,c0434f55) at configure+0x9
mi_startup() at mi_startup+0x96
begin() at begin+0x2c

This happens now with or without the fiber plugged in. The Fore card is 64 bit card in a 32 bit PCI slot.

Heiner Strauss	heiner@xxxxxxxxx        Bilch International Consulting
www.bilch.com                           Hamburg
Markusstrasse 4
20355 Hamburg                           Tel.: +49 40 3480667