SJA1105 ignoring packets from CPU

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SJA1105 ignoring packets from CPU

887 Views
mwsoft
Contributor I

Hello

We are working on design that uses SJA1105P to provide iMX8QM main processor with four additional T1 automotive interfaces.

System topology looks like this:

  • SJA1105 P0 <- RMII -> TJA1102A #1 P1 (iface cam1)
  • SJA1105 P1 <- RMII -> TJA1102A #1 P0 (iface cam0)
  • SJA1105 P2 <- RMII -> TJA1102A #2 P1 (iface cam3)
  • SJA1105 P3 <- RMII -> TJA1102A #2 P0 (iface cam2)
  • SJA1105 P4 <- RGMII -> iMX8QM FEC2

We are using NXP kernel ~6.6.52, with DSA architecture driver for SJA1105.
System is tested using external switch module with four T1 ports and single 1000BaseTX that is connected to PC.

From perspective of kernel log everything seems to be initialized correctly, and working as intended.
But packet flow works only in one direction: PC -> external T1 switch -> TJA1102 -> SJA1105 -> iMX8QM.
In the other direction, packets that are generated from iMX8QM RGMII reach SJA1105, but switch seems to be ignoring them completely, and there is no traffic on TX side of RMII interfaces for ports P0-P3.

What we've checked / tried:

  • Signals on SJA1105 P4 port RX* pins looks good on the oscilloscope
  • RX* traces are physically connected to SJA1105 (no broken BGA balls or shorts - checked by measuring internal ESD diodes between RX* traces and VDDIO_MII4 supply)
  • We've tried different combinations of TX/RX delay configuration in DT, both on MAC side, both on switch side, and symmetric - no difference.
  • Configuring interfaces (per Documentation/networking/dsa/configuration.rst) as four separate ports or as simple bridge - no difference.
  • Compiling SJA1105 driver as module, and loading it manually after everything else in kernel got initialized - no difference.

Looking at ethtool -S eth0 output, it is clear that switch is completely ignoring incoming packets on P4 - all RX counters are 0, but there are no errors in p04_n_miierr, p04_n_runt, p04_n_alignerr, p04_n_soferr, p04_portdrop etc.

At this point we are quite sure, that there is something wrong with configuration loaded to the switch by driver (there seems to be no obvious way, to check what was loaded to registers without modifying driver code), or we are configuring network interfaces incorrectly somehow.

Bellow I've compiled some information and logs from our system (in this example only interface cam2 is connected to external T1 switch).

We would really appreciate some help with this issue.

Relevant device tree fragments

 

&fec2 {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_fec2>;
	phy-supply = <&reg_eth_phy_en>;
	phy-mode = "rgmii";
	tx-internal-delay-ps = <2000>;
	rx-internal-delay-ps = <2000>;
	phy-reset-duration = <5>;
	phy-reset-post-delay = <5>;
	phy-reset-gpios = <&lsio_gpio2 22 GPIO_ACTIVE_LOW>;
	status = "okay";

	fixed-link {
		speed = <1000>;
		full-duplex;
	};

	mdio {
		#address-cells = <1>;
		#size-cells = <0>;

		t1phy0: ethernet-phy@c {
			compatible = "ethernet-phy-ieee802.3-c22";
			#address-cells = <1>;
			#size-cells = <0>;
			reg = <0xc>;
			max-speed = <100>;
			interrupt-parent = <&lsio_gpio2>;
			interrupts = <23 IRQ_TYPE_LEVEL_LOW>;
	
			t1phy1: ethernet-phy@d {
				reg = <0xd>;
				max-speed = <100>;
				interrupt-parent = <&lsio_gpio2>;
				interrupts = <23 IRQ_TYPE_LEVEL_LOW>;
			};

		};

		t1phy2: ethernet-phy@e {
			compatible = "ethernet-phy-ieee802.3-c22";
			#address-cells = <1>;
			#size-cells = <0>;
			reg = <0xe>;
			max-speed = <100>;
			interrupt-parent = <&lsio_gpio0>;
			interrupts = <5 IRQ_TYPE_LEVEL_LOW>;

			t1phy3: ethernet-phy@f {
				reg = <0xf>;
				max-speed = <100>;
				interrupt-parent = <&lsio_gpio0>;
				interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
			};
		};
	};
};

&lpspi1 {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_lpspi1>;
	cs-gpios = <&lsio_gpio3 24 GPIO_ACTIVE_LOW>;
	num-cs = <1>;
	status = "okay";

	sja1105@0 {
		reg = <0x0>;
		#address-cells = <1>;
		#size-cells = <0>;
		compatible = "nxp,sja1105p";
		pinctrl-names = "default";
		pinctrl-0 = <&pinctrl_gpio_eth_sw_reset>;
		reset-gpios = <&lsio_gpio3 25 GPIO_ACTIVE_LOW>;
		spi-max-frequency = <500000>;
		spi-cs-setup-delay-ns = <2000>;
		spi-cs-hold-delay-ns = <2000>;
		spi-cpha;
		clocks = <&clock_sja1105>;

		ports {
			#address-cells = <1>;
			#size-cells = <0>;

			port@0 {
				reg = <0>;
				label = "cam1";
				phy-handle = <&t1phy1>;
				phy-mode = "rmii";
			};

			port@1 {
				reg = <1>;
				label = "cam0";
				phy-handle = <&t1phy0>;
				phy-mode = "rmii";
			};

			port@2 {
				reg = <2>;
				label = "cam3";
				phy-handle = <&t1phy3>;
				phy-mode = "rmii";
			};

			port@3 {
				reg = <3>;
				label = "cam2";
				phy-handle = <&t1phy2>;
				phy-mode = "rmii";
			};

			port@4 {
				reg = <4>;
				label = "cpu";
				ethernet = <&fec2>;
				phy-mode = "rgmii-id";
				rx-internal-delay-ps = <0>;
				tx-internal-delay-ps = <0>;
				fixed-link {
					speed = <1000>;
					full-duplex;
				};
			};
		};
	};
};

