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.

TDA4VM: Configuring Slave works, but during the test I get Kernel error.

Part Number: TDA4VM
Other Parts Discussed in Thread: PCM3168A

Hi there,

I have successfully created a slave SPI device using the device tree with these settings:

in /psdkla/board-support/linux-4.19.94+gitAUTOINC+5a23bc00e0-g5a23bc00e0/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts

        main_spi3_pins_default: main_spi3_pins_default {
                pinctrl-single,pins = <
                        J721E_IOPAD(0x144, PIN_OUTPUT, 4) /* (Y25) PRG0_PRU1_GPO17.SPI3_CLK */
                        J721E_IOPAD(0x148, PIN_OUTPUT, 4) /* (AA26) PRG0_PRU1_GPO18.SPI3_D0 */
                        J721E_IOPAD(0x14c, PIN_INPUT, 4) /* (AA29) PRG0_PRU1_GPO19.SPI3_D1 */
                        J721E_IOPAD(0xd4, PIN_OUTPUT, 4) /* (AB26) PRG0_PRU0_GPO9.SPI3_CS1 */
                >;
        };
        main_spi6_pins_default: main_spi6_pins_default {
                pinctrl-single,pins = <
                        J721E_IOPAD(0x9c, PIN_INPUT, 4) /* (AC22) PRG1_PRU1_GPO17.SPI6_CLK */
                        J721E_IOPAD(0xa0, PIN_OUTPUT, 4) /* (AJ22) PRG1_PRU1_GPO18.SPI6_D0 */
                        J721E_IOPAD(0xa4, PIN_INPUT, 4) /* (AH22) PRG1_PRU1_GPO19.SPI6_D1 */
                        J721E_IOPAD(0x28, PIN_OUTPUT, 4) /* (AG20) PRG1_PRU0_GPO9.SPI6_CS1 */
                >;
        };
&main_spi3 {
        pinctrl-names = "default";
        pinctrl-0 = <&main_spi3_pins_default>;
        ti,spi-num-cs = <2>;
        status = "okay";
        spidev@3{
                reg = <1>;
                spi-max-frequency = <24000000>;
                compatible = "linux,spidev";
        };
};
&main_spi6 {
        status = "okay";
        pinctrl-names = "default";
        pinctrl-0 = <&main_spi6_pins_default>;
        spi-slave;
        slave@6{
                reg = <0>;
                spi-max-frequency = <24000000>;
                compatible = "linux,spidev,spi-slave-time";
        };
};

In /psdkla/board-support/linux-4.19.94+gitAUTOINC+5a23bc00e0-g5a23bc00e0/arch/arm64/boot/dts/ti/k3-j721e-main.dtsi

        main_spi3: spi@2130000 {
                compatible = "ti,am654-mcspi","ti,omap4-mcspi";
                reg = <0x0 0x2130000 0x0 0x400>;
                interrupts = <GIC_SPI 187 IRQ_TYPE_LEVEL_HIGH>;
                clocks = <&k3_clks 269 1>;
                power-domains = <&k3_pds 269 TI_SCI_PD_EXCLUSIVE>;
                #address-cells = <1>;
                #size-cells = <0>;
        };
        main_spi6: spi@2160000 {
                compatible = "ti,am654-mcspi","ti,omap4-mcspi";
                reg = <0x0 0x2160000 0x0 0x400>;
                interrupts = <GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>;
                clocks = <&k3_clks 272 1>;
                power-domains = <&k3_pds 272 TI_SCI_PD_EXCLUSIVE>;
                #address-cells = <1>;
                #size-cells = <0>;
        };

But sending data or connecting to it using the Linux spidev_test I get the following error:

github.com/.../spidev_test.c

