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.

AM62P-Q1: The camera capture driver crashes

Part Number: AM62P-Q1

Tool/software:

1、We used the ads6311 camera to capture the stream and found that the driver crashed,A video device has been generated

root@am62pxx-evm:/# ls /dev/video*
/dev/video0  /dev/video1  /dev/video2  /dev/video3  /dev/video4  /dev/video5

2、log

 v4l2-ctl -d/dev/video0 --set-fmt-video=width=640,height=480, --stream-mmap=3 --stream-skip=3 --stream-to=/tmp/yuv.bin --stream-count=1 --stream-poll
[   27.464375] ---- S_CLOSE  from v4l_id (1174:1174) on CPU 2
[   35.384366] client: v4l2-ctl (1177:1177) is running on CPU 1, pad: 0, name:m00_dToF_ads6311 spi0.0, fd: 000000009e91642b
[   35.389891] num_routes: 4, source_pad: 0, source_stream: 0
[   35.400761] num_entries: 0, w*h: 480 * 128, code: 0x3008, bpp: 16
[   35.406246] num_routes: 4, source_pad: 0, source_stream: 1
[   35.412333] num_entries: 1, w*h: 480 * 128, code: 0x3008, bpp: 16
[   35.417813] num_routes: 4, source_pad: 0, source_stream: 2
[   35.423901] num_entries: 2, w*h: 40 * 1, code: 0x3001, bpp: 8
[   35.429386] num_routes: 4, source_pad: 0, source_stream: 3
[   35.435126] num_entries: 3, w*h: 40 * 1, code: 0x3001, bpp: 8
[   35.440623] Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: ti_csi2rx_get_vc+0x124/0x124
[   35.456763] CPU: 1 PID: 1177 Comm: v4l2-ctl Not tainted 6.6.32 #16
[   35.462928] Hardware name: Texas Instruments AM62P5 SK (DT)
[   35.468485] Call trace:
[   35.470921]  dump_backtrace+0x90/0xe8
[   35.474578]  show_stack+0x18/0x24
[   35.477886]  dump_stack_lvl+0x48/0x60
[   35.481540]  dump_stack+0x18/0x24
[   35.484843]  panic+0x31c/0x378
[   35.487891]  __ktime_get_real_seconds+0x0/0xc
[   35.492238]  _ti_csi2rx_sd_set_routing+0x0/0xb8
[   35.496759]  ti_csi2rx_start_streaming+0x120/0x298
[   35.501543] SMP: stopping secondary CPUs
[   35.505459] Kernel Offset: disabled
[   35.508935] CPU features: 0x0,00000008,00020000,1000420b
[   35.514232] Memory Limit: none
[   35.517277] ---[ end Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: ti_csi2rx_get_vc+0x124/0x124 ]---

root@am62pxx-evm:/home/root# media-ctl -p
Media controller API version 6.6.32
[   50.610005] ---- S_CLOSE  from v4l_id (1176:1176) on CPU 2

Media device information
------------------------
driver    [   52.308209] client: media-ctl (1178:1178) is running on CPU 1
      j721e-csi2rx
model           TI-CSI2RX
[   52.316359] ---- S_OPEN  from media-ctl (1178:1178) on CPU 1

bus info        platform:30102000.ticsi2rx
hw revision     0x1
driver version  6.6.32

