This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

After the device is started, the network port is dynamically modified. The kernel crashes and the network function is abnormal

Other Parts Discussed in Thread: TDA4VM

We're doing a network function test and find that the crash information will appear when the network port is dynamically switched. We operated the CPSW_Iy_ALE_PORTCTL0_y register according to the register manual. We controlled the network channel switching by setting the Iy_REG_Py_PORTSTATE state.

For example, we want to dynamically turn network port2, network port3 and network port4 on and off

Is dynamic network port switching supported?

Is there any other way to support dynamic network port switching?

TDA4VM SDK7.03

[09:31:34]NOTICE:  BL31: v2.4(release):07.03.00.005-dirty
[09:31:34]NOTICE:  BL31: Built : 00:15:40, Apr 10 2021
[09:31:34][    0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd080]
[09:31:34][    0.000000] Linux version 5.4.106-g023faefa70 (eric.xiao@ubuntu-PowerEdge-R740) (gcc version 9.2.1 20191025 (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10))) #1 SMP PREEMPT Wed Nov 23 13:37:46 CST 2022
[09:31:34][    0.000000] Machine model: Texas Instruments K3 J721E SoC
[09:31:34][    0.000000] earlycon: ns16550a0 at MMIO32 0x0000000002800000 (options '')
[09:31:34][    0.000000] printk: bootconsole [ns16550a0] enabled
[09:31:34][    0.000000] Reserved memory: created DMA memory pool at 0x00000000a0000000, size 1 MiB
[09:31:34][    0.000000] OF: reserved mem: initialized node vision-apps-r5f-dma-memory@a0000000, compatible id shared-dma-pool
[09:31:34][    0.000000] Reserved memory: created DMA memory pool at 0x00000000a0100000, size 15 MiB
[09:31:34][    0.000000] OF: reserved mem: initialized node vision_apps-r5f-memory@a0100000, compatible id shared-dma-pool
[09:31:34][    0.000000] Reserved memory: created DMA memory pool at 0x00000000a1000000, size 1 MiB
[09:31:34][    0.000000] OF: reserved mem: initialized node vision-apps-r5f-dma-memory@a1000000, compatible id shared-dma-pool
[09:31:34][    0.000000] Reserved memory: created DMA memory pool at 0x00000000a1100000, size 15 MiB
[09:31:34][    0.000000] OF: reserved mem: initialized node vision-apps-r5f-memory@a1100000, compatible id shared-dma-pool
[09:31:34][    0.000000] Reserved memory: created DMA memory pool at 0x00000000a2000000, size 1 MiB
[09:31:34][    0.000000] OF: reserved mem: initialized node vision-apps-r5f-dma-memory@a2000000, compatible id shared-dma-pool
[09:31:34][    0.000000] Reserved memory: created DMA memory pool at 0x00000000a2100000, size 63 MiB
[09:31:34][    0.000000] OF: reserved mem: initialized node vision-apps-r5f-memory@a2100000, compatible id shared-dma-pool
[09:31:34][    0.000000] Reserved memory: created DMA memory pool at 0x00000000a6000000, size 1 MiB
[09:31:34][    0.000000] OF: reserved mem: initialized node vision-apps-r5f-dma-memory@a6000000, compatible id shared-dma-pool
[09:31:34][    0.000000] Reserved memory: created DMA memory pool at 0x00000000a6100000, size 63 MiB
[09:31:34][    0.000000] OF: reserved mem: initialized node vision-apps-r5f-memory@a6100000, compatible id shared-dma-pool
[09:31:34][    0.000000] Reserved memory: created DMA memory pool at 0x00000000aa000000, size 1 MiB
[09:31:34][    0.000000] OF: reserved mem: initialized node vision-apps-r5f-dma-memory@aa000000, compatible id shared-dma-pool
[09:31:34][    0.000000] Reserved memory: created DMA memory pool at 0x00000000aa100000, size 31 MiB
[09:31:34][    0.000000] OF: reserved mem: initialized node vision-apps-r5f-memory@aa100000, compatible id shared-dma-pool
[09:31:34][    0.000000] Reserved memory: created DMA memory pool at 0x00000000ac000000, size 1 MiB
[09:31:34][    0.000000] OF: reserved mem: initialized node vision-apps-r5f-dma-memory@ac000000, compatible id shared-dma-pool
[09:31:34][    0.000000] Reserved memory: created DMA memory pool at 0x00000000ac100000, size 31 MiB
[09:31:34][    0.000000] OF: reserved mem: initialized node vision-apps-r5f-memory@ac100000, compatible id shared-dma-pool
[09:31:34][    0.000000] Reserved memory: created DMA memory pool at 0x00000000ae000000, size 1 MiB
[09:31:34][    0.000000] OF: reserved mem: initialized node vision-apps-c66-dma-memory@ae000000, compatible id shared-dma-pool
[09:31:34][    0.000000] Reserved memory: created DMA memory pool at 0x00000000ae100000, size 63 MiB
[09:31:34][    0.000000] OF: reserved mem: initialized node vision-apps-c66-memory@ae100000, compatible id shared-dma-pool
[09:31:34][    0.000000] Reserved memory: created DMA memory pool at 0x00000000b2000000, size 1 MiB
[09:31:34][    0.000000] OF: reserved mem: initialized node vision-apps-c66-dma-memory@b2000000, compatible id shared-dma-pool
[09:31:34][    0.000000] Reserved memory: created DMA memory pool at 0x00000000b2100000, size 63 MiB
[09:31:34][    0.000000] OF: reserved mem: initialized node vision-apps-c66-memory@b2100000, compatible id shared-dma-pool
[09:31:34][    0.000000] Reserved memory: created DMA memory pool at 0x00000000b6000000, size 1 MiB
[09:31:34][    0.000000] OF: reserved mem: initialized node vision-apps-c71-dma-memory@b6000000, compatible id shared-dma-pool
[09:31:34][    0.000000] Reserved memory: created DMA memory pool at 0x00000000b6100000, size 79 MiB
[09:31:34][    0.000000] OF: reserved mem: initialized node vision-apps-c71-memory@b6100000, compatible id shared-dma-pool
[09:31:34][    0.000000] Reserved memory: created DMA memory pool at 0x00000000be000000, size 48 MiB
[09:31:34][    0.000000] OF: reserved mem: initialized node vision-apps-dma-memory@be000000, compatible id shared-dma-pool
[09:31:34][    0.000000] Reserved memory: created DMA memory pool at 0x00000000c1000000, size 16 MiB
[09:31:34][    0.000000] OF: reserved mem: initialized node freetech_shared-memories@c1000000, compatible id shared-dma-pool
[09:31:34][    0.000000] OF: reserved mem: initialized node vision_apps_shared-memories, compatible id dma-heap-carveout
[09:31:34][    0.000000] Reserved memory: created DMA memory pool at 0x00000000e2000000, size 415 MiB
[09:31:34][    0.000000] OF: reserved mem: initialized node vision-apps-core-heap-memory-lo@e2000000, compatible id shared-dma-pool
[09:31:34][    0.000000] Reserved memory: created DMA memory pool at 0x0000000880000000, size 124 MiB
[09:31:34][    0.000000] OF: reserved mem: initialized node vision-apps-core-heap-memory-hi@880000000, compatible id shared-dma-pool
[09:31:34][    0.000000] cma: Failed to reserve 512 MiB
[09:31:34][    0.000000] psci: probing for conduit method from DT.
[09:31:34][    0.000000] psci: PSCIv1.1 detected in firmware.
[09:31:34][    0.000000] psci: Using standard PSCI v0.2 function IDs
[09:31:34][    0.000000] psci: Trusted OS migration not required
[09:31:34][    0.000000] psci: SMC Calling Convention v1.0
[09:31:34][    0.000000] percpu: Embedded 2 pages/cpu s48472 r8192 d74408 u131072
[09:31:34][    0.000000] Detected PIPT I-cache on CPU0
[09:31:34][    0.000000] CPU features: detected: GIC system register CPU interface
[09:31:34][    0.000000] CPU features: detected: EL2 vector hardening
[09:31:34][    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 54602
[09:31:34][    0.000000] Kernel command line: console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000  root=/dev/mmcblk0p5 ro rootfstype=ext4 rootwait
[09:31:34][    0.000000] Dentry cache hash table entries: 524288 (order: 6, 4194304 bytes, linear)
[09:31:34][    0.000000] Inode-cache hash table entries: 262144 (order: 5, 2097152 bytes, linear)
[09:31:34][    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[09:31:34][    0.000000] software IO TLB: mapped [mem 0x9a800000-0x9e800000] (64MB)
[09:31:35][    0.000000] Memory: 2455104K/3497984K available (9662K kernel code, 792K rwdata, 3904K rodata, 1664K init, 2619K bss, 1042880K reserved, 0K cma-reserved)
[09:31:35][    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[09:31:35][    0.000000] rcu: Preemptible hierarchical RCU implementation.
[09:31:35][    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=2.
[09:31:35][    0.000000]  Tasks RCU enabled.
[09:31:35][    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[09:31:35][    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[09:31:35][    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[09:31:35][    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[09:31:35][    0.000000] GICv3: 960 SPIs implemented
[09:31:35][    0.000000] GICv3: 0 Extended SPIs implemented
[09:31:35][    0.000000] GICv3: Distributor has no Range Selector support
[09:31:35][    0.000000] GICv3: 16 PPIs implemented
[09:31:35][    0.000000] GICv3: no VLPI support, no direct LPI support
[09:31:35][    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000001900000
[09:31:35][    0.000000] ITS [mem 0x01820000-0x0182ffff]
[09:31:35][    0.000000] GIC: enabling workaround for ITS: Socionext Synquacer pre-ITS
[09:31:35][    0.000000] ITS@0x0000000001820000: allocated 1048576 Devices @888000000 (flat, esz 8, psz 64K, shr 0)
[09:31:35][    0.000000] ITS: using cache flushing for cmd queue
[09:31:35][    0.000000] GICv3: using LPI property table @0x0000000887cb0000
[09:31:35][    0.000000] GIC: using cache flushing for LPI property table
[09:31:35][    0.000000] GICv3: CPU0: using allocated LPI pending table @0x0000000887cc0000
[09:31:35][    0.000000] random: get_random_bytes called from start_kernel+0x2b8/0x42c with crng_init=0
[09:31:35][    0.000000] arch_timer: cp15 timer(s) running at 200.00MHz (phys).
[09:31:35][    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2e2049d3e8, max_idle_ns: 440795210634 ns
[09:31:35][    0.000001] sched_clock: 56 bits at 200MHz, resolution 5ns, wraps every 4398046511102ns
[09:31:35][    0.008366] Console: colour dummy device 80x25
[09:31:35][    0.012929] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=800000)
[09:31:35][    0.023598] pid_max: default: 32768 minimum: 301
[09:31:35][    0.028349] LSM: Security Framework initializing
[09:31:35][    0.033103] Mount-cache hash table entries: 8192 (order: 0, 65536 bytes, linear)
[09:31:35][    0.040677] Mountpoint-cache hash table entries: 8192 (order: 0, 65536 bytes, linear)
[09:31:35][    0.049780] ASID allocator initialised with 32768 entries
[09:31:35][    0.055372] rcu: Hierarchical SRCU implementation.
[09:31:35][    0.060429] Platform MSI: gic-its@1820000 domain created
[09:31:35][    0.066097] PCI/MSI: /bus@100000/interrupt-controller@1800000/gic-its@1820000 domain created
[09:31:35][    0.074930] smp: Bringing up secondary CPUs ...
[09:31:35][    0.080115] Detected PIPT I-cache on CPU1
[09:31:35][    0.080138] GICv3: CPU1: found redistributor 1 region 0:0x0000000001920000
[09:31:35][    0.080149] GICv3: CPU1: using allocated LPI pending table @0x0000000887cd0000
[09:31:35][    0.080181] CPU1: Booted secondary processor 0x0000000001 [0x411fd080]
[09:31:35][    0.080230] smp: Brought up 1 node, 2 CPUs
[09:31:35][    0.109575] SMP: Total of 2 processors activated.
[09:31:35][    0.114379] CPU features: detected: 32-bit EL0 Support
[09:31:35][    0.119632] CPU features: detected: CRC32 instructions
[09:31:35][    0.131431] CPU: All CPU(s) started at EL2
[09:31:35][    0.135624] alternatives: patching kernel code
[09:31:35][    0.140760] devtmpfs: initialized
[09:31:35][    0.149425] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[09:31:35][    0.159397] futex hash table entries: 512 (order: -1, 32768 bytes, linear)
[09:31:35][    0.166735] pinctrl core: initialized pinctrl subsystem
[09:31:35][    0.172533] NET: Registered protocol family 16
[09:31:35][    0.177275] DMA: preallocated 256 KiB pool for atomic allocations
[09:31:35][    0.183769] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[09:31:35][    0.198178] HugeTLB registered 16.0 GiB page size, pre-allocated 0 pages
[09:31:35][    0.205033] HugeTLB registered 512 MiB page size, pre-allocated 0 pages
[09:31:35][    0.211790] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[09:31:35][    0.219825] cryptd: max_cpu_qlen set to 1000
[09:31:35][    0.226096] vsys_3v3: supplied by evm_12v0
[09:31:35][    0.230362] vsys_5v0: supplied by evm_12v0
[09:31:35][    0.234675] vdd_mmc1: supplied by vsys_3v3
[09:31:35][    0.239183] iommu: Default domain type: Translated 
[09:31:35][    0.244324] SCSI subsystem initialized
[09:31:35][    0.248290] mc: Linux media interface: v0.10
[09:31:35][    0.252659] videodev: Linux video capture interface: v2.00
[09:31:35][    0.258269] pps_core: LinuxPPS API ver. 1 registered
[09:31:35][    0.263338] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[09:31:35][    0.272675] PTP clock support registered
[09:31:35][    0.276685] EDAC MC: Ver: 3.0.0
[09:31:35][    0.280383] FPGA manager framework
[09:31:35][    0.283890] Advanced Linux Sound Architecture Driver Initialized.
[09:31:35][    0.290514] clocksource: Switched to clocksource arch_sys_counter
[09:31:35][    0.296828] VFS: Disk quotas dquot_6.6.0
[09:31:35][    0.300882] VFS: Dquot-cache hash table entries: 8192 (order 0, 65536 bytes)
[09:31:35][    0.310348] Carveout Heap: Exported 512 MiB at 0x00000000c2000000
[09:31:35][    0.316581] thermal_sys: Registered thermal governor 'step_wise'
[09:31:35][    0.316582] thermal_sys: Registered thermal governor 'power_allocator'
[09:31:35][    0.323011] NET: Registered protocol family 2
[09:31:35][    0.334411] tcp_listen_portaddr_hash hash table entries: 4096 (order: 0, 65536 bytes, linear)
[09:31:35][    0.343172] TCP established hash table entries: 32768 (order: 2, 262144 bytes, linear)
[09:31:35][    0.351367] TCP bind hash table entries: 32768 (order: 3, 524288 bytes, linear)
[09:31:35][    0.359148] TCP: Hash tables configured (established 32768 bind 32768)
[09:31:35][    0.365881] UDP hash table entries: 2048 (order: 0, 65536 bytes, linear)
[09:31:35][    0.372772] UDP-Lite hash table entries: 2048 (order: 0, 65536 bytes, linear)
[09:31:35][    0.380172] NET: Registered protocol family 1
[09:31:35][    0.384911] RPC: Registered named UNIX socket transport module.
[09:31:35][    0.390961] RPC: Registered udp transport module.
[09:31:35][    0.395764] RPC: Registered tcp transport module.
[09:31:35][    0.400567] RPC: Registered tcp NFSv4.1 backchannel transport module.
[09:31:35][    0.407151] PCI: CLS 0 bytes, default 64
[09:31:35][    0.411489] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available
[09:31:35][    0.421537] Initialise system trusted keyrings
[09:31:35][    0.426161] workingset: timestamp_bits=46 max_order=16 bucket_order=0
[09:31:35][    0.434789] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[09:31:35][    0.440993] NFS: Registering the id_resolver key type
[09:31:35][    0.446163] Key type id_resolver registered
[09:31:35][    0.450433] Key type id_legacy registered
[09:31:35][    0.454529] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[09:31:35][    0.461467] 9p: Installing v9fs 9p2000 file system support
[09:31:35][    0.474313] Key type asymmetric registered
[09:31:35][    0.478526] Asymmetric key parser 'x509' registered
[09:31:35][    0.483528] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[09:31:35][    0.491086] io scheduler mq-deadline registered
[09:31:35][    0.495711] io scheduler kyber registered
[09:31:35][    0.500852] pinctrl-single 4301c000.pinmux: 94 pins, size 376
[09:31:35][    0.506926] pinctrl-single 11c000.pinmux: 173 pins, size 692
[09:31:35][    0.515025] k3-ringacc 2b800000.ringacc: Failed to get MSI domain
[09:31:35][    0.521293] k3-ringacc 3c000000.ringacc: Failed to get MSI domain
[09:31:35][    0.527626] ti-pat 31010000.pat: Found PAT Rev 1.0 with 16384 pages
[09:31:35][    0.534039] debugfs: Directory '31010000.pat' with parent 'regmap' already present!
[09:31:35][    0.542019] ti-pat 31011000.pat: Found PAT Rev 1.0 with 16384 pages
[09:31:35][    0.548435] debugfs: Directory '31011000.pat' with parent 'regmap' already present!
[09:31:35][    0.556358] ti-pat 31012000.pat: Found PAT Rev 1.0 with 16384 pages
[09:31:35][    0.562767] debugfs: Directory '31012000.pat' with parent 'regmap' already present!
[09:31:35][    0.570689] ti-pat 31013000.pat: Found PAT Rev 1.0 with 2048 pages
[09:31:35][    0.577013] debugfs: Directory '31013000.pat' with parent 'regmap' already present!
[09:31:35][    0.584937] ti-pat 31014000.pat: Found PAT Rev 1.0 with 2048 pages
[09:31:35][    0.591260] debugfs: Directory '31014000.pat' with parent 'regmap' already present!
[09:31:35][    0.600587] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
[09:31:35][    0.612471] brd: module loaded
[09:31:35][    0.618600] loop: module loaded
[09:31:35][    0.623306] libphy: Fixed MDIO Bus: probed
[09:31:35][    0.627652] tun: Universal TUN/TAP device driver, 1.6
[09:31:35][    0.633031] igbvf: Intel(R) Gigabit Virtual Function Network Driver - version 2.4.0-k
[09:31:35][    0.641037] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[09:31:35][    0.647108] sky2: driver version 1.30
[09:31:35][    0.651254] VFIO - User Level meta-driver version: 0.3
[09:31:35][    0.656850] i2c /dev entries driver
[09:31:35][    0.660683] Error: Driver 'k3-soc-thermal' is already registered, aborting...
[09:31:35][    0.668180] sdhci: Secure Digital Host Controller Interface driver
[09:31:35][    0.674494] sdhci: Copyright(c) Pierre Ossman
[09:31:35][    0.679150] sdhci-pltfm: SDHCI platform and OF driver helper
[09:31:35][    0.685337] ledtrig-cpu: registered to indicate activity on CPUs
[09:31:35][    0.692092] optee: probing for conduit method from DT.
[09:31:35][    0.697370] optee: revision 3.11 (c4def2a8)
[09:31:35][    0.697698] optee: initialized driver
[09:31:35][    0.706457] NET: Registered protocol family 17
[09:31:35][    0.711079] 9pnet: Installing 9P2000 support
[09:31:35][    0.715468] Key type dns_resolver registered
[09:31:35][    0.719965] registered taskstats version 1
[09:31:35][    0.724151] Loading compiled-in X.509 certificates
[09:31:35][    0.732047] k3-ringacc 2b800000.ringacc: Failed to get MSI domain
[09:31:35][    0.738373] k3-ringacc 3c000000.ringacc: Failed to get MSI domain
[09:31:35][    0.745998] ti-sci 44083000.dmsc: ABI: 3.1 (firmware rev 0x0014 '20.8.5-w2020.23-am64x-14-g7409e')
[09:31:35][    0.765392] random: fast init done
[09:31:35][    0.777265] ti-sci-intr bus@100000:bus@28380000:interrupt-controller2: Interrupt Router 137 domain created
[09:31:35][    0.787234] ti-sci-intr bus@100000:interrupt-controller0: Interrupt Router 131 domain created
[09:31:35][    0.796008] ti-sci-intr bus@100000:navss@30000000:interrupt-controller1: Interrupt Router 213 domain created
[09:31:35][    0.806154] ti-sci-inta 33d00000.interrupt-controller: Interrupt Aggregator domain -1 created
[09:31:36][    0.824238] k3-ringacc 2b800000.ringacc: Ring Accelerator probed rings:286, gp-rings[96,20] sci-dev-id:235
[09:31:36][    0.834128] k3-ringacc 2b800000.ringacc: dma-ring-reset-quirk: disabled
[09:31:36][    0.840887] k3-ringacc 2b800000.ringacc: RA Proxy rev. 66346100, num_proxies:64
[09:31:36][    0.849793] k3-ringacc 3c000000.ringacc: Ring Accelerator probed rings:1024, gp-rings[440,150] sci-dev-id:211
[09:31:36][    0.859948] k3-ringacc 3c000000.ringacc: dma-ring-reset-quirk: disabled
[09:31:36][    0.866714] k3-ringacc 3c000000.ringacc: RA Proxy rev. 66346100, num_proxies:64
[09:31:36][    0.874573] printk: console [ttyS2] disabled
[09:31:36][    0.878957] 2800000.serial: ttyS2 at MMIO 0x2800000 (irq = 11, base_baud = 3000000) is a 8250
[09:31:36][    0.887699] printk: console [ttyS2] enabled
[09:31:36][    0.887699] printk: console [ttyS2] enabled
[09:31:36][    0.896134] printk: bootconsole [ns16550a0] disabled
[09:31:36][    0.896134] printk: bootconsole [ns16550a0] disabled
[09:31:36][    0.906491] 2810000.serial: ttyS3 at MMIO 0x2810000 (irq = 12, base_baud = 3000000) is a 8250
[09:31:36][    0.915306] 2840000.serial: ttyS6 at MMIO 0x2840000 (irq = 13, base_baud = 3000000) is a 8250
[09:31:36][    0.924036] arm-smmu-v3 36600000.smmu: ias 48-bit, oas 48-bit (features 0x00001faf)
[09:31:36][    0.933576] arm-smmu-v3 36600000.smmu: allocated 524288 entries for cmdq
[09:31:36][    0.944028] arm-smmu-v3 36600000.smmu: allocated 524288 entries for evtq
[09:31:36][    0.951887] arm-smmu-v3 36600000.smmu: msi_domain absent - falling back to wired irqs
[09:31:36][    0.960568] cdns-ufshcd 4e84000.ufs: ufshcd_populate_vreg: Unable to find vdd-hba-supply regulator, assuming enabled
[09:31:36][    0.971084] cdns-ufshcd 4e84000.ufs: ufshcd_populate_vreg: Unable to find vcc-supply regulator, assuming enabled
[09:31:36][    0.981237] cdns-ufshcd 4e84000.ufs: ufshcd_populate_vreg: Unable to find vccq-supply regulator, assuming enabled
[09:31:36][    0.991475] cdns-ufshcd 4e84000.ufs: ufshcd_populate_vreg: Unable to find vccq2-supply regulator, assuming enabled
[09:31:36][    1.002046] scsi host0: ufshcd
[09:31:36][    1.008361] am65-cpts 310d0000.cpts: CPTS ver 0x4e8a010a, freq:200000000, add_val:4 pps:0
[09:31:36][    1.016691] value of fuse 0 is 0x2caecaad
[09:31:36][    1.020693] value of fuse 1 is 0xb6eb6bbc
[09:31:36][    1.024689] value of fuse 2 is 0x79395bed
[09:31:36][    1.028684] value of fuse 3 is 0x1978f9
[09:31:36][    1.032510] k3_bandgap_probe and count is 5
[09:31:36][    1.036682] WORKAROUND NEEDED
[09:31:36][    1.039639] The errors in adc code for -40C, 30C & 125C 150C respectively:: -19 -54 -68 0
[09:31:36][    1.047797] slope m1::-7 and const c1::-125
[09:31:36][    1.051969] slope m2::-34 and const c2::-1582
[09:31:36][    1.056316] slope m3::3 and const c3::934
[09:31:36][    1.060419] Value of CTRLMMR_WKUP_RESET_SRC_STAT Register is 0x0
[09:31:36][    1.066410] high_max is 770 and low_max is 670 and regval is 0x29e0302
[09:31:36][    1.172932] Value of WKUP_VTM_MISC_CTRL2 is 0x29e0302
[09:31:36][    1.177968] Value of WKUP_VTM_MISC_CTRL is 0x1
[09:31:36][    1.182708] mmc0: CQHCI version 5.10
[09:31:36][    1.227123] mmc0: SDHCI controller on 4f80000.sdhci [4f80000.sdhci] using ADMA 64-bit
[09:31:36][    1.240174] omap-mailbox 31f80000.mailbox: omap mailbox rev 0x66fc7100
[09:31:36][    1.246950] omap-mailbox 31f81000.mailbox: omap mailbox rev 0x66fc7100
[09:31:36][    1.253709] omap-mailbox 31f82000.mailbox: omap mailbox rev 0x66fc7100
[09:31:36][    1.260486] omap-mailbox 31f83000.mailbox: omap mailbox rev 0x66fc7100
[09:31:36][    1.267230] omap-mailbox 31f84000.mailbox: omap mailbox rev 0x66fc7100
[09:31:36][    1.274969] ti-udma 285c0000.dma-controller: Channels: 26 (tchan: 13, rchan: 13, gp-rflow: 8)
[09:31:36][    1.284990] ti-udma 31150000.dma-controller: Channels: 84 (tchan: 42, rchan: 42, gp-rflow: 16)
[09:31:36][    1.296966] spi spi4.0: setup: ignoring unsupported mode bits 200
[09:31:36][    1.322712] spi-nor spi4.0: n25q128a11 (16384 Kbytes)
[09:31:36][    1.327775] 4 fixed-partitions partitions found on MTD device 47040000.spi.0
[09:31:36][    1.334807] Creating 4 MTD partitions on "47040000.spi.0":
[09:31:36][    1.340288] 0x000000100000-0x000000600000 : "ospi.applicationA"
[09:31:36][    1.346804] 0x000000600000-0x000000b00000 : "ospi.applicationB"
[09:31:36][    1.353177] 0x000000e00000-0x000000e20000 : "ospi.ESS"
[09:31:36][    1.358734] 0x000000000000-0x000000100000 : "ospi.SBL"
[09:31:36][    1.367360] mmc1: CQHCI version 5.10
[09:31:36][    1.378659] mmc0: Command Queue Engine enabled
[09:31:36][    1.383099] mmc0: new HS200 MMC card at address 0001
[09:31:36][    1.388313] mmcblk0: mmc0:0001 G1J37E 29.6 GiB 
[09:31:36][    1.392961] mmcblk0boot0: mmc0:0001 G1J37E partition 1 31.5 MiB
[09:31:36][    1.399000] mmcblk0boot1: mmc0:0001 G1J37E partition 2 31.5 MiB
[09:31:36][    1.404989] mmcblk0rpmb: mmc0:0001 G1J37E partition 3 4.00 MiB, chardev (240:0)
[09:31:36][    1.412974] cdns-ufshcd 4e84000.ufs: link startup failed 1
[09:31:36][    1.418496] cdns-ufshcd 4e84000.ufs: UFS Host state=0
[09:31:36][    1.423548] cdns-ufshcd 4e84000.ufs: lrb in use=0x0, outstanding reqs=0x0 tasks=0x0
[09:31:36][    1.423587]  mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 p16 p17 p18 p19
[09:31:36][    1.431188] cdns-ufshcd 4e84000.ufs: saved_err=0x0, saved_uic_err=0x0
[09:31:36][    1.431190] cdns-ufshcd 4e84000.ufs: Device power mode=1, UIC link state=0
[09:31:36][    1.431192] cdns-ufshcd 4e84000.ufs: PM in progress=0, sys. suspended=0
[09:31:36][    1.459149] cdns-ufshcd 4e84000.ufs: Auto BKOPS=0, Host self-block=0
[09:31:36][    1.465489] cdns-ufshcd 4e84000.ufs: Clk gate=1
[09:31:36][    1.470009] cdns-ufshcd 4e84000.ufs: error handling flags=0x0, req. abort count=0
[09:31:36][    1.477473] cdns-ufshcd 4e84000.ufs: Host capabilities=0x1587031f, caps=0x0
[09:31:36][    1.484416] cdns-ufshcd 4e84000.ufs: quirks=0x0, dev. quirks=0x0
[09:31:36][    1.490407] cdns-ufshcd 4e84000.ufs: ufshcd_print_pwr_info:[RX, TX]: gear=[0, 0], lane[0, 0], pwr[INVALID MODE, INVALID MODE], rate = 0
[09:31:36][    1.502569] host_regs: 00000000: 1587031f 00000000 00000210 00000000
[09:31:36][    1.508907] host_regs: 00000010: 00000000 00000000 00000000 00000000
[09:31:36][    1.515245] host_regs: 00000020: 00000000 00000470 00000000 00000000
[09:31:36][    1.521581] host_regs: 00000030: 00000008 00000001 00000000 00000000
[09:31:36][    1.527918] host_regs: 00000040: 00000000 00000000 00000000 00000000
[09:31:36][    1.534255] host_regs: 00000050: 00000000 00000000 00000000 00000000
[09:31:36][    1.540594] host_regs: 00000060: 00000000 00000000 00000000 00000000
[09:31:36][    1.546931] host_regs: 00000070: 00000000 00000000 00000000 00000000
[09:31:36][    1.553268] host_regs: 00000080: 00000000 00000000 00000000 00000000
[09:31:36][    1.559604] host_regs: 00000090: 00000000 00000000 00000000 00000000
[09:31:36][    1.565942] cdns-ufshcd 4e84000.ufs: hba->ufs_version = 0x210, hba->capabilities = 0x1587031f
[09:31:36][    1.574447] cdns-ufshcd 4e84000.ufs: hba->outstanding_reqs = 0x0, hba->outstanding_tasks = 0x0
[09:31:36][    1.583041] cdns-ufshcd 4e84000.ufs: last_hibern8_exit_tstamp at 0 us, hibern8_exit_cnt = 0
[09:31:36][    1.591374] cdns-ufshcd 4e84000.ufs: No record of pa_err errors
[09:31:36][    1.597278] cdns-ufshcd 4e84000.ufs: No record of dl_err errors
[09:31:36][    1.603181] cdns-ufshcd 4e84000.ufs: No record of nl_err errors
[09:31:36][    1.609085] cdns-ufshcd 4e84000.ufs: No record of tl_err errors
[09:31:36][    1.614989] cdns-ufshcd 4e84000.ufs: No record of dme_err errors
[09:31:36][    1.620980] cdns-ufshcd 4e84000.ufs: No record of auto_hibern8_err errors
[09:31:36][    1.627750] cdns-ufshcd 4e84000.ufs: No record of fatal_err errors
[09:31:36][    1.633915] cdns-ufshcd 4e84000.ufs: link_startup_fail[0] = 0x1 at 1334463 us
[09:31:36][    1.641033] cdns-ufshcd 4e84000.ufs: No record of resume_fail errors
[09:31:36][    1.647371] cdns-ufshcd 4e84000.ufs: No record of suspend_fail errors
[09:31:36][    1.653795] cdns-ufshcd 4e84000.ufs: No record of dev_reset errors
[09:31:36][    1.659960] cdns-ufshcd 4e84000.ufs: No record of host_reset errors
[09:31:36][    1.666210] cdns-ufshcd 4e84000.ufs: No record of task_abort errors
[09:31:36][    1.672461] cdns-ufshcd 4e84000.ufs: clk: core_clk, rate: 250000000
[09:31:36][    1.678711] cdns-ufshcd 4e84000.ufs: clk: phy_clk, rate: 19200000
[09:31:36][    1.684788] cdns-ufshcd 4e84000.ufs: clk: ref_clk, rate: 19200000
[09:31:37][    2.435255] mmc1: SDHCI controller on 4fb0000.sdhci [4fb0000.sdhci] using ADMA 64-bit
[09:31:37][    2.445607] debugfs: Directory 'pd:242' with parent 'pm_genpd' already present!
[09:31:37][    2.453023] debugfs: Directory 'pd:241' with parent 'pm_genpd' already present!
[09:31:37][    2.460335] debugfs: Directory 'pd:240' with parent 'pm_genpd' already present!
[09:31:37][    2.467682] debugfs: Directory 'pd:239' with parent 'pm_genpd' already present!
[09:31:37][    2.475928] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[09:31:37][    2.483277] hctosys: unable to open rtc device (rtc0)
[09:31:37][    2.492742] ALSA device list:
[09:31:37][    2.495717]   No soundcards found.
[09:31:37][    2.503283] EXT4-fs (mmcblk0p5): INFO: recovery required on readonly filesystem
[09:31:37][    2.510630] EXT4-fs (mmcblk0p5): write access will be enabled during recovery
[09:31:37][    2.558696] EXT4-fs (mmcblk0p5): recovery complete
[09:31:37][    2.564482] EXT4-fs (mmcblk0p5): mounted filesystem with ordered data mode. Opts: (null)
[09:31:37][    2.572604] VFS: Mounted root (ext4 filesystem) readonly on device 179:5.
[09:31:37][    2.579639] devtmpfs: mounted
[09:31:37][    2.583068] Freeing unused kernel memory: 1664K
[09:31:37][    2.587615] Run /sbin/init as init process
[09:31:37]INIT: version 2.96 booting
[09:31:37][    2.679456] mmc1: new high speed SDHC card at address aaaa
[09:31:37][    2.688058] mmcblk1: mmc1:aaaa SD32G 29.7 GiB 
[09:31:37][    2.699806]  mmcblk1: p1 p2
[09:31:37][    2.711296] EXT4-fs (mmcblk0p5): re-mounted. Opts: (null)
[09:31:37]hwclock: can't open '/dev/misc/rtc': No such file or directory
[09:31:37]Sat Apr 10 00:39:16 UTC 2021
[09:31:37]hwclock: can't open '/dev/misc/rtc': No such file or directory
[09:31:38][    2.856226] random: dd: uninitialized urandom read (512 bytes read)
[09:31:38]INIT: Entering runlevel: 5
[09:31:38]Configuring network interfaces... ifconfig: SIOCGIFFLAGS: No such device
[09:31:38]done.
[09:31:38]Starting syslogd/klogd: [    2.941619] platform 41000000.r5f: R5F core may have been powered on by a different host, programmed state (0) != actual state (1)
[09:31:38]done
[09:31:38][    2.953549] platform 41000000.r5f: configured R5F for IPC-only mode
[09:31:38][    2.963578] platform 41000000.r5f: assigned reserved memory node vision-apps-r5f-dma-memory@a0000000
[09:31:38][    2.972894] remoteproc remoteproc0: 41000000.r5f is available
[09:31:38][    2.978927] platform 41400000.r5f: R5F core may have been powered on by a different host, programmed state (0) != actual state (1)
[09:31:38]
[09:31:38][    2.991528] platform 41400000.r5f: configured R5F for IPC-only mode
[09:31:38][    2.991967] remoteproc remoteproc0: Direct firmware load for j7-mcu-r5f0_0-fw failed with error -2
[09:31:38][    2.997960] platform 41400000.r5f: assigned reserved memory node vision-apps-r5f-dma-memory@a1000000
[09:31:38][    3.008488] remoteproc remoteproc0: powering up 41000000.r5f
[09:31:38][    3.016225] remoteproc remoteproc1: 41400000.r5f is available
[09:31:38][    3.021726] remoteproc remoteproc0: Direct firmware load for j7-mcu-r5f0_0-fw failed with error -2
[09:31:38][    3.027350] remoteproc remoteproc1: Direct firmware load for j7-mcu-r5f0_1-fw failed with error -2
[09:31:38][    3.036321] remoteproc remoteproc0: request_firmware failed: -2
[09:31:38][    3.046063] remoteproc remoteproc1: powering up 41400000.r5f
[09:31:38][    3.055526] platform 5c00000.r5f: R5F core may have been powered on by a different host, programmed state (0) != actual state (1)
[09:31:38][    3.056822] remoteproc remoteproc1: Direct firmware load for j7-mcu-r5f0_1-fw failed with error -2
[09:31:38][    3.069022] platform 5c00000.r5f: configured R5F for IPC-only mode
[09:31:38][    3.077375] remoteproc remoteproc1: request_firmware failed: -2
[09:31:38][    3.089924] platform 5c00000.r5f: assigned reserved memory node vision-apps-r5f-dma-memory@a2000000
[09:31:38][    3.099351] remoteproc remoteproc2: 5c00000.r5f is available
[09:31:38][    3.105206] platform 5d00000.r5f: R5F core may have been powered on by a different host, programmed state (0) != actual state (1)
[09:31:38][    3.117143] platform 5d00000.r5f: configured R5F for IPC-only mode
[09:31:38][    3.123898] platform 5d00000.r5f: assigned reserved memory node vision-apps-r5f-dma-memory@a6000000
[09:31:38][    3.134063] remoteproc remoteproc3: 5d00000.r5f is available
[09:31:38][    3.142257] platform 5e00000.r5f: R5F core may have been powered on by a different host, programmed state (0) != actual state (1)
[09:31:38][    3.155111] platform 5e00000.r5f: configured R5F for IPC-only mode
[09:31:38][    3.161394] platform 5e00000.r5f: assigned reserved memory node vision-apps-r5f-dma-memory@aa000000
[09:31:38][    3.170558] remoteproc remoteproc4: 5e00000.r5f is available
[09:31:38][    3.173478] remoteproc remoteproc3: powering up 5d00000.r5f
[09:31:38][    3.181796] platform 5f00000.r5f: R5F core may have been powered on by a different host, programmed state (0) != actual state (1)
[09:31:38][    3.194044] remoteproc remoteproc4: powering up 5e00000.r5f
[09:31:38][    3.194045] remoteproc remoteproc2: powering up 5c00000.r5f
[09:31:38][    3.194055] remoteproc remoteproc2: Booting fw image j7-main-r5f0_0-fw, size 5351832
[09:31:38][    3.199801] remoteproc remoteproc4: Booting fw image j7-main-r5f1_0-fw, size 153520
[09:31:38][    3.205685] platform 5c00000.r5f: R5F core initialized in IPC-only mode
[09:31:38][    3.213004] platform 5f00000.r5f: configured R5F for IPC-only mode
[09:31:38][    3.221015] remoteproc remoteproc3: Booting fw image j7-main-r5f0_1-fw, size 2009152
[09:31:38][    3.227383] platform 5e00000.r5f: R5F core initialized in IPC-only mode
[09:31:38][    3.233700]  remoteproc2#vdev0buffer: assigned reserved memory node vision-apps-r5f-dma-memory@a2000000
[09:31:38][    3.241238] platform 5f00000.r5f: assigned reserved memory node vision-apps-r5f-dma-memory@ac000000
[09:31:38][    3.248143] platform 5d00000.r5f: R5F core initialized in IPC-only mode
[09:31:38][    3.257209]  remoteproc4#vdev0buffer: assigned reserved memory node vision-apps-r5f-dma-memory@aa000000
[09:31:38][    3.267251] virtio_rpmsg_bus virtio0: rpmsg host is online
[09:31:38][    3.272958] remoteproc remoteproc5: 5f00000.r5f is available
[09:31:38][    3.282614]  remoteproc3#vdev0buffer: assigned reserved memory node vision-apps-r5f-dma-memory@a6000000
[09:31:38][    3.288144] virtio_rpmsg_bus virtio1: rpmsg host is online
[09:31:38][    3.293604]  remoteproc2#vdev0buffer: registered virtio0 (type 7)
[09:31:38][    3.303098]  remoteproc4#vdev0buffer: registered virtio1 (type 7)
[09:31:38][    3.309110] virtio_rpmsg_bus virtio2: rpmsg host is online
[09:31:38][    3.315017] remoteproc remoteproc4: remote processor 5e00000.r5f is now up
[09:31:38][    3.322229]  remoteproc3#vdev0buffer: registered virtio2 (type 7)
[09:31:38][    3.339532] k3-dsp-rproc 4d80800000.dsp: assigned reserved memory node vision-apps-c66-dma-memory@b2000000
[09:31:38][    3.339855] remoteproc remoteproc2: remote processor 5c00000.r5f is now up
[09:31:38][    3.349295] remoteproc remoteproc5: powering up 5f00000.r5f
[09:31:38][    3.356283] remoteproc remoteproc3: remote processor 5d00000.r5f is now up
[09:31:38][    3.361756] remoteproc remoteproc5: Booting fw image j7-main-r5f1_1-fw, size 153520
[09:31:38][    3.368641] virtio_rpmsg_bus virtio0: creating channel rpmsg_chrdev addr 0xd
[09:31:38][    3.376434] platform 5f00000.r5f: R5F core initialized in IPC-only mode
[09:31:38][    3.383584] virtio_rpmsg_bus virtio1: creating channel rpmsg_chrdev addr 0xd
[09:31:38][    3.389852] k3-dsp-rproc 4d80800000.dsp: configured DSP for IPC-only mode
[09:31:38][    3.399089] virtio_rpmsg_bus virtio2: creating channel rpmsg_chrdev addr 0xd
[09:31:38][    3.410780]  remoteproc5#vdev0buffer: assigned reserved memory node vision-apps-r5f-dma-memory@ac000000
[09:31:38][    3.411240] remoteproc remoteproc6: 4d80800000.dsp is available
[09:31:38][    3.420625] virtio_rpmsg_bus virtio3: rpmsg host is online
[09:31:38][    3.427659] virtio_rpmsg_bus virtio3: creating channel rpmsg_chrdev addr 0xd
[09:31:38][    3.432957]  remoteproc5#vdev0buffer: registered virtio3 (type 7)
[09:31:38][    3.440194] k3-dsp-rproc 4d81800000.dsp: assigned reserved memory node vision-apps-c66-dma-memory@ae000000
[09:31:38][    3.454495] remoteproc remoteproc5: remote processor 5f00000.r5f is now up
[09:31:38][    3.456049] remoteproc remoteproc6: powering up 4d80800000.dsp
[09:31:38]                                                                                                                                                                                                                                            [    3.467267] remoteproc remoteproc6: Booting fw image j7-c66_0-fw, size 1579184
[09:31:38][    3.476291] k3-dsp-rproc 4d81800000.dsp: configured DSP for IPC-only mode
[09:31:38][    3.476397] k3-dsp-rproc 4d80800000.dsp: DSP initialized in IPC-only mode
[09:31:38][    3.483180] remoteproc remoteproc7: 4d81800000.dsp is available
[09:31:38][    3.489899]  remoteproc6#vdev0buffer: assigned reserved memory node vision-apps-c66-dma-memory@b2000000
[09:31:38][    3.505797] k3-dsp-rproc 64800000.dsp: assigned reserved memory node vision-apps-c71-dma-memory@b6000000
[09:31:38][    3.505867] virtio_rpmsg_bus virtio4: rpmsg host is online
[09:31:38][    3.520859] remoteproc remoteproc7: powering up 4d81800000.dsp
[09:31:38][    3.520871]  remoteproc6#vdev0buffer: registered virtio4 (type 7)
[09:31:38][    3.532773] remoteproc remoteproc7: Booting fw image j7-c66_1-fw, size 1579184
[09:31:38][    3.532775] remoteproc remoteproc6: remote processor 4d80800000.dsp is now up
[09:31:38][    3.547274] k3-dsp-rproc 64800000.dsp: configured DSP for IPC-only mode
[09:31:38][    3.547320] remoteproc remoteproc8: 64800000.dsp is available
[09:31:38][    3.554698] virtio_rpmsg_bus virtio4: creating channel rpmsg_chrdev addr 0xd
[09:31:38][    3.559809] k3-dsp-rproc 4d81800000.dsp: DSP initialized in IPC-only mode
[09:31:38]-sh: [    3.573868]  remoteproc7#vdev0buffer: assigned reserved memory node vision-apps-c66-dma-memory@ae000000
[09:31:38]:umask: not found
[09:31:38]root@j7-evm:~# [    3.585525] virtio_rpmsg_bus virtio5: rpmsg host is online
[09:31:38][    3.589170] virtio_rpmsg_bus virtio5: creating channel rpmsg_chrdev addr 0xd
[09:31:38][    3.591863]  remoteproc7#vdev0buffer: registered virtio5 (type 7)
[09:31:38][    3.604679] pvrsrvkm: loading out-of-tree module taints kernel.
[09:31:38][    3.604877] remoteproc remoteproc7: remote processor 4d81800000.dsp is now up
[09:31:38][    3.631775] PVR_K:  264: Read BVNC 22.104.208.318 from HW device registers
[09:31:38][    3.639086] PVR_K:  264: RGX Device registered with BVNC 22.104.208.318
[09:31:38][    3.646784] [drm] Initialized pvr 1.13.5776728 20170530 for 4e20000000.gpu on minor 0
[09:31:38][    3.714855] remoteproc remoteproc8: powering up 64800000.dsp
[09:31:38][    3.720535] remoteproc remoteproc8: Booting fw image j7-c71_0-fw, size 10277016
[09:31:38][    3.728073] k3-dsp-rproc 64800000.dsp: DSP initialized in IPC-only mode
[09:31:38][    3.734720]  remoteproc8#vdev0buffer: assigned reserved memory node vision-apps-c71-dma-memory@b6000000
[09:31:38][    3.744587] virtio_rpmsg_bus virtio6: rpmsg host is online
[09:31:38][    3.744756] usbcore: registered new interface driver usbfs
[09:31:38][    3.750106]  remoteproc8#vdev0buffer: registered virtio6 (type 7)
[09:31:38][    3.755590] virtio_rpmsg_bus virtio6: creating channel rpmsg_chrdev addr 0xd
[09:31:38][    3.761656] remoteproc remoteproc8: remote processor 64800000.dsp is now up
[09:31:38][    3.761864] usbcore: registered new interface driver hub
[09:31:38][    3.768866] virtio_rpmsg_bus virtio1: creating channel rpmsg_chrdev addr 0x15
[09:31:38][    3.776088] usbcore: registered new device driver usb
[09:31:38][    3.781064] virtio_rpmsg_bus virtio6: creating channel rpmsg_chrdev addr 0x15
[09:31:38][    3.800509] virtio_rpmsg_bus virtio3: creating channel rpmsg_chrdev addr 0x15
[09:31:38][    3.807804] virtio_rpmsg_bus virtio6: creating channel ti.ipc4.ping-pong addr 0xe
[09:31:38][    3.815426] virtio_rpmsg_bus virtio3: creating channel ti.ipc4.ping-pong addr 0xe
[09:31:38][    3.823109] virtio_rpmsg_bus virtio4: creating channel rpmsg_chrdev addr 0x15
[09:31:39][    3.830464] virtio_rpmsg_bus virtio4: creating channel ti.ipc4.ping-pong addr 0xe
[09:31:39][    3.838054] virtio_rpmsg_bus virtio5: creating channel rpmsg_chrdev addr 0x15
[09:31:39][    3.845489] virtio_rpmsg_bus virtio5: creating channel ti.ipc4.ping-pong addr 0xe
[09:31:39][    3.853111] virtio_rpmsg_bus virtio0: creating channel rpmsg_chrdev addr 0x15
[09:31:39][    3.860440] virtio_rpmsg_bus virtio2: creating channel rpmsg_chrdev addr 0x15
[09:31:39][    3.867783] virtio_rpmsg_bus virtio2: creating channel ti.ipc4.ping-pong addr 0xe
[09:31:39][    3.882565] cdns-usb3 6000000.usb: DRD version v1 (ID: 0004024e, rev: 00000200)
[09:31:39][    3.890147] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[09:31:39][    3.895644] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[09:31:39][    3.903707] xhci-hcd xhci-hcd.0.auto: hcc params 0x200073c9 hci version 0x100 quirks 0x0000000000010010
[09:31:39][    3.913103] xhci-hcd xhci-hcd.0.auto: irq 575, io mem 0x06010000
[09:31:39][    3.915065] virtio_rpmsg_bus virtio0: creating channel ti.ethfw.notifyservice addr 0x1e
[09:31:39][    3.919240] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[09:31:39][    3.927190] virtio_rpmsg_bus virtio0: creating channel rpmsg-kdrv addr 0x1a
[09:31:39][    3.935387] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[09:31:39][    3.942780] rpmsg-kdrv-eth-switch rpmsg-kdrv-2-mpu_1_0_ethswitch-device-0: Device info: permissions: 07FFFFFF uart_id: 2
[09:31:39][    3.949494] usb usb1: Product: xHCI Host Controller
[09:31:39][    3.949496] usb usb1: Manufacturer: Linux 5.4.106-g023faefa70 xhci-hcd
[09:31:39][    3.960612] rpmsg-kdrv-eth-switch rpmsg-kdrv-2-mpu_1_0_ethswitch-device-0: FW ver 0.1 (rev 1) 21/Nov/2022 SHA:
[09:31:39][    3.965277] usb usb1: SerialNumber: xhci-hcd.0.auto
[09:31:39][    3.982727] j721e-cpsw-virt-mac main_r5fss_cpsw9g_virt_mac0: virt_cpsw_nuss mac loaded
[09:31:39][    3.986825] hub 1-0:1.0: USB hub found
[09:31:39][    3.994484] j721e-cpsw-virt-mac main_r5fss_cpsw9g_virt_mac0: rdev_features:00000003 rdev_mtu:1522 flow_id:172 tx_psil_dst_id:4A00
[09:31:39][    3.994488] j721e-cpsw-virt-mac main_r5fss_cpsw9g_virt_mac0: local_mac_addr:16:c7:44:1c:a2:02 rdev_mac_addr:70:ff:76:1d:92:c1
[09:31:39][    3.998249] hub 1-0:1.0: 1 port detected
[09:31:39][    4.025679] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[09:31:39][    4.031332] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[09:31:39][    4.039036] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
[09:31:39][    4.045583] virtio_rpmsg_bus virtio0: creating channel ti.ipc4.ping-pong addr 0xe
[09:31:39][    4.053084] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[09:31:39][    4.061254] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.04
[09:31:39][    4.069504] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[09:31:39][    4.076710] usb usb2: Product: xHCI Host Controller
[09:31:39][    4.081578] usb usb2: Manufacturer: Linux 5.4.106-g023faefa70 xhci-hcd
[09:31:39][    4.088089] usb usb2: SerialNumber: xhci-hcd.0.auto
[09:31:39][    4.093135] hub 2-0:1.0: USB hub found
[09:31:39][    4.096888] hub 2-0:1.0: 1 port detected
[09:31:39][    4.107333] usbcore: registered new interface driver cp210x
[09:31:39][    4.112917] usbserial: USB Serial support registered for cp210x
[09:31:39][    4.125714] 8021q: 802.1Q VLAN Support v1.8
[09:31:39][    4.150039] j721e-cpsw-virt-mac main_r5fss_cpsw9g_virt_mac0: virt_cpsw_nuss mac started
[09:31:39][    4.160032] j721e-cpsw-virt-mac main_r5fss_cpsw9g_virt_mac0: register_ipv4 rpmsg - fail -5
[09:31:39]Thu Jan  1 01:00:01 UTC 1970[    4.171563] j721e-cpsw-virt-mac main_r5fss_cpsw9g_virt_mac0: register_ipv4 rpmsg - fail -5
[09:31:39]
[09:31:39][    4.249507] NET: Registered protocol family 10
[09:31:39][    4.254440] Segment Routing with IPv6
[09:31:39]ntp start test!!
[09:31:39]Thu Jan  1 01:00:01 UTC 1970
[09:31:39][    4.756896] virtio_rpmsg_bus virtio1: creating channel ti.ipc4.ping-pong addr 0xe
[09:31:47] 1 Jan 01:00:09 ntpdate[301]: no server suitable for synchronization found
[09:31:47]ntp end test!!
[09:31:47]Thu Jan  1 01:00:09 UTC 1970
[09:31:47]create /dev/shm
[09:31:47]SYS_PARTITION=A
[09:31:47][   12.419704] EXT4-fs (mmcblk0p7): recovery complete
[09:31:47][   12.424509] EXT4-fs (mmcblk0p7): mounted filesystem with ordered data mode. Opts: (null)
[09:31:47][   12.436015] EXT4-fs (mmcblk0p8): recovery complete
[09:31:47][   12.440807] EXT4-fs (mmcblk0p8): mounted filesystem with ordered data mode. Opts: (null)
[09:31:47][   12.452184] EXT4-fs (mmcblk0p9): recovery complete
[09:31:47][   12.456981] EXT4-fs (mmcblk0p9): mounted filesystem with ordered data mode. Opts: (null)
[09:31:47][   12.487087] EXT4-fs (mmcblk0p10): recovery complete
[09:31:47][   12.491974] EXT4-fs (mmcblk0p10): mounted filesystem with ordered data mode. Opts: (null)
[09:31:47][   12.503130] EXT4-fs (mmcblk0p11): recovery complete
[09:31:47][   12.508102] EXT4-fs (mmcblk0p11): mounted filesystem with ordered data mode. Opts: (null)
[09:31:47][   12.519298] EXT4-fs (mmcblk0p17): recovery complete
[09:31:47][   12.524187] EXT4-fs (mmcblk0p17): mounted filesystem with ordered data mode. Opts: (null)
[09:31:47][   12.535043] EXT4-fs (mmcblk0p19): mounted filesystem with ordered data mode. Opts: (null)
[09:31:47]route: SIOCADDRT: Network is unreachable
[09:31:47]route: SIOCADDRT: Network is unreachable
[09:31:55] 1 Jan 01:00:17 ntpdate[309]: no server suitable for synchronization found
[09:31:59]
[09:32:00]root@j7-evm:~# 
[09:32:00]root@j7-evm:~# 
[09:32:22]root@j7-evm:~# devmem2 0x0c03e054
[09:32:22]/dev/mem opened.
[09:32:22]Memory mapped at address 0xffff80710000.
[09:32:22]Read at address  0x0C03E054 (0xffff8071e054): 0x00000000
[09:32:39]root@j7-evm:~# ping 10.179.4.4
[09:32:39]PING 10.179.4.4 (10.179.4.4): 56 data bytes
[09:32:39]ping: sendto: Network is unreachable
[09:32:45]root@j7-evm:~# ifconfig eth0 10.179.4.56
[09:32:45][   70.739496] j721e-cpsw-virt-mac main_r5fss_cpsw9g_virt_mac0: unregister_ipv4 rpmsg - fail -5
[09:32:45][   70.748479] j721e-cpsw-virt-mac main_r5fss_cpsw9g_virt_mac0: register_ipv4 rpmsg - fail -5
[09:32:47]root@j7-evm:~# ping 10.179.4.4
[09:32:47]PING 10.179.4.4 (10.179.4.4): 56 data bytes
[09:32:47]64 bytes from 10.179.4.4: seq=0 ttl=64 time=0.271 ms
[09:32:48]64 bytes from 10.179.4.4: seq=1 ttl=64 time=0.126 ms
[09:32:49]64 bytes from 10.179.4.4: seq=2 ttl=64 time=0.127 ms
[09:32:50]64 bytes from 10.179.4.4: seq=3 ttl=64 time=0.122 ms
[09:32:51]64 bytes from 10.179.4.4: seq=4 ttl=64 time=0.123 ms
[09:32:52]64 bytes from 10.179.4.4: seq=5 ttl=64 time=0.134 ms
[09:32:53]64 bytes from 10.179.4.4: seq=6 ttl=64 time=0.121 ms
[09:32:53]^C
[09:32:53]--- 10.179.4.4 ping statistics ---
[09:32:53]7 packets transmitted, 7 packets received, 0% packet loss
[09:32:53]round-trip min/avg/max = 0.121/0.146/0.271 ms
[09:33:03]root@j7-evm:~# devmem2 0x0c03e048 1 Jan 01:01:25 ntpdate[361]: no server suitable for synchronization found
[09:33:07] w 0
[09:33:07]/dev/mem opened.
[09:33:07]Memory mapped at address 0xffff8c760000.
[09:33:07]Read at address  0x0C03E048 (0xffff8c76e048): 0x00000003
[09:33:07]Write at address 0x0C03E048 (0xffff8c76e048): 0x00000000, readback 0x00000000
[09:33:16]root@j7-evm:~# ping 10.179.4.4
[09:33:16]PING 10.179.4.4 (10.179.4.4): 56 data bytes
[09:33:17]^C
[09:33:17]--- 10.179.4.4 ping statistics ---
[09:33:17]2 packets transmitted, 0 packets received, 100% packet loss
[09:33:28]root@j7-evm:~# devmem2 0x0c03e054 
[09:33:28]/dev/mem opened.
[09:33:28]Memory mapped at address 0xffffb63f0000.
[09:33:28]Read at address  0x0C03E054 (0xffffb63fe054): 0x00000000
[09:33:33]root@j7-evm:~# devmem2 0x0c03e054 w 3
[09:33:33]/dev/mem opened.
[09:33:33]Memory mapped at address 0xffff989d0000.
[09:33:33]Read at address  0x0C03E054 (0xffff989de054): 0x00000000
[09:33:33]Write at address 0x0C03E054 (0xffff989de054): 0x00000003, readback 0x00000003
[09:33:35]root@j7-evm:~# ping 10.179.4.4
[09:33:35]PING 10.179.4.4 (10.179.4.4): 56 data bytes
[09:34:11] 1 Jan 01:02:33 ntpdate[369]: no server suitable for synchronization found
[09:35:07][  212.014511] ------------[ cut here ]------------
[09:35:07][  212.019125] NETDEV WATCHDOG: eth0 (j721e-cpsw-virt-mac): transmit queue 0 timed out
[09:35:07][  212.026799] WARNING: CPU: 1 PID: 0 at net/sched/sch_generic.c:447 dev_watchdog+0x2ec/0x2f8
[09:35:07][  212.035040] Modules linked in: ipv6 gpio_gps(O) ft_spinlock(O) ft_memdev(O) 8021q garp stp mrp llc cp210x usbserial cdns3_ti cdns3 roles udc_core xhci_plat_hcd xhci_hcd usbcore usb_common ti_j721e_cpsw_virt_mac rpmsg_kdrv_switch rpmsg_char pvrsrvkm(O) ti_k3_dsp_remoteproc ti_k3_r5_remoteproc virtio_rpmsg_bus
[09:35:07][  212.062285] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G           O      5.4.106-g023faefa70 #1
[09:35:07][  212.070698] Hardware name: Texas Instruments K3 J721E SoC (DT)
[09:35:07][  212.076512] pstate: 20000005 (nzCv daif -PAN -UAO)
[09:35:07][  212.081286] pc : dev_watchdog+0x2ec/0x2f8
[09:35:07][  212.085280] lr : dev_watchdog+0x2ec/0x2f8
[09:35:07][  212.089272] sp : ffff80001002fdb0
[09:35:07][  212.092572] x29: ffff80001002fdb0 x28: ffff000807c45680 
[09:35:07][  212.097866] x27: 0000000000000004 x26: 0000000000000140 
[09:35:07][  212.103160] x25: 00000000ffffffff x24: 0000000000000001 
[09:35:07][  212.108454] x23: ffff00080cb2341c x22: ffff00080cb23000 
[09:35:07][  212.113748] x21: ffff00080cb23440 x20: ffff800010ff1000 
[09:35:07][  212.119042] x19: 0000000000000000 x18: 0000000000000010 
[09:35:07][  212.124336] x17: 0000000000000000 x16: 0000000000000000 
[09:35:07][  212.129630] x15: ffff000807d79f28 x14: 6974203020657565 
[09:35:07][  212.134924] x13: 75712074696d736e x12: 617274203a296361 
[09:35:07][  212.140218] x11: 6d2d747269762d77 x10: 7370632d65313237 
[09:35:07][  212.145511] x9 : 6a28203068746520 x8 : ffff8000110c7000 
[09:35:07][  212.150804] x7 : ffff800010594898 x6 : 000000000000020a 
[09:35:07][  212.156098] x5 : 0000000000000000 x4 : 0000000000000002 
[09:35:07][  212.161392] x3 : ffff800010a20e88 x2 : 0000000000000100 
[09:35:07][  212.166686] x1 : b2f2d4bf08dfc800 x0 : 0000000000000000 
[09:35:07][  212.171980] Call trace:
[09:35:07][  212.174415]  dev_watchdog+0x2ec/0x2f8
[09:35:07][  212.178066]  call_timer_fn.isra.0+0x20/0x78
[09:35:07][  212.182232]  run_timer_softirq+0x1a0/0x408
[09:35:07][  212.186314]  __do_softirq+0x120/0x25c
[09:35:07][  212.189961]  irq_exit+0xb8/0xd8
[09:35:07][  212.193089]  __handle_domain_irq+0x64/0xb8
[09:35:07][  212.197170]  gic_handle_irq+0x5c/0x148
[09:35:07][  212.200902]  el1_irq+0xb8/0x180
[09:35:07][  212.204031]  arch_cpu_idle+0x10/0x18
[09:35:07][  212.207593]  do_idle+0xc0/0x140
[09:35:07][  212.210719]  cpu_startup_entry+0x20/0x68
[09:35:07][  212.214627]  secondary_start_kernel+0x160/0x188
[09:35:07][  212.219141] ---[ end trace d9b2dbe8db550b21 ]---
[09:35:07][  212.223752] j721e-cpsw-virt-mac main_r5fss_cpsw9g_virt_mac0 eth0: txq:0 DRV_XOFF:0 tmo:9188 dql_avail:-36 free_desc:510
[09:35:13][  217.902521] j721e-cpsw-virt-mac main_r5fss_cpsw9g_virt_mac0 eth0: txq:0 DRV_XOFF:0 tmo:14868 dql_avail:-36 free_desc:510
[09:35:18][  223.022516] j721e-cpsw-virt-mac main_r5fss_cpsw9g_virt_mac0 eth0: txq:0 DRV_XOFF:0 tmo:19988 dql_avail:-36 free_desc:510
[09:35:20] 1 Jan 01:03:41 ntpdate[372]: no server suitable for synchronization found
[09:35:23][  227.886520] j721e-cpsw-virt-mac main_r5fss_cpsw9g_virt_mac0 eth0: txq:0 DRV_XOFF:0 tmo:24852 dql_avail:-36 free_desc:510
[09:35:28][  233.006518] j721e-cpsw-virt-mac main_r5fss_cpsw9g_virt_mac0 eth0: txq:0 DRV_XOFF:0 tmo:29972 dql_avail:-36 free_desc:510
[09:35:33][  238.126514] j721e-cpsw-virt-mac main_r5fss_cpsw9g_virt_mac0 eth0: txq:0 DRV_XOFF:0 tmo:35092 dql_avail:-36 free_desc:510
[09:35:38][  242.990515] j721e-cpsw-virt-mac main_r5fss_cpsw9g_virt_mac0 eth0: txq:0 DRV_XOFF:0 tmo:39956 dql_avail:-36 free_desc:510
[09:35:43][  248.110515] j721e-cpsw-virt-mac main_r5fss_cpsw9g_virt_mac0 eth0: txq:0 DRV_XOFF:0 tmo:45076 dql_avail:-36 free_desc:510
[09:35:48][  252.974517] j721e-cpsw-virt-mac main_r5fss_cpsw9g_virt_mac0 eth0: txq:0 DRV_XOFF:0 tmo:49940 dql_avail:-36 free_desc:510
For example, We want to dynamically enable or disable port2, port3 and port4 ,

we changed the state of the following register

  • Hi,

    First of all, to diable the ports, CPSW_Iy_ALE_PORTCTL0_y should not be used. This register is used by ALE to assist with the forwarding logic and should not be modified on the fly. 

    The correct way to do this would be to send a request to ethfw to do a reset on a MAC port. The sequence to do this from ethfw would be following : 

    This is taken from the TDA4VM TRM.

    I will check and confirm if we can issue a MAC port reset in ethfw from linux.

    Regards,
    Tanmay

  • Hi,

    I will check and confirm if we can issue a MAC port reset in ethfw from linux.

    This is not supported. This is because in a switch network, we cannot just reset a port from one of the end devices as we don't know who else would be using the network.

    Also, apart from this, It would be a significant effort to port this to SDK 7.3.

    Can you please elaborate on what would be the root cause of your requirement for this feature. Will it be used as a fail-safe or recovery mechanism or will it be used in application?

    Regards,
    Tanmay

  • Thanks for your help, we tried but couldn't recovery the network when it crashed.

    This is a requirement to test the network hardware