[PATCH] octeon: disable edgerouter image

Roman Kuzmitskii damex.pp at icloud.com
Thu Oct 29 12:21:49 EDT 2020


i can confirm that performance hit with CONFIG_CAVIUM_CN63XXP1 is huge on other octeon devices and that option should not be used.

> On Oct 29, 2020, at 4:07 PM, Johannes Kimmel <fff at bareminimum.eu> wrote:
> 
> This patch disables the image for edgerouter devices by default, since
> it isn't able to boot at the moment.
> 
> Currently the edgerouter image won't boot. Current kernels have an
> option CONFIG_CAVIUM_CN63XXP1 that needs to be enabled for this chip.
> 
> If the kernel was compiled without this option, following message is
> displayed and the machine reboots:
> 
> [   36.778028] Kernel panic - not syncing: OCTEON II DCache prefetch workaround not in place (cfa0000c).
> [   36.778028] Please build kernel with proper options (CONFIG_CAVIUM_CN63XXP1).
> [   36.794398] Rebooting in 1 seconds..
> 
> This was last confirmed on 2020-10-29.
> 
> The description of this option states, that enabling it will possibly
> cause performance issues on other chips.
> 
> Signed-off-by: Johannes Kimmel <fff at bareminimum.eu>
> 
> ---
> 
> Full bootlog:
> 
> U-Boot 2012.04.01 (UBNT Build Version: e200_002_80eda) (May 27 2019 - 06:34:56)
> 
> Skipping PCIe port 0 BIST, in EP mode, can't tell if clocked.
> Skipping PCIe port 1 BIST, reset not done. (port not configured)
> BIST check passed.
> UBNT_E200 r1:0, r2:19, serial #: FCECDA05EB31
> MPR 13-00317-19
> Core clock: 1000 MHz, IO clock: 600 MHz, DDR clock: 533 MHz (1066 Mhz DDR)
> Base DRAM address used by u-boot: 0x8f800000, size: 0x800000
> DRAM: 2 GiB
> Clearing DRAM...... done
> Flash: 8 MiB
> Net:   octeth0, octeth1, octeth2, octeth3, octeth4, octeth5, octeth6, octeth7
> MMC:   Octeon MMC/SD0: 0
> USB:   USB EHCI 1.00
> scanning bus for devices... 2 USB Device(s) found
> Type the command 'usb start' to scan for USB storage devices.
> 
> Hit any key to stop autoboot:  0
> Octeon ubnt_e200# usb start
> (Re)start USB...
> USB:   USB EHCI 1.00
> scanning bus for devices... 2 USB Device(s) found
>       scanning bus for storage devices... 1 Storage Device(s) found
> Octeon ubnt_e200# fatload usb 0 $(loadaddr) openwrt-octeon-ubnt_edgerouter-initramfs-kernel.bin.1 ; bootoctlinux $(loadaddr) numcores=2 endbootargs mem=0
> reading openwrt-octeon-ubnt_edgerouter-initramfs-kernel.bin.1
> 
> 16286136 bytes read
> reading openwrt-octeon-ubnt_edgerouter-initramfs-kernel.bin.1.md5
> 
> ** Unable to read openwrt-octeon-ubnt_edgerouter-initramfs-kernel.bin.1.md5
> argv[2]: numcores=2
> argv[3]: endbootargs
> Allocating memory for ELF segment: addr: 0xffffffff81100000 (adjusted to: 0x1100000), size 0x20dcd18
> Bootloader: Done loading app on coremask: 0x3
> Starting cores 0x3
> [    0.000000] Linux version 5.4.72 (builder at buildhost) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r14793-9f1927173a)) #0 SMP Wed Oct 28 02:25:25 2020
> [    0.000000] Skipping L2 locking due to reduced L2 cache size
> [    0.000000] CVMSEG size: 2 cache lines (256 bytes)
> [    0.000000] printk: bootconsole [early0] enabled
> [    0.000000] CPU0 revision is: 000d9301 (Cavium Octeon II)
> [    0.000000] Checking for the multiply/shift bug... no.
> [    0.000000] Checking for the daddiu bug... no.
> [    0.000000] Kernel sections are not in the memory maps
> [    0.000000] Wasting 278528 bytes for tracking 4352 unused pages
> [    0.000000] Initrd not found or empty - disabling initrd
> [    0.000000] Using passed Device Tree.
> [    0.000000] software IO TLB: mapped [mem 0x0320b000-0x0324b000] (0MB)
> [    0.000000] Primary instruction cache 37kB, virtually tagged, 37 way, 8 sets, linesize 128 bytes.
> [    0.000000] Primary data cache 32kB, 32-way, 8 sets, linesize 128 bytes.
> [    0.000000] Zone ranges:
> [    0.000000]   DMA32    [mem 0x0000000001100000-0x00000000efffffff]
> [    0.000000]   Normal   empty
> [    0.000000] Movable zone start for each node
> [    0.000000] Early memory node ranges
> [    0.000000]   node   0: [mem 0x0000000001100000-0x00000000031dcfff]
> [    0.000000]   node   0: [mem 0x0000000003200000-0x000000000edfffff]
> [    0.000000]   node   0: [mem 0x000000000f200000-0x000000000fdfffff]
> [    0.000000]   node   0: [mem 0x0000000020000000-0x000000008f7fffff]
> [    0.000000] Zeroed struct page in unavailable ranges: 7971 pages
> [    0.000000] Initmem setup node 0 [mem 0x0000000001100000-0x000000008f7fffff]
> [    0.000000] percpu: Embedded 18 pages/cpu s35872 r8192 d29664 u73728
> [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 508249
> [    0.000000] Kernel command line: mtdparts=phys_mapped_flash:640k(boot0)ro,640k(boot1)ro,64k(eeprom)ro root=/dev/mmcblk0p2 rootfstype=squashfs,ext4 rootwait console=ttyS0,115200
> [    0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
> [    0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
> [    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
> [    0.000000] Memory: 1995308K/2065268K available (6481K kernel code, 363K rwdata, 1548K rodata, 8556K init, 16691K bss, 69960K reserved, 0K cma-reserved)
> [    0.000000] SLUB: HWalign=128, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
> [    0.000000] rcu: Hierarchical RCU implementation.
> [    0.000000] rcu: 	CONFIG_RCU_FANOUT set to non-default value of 32.
> [    0.000000] rcu: 	RCU restricting CPUs from NR_CPUS=16 to nr_cpu_ids=2.
> [    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
> [    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
> [    0.000000] NR_IRQS: 127
> [    0.000000] random: get_random_bytes called from start_kernel+0x320/0x580 with crng_init=0
> [   34.282068] clocksource: OCTEON_CVMCOUNT: mask: 0xffffffffffffffff max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns
> [   34.301252] Calibrating delay loop (skipped) preset value.. 2000.00 BogoMIPS (lpj=4000000)
> [   34.309489] pid_max: default: 32768 minimum: 301
> [   34.314178] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
> [   34.321482] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
> [   34.329841] Checking for the daddi bug... no.
> [   34.334591] rcu: Hierarchical SRCU implementation.
> [   34.339437] smp: Bringing up secondary CPUs ...
> [   34.344105] SMP: Booting CPU01 (CoreId  1)...
> [   34.348359] CPU1 revision is: 000d9301 (Cavium Octeon II)
> [   34.348446] smp: Brought up 1 node, 2 CPUs
> [   34.359869] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
> [   34.369472] futex hash table entries: 512 (order: 4, 65536 bytes, linear)
> [   34.376637] NET: Registered protocol family 16
> [   34.388159] PCIe: Port 0 in endpoint mode, skipping.
> [   34.392979] PCIe: Initializing port 1
> [   34.407612] PCIe: Port 1 stuck in reset, skipping.
> [   34.420356] SCSI subsystem initialized
> [   34.424094] usbcore: registered new interface driver usbfs
> [   34.429481] usbcore: registered new interface driver hub
> [   34.434770] usbcore: registered new device driver usb
> [   34.439929] PCI host bridge to bus 0000:00
> [   34.443875] pci_bus 0000:00: root bus resource [mem 0x1000000000000]
> [   34.450213] pci_bus 0000:00: root bus resource [io  0x0000]
> [   34.455776] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
> [   34.462555] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
> [   34.471056] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
> [   34.477558] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
> [   34.488220] clocksource: Switched to clocksource OCTEON_CVMCOUNT
> [   34.494642] NET: Registered protocol family 2
> [   34.499296] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
> [   34.507711] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
> [   34.515742] TCP bind hash table entries: 16384 (order: 6, 262144 bytes, linear)
> [   34.523126] TCP: Hash tables configured (established 16384 bind 16384)
> [   34.529567] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
> [   34.536246] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
> [   34.543489] NET: Registered protocol family 1
> [   34.547711] PCI: CLS 0 bytes, default 128
> [   34.600280] workingset: timestamp_bits=46 max_order=19 bucket_order=0
> [   34.609705] random: fast init done
> [   34.612863] squashfs: version 4.0 (2009/01/31) Phillip Lougher
> [   34.618961] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
> [   34.629984] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
> [   34.637878] octeon_gpio 1070000000800.gpio-controller: OCTEON GPIO driver probed.
> [   34.645375] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
> [   34.652844] printk: console [ttyS0] disabled
> [   34.656997] 1180000000800.serial: ttyS0 at MMIO 0x1180000000800 (irq = 34, base_baud = 37500000) is a OCTEON
> [   34.666801] printk: console [ttyS0] enabled
> [   34.666801] printk: console [ttyS0] enabled
> [   34.675136] printk: bootconsole [early0] disabled
> [   34.675136] printk: bootconsole [early0] disabled
> [   34.684757] 1180000000c00.serial: ttyS1 at MMIO 0x1180000000c00 (irq = 35, base_baud = 37500000) is a OCTEON
> [   34.694848] octeon_rng octeon_rng: Octeon Random Number Generator
> [   34.703826] loop: module loaded
> [   34.707026] Loading iSCSI transport class v2.0-870.
> [   34.712720] physmap-flash 1f400000.nor: Can't get bank width from device tree
> [   34.719899] physmap-flash: probe of 1f400000.nor failed with error -22
> [   34.726615] libphy: mdio_octeon: probed
> [   34.757340] mdio_octeon 1180000001800.mdio: Probed
> [   34.762284] libphy: mdio_octeon: probed
> [   34.775140] mdio_octeon 1180000001900.mdio: Probed
> [   34.780149] libphy: Fixed MDIO Bus: probed
> [   34.784336] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
> [   34.790886] ehci-pci: EHCI PCI platform driver
> [   34.795386] ehci-platform: EHCI generic platform driver
> [   34.800747] ehci-platform 16f0000000000.ehci: EHCI Host Controller
> [   34.806967] ehci-platform 16f0000000000.ehci: new USB bus registered, assigned bus number 1
> [   34.815414] ehci-platform 16f0000000000.ehci: irq 56, io mem 0x16f0000000000
> [   34.836223] ehci-platform 16f0000000000.ehci: USB 2.0 started, EHCI 1.00
> [   34.843340] hub 1-0:1.0: USB hub found
> [   34.847136] hub 1-0:1.0: 2 ports detected
> [   34.851444] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
> [   34.857662] ohci-platform: OHCI generic platform driver
> [   34.863001] ohci-platform 16f0000000400.ohci: Generic Platform OHCI controller
> [   34.870263] ohci-platform 16f0000000400.ohci: new USB bus registered, assigned bus number 2
> [   34.878682] ohci-platform 16f0000000400.ohci: irq 56, io mem 0x16f0000000400
> [   34.948568] hub 2-0:1.0: USB hub found
> [   34.952415] hub 2-0:1.0: 2 ports detected
> [   34.956795] usbcore: registered new interface driver usb-storage
> [   34.962855] octeon_wdt: Initial granularity 5 Sec
> [   34.993609] Interface 0 has 4 ports (SGMII)
> [   34.997873] Interface 1 has 4 ports (SGMII)
> [   35.005634] NET: Registered protocol family 10
> [   35.011442] Segment Routing with IPv6
> [   35.015191] NET: Registered protocol family 17
> [   35.019688] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
> [   35.032673] 8021q: 802.1Q VLAN Support v1.8
> [   35.037056] Bootbus flash: Setting flash for 8MB flash at 0x1f400000
> [   35.184222] usb 1-1: new high-speed USB device number 2 using ehci-platform
> [   35.347624] usb-storage 1-1:1.0: USB Mass Storage device detected
> [   35.353943] scsi host0: usb-storage 1-1:1.0
> [   36.378082] scsi 0:0:0:0: Direct-Access     Intenso  Micro Line       PMAP PQ: 0 ANSI: 4
> [   36.387299] sd 0:0:0:0: [sda] 30299520 512-byte logical blocks: (15.5 GB/14.4 GiB)
> [   36.395543] sd 0:0:0:0: [sda] Write Protect is off
> [   36.401042] sd 0:0:0:0: [sda] No Caching mode page found
> [   36.406379] sd 0:0:0:0: [sda] Assuming drive cache: write through
> [   36.416560]  sda: sda1 sda2
> [   36.421673] sd 0:0:0:0: [sda] Attached SCSI removable disk
> [   36.710816] phys_mapped_flash: Found 1 x16 devices at 0x0 in 8-bit bank. Manufacturer ID 0x0000c2 Chip ID 0x0000c9
> [   36.721200] Amd/Fujitsu Extended Query Table at 0x0040
> [   36.726372]   Amd/Fujitsu Extended Query version 1.1.
> [   36.731443] phys_mapped_flash: Swapping erase regions for top-boot CFI table.
> [   36.738598] number of CFI chips: 1
> [   36.742027] 3 cmdlinepart partitions found on MTD device phys_mapped_flash
> [   36.748921] Creating 3 MTD partitions on "phys_mapped_flash":
> [   36.754687] 0x000000000000-0x0000000a0000 : "boot0"
> [   36.760058] 0x0000000a0000-0x000000140000 : "boot1"
> [   36.765414] 0x000000140000-0x000000150000 : "eeprom"
> [   36.771228] OF: fdt: not creating '/sys/firmware/fdt': CRC check failed
> [   36.778028] Kernel panic - not syncing: OCTEON II DCache prefetch workaround not in place (cfa0000c).
> [   36.778028] Please build kernel with proper options (CONFIG_CAVIUM_CN63XXP1).
> [   36.794398] Rebooting in 1 seconds..
> 
> target/linux/octeon/image/Makefile | 1 +
> 1 file changed, 1 insertion(+)
> 
> diff --git a/target/linux/octeon/image/Makefile b/target/linux/octeon/image/Makefile
> index 1dbb60edbc..7851e4a99c 100644
> --- a/target/linux/octeon/image/Makefile
> +++ b/target/linux/octeon/image/Makefile
> @@ -44,6 +44,7 @@ define Device/ubnt_edgerouter
>   DEVICE_MODEL := EdgeRouter
>   BOARD_NAME := er
>   CMDLINE := $(ER_CMDLINE)
> +  DEFAULT := n
> endef
> TARGET_DEVICES += ubnt_edgerouter
> 
> -- 
> 2.29.0
> 
> 
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel




More information about the openwrt-devel mailing list