Device topology
- entity 1: 30102000.ticsi2rx (7 pads, 7 links, 1 route)
            type V4L2 subdev subtype Unknown flags 0
            device node name /dev/v4l-subdev0
        routes:
                0/0 -> 1/0 [ACTIVE]
        pad0: Sink
                [stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                <- "cdns_csi2rx.30101000.csi-bridge":1 [ENABLED,IMMUTABLE]
        pad1: Source
                [stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                -> "30102000.ticsi2rx context 0":0 [ENABLED,IMMUTABLE]
        pad2: Source
                -> "30102000.ticsi2rx context 1":0 [ENABLED,IMMUTABLE]
        pad3: Source
                -> "30102000.ticsi2rx context 2":0 [ENABLED,IMMUTABLE]
        pad4: Source
                -> "30102000.ticsi2rx context 3":0 [ENABLED,IMMUTABLE]
        pad5: Source
                -> "30102000.ticsi2rx context 4":0 [ENABLED,IMMUTABLE]
        pad6: Source
                -> "30102000.ticsi2rx context 5":0 [ENABLED,IMMUTABLE]

- entity 9: cdns_csi2rx.30101000.csi-bridge (5 pads, 2 links, 1 route)
            type V4L2 subdev subtype Unknown flags 0
            device node name /dev/v4l-subdev1
        routes:
                0/0 -> 1/0 [ACTIVE]
        pad0: Sink
                [stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                <- "m00_dToF_ads6311 spi0.0":0 [ENABLED,IMMUTABLE]
        pad1: Source
                [stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                -> "30102000.ticsi2rx":0 [ENABLED,IMMUTABLE]
        pad2: Source
        pad3: Source
        pad4: Source

- entity 15: m00_dToF_ads6311 spi0.0 (1 pad, 1 link, 4 routes)
             type V4L2 subdev subtype Sensor flags 0
             device node name /dev/v4l-subdev2
        routes:
                0/0 -> 0/0 [ACTIVE]
                0/0 -> 0/1 [ACTIVE]
                0/0 -> 0/2 [ACTIVE]
                0/0 -> 0/3 [ACTIVE]
        pad0: Source
                -> "cdns_csi2rx.30101000.csi-bridge":0 [ENABLED,IMMUTABLE]

- entity 21: 30102000.ticsi2rx context 0 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video0
        pad0: Sink
                <- "30102000.ticsi2rx":1 [ENABLED,IMMUTABLE]

- entity 27: 30102000.ticsi2rx context 1 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video1
        pad0: Sink
                <- "30102000.ticsi2rx":2 [ENABLED,IMMUTABLE]

- entity 33: 30102000.ticsi2rx context 2 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video2
        pad0: Sink
                <- "30102000.ticsi2rx":3 [ENABLED,IMMUTABLE]

- entity 39: 30102000.ticsi2rx context 3 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video3
        pad0: Sink
                <- "30102000.ticsi2rx":4 [ENABLED,IMMUTABLE]

- entity 45: 30102000.ticsi2rx context 4 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video4
        pad0: Sink
                <- "30102000.ticsi2rx":5 [ENABLED,IMMUTABLE]

- entity 51: 30102000.ticsi2rx context 5 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video5
        pad0: Sink
                <- "30102000.ticsi2rx":6 [ENABLED,IMMUTABLE]

4、dmesg

root@am62pxx-evm:/home/root# dmesg
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 6.6.32 (cd7475193@8ecd21008a44) (aarch64-oe-linux-gcc (GCC) 11.4.0, GNU ld (GNU Binutils) 2.38.20220708) #16 SMP PREEMPT Mon Nov 11 08:30:06 UTC 2024
[    0.000000] KASLR disabled due to lack of seed
[    0.000000] Machine model: Texas Instruments AM62P5 SK
[    0.000000] earlycon: ns16550a0 at MMIO32 0x0000000002800000 (options '')
[    0.000000] printk: bootconsole [ns16550a0] enabled
[    0.000000] efi: UEFI not found.
[    0.000000] Reserved memory: created CMA memory pool at 0x00000009dc000000, size 576 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] OF: reserved mem: 0x00000009dc000000..0x00000009ffffffff (589824 KiB) map reusable linux,cma
[    0.000000] Reserved memory: created DMA memory pool at 0x000000009b500000, size 3 MiB
[    0.000000] OF: reserved mem: initialized node rtos-ipc-memory@9b500000, compatible id shared-dma-pool
[    0.000000] OF: reserved mem: 0x000000009b500000..0x000000009b7fffff (3072 KiB) nomap non-reusable rtos-ipc-memory@9b500000
[    0.000000] Reserved memory: created DMA memory pool at 0x000000009b800000, size 1 MiB
[    0.000000] OF: reserved mem: initialized node mcu-r5fss-dma-memory-region@9b800000, compatible id shared-dma-pool
[    0.000000] OF: reserved mem: 0x000000009b800000..0x000000009b8fffff (1024 KiB) nomap non-reusable mcu-r5fss-dma-memory-region@9b800000
[    0.000000] Reserved memory: created DMA memory pool at 0x000000009b900000, size 15 MiB
[    0.000000] OF: reserved mem: initialized node mcu-r5fss-memory-region@9b900000, compatible id shared-dma-pool
[    0.000000] OF: reserved mem: 0x000000009b900000..0x000000009c7fffff (15360 KiB) nomap non-reusable mcu-r5fss-memory-region@9b900000
[    0.000000] Reserved memory: created DMA memory pool at 0x000000009c800000, size 1 MiB
[    0.000000] OF: reserved mem: initialized node r5f-dma-memory@9c800000, compatible id shared-dma-pool
[    0.000000] OF: reserved mem: 0x000000009c800000..0x000000009c8fffff (1024 KiB) nomap non-reusable r5f-dma-memory@9c800000
[    0.000000] Reserved memory: created DMA memory pool at 0x000000009c900000, size 30 MiB
[    0.000000] OF: reserved mem: initialized node r5f-memory@9c900000, compatible id shared-dma-pool
[    0.000000] OF: reserved mem: 0x000000009c900000..0x000000009e6fffff (30720 KiB) nomap non-reusable r5f-memory@9c900000
[    0.000000] OF: reserved mem: 0x000000009e780000..0x000000009e7fffff (512 KiB) nomap non-reusable tfa@9e780000
[    0.000000] OF: reserved mem: 0x000000009e800000..0x000000009fffffff (24576 KiB) nomap non-reusable optee@9e800000
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000080000000-0x00000000ffffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   [mem 0x0000000100000000-0x00000009ffffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000080000000-0x000000009b4fffff]
[    0.000000]   node   0: [mem 0x000000009b500000-0x000000009e6fffff]
[    0.000000]   node   0: [mem 0x000000009e700000-0x000000009e77ffff]
[    0.000000]   node   0: [mem 0x000000009e780000-0x000000009fffffff]
[    0.000000]   node   0: [mem 0x00000000a0000000-0x00000000ffffffff]
[    0.000000]   node   0: [mem 0x0000000880000000-0x00000009ffffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000009ffffffff]
[    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: Trusted OS migration not required
[    0.000000] psci: SMC Calling Convention v1.4
[    0.000000] percpu: Embedded 20 pages/cpu s42920 r8192 d30808 u81920
[    0.000000] pcpu-alloc: s42920 r8192 d30808 u81920 alloc=20*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: GIC system register CPU interface
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] alternatives: applying boot alternatives
[    0.000000] Kernel command line: console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 root=PARTUUID=5a09f541-02 rw rootfstype=ext4 rootwait init=/home/root/init-byd.sh
[    0.000000] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes, linear)
[    0.000000] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 2064384
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: area num 4.
[    0.000000] software IO TLB: mapped [mem 0x00000000fbfff000-0x00000000fffff000] (64MB)
[    0.000000] Memory: 7474744K/8388608K available (12416K kernel code, 1272K rwdata, 4232K rodata, 2496K init, 509K bss, 324040K reserved, 589824K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, 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=4.
[    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=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[    0.000000] GICv3: 256 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:0x0000000001880000
[    0.000000] ITS [mem 0x01820000-0x0182ffff]
[    0.000000] GIC: enabling workaround for ITS: Socionext Synquacer pre-ITS
[    0.000000] ITS@0x0000000001820000: Devices Table too large, reduce ids 20->19
[    0.000000] ITS@0x0000000001820000: allocated 524288 Devices @880800000 (flat, esz 8, psz 64K, shr 0)
[    0.000000] ITS: using cache flushing for cmd queue
[    0.000000] GICv3: using LPI property table @0x0000000880040000
[    0.000000] GIC: using cache flushing for LPI property table
[    0.000000] GICv3: CPU0: using allocated LPI pending table @0x0000000880050000
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] arch_timer: cp15 timer(s) running at 200.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0x3ffffffffffffff max_cycles: 0x2e2049d3e8, max_idle_ns: 440795210634 ns
[    0.000000] sched_clock: 58 bits at 200MHz, resolution 5ns, wraps every 4398046511102ns
[    0.008552] Console: colour dummy device 80x25
[    0.013142] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=800000)
[    0.023814] pid_max: default: 32768 minimum: 301
[    0.028613] LSM: initializing lsm=capability,integrity
[    0.033973] Mount-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.041734] Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.051541] RCU Tasks: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[    0.058838] RCU Tasks Trace: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[    0.066746] rcu: Hierarchical SRCU implementation.
[    0.071646] rcu:     Max phase no-delay instances is 1000.
[    0.077220] Platform MSI: msi-controller@1820000 domain created
[    0.083498] PCI/MSI: /bus@f0000/interrupt-controller@1800000/msi-controller@1820000 domain created
[    0.092935] EFI services will not be available.
[    0.097799] smp: Bringing up secondary CPUs ...
[    0.103019] Detected VIPT I-cache on CPU1
[    0.103089] GICv3: CPU1: found redistributor 1 region 0:0x00000000018a0000
[    0.103104] GICv3: CPU1: using allocated LPI pending table @0x0000000880060000
[    0.103151] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.103798] Detected VIPT I-cache on CPU2
[    0.103854] GICv3: CPU2: found redistributor 2 region 0:0x00000000018c0000
[    0.103867] GICv3: CPU2: using allocated LPI pending table @0x0000000880070000
[    0.103900] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.104467] Detected VIPT I-cache on CPU3
[    0.104515] GICv3: CPU3: found redistributor 3 region 0:0x00000000018e0000
[    0.104528] GICv3: CPU3: using allocated LPI pending table @0x0000000880080000
[    0.104557] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.104629] smp: Brought up 1 node, 4 CPUs
[    0.184278] SMP: Total of 4 processors activated.
[    0.189086] CPU features: detected: 32-bit EL0 Support
[    0.194351] CPU features: detected: CRC32 instructions
[    0.199657] CPU: All CPU(s) started at EL2
[    0.203851] alternatives: applying system-wide alternatives
[    0.211135] devtmpfs: initialized
[    0.225344] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.235343] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.256510] pinctrl core: initialized pinctrl subsystem
[    0.262341] DMI not present or invalid.
[    0.266872] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.273813] DMA: preallocated 1024 KiB GFP_KERNEL pool for atomic allocations
[    0.281255] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.289367] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.297620] audit: initializing netlink subsys (disabled)
[    0.303321] audit: type=2000 audit(0.192:1): state=initialized audit_enabled=0 res=1
[    0.303739] thermal_sys: Registered thermal governor 'step_wise'
[    0.311242] thermal_sys: Registered thermal governor 'power_allocator'
[    0.317418] cpuidle: using governor menu
[    0.328289] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.335301] ASID allocator initialised with 65536 entries
[    0.353936] platform 30200000.dss: Fixed dependency cycle(s) with /bus@f0000/i2c@20010000/bridge-hdmi@3b
[    0.364858] platform connector-hdmi: Fixed dependency cycle(s) with /bus@f0000/i2c@20010000/bridge-hdmi@3b
[    0.375163] Modules: 27488 pages in range for non-PLT usage
[    0.375171] Modules: 519008 pages in range for PLT usage
[    0.381553] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
[    0.393939] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
[    0.400341] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
[    0.407274] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page
[    0.413678] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[    0.420610] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
[    0.427010] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
[    0.433942] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
[    0.441629] k3-chipinfo 43000014.chipid: Family:AM62PX rev:SR1.0 JTAGID[0x0bb9d02f] Detected
[    0.450945] iommu: Default domain type: Translated
[    0.455863] iommu: DMA domain TLB invalidation policy: strict mode
[    0.462436] SCSI subsystem initialized
[    0.466386] libata version 3.00 loaded.
[    0.466551] usbcore: registered new interface driver usbfs
[    0.472187] usbcore: registered new interface driver hub
[    0.477640] usbcore: registered new device driver usb
[    0.483248] mc: Linux media interface: v0.10
[    0.487652] videodev: Linux video capture interface: v2.00
[    0.493286] pps_core: LinuxPPS API ver. 1 registered
[    0.498360] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.507697] PTP clock support registered
[    0.511865] EDAC MC: Ver: 3.0.0
[    0.515523] scmi_core: SCMI protocol bus registered
[    0.520760] FPGA manager framework
[    0.524312] Advanced Linux Sound Architecture Driver Initialized.
[    0.531411] vgaarb: loaded
[    0.534504] clocksource: Switched to clocksource arch_sys_counter
[    0.541004] VFS: Disk quotas dquot_6.6.0
[    0.545056] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.558319] NET: Registered PF_INET protocol family
[    0.563605] IP idents hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.576647] tcp_listen_portaddr_hash hash table entries: 4096 (order: 4, 65536 bytes, linear)
[    0.585480] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.593415] TCP established hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.601918] TCP bind hash table entries: 65536 (order: 9, 2097152 bytes, linear)
[    0.611199] TCP: Hash tables configured (established 65536 bind 65536)
[    0.618046] UDP hash table entries: 4096 (order: 5, 131072 bytes, linear)
[    0.625151] UDP-Lite hash table entries: 4096 (order: 5, 131072 bytes, linear)
[    0.632833] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.639044] RPC: Registered named UNIX socket transport module.
[    0.645116] RPC: Registered udp transport module.
[    0.649922] RPC: Registered tcp transport module.
[    0.654727] RPC: Registered tcp-with-tls transport module.
[    0.660331] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.666917] NET: Registered PF_XDP protocol family
[    0.671825] PCI: CLS 0 bytes, default 64
[    0.677093] Initialise system trusted keyrings
[    0.681850] workingset: timestamp_bits=46 max_order=21 bucket_order=0
[    0.688730] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.694952] NFS: Registering the id_resolver key type
[    0.700142] Key type id_resolver registered
[    0.704415] Key type id_legacy registered
[    0.708525] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.715373] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    0.754475] Key type asymmetric registered
[    0.758667] Asymmetric key parser 'x509' registered
[    0.763696] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 241)
[    0.771256] io scheduler mq-deadline registered
[    0.775885] io scheduler kyber registered
[    0.780008] io scheduler bfq registered
[    0.787097] pinctrl-single 4084000.pinctrl: 34 pins, size 136
[    0.793600] pinctrl-single f4000.pinctrl: 171 pins, size 684
[    0.806526] Serial: 8250/16550 driver, 12 ports, IRQ sharing enabled
[    0.823046] loop: module loaded
[    0.827313] megasas: 07.725.01.00-rc1
[    0.834835] tun: Universal TUN/TAP device driver, 1.6
[    0.840979] VFIO - User Level meta-driver version: 0.3
[    0.847361] usbcore: registered new interface driver usb-storage
[    0.854067] i2c_dev: i2c /dev entries driver
[    0.860107] sdhci: Secure Digital Host Controller Interface driver
[    0.866445] sdhci: Copyright(c) Pierre Ossman
[    0.871120] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.877636] ledtrig-cpu: registered to indicate activity on CPUs
[    0.884081] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[    0.891345] usbcore: registered new interface driver usbhid
[    0.897045] usbhid: USB HID core driver
[    0.901247] omap-mailbox 29000000.mailbox: omap mailbox rev 0x66fca100
[    0.908071] omap-mailbox 29010000.mailbox: omap mailbox rev 0x66fca100
[    0.914797] omap-mailbox 29020000.mailbox: no available mbox devices found
[    0.921857] omap-mailbox 29030000.mailbox: no available mbox devices found
[    0.930625] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[    0.939613] optee: probing for conduit method.
[    0.944178] optee: revision 4.2 (12d7c4ee)
[    0.944459] optee: dynamic shared memory is enabled
[    0.953867] optee: initialized driver
[    0.959120] NET: Registered PF_PACKET protocol family
[    0.964387] Key type dns_resolver registered
[    0.977301] registered taskstats version 1
[    0.981763] Loading compiled-in X.509 certificates
[    0.999335] ti-sci 44043000.system-controller: ABI: 4.0 (firmware rev 0x000a '10.0.8--v10.00.08 (Fiery Fox)')
[    1.050255] platform 79000000.r5f: configured R5F for remoteproc mode
[    1.057142] platform 79000000.r5f: assigned reserved memory node mcu-r5fss-dma-memory-region@9b800000
[    1.067008] remoteproc remoteproc0: 79000000.r5f is available
[    1.073057] remoteproc remoteproc0: Direct firmware load for am62p-mcu-r5f0_0-fw failed with error -2
[    1.082523] remoteproc remoteproc0: powering up 79000000.r5f
[    1.088406] remoteproc remoteproc0: Direct firmware load for am62p-mcu-r5f0_0-fw failed with error -2
[    1.097866] remoteproc remoteproc0: request_firmware failed: -2
[    1.103924] platform 78000000.r5f: R5F core may have been powered on by a different host, programmed state (0) != actual state (1)
[    1.116090] platform 78000000.r5f: configured R5F for IPC-only mode
[    1.122597] platform 78000000.r5f: assigned reserved memory node r5f-dma-memory@9c800000
[    1.131478] remoteproc remoteproc1: 78000000.r5f is available
[    1.137442] remoteproc remoteproc1: attaching to 78000000.r5f
[    1.143868] platform 78000000.r5f: R5F core initialized in IPC-only mode
[    1.150747] rproc-virtio rproc-virtio.0.auto: assigned reserved memory node r5f-dma-memory@9c800000
[    1.160525] virtio_rpmsg_bus virtio0: rpmsg host is online
[    1.161029] virtio_rpmsg_bus virtio0: creating channel ti.ipc4.ping-pong addr 0xd
[    1.166151] rproc-virtio rproc-virtio.0.auto: registered virtio0 (type 7)
[    1.173847] virtio_rpmsg_bus virtio0: creating channel rpmsg_chrdev addr 0xe
[    1.180709] remoteproc remoteproc1: remote processor 78000000.r5f is now attached
[    1.197338] omap_i2c 20000000.i2c: bus 0 rev0.12 at 400 kHz
[    1.204390] pca953x 1-0023: supply vcc not found, using dummy regulator
[    1.211276] pca953x 1-0023: using AI
[    1.240614] platform connector-hdmi: Fixed dependency cycle(s) with /bus@f0000/i2c@20010000/bridge-hdmi@3b
[    1.250560] platform 30200000.dss: Fixed dependency cycle(s) with /bus@f0000/i2c@20010000/bridge-hdmi@3b
[    1.260301] i2c 1-003b: Fixed dependency cycle(s) with /connector-hdmi
[    1.267035] i2c 1-003b: Fixed dependency cycle(s) with /bus@f0000/dss@30200000
[    1.274623] omap_i2c 20010000.i2c: bus 1 rev0.12 at 100 kHz
[    1.281407] omap_i2c 20020000.i2c: bus 2 rev0.12 at 400 kHz
[    1.287336] ti-sci-intr bus@f0000:interrupt-controller@a00000: Interrupt Router 3 domain created
[    1.296543] ti-sci-inta 48000000.interrupt-controller: Interrupt Aggregator domain 28 created
[    1.305541] ti-sci-inta 4e400000.interrupt-controller: Interrupt Aggregator domain 200 created
[    1.315715] ti-udma 485c0100.dma-controller: Number of rings: 82
[    1.324397] ti-udma 485c0100.dma-controller: Channels: 48 (bchan: 18, tchan: 12, rchan: 18)
[    1.335453] ti-udma 485c0000.dma-controller: Number of rings: 150
[    1.346327] ti-udma 485c0000.dma-controller: Channels: 35 (tchan: 20, rchan: 15)
[    1.355854] ti-udma 4e230000.dma-controller: Number of rings: 6
[    1.362533] ti-udma 4e230000.dma-controller: Channels: 6 (bchan: 0, tchan: 0, rchan: 6)
[    1.371983] printk: console [ttyS2] disabled
[    1.376684] 2800000.serial: ttyS2 at MMIO 0x2800000 (irq = 252, base_baud = 3000000) is a 8250
[    1.385556] printk: console [ttyS2] enabled
[    1.394008] printk: bootconsole [ns16550a0] disabled
[    1.409650] spi-nor spi1.0: s28hs512t (65536 Kbytes)
[    1.414757] 7 fixed-partitions partitions found on MTD device fc40000.spi.0
[    1.421718] Creating 7 MTD partitions on "fc40000.spi.0":
[    1.427112] 0x000000000000-0x000000080000 : "ospi.tiboot3"
[    1.433783] 0x000000080000-0x000000280000 : "ospi.tispl"
[    1.440157] 0x000000280000-0x000000680000 : "ospi.u-boot"
[    1.446609] 0x000000680000-0x0000006c0000 : "ospi.env"
[    1.452787] 0x0000006c0000-0x000000700000 : "ospi.env.backup"
[    1.459544] 0x000000800000-0x000003fc0000 : "ospi.rootfs"
[    1.465999] 0x000003fc0000-0x000004000000 : "ospi.phypattern"
[    1.474127] spi spi0.0: Fixed dependency cycle(s) with /bus@f0000/ticsi2rx@30102000/csi-bridge@30101000
[    1.522512] davinci_mdio 8000f00.mdio: davinci mdio revision 17.7, bus freq 1000000
[    1.537305] davinci_mdio 8000f00.mdio: phy[0]: device 8000f00.mdio:00, driver TI DP83867
[    1.545411] davinci_mdio 8000f00.mdio: phy[1]: device 8000f00.mdio:01, driver TI DP83867
[    1.553531] am65-cpsw-nuss 8000000.ethernet: initializing am65 cpsw nuss version 0x6BA01903, cpsw version 0x6BA81903 Ports: 3 quirks:00000006
[    1.566384] am65-cpsw-nuss 8000000.ethernet: initialized cpsw ale version 1.5
[    1.573517] am65-cpsw-nuss 8000000.ethernet: ALE Table size 512
[    1.580041] am65-cpsw-nuss 8000000.ethernet: CPTS ver 0x4e8a010d, freq:500000000, add_val:1 pps:0
[    1.593784] am65-cpsw-nuss 8000000.ethernet: set new flow-id-base 19
[    1.603947] platform 31000000.usb: Fixed dependency cycle(s) with /bus@f0000/i2c@20000000/usb-power-controller@3f/connector
[    1.617277] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    1.622817] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 1
[    1.630643] xhci-hcd xhci-hcd.1.auto: USB3 root hub has no ports
[    1.636649] xhci-hcd xhci-hcd.1.auto: hcc params 0x0258fe6d hci version 0x110 quirks 0x0000008020000010
[    1.646079] xhci-hcd xhci-hcd.1.auto: irq 269, io mem 0x31100000
[    1.652844] hub 1-0:1.0: USB hub found
[    1.656627] hub 1-0:1.0: 1 port detected
[    1.665663] spi spi0.0: Fixed dependency cycle(s) with /bus@f0000/ticsi2rx@30102000/csi-bridge@30101000
[    1.675137] platform 30101000.csi-bridge: Fixed dependency cycle(s) with /bus@f0000/spi@20100000/ads6311_spi@0
[    1.685582] 2222222222222222222222222222222222222
[    1.690586] Probed CSI2RX with 4/4 lanes, 4 streams, external D-PHY
[    1.698210] cpufreq: cpufreq_online: CPU0: Running at unlisted initial frequency: 1200000 KHz, changing to: 1250000 KHz
[    1.710687] mmc0: CQHCI version 5.10
[    1.719728] pca953x 1-0022: supply vcc not found, using dummy regulator
[    1.726506] pca953x 1-0022: using AI
[    1.735432] debugfs: Directory 'pd:244' with parent 'pm_genpd' already present!
[    1.737052] mmc1: CQHCI version 5.10
[    1.742801] debugfs: Directory 'pd:244' with parent 'pm_genpd' already present!
[    1.750525] mmc0: SDHCI controller on fa10000.mmc [fa10000.mmc] using ADMA 64-bit
[    1.753629] debugfs: Directory 'pd:243' with parent 'pm_genpd' already present!
[    1.768383] debugfs: Directory 'pd:186' with parent 'pm_genpd' already present!
[    1.777007] debugfs: Directory 'pd:182' with parent 'pm_genpd' already present!
[    1.784331] debugfs: Directory 'pd:182' with parent 'pm_genpd' already present!
[    1.790516] mmc1: SDHCI controller on fa00000.mmc [fa00000.mmc] using ADMA 64-bit
[    1.792766] clk: Disabling unused clocks
[    1.807851] ALSA device list:
[    1.810898]   No soundcards found.
[    1.814773] Waiting for root device PARTUUID=5a09f541-02...
[    1.844582] mmc0: Command Queue Engine enabled
[    1.849080] mmc0: new HS400 MMC card at address 0001
[    1.854857] mmcblk0: mmc0:0001 G1M15L 29.6 GiB
[    1.859869] mmc1: new ultra high speed SDR104 SDXC card at address aaaa
[    1.860718]  mmcblk0: p1 p2
[    1.867076] mmcblk1: mmc1:aaaa SD64G 59.5 GiB
[    1.869756] mmcblk0boot0: mmc0:0001 G1M15L 31.5 MiB
[    1.878586]  mmcblk1: p1 p2 p3
[    1.879454] mmcblk0boot1: mmc0:0001 G1M15L 31.5 MiB
[    1.887450] mmcblk0rpmb: mmc0:0001 G1M15L 4.00 MiB, chardev (236:0)
[    2.232557] EXT4-fs (mmcblk1p2): recovery complete
[    2.238225] EXT4-fs (mmcblk1p2): mounted filesystem 85f376bd-a8f0-42ba-a709-aeb042c2e8b7 r/w with ordered data mode. Quota mode: none.
[    2.250367] VFS: Mounted root (ext4 filesystem) on device 179:34.
[    2.257250] devtmpfs: mounted
[    2.260862] Freeing unused kernel memory: 2496K
[    2.265466] Run /home/root/init-byd.sh as init process
[    2.270595]   with arguments:
[    2.270598]     /home/root/init-byd.sh
[    2.270601]   with environment:
[    2.270603]     HOME=/
[    2.270606]     TERM=linux
[    2.529809] systemd[1]: System time before build time, advancing clock.
[    2.564495] systemd[1]: systemd 255.4^ running in system mode (+PAM -AUDIT -SELINUX -APPARMOR +IMA -SMACK +SECCOMP -GCRYPT -GNUTLS -OPENSSL +ACL +BLKID -CURL -ELFUTILS -FIDO2 -IDN2 -IDN -IPTC +KMOD -LIBCRYPTSETUP +LIBFDISK -PCRE2 -PWQUALITY -P11KIT -QRENCODE -TPM2 -BZIP2 -LZ4 -XZ -ZLIB +ZSTD -BPF_FRAMEWORK -XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified)
[    2.596368] systemd[1]: Detected architecture arm64.
[    2.606639] systemd[1]: Hostname set to <am62pxx-evm>.
[    2.815448] systemd[1]: Configuration file /usr/lib/systemd/system/ti-apps-launcher.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    2.849692] systemd[1]: Configuration file /usr/lib/systemd/system/seva-launcher.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    2.897115] systemd[1]: Binding to IPv6 address not available since kernel does not support IPv6.
[    2.906047] systemd[1]: Binding to IPv6 address not available since kernel does not support IPv6.
[    2.945759] systemd[1]: /usr/lib/systemd/system/bt-enable.service:9: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.
[    3.055562] systemd[1]: /etc/systemd/system/sync-clocks.service:11: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.
[    3.140157] systemd[1]: Queued start job for default target Graphical Interface.
[    3.179763] systemd[1]: Created slice Slice /system/getty.
[    3.187847] systemd[1]: Created slice Slice /system/modprobe.
[    3.199226] systemd[1]: Created slice Slice /system/serial-getty.
[    3.210819] systemd[1]: Created slice User and Session Slice.
[    3.221675] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[    3.230560] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    3.243554] systemd[1]: Expecting device /dev/ttyS2...
[    3.254228] systemd[1]: Reached target Path Units.
[    3.264473] systemd[1]: Reached target Remote File Systems.
[    3.275581] systemd[1]: Reached target Slice Units.
[    3.286012] systemd[1]: Reached target Swaps.
[    3.323522] systemd[1]: Listening on RPCbind Server Activation Socket.
[    3.330438] systemd[1]: Reached target RPC Port Mapper.
[    3.348068] systemd[1]: Listening on Process Core Dump Socket.
[    3.354476] systemd[1]: Listening on initctl Compatibility Named Pipe.
[    3.367496] systemd[1]: Listening on Journal Audit Socket.
[    3.379024] systemd[1]: Listening on Journal Socket (/dev/log).
[    3.386440] systemd[1]: Listening on Journal Socket.
[    3.397067] systemd[1]: Listening on Network Service Netlink Socket.
[    3.409568] systemd[1]: Listening on udev Control Socket.
[    3.419765] systemd[1]: Listening on udev Kernel Socket.
[    3.430594] systemd[1]: Listening on User Database Manager Socket.
[    3.462907] systemd[1]: Mounting Huge Pages File System...
[    3.472605] systemd[1]: Mounting POSIX Message Queue File System...
[    3.484540] systemd[1]: Mounting Kernel Debug File System...
[    3.491975] systemd[1]: Kernel Trace File System was skipped because of an unmet condition check (ConditionPathExists=/sys/kernel/tracing).
[    3.514705] systemd[1]: Mounting Temporary Directory /tmp...
[    3.521280] systemd[1]: Create List of Static Device Nodes was skipped because of an unmet condition check (ConditionFileNotEmpty=/lib/modules/6.6.32/modules.devname).
[    3.545276] systemd[1]: Starting Load Kernel Module configfs...
[    3.556195] systemd[1]: Starting Load Kernel Module drm...
[    3.567543] systemd[1]: Starting Load Kernel Module fuse...
[    3.579035] systemd[1]: Starting Start psplash boot splash screen...
[    3.591822] systemd[1]: Starting RPC Bind...
[    3.596776] systemd[1]: File System Check on Root Device was skipped because of an unmet condition check (ConditionPathIsReadWrite=!/).
[    3.620836] systemd[1]: Starting Journal Service...
[    3.637967] systemd[1]: Starting Load Kernel Modules...
[    3.651457] systemd[1]: Starting Generate network units from Kernel command line...
[    3.671083] systemd[1]: Starting Remount Root and Kernel File Systems...
[    3.690820] systemd[1]: Starting Create Static Device Nodes in /dev gracefully...
[    3.708812] systemd[1]: Starting Coldplug All udev Devices...
[    3.719255] systemd[1]: Bind mount volatile /var/cache was skipped because of an unmet condition check (ConditionPathIsReadWrite=!/var/cache).
[    3.737451] systemd[1]: Bind mount volatile /var/lib was skipped because of an unmet condition check (ConditionPathIsReadWrite=!/var/lib).
[    3.750245] systemd[1]: Bind mount volatile /var/spool was skipped because of an unmet condition check (ConditionPathIsReadWrite=!/var/spool).
[    3.755000] EXT4-fs (mmcblk1p2): re-mounted 85f376bd-a8f0-42ba-a709-aeb042c2e8b7 r/w. Quota mode: none.
[    3.763560] systemd[1]: Bind mount volatile /srv was skipped because of an unmet condition check (ConditionPathIsReadWrite=!/srv).
[    3.786810] systemd-journald[136]: Collecting audit messages is enabled.
[    3.793149] systemd[1]: Started RPC Bind.
[    3.799605] systemd[1]: Mounted Huge Pages File System.
[    3.809665] systemd[1]: Mounted POSIX Message Queue File System.
[    3.821612] systemd[1]: Mounted Kernel Debug File System.
[    3.832886] systemd[1]: Mounted Temporary Directory /tmp.
[    3.845164] systemd[1]: modprobe@configfs.service: Deactivated successfully.
[    3.857629] systemd[1]: Finished Load Kernel Module configfs.
[    3.864838] systemd[1]: modprobe@drm.service: Deactivated successfully.
[    3.876514] systemd[1]: Finished Load Kernel Module drm.
[    3.882615] systemd[1]: Started Journal Service.
[    4.001612] systemd-journald[136]: Received client request to flush runtime journal.
[    4.102434] audit: type=1334 audit(1709054765.568:2): prog-id=6 op=LOAD
[    4.118608] audit: type=1334 audit(1709054765.580:3): prog-id=7 op=LOAD
[    4.162983] audit: type=1334 audit(1709054765.632:4): prog-id=8 op=LOAD
[    4.170884] audit: type=1334 audit(1709054765.636:5): prog-id=9 op=LOAD
[    4.182587] audit: type=1334 audit(1709054765.636:6): prog-id=10 op=LOAD
[    4.400970] audit: type=1334 audit(1709054765.868:7): prog-id=11 op=LOAD
[    4.415141] audit: type=1334 audit(1709054765.884:8): prog-id=12 op=LOAD
[    4.430828] audit: type=1334 audit(1709054765.900:9): prog-id=11 op=UNLOAD
[    4.470767] audit: type=1334 audit(1709054765.940:10): prog-id=12 op=UNLOAD
[    4.886568] random: crng init done
[    5.577159] kauditd_printk_skb: 22 callbacks suppressed
[    5.577175] audit: type=1334 audit(1709054767.044:33): prog-id=25 op=LOAD
[    5.696300] audit: type=1334 audit(1709054767.164:34): prog-id=25 op=UNLOAD
[    5.709657] audit: type=1334 audit(1709054767.176:35): prog-id=26 op=LOAD
[    5.834171] audit: type=1334 audit(1709054767.300:36): prog-id=27 op=LOAD
[    5.853081] audit: type=1334 audit(1709054767.320:37): prog-id=28 op=LOAD
[    5.879126] audit: type=1334 audit(1709054767.344:38): prog-id=29 op=LOAD
[    5.886577] audit: type=1334 audit(1709054767.344:39): prog-id=30 op=LOAD
[    5.897089] audit: type=1334 audit(1709054767.356:40): prog-id=27 op=UNLOAD
[    5.907863] audit: type=1334 audit(1709054767.356:41): prog-id=28 op=UNLOAD
[    5.920412] audit: type=1334 audit(1709054767.356:42): prog-id=31 op=LOAD
[    6.455276] am65-cpsw-nuss 8000000.ethernet eth0: PHY [8000f00.mdio:00] driver [TI DP83867] (irq=POLL)
[    6.464940] am65-cpsw-nuss 8000000.ethernet eth0: configuring for phy/rgmii-rxid link mode
[    6.506422] am65-cpsw-nuss 8000000.ethernet eth1: PHY [8000f00.mdio:01] driver [TI DP83867] (irq=POLL)
[    6.516180] am65-cpsw-nuss 8000000.ethernet eth1: configuring for phy/rgmii-rxid link mode
[    7.975353] ti-apps-launche[382]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set
[    8.520132] am65-cpsw-nuss 8000000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[    8.814058] EXT4-fs (mmcblk1p3): mounted filesystem 90213d76-c575-445e-8c87-eebe7e24d3c7 r/w with ordered data mode. Quota mode: none.
[   11.943210] platform 2b300050.target-module: deferred probe pending
[   49.655250] ----- Probe Start ---driver_version: 3.2.0_LM20240904a----
[   49.692571] ads6311 virtio0.ti.ipc4.ping-pong.-1.13: mcuctrl_rpmsg_probe() Line:9459
[   49.706839] new channel: 0x401 -> 0xd, rpmsg_device_id: ti.ipc4.ping-pong, endpoint address: 0x401!
[   49.818516] rpmsg wait for completion time-out
[   49.818526] rpmsg read reg:0x0000 failed, ret:-110, rpmsg_from_user: 0
[   49.822978] read mcuctrl reg[0x0000] return data:0x0000, ret:-110
[   49.938520] rpmsg wait for completion time-out
[   49.938534] rpmsg read reg:0x0020 failed, ret:-110, rpmsg_from_user: 0
[   49.942990] Fail to read mcu firmware type, ret:-110
[   50.050541] rpmsg wait for completion time-out
[   50.055506] rpmsg read reg:0x0010 failed, ret:-110, rpmsg_from_user: 0
[   50.059949] Fail to read mcu firmware version, ret:-110
[   50.170511] rpmsg wait for completion time-out for 100 ms.
[   50.175735] rpmsg_tx: 00000000: 00 03 00 81 f6 3c 47                             .....<G
[   50.189292] rpmsg Write mcu reg:0x0081 failed, ret:-110, rpmsg_from_user: 0
[   50.189298] done, ret:0!
[   50.198923] SPI driver adaps,ads6311spi has no spi_device_id for adaps,ads6311spi
[   50.206738] adaps,ads6311spi spi0.0: cam_sensor_spi_driver_probe() Line:7904 <DRV_ADS6311>  spi_controller : spi0 000000003e423846 name=ads6311spi,bus_num=0,irq:0 mode:0x0 spi max_speed:15000000
[   50.224142] name=ads6311spi,bus_num=0,irq[0] cs[0] mode[0] CPHA[0] CPOL[0] CS_HIGH[0] msb_first[1] the original spi max_speed[15000000]
[   50.224160] ------TRACE_PM_RUNTIME--Begin of <__sensor_power_on> Line:4003--power_on:0, callline: 7489, sensor->power_on_times: 0---
[   50.338512] rpmsg wait for completion time-out for 100 ms.
[   50.350425] rpmsg_tx: 00000000: 00 04 00 bd 00 01 b7                             .......
[   50.363982] rpmsg Write mcu reg:0x00bd failed, ret:-110, rpmsg_from_user: 0
[   50.363988] Fail to power on tx and rx modules.
[   50.375457] Failed to power on tx and rx modules.
[   50.482509] rpmsg wait for completion time-out for 100 ms.
[   50.482517] rpmsg_tx: 00000000: 00 05 00 8a 00 00 80                             .......
[   50.496076] rpmsg Write mcu reg:0x008a failed, ret:-110, rpmsg_from_user: 0
[   50.496082] Fail to set rx work mode: 0.
[   50.509489] Success for sensor reset cost 2542 us, sensor chip id: 0x3400
[   50.516413] ------TRACE_PM_RUNTIME--End of <__sensor_power_on> Line:4167--power_on:1, load_script: 0, ret: 0, sensorId: 0x3400---
[   50.516464] 11111111111111111111111111111111111
[   50.528132] client: insmod (1157:1157) is running on CPU 1
[   50.536414] done, ret:0!
[   50.604139] client: v4l_id (1176:1176) is running on CPU 2
[   50.604175] ---- S_OPEN  from v4l_id (1176:1176) on CPU 2
[   50.610005] ---- S_CLOSE  from v4l_id (1176:1176) on CPU 2
[   52.308209] client: media-ctl (1178:1178) is running on CPU 1
[   52.316359] ---- S_OPEN  from media-ctl (1178:1178) on CPU 1
[   52.328013] ---- S_CLOSE  from media-ctl (1178:1178) on CPU 1
[   95.255658] kauditd_printk_skb: 43 callbacks suppressed
[   95.255672] audit: type=1334 audit(1709054856.724:76): prog-id=45 op=LOAD
[   95.273647] audit: type=1334 audit(1709054856.736:77): prog-id=46 op=LOAD
[   95.280529] audit: type=1334 audit(1709054856.748:78): prog-id=47 op=LOAD
[   95.288120] audit: type=1334 audit(1709054856.756:79): prog-id=48 op=LOAD
[   95.295659] audit: type=1334 audit(1709054856.764:80): prog-id=49 op=LOAD
[   95.302520] audit: type=1334 audit(1709054856.768:81): prog-id=45 op=UNLOAD
[   95.310901] audit: type=1334 audit(1709054856.780:82): prog-id=46 op=UNLOAD
[   95.317880] audit: type=1334 audit(1709054856.780:83): prog-id=47 op=UNLOAD
[   95.324866] audit: type=1334 audit(1709054856.792:84): prog-id=48 op=UNLOAD
[   95.331837] audit: type=1334 audit(1709054856.792:85): prog-id=49 op=UNLOAD

  • Hi Xiangxu,

    The "entity 15: m00_dToF_ads6311 spi0.0 " in your media pipe doesn't have the sensor format. Why is that, and why does it have 4 routes?

    Regards,

    Jianzhong

  • Hi Xiangxu,

    The "entity 15: m00_dToF_ads6311 spi0.0 " in your media pipe doesn't have the sensor format. Why is that, and why does it have 4 routes?

    Can you also add "--verbose" to your v4l2-ctl command and share the log?

    Regards,

    Jianzhong

  • VIDIOC_QUERYCAP: ok
    VIDIOC_G_FMT: ok
    VIDIOC_S_FMT: ok
    Format Video Capture:
            Wi[  119.224957] ---- S_CLOSE  from v4l_id (1183:1183) on CPU 2
    dth/Height      : 640/480
            Pixel Format      : 'UYVY' (UYVY 4:2[  135.209134] client: v4l2-ctl (1185:1185) is running on CPU 0, pad: 0, name:m00_dToF_ads6311 spi0.0, fd: 0000000085db67e2
    :2)
            Field             : None
            Bytes per Line    : 1280
            Size[  135.215332] num_routes: 4, source_pad: 0, source_stream: 0
     Image        : 614400
            Colorspace        : sRGB
            Transfer Fun[  135.231887] num_entries: 0, w*h: 480 * 128, code: 0x3008, bpp: 16
    ction : sRGB
            YCbCr/HSV Encoding: ITU-R 601
            Quantization     [  135.242763] num_routes: 4, source_pad: 0, source_stream: 1
     : Limited Range
            Flags             :
                    VIDIOC_REQBUFS return[  135.254381] num_entries: 1, w*h: 480 * 128, code: 0x3008, bpp: 16
    ed 0 (Success)
                    VIDIOC_QUERYBUF returned 0 (Success)
                    VIDIOC[  135.265403] num_routes: 4, source_pad: 0, source_stream: 2
    _QUERYBUF returned 0 (Success)
                    VIDIOC_QUERYBUF returned 0 (Su[  135.277044] num_entries: 2, w*h: 40 * 1, code: 0x3001, bpp: 8
    ccess)
                    VIDIOC_G_FMT returned 0 (Success)
                    VIDIOC_QBUF retur[  135.288053] num_routes: 4, source_pad: 0, source_stream: 3
    ned 0 (Success)
                    VIDIOC_QBUF returned 0 (Success)
                    VIDIOC_QB[  135.299335] num_entries: 3, w*h: 40 * 1, code: 0x3001, bpp: 8
    [  135.310413] Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: ti_csi2rx_get_vc+0x124/0x124
    [  135.332021] CPU: 0 PID: 1185 Comm: v4l2-ctl Not tainted 6.6.32 #16
    [  135.338188] Hardware name: Texas Instruments AM62P5 SK (DT)
    [  135.343745] Call trace:
    [  135.346181]  dump_backtrace+0x90/0xe8
    [  135.349839]  show_stack+0x18/0x24
    [  135.353147]  dump_stack_lvl+0x48/0x60
    [  135.356800]  dump_stack+0x18/0x24
    [  135.360103]  panic+0x31c/0x378
    [  135.363150]  __ktime_get_real_seconds+0x0/0xc
    [  135.367497]  _ti_csi2rx_sd_set_routing+0x0/0xb8
    [  135.372018]  ti_csi2rx_start_streaming+0x120/0x298
    [  135.376802] SMP: stopping secondary CPUs
    [  135.380716] Kernel Offset: disabled
    [  135.384192] CPU features: 0x0,00000008,00020000,1000420b
    [  135.389489] Memory Limit: none
    [  135.392534] ---[ end Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: ti_csi2rx_get_vc+0x124/0x124 ]---
    UF returned 0 (Success)
    

    v4l2-ctrl log

  • Gets the format function

    static int sensor_get_frame_desc(struct v4l2_subdev *sd, unsigned int pad,
                     struct v4l2_mbus_frame_desc *fd)
    {
        struct v4l2_subdev_state *state;
        struct v4l2_mbus_framefmt *fmt;
        struct v4l2_subdev_route *route;
        u32 bpp;
        int ret = 0;
        unsigned int i;
        int main_stream_num = 2;
    
        TRACE_V4L2_CB("client: %s (%d:%d) is running on CPU %d, pad: %d, name:%s, fd: %p",
            current->comm, current->tgid, current->pid,
            smp_processor_id(), pad, sd->name, fd);
    
    #if defined(VC1_DISABLED)
        main_stream_num = 1;
    #endif
    
        if (pad != 0)
            return -EINVAL;
    
        state = v4l2_subdev_lock_and_get_active_state(sd);
    
        memset(fd, 0, sizeof(*fd));
        fd->type = V4L2_MBUS_FRAME_DESC_TYPE_CSI2;
    
        /* pixel stream - 4 virtual channels */
        for (i = 0; i < state->routing.num_routes; ++i) {
            route = &state->routing.routes[i];
    
            DBG_INFO("num_routes: %d, source_pad: %d, source_stream: %d", state->routing.num_routes, route->source_pad, route->source_stream);
            if (route->source_pad != pad)
                continue;
    
            fmt = v4l2_subdev_state_get_stream_format(state, 0, route->source_stream);
            if (!fmt) {
                ret = -EPIPE;
                goto out;
            }
            //DBG_INFO("fmt->width: %d, fmt->height: %d, fmt->code: 0x%x.\n", fmt->width, fmt->height, fmt->code);
    
            fd->entry[fd->num_entries].stream = fd->num_entries;
            fd->entry[fd->num_entries].flags  = V4L2_MBUS_FRAME_DESC_FL_LEN_MAX;
            if (main_stream_num > fd->num_entries) {
                bpp = 16;
                fd->entry[fd->num_entries].bus.csi2.dt = SENSOR_RAW_DATA_TYPE; /* RAW12 */
                fd->entry[fd->num_entries].length      = fmt->width * fmt->height * bpp / 8;
    #if !defined(ONE_DATATYPE_ENABLE)
            } else {
                bpp = 8;
                fd->entry[fd->num_entries].bus.csi2.dt = MIPI_CSI2_DT_USER_CUSTOM; /* user defined RAW8 */
                fd->entry[fd->num_entries].length      = fmt->width * fmt->height * bpp / 8;
    #endif
            }
    
            fd->entry[fd->num_entries].pixelcode   = fmt->code;
            fd->entry[fd->num_entries].bus.csi2.vc = fd->num_entries % 2;
    
            DBG_INFO("num_entries: %d, w*h: %d * %d, code: 0x%x, bpp: %d"
                , fd->num_entries, fmt->width, fmt->height, fmt->code, bpp);
    
            fd->num_entries++;
        }
    
    out:
        v4l2_subdev_unlock_state(state);
    
        return ret;
    }

  • Hello Xiangxu,

    Most likely the kernel panic happened at this function call: https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/tree/drivers/media/platform/ti/j721e-csi2rx/j721e-csi2rx.c?h=ti-linux-6.1.y#n929. It will call your sensor_get_frame_desc(). Can you debug why your sensor_get_frame_desc() function causes stack corruption?

    Thanks,

    Jianzhong

  • Now it does not crash but the function ti_csi2rx_start_streaming, video_device_pipeline_start return fail. What is the possible cause

  • Most likely your media pipe wasn't constructed properly. Please see below example of a correct pipeline:

    root@am62axx-evm:/opt/edgeai-gst-apps# media-ctl -p
    Media controller API version 6.6.32
    
    Media device information
    ------------------------
    driver          j721e-csi2rx
    model           TI-CSI2RX
    serial
    bus info        platform:30102000.ticsi2rx
    hw revision     0x1
    driver version  6.6.32
    
    Device topology
    - entity 1: 30102000.ticsi2rx (7 pads, 7 links, 1 route)
                type V4L2 subdev subtype Unknown flags 0
                device node name /dev/v4l-subdev0
            routes:
                    0/0 -> 1/0 [ACTIVE]
            pad0: Sink
                    [stream:0 fmt:SRGGB8_1X8/1920x1080 field:none]
                    <- "cdns_csi2rx.30101000.csi-bridge":1 [ENABLED,IMMUTABLE]
            pad1: Source
                    [stream:0 fmt:SRGGB8_1X8/1920x1080 field:none]
                    -> "30102000.ticsi2rx context 0":0 [ENABLED,IMMUTABLE]
            pad2: Source
                    -> "30102000.ticsi2rx context 1":0 [ENABLED,IMMUTABLE]
            pad3: Source
                    -> "30102000.ticsi2rx context 2":0 [ENABLED,IMMUTABLE]
            pad4: Source
                    -> "30102000.ticsi2rx context 3":0 [ENABLED,IMMUTABLE]
            pad5: Source
                    -> "30102000.ticsi2rx context 4":0 [ENABLED,IMMUTABLE]
            pad6: Source
                    -> "30102000.ticsi2rx context 5":0 [ENABLED,IMMUTABLE]
    
    - entity 9: cdns_csi2rx.30101000.csi-bridge (5 pads, 2 links, 1 route)
                type V4L2 subdev subtype Unknown flags 0
                device node name /dev/v4l-subdev1
            routes:
                    0/0 -> 1/0 [ACTIVE]
            pad0: Sink
                    [stream:0 fmt:SRGGB8_1X8/1920x1080 field:none]
                    <- "imx219 4-0010":0 [ENABLED,IMMUTABLE]
            pad1: Source
                    [stream:0 fmt:SRGGB8_1X8/1920x1080 field:none]
                    -> "30102000.ticsi2rx":0 [ENABLED,IMMUTABLE]
            pad2: Source
            pad3: Source
            pad4: Source
    
    - entity 15: imx219 4-0010 (1 pad, 1 link, 0 routes)
                 type V4L2 subdev subtype Sensor flags 0
                 device node name /dev/v4l-subdev2
            pad0: Source
                    [stream:0 fmt:SRGGB8_1X8/1920x1080 field:none colorspace:raw xfer:none quantization:full-range
                     crop.bounds:(8,8)/3280x2464
                     crop:(688,700)/1920x1080]
                    -> "cdns_csi2rx.30101000.csi-bridge":0 [ENABLED,IMMUTABLE]
    
    - entity 21: 30102000.ticsi2rx context 0 (1 pad, 1 link)
                 type Node subtype V4L flags 0
                 device node name /dev/video3
            pad0: Sink
                    <- "30102000.ticsi2rx":1 [ENABLED,IMMUTABLE]
    
    - entity 27: 30102000.ticsi2rx context 1 (1 pad, 1 link)
                 type Node subtype V4L flags 0
                 device node name /dev/video4
            pad0: Sink
                    <- "30102000.ticsi2rx":2 [ENABLED,IMMUTABLE]
    
    - entity 33: 30102000.ticsi2rx context 2 (1 pad, 1 link)
                 type Node subtype V4L flags 0
                 device node name /dev/video5
            pad0: Sink
                    <- "30102000.ticsi2rx":3 [ENABLED,IMMUTABLE]
    
    - entity 39: 30102000.ticsi2rx context 3 (1 pad, 1 link)
                 type Node subtype V4L flags 0
                 device node name /dev/video6
            pad0: Sink
                    <- "30102000.ticsi2rx":4 [ENABLED,IMMUTABLE]
    
    - entity 45: 30102000.ticsi2rx context 4 (1 pad, 1 link)
                 type Node subtype V4L flags 0
                 device node name /dev/video7
            pad0: Sink
                    <- "30102000.ticsi2rx":5 [ENABLED,IMMUTABLE]
    
    - entity 51: 30102000.ticsi2rx context 5 (1 pad, 1 link)
                 type Node subtype V4L flags 0
                 device node name /dev/video8
            pad0: Sink
                    <- "30102000.ticsi2rx":6 [ENABLED,IMMUTABLE]