[ 3475.367623] [0000000000000000] pgd=00000008cab80003, pud=00000008cab80003, pmd=00000008ca080003, pte=0000000000000000
[ 3475.378208] Internal error: Oops: 96000007 [#1] PREEMPT SMP
[ 3475.383761] Modules linked in: xfrm_user xfrm4_tunnel tunnel4 ipcomp xfrm_ipcomp esp4 ah4 af_key xfrm_algo xhci_plat_hcd xhci_hcd usbcore pru_rproc irq_pruss_intc ti_am335x_adc kfifo_buf omap_rng rng_core pruss cdns3 roles udc_core crc32_ce crct10dif_ce snd_soc_j721e_evm j721e_cpsw_virt_mac pvrsrvkm(O) ti_am335x_tscadc ti_k3_r5_remoteproc ntb_hw_epf pruss_soc_bus ntb mhdp8546 pci_endpoint_test sa2ul ti_k3_dsp_remoteproc sha512_generic virtio_rpmsg_bus authenc vxd_dec(O) remoteproc vxe_enc(O) videobuf2_dma_sg cdns3_ti snd_soc_pcm3168a_i2c snd_soc_pcm3168a rti_wdt sch_fq_codel rpmsg_kdrv_switch jailhouse(O) cryptodev(O) cmemk(O) ipv6
[ 3475.439620] Process spidev_test.o (pid: 8393, stack limit = 0x00000000ca9ff258)
[ 3475.446909] CPU: 0 PID: 8393 Comm: spidev_test.o Tainted: G           O      4.19.94-g5a23bc00e0 #1
[ 3475.455931] Hardware name: Texas Instruments K3 J721E SoC (DT)
[ 3475.461745] pstate: a0000085 (NzCv daIf -PAN -UAO)
[ 3475.466526] pc : __wake_up_common+0x58/0x170
[ 3475.470781] lr : __wake_up_locked+0x18/0x20
[ 3475.474947] sp : ffff00000d8cfcf0
[ 3475.478247] x29: ffff00000d8cfcf0 x28: ffff80084a8e2880
[ 3475.483542] x27: 0000000000000000 x26: 0000000000000000
[ 3475.488837] x25: 0000000000000001 x24: 0000000000000000
[ 3475.494131] x23: 0000000000000000 x22: 0000000000000000
[ 3475.499426] x21: 0000000000000003 x20: ffff800841c8d7c0
[ 3475.504720] x19: ffff800841c8d7b8 x18: 0000000000000000
[ 3475.510015] x17: 0000000000000000 x16: 0000000000000000
[ 3475.515309] x15: 0000000000000000 x14: 0000000000000000
[ 3475.520603] x13: 0000000000000000 x12: 0000000000000000
[ 3475.525898] x11: 0000000000000000 x10: 0000000000000000
[ 3475.531192] x9 : 000000000000000f x8 : 0000000000000000
[ 3475.536487] x7 : ffffffffffffffe8 x6 : ffff800847f6e000
[ 3475.541781] x5 : 0000000000000000 x4 : 0000000000000000
[ 3475.547076] x3 : 0000000000000000 x2 : 0000000000000001
[ 3475.552370] x1 : 0000000000000003 x0 : 0000000000000000
[ 3475.557664] Call trace:
[ 3475.560098]  __wake_up_common+0x58/0x170
[ 3475.564006]  __wake_up_locked+0x18/0x20
[ 3475.567827]  complete+0x48/0x68
[ 3475.570956]  omap2_mcspi_slave_abort+0x24/0x48
[ 3475.575384]  spi_slave_abort+0x20/0x30
[ 3475.579121]  spidev_release+0x44/0xb8
[ 3475.582769]  __fput+0x88/0x1b0
[ 3475.585811]  ____fput+0xc/0x18
[ 3475.588853]  task_work_run+0x90/0xb0
[ 3475.592414]  do_notify_resume+0x108/0x110
[ 3475.596408]  work_pending+0x8/0x10
[ 3475.599797] Code: aa0503f8 f9002bfb aa0403f7 5280001b (f9400cf3)
[ 3475.605872] ---[ end trace 4e7c9fc7368662cd ]---
[ 3475.610524] note: spidev_test.o[8393] exited with preempt_count 1

A help from TI would be nice, so I can find out what is not working, If I am guessing correctly the Memory Areas are configured wrongly.

Thanks a lot

Pouyan

  • Hi,

    The issue is seen with which SPI interface? main_spi3 or main_spi6?
    Could you share the full Kernel log from boot time?

    Regards,
    Vishal

  • Dear Vishal,

    Thanks for the reply

    The issue happens with main_spi6 (Which is added as slave here):

    root@j7-evm:~# du -ah /sys/class/spi_slave/     
    0    /sys/class/spi_slave/spi3
    0    /sys/class/spi_slave/

    The whole kernel log / journalctl I added as attachments.

    Regards,

    Pouyan

    [    0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd080]
    [    0.000000] Linux version 4.19.94-g5a23bc00e0 (z0030101@rizc02699) (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36))) #1 SMP PREEMPT Wed Mar 11 14:19:08 CET 2020
    [    0.000000] Machine model: Texas Instruments K3 J721E SoC
    [    0.000000] earlycon: ns16550a0 at MMIO32 0x0000000002800000 (options '')
    [    0.000000] bootconsole [ns16550a0] enabled
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a0000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a0000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a0100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-memory@a0100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a1000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a1000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a1100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-memory@a1100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a2000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a2000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a2100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-memory@a2100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a3000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a3000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a3100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-memory@a3100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a4000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a4000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a4100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-memory@a4100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a5000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a5000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a5100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-memory@a5100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a6000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node c66-dma-memory@a6000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a6100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node c66-memory@a6100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a7000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node c66-dma-memory@a7000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a7100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node c66-memory@a7100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a8000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node c71-dma-memory@a8000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a8100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node c71-memory@a8100000, compatible id shared-dma-pool
    [    0.000000] cma: Reserved 512 MiB at 0x00000000c0000000
    [    0.000000] On node 0 totalpages: 62400
    [    0.000000]   DMA32 zone: 29 pages used for memmap
    [    0.000000]   DMA32 zone: 0 pages reserved
    [    0.000000]   DMA32 zone: 29632 pages, LIFO batch:3
    [    0.000000]   Normal zone: 32 pages used for memmap
    [    0.000000]   Normal zone: 32768 pages, LIFO batch:3
    [    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.1
    [    0.000000] random: get_random_bytes called from start_kernel+0x94/0x3e4 with crng_init=0
    [    0.000000] percpu: Embedded 2 pages/cpu s48536 r8192 d74344 u131072
    [    0.000000] pcpu-alloc: s48536 r8192 d74344 u131072 alloc=2*65536
    [    0.000000] pcpu-alloc: [0] 0 [0] 1 
    [    0.000000] Detected PIPT I-cache on CPU0
    [    0.000000] CPU features: enabling workaround for EL2 vector hardening
    [    0.000000] Speculative Store Bypass Disable mitigation not required
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 62339
    [    0.000000] Kernel command line: console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 mtdparts=47040000.spi.0:512k(ospi.tiboot3),2m(ospi.tispl),4m(ospi.u-boot),128k(ospi.env),128k(ospi.env.backup),1m(ospi.sysfw),-@8m(ospi.rootfs);47034000.hyperbus:512k(hbmc.tiboot3),2m(hbmc.tispl),4m(hbmc.u-boot),256k(hbmc.env),1m(hbmc.sysfw),-@8m(hbmc.rootfs) root=PARTUUID=07cbd136-02 rw rootfstype=ext4 rootwait
    [    0.000000] Dentry cache hash table entries: 524288 (order: 6, 4194304 bytes)
    [    0.000000] Inode-cache hash table entries: 262144 (order: 5, 2097152 bytes)
    [    0.000000] software IO TLB: mapped [mem 0xf9da0000-0xfdda0000] (64MB)
    [    0.000000] Memory: 3377536K/3993600K available (8574K kernel code, 804K rwdata, 3136K rodata, 576K init, 639K bss, 91776K reserved, 524288K cma-reserved)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
    [    0.000000] rcu: Preemptible hierarchical RCU implementation.
    [    0.000000] rcu: 	RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=2.
    [    0.000000] 	Tasks RCU enabled.
    [    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
    [    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
    [    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
    [    0.000000] GICv3: Distributor has no Range Selector support
    [    0.000000] GICv3: no VLPI support, no direct LPI support
    [    0.000000] ITS [mem 0x01820000-0x0182ffff]
    [    0.000000] GIC: enabling workaround for ITS: Socionext Synquacer pre-ITS
    [    0.000000] ITS@0x0000000001820000: allocated 1048576 Devices @8c0800000 (flat, esz 8, psz 64K, shr 0)
    [    0.000000] ITS: using cache flushing for cmd queue
    [    0.000000] GIC: using LPI property table @0x00000008c00a0000
    [    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000001900000
    [    0.000000] CPU0: using LPI pending table @0x00000008c00b0000
    [    0.000000] GIC: using cache flushing for LPI property table
    [    0.000000] arch_timer: cp15 timer(s) running at 200.00MHz (phys).
    [    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2e2049d3e8, max_idle_ns: 440795210634 ns
    [    0.000002] sched_clock: 56 bits at 200MHz, resolution 5ns, wraps every 4398046511102ns
    [    0.008361] Console: colour dummy device 80x25
    [    0.012915] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=800000)
    [    0.023583] pid_max: default: 32768 minimum: 301
    [    0.028323] Security Framework initialized
    [    0.032528] Mount-cache hash table entries: 8192 (order: 0, 65536 bytes)
    [    0.039384] Mountpoint-cache hash table entries: 8192 (order: 0, 65536 bytes)
    [    0.070720] ASID allocator initialised with 32768 entries
    [    0.084247] rcu: Hierarchical SRCU implementation.
    [    0.097190] Platform MSI: gic-its@1820000 domain created
    [    0.102726] PCI/MSI: /interconnect@100000/interrupt-controller@1800000/gic-its@1820000 domain created
    [    0.120162] smp: Bringing up secondary CPUs ...
    [    0.157066] Detected PIPT I-cache on CPU1
    [    0.157084] GICv3: CPU1: found redistributor 1 region 0:0x0000000001920000
    [    0.157113] CPU1: using LPI pending table @0x00000008c0310000
    [    0.157135] CPU1: Booted secondary processor 0x0000000001 [0x411fd080]
    [    0.157176] smp: Brought up 1 node, 2 CPUs
    [    0.185012] SMP: Total of 2 processors activated.
    [    0.189822] CPU features: detected: GIC system register CPU interface
    [    0.196404] CPU features: detected: 32-bit EL0 Support
    [    0.201882] CPU: All CPU(s) started at EL2
    [    0.206069] alternatives: patching kernel code
    [    0.211035] devtmpfs: initialized
    [    0.218917] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
    [    0.228880] futex hash table entries: 512 (order: -1, 32768 bytes)
    [    0.235605] pinctrl core: initialized pinctrl subsystem
    [    0.241272] NET: Registered protocol family 16
    [    0.246155] vdso: 2 pages (1 code @ (____ptrval____), 1 data @ (____ptrval____))
    [    0.253717] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
    [    0.262925] DMA: preallocated 256 KiB pool for atomic allocations
    [    0.276568] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
    [    0.283421] HugeTLB registered 512 MiB page size, pre-allocated 0 pages
    [    0.290818] cryptd: max_cpu_qlen set to 1000
    [    0.299630] vsys_3v3: supplied by evm_12v0
    [    0.303893] vsys_5v0: supplied by evm_12v0
    [    0.308450] SCSI subsystem initialized
    [    0.312513] media: Linux media interface: v0.10
    [    0.317148] videodev: Linux video capture interface: v2.00
    [    0.322760] pps_core: LinuxPPS API ver. 1 registered
    [    0.327830] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.337166] PTP clock support registered
    [    0.341176] EDAC MC: Ver: 3.0.0
    [    0.345012] Advanced Linux Sound Architecture Driver Initialized.
    [    0.351588] clocksource: Switched to clocksource arch_sys_counter
    [    0.357878] VFS: Disk quotas dquot_6.6.0
    [    0.361928] VFS: Dquot-cache hash table entries: 8192 (order 0, 65536 bytes)
    [    0.371321] NET: Registered protocol family 2
    [    0.376027] tcp_listen_portaddr_hash hash table entries: 4096 (order: 0, 65536 bytes)
    [    0.384076] TCP established hash table entries: 32768 (order: 2, 262144 bytes)
    [    0.391561] TCP bind hash table entries: 32768 (order: 3, 524288 bytes)
    [    0.398548] TCP: Hash tables configured (established 32768 bind 32768)
    [    0.405275] UDP hash table entries: 2048 (order: 0, 65536 bytes)
    [    0.411456] UDP-Lite hash table entries: 2048 (order: 0, 65536 bytes)
    [    0.418126] NET: Registered protocol family 1
    [    0.422796] RPC: Registered named UNIX socket transport module.
    [    0.428850] RPC: Registered udp transport module.
    [    0.433653] RPC: Registered tcp transport module.
    [    0.438455] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.445037] PCI: CLS 0 bytes, default 64
    [    0.445284] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available
    [    0.454934] Initialise system trusted keyrings
    [    0.459535] workingset: timestamp_bits=46 max_order=16 bucket_order=0
    [    0.467553] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.473710] NFS: Registering the id_resolver key type
    [    0.478879] Key type id_resolver registered
    [    0.483151] Key type id_legacy registered
    [    0.487248] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
    [    0.494166] 9p: Installing v9fs 9p2000 file system support
    [    0.501251] Key type asymmetric registered
    [    0.505441] Asymmetric key parser 'x509' registered
    [    0.510441] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
    [    0.518002] io scheduler noop registered
    [    0.522006] io scheduler deadline registered
    [    0.526405] io scheduler cfq registered (default)
    [    0.531210] io scheduler mq-deadline registered
    [    0.535837] io scheduler kyber registered
    [    0.540762] pinctrl-single 4301c000.pinmux: 94 pins, size 376
    [    0.546840] pinctrl-single 11c000.pinmux: 173 pins, size 692
    [    0.552967] pinctrl-single a40000.timesync_router: 512 pins, size 2048
    [    0.565979] ti-pat 31010000.pat: Found PAT Rev 1.0 with 16384 pages
    [    0.572404] ti-pat 31010000.pat: Failed to create 31010000.pat debugfs directory
    [    0.580083] ti-pat 31011000.pat: Found PAT Rev 1.0 with 16384 pages
    [    0.586495] ti-pat 31011000.pat: Failed to create 31011000.pat debugfs directory
    [    0.594142] ti-pat 31012000.pat: Found PAT Rev 1.0 with 16384 pages
    [    0.600554] ti-pat 31012000.pat: Failed to create 31012000.pat debugfs directory
    [    0.608203] ti-pat 31013000.pat: Found PAT Rev 1.0 with 2048 pages
    [    0.614524] ti-pat 31013000.pat: Failed to create 31013000.pat debugfs directory
    [    0.622171] ti-pat 31014000.pat: Found PAT Rev 1.0 with 2048 pages
    [    0.628493] ti-pat 31014000.pat: Failed to create 31014000.pat debugfs directory
    [    0.637426] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
    [    0.648742] brd: module loaded
    [    0.654486] loop: module loaded
    [    0.658886] libphy: Fixed MDIO Bus: probed
    [    0.663244] tun: Universal TUN/TAP device driver, 1.6
    [    0.668640] igbvf: Intel(R) Gigabit Virtual Function Network Driver - version 2.4.0-k
    [    0.676646] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
    [    0.682711] sky2: driver version 1.30
    [    0.687024] VFIO - User Level meta-driver version: 0.3
    [    0.696587] i2c /dev entries driver
    [    0.700597] sdhci: Secure Digital Host Controller Interface driver
    [    0.706920] sdhci: Copyright(c) Pierre Ossman
    [    0.711563] sdhci-pltfm: SDHCI platform and OF driver helper
    [    0.717821] ledtrig-cpu: registered to indicate activity on CPUs
    [    0.724648] optee: probing for conduit method from DT.
    [    0.729912] optee: revision 3.7 (5208e5c1)
    [    0.730055] optee: initialized driver
    [    0.738679] NET: Registered protocol family 17
    [    0.743296] 9pnet: Installing 9P2000 support
    [    0.747675] Key type dns_resolver registered
    [    0.752241] registered taskstats version 1
    [    0.756425] Loading compiled-in X.509 certificates
    [    0.766219] ti-sci 44083000.dmsc: ABI: 2.9 (firmware rev 0x0013 '19.12.1-v2019.12a (Terrific Lla')
    [    0.791143] random: fast init done
    [    0.834169] omap_i2c 40b00000.i2c: bus 0 rev0.12 at 100 kHz
    [    0.840088] omap_i2c 40b10000.i2c: bus 1 rev0.12 at 100 kHz
    [    0.846035] omap_i2c 42120000.i2c: bus 2 rev0.12 at 100 kHz
    [    0.852053] pca953x 3-0020: 3-0020 supply vcc not found, using dummy regulator
    [    0.859458] pca953x 3-0020: Linked as a consumer to regulator.0
    [    0.888123] pca953x 3-0022: 3-0022 supply vcc not found, using dummy regulator
    [    0.895522] pca953x 3-0022: Linked as a consumer to regulator.0
    [    0.902389] GPIO line 481 (MCASP/TRACE_MUX_S0) hogged as output/low
    [    0.909111] GPIO line 482 (MCASP/TRACE_MUX_S1) hogged as output/high
    [    0.915665] omap_i2c 2000000.i2c: bus 3 rev0.12 at 400 kHz
    [    0.921661] omap_i2c 2010000.i2c: bus 4 rev0.12 at 400 kHz
    [    0.927557] omap_i2c 2020000.i2c: bus 5 rev0.12 at 100 kHz
    [    0.933483] pca953x 6-0020: 6-0020 supply vcc not found, using dummy regulator
    [    0.940884] pca953x 6-0020: Linked as a consumer to regulator.0
    [    0.968248] GPIO line 464 (CODEC_RSTz) hogged as output/high
    [    0.974161] omap_i2c 2030000.i2c: bus 6 rev0.12 at 400 kHz
    [    0.980027] omap_i2c 2040000.i2c: bus 7 rev0.12 at 100 kHz
    [    0.985882] omap_i2c 2050000.i2c: bus 8 rev0.12 at 100 kHz
    [    0.991791] pca953x 9-0020: 9-0020 supply vcc not found, using dummy regulator
    [    0.999192] pca953x 9-0020: Linked as a consumer to regulator.0
    [    1.028010] omap_i2c 2060000.i2c: bus 9 rev0.12 at 400 kHz
    [    1.042367] cdns-torrent-phy 5050000.serdes: 4 lanes, max bit rate 5.400 Gbps
    [    1.051111] cdns-pcie-host d000000.pcie: missing "mem"
    [    1.056698] cdns-pcie-host d000000.pcie: Linked as a consumer to phy-5000000.serdes.0
    [    2.055624] cdns-pcie-host d000000.pcie: Phy link never came up
    [    2.061677] cdns-pcie-host d000000.pcie: host bridge /interconnect@100000/pcie@2900000/pcie@d000000 ranges:
    [    2.071649] cdns-pcie-host d000000.pcie:    IO 0x10001000..0x10010fff -> 0x10001000
    [    2.079481] cdns-pcie-host d000000.pcie:   MEM 0x4000000000..0x407fffffff -> 0x00000000
    [    2.087726] cdns-pcie-host d000000.pcie: PCI host bridge to bus 0000:00
    [    2.094488] pci_bus 0000:00: root bus resource [bus 00-0f]
    [    2.100093] pci_bus 0000:00: root bus resource [io  0x0000-0xffff] (bus address [0x10001000-0x10010fff])
    [    2.109784] pci_bus 0000:00: root bus resource [mem 0x4000000000-0x407fffffff] (bus address [0x00000000-0x7fffffff])
    [    2.120553] pci 0000:00:00.0: [104c:b00d] type 01 class 0x060400
    [    2.120570] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x4 may corrupt adjacent RW1C bits
    [    2.130441] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x4 may corrupt adjacent RW1C bits
    [    2.140333] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x92 may corrupt adjacent RW1C bits
    [    2.150294] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0xb2 may corrupt adjacent RW1C bits
    [    2.160291] pci 0000:00:00.0: supports D1
    [    2.160293] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
    [    2.160297] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x84 may corrupt adjacent RW1C bits
    [    2.170264] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x208 may corrupt adjacent RW1C bits
    [    2.180317] pci 0000:00:00.0: reg 0x224: [mem 0x4000000000-0x40003fffff 64bit]
    [    2.180320] pci 0000:00:00.0: VF(n) BAR0 space: [mem 0x4000000000-0x4000ffffff 64bit] (contains BAR0 for 4 VFs)
    [    2.190643] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x210 may corrupt adjacent RW1C bits
    [    2.200691] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x210 may corrupt adjacent RW1C bits
    [    2.210738] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x210 may corrupt adjacent RW1C bits
    [    2.220785] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x210 may corrupt adjacent RW1C bits
    [    2.232794] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
    [    2.242780] pci_bus 0000:01: busn_res: [bus 01-0f] end is updated to 01
    [    2.242794] pci 0000:00:00.0: BAR 7: assigned [mem 0x4000000000-0x4000ffffff 64bit]
    [    2.250624] pci 0000:00:00.0: PCI bridge to [bus 01]
    [    2.256087] cdns-pcie-host d800000.pcie: missing "mem"
    [    2.261741] cdns-pcie-host d800000.pcie: Linked as a consumer to phy-5010000.serdes.1
    [    3.271113] cdns-pcie-host d800000.pcie: Phy link never came up
    [    3.277165] cdns-pcie-host d800000.pcie: host bridge /interconnect@100000/pcie@2910000/pcie@d800000 ranges:
    [    3.287133] cdns-pcie-host d800000.pcie:    IO 0x18001000..0x18010fff -> 0x18001000
    [    3.294963] cdns-pcie-host d800000.pcie:   MEM 0x4100000000..0x417fffffff -> 0x00000000
    [    3.303198] cdns-pcie-host d800000.pcie: PCI host bridge to bus 0001:00
    [    3.309960] pci_bus 0001:00: root bus resource [bus 00-0f]
    [    3.315565] pci_bus 0001:00: root bus resource [io  0x10000-0x1ffff] (bus address [0x18001000-0x18010fff])
    [    3.325434] pci_bus 0001:00: root bus resource [mem 0x4100000000-0x417fffffff] (bus address [0x00000000-0x7fffffff])
    [    3.336199] pci 0001:00:00.0: [104c:b00d] type 01 class 0x060400
    [    3.336255] pci 0001:00:00.0: supports D1
    [    3.336257] pci 0001:00:00.0: PME# supported from D0 D1 D3hot
    [    3.338113] pci 0001:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
    [    3.348211] pci_bus 0001:01: busn_res: [bus 01-0f] end is updated to 01
    [    3.348221] pci 0001:00:00.0: PCI bridge to [bus 01]
    [    3.353655] cdns-pcie-host e000000.pcie: missing "mem"
    [    3.359242] cdns-pcie-host e000000.pcie: Linked as a consumer to phy-5020000.serdes.2
    [    4.368615] cdns-pcie-host e000000.pcie: Phy link never came up
    [    4.374667] cdns-pcie-host e000000.pcie: host bridge /interconnect@100000/pcie@2920000/pcie@e000000 ranges:
    [    4.384635] cdns-pcie-host e000000.pcie:    IO 0x4400001000..0x4400010fff -> 0x00001000
    [    4.392821] cdns-pcie-host e000000.pcie:   MEM 0x4400011000..0x4407ffffff -> 0x00011000
    [    4.401054] cdns-pcie-host e000000.pcie: PCI host bridge to bus 0002:00
    [    4.407815] pci_bus 0002:00: root bus resource [bus 00-0f]
    [    4.413420] pci_bus 0002:00: root bus resource [io  0x20000-0x2ffff] (bus address [0x1000-0x10fff])
    [    4.422666] pci_bus 0002:00: root bus resource [mem 0x4400011000-0x4407ffffff] (bus address [0x00011000-0x07ffffff])
    [    4.433432] pci 0002:00:00.0: [104c:b00d] type 01 class 0x060400
    [    4.433488] pci 0002:00:00.0: supports D1
    [    4.433490] pci 0002:00:00.0: PME# supported from D0 D1 D3hot
    [    4.435338] pci 0002:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
    [    4.445269] pci_bus 0002:01: busn_res: [bus 01-0f] end is updated to 01
    [    4.445279] pci 0002:00:00.0: PCI bridge to [bus 01]
    [    4.450753] k3-ringacc 2b800000.ringacc: Ring Accelerator probed rings:286, gp-rings[96,20] sci-dev-id:235
    [    4.460626] k3-ringacc 2b800000.ringacc: dma-ring-reset-quirk: disabled
    [    4.467385] k3-ringacc 2b800000.ringacc: RA Proxy rev. 66346100, num_proxies:64
    [    4.475054] k3-ringacc 3c000000.ringacc: Ring Accelerator probed rings:1024, gp-rings[440,150] sci-dev-id:211
    [    4.485191] k3-ringacc 3c000000.ringacc: dma-ring-reset-quirk: disabled
    [    4.491950] k3-ringacc 3c000000.ringacc: RA Proxy rev. 66346100, num_proxies:64
    [    4.499569] omap8250 40a00000.serial: PM domain pd:149 will not be powered off
    [    4.507090] 40a00000.serial: ttyS1 at MMIO 0x40a00000 (irq = 7, base_baud = 6000000) is a 8250
    [    4.516201] 2800000.serial: ttyS2 at MMIO 0x2800000 (irq = 19, base_baud = 3000000) is a 8250
    [    4.524935] console [ttyS2] enabled
    [    4.531969] bootconsole [ns16550a0] disabled
    [    4.540866] 2810000.serial: ttyS3 at MMIO 0x2810000 (irq = 20, base_baud = 3000000) is a 8250
    [    4.549656] 2840000.serial: ttyS6 at MMIO 0x2840000 (irq = 21, base_baud = 3000000) is a 8250
    [    4.558374] arm-smmu-v3 36600000.smmu: ias 48-bit, oas 48-bit (features 0x00001faf)
    [    4.567101] arm-smmu-v3 36600000.smmu: msi_domain absent - falling back to wired irqs
    [    4.576767] cdns-ufshcd 4e84000.ufs: ufshcd_populate_vreg: Unable to find vdd-hba-supply regulator, assuming enabled
    [    4.587276] cdns-ufshcd 4e84000.ufs: ufshcd_populate_vreg: Unable to find vcc-supply regulator, assuming enabled
    [    4.597430] cdns-ufshcd 4e84000.ufs: ufshcd_populate_vreg: Unable to find vccq-supply regulator, assuming enabled
    [    4.607670] cdns-ufshcd 4e84000.ufs: ufshcd_populate_vreg: Unable to find vccq2-supply regulator, assuming enabled
    [    4.618481] scsi host0: ufshcd
    [    4.634166] cadence-qspi 47040000.spi: mt35xu512aba (65536 Kbytes)
    [    4.640346] 7 cmdlinepart partitions found on MTD device 47040000.spi.0
    [    4.646945] Creating 7 MTD partitions on "47040000.spi.0":
    [    4.649111] cdns-ufshcd 4e84000.ufs: ufshcd_print_pwr_info:[RX, TX]: gear=[1, 1], lane[1, 1], pwr[SLOWAUTO_MODE, SLOWAUTO_MODE], rate = 0
    [    4.652418] 0x000000000000-0x000000080000 : "ospi.tiboot3"
    [    4.670496] 0x000000080000-0x000000280000 : "ospi.tispl"
    [    4.675992] 0x000000280000-0x000000680000 : "ospi.u-boot"
    [    4.681564] 0x000000680000-0x0000006a0000 : "ospi.env"
    [    4.684972] cdns-ufshcd 4e84000.ufs: ufshcd_print_pwr_info:[RX, TX]: gear=[3, 3], lane[2, 2], pwr[FAST MODE, FAST MODE], rate = 2
    [    4.698357] cdns-ufshcd 4e84000.ufs: ufshcd_find_max_sup_active_icc_level: Regulator capability was not set, actvIccLevel=0
    [    4.709617] 0x0000006a0000-0x0000006c0000 : "ospi.env.backup"
    [    4.709674] scsi 0:0:0:49488: Well-known LUN    TOSHIBA  THGAF8G8T23BAILB 0300 PQ: 0 ANSI: 6
    [    4.715563] 0x0000006c0000-0x0000007c0000 : "ospi.sysfw"
    [    4.729191] scsi 0:0:0:49476: Well-known LUN    TOSHIBA  THGAF8G8T23BAILB 0300 PQ: 0 ANSI: 6
    [    4.729296] 0x000000800000-0x000004000000 : "ospi.rootfs"
    [    4.737881] cdns-ufshcd 4e84000.ufs: ufshcd_scsi_add_wlus: BOOT WLUN not found
    [    4.859670] cadence-qspi 47040000.spi: Cadence QSPI NOR probe failed -517
    [    4.867188] cadence-qspi 47050000.spi: n25q512a (65536 Kbytes)
    [    4.887669] cadence-qspi 47050000.spi: Cadence QSPI NOR probe failed -517
    [    4.895649] am65-cpsw-nuss 46000000.ethernet: rx-flow-id-base is not set -22
    [    4.902701] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA00101, cpsw version 0x6BA80100 Ports: 2
    [    4.914139] UDMA has not been proped
    [    4.917718] am65-cpsw-nuss 46000000.ethernet: Failed to request tx dma channel -517
    [    4.926204] am65-cpts 310d0000.cpts: CPTS ver 0x4e8a010a, freq:200000000, add_val:4 pps:0
    [    4.934700] mmc0: Unknown controller version (4). You may experience problems.
    [    4.941949] mmc0: CQHCI version 5.10
    [    4.976215] mmc0: SDHCI controller on 4f80000.sdhci [4f80000.sdhci] using ADMA 64-bit
    [    4.990162] vdd_mmc1: supplied by vsys_3v3
    [    4.994685] pca953x 4-0020: 4-0020 supply vcc not found, using dummy regulator
    [    5.001919] pca953x 4-0020: Linked as a consumer to regulator.0
    [    5.032267] GPIO line 448 (DP0_PWR_SW_EN) hogged as output/high
    [    5.038923] omap-mailbox 31f80000.mailbox: omap mailbox rev 0x66fc7100
    [    5.045816] omap-mailbox 31f81000.mailbox: omap mailbox rev 0x66fc7100
    [    5.052708] omap-mailbox 31f82000.mailbox: omap mailbox rev 0x66fc7100
    [    5.059409] mmc0: Command Queue Engine enabled
    [    5.063847] mmc0: new HS400 MMC card at address 0001
    [    5.069134] omap-mailbox 31f83000.mailbox: omap mailbox rev 0x66fc7100
    [    5.075733] mmcblk0: mmc0:0001 S0J56X 14.8 GiB 
    [    5.080502] mmcblk0boot0: mmc0:0001 S0J56X partition 1 31.5 MiB
    [    5.086763] mmcblk0boot1: mmc0:0001 S0J56X partition 2 31.5 MiB
    [    5.092709] omap-mailbox 31f84000.mailbox: omap mailbox rev 0x66fc7100
    [    5.099359] mmcblk0rpmb: mmc0:0001 S0J56X partition 3 4.00 MiB, chardev (242:0)
    [    5.429249] ti-udma 285c0000.udmap: Channels: 24 (tchan: 48, echan: 0, rchan: 48, rflow: 96)
    [    5.438850] ti-udma 31150000.udmap: Channels: 84 (tchan: 140, echan: 160, rchan: 140, rflow: 300)
    [    5.451738] cadence-qspi 47040000.spi: mt35xu512aba (65536 Kbytes)
    [    5.457909] 7 cmdlinepart partitions found on MTD device 47040000.spi.0
    [    5.464511] Creating 7 MTD partitions on "47040000.spi.0":
    [    5.469989] 0x000000000000-0x000000080000 : "ospi.tiboot3"
    [    5.475723] 0x000000080000-0x000000280000 : "ospi.tispl"
    [    5.481217] 0x000000280000-0x000000680000 : "ospi.u-boot"
    [    5.486811] 0x000000680000-0x0000006a0000 : "ospi.env"
    [    5.492121] 0x0000006a0000-0x0000006c0000 : "ospi.env.backup"
    [    5.498047] 0x0000006c0000-0x0000007c0000 : "ospi.sysfw"
    [    5.503553] 0x000000800000-0x000004000000 : "ospi.rootfs"
    [    5.511113] cadence-qspi 47050000.spi: n25q512a (65536 Kbytes)
    [    5.518864] am65-cpsw-nuss 46000000.ethernet: rx-flow-id-base is not set -22
    [    5.525916] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA00101, cpsw version 0x6BA80100 Ports: 2
    [    5.543618] am65-cpsw-nuss 46000000.ethernet: set new flow-id-base 48
    [    5.554112] pps pps0: new PPS source ptp1
    [    5.558246] am65-cpsw-nuss 46000000.ethernet: CPTS ver 0x4e8a010a, freq:500000000, add_val:1 pps:1
    [    5.567189] am65-cpsw-nuss 46000000.ethernet: initialized cpsw ale version 0.4
    [    5.574394] am65-cpsw-nuss 46000000.ethernet: ALE Table size 64
    [    5.619596] am65-cpsw-nuss 46000000.ethernet: davinci mdio revision 9.7, bus freq 1000000
    [    5.627755] libphy: 46000000.ethernet: probed
    [    5.633393] sdhci-am654 4fb0000.sdhci: Linked as a consumer to regulator.4
    [    5.640306] sdhci-am654 4fb0000.sdhci: Linked as a consumer to regulator.5
    [    5.647194] mmc1: Unknown controller version (4). You may experience problems.
    [    5.654441] mmc1: CQHCI version 5.10
    [    5.688150] mmc1: SDHCI controller on 4fb0000.sdhci [4fb0000.sdhci] using ADMA 64-bit
    [    5.705634] input: gpio-keys as /devices/platform/gpio-keys/input/input0
    [    5.712557] hctosys: unable to open rtc device (rtc0)
    [    5.739549] ALSA device list:
    [    5.742511]   No soundcards found.
    [    5.746103] Waiting for root device PARTUUID=07cbd136-02...
    [    7.110075] mmc1: new ultra high speed DDR50 SDHC card at address aaaa
    [    7.117128] mmcblk1: mmc1:aaaa SC16G 14.8 GiB 
    [    7.130789]  mmcblk1: p1 p2
    [    7.379717] EXT4-fs (mmcblk1p2): recovery complete
    [    7.385310] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
    [    7.393402] VFS: Mounted root (ext4 filesystem) on device 179:98.
    [    7.408159] devtmpfs: mounted
    [    7.411233] Freeing unused kernel memory: 576K
    [    7.415685] Run /sbin/init as init process
    [    7.573642] systemd[1]: System time before build time, advancing clock.
    [    7.626595] NET: Registered protocol family 10
    [    7.631395] Segment Routing with IPv6
    [    7.660261] systemd[1]: systemd 239 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN2 -IDN -PCRE2 default-hierarchy=hybrid)
    [    7.681692] systemd[1]: Detected architecture arm64.
    [    7.714221] systemd[1]: Set hostname to <j7-evm>.
    [    7.816873] systemd[1]: File /lib/systemd/system/systemd-journald.service:36 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling.
    [    7.833919] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.)
    [    7.943947] random: systemd: uninitialized urandom read (16 bytes read)
    [    7.954954] systemd[1]: Listening on Process Core Dump Socket.
    [    7.971642] random: systemd: uninitialized urandom read (16 bytes read)
    [    7.978503] systemd[1]: Listening on initctl Compatibility Named Pipe.
    [    7.995634] random: systemd: uninitialized urandom read (16 bytes read)
    [    8.002361] systemd[1]: Listening on udev Control Socket.
    [    8.019696] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
    [    8.044175] systemd[1]: Created slice User and Session Slice.
    [    8.120676] cmemk: loading out-of-tree module taints kernel.
    [    8.127269] CMEMK module: reference Linux version 4.19.94
    [    8.132942] no physical memory specified
    [    8.137607] cmemk initialized
    [    8.155472] cryptodev: driver 1.9 loaded.
    [    8.169560] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null)
    [    8.680076] systemd-journald[160]: Received request to flush runtime journal from PID 1
    [    8.852509] pcm3168a 6-0044: Linked as a consumer to regulator.2
    [    8.877780] pcm3168a 6-0044: Linked as a consumer to regulator.3
    [    8.888815] rti-wdt 2200000.rti: heartbeat 60 sec
    [    8.920130] rti-wdt 2210000.rti: heartbeat 60 sec
    [    8.979339] pci-endpoint-test 0000:00:00.0: of_irq_parse_pci: failed with rc=-22
    [    9.012272] pci_generic_config_write32: 35 callbacks suppressed
    [    9.012277] pci_bus 0000:00: 1-byte config write to 0000:00:00.0 offset 0x3c may corrupt adjacent RW1C bits
    [    9.034675] img_enc 4200000.video-encoder: vxe_enc_probe: adding heap of type 1
    [    9.042723] img_enc 4200000.video-encoder: vxe_enc_probe: using heap 1 for internal alloc
    [    9.073789] k3-dsp-rproc 4d80800000.dsp: assigned reserved memory node c66-dma-memory@a7000000
    [    9.090642] pci-endpoint-test 0001:00:00.0: of_irq_parse_pci: failed with rc=-22
    [    9.103837] k3-dsp-rproc 4d80800000.dsp: configured DSP for remoteproc mode
    [    9.111576] pci_bus 0001:00: 1-byte config write to 0001:00:00.0 offset 0x3c may corrupt adjacent RW1C bits
    [    9.121402] img_dec 4300000.video-decoder: decoder registered as /dev/video0
    [    9.139630] k3-dsp-rproc 4d80800000.dsp: local reset is deasserted for device
    [    9.147088] img_enc 4200000.video-encoder: encoder registered as /dev/video1
    [    9.163543] pci-endpoint-test 0002:00:00.0: of_irq_parse_pci: failed with rc=-22
    [    9.173109] remoteproc remoteproc0: 4d80800000.dsp is available
    [    9.185412] k3-dsp-rproc 4d81800000.dsp: assigned reserved memory node c66-dma-memory@a6000000
    [    9.199903] pci_bus 0002:00: 1-byte config write to 0002:00:00.0 offset 0x3c may corrupt adjacent RW1C bits
    [    9.209898] remoteproc remoteproc0: powering up 4d80800000.dsp
    [    9.216339] remoteproc remoteproc0: Booting fw image j7-c66_0-fw, size 147084
    [    9.226401] k3-dsp-rproc 4d81800000.dsp: configured DSP for remoteproc mode
    [    9.236525] k3-dsp-rproc 4d80800000.dsp: booting DSP core using boot addr = 0xa6200000
    [    9.245960] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
    [    9.253000] k3-dsp-rproc 4d81800000.dsp: local reset is deasserted for device
    [    9.255639] [drm] No driver support for vblank timestamp query.
    [    9.266504] virtio_rpmsg_bus virtio0: rpmsg host is online
    [    9.273829] remoteproc remoteproc0: registered virtio0 (type 7)
    [    9.281853] [drm] Initialized tidss 1.0.0 20180215 for 4a00000.dss on minor 0
    [    9.285383] remoteproc remoteproc0: remote processor 4d80800000.dsp is now up
    [    9.297759] remoteproc remoteproc1: 4d81800000.dsp is available
    [    9.308596] ntb_hw_epf 0000:00:00.0: of_irq_parse_pci: failed with rc=-22
    [    9.308601] pci_bus 0000:00: 1-byte config write to 0000:00:00.0 offset 0x3c may corrupt adjacent RW1C bits
    [    9.308632] ntb_hw_epf 0001:00:00.0: of_irq_parse_pci: failed with rc=-22
    [    9.308635] pci_bus 0001:00: 1-byte config write to 0001:00:00.0 offset 0x3c may corrupt adjacent RW1C bits
    [    9.308660] ntb_hw_epf 0002:00:00.0: of_irq_parse_pci: failed with rc=-22
    [    9.308686] pci_bus 0002:00: 1-byte config write to 0002:00:00.0 offset 0x3c may corrupt adjacent RW1C bits
    [    9.308712] virtio_rpmsg_bus virtio0: creating channel ti.ipc4.ping-pong addr 0xd
    [    9.329765] k3-dsp-rproc 64800000.dsp: assigned reserved memory node c71-dma-memory@a8000000
    [    9.330245] k3-dsp-rproc 64800000.dsp: configured DSP for remoteproc mode
    [    9.330287] remoteproc remoteproc2: 64800000.dsp is available
    [    9.335730] remoteproc remoteproc1: powering up 4d81800000.dsp
    [    9.335740] remoteproc remoteproc1: Booting fw image j7-c66_1-fw, size 147084
    [    9.336358] k3-dsp-rproc 4d81800000.dsp: booting DSP core using boot addr = 0xa7200000
    [    9.336972] virtio_rpmsg_bus virtio1: rpmsg host is online
    [    9.336992] remoteproc remoteproc1: registered virtio1 (type 7)
    [    9.336994] remoteproc remoteproc1: remote processor 4d81800000.dsp is now up
    [    9.362417] virtio_rpmsg_bus virtio1: creating channel ti.ipc4.ping-pong addr 0xd
    [    9.502811] k3_r5_rproc interconnect@100000:interconnect@28380000:r5fss@41000000: creating child devices for R5F cores
    [    9.503756] platform 41000000.r5f: R5F core may have been powered on by a different host, programmed state (0) != actual state (1)
    [    9.503883] platform 41000000.r5f: configured R5F for IPC-only mode
    [    9.503919] platform 41000000.r5f: assigned reserved memory node r5f-dma-memory@a0000000
    [    9.504032] remoteproc remoteproc3: 41000000.r5f is available
    [    9.504387] k3_r5_rproc interconnect@100000:r5fss@5c00000: creating child devices for R5F cores
    [    9.505057] platform 5c00000.r5f: R5F core may have been powered on by a different host, programmed state (0) != actual state (1)
    [    9.505195] platform 5c00000.r5f: configured R5F for IPC-only mode
    [    9.505219] platform 5c00000.r5f: assigned reserved memory node r5f-dma-memory@a2000000
    [    9.505297] remoteproc remoteproc4: 5c00000.r5f is available
    [    9.505689] platform 5d00000.r5f: configured R5F for remoteproc mode
    [    9.505919] platform 5d00000.r5f: assigned reserved memory node r5f-dma-memory@a3000000
    [    9.505987] remoteproc remoteproc5: 5d00000.r5f is available
    [    9.506201] k3_r5_rproc interconnect@100000:r5fss@5e00000: creating child devices for R5F cores
    [    9.506989] platform 5e00000.r5f: configured R5F for remoteproc mode
    [    9.507391] platform 5e00000.r5f: assigned reserved memory node r5f-dma-memory@a4000000
    [    9.507475] remoteproc remoteproc6: 5e00000.r5f is available
    [    9.567843] remoteproc remoteproc2: powering up 64800000.dsp
    [    9.567852] remoteproc remoteproc2: Booting fw image j7-c71_0-fw, size 8393788
    [    9.568824] k3-dsp-rproc 64800000.dsp: booting DSP core using boot addr = 0xa8200000
    [    9.569913] virtio_rpmsg_bus virtio2: rpmsg host is online
    [    9.569944] remoteproc remoteproc2: registered virtio2 (type 7)
    [    9.569947] remoteproc remoteproc2: remote processor 64800000.dsp is now up
    [    9.596326] remoteproc remoteproc3: powering up 41000000.r5f
    [    9.596333] remoteproc remoteproc3: Booting fw image j7-mcu-r5f0_0-fw, size 87056
    [    9.596414] platform 41000000.r5f: R5F core initialized in IPC-only mode
    [    9.597088] virtio_rpmsg_bus virtio3: rpmsg host is online
    [    9.597121] remoteproc remoteproc3: registered virtio3 (type 7)
    [    9.597123] remoteproc remoteproc3: remote processor 41000000.r5f is now up
    [    9.600564] remoteproc remoteproc6: powering up 5e00000.r5f
    [    9.600570] remoteproc remoteproc6: Booting fw image j7-main-r5f1_0-fw, size 86984
    [    9.600636] remoteproc remoteproc5: powering up 5d00000.r5f
    [    9.600639] remoteproc remoteproc5: Booting fw image j7-main-r5f0_1-fw, size 86984
    [    9.604912] platform 5d00000.r5f: booting R5F core using boot addr = 0x0
    [    9.605549] virtio_rpmsg_bus virtio4: rpmsg host is online
    [    9.605572] remoteproc remoteproc5: registered virtio4 (type 7)
    [    9.605574] remoteproc remoteproc5: remote processor 5d00000.r5f is now up
    [    9.607032] platform 5e00000.r5f: booting R5F core using boot addr = 0x0
    [    9.607555] virtio_rpmsg_bus virtio5: rpmsg host is online
    [    9.607568] remoteproc remoteproc6: registered virtio5 (type 7)
    [    9.607570] remoteproc remoteproc6: remote processor 5e00000.r5f is now up
    [    9.628740] virtio_rpmsg_bus virtio3: creating channel ti.ipc4.ping-pong addr 0xd
    [    9.717653] virtio_rpmsg_bus virtio4: creating channel ti.ipc4.ping-pong addr 0xd
    [    9.718247] TI DP83867 k3-cpsw-mdio:00: attached PHY driver [TI DP83867] (mii_bus:phy_addr=k3-cpsw-mdio:00, irq=POLL)
    [    9.718896] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [    9.723112] virtio_rpmsg_bus virtio5: creating channel ti.ipc4.ping-pong addr 0xd
    [    9.744571] j721e-audio sound@0: pcm3168a-dac <-> 2ba0000.mcasp mapping ok
    [    9.745402] j721e-audio sound@0: pcm3168a-adc <-> 2ba0000.mcasp mapping ok
    [    9.808151] remoteproc remoteproc4: powering up 5c00000.r5f
    [    9.808158] remoteproc remoteproc4: Booting fw image j7-main-r5f0_0-fw, size 9660632
    [    9.808228] platform 5c00000.r5f: R5F core initialized in IPC-only mode
    [    9.808623] virtio_rpmsg_bus virtio6: rpmsg host is online
    [    9.808642] remoteproc remoteproc4: registered virtio6 (type 7)
    [    9.808645] remoteproc remoteproc4: remote processor 5c00000.r5f is now up
    [    9.816120] virtio_rpmsg_bus virtio6: creating channel rpmsg-kdrv addr 0x1a
    [    9.816450] rpmsg-kdrv-eth-switch rpmsg-kdrv-2-mpu_1_0_ethswitch-device-0: Device info: permissions: 01FFFFFF uart_id: 2
    [    9.816455] rpmsg-kdrv-eth-switch rpmsg-kdrv-2-mpu_1_0_ethswitch-device-0: FW ver 0.1 (rev 1) 17/Mar/2020 SHA:
    [    9.845997] virtio_rpmsg_bus virtio6: creating channel rpmsg_chrdev addr 0x15
    [   10.087070] cdns-usb3 6000000.usb: DRD version v1 (ID: 0004024e, rev: 00000200)
    [   10.091506] random: crng init done
    [   10.091509] random: 7 urandom warning(s) missed due to ratelimiting
    [   10.091879] omap_rng 4e10000.trng: Random Number Generator ver. 241b34c
    [   10.151939] cdns-usb3 6400000.usb: DRD version v1 (ID: 0004024e, rev: 00000200)
    [   10.189336] remoteproc remoteproc7: b034000.pru is available
    [   10.189364] pru-rproc b034000.pru: PRU rproc node pru@b034000 probed successfully
    [   10.189476] remoteproc remoteproc8: b004000.rtu is available
    [   10.189493] pru-rproc b004000.rtu: PRU rproc node rtu@b004000 probed successfully
    [   10.189554] remoteproc remoteproc9: b00a000.txpru is available
    [   10.189571] pru-rproc b00a000.txpru: PRU rproc node txpru@b00a000 probed successfully
    [   10.190396] remoteproc remoteproc10: b038000.pru is available
    [   10.190416] pru-rproc b038000.pru: PRU rproc node pru@b038000 probed successfully
    [   10.190539] remoteproc remoteproc11: b006000.rtu is available
    [   10.190560] pru-rproc b006000.rtu: PRU rproc node rtu@b006000 probed successfully
    [   10.190625] remoteproc remoteproc12: b00c000.txpru is available
    [   10.190641] pru-rproc b00c000.txpru: PRU rproc node txpru@b00c000 probed successfully
    [   10.191244] remoteproc remoteproc13: b134000.pru is available
    [   10.191264] pru-rproc b134000.pru: PRU rproc node pru@b134000 probed successfully
    [   10.191410] remoteproc remoteproc14: b104000.rtu is available
    [   10.191428] pru-rproc b104000.rtu: PRU rproc node rtu@b104000 probed successfully
    [   10.191492] remoteproc remoteproc15: b10a000.txpru is available
    [   10.191508] pru-rproc b10a000.txpru: PRU rproc node txpru@b10a000 probed successfully
    [   10.192384] remoteproc remoteproc16: b138000.pru is available
    [   10.192408] pru-rproc b138000.pru: PRU rproc node pru@b138000 probed successfully
    [   10.192577] remoteproc remoteproc17: b106000.rtu is available
    [   10.192594] pru-rproc b106000.rtu: PRU rproc node rtu@b106000 probed successfully
    [   10.193074] remoteproc remoteproc18: b10c000.txpru is available
    [   10.193093] pru-rproc b10c000.txpru: PRU rproc node txpru@b10c000 probed successfully
    [   10.253150] usbcore: registered new interface driver usbfs
    [   10.253165] usbcore: registered new interface driver hub
    [   10.253207] usbcore: registered new device driver usb
    [   10.266260] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
    [   10.266271] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 1
    [   10.267126] xhci-hcd xhci-hcd.2.auto: hcc params 0x200073c9 hci version 0x100 quirks 0x0000000000010010
    [   10.267152] xhci-hcd xhci-hcd.2.auto: irq 326, io mem 0x06410000
    [   10.267292] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
    [   10.267294] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [   10.267296] usb usb1: Product: xHCI Host Controller
    [   10.267298] usb usb1: Manufacturer: Linux 4.19.94-g5a23bc00e0 xhci-hcd
    [   10.267300] usb usb1: SerialNumber: xhci-hcd.2.auto
    [   10.267508] hub 1-0:1.0: USB hub found
    [   10.267519] hub 1-0:1.0: 1 port detected
    [   10.267730] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
    [   10.267735] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 2
    [   10.267741] xhci-hcd xhci-hcd.2.auto: Host supports USB 3.0 SuperSpeed
    [   10.267770] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
    [   10.267804] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.19
    [   10.267807] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [   10.267809] usb usb2: Product: xHCI Host Controller
    [   10.267811] usb usb2: Manufacturer: Linux 4.19.94-g5a23bc00e0 xhci-hcd
    [   10.267812] usb usb2: SerialNumber: xhci-hcd.2.auto
    [   10.271006] hub 2-0:1.0: USB hub found
    [   10.271020] hub 2-0:1.0: 1 port detected
    [   10.599599] usb 1-1: new high-speed USB device number 2 using xhci-hcd
    [   10.740627] am65-cpsw-nuss 46000000.ethernet eth0: Link is Down
    [   10.747865] usb 1-1: New USB device found, idVendor=0451, idProduct=8142, bcdDevice= 1.00
    [   10.747868] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=1
    [   10.747870] usb 1-1: SerialNumber: CC0108697885
    [   10.748305] hub 1-1:1.0: USB hub found
    [   10.748325] hub 1-1:1.0: 4 ports detected
    [   10.915157] Console: switching to colour frame buffer device 240x67
    [   11.038766] cdns-mhdp a000000.dp-bridge: [drm:mhdp_transfer [mhdp8546]] *ERROR* Failed to read DPCD
    [   11.040396] cdns-mhdp a000000.dp-bridge: [drm:mhdp_transfer [mhdp8546]] *ERROR* Failed to read DPCD
    [   12.008240] tidss 4a00000.dss: fb0: DRM emulated frame buffer device
    [   12.088835] j721e-cpsw-virt-mac main_r5fss_cpsw9g_virt_mac0: virt_cpsw_nuss mac loaded
    [   12.097918] j721e-cpsw-virt-mac main_r5fss_cpsw9g_virt_mac0: rdev_features:00000003 rdev_mtu:1522 flow_id:172 tx_psil_dst_id:4A00
    [   12.110045] j721e-cpsw-virt-mac main_r5fss_cpsw9g_virt_mac0: local_mac_addr:00:00:00:00:00:00 rdev_mac_addr:70:ff:76:1d:8e:10
    [   12.219919] pvrsrvkm 4e20000000.gpu: Linked as a consumer to genpd:0:4e20000000.gpu
    [   12.228840] pvrsrvkm 4e20000000.gpu: Linked as a consumer to genpd:1:4e20000000.gpu
    [   12.239892] PVR_K:  787: Read BVNC 22.104.208.318 from HW device registers
    [   12.246806] PVR_K:  787: RGX Device initialised with BVNC 22.104.208.318
    [   12.254890] [drm] Initialized pvr 1.10.5371573 20170530 for 4e20000000.gpu on minor 1
    [   12.337957] j721e-cpsw-virt-mac main_r5fss_cpsw9g_virt_mac0: virt_cpsw_nuss mac started
    [   12.723929] j721e-cpsw-virt-mac main_r5fss_cpsw9g_virt_mac0: register_ipv4 rpmsg - fail -5
    [   12.788972] am65-cpsw-nuss 46000000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
    [   12.800068] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    [   26.568621] NET: Registered protocol family 15
    [   26.604213] Initializing XFRM netlink socket
    
    journalctl.log

  • Hi,

    I see a mismatch in dts configuration of main_spi6. You have configured pinmux for CS1, but you have slave configured as CS0 ( reg = <0>;) 

    If slave is on CS1, then set: reg = <1>;
    If slave is on CS0, then pinmux is wrong and should configure SPI6_CS0 pin instead.

  • Dear Vishal

    I changed the reg=<1> but I still get the same kernel OOPS:

    ./spidev_test.o -D /dev/spidev3.0 -p slave-hello-to-master
    spi mode: 0x0
    [   79.746079] spidev spi3.0: RXS timed out
    bits per word: 8
    max speed: 500000 Hz (500 KHz)
    [   79.750314] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000
    RX | 00 40 07 4A 08 80 FF FF 00 00 00 00 00 00 00 00 00 00 00 00[   79.763346] Mem abort info:
     00 __ __ __ __ __ __ __ __ __ __ __  | .@.J.�...............
    [   79.771672]   ESR = 0x96000007
    [   79.780172]   Exception class = DABT (current EL), IL = 32 bits
    [   79.786073]   SET = 0, FnV = 0
    [   79.789113]   EA = 0, S1PTW = 0
    [   79.792240] Data abort info:
    [   79.795106]   ISV = 0, ISS = 0x00000007
    [   79.798927]   CM = 0, WnR = 0
    [   79.801881] user pgtable: 64k pages, 48-bit VAs, pgdp = 00000000080482fb
    [   79.808562] [0000000000000000] pgd=00000008ca0b0003, pud=00000008ca0b0003, pmd=00000008ca110003, pte=0000000000000000
    [   79.819147] Internal error: Oops: 96000007 [#1] PREEMPT SMP
    [   79.824700] Modules linked in: xfrm_user xfrm4_tunnel tunnel4 ipcomp xfrm_ipcomp esp4 ah4 af_key xfrm_algo pvrsrvkm(O) xhci_plat_hcd xhci_hcd usbcore pru_rproc irq_pruss_intc rpmsg_char ti_am335x_adc kfifo_buf omap_rng rng_core cdns3 roles pruss udc_core crc32_ce crct10dif_ce j721e_cpsw_virt_mac snd_soc_j721e_evm ti_k3_r5_remoteproc ti_am335x_tscadc ntb_hw_epf ntb pruss_soc_bus mhdp8546 sa2ul pci_endpoint_test ti_k3_dsp_remoteproc virtio_rpmsg_bus sha512_generic vxd_dec(O) authenc vxe_enc(O) remoteproc videobuf2_dma_sg cdns3_ti snd_soc_pcm3168a_i2c snd_soc_pcm3168a rti_wdt sch_fq_codel rpmsg_kdrv_switch jailhouse(O) cryptodev(O) cmemk(O) ipv6
    [   79.881511] Process spidev_test.o (pid: 1234, stack limit = 0x0000000071ae47a0)
    [   79.888800] CPU: 1 PID: 1234 Comm: spidev_test.o Tainted: G           O      4.19.94-g5a23bc00e0 #1
    [   79.897820] Hardware name: Texas Instruments K3 J721E SoC (DT)
    [   79.903635] pstate: a0000085 (NzCv daIf -PAN -UAO)
    [   79.908415] pc : __wake_up_common+0x58/0x170
    [   79.912670] lr : __wake_up_locked+0x18/0x20
    [   79.916835] sp : ffff00000f16fcf0
    [   79.920135] x29: ffff00000f16fcf0 x28: ffff8008497f3600
    [   79.925431] x27: 0000000000000000 x26: 0000000000000000
    [   79.930725] x25: 0000000000000001 x24: 0000000000000000
    [   79.936020] x23: 0000000000000000 x22: 0000000000000000
    [   79.941314] x21: 0000000000000003 x20: ffff80084060c0c0
    [   79.946608] x19: ffff80084060c0b8 x18: 0000000000000000
    [   79.951903] x17: 0000000000000000 x16: 0000000000000000
    [   79.957196] x15: 0000000000000000 x14: 0000000000000000
    [   79.962490] x13: 0000000000000000 x12: 0000000000000000
    [   79.967785] x11: 0000000000000000 x10: 0000000000000000
    [   79.973078] x9 : 000000000000000f x8 : 0000000000000000
    [   79.978373] x7 : ffffffffffffffe8 x6 : ffff80084a070000
    [   79.983667] x5 : 0000000000000000 x4 : 0000000000000000
    [   79.988961] x3 : 0000000000000000 x2 : 0000000000000001
    [   79.994256] x1 : 0000000000000003 x0 : 0000000000000000
    [   79.999550] Call trace:
    [   80.001989]  __wake_up_common+0x58/0x170
    [   80.005897]  __wake_up_locked+0x18/0x20
    [   80.009718]  complete+0x48/0x68
    [   80.012846]  omap2_mcspi_slave_abort+0x24/0x48
    [   80.017275]  spi_slave_abort+0x20/0x30
    [   80.021011]  spidev_release+0x44/0xb8
    [   80.024660]  __fput+0x88/0x1b0
    [   80.027700]  ____fput+0xc/0x18
    [   80.030742]  task_work_run+0x90/0xb0
    [   80.034304]  do_notify_resume+0x108/0x110
    [   80.038299]  work_pending+0x8/0x10
    [   80.041687] Code: aa0503f8 f9002bfb aa0403f7 5280001b (f9400cf3)
    [   80.047763] ---[ end trace 20eac0bf09661620 ]---
    [   80.052409] note: spidev_test.o[1234] exited with preempt_count 1
    Segmentation fault

    Thanks,

    Pouyan

  • Can you try removing the "spi-slave-time" from the compatible field?

  • Is main_spi3 functional?

  • Also, you have configured main_spi6 with property spi-slave.
    You have other threads for slave mode --> https://e2e.ti.com/support/processors/f/791/t/889123 and https://e2e.ti.com/support/processors/f/791/t/886252

    Could you combine them all in to one.

    Regards,
    Vishal

  • Hi Vishal,

    thanks for the responses:

    About the other threads I marked them as solved because at the moment I dont see any Kernel errors upon booting and the DTS files are compiled correctly.

    I tried your first suggestion for the main_spi6 which is as you correctly suggested is the slave and the result is the same kernel error. (removing the spi-slave-time).

    For your question about the main_spi3: The main_spi3 responds accordingly with zeros because it is not connected to any slave, The idea was to connect the created slave main_spi6 main_spi3 master so I can have a loop and test the SPI capabilites and my own code. But the spidev_test application dont show any Kernel OOPS when i use the spi_main3 only zeros because it is not connected to anywhere.

    ./spidev_test.o -D /dev/spidev2.1 -v            
    spi mode: 0x0
    bits per word: 8
    max speed: 500000 Hz (500 KHz)
    TX | FF FF FF FF FF FF 40 00 00 00 00 95 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF F0 0D  | ......@....�..................�.
    RX | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  | ................................

    Regards,

    Pouyan

  • Hi Pouyan,

    Can you clarify to me what you're trying to set up right now, and what issue you're seeing with it? Is the issue trying to connect main_spi6 (as slave) and main_spi3 (as master) to each other, and message between them? 

    As a note, our Linux SDK does not support or test SPI slave capabilities.

    Thanks,

    David

  • Dear David,

    yes thats the idea. I want to connect the spi6 to spi3 (Using GESI) and Transfer Messages between them. SPI Master as far as I know works but connecting to SPI slave give me the Kernel Errors you see. I think your note probably make it more clear. Is it in your ROADMAP to support SPI Slave in LinuxSDK?

    Best regards,

    Pouyan

  • Hi Pouyan,

    One suggestion is that DMA is required to support SPI slave mode, so you could try adding something like

    dmas = <&main_udmap &pdma_main_misc_g3 0 UDMA_DIR_TX>,
                            <&main_udmap &pdma_main_misc_g3 0 UDMA_DIR_RX>;
    dma-names = "tx0", "rx0";

    to the main_spi6 node.

    I'm looking into our roadmap support for now. 

    Can you also provide a full boot log and the commands you're using after enabling the DMA?

    Thanks,

    David