I have enabled SFP support for 4.18-rc8 for armhf only, and tested that on my clearfog. It turns out to work just fine! Please find the patch attached. Note that I believe this setting should probably be enabled for all architectures, but I can currently only do real testing on armhf, and maybe on arm64 (macchiatobin).
[ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.18.0-rc8-armmp (debian-ker...@lists.debian.org) (gcc version 7.3.0 (Debian 7.3.0-27)) #1 SMP Debian 4.18~rc8-1~exp1 (2018-07-21) [ 0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] OF: fdt: Machine model: SolidRun Clearfog A1 [ 0.000000] Memory policy: Data cache writealloc [ 0.000000] efi: Getting EFI parameters from FDT: [ 0.000000] efi: UEFI not found. [ 0.000000] cma: Reserved 16 MiB at 0x3f000000 [ 0.000000] On node 0 totalpages: 262144 [ 0.000000] Normal zone: 1728 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 196608 pages, LIFO batch:31 [ 0.000000] HighMem zone: 65536 pages, LIFO batch:15 [ 0.000000] random: get_random_bytes called from start_kernel+0xa0/0x500 with crng_init=0 [ 0.000000] percpu: Embedded 17 pages/cpu @(ptrval) s38796 r8192 d22644 u69632 [ 0.000000] pcpu-alloc: s38796 r8192 d22644 u69632 alloc=17*4096 [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 260416 [ 0.000000] Kernel command line: console=ttyS0,115200 log_level=7 [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Memory: 988372K/1048576K available (8192K kernel code, 1099K rwdata, 2544K rodata, 2048K init, 306K bss, 43820K reserved, 16384K cma-reserved, 245760K highmem) [ 0.000000] Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xffc00000 - 0xfff00000 (3072 kB) vmalloc : 0xf0800000 - 0xff800000 ( 240 MB) lowmem : 0xc0000000 - 0xf0000000 ( 768 MB) pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) modules : 0xbf000000 - 0xbfe00000 ( 14 MB) .text : 0x(ptrval) - 0x(ptrval) (9184 kB) .init : 0x(ptrval) - 0x(ptrval) (2048 kB) .data : 0x(ptrval) - 0x(ptrval) (1100 kB) .bss : 0x(ptrval) - 0x(ptrval) ( 307 kB) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1 [ 0.000000] ftrace: allocating 32089 entries in 95 pages [ 0.000000] Hierarchical RCU implementation. [ 0.000000] RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=2. [ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2 [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 [ 0.000000] L2C-310 erratum 769419 enabled [ 0.000000] L2C-310 enabling early BRESP for Cortex-A9 [ 0.000000] L2C-310 full line of zeros enabled for Cortex-A9 [ 0.000000] L2C-310 D prefetch enabled, offset 1 lines [ 0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled [ 0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB [ 0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001 [ 0.000006] sched_clock: 64 bits at 800MHz, resolution 1ns, wraps every 4398046511103ns [ 0.000017] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0xb881274fa3, max_idle_ns: 440795210636 ns [ 0.000031] Switching to timer-based delay loop, resolution 1ns [ 0.000398] Ignoring duplicate/late registration of read_current_timer delay [ 0.000405] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns [ 0.000957] Console: colour dummy device 80x30 [ 0.000974] Calibrating delay loop (skipped), value calculated using timer frequency.. 1600.00 BogoMIPS (lpj=3200000) [ 0.000981] pid_max: default: 32768 minimum: 301 [ 0.001105] Security Framework initialized [ 0.001110] Yama: disabled by default; enable with sysctl kernel.yama.* [ 0.001154] AppArmor: AppArmor initialized [ 0.001199] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.001206] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.001625] CPU: Testing write buffer coherency: ok [ 0.001639] CPU0: Spectre v2: using BPIALL workaround [ 0.001773] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 [ 0.002004] Setting up static identity map for 0x300000 - 0x3000a0 [ 0.002132] mvebu-soc-id: MVEBU SoC ID=0x6828, Rev=0x4 [ 0.002208] mvebu-pmsu: Initializing Power Management Service Unit [ 0.002286] Hierarchical SRCU implementation. [ 0.003574] EFI services will not be available. [ 0.003707] smp: Bringing up secondary CPUs ... [ 0.003925] Booting CPU 1 [ 0.004092] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 [ 0.004096] CPU1: Spectre v2: using BPIALL workaround [ 0.004158] smp: Brought up 1 node, 2 CPUs [ 0.004163] SMP: Total of 2 processors activated (3200.00 BogoMIPS). [ 0.004167] CPU: All CPU(s) started in SVC mode. [ 0.004637] devtmpfs: initialized [ 0.006682] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4 [ 0.006808] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns [ 0.006816] futex hash table entries: 512 (order: 3, 32768 bytes) [ 0.007351] pinctrl core: initialized pinctrl subsystem [ 0.007811] DMI not present or invalid. [ 0.007983] NET: Registered protocol family 16 [ 0.009310] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.009621] audit: initializing netlink subsys (disabled) [ 0.009707] audit: type=2000 audit(0.008:1): state=initialized audit_enabled=0 res=1 [ 0.010213] No ATAGs? [ 0.010250] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers. [ 0.010257] hw-breakpoint: maximum watchpoint size is 4 bytes. [ 0.010401] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling [ 0.010409] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling [ 0.010557] Serial: AMBA PL011 UART driver [ 0.019628] vgaarb: loaded [ 0.020024] media: Linux media interface: v0.10 [ 0.020043] videodev: Linux video capture interface: v2.00 [ 0.020065] pps_core: LinuxPPS API ver. 1 registered [ 0.020069] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giome...@linux.it> [ 0.020099] PTP clock support registered [ 0.020708] clocksource: Switched to clocksource arm_global_timer [ 0.051779] VFS: Disk quotas dquot_6.6.0 [ 0.051819] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 0.052071] AppArmor: AppArmor Filesystem Enabled [ 0.056099] NET: Registered protocol family 2 [ 0.056408] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes) [ 0.056423] TCP established hash table entries: 8192 (order: 3, 32768 bytes) [ 0.056461] TCP bind hash table entries: 8192 (order: 4, 65536 bytes) [ 0.056525] TCP: Hash tables configured (established 8192 bind 8192) [ 0.056582] UDP hash table entries: 512 (order: 2, 16384 bytes) [ 0.056608] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) [ 0.056766] NET: Registered protocol family 1 [ 0.056782] PCI: CLS 0 bytes, default 64 [ 0.056969] Unpacking initramfs... [ 0.664504] Freeing initrd memory: 17836K [ 0.664824] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available [ 0.665748] Initialise system trusted keyrings [ 0.665863] workingset: timestamp_bits=14 max_order=18 bucket_order=4 [ 0.668464] zbud: loaded [ 2.376257] Key type asymmetric registered [ 2.376265] Asymmetric key parser 'x509' registered [ 2.376297] bounce: pool size: 64 pages [ 2.376337] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248) [ 2.376407] io scheduler noop registered [ 2.376413] io scheduler deadline registered [ 2.376542] io scheduler cfq registered (default) [ 2.376547] io scheduler mq-deadline registered [ 2.378050] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver [ 2.381565] mv_xor f1060800.xor: Marvell shared XOR driver [ 2.409292] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr ) [ 2.409407] mv_xor f1060900.xor: Marvell shared XOR driver [ 2.437288] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr ) [ 2.438327] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled [ 2.439073] console [ttyS0] disabled [ 2.459153] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 23, base_baud = 15625000) is a 16550A [ 3.190162] console [ttyS0] enabled [ 3.214000] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 24, base_baud = 15625000) is a 16550A [ 3.223335] Serial: AMBA driver [ 3.227733] libphy: Fixed MDIO Bus: probed [ 3.232151] mousedev: PS/2 mouse device common for all mice [ 3.238282] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0 [ 3.248526] ledtrig-cpu: registered to indicate activity on CPUs [ 3.255278] NET: Registered protocol family 10 [ 3.270780] Segment Routing with IPv6 [ 3.274509] mip6: Mobile IPv6 [ 3.277504] NET: Registered protocol family 17 [ 3.281985] mpls_gso: MPLS GSO support [ 3.285780] ThumbEE CPU extension supported. [ 3.290068] Registering SWP/SWPB emulation handler [ 3.295183] registered taskstats version 1 [ 3.299299] Loading compiled-in X.509 certificates [ 3.519825] Loaded X.509 cert 'Debian Secure Boot CA: 6ccece7e4c6c0d1f6149f3dd27dfcc5cbb419ea1' [ 3.528601] zswap: loaded using pool lzo/zbud [ 3.533101] AppArmor: AppArmor sha1 policy hashing enabled [ 3.540051] input: gpio-keys as /devices/platform/gpio-keys/input/input0 [ 3.547175] armada38x-rtc f10a3800.rtc: setting system clock to 2018-08-13 18:05:47 UTC (1534183547) [ 3.556340] sr_init: No PMIC hook to init smartreflex [ 3.565290] Freeing unused kernel memory: 2048K [ 3.819383] libphy: SFP I2C Bus: probed [ 3.848533] libphy: orion_mdio_bus: probed [ 3.852880] usbcore: registered new interface driver usbfs [ 3.860172] mvneta f1070000.ethernet eth0: Using device tree mac address d2:63:b4:a3:98:b0 [ 3.866972] sdhci: Secure Digital Host Controller Interface driver [ 3.874698] sdhci: Copyright(c) Pierre Ossman [ 3.882632] SCSI subsystem initialized [ 3.885453] usbcore: registered new interface driver hub [ 3.892901] libphy: SFP I2C Bus: probed [ 3.896878] ------------[ cut here ]------------ [ 3.899043] sdhci-pltfm: SDHCI platform and OF driver helper [ 3.901554] WARNING: CPU: 0 PID: 25 at /src/pkg-linux/kernel/module.c:1140 module_put+0xe8/0xf4 [ 3.910223] usbcore: registered new device driver usb [ 3.915949] Modules linked in: marvell sdhci_pltfm libata(+) sdhci scsi_mod mvmdio(+) usbcore mvneta(+) phylink i2c_mv64xxx sfp mdio_i2c [ 3.928591] sdhci-pxav3 f10d8000.sdhci: Got CD GPIO [ 3.933350] CPU: 0 PID: 25 Comm: kworker/0:2 Not tainted 4.18.0-rc8-armmp #1 Debian 4.18~rc8-1~exp1 [ 3.939014] xhci-hcd f10f0000.usb3: xHCI Host Controller [ 3.947296] Hardware name: Marvell Armada 380/385 (Device Tree) [ 3.947309] Workqueue: events deferred_probe_work_func [ 3.947326] [<c0316f60>] (unwind_backtrace) from [<c0310330>] (show_stack+0x20/0x24) [ 3.954644] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 3.958577] [<c0310330>] (show_stack) from [<c0ac34dc>] (dump_stack+0x94/0xa8) [ 3.958588] [<c0ac34dc>] (dump_stack) from [<c0353e24>] (__warn+0xf0/0x108) [ 3.958595] [<c0353e24>] (__warn) from [<c0353f74>] (warn_slowpath_null+0x50/0x58) [ 3.958604] [<c0353f74>] (warn_slowpath_null) from [<c03fb7a4>] (module_put+0xe8/0xf4) [ 3.963889] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 1 [ 3.971510] [<c03fb7a4>] (module_put) from [<c08b6688>] (i2c_put_adapter+0x2c/0x30) [ 3.971520] [<c08b6688>] (i2c_put_adapter) from [<bf007310>] (sfp_cleanup+0x50/0x5c [sfp]) [ 3.971529] [<bf007310>] (sfp_cleanup [sfp]) from [<c08218b4>] (devm_action_release+0x1c/0x20) [ 3.978595] ehci-orion: EHCI orion driver [ 3.985303] [<c08218b4>] (devm_action_release) from [<c0822764>] (release_nodes+0x1ec/0x2b4) [ 3.985310] [<c0822764>] (release_nodes) from [<c082297c>] (devres_release_all+0x40/0x5c) [ 3.985316] [<c082297c>] (devres_release_all) from [<c081d93c>] (driver_probe_device+0x110/0x47c) [ 3.985324] [<c081d93c>] (driver_probe_device) from [<c081de88>] (__device_attach_driver+0xac/0x130) [ 3.992471] orion-ehci f1058000.usb: EHCI Host Controller [ 3.999881] [<c081de88>] (__device_attach_driver) from [<c081b564>] (bus_for_each_drv+0x68/0xc8) [ 3.999887] [<c081b564>] (bus_for_each_drv) from [<c081d68c>] (__device_attach+0xe0/0x168) [ 3.999893] [<c081d68c>] (__device_attach) from [<c081df68>] (device_initial_probe+0x1c/0x20) [ 3.999900] [<c081df68>] (device_initial_probe) from [<c081c880>] (bus_probe_device+0x94/0x9c) [ 4.007867] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 2 [ 4.015329] [<c081c880>] (bus_probe_device) from [<c081cdd0>] (deferred_probe_work_func+0x7c/0x1a0) [ 4.015339] [<c081cdd0>] (deferred_probe_work_func) from [<c0370c68>] (process_one_work+0x1c0/0x4b0) [ 4.015346] [<c0370c68>] (process_one_work) from [<c0371cc8>] (worker_thread+0x5c/0x580) [ 4.015353] [<c0371cc8>] (worker_thread) from [<c037766c>] (kthread+0x16c/0x174) [ 4.015359] [<c037766c>] (kthread) from [<c03010e8>] (ret_from_fork+0x14/0x2c) [ 4.015361] Exception stack(0xeea49fb0 to 0xeea49ff8) [ 4.015365] 9fa0: 00000000 00000000 00000000 00000000 [ 4.180093] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 4.188288] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000 [ 4.194946] ---[ end trace 1c71e9b7fee73d05 ]--- [ 4.203884] libphy: SFP I2C Bus: probed [ 4.204905] libata version 3.00 loaded. [ 4.208410] ------------[ cut here ]------------ [ 4.210409] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode [ 4.213081] WARNING: CPU: 0 PID: 25 at /src/pkg-linux/kernel/module.c:1140 module_put+0xe8/0xf4 [ 4.222141] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs [ 4.230855] Modules linked in: ahci_mvebu(+) libahci_platform libahci ehci_orion(+) ehci_hcd xhci_plat_hcd(+) sdhci_pxav3(+) xhci_hcd marvell sdhci_pltfm libata sdhci scsi_mod mvmdio usbcore mvneta(+) phylink i2c_mv64xxx sfp mdio_i2c [ 4.260343] CPU: 0 PID: 25 Comm: kworker/0:2 Tainted: G W 4.18.0-rc8-armmp #1 Debian 4.18~rc8-1~exp1 [ 4.270801] Hardware name: Marvell Armada 380/385 (Device Tree) [ 4.276741] Workqueue: events deferred_probe_work_func [ 4.281902] [<c0316f60>] (unwind_backtrace) from [<c0310330>] (show_stack+0x20/0x24) [ 4.289666] [<c0310330>] (show_stack) from [<c0ac34dc>] (dump_stack+0x94/0xa8) [ 4.296909] [<c0ac34dc>] (dump_stack) from [<c0353e24>] (__warn+0xf0/0x108) [ 4.303891] [<c0353e24>] (__warn) from [<c0353f74>] (warn_slowpath_null+0x50/0x58) [ 4.311481] [<c0353f74>] (warn_slowpath_null) from [<c03fb7a4>] (module_put+0xe8/0xf4) [ 4.319421] [<c03fb7a4>] (module_put) from [<c08b6688>] (i2c_put_adapter+0x2c/0x30) [ 4.327100] [<c08b6688>] (i2c_put_adapter) from [<bf007310>] (sfp_cleanup+0x50/0x5c [sfp]) [ 4.335390] [<bf007310>] (sfp_cleanup [sfp]) from [<c08218b4>] (devm_action_release+0x1c/0x20) [ 4.340438] pca953x 0-0020: 0-0020 supply vcc not found, using dummy regulator [ 4.344027] [<c08218b4>] (devm_action_release) from [<c0822764>] (release_nodes+0x1ec/0x2b4) [ 4.344035] [<c0822764>] (release_nodes) from [<c082297c>] (devres_release_all+0x40/0x5c) [ 4.344043] [<c082297c>] (devres_release_all) from [<c081d93c>] (driver_probe_device+0x110/0x47c) [ 4.344051] [<c081d93c>] (driver_probe_device) from [<c081de88>] (__device_attach_driver+0xac/0x130) [ 4.359176] mvneta f1030000.ethernet eth1: Using device tree mac address d2:63:b4:a3:98:b1 [ 4.359744] [<c081de88>] (__device_attach_driver) from [<c081b564>] (bus_for_each_drv+0x68/0xc8) [ 4.403059] [<c081b564>] (bus_for_each_drv) from [<c081d68c>] (__device_attach+0xe0/0x168) [ 4.411345] [<c081d68c>] (__device_attach) from [<c081df68>] (device_initial_probe+0x1c/0x20) [ 4.419892] [<c081df68>] (device_initial_probe) from [<c081c880>] (bus_probe_device+0x94/0x9c) [ 4.428526] [<c081c880>] (bus_probe_device) from [<c081cdd0>] (deferred_probe_work_func+0x7c/0x1a0) [ 4.437597] [<c081cdd0>] (deferred_probe_work_func) from [<c0370c68>] (process_one_work+0x1c0/0x4b0) [ 4.446754] [<c0370c68>] (process_one_work) from [<c0371cc8>] (worker_thread+0x5c/0x580) [ 4.454867] [<c0371cc8>] (worker_thread) from [<c037766c>] (kthread+0x16c/0x174) [ 4.462282] [<c037766c>] (kthread) from [<c03010e8>] (ret_from_fork+0x14/0x2c) [ 4.469520] Exception stack(0xeea49fb0 to 0xeea49ff8) [ 4.474582] 9fa0: 00000000 00000000 00000000 00000000 [ 4.482778] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 4.490974] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000 [ 4.497626] ---[ end trace 1c71e9b7fee73d06 ]--- [ 4.502845] mvebu-pcie soc:pcie: /soc/pcie/pcie@2,0: reset gpio is active low [ 4.503025] mvneta f1034000.ethernet eth2: Using device tree mac address d2:63:b4:a3:98:b2 [ 4.510453] GPIO line 2032 (pcie1.0-clkreq) hogged as input [ 4.527093] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010 [ 4.527339] mvebu-pcie soc:pcie: /soc/pcie/pcie@3,0: reset gpio is active low [ 4.536467] orion-ehci f1058000.usb: irq 41, io mem 0xf1058000 [ 4.551537] xhci-hcd f10f0000.usb3: irq 48, io mem 0xf10f0000 [ 4.554859] GPIO line 2035 (pcie1.0-w-disable) hogged as output/low [ 4.557905] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.18 [ 4.571922] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 4.579191] usb usb1: Product: xHCI Host Controller [ 4.580752] GPIO line 2037 (usb3-current-limit) hogged as input [ 4.584090] usb usb1: Manufacturer: Linux 4.18.0-rc8-armmp xhci-hcd [ 4.592542] mmc0: SDHCI controller on f10d8000.sdhci [f10d8000.sdhci] using ADMA [ 4.596313] usb usb1: SerialNumber: f10f0000.usb3 [ 4.603829] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this. [ 4.609081] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00 [ 4.623806] GPIO line 2038 (usb3-power) hogged as output/high [ 4.628198] hub 1-0:1.0: USB hub found [ 4.645690] GPIO line 2043 (m.2 devslp) hogged as output/low [ 4.645980] hub 1-0:1.0: 1 port detected [ 4.655871] GPIO line 2036 (pcie2.0-clkreq) hogged as input [ 4.655999] scsi host0: ahci-mvebu [ 4.662853] mv88e6085 f1072004.mdio-mii:04: switch 0x1760 detected: Marvell 88E6176, revision 1 [ 4.665575] GPIO line 2039 (pcie2.0-w-disable) hogged as output/low [ 4.675182] xhci-hcd f10f0000.usb3: xHCI Host Controller [ 4.680373] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.18 [ 4.690749] mmc0: new high speed SDXC card at address 0001 [ 4.693628] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 4.699906] mmcblk0: mmc0:0001 00000 59.6 GiB [ 4.706381] usb usb2: Product: EHCI Host Controller [ 4.715733] usb usb2: Manufacturer: Linux 4.18.0-rc8-armmp ehci_hcd [ 4.722024] usb usb2: SerialNumber: f1058000.usb [ 4.725430] scsi host1: ahci-mvebu [ 4.726868] pca953x 0-0020: interrupt support not compiled in [ 4.730667] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 45 [ 4.739571] hub 2-0:1.0: USB hub found [ 4.743825] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 45 [ 4.749255] hub 2-0:1.0: 1 port detected [ 4.756549] ahci-mvebu f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode [ 4.768568] ahci-mvebu f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs [ 4.768789] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3 [ 4.782145] mmcblk0: p1 [ 4.784983] xhci-hcd f10f0000.usb3: Host supports USB 3.0 SuperSpeed [ 4.796934] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM. [ 4.805392] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.18 [ 4.813728] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 4.816748] scsi host2: ahci-mvebu [ 4.820997] usb usb3: Product: xHCI Host Controller [ 4.829300] usb usb3: Manufacturer: Linux 4.18.0-rc8-armmp xhci-hcd [ 4.835601] usb usb3: SerialNumber: f10f0000.usb3 [ 4.836868] scsi host3: ahci-mvebu [ 4.840544] mvebu-pcie soc:pcie: PCI host bridge to bus 0000:00 [ 4.844493] ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 46 [ 4.850217] pci_bus 0000:00: root bus resource [io 0x1000-0xfffff] [ 4.857652] ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 46 [ 4.872323] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff] [ 4.872900] hub 3-0:1.0: USB hub found [ 4.879346] pci_bus 0000:00: root bus resource [bus 00-ff] [ 4.883064] hub 3-0:1.0: 1 port detected [ 4.888669] pci 0000:00:02.0: [11ab:6828] type 01 class 0x060400 [ 4.892737] pci 0000:00:03.0: [11ab:6828] type 01 class 0x060400 [ 4.894419] xhci-hcd f10f8000.usb3: xHCI Host Controller [ 4.894978] PCI: bus0: Fast back to back transfers disabled [ 4.899855] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4 [ 4.905373] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring [ 4.920905] pci 0000:00:03.0: bridge configuration invalid ([bus 00-00]), reconfiguring [ 4.929121] pci 0000:01:00.0: [168c:003c] type 00 class 0x028000 [ 4.929152] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit] [ 4.929177] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref] [ 4.929246] pci 0000:01:00.0: supports D1 D2 [ 4.929815] pci 0000:00:02.0: ASPM: current common clock configuration is broken, reconfiguring [ 4.938866] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010 [ 4.948317] xhci-hcd f10f8000.usb3: irq 49, io mem 0xf10f8000 [ 4.954411] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.18 [ 4.962725] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 4.969977] usb usb4: Product: xHCI Host Controller [ 4.974872] usb usb4: Manufacturer: Linux 4.18.0-rc8-armmp xhci-hcd [ 4.981158] usb usb4: SerialNumber: f10f8000.usb3 [ 4.986714] PCI: bus1: Fast back to back transfers enabled [ 4.992229] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01 [ 4.993239] PCI: bus2: Fast back to back transfers enabled [ 4.993775] hub 4-0:1.0: USB hub found [ 4.998756] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02 [ 4.998886] pci 0000:00:02.0: BAR 8: assigned [mem 0xe0000000-0xe02fffff] [ 5.002644] hub 4-0:1.0: 1 port detected [ 5.009467] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe01fffff 64bit] [ 5.014211] xhci-hcd f10f8000.usb3: xHCI Host Controller [ 5.020649] pci 0000:01:00.0: BAR 0: error updating (0xe0000004 != 0xffffffff) [ 5.020654] pci 0000:01:00.0: BAR 0: error updating (high 0x000000 != 0xffffffff) [ 5.026012] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5 [ 5.033225] pci 0000:01:00.0: BAR 6: assigned [mem 0xe0200000-0xe020ffff pref] [ 5.033230] pci 0000:00:02.0: PCI bridge to [bus 01] [ 5.033235] pci 0000:00:02.0: bridge window [mem 0xe0000000-0xe02fffff] [ 5.040777] xhci-hcd f10f8000.usb3: Host supports USB 3.0 SuperSpeed [ 5.048242] pci 0000:00:03.0: PCI bridge to [bus 02] [ 5.048394] pcieport 0000:00:02.0: enabling device (0140 -> 0142) [ 5.055547] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM. [ 5.061039] libphy: SFP I2C Bus: probed [ 5.068231] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.18 [ 5.074502] random: fast init done [ 5.078775] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 5.085804] sfp sfp: Host maximum power 2.0W [ 5.092991] usb usb5: Product: xHCI Host Controller [ 5.092994] usb usb5: Manufacturer: Linux 4.18.0-rc8-armmp xhci-hcd [ 5.092997] usb usb5: SerialNumber: f10f8000.usb3 [ 5.101013] hub 5-0:1.0: USB hub found [ 5.109054] mvneta f1034000.ethernet eth2: Link is Down [ 5.115858] ata2: SATA link down (SStatus 0 SControl 300) [ 5.125465] hub 5-0:1.0: 1 port detected [ 5.157978] libphy: mv88e6xxx SMI: probed [ 5.172700] ata3: SATA link down (SStatus 0 SControl 300) [ 5.203459] ata4: SATA link down (SStatus 0 SControl 300) [ 5.256735] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300) [ 5.263078] ata1.00: ATA-10: 32GB SATA Flash Drive, SFPS925A, max UDMA/133 [ 5.269978] ata1.00: 62533296 sectors, multi 16: LBA48 NCQ (depth 32) [ 5.276560] ata1.00: configured for UDMA/133 [ 5.281128] scsi 0:0:0:0: Direct-Access ATA 32GB SATA Flash 925A PQ: 0 ANSI: 5 [ 5.293638] sd 0:0:0:0: [sda] 62533296 512-byte logical blocks: (32.0 GB/29.8 GiB) [ 5.301312] sd 0:0:0:0: [sda] Write Protect is off [ 5.306133] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 [ 5.306208] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 5.316090] sda: sda1 sda2 sda3 < sda5 > [ 5.320912] sd 0:0:0:0: [sda] Attached SCSI removable disk [ 5.453618] sfp sfp: module SOURCEPHOTONICS SPGBTXCNFC rev 10 sn EAU2013925 dc 141008 [ 5.964925] mv88e6085 f1072004.mdio-mii:04 lan5 (uninitialized): PHY [mv88e6xxx-0:00] driver [Marvell 88E1540] [ 6.056923] mv88e6085 f1072004.mdio-mii:04 lan4 (uninitialized): PHY [mv88e6xxx-0:01] driver [Marvell 88E1540] [ 6.152922] mv88e6085 f1072004.mdio-mii:04 lan3 (uninitialized): PHY [mv88e6xxx-0:02] driver [Marvell 88E1540] [ 6.244921] mv88e6085 f1072004.mdio-mii:04 lan2 (uninitialized): PHY [mv88e6xxx-0:03] driver [Marvell 88E1540] [ 6.336917] mv88e6085 f1072004.mdio-mii:04 lan1 (uninitialized): PHY [mv88e6xxx-0:04] driver [Marvell 88E1540] [ 6.360391] DSA: tree 0 setup [ 6.432935] PM: Image not found (code -22) [ 6.548526] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null) [ 6.815643] systemd[1]: systemd 239 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid) [ 6.837343] systemd[1]: Detected architecture arm. [ 6.860957] systemd[1]: Set hostname to <clearfog>. [ 7.080214] random: systemd: uninitialized urandom read (16 bytes read) [ 7.087096] systemd[1]: Started Forward Password Requests to Wall Directory Watch. [ 7.108810] random: systemd: uninitialized urandom read (16 bytes read) [ 7.115605] systemd[1]: Listening on initctl Compatibility Named Pipe. [ 7.136767] random: systemd: uninitialized urandom read (16 bytes read) [ 7.145083] systemd[1]: Created slice system-getty.slice. [ 7.164955] systemd[1]: Started Dispatch Password Requests to Console Directory Watch. [ 7.188779] systemd[1]: Reached target Paths. [ 7.205313] systemd[1]: Created slice system-systemd\x2dfsck.slice. [ 7.224812] systemd[1]: Reached target Remote File Systems. [ 7.400310] EXT4-fs (sda2): re-mounted. Opts: errors=remount-ro [ 7.857529] systemd-journald[218]: Received request to flush runtime journal from PID 1 [ 8.074379] orion_wdt: Initial timeout 171 sec [ 8.253930] sd 0:0:0:0: Attached scsi generic sg0 type 0 [ 8.295676] marvell-cesa f1090000.crypto: CESA device successfully registered [ 8.525228] ath10k_pci 0000:01:00.0: of_irq_parse_pci: failed with rc=134 [ 8.556732] ath10k_pci 0000:01:00.0: Refused to change power state, currently in D3 [ 8.594647] ath10k_pci 0000:01:00.0: failed to wake up device : -110 [ 8.603051] ath10k_pci: probe of 0000:01:00.0 failed with error -110 [ 8.909402] Adding 998396k swap on /dev/sda5. Priority:-2 extents:1 across:998396k SSFS [ 9.045205] EXT4-fs (sda1): mounting ext2 file system using the ext4 subsystem [ 9.055177] EXT4-fs (sda1): mounted filesystem without journal. Opts: (null) [ 9.273659] mvneta f1070000.ethernet eth0: PHY [f1072004.mdio-mii:00] driver [Marvell 88E1510] [ 9.283558] mvneta f1070000.ethernet eth0: configuring for phy/rgmii-id link mode [ 9.294745] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 12.449467] mvneta f1070000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx [ 12.457515] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 50.172904] random: crng init done [ 50.176319] random: 7 urandom warning(s) missed due to ratelimiting [ 134.940773] sfp sfp: module removed [ 142.540225] sfp sfp: module AVAGO AFBR-57R5AEZ rev sn A90751H94G dc 071221 [ 142.549575] mvneta f1034000.ethernet eth2: switched to inband/1000base-x link mode
Identifier : 0x03 (SFP) Extended identifier : 0x04 (GBIC/SFP defined by 2-wire interface ID) Connector : 0x07 (LC) Transceiver codes : 0x00 0x00 0x00 0x00 0x20 0x40 0x0c 0x15 0x00 Transceiver type : FC: intermediate distance (I) Transceiver type : FC: Shortwave laser w/o OFC (SN) Transceiver type : FC: Multimode, 62.5um (M6) Transceiver type : FC: Multimode, 50um (M5) Transceiver type : FC: 400 MBytes/sec Transceiver type : FC: 200 MBytes/sec Transceiver type : FC: 100 MBytes/sec Encoding : 0x01 (8B/10B) BR, Nominal : 4300MBd Rate identifier : 0x00 (unspecified) Length (SMF,km) : 0km Length (SMF) : 0m Length (50um) : 150m Length (62.5um) : 70m Length (Copper) : 0m Length (OM3) : 0m Laser wavelength : 850nm Vendor name : AVAGO Vendor OUI : 00:17:6a Vendor PN : AFBR-57R5AEZ Vendor rev : Option values : 0x00 0x1a Option : RX_LOS implemented Option : TX_FAULT implemented Option : TX_DISABLE implemented BR margin, max : 0% BR margin, min : 0% Vendor SN : A90751H94G Date code : 071221 Optical diagnostics support : Yes Laser bias current : 0.000 mA Laser output power : 0.0000 mW / -inf dBm Receiver signal average optical power : 0.0000 mW / -inf dBm Module temperature : 41.08 degrees C / 105.95 degrees F Module voltage : 3.3189 V Alarm/warning flags implemented : Yes Laser bias current high alarm : Off Laser bias current low alarm : On Laser bias current high warning : Off Laser bias current low warning : On Laser output power high alarm : Off Laser output power low alarm : On Laser output power high warning : Off Laser output power low warning : On Module temperature high alarm : Off Module temperature low alarm : Off Module temperature high warning : Off Module temperature low warning : Off Module voltage high alarm : Off Module voltage low alarm : Off Module voltage high warning : Off Module voltage low warning : Off Laser rx power high alarm : Off Laser rx power low alarm : On Laser rx power high warning : Off Laser rx power low warning : On Laser bias current high alarm threshold : 10.000 mA Laser bias current low alarm threshold : 2.000 mA Laser bias current high warning threshold : 10.000 mA Laser bias current low warning threshold : 2.000 mA Laser output power high alarm threshold : 0.7000 mW / -1.55 dBm Laser output power low alarm threshold : 0.0500 mW / -13.01 dBm Laser output power high warning threshold : 0.6000 mW / -2.22 dBm Laser output power low warning threshold : 0.1000 mW / -10.00 dBm Module temperature high alarm threshold : 100.00 degrees C / 212.00 degrees F Module temperature low alarm threshold : -40.00 degrees C / -40.00 degrees F Module temperature high warning threshold : 85.00 degrees C / 185.00 degrees F Module temperature low warning threshold : -10.00 degrees C / 14.00 degrees F Module voltage high alarm threshold : 3.9000 V Module voltage low alarm threshold : 2.7000 V Module voltage high warning threshold : 3.6300 V Module voltage low warning threshold : 2.9700 V Laser rx power high alarm threshold : 6.5500 mW / 8.16 dBm Laser rx power low alarm threshold : 0.0000 mW / -inf dBm Laser rx power high warning threshold : 1.1000 mW / 0.41 dBm Laser rx power low warning threshold : 0.0490 mW / -13.10 dBm
>From 2ac29b08004b43ed280c3935dd775d7488dc0bbe Mon Sep 17 00:00:00 2001 From: Josua Mayer <josua.maye...@gmail.com> Date: Mon, 13 Aug 2018 18:42:45 +0200 Subject: [PATCH] armmp: enable SFP support Signed-off-by: Josua Mayer <josua.maye...@gmail.com> --- debian/config/armhf/config | 2 ++ 1 file changed, 2 insertions(+) diff --git a/debian/config/armhf/config b/debian/config/armhf/config index 79ee427b5..a7121d185 100644 --- a/debian/config/armhf/config +++ b/debian/config/armhf/config @@ -839,6 +839,8 @@ CONFIG_SKFP=m ## file: drivers/net/phy/Kconfig ## CONFIG_MDIO_SUN4I=y +CONFIG_PHYLINK=m +CONFIG_SFP=m ## ## file: drivers/net/wireless/broadcom/brcm80211/Kconfig -- 2.18.0