&iomuxc {
	pinctrl_fec2: fec2grp {
		fsl,pins = <IMX8QM_COMP_CTL_GPIO_1V8_3V3_ENET_ENETA_PAD			0x000014a0>,
			   <IMX8QM_ENET1_MDC_CONN_ENET1_MDC				0x06000020>,
			   <IMX8QM_ENET1_MDIO_CONN_ENET1_MDIO				0x06000020>,
			   <IMX8QM_ENET1_RGMII_TX_CTL_CONN_ENET1_RGMII_TX_CTL		0x06000020>,
			   <IMX8QM_ENET1_RGMII_TXC_CONN_ENET1_RGMII_TXC			0x06000020>,
			   <IMX8QM_ENET1_RGMII_TXD0_CONN_ENET1_RGMII_TXD0		0x06000020>,
			   <IMX8QM_ENET1_RGMII_TXD1_CONN_ENET1_RGMII_TXD1		0x06000020>,
			   <IMX8QM_ENET1_RGMII_TXD2_CONN_ENET1_RGMII_TXD2		0x06000020>,
			   <IMX8QM_ENET1_RGMII_TXD3_CONN_ENET1_RGMII_TXD3		0x06000020>,
			   <IMX8QM_ENET1_RGMII_RXC_CONN_ENET1_RGMII_RXC			0x06000020>,
			   <IMX8QM_ENET1_RGMII_RX_CTL_CONN_ENET1_RGMII_RX_CTL		0x06000020>,
			   <IMX8QM_ENET1_RGMII_RXD0_CONN_ENET1_RGMII_RXD0		0x06000020>,
			   <IMX8QM_ENET1_RGMII_RXD1_CONN_ENET1_RGMII_RXD1		0x06000020>,
			   <IMX8QM_ENET1_RGMII_RXD2_CONN_ENET1_RGMII_RXD2		0x06000020>,
			   <IMX8QM_ENET1_RGMII_RXD3_CONN_ENET1_RGMII_RXD3		0x06000020>,
			   /* ETH_PHY_RESET */
			   <IMX8QM_ESAI0_FSR_LSIO_GPIO2_IO22				0x00000041>, // pull-down, low drive
			   /* ETH_PHY_INT1 */
			   <IMX8QM_ESAI0_FST_LSIO_GPIO2_IO23				0x00000021>, // pull-up, low drive
			   /* ETH_PHY_INT2 */
			   <IMX8QM_SIM0_GPIO0_00_LSIO_GPIO0_IO05			0x00000021>; // pull-up, low drive
	};
}

 

Commands used to configure basic bridge on all ports

# ip link set eth0 up
# ip link set cam0 up
# ip link set cam1 up
# ip link set cam2 up
# ip link set cam3 up
# ethtool -s cam0 master-slave forced-slave
# ethtool -s cam1 master-slave forced-slave
# ethtool -s cam2 master-slave forced-slave
# ethtool -s cam3 master-slave forced-slave
# ip link add name br0 type bridge
# ip link set dev cam0 master br0
# ip link set dev cam1 master br0
# ip link set dev cam2 master br0
# ip link set dev cam3 master br0
# ip addr add 10.0.0.2/24 dev br0
# ip link set dev br0 up

