Hi, The gmx diff from June panics my Octeon II CN6120 model.
-------------------------------------------------------------------------------- Author: visa <[email protected]> Date: Wed Jun 22 13:09:35 2016 +0000 Add support for the second GMX interface on Octeon II. This enables ports eth[0-3] on 8-port EdgeRouters. Currently, port eth0 maps to network interface cnmac4, eth1 to cnmac5 etc. ok dlg@, tested by martijn@ -------------------------------------------------------------------------------- My model. -------------------------------------------------------------------------------- MB326B board revision major:1, minor:0, serial #: 2013101263326 OCTEON CN6120-SCP pass 1.1, Core clock: 800 MHz, IO clock: 600 MHz, DDR clock: 533 MHz (1066 Mhz DDR) MR-326B SDK2.3.0_p7 Ver.T05 2013-10-22 -------------------------------------------------------------------------------- Panic and trace. -------------------------------------------------------------------------------- ddb> show panic : don't know phy address for port 16 ddb> trace 0xffffffff812c2ce0 (0,9001070000000200,200,0) ra 0xffffffff810f4a48 sp 0x98000 0002000bc70, sz 0 0xffffffff810f48fc (0,9001070000000200,200,0) ra 0x0 sp 0x980000002000bc70, sz 0 User-level: pid 0 -------------------------------------------------------------------------------- My first guess is that your assumption that all 61XX models have two cards is wrong. Mine has only console and one switch. I also have a DSR-500 that I think has two switches in it and is a CN50XX model. I will test a kernel on that soon and get back to you. -------------------------------------------------------------------------------- + switch (octeon_model_family(chipid)) { + case OCTEON_MODEL_FAMILY_CN30XX: + case OCTEON_MODEL_FAMILY_CN50XX: + default: + ngmx = 1; + break; + case OCTEON_MODEL_FAMILY_CN61XX: + ngmx = 2; + break; + } -------------------------------------------------------------------------------- Full dmesg follows. -------------------------------------------------------------------------------- Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. Copyright (c) 1995-2016 OpenBSD. All rights reserved. https://www.OpenBSD.org OpenBSD 6.0-current (GENERIC) #0: Tue Oct 18 00:26:54 UTC 2016 visa@octeon:/usr/src/sys/arch/octeon/compile/GENERIC real mem = 1073741824 (1024MB) avail mem = 1048526848 (999MB) warning: no entropy supplied by boot loader mainbus0 at root cpu0 at mainbus0: Cavium OCTEON II CPU rev 0.1 800 MHz, Software FP emulation cpu0: cache L1-I 512KB D 8KB 64 way, L2 1024KB 8 way clock0 at mainbus0: int 5 iobus0 at mainbus0 octuctl0 at iobus0 base 0x118006f000000 irq 56 ehci0 at octuctl0 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 configuration 1 interface 0 "Octeon EHCI root hub" rev 2.00/1.00 addr 1 ohci0 at octuctl0, version 1.0 usb1 at ohci0: USB revision 1.0 uhub1 at usb1 configuration 1 interface 0 "Octeon OHCI root hub" rev 1.00/1.00 addr 1 octcf0 at iobus0 base 0x1d000800 irq 0: <TS16GCF170> octcf0: 1-sector PIO, CHS, 7559MB, 16383 cyl, 15 head, 63 sec, 15481935 sectors octrng0 at iobus0 base 0x1400000000000 irq 0 cn30xxgmx0 at iobus0 base 0x1180008000000 port are disable cn30xxgmx1 at iobus0 base 0x1180010000000 panic: : don't know phy address for port 16 --------------------------------------------------------------------------------