Kernel log (with debugging enabled in net/phy/mdio/dsa subsystems) 

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 6.6.69-g657504d5644f-dirty (mw@T450s) (aarch64-none-linux-gnu-gcc (Arm GNU Toolchain 14.2.Rel1 (Build arm-14.52)) 14.2.1 20241119, GNU ld (Arm GNU Toolchain 14.2.Rel1 (Build arm-14.52)) 2.43.1.20241119) #14 SMP PREEMPT Thu Feb 27 20:14:07 CET 2025
[    0.000000] Machine model: ZZW4
[    0.000000] Reserved memory: created CMA memory pool at 0x00000000c0000000, size 512 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] OF: reserved mem: 0x00000000c0000000..0x00000000dfffffff (524288 KiB) map reusable linux,cma
[    0.000000] OF: reserved mem: 0x0000000084000000..0x0000000085ffffff (32768 KiB) nomap non-reusable decoder-boot@84000000
[    0.000000] OF: reserved mem: 0x0000000086000000..0x00000000861fffff (2048 KiB) nomap non-reusable encoder1-boot@86000000
[    0.000000] OF: reserved mem: 0x0000000086200000..0x00000000863fffff (2048 KiB) nomap non-reusable encoder2-boot@86200000
[    0.000000] OF: reserved mem: 0x0000000090200000..0x00000000903fffff (2048 KiB) nomap non-reusable rpmsg@90200000
[    0.000000] Reserved memory: created DMA memory pool at 0x0000000090400000, size 1 MiB
[    0.000000] OF: reserved mem: initialized node vdevbuffer@90400000, compatible id shared-dma-pool
[    0.000000] OF: reserved mem: 0x0000000090400000..0x00000000904fffff (1024 KiB) nomap non-reusable vdevbuffer@90400000
[    0.000000] OF: reserved mem: 0x0000000092000000..0x00000000921fffff (2048 KiB) nomap non-reusable decoder-rpc@92000000
[    0.000000] OF: reserved mem: 0x0000000092400000..0x00000000943fffff (32768 KiB) nomap non-reusable dsp@92400000
[    0.000000] OF: reserved mem: 0x0000000094400000..0x0000000094afffff (7168 KiB) nomap non-reusable encoder1-rpc@94400000
[    0.000000] OF: reserved mem: 0x0000000094b00000..0x00000000951fffff (7168 KiB) nomap non-reusable encoder2-rpc@94b00000
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000080200000-0x00000000ffffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   [mem 0x0000000100000000-0x00000008ffffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000080200000-0x0000000083ffffff]
[    0.000000]   node   0: [mem 0x0000000084000000-0x00000000863fffff]
[    0.000000]   node   0: [mem 0x0000000086400000-0x00000000901fffff]
[    0.000000]   node   0: [mem 0x0000000090200000-0x00000000904fffff]
[    0.000000]   node   0: [mem 0x0000000090500000-0x0000000091ffffff]
[    0.000000]   node   0: [mem 0x0000000092000000-0x00000000921fffff]
[    0.000000]   node   0: [mem 0x0000000092200000-0x00000000923fffff]
[    0.000000]   node   0: [mem 0x0000000092400000-0x00000000951fffff]
[    0.000000]   node   0: [mem 0x0000000095200000-0x00000000ffffffff]
[    0.000000]   node   0: [mem 0x0000000880000000-0x00000008ffffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080200000-0x00000008ffffffff]
[    0.000000] On node 0, zone DMA: 512 pages in unavailable ranges
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.4
[    0.000000] percpu: Embedded 20 pages/cpu s41576 r8192 d32152 u81920
[    0.000000] pcpu-alloc: s41576 r8192 d32152 u81920 alloc=20*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [0] 4 [0] 5
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: GIC system register CPU interface
[    0.000000] alternatives: applying boot alternatives
[    0.000000] Kernel command line: quiet log_buf_len=4M dyndbg="file drivers/net/mdio/* +pfm; file drivers/net/phy/* +pfm; file drivers/net/ethernet/* +pfm; file drivers/net/dsa/* +pfm;"
[    0.000000] printk: log_buf_len: 4194304 bytes
[    0.000000] printk: early log buf free: 127368(97%)
[    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1031688
[    0.000000] mem auto-init: stack:all(zero), heap alloc:off, heap free:off
[    0.000000] software IO TLB: area num 8.
[    0.000000] software IO TLB: mapped [mem 0x00000000f679e000-0x00000000fa79e000] (64MB)
[    0.000000] Memory: 3233908K/4192256K available (9664K kernel code, 1092K rwdata, 3104K rodata, 1088K init, 414K bss, 434060K reserved, 524288K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=6, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=6.
[    0.000000]  Trampoline variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    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=6
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[    0.000000] GICv3: 512 SPIs implemented
[    0.000000] GICv3: 0 Extended SPIs implemented
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GICv3: GICv3 features: 16 PPIs
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000051b00000
[    0.000000] ITS: No ITS available, not enabling LPIs
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] arch_timer: cp15 timer(s) running at 8.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 440795202120 ns
[    0.000000] sched_clock: 56 bits at 8MHz, resolution 125ns, wraps every 2199023255500ns
[    0.000692] Console: colour dummy device 80x25
[    0.000703] printk: console [tty0] enabled
[    0.000797] Calibrating delay loop (skipped), value calculated using timer frequency.. 16.00 BogoMIPS (lpj=32000)
[    0.000810] pid_max: default: 32768 minimum: 301
[    0.000972] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.000994] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.002712] RCU Tasks: Setting shift to 3 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=6.
[    0.002781] RCU Tasks Trace: Setting shift to 3 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=6.
[    0.002955] rcu: Hierarchical SRCU implementation.
[    0.002960] rcu:     Max phase no-delay instances is 1000.
[    0.006850] smp: Bringing up secondary CPUs ...
[    0.007724] Detected VIPT I-cache on CPU1
[    0.007794] GICv3: CPU1: found redistributor 1 region 0:0x0000000051b20000
[    0.007844] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.008729] Detected VIPT I-cache on CPU2
[    0.008767] GICv3: CPU2: found redistributor 2 region 0:0x0000000051b40000
[    0.008787] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.009608] Detected VIPT I-cache on CPU3
[    0.009646] GICv3: CPU3: found redistributor 3 region 0:0x0000000051b60000
[    0.009665] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.011379] CPU features: detected: Spectre-v2
[    0.011388] CPU features: detected: Spectre-BHB
[    0.011394] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
[    0.011397] Detected PIPT I-cache on CPU4
[    0.011438] GICv3: CPU4: found redistributor 100 region 0:0x0000000051b80000
[    0.011460] CPU4: Booted secondary processor 0x0000000100 [0x410fd082]
[    0.012317] Detected PIPT I-cache on CPU5
[    0.012348] GICv3: CPU5: found redistributor 101 region 0:0x0000000051ba0000
[    0.012363] CPU5: Booted secondary processor 0x0000000101 [0x410fd082]
[    0.012427] smp: Brought up 1 node, 6 CPUs
[    0.012446] SMP: Total of 6 processors activated.
[    0.012452] CPU features: detected: 32-bit EL0 Support
[    0.012456] CPU features: detected: CRC32 instructions
[    0.012525] CPU: All CPU(s) started at EL2
[    0.012529] alternatives: applying system-wide alternatives
[    0.014714] devtmpfs: initialized
[    0.031974] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.032004] futex hash table entries: 2048 (order: 5, 131072 bytes, linear)
[    0.047356] pinctrl core: initialized pinctrl subsystem
[    0.048315] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.049191] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
[    0.049390] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.049643] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.049971] thermal_sys: Registered thermal governor 'step_wise'
[    0.050004] cpuidle: using governor menu
[    0.050113] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.050211] ASID allocator initialised with 65536 entries
[    0.050376] imx mu driver is registered.
[    0.089122] /ldb2-display-controller/lvds-channel@0: Fixed dependency cycle(s) with /bus@57000000/dpu@57180000
[    0.092671] /ldb2-display-controller/lvds-channel@0: Fixed dependency cycle(s) with /panel-lvds
[    0.092732] /panel-lvds: Fixed dependency cycle(s) with /ldb2-display-controller/lvds-channel@0
[    0.094854] Modules: 28880 pages in range for non-PLT usage
[    0.094859] Modules: 520400 pages in range for PLT usage
[    0.095536] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
[    0.095543] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
[    0.095549] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
[    0.095554] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page
[    0.095559] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[    0.095563] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
[    0.095569] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
[    0.095573] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
[    0.098377] iommu: Default domain type: Translated
[    0.098386] iommu: DMA domain TLB invalidation policy: strict mode
[    0.098668] SCSI subsystem initialized
[    0.098732] libphy:phy_driver_register: libphy: Generic Clause 45 PHY: Registered new driver
[    0.098754] libphy:phy_driver_register: libphy: Generic PHY: Registered new driver
[    0.098849] usbcore: registered new interface driver usbfs
[    0.098875] usbcore: registered new interface driver hub
[    0.098909] usbcore: registered new device driver usb
[    0.099432] pps_core: LinuxPPS API ver. 1 registered
[    0.099437] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]>
[    0.099963] Advanced Linux Sound Architecture Driver Initialized.
[    0.101347] imx-scu system-controller: NXP i.MX SCU Initialized
[    0.130482] imx8qm-pinctrl system-controller:pinctrl: initialized IMX pinctrl driver
[    0.133234] clocksource: Switched to clocksource arch_sys_counter
[    0.164223] NET: Registered PF_INET protocol family
[    0.164465] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.167284] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    0.167357] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.167372] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.167588] TCP bind hash table entries: 32768 (order: 8, 1048576 bytes, linear)
[    0.168562] TCP: Hash tables configured (established 32768 bind 32768)
[    0.168678] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.168756] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.168941] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.169210] Unpacking initramfs...
[    0.174898] workingset: timestamp_bits=46 max_order=20 bucket_order=0
[    0.175235] fuse: init (API version 7.39)
[    0.203717] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.203726] io scheduler mq-deadline registered
[    0.203731] io scheduler kyber registered
[    0.203771] io scheduler bfq registered
[    0.372393] Bus freq driver module loaded
[    0.404021] 5a070000.serial: ttyLP1 at MMIO 0x5a070010 (irq = 77, base_baud = 5000000) is a FSL_LPUART
[    0.404043] fsl-lpuart 5a070000.serial: Serial: Console lpuart rounded baud ratefrom 35971 to 115200
[    0.404144] printk: console [ttyLP1] enabled
[    0.405348] arm-smmu 51400000.iommu: probing hardware configuration...
[    0.405359] arm-smmu 51400000.iommu: SMMUv2 with:
[    0.405364] arm-smmu 51400000.iommu:         stage 1 translation
[    0.405367] arm-smmu 51400000.iommu:         stage 2 translation
[    0.405370] arm-smmu 51400000.iommu:         nested translation
[    0.405377] arm-smmu 51400000.iommu:         stream matching with 32 register groups
[    0.405383] arm-smmu 51400000.iommu:         32 context banks (0 stage-2 only)
[    0.405390] arm-smmu 51400000.iommu:         Supported page sizes: 0x61311000
[    0.405394] arm-smmu 51400000.iommu:         Stage-1: 48-bit VA -> 48-bit IPA
[    0.405399] arm-smmu 51400000.iommu:         Stage-2: 48-bit IPA -> 48-bit PA
[    0.405721] arm-smmu 51400000.iommu:         preserved 0 boot mappings
[    0.405737] arm-smmu 51400000.iommu: Failed to disable prefetcher for errata workarounds, check SACR.CACHE_LOCK
[    0.408915] imx8qxp-pixel-combiner 56020000.pixel-combiner: [drm:imx8qxp_pc_bridge_probe] *ERROR* failed to get apb clock: -2
[    0.420333] imx8qxp-pixel-combiner: probe of 56020000.pixel-combiner failed with error -2
[    0.420447] imx8qxp-pixel-combiner 57020000.pixel-combiner: [drm:imx8qxp_pc_bridge_probe] *ERROR* failed to get apb clock: -2
[    0.431790] imx8qxp-pixel-combiner: probe of 57020000.pixel-combiner failed with error -2
[    0.494373] dpu-core 56180000.dpu: driver probed
[    0.497721] imx-drm display-subsystem: bound imx-drm-dpu-bliteng.2 (ops 0xffffffc080a41780)
[    0.497930] imx-drm display-subsystem: bound imx-drm-dpu-bliteng.5 (ops 0xffffffc080a41780)
[    0.498247] imx-drm display-subsystem: bound imx-dpu-crtc.0 (ops 0xffffffc080a41388)
[    0.498545] imx-drm display-subsystem: bound imx-dpu-crtc.1 (ops 0xffffffc080a41388)
[    0.498821] imx-drm display-subsystem: bound imx-dpu-crtc.3 (ops 0xffffffc080a41388)
[    0.499107] imx-drm display-subsystem: bound imx-dpu-crtc.4 (ops 0xffffffc080a41388)
[    0.499823] dpu-core 57180000.dpu: driver probed
[    0.499909] imx8qm-ldb ldb2-display-controller: Failed to create device link (0x180) with 57180000.dpu
[    0.514998] libphy:__mdiobus_register: mdio_bus fixed-0: probed
[    0.515026] libphy:phy_driver_register: libphy: Micrel KS8737: Registered new driver
[    0.515038] libphy:phy_driver_register: libphy: Micrel KSZ8021 or KSZ8031: Registered new driver
[    0.515049] libphy:phy_driver_register: libphy: Micrel KSZ8031: Registered new driver
[    0.515061] libphy:phy_driver_register: libphy: Micrel KSZ8041: Registered new driver
[    0.515075] libphy:phy_driver_register: libphy: Micrel KSZ8041RNLI: Registered new driver
[    0.515085] libphy:phy_driver_register: libphy: Micrel KSZ8051: Registered new driver
[    0.515096] libphy:phy_driver_register: libphy: Micrel KSZ8001 or KS8721: Registered new driver
[    0.515107] libphy:phy_driver_register: libphy: Micrel KSZ8081 or KSZ8091: Registered new driver
[    0.515118] libphy:phy_driver_register: libphy: Micrel KSZ8061: Registered new driver
[    0.515129] libphy:phy_driver_register: libphy: Micrel KSZ9021 Gigabit PHY: Registered new driver
[    0.515140] libphy:phy_driver_register: libphy: Micrel KSZ9031 Gigabit PHY: Registered new driver
[    0.515167] libphy:phy_driver_register: libphy: Microchip INDY Gigabit Quad PHY: Registered new driver
[    0.515178] libphy:phy_driver_register: libphy: Microchip LAN966X Gigabit PHY: Registered new driver
[    0.515189] libphy:phy_driver_register: libphy: Microchip LAN8841 Gigabit PHY: Registered new driver
[    0.515200] libphy:phy_driver_register: libphy: Microchip KSZ9131 Gigabit PHY: Registered new driver
[    0.515212] libphy:phy_driver_register: libphy: Micrel KSZ8873MLL Switch: Registered new driver
[    0.515224] libphy:phy_driver_register: libphy: Micrel KSZ8851 Ethernet MAC or KSZ886X Switch: Registered new driver
[    0.515235] libphy:phy_driver_register: libphy: Micrel KSZ87XX Switch: Registered new driver
[    0.515248] libphy:phy_driver_register: libphy: Microchip KSZ9477: Registered new driver
[    0.515260] libphy:phy_driver_register: libphy: NXP TJA1100: Registered new driver
[    0.515271] libphy:phy_driver_register: libphy: NXP TJA1101: Registered new driver
[    0.515283] libphy:phy_driver_register: libphy: NXP TJA1102 Port 0: Registered new driver
[    0.515294] libphy:phy_driver_register: libphy: NXP TJA1102 Port 1: Registered new driver
[    0.515297] vcan: Virtual CAN interface driver
[    0.515301] vxcan: Virtual CAN Tunnel driver
[    0.515305] CAN device driver interface
[    0.516854] cdns3-imx 5b110000.usb: Adding to iommu group 0
[    0.518777] usbcore: registered new interface driver uas
[    0.518806] usbcore: registered new interface driver usb-storage
[    0.520691] UDC core: g_ncm: couldn't find an available UDC
[    0.520967] i2c_dev: i2c /dev entries driver
[    0.525070] sdhci: Secure Digital Host Controller Interface driver
[    0.525081] sdhci: Copyright(c) Pierre Ossman
[    0.525083] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.526758] sdhci-esdhc-imx 5b010000.mmc: Adding to iommu group 1
[    0.528101] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available
[    0.535370] Galcore version 6.4.11.p2.745085
[    0.557287] mmc0: SDHCI controller on 5b010000.mmc [5b010000.mmc] using ADMA
[    0.605068] mmc0: new HS400 Enhanced strobe MMC card at address 0001
[    0.605993] mmcblk0: mmc0:0001 IX2932 29.1 GiB
[    0.608010] mmcblk0boot0: mmc0:0001 IX2932 4.00 MiB
[    0.609367] mmcblk0boot1: mmc0:0001 IX2932 4.00 MiB
[    0.610334] mmcblk0rpmb: mmc0:0001 IX2932 4.00 MiB, chardev (246:0)
[    0.670227] [drm] Initialized vivante 1.0.0 20170808 for 80000000.imx8_gpu1_ss on minor 0
[    0.671862] NET: Registered PF_PACKET protocol family
[    0.672090] can: controller area network core
[    0.672117] NET: Registered PF_CAN protocol family
[    0.672122] can: raw protocol
[    0.672126] can: broadcast manager protocol
[    0.672133] can: netlink gateway - max_hops=1
[    0.672146] 8021q: 802.1Q VLAN Support v1.8
[    1.428392] Freeing initrd memory: 48032K
[    1.492622] usb_phy_generic usbphynop2: dummy supplies not allowed for exclusive requests
[    1.494078] imx-lpi2c 5a810000.i2c: use pio mode
[    1.510758] usb3503 2-0008: switched to HUB mode
[    1.510782] usb3503 2-0008: usb3503_probe: probed in hub mode
[    1.510863] i2c i2c-2: LPI2C adapter registered
[    1.513448] imx8qm-ldb ldb2-display-controller: Failed to create device link (0x180) with 57241000.ldb_phy
[    1.543358] imx8qm-ldb ldb2-display-controller: Failed to create device link (0x180) with panel-lvds
[    1.553513] imx-drm display-subsystem: bound imx-drm-dpu-bliteng.2 (ops 0xffffffc080a41780)
[    1.553646] imx-drm display-subsystem: bound imx-drm-dpu-bliteng.5 (ops 0xffffffc080a41780)
[    1.553958] imx-drm display-subsystem: bound imx-dpu-crtc.0 (ops 0xffffffc080a41388)
[    1.554240] imx-drm display-subsystem: bound imx-dpu-crtc.1 (ops 0xffffffc080a41388)
[    1.554507] imx-drm display-subsystem: bound imx-dpu-crtc.3 (ops 0xffffffc080a41388)
[    1.554795] imx-drm display-subsystem: bound imx-dpu-crtc.4 (ops 0xffffffc080a41388)
[    1.555564] imx-drm display-subsystem: bound ldb2-display-controller (ops 0xffffffc080a410a0)
[    1.556246] [drm] Initialized imx-drm 1.0.0 20120507 for display-subsystem on minor 1
[    1.559573] imx-drm display-subsystem: [drm] fb0: imx-drmdrmfb frame buffer device
[    1.585856] sja1105 spi0.0: Probed switch chip: SJA1105P
[    1.591453] fec 5b050000.ethernet: Adding to iommu group 2
[    1.608419] fec 5b050000.ethernet: Invalid MAC address: 00:00:00:00:00:00
[    1.615271] fec 5b050000.ethernet: Using random MAC address: ae:50:9a:77:06:28
[    1.616873] libphy:__mdiobus_register: mdio_bus 5b050000.ethernet-1: probed
[    1.620390] fwnode_mdio:fwnode_mdiobus_phy_device_register: mdio_bus 5b050000.ethernet-1: registered phy (____ptrval____) fwnode at address 12
[    1.623516] fwnode_mdio:fwnode_mdiobus_phy_device_register: mdio_bus 5b050000.ethernet-1: registered phy (____ptrval____) fwnode at address 13
[    1.623712] fwnode_mdio:fwnode_mdiobus_phy_device_register: mdio_bus 5b050000.ethernet-1: registered phy (____ptrval____) fwnode at address 14
[    1.625091] cdns-usb3 5b120000.usb: Adding to iommu group 0
[    1.625960] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    1.625986] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[    1.626611] xhci-hcd xhci-hcd.0.auto: hcc params 0x200073c8 hci version 0x100 quirks 0x0000002200008010
[    1.626634] xhci-hcd xhci-hcd.0.auto: irq 495, io mem 0x5b130000
[    1.626807] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    1.626819] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[    1.626832] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
[    1.627410] fwnode_mdio:fwnode_mdiobus_phy_device_register: mdio_bus 5b050000.ethernet-1: registered phy (____ptrval____) fwnode at address 15
[    1.627606] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.06
[    1.627618] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.627627] usb usb1: Product: xHCI Host Controller
[    1.627633] usb usb1: Manufacturer: Linux 6.6.69-g657504d5644f-dirty xhci-hcd
[    1.627640] usb usb1: SerialNumber: xhci-hcd.0.auto
[    1.628097] hub 1-0:1.0: USB hub found
[    1.628133] hub 1-0:1.0: 1 port detected
[    1.628506] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.628635] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.06
[    1.628646] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.628654] usb usb2: Product: xHCI Host Controller
[    1.628660] usb usb2: Manufacturer: Linux 6.6.69-g657504d5644f-dirty xhci-hcd
[    1.628667] usb usb2: SerialNumber: xhci-hcd.0.auto
[    1.629004] hub 2-0:1.0: USB hub found
[    1.629035] hub 2-0:1.0: 1 port detected
[    1.633725] g_ncm gadget.0: HOST MAC 52:dd:b4:83:99:20
[    1.633735] g_ncm gadget.0: MAC 22:a5:8d:0e:ba:0c
[    1.633768] g_ncm gadget.0: NCM Gadget
[    1.633775] g_ncm gadget.0: g_ncm ready
[    1.938091] ci_hdrc ci_hdrc.1: EHCI Host Controller
[    1.938133] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 3
[    1.953250] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
[    1.953494] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.06
[    1.953514] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.953530] usb usb3: Product: EHCI Host Controller
[    1.953542] usb usb3: Manufacturer: Linux 6.6.69-g657504d5644f-dirty ehci_hcd
[    1.953555] usb usb3: SerialNumber: ci_hdrc.1
[    1.954288] hub 3-0:1.0: USB hub found
[    1.954336] hub 3-0:1.0: 1 port detected
[    1.957690] sdhci-esdhc-imx 5b030000.mmc: Adding to iommu group 1
[    1.978097] sja1105 spi0.0: Probed switch chip: SJA1105P
[    1.989257] mmc2: SDHCI controller on 5b030000.mmc [5b030000.mmc] using ADMA
[    2.006970] sja1105:sja1105_rmii_clocking_setup: sja1105 spi0.0: Configuring RMII-MAC clocking
[    2.008506] sja1105:sja1105_rmii_clocking_setup: sja1105 spi0.0: Configuring RMII-MAC clocking
[    2.010047] sja1105:sja1105_rmii_clocking_setup: sja1105 spi0.0: Configuring RMII-MAC clocking
[    2.011592] sja1105:sja1105_rmii_clocking_setup: sja1105 spi0.0: Configuring RMII-MAC clocking
[    2.013145] sja1105:sja1105_rgmii_clocking_setup: sja1105 spi0.0: Configuring port 4 RGMII at speed 0Mbps
[    2.013167] sja1105:sja1105_rgmii_clocking_setup: sja1105 spi0.0: Speed not available, skipping CGU config
[    2.031972] sja1105 spi0.0: configuring for fixed/rgmii-id link mode
[    2.031991] phylink:phylink_major_config: sja1105 spi0.0: major config rgmii-id
[    2.032005] phylink:phylink_mac_config: sja1105 spi0.0: phylink_mac_config: mode=fixed/rgmii-id/none adv=00,00000000,00000000,00000260 pause=00
[    2.032527] phylink:phylink_fixup_inband_aneg: sja1105 spi0.0 cam1 (uninitialized): PHY driver does not report in-band autoneg capability, assuming false
[    2.034238] sja1105:sja1105_rgmii_clocking_setup: sja1105 spi0.0: Configuring port 4 RGMII at speed 1Mbps
[    2.036167] sja1105 spi0.0: Link is Up - 1Gbps/Full - flow control off
[    2.070248] sja1105 spi0.0 cam1 (uninitialized): PHY [5b050000.ethernet-1:0d] driver [NXP TJA1102 Port 1] (irq=308)
[    2.070273] phylink:phylink_bringup_phy: sja1105 spi0.0 cam1 (uninitialized): phy: rmii setting supported 00,10000008,00000000,00000080 advertising 00,10000008,00000000,00000080
[    2.072224] phylink:phylink_fixup_inband_aneg: sja1105 spi0.0 cam0 (uninitialized): PHY driver does not report in-band autoneg capability, assuming false
[    2.101917] sja1105 spi0.0 cam0 (uninitialized): PHY [5b050000.ethernet-1:0c] driver [NXP TJA1102 Port 0] (irq=308)
[    2.101941] phylink:phylink_bringup_phy: sja1105 spi0.0 cam0 (uninitialized): phy: rmii setting supported 00,10000008,00000000,00000080 advertising 00,10000008,00000000,00000080
[    2.103500] phylink:phylink_fixup_inband_aneg: sja1105 spi0.0 cam3 (uninitialized): PHY driver does not report in-band autoneg capability, assuming false
[    2.149799] sja1105 spi0.0 cam3 (uninitialized): PHY [5b050000.ethernet-1:0f] driver [NXP TJA1102 Port 1] (irq=224)
[    2.149812] phylink:phylink_bringup_phy: sja1105 spi0.0 cam3 (uninitialized): phy: rmii setting supported 00,10000008,00000000,00000080 advertising 00,10000008,00000000,00000080
[    2.150806] phylink:phylink_fixup_inband_aneg: sja1105 spi0.0 cam2 (uninitialized): PHY driver does not report in-band autoneg capability, assuming false
[    2.209840] sja1105 spi0.0 cam2 (uninitialized): PHY [5b050000.ethernet-1:0e] driver [NXP TJA1102 Port 0] (irq=224)
[    2.209856] phylink:phylink_bringup_phy: sja1105 spi0.0 cam2 (uninitialized): phy: rmii setting supported 00,10000008,00000000,00000080 advertising 00,10000008,00000000,00000080
[    2.210739] fec 5b050000.ethernet eth0: entered promiscuous mode
[    2.210771] DSA: tree 0 setup
[    2.224557] clk: Disabling unused clocks
[    2.234246] ALSA device list:
[    2.234263]   No soundcards found.
[    2.235484]  mu_a1: failed to power off resource 214 ret -22
[    2.235708] Freeing unused kernel memory: 1088K
[    2.241577] Run /init as init process
[    2.241584]   with arguments:
[    2.241589]     /init
[    2.241594]   with environment:
[    2.241598]     HOME=/
[    2.241603]     TERM=linux
[    2.357512] usb 3-1: new high-speed USB device number 2 using ci_hdrc
[    2.513922] usb 3-1: New USB device found, idVendor=0424, idProduct=3503, bcdDevice=a1.a0
[    2.513949] usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.514865] hub 3-1:1.0: USB hub found
[    2.515032] hub 3-1:1.0: 2 ports detected
[   17.011898] Generic PHY fixed-0:00: attached PHY driver (mii_bus:phy_addr=fixed-0:00, irq=POLL)
[   17.013767] fec 5b050000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   17.013798] libphy:phy_process_state_change: Generic PHY fixed-0:00: PHY state change UP -> RUNNING
[   17.163293] sja1105 spi0.0 cam0: configuring for phy/rmii link mode
[   17.163327] phylink:phylink_major_config: sja1105 spi0.0 cam0: major config rmii
[   17.163344] phylink:phylink_mac_config: sja1105 spi0.0 cam0: phylink_mac_config: mode=phy/rmii/none adv=00,00000000,00000000,00000000 pause=00
[   17.164712] phylink:phylink_phy_change: sja1105 spi0.0 cam0: phy link down rmii/100Mbps/Full/none/off
[   17.164735] libphy:phy_process_state_change: NXP TJA1102 Port 0 5b050000.ethernet-1:0c: PHY state change UP -> NOLINK
[   17.319957] sja1105 spi0.0 cam1: configuring for phy/rmii link mode
[   17.319992] phylink:phylink_major_config: sja1105 spi0.0 cam1: major config rmii
[   17.320008] phylink:phylink_mac_config: sja1105 spi0.0 cam1: phylink_mac_config: mode=phy/rmii/none adv=00,00000000,00000000,00000000 pause=00
[   17.321368] phylink:phylink_phy_change: sja1105 spi0.0 cam1: phy link down rmii/100Mbps/Full/none/off
[   17.321392] libphy:phy_process_state_change: NXP TJA1102 Port 1 5b050000.ethernet-1:0d: PHY state change UP -> NOLINK
[   17.476479] sja1105 spi0.0 cam2: configuring for phy/rmii link mode
[   17.476515] phylink:phylink_major_config: sja1105 spi0.0 cam2: major config rmii
[   17.476531] phylink:phylink_mac_config: sja1105 spi0.0 cam2: phylink_mac_config: mode=phy/rmii/none adv=00,00000000,00000000,00000000 pause=00
[   17.477891] phylink:phylink_phy_change: sja1105 spi0.0 cam2: phy link down rmii/100Mbps/Full/none/off
[   17.477914] libphy:phy_process_state_change: NXP TJA1102 Port 0 5b050000.ethernet-1:0e: PHY state change UP -> NOLINK
[   17.633776] sja1105 spi0.0 cam3: configuring for phy/rmii link mode
[   17.633813] phylink:phylink_major_config: sja1105 spi0.0 cam3: major config rmii
[   17.633829] phylink:phylink_mac_config: sja1105 spi0.0 cam3: phylink_mac_config: mode=phy/rmii/none adv=00,00000000,00000000,00000000 pause=00
[   17.635157] phylink:phylink_phy_change: sja1105 spi0.0 cam3: phy link down rmii/100Mbps/Full/none/off
[   17.635179] libphy:phy_process_state_change: NXP TJA1102 Port 1 5b050000.ethernet-1:0f: PHY state change UP -> NOLINK
[   17.861271] random: crng init done
[   17.960937] phylink:phylink_phy_change: sja1105 spi0.0 cam0: phy link down rmii/100Mbps/Full/none/off
[   17.960977] libphy:phy_process_state_change: NXP TJA1102 Port 0 5b050000.ethernet-1:0c: PHY state change UP -> NOLINK
[   18.295512] phylink:phylink_phy_change: sja1105 spi0.0 cam1: phy link down rmii/100Mbps/Full/none/off
[   18.295555] libphy:phy_process_state_change: NXP TJA1102 Port 1 5b050000.ethernet-1:0d: PHY state change UP -> NOLINK
[   18.638956] phylink:phylink_phy_change: sja1105 spi0.0 cam2: phy link down rmii/100Mbps/Full/none/off
[   18.638997] libphy:phy_process_state_change: NXP TJA1102 Port 0 5b050000.ethernet-1:0e: PHY state change UP -> NOLINK
[   18.680431] phylink:phylink_phy_change: sja1105 spi0.0 cam2: phy link up rmii/100Mbps/Full/none/off
[   18.680445] libphy:phy_process_state_change: NXP TJA1102 Port 0 5b050000.ethernet-1:0e: PHY state change NOLINK -> RUNNING
[   18.682667] sja1105 spi0.0 cam2: Link is Up - 100Mbps/Full - flow control off
[   18.968937] phylink:phylink_phy_change: sja1105 spi0.0 cam3: phy link down rmii/100Mbps/Full/none/off
[   18.968976] libphy:phy_process_state_change: NXP TJA1102 Port 1 5b050000.ethernet-1:0f: PHY state change UP -> NOLINK
[   19.488820] br0: port 1(cam0) entered blocking state
[   19.488851] br0: port 1(cam0) entered disabled state
[   19.488886] sja1105 spi0.0 cam0: entered allmulticast mode
[   19.488903] fec 5b050000.ethernet eth0: entered allmulticast mode
[   19.505611] sja1105 spi0.0 cam0: entered promiscuous mode
[   19.737099] br0: port 2(cam1) entered blocking state
[   19.737128] br0: port 2(cam1) entered disabled state
[   19.737166] sja1105 spi0.0 cam1: entered allmulticast mode
[   19.749326] sja1105 spi0.0 cam1: entered promiscuous mode
[   19.988603] br0: port 3(cam2) entered blocking state
[   19.988632] br0: port 3(cam2) entered disabled state
[   19.988671] sja1105 spi0.0 cam2: entered allmulticast mode
[   20.002266] sja1105 spi0.0 cam2: entered promiscuous mode
[   20.253612] br0: port 4(cam3) entered blocking state
[   20.253639] br0: port 4(cam3) entered disabled state
[   20.253678] sja1105 spi0.0 cam3: entered allmulticast mode
[   20.268983] sja1105 spi0.0 cam3: entered promiscuous mode
[   21.494221] br0: port 3(cam2) entered blocking state
[   21.494260] br0: port 3(cam2) entered forwarding state

Ports statistics and information

 

# ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: can0: <NOARP,ECHO> mtu 16 qdisc noop state DOWN mode DEFAULT group default qlen 10
    link/can
3: can1: <NOARP,ECHO> mtu 16 qdisc noop state DOWN mode DEFAULT group default qlen 10
    link/can
4: can2: <NOARP,ECHO> mtu 16 qdisc noop state DOWN mode DEFAULT group default qlen 10
    link/can
5: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1504 qdisc mq state UP mode DEFAULT group default qlen 1000
    link/ether be:43:42:84:7a:62 brd ff:ff:ff:ff:ff:ff
6: usb0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether 2e:82:af:21:d3:1d brd ff:ff:ff:ff:ff:ff
7: cam1@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br0 state LOWERLAYERDOWN mode DEFAULT group default qlen 1000
    link/ether be:43:42:84:7a:62 brd ff:ff:ff:ff:ff:ff
8: cam0@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br0 state LOWERLAYERDOWN mode DEFAULT group default qlen 1000
    link/ether be:43:42:84:7a:62 brd ff:ff:ff:ff:ff:ff
9: cam3@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br0 state LOWERLAYERDOWN mode DEFAULT group default qlen 1000
    link/ether be:43:42:84:7a:62 brd ff:ff:ff:ff:ff:ff
10: cam2@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br0 state UP mode DEFAULT group default qlen 1000
    link/ether be:43:42:84:7a:62 brd ff:ff:ff:ff:ff:ff
11: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
    link/ether be:43:42:84:7a:62 brd ff:ff:ff:ff:ff:ff

# ifconfig
br0       Link encap:Ethernet  HWaddr BE:43:42:84:7A:62
          inet addr:10.0.0.2  Bcast:0.0.0.0  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:228 errors:0 dropped:0 overruns:0 frame:0
          TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:14814 (14.4 KiB)  TX bytes:990 (990.0 B)

cam0      Link encap:Ethernet  HWaddr BE:43:42:84:7A:62
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

cam1      Link encap:Ethernet  HWaddr BE:43:42:84:7A:62
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

cam2      Link encap:Ethernet  HWaddr BE:43:42:84:7A:62
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:229 errors:0 dropped:0 overruns:0 frame:0
          TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:18066 (17.6 KiB)  TX bytes:990 (990.0 B)

cam3      Link encap:Ethernet  HWaddr BE:43:42:84:7A:62
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

eth0      Link encap:Ethernet  HWaddr BE:43:42:84:7A:62
          UP BROADCAST RUNNING MULTICAST  MTU:1504  Metric:1
          RX packets:229 errors:0 dropped:0 overruns:0 frame:0
          TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:20356 (19.8 KiB)  TX bytes:1082 (1.0 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:28 errors:0 dropped:0 overruns:0 frame:0
          TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3136 (3.0 KiB)  TX bytes:3136 (3.0 KiB)

# ethtool -S eth0
NIC statistics:
     tx_dropped: 0
     tx_packets: 23
     tx_broadcast: 21
     tx_multicast: 2
     tx_crc_errors: 0
     tx_undersize: 0
     tx_oversize: 0
     tx_fragment: 0
     tx_jabber: 0
     tx_collision: 0
     tx_64byte: 23
     tx_65to127byte: 0
     tx_128to255byte: 0
     tx_256to511byte: 0
     tx_512to1023byte: 0
     tx_1024to2047byte: 0
     tx_GTE2048byte: 0
     tx_octets: 1472
     IEEE_tx_drop: 0
     IEEE_tx_frame_ok: 23
     IEEE_tx_1col: 0
     IEEE_tx_mcol: 0
     IEEE_tx_def: 0
     IEEE_tx_lcol: 0
     IEEE_tx_excol: 0
     IEEE_tx_macerr: 0
     IEEE_tx_cserr: 0
     IEEE_tx_sqe: 0
     IEEE_tx_fdxfc: 0
     IEEE_tx_octets_ok: 1472
     rx_packets: 231
     rx_broadcast: 105
     rx_multicast: 126
     rx_crc_errors: 0
     rx_undersize: 0
     rx_oversize: 0
     rx_fragment: 0
     rx_jabber: 0
     rx_64byte: 0
     rx_65to127byte: 210
     rx_128to255byte: 21
     rx_256to511byte: 0
     rx_512to1023byte: 0
     rx_1024to2047byte: 0
     rx_GTE2048byte: 0
     rx_octets: 20034
     IEEE_rx_drop: 0
     IEEE_rx_frame_ok: 231
     IEEE_rx_crc: 0
     IEEE_rx_align: 0
     IEEE_rx_macerr: 0
     IEEE_rx_fdxfc: 0
     IEEE_rx_octets_ok: 20034
     rx_xdp_redirect: 0
     rx_xdp_pass: 0
     rx_xdp_drop: 0
     rx_xdp_tx: 0
     rx_xdp_tx_errors: 0
     tx_xdp_xmit: 0
     tx_xdp_xmit_errors: 0
     rx_pp_alloc_fast: 983
     rx_pp_alloc_slow: 13
     rx_pp_alloc_slow_ho: 0
     rx_pp_alloc_empty: 13
     rx_pp_alloc_refill: 3
     rx_pp_alloc_waive: 0
     rx_pp_recycle_cached: 0
     rx_pp_recycle_cache_full: 0
     rx_pp_recycle_ring: 231
     rx_pp_recycle_ring_full: 0
     rx_pp_recycle_released_ref: 0
     p04_: 0
     p04_n_runt: 0
     p04_n_soferr: 0
     p04_n_alignerr: 0
     p04_n_miierr: 0
     p04_typeerr: 0
     p04_sizeerr: 0
     p04_tctimeout: 0
     p04_priorerr: 0
     p04_nomaster: 0
     p04_memov: 0
     p04_memerr: 0
     p04_invtyp: 0
     p04_intcyov: 0
     p04_domerr: 0
     p04_pcfbagdrop: 0
     p04_spcprior: 0
     p04_ageprior: 0
     p04_portdrop: 0
     p04_lendrop: 0
     p04_bagdrop: 0
     p04_policeerr: 0
     p04_drpnona664err: 0
     p04_spcerr: 0
     p04_agedrp: 0
     p04_n_n664err: 0
     p04_n_vlanerr: 0
     p04_n_unreleased: 0
     p04_n_sizeerr: 0
     p04_n_crcerr: 0
     p04_n_vlnotfound: 0
     p04_n_ctpolerr: 0
     p04_n_polerr: 0
     p04_n_rxfrm: 0
     p04_n_rxbyte: 0
     p04_n_txfrm: 231
     p04_n_txbyte: 20034
     p04_n_qfull: 0
     p04_n_part_drop: 0
     p04_n_egr_disabled: 0
     p04_n_not_reach: 0
     p04_n_drops_nolearn: 0
     p04_n_drops_noroute: 0
     p04_n_drops_ill_dtag: 0
     p04_n_drops_dtag: 0
     p04_n_drops_sotag: 0
     p04_n_drops_sitag: 0
     p04_n_drops_utag: 0
     p04_n_tx_bytes_1024_2047: 0
     p04_n_tx_bytes_512_1023: 0
     p04_n_tx_bytes_256_511: 0
     p04_n_tx_bytes_128_255: 21
     p04_n_tx_bytes_65_127: 210
     p04_n_tx_bytes_64: 0
     p04_n_tx_mcast: 126
     p04_n_tx_bcast: 105
     p04_n_rx_bytes_1024_2047: 0
     p04_n_rx_bytes_512_1023: 0
     p04_n_rx_bytes_256_511: 0
     p04_n_rx_bytes_128_255: 0
     p04_n_rx_bytes_65_127: 0
     p04_n_rx_bytes_64: 0
     p04_n_rx_mcast: 0
#

 

 

SJA1105PQRS 

0 Kudos
Reply
1 Reply

835 Views
JosephAtNXP
NXP TechSupport
NXP TechSupport

Hi,

Thank you for your interest in NXP Semiconductor products,

If you can probe messages from CPU to SJA, it means that the Linux configuration for the ethernet port is alright. At the same time if you can ping with RX messages from SJA to CPU, it means that it has the proper clocks and power up.

Seems like a configuration, if you are not generating an initialization script, that is highly recommended, it looks like the DSA driver can handle a valid initialization, could you read it? I found a tool suggested by the ethernet switch team.

Use sja1105-tool and another tool to dump the static configuration of the sja1105 is available here: https://github.com/vladimiroltean/mv88e6xxx_dump/tree/sja1105 With "devlink dev" find the name of the SPI device that you want to talk to, like "spi/spi0.1" (0 is bus, 1 is chip select). Then use a command like "./sja1105_dump --device spi/spi0.1 --static-config" to dump the static config devlink region from the kernel driver, and dump it as text output.

Lastly, whats the throughput of the following iperf command on client side:

iperf3 --udp -b 0 -c IP.ADDR -p PORT

Regards

0 Kudos
Reply