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.

AM625: RNG not working

Part Number: AM625

Hello,

enabling RNG on a TI AM625 based board is not working and leading to some errors:

This is the change I have in the DTS

diff --git a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi
index 510775e9a88f..3343d6ed196e 100644
--- a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi
@@ -172,35 +172,35 @@ k3_clks: clock-controller {
 
                k3_reset: reset-controller {
                        compatible = "ti,sci-reset";
                        #reset-cells = <2>;
                };
        };
 
        crypto: crypto@40900000 {
                compatible = "ti,am62-sa3ul";
                reg = <0x00 0x40900000 0x00 0x1200>;
-               power-domains = <&k3_pds 70 TI_SCI_PD_SHARED>;
+//             power-domains = <&k3_pds 70 TI_SCI_PD_SHARED>;
                #address-cells = <2>;
                #size-cells = <2>;
                ranges = <0x00 0x40900000 0x00 0x40900000 0x00 0x30000>;
 
                dmas = <&main_pktdma 0xf501 0>, <&main_pktdma 0x7506 0>,
                                <&main_pktdma 0x7507 0>;
                dma-names = "tx", "rx1", "rx2";
 
                rng: rng@40910000 {
                        compatible = "inside-secure,safexcel-eip76";
                        reg = <0x00 0x40910000 0x00 0x7d>;
                        interrupts = <GIC_SPI 129 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&k3_clks 70 0>;
-                       status = "disabled";
+//                     status = "disabled";
                };
        };
 
        mcrc: mcrc@30300000 {
                compatible = "ti,mcrc";
                reg = <0x00 0x30300000 0x00 0x1000>;
                clocks = <&k3_clks 116 0>;
                power-domains = <&k3_pds 116 TI_SCI_PD_EXCLUSIVE>;
        };
 

Here the error

[    7.828950] omap_rng 40910000.rng: Unable to enable the clk: -19
[    7.832257] remoteproc remoteproc3: 30078000.pru is available
[    7.835390] ------------[ cut here ]------------
[    7.845468] clk:70:0 already disabled
[    7.849228] WARNING: CPU: 0 PID: 223 at drivers/clk/clk.c:969 clk_core_disable+0xb0/0xb8
[    7.857323] Modules linked in: omap_rng(+) pru_rproc rng_core snd_soc_simple_card crct10dif_ce snd_soc_simple_card_utils dwc3_am62 extcon_usb_gpio ti_k3_r5_remoteproc virtio_rpmsg_bus r
ti_wdt j721e_csi2rx videobuf2_dma_contig ti_k3_m4_remoteproc videobuf2_memops sa2ul videobuf2_v4l2 sha512_generic mcrc authenc videobuf2_common cdns_dphy pruss m_can_platform m_can can_dev
 snd_soc_nau8822 ina2xx lm75 sch_fq_codel libcomposite udc_core usb_common fuse ipv6
[    7.897531] CPU: 0 PID: 223 Comm: systemd-udevd Not tainted 5.10.168-00097-g8f7291dacb2c #15
[    7.905965] Hardware name: Toradex Verdin AM62 on Verdin Development Board (DT)
[    7.913275] pstate: 60000085 (nZCv daIf -PAN -UAO -TCO BTYPE=--)
[    7.919283] pc : clk_core_disable+0xb0/0xb8
[    7.923461] lr : clk_core_disable+0xb0/0xb8
[    7.927635] sp : ffff80001161b8c0
[    7.930941] x29: ffff80001161b8c0 x28: 0000000000000100 
[    7.936246] x27: ffff8000100f7c08 x26: 0000000000000003 
[    7.941549] x25: ffff8000111a4138 x24: 0000000000000056 
[    7.946854] x23: ffff0000003d1800 x22: ffff0000003d1810 
[    7.952157] x21: ffff000003952a80 x20: ffff000000f19900 
[    7.957461] x19: ffff000000f19900 x18: 0000000000000010 
[    7.962765] x17: 0000000000000000 x16: 0000000000000000 
[    7.968068] x15: ffff000000eecc90 x14: 0000000000000172 
[    7.973371] x13: ffff000000eecc90 x12: 00000000ffffffea 
[    7.978674] x11: ffff800011160770 x10: ffff800011148730 
[    7.983977] x9 : ffff800011148788 x8 : 0000000000017fe8 
[    7.989281] x7 : c0000000ffffefff x6 : 0000000000000001 
[    7.994583] x5 : ffff00003fd7cab8 x4 : 0000000000000000 
[    7.999887] x3 : 0000000000000027 x2 : 0000000000000023 
[    8.005190] x1 : 0000000000000000 x0 : 0000000000000000 
[    8.010494] Call trace:
[    8.012936]  clk_core_disable+0xb0/0xb8
[    8.016763]  clk_core_disable_lock+0x24/0x40
[    8.021024]  clk_disable+0x20/0x30
[    8.024428]  omap_rng_probe+0x28c/0x378 [omap_rng]
[    8.029214]  platform_drv_probe+0x54/0xa8
[    8.033214]  really_probe+0xf0/0x500
[    8.036782]  driver_probe_device+0xf4/0x160
[    8.040954]  device_driver_attach+0x74/0x80
[    8.045127]  __driver_attach+0xc8/0x188
[    8.048957]  bus_for_each_dev+0x70/0xc8
[    8.052784]  driver_attach+0x24/0x30
[    8.056352]  bus_add_driver+0x144/0x230
[    8.060180]  driver_register+0x64/0x120
[    8.064006]  __platform_driver_register+0x48/0x58
[    8.068704]  omap_rng_driver_init+0x24/0x1000 [omap_rng]
[    8.074007]  do_one_initcall+0x54/0x1b8
[    8.077836]  do_init_module+0x44/0x1f0
[    8.081576]  load_module+0x21d0/0x2830
[    8.085315]  __do_sys_finit_module+0xbc/0x128
[    8.089663]  __arm64_sys_finit_module+0x20/0x30
[    8.094187]  el0_svc_common.constprop.0+0x78/0x1c8
[    8.098968]  do_el0_svc+0x24/0xa0
[    8.102278]  el0_svc+0x14/0x20
[    8.105325]  el0_sync_handler+0xb0/0xb8
[    8.109151]  el0_sync+0x180/0x1c0
[    8.112459] ---[ end trace ad859cb918a80adb ]---
[    8.117804] ------------[ cut here ]------------
[    8.122684] clk:70:0 already unprepared
[    8.128317] WARNING: CPU: 0 PID: 223 at drivers/clk/clk.c:828 clk_core_unprepare+0xf0/0x110
[    8.136720] Modules linked in: irq_pruss_intc omap_rng(+) pru_rproc rng_core snd_soc_simple_card crct10dif_ce snd_soc_simple_card_utils dwc3_am62 extcon_usb_gpio ti_k3_r5_remoteproc vir
tio_rpmsg_bus rti_wdt j721e_csi2rx videobuf2_dma_contig ti_k3_m4_remoteproc videobuf2_memops sa2ul videobuf2_v4l2 sha512_generic mcrc authenc videobuf2_common cdns_dphy pruss m_can_platfor
m m_can can_dev snd_soc_nau8822 ina2xx lm75 sch_fq_codel libcomposite udc_core usb_common fuse ipv6
[    8.178247] CPU: 0 PID: 223 Comm: systemd-udevd Tainted: G        W         5.10.168-00097-g8f7291dacb2c #15
[    8.188062] Hardware name: Toradex Verdin AM62 on Verdin Development Board (DT)
[    8.195363] pstate: 60000005 (nZCv daif -PAN -UAO -TCO BTYPE=--)
[    8.201370] pc : clk_core_unprepare+0xf0/0x110
[    8.205807] lr : clk_core_unprepare+0xf0/0x110
[    8.210241] sp : ffff80001161b8d0
[    8.213545] x29: ffff80001161b8d0 x28: 0000000000000100 
[    8.218851] x27: ffff8000100f7c08 x26: 0000000000000003 
[    8.224155] x25: ffff8000111a4138 x24: 0000000000000056 
[    8.229457] x23: ffff0000003d1800 x22: ffff0000003d1810 
[    8.234760] x21: ffff000003952a80 x20: ffff000002ad7600 
[    8.240063] x19: ffff000000f19900 x18: fffffe0000062e80 
[    8.245367] x17: 0000000000000000 x16: 0000000000000000 
[    8.250670] x15: 0000b41871b1ac84 x14: 000000000000019d 
[    8.255973] x13: 000000000000019d x12: 0000000000000000 
[    8.261276] x11: 0000000000000001 x10: 00000000000009f0 
[    8.266580] x9 : ffff80001161b600 x8 : ffff000000eed190 
[    8.271884] x7 : ffff00000351b200 x6 : 00000000000003db 
[    8.277188] x5 : 0000000000000000 x4 : ffff00003fd7cab8 
[    8.282491] x3 : ffff00003fd839f8 x2 : ffff00003fd7cab8 
[    8.287794] x1 : 0000000000000000 x0 : 0000000000000000 
[    8.293099] Call trace:
[    8.295542]  clk_core_unprepare+0xf0/0x110
[    8.299633]  clk_unprepare+0x2c/0x48
[    8.303210]  omap_rng_probe+0x294/0x378 [omap_rng]
[    8.307998]  platform_drv_probe+0x54/0xa8
[    8.311998]  really_probe+0xf0/0x500
[    8.315565]  driver_probe_device+0xf4/0x160
[    8.319738]  device_driver_attach+0x74/0x80
[    8.323913]  __driver_attach+0xc8/0x188
[    8.327744]  bus_for_each_dev+0x70/0xc8
[    8.331571]  driver_attach+0x24/0x30
[    8.335138]  bus_add_driver+0x144/0x230
[    8.338965]  driver_register+0x64/0x120
[    8.342793]  __platform_driver_register+0x48/0x58
[    8.347489]  omap_rng_driver_init+0x24/0x1000 [omap_rng]
[    8.352793]  do_one_initcall+0x54/0x1b8
[    8.356623]  do_init_module+0x44/0x1f0
[    8.360362]  load_module+0x21d0/0x2830
[    8.364102]  __do_sys_finit_module+0xbc/0x128
[    8.368449]  __arm64_sys_finit_module+0x20/0x30
[    8.372973]  el0_svc_common.constprop.0+0x78/0x1c8
[    8.377754]  do_el0_svc+0x24/0xa0
[    8.381064]  el0_svc+0x14/0x20
[    8.384109]  el0_sync_handler+0xb0/0xb8
[    8.387936]  el0_sync+0x180/0x1c0
[    8.391245] ---[ end trace ad859cb918a80adc ]---
[    8.397322] omap_rng 40910000.rng: initialization failed.

x rngd.service - Hardware RNG Entropy Gatherer Daemon
     Loaded: loaded (/lib/systemd/system/rngd.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Sat 2023-05-20 08:22:07 UTC; 11min ago
    Process: 542 ExecStart=/usr/sbin/rngd -f $EXTRA_ARGS (code=exited, status=1/FAILURE)
   Main PID: 542 (code=exited, status=1/FAILURE)

May 20 08:22:07 verdin-am62-14917616 systemd[1]: Started Hardware RNG Entropy Gatherer Daemon.
May 20 08:22:07 verdin-am62-14917616 rngd[542]: Initializing available sources
May 20 08:22:07 verdin-am62-14917616 rngd[542]: [hwrng ]: Initialization Failed
May 20 08:22:07 verdin-am62-14917616 rngd[542]: [rndr  ]: No HW SUPPORT
May 20 08:22:07 verdin-am62-14917616 rngd[542]: [rndr  ]: Initialization Failed
May 20 08:22:07 verdin-am62-14917616 rngd[542]: Can't open any entropy source
May 20 08:22:07 verdin-am62-14917616 rngd[542]: Maybe RNG device modules are not loaded
May 20 08:22:07 verdin-am62-14917616 systemd[1]: rngd.service: Main process exited, code=exited, status=1/FAILURE
May 20 08:22:07 verdin-am62-14917616 systemd[1]: rngd.service: Failed with result 'exit-code'.

And here the complete boot logs

U-Boot SPL 2021.01-6.3.0-devel+git.1095e3e7b70c (May 15 2023 - 10:06:02 +0000)
SYSFW ABI: 3.1 (firmware rev 0x0008 '8.6.4--v08.06.04 (Chill Capybar')
SPL initial stack usage: 13408 bytes
Trying to boot from MMC1
Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
Starting ATF on ARM64 core...

NOTICE:  BL31: v2.8(release):v2.8-226-g2fcd408bb3-dirty
NOTICE:  BL31: Built : 00:42:57, Jan 13 2023

U-Boot SPL 2021.01-6.3.0-devel+git.1095e3e7b70c (May 15 2023 - 10:06:02 +0000)
SYSFW ABI: 3.1 (firmware rev 0x0008 '8.6.4--v08.06.04 (Chill Capybar')
Trying to boot from MMC1


U-Boot 2021.01-6.3.0-devel+git.1095e3e7b70c (May 15 2023 - 10:06:02 +0000)

SoC:   AM62X SR1.0 GP
DRAM:  1 GiB
MMC:   mmc@fa10000: 0, mmc@fa00000: 1, mmc@fa20000: 2
Loading Environment from MMC... OK
In:    serial@2800000
Out:   serial@2800000
Err:   serial@2800000
Model: Toradex 0069 Verdin AM62 Quad 1GB WB IT V1.0A
Serial#: 14917616
Carrier: Toradex Verdin Development Board V1.1A, Serial# 10754330
am65_cpsw_nuss ethernet@8000000: K3 CPSW: nuss_ver: 0x6BA01103 cpsw_ver: 0x6BA81103 ale_ver: 0x00290105 Ports:2 mdio_freq:1000000
Net:   
Warning: ethernet@8000000port@1 MAC addresses don't match:
Address in ROM is               1c:63:49:07:f1:f8
Address in environment is       00:14:2d:e3:9f:f0
eth0: ethernet@8000000port@1
Warning: ethernet@8000000port@2 MAC addresses don't match:
Address in ROM is               1c:63:49:07:f1:f8
Address in environment is       00:14:2d:f3:9f:f0
, eth1: ethernet@8000000port@2
Hit any key to stop autoboot:  0 
MMC: no card present
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
6003 bytes read in 11 ms (532.2 KiB/s)
## Executing script at 90280000
Loading DeviceTree: k3-am625-verdin-nonwifi-dev.dtb
66480 bytes read in 14 ms (4.5 MiB/s)
155 bytes read in 9 ms (16.6 KiB/s)
Applying Overlay: verdin-am62_spidev_overlay.dtbo
560 bytes read in 9 ms (60.5 KiB/s)
7756624 bytes read in 97 ms (76.3 MiB/s)
Bootargs: root=PARTUUID=b49ad018-02 ro rootwait console=tty1 console=ttyS2,115200 consoleblank=0
   Uncompressing Kernel Image
## Flattened Device Tree blob at 90200000
   Booting using the fdt blob at 0x90200000
   Loading Device Tree to 00000000b7ec8000, end 00000000b7efbfff ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.10.168-00097-g8f7291dacb2c (francesco@francesco-nb) (aarch64-linux-gnu-gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #15 
SMP PREEMPT Thu May 25 16:53:42 CEST 2023
[    0.000000] Machine model: Toradex Verdin AM62 on Verdin Development Board
[    0.000000] efi: UEFI not found.
[    0.000000] Reserved memory: created DMA memory pool at 0x000000009c800000, size 3 MiB
[    0.000000] OF: reserved mem: initialized node ipc-memories@9c800000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x000000009cb00000, size 1 MiB
[    0.000000] OF: reserved mem: initialized node m4f-dma-memory@9cb00000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x000000009cc00000, size 14 MiB
[    0.000000] OF: reserved mem: initialized node m4f-memory@9cc00000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x000000009da00000, size 1 MiB
[    0.000000] OF: reserved mem: initialized node r5f-dma-memory@9da00000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x000000009db00000, size 12 MiB
[    0.000000] OF: reserved mem: initialized node r5f-memory@9db00000, compatible id shared-dma-pool
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000080000000-0x00000000bfffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000080000000-0x000000009c7fffff]
[    0.000000]   node   0: [mem 0x000000009c800000-0x000000009e6fffff]
[    0.000000]   node   0: [mem 0x000000009e700000-0x000000009e77ffff]
[    0.000000]   node   0: [mem 0x000000009e780000-0x000000009fffffff]
[    0.000000]   node   0: [mem 0x00000000a0000000-0x00000000bfffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000000bfffffff]
[    0.000000] cma: Reserved 128 MiB at 0x00000000afc00000
[    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.2
[    0.000000] percpu: Embedded 22 pages/cpu s51288 r8192 d30632 u90112
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] CPU features: detected: GIC system register CPU interface
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 258048
[    0.000000] Kernel command line: root=PARTUUID=b49ad018-02 ro rootwait console=tty1 console=ttyS2,115200 consoleblank=0
[    0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 820672K/1048576K available (10688K kernel code, 1262K rwdata, 4384K rodata, 2048K init, 428K bss, 96832K reserved, 131072K 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] GICv3: Distributor has no Range Selector support
[    0.000000] GICv3: 16 PPIs implemented
[    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 @80800000 (flat, esz 8, psz 64K, shr 0)
[    0.000000] ITS: using cache flushing for cmd queue
[    0.000000] GICv3: using LPI property table @0x0000000080030000
[    0.000000] GIC: using cache flushing for LPI property table
[    0.000000] GICv3: CPU0: using allocated LPI pending table @0x0000000080040000
[    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.000004] sched_clock: 56 bits at 200MHz, resolution 5ns, wraps every 4398046511102ns
[    0.000364] Console: colour dummy device 80x25
[    0.000878] printk: console [tty1] enabled
[    0.000938] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=800000)
[    0.000962] pid_max: default: 32768 minimum: 301
[    0.001060] LSM: Security Framework initializing
[    0.001130] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.001154] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.003018] rcu: Hierarchical SRCU implementation.
[    0.003640] Platform MSI: msi-controller@1820000 domain created
[    0.004033] PCI/MSI: /bus@f0000/interrupt-controller@1800000/msi-controller@1820000 domain created
[    0.004140] EFI services will not be available.
[    0.004499] smp: Bringing up secondary CPUs ...
[    0.005146] Detected VIPT I-cache on CPU1
[    0.005187] GICv3: CPU1: found redistributor 1 region 0:0x00000000018a0000
[    0.005203] GICv3: CPU1: using allocated LPI pending table @0x0000000080050000
[    0.005270] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.005951] Detected VIPT I-cache on CPU2
[    0.005978] GICv3: CPU2: found redistributor 2 region 0:0x00000000018c0000
[    0.005990] GICv3: CPU2: using allocated LPI pending table @0x0000000080060000
[    0.006026] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.006601] Detected VIPT I-cache on CPU3
[    0.006625] GICv3: CPU3: found redistributor 3 region 0:0x00000000018e0000
[    0.006635] GICv3: CPU3: using allocated LPI pending table @0x0000000080070000
[    0.006667] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.006734] smp: Brought up 1 node, 4 CPUs
[    0.006845] SMP: Total of 4 processors activated.
[    0.006857] CPU features: detected: 32-bit EL0 Support
[    0.006868] CPU features: detected: CRC32 instructions
[    0.014358] CPU: All CPU(s) started at EL2
[    0.014394] alternatives: patching kernel code
[    0.015616] devtmpfs: initialized
[    0.023587] KASLR disabled due to lack of seed
[    0.023810] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.023841] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.027855] pinctrl core: initialized pinctrl subsystem
[    0.028646] DMI not present or invalid.
[    0.029349] NET: Registered protocol family 16
[    0.031112] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[    0.031246] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.031366] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.032014] thermal_sys: Registered thermal governor 'step_wise'
[    0.032019] thermal_sys: Registered thermal governor 'power_allocator'
[    0.032500] cpuidle: using governor menu
[    0.032749] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.032864] ASID allocator initialised with 65536 entries
[    0.059535] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[    0.059577] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[    0.059589] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.059601] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[    0.060626] cryptd: max_cpu_qlen set to 1000
[    0.063624] k3-chipinfo 43000014.chipid: Family:AM62X rev:SR1.0 JTAGID[0x0bb7e02f] Detected
[    0.064230] On-module +V3.3: supplied by +V_SODIMM
[    0.066005] iommu: Default domain type: Translated 
[    0.066361] SCSI subsystem initialized
[    0.066840] mc: Linux media interface: v0.10
[    0.066874] videodev: Linux video capture interface: v2.00
[    0.066920] pps_core: LinuxPPS API ver. 1 registered
[    0.066931] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.066955] PTP clock support registered
[    0.066997] EDAC MC: Ver: 3.0.0
[    0.067677] omap-mailbox 29000000.mailbox: omap mailbox rev 0x66fc9100
[    0.068166] FPGA manager framework
[    0.068263] Advanced Linux Sound Architecture Driver Initialized.
[    0.069204] clocksource: Switched to clocksource arch_sys_counter
[    0.069417] VFS: Disk quotas dquot_6.6.0
[    0.069473] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.074890] NET: Registered protocol family 2
[    0.075115] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.076000] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes, linear)
[    0.076055] TCP established hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.076122] TCP bind hash table entries: 8192 (order: 5, 131072 bytes, linear)
[    0.076279] TCP: Hash tables configured (established 8192 bind 8192)
[    0.076457] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.076496] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.076649] NET: Registered protocol family 1
[    0.077119] RPC: Registered named UNIX socket transport module.
[    0.077137] RPC: Registered udp transport module.
[    0.077146] RPC: Registered tcp transport module.
[    0.077156] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.077171] NET: Registered protocol family 44
[    0.077229] PCI: CLS 0 bytes, default 64
[    0.078059] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[    0.081965] Initialise system trusted keyrings
[    0.082209] workingset: timestamp_bits=46 max_order=18 bucket_order=0
[    0.085848] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.086416] NFS: Registering the id_resolver key type
[    0.086464] Key type id_resolver registered
[    0.086475] Key type id_legacy registered
[    0.086542] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.086555] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    0.086760] 9p: Installing v9fs 9p2000 file system support
[    0.121904] Key type asymmetric registered
[    0.121932] Asymmetric key parser 'x509' registered
[    0.121988] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[    0.122004] io scheduler mq-deadline registered
[    0.122014] io scheduler kyber registered
[    0.124196] pinctrl-single 4084000.pinctrl: 34 pins, size 136
[    0.124665] pinctrl-single f4000.pinctrl: 171 pins, size 684
[    0.131833] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
[    0.145672] brd: module loaded
[    0.152800] loop: module loaded
[    0.153820] megasas: 07.714.04.00-rc1
[    0.156854] tun: Universal TUN/TAP device driver, 1.6
[    0.157116] igbvf: Intel(R) Gigabit Virtual Function Network Driver
[    0.157131] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[    0.158023] VFIO - User Level meta-driver version: 0.3
[    0.159130] i2c /dev entries driver
[    0.161068] sdhci: Secure Digital Host Controller Interface driver
[    0.161091] sdhci: Copyright(c) Pierre Ossman
[    0.161511] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.162608] ledtrig-cpu: registered to indicate activity on CPUs
[    0.162978] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[    0.164543] optee: probing for conduit method.
[    0.164595] optee: revision 3.20 (8e74d476)
[    0.164887] optee: dynamic shared memory is enabled
[    0.165144] optee: initialized driver
[    0.167366] NET: Registered protocol family 17
[    0.167540] 9pnet: Installing 9P2000 support
[    0.167627] Key type dns_resolver registered
[    0.168038] Loading compiled-in X.509 certificates
[    0.178038] ti-sci 44043000.system-controller: lpm region is required for suspend but not provided.
[    0.178122] ti-sci 44043000.system-controller: ABI: 3.1 (firmware rev 0x0008 '8.6.4--v08.06.04 (Chill Capybar')
[    0.214422] ti-sci-clk 44043000.system-controller:clock-controller: recalc-rate failed for dev=70, clk=0, ret=-19
[    0.237870] davinci-mcasp 2b00000.mcasp: IRQ common not found
[    0.240675] omap-gpmc 3b000000.memory-controller: GPMC revision 6.0
[    0.240719] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
[    0.243000] omap_i2c 4900000.i2c: bus 3 rev0.12 at 100 kHz
[    0.266647] +VDD_CORE (PMIC BUCK1): supplied by +V_SODIMM
[    0.267667] +V1.8 (PMIC BUCK2): supplied by +V_SODIMM
[    0.268547] +VDD_DDR (PMIC BUCK3): supplied by +V_SODIMM
[    0.269582] +V3.3_1.8_SD (PMIC LDO1): supplied by On-module +V3.3
[    0.270792] +VDDR_CORE (PMIC LDO2): supplied by +V1.8 (PMIC BUCK2)
[    0.271947] +V1.8A (PMIC LDO3): supplied by On-module +V3.3
[    0.272820] +V2.5_ETH (PMIC LDO4): supplied by On-module +V3.3
[    0.274921] input: tps65219-pwrbutton as /devices/platform/bus@f0000/20000000.i2c/i2c-0/0-0030/tps65219-pwrbutton.1.auto/input/input0
[    0.275492] tps65219 0-0030: Setup as system-power-controller but pm_power_off function already registered, overwriting
[    0.276650] rtc-ds1307 0-0032: oscillator failed, set time!
[    0.276815] rtc-ds1307 0-0032: registered as rtc0
[    0.276970] rtc-ds1307 0-0032: hctosys: unable to read the hardware clock
[    0.279010] at24 0-0050: supply vcc not found, using dummy regulator
[    0.279407] at24 0-0050: 256 byte 24c02 EEPROM, writable, 16 bytes/write
[    0.279472] omap_i2c 20000000.i2c: bus 0 rev0.12 at 400 kHz
[    0.281313] pca953x 1-0021: supply vcc not found, using dummy regulator
[    0.281461] pca953x 1-0021: using no AI
[    0.307517] at24 1-0057: supply vcc not found, using dummy regulator
[    0.308224] at24 1-0057: 256 byte 24c02 EEPROM, writable, 16 bytes/write
[    0.308287] omap_i2c 20010000.i2c: bus 1 rev0.12 at 100 kHz
[    0.309494] omap_i2c 20020000.i2c: bus 2 rev0.12 at 100 kHz
[    0.310470] omap_i2c 20030000.i2c: bus 4 rev0.12 at 100 kHz
[    0.310861] ti-sci-intr 4210000.interrupt-controller: Interrupt Router 5 domain created
[    0.311018] ti-sci-intr bus@f0000:interrupt-controller@a00000: Interrupt Router 3 domain created
[    0.311274] ti-sci-inta 48000000.interrupt-controller: Interrupt Aggregator domain 28 created
[    0.312591] ti-udma 485c0100.dma-controller: Number of rings: 82
[    0.314641] ti-udma 485c0100.dma-controller: Channels: 48 (bchan: 18, tchan: 12, rchan: 18)
[    0.317143] ti-udma 485c0000.dma-controller: Number of rings: 150
[    0.320821] ti-udma 485c0000.dma-controller: Channels: 35 (tchan: 20, rchan: 15)
[    0.323575] 4a00000.serial: ttyS3 at MMIO 0x4a00000 (irq = 15, base_baud = 3000000) is a 8250
[    0.324909] 2800000.serial: ttyS2 at MMIO 0x2800000 (irq = 29, base_baud = 3000000) is a 8250
[    1.697510] printk: console [ttyS2] enabled
[    1.703196] 2810000.serial: ttyS0 at MMIO 0x2810000 (irq = 30, base_baud = 3000000) is a 8250
[    1.720479] davinci_mdio 8000f00.mdio: Configuring MDIO in manual mode
[    1.765209] davinci_mdio 8000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
[    1.773913] am65-cpsw-nuss 8000000.ethernet: initializing am65 cpsw nuss version 0x6BA01103, cpsw version 0x6BA81103 Ports: 3 quirks:00000006
[    1.786830] am65-cpsw-nuss 8000000.ethernet: initialized cpsw ale version 1.5
[    1.793968] am65-cpsw-nuss 8000000.ethernet: ALE Table size 512
[    1.800647] am65-cpsw-nuss 8000000.ethernet: CPTS ver 0x4e8a010c, freq:500000000, add_val:1 pps:0
[    1.810965] am65-cpsw-nuss 8000000.ethernet: set new flow-id-base 19
[    1.821263] rtc-ti-k3 2b1f0000.rtc: registered as rtc1
[    1.930482] davinci-mcasp 2b00000.mcasp: IRQ common not found
[    1.930937] mmc0: CQHCI version 5.10
[    1.942452] gpio-414 (CTRL_SLEEP_MOCI#): hogged as output/high
[    1.953702] On-module +V1.2_DSI: supplied by +V1.8 (PMIC BUCK2)
[    1.960031] On-module +V1.8_DSI: supplied by +V1.8 (PMIC BUCK2)
[    1.966130] On-module +V1.0_ETH: supplied by +V1.8 (PMIC BUCK2)
[    1.972229] On-module +V1.8_ETH: supplied by +V1.8 (PMIC BUCK2)
[    1.979395] davinci_mdio 8000f00.mdio: Configuring MDIO in manual mode
[    1.981259] mmc0: SDHCI controller on fa10000.mmc [fa10000.mmc] using ADMA 64-bit
[    2.025219] davinci_mdio 8000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
[    2.039353] davinci_mdio 8000f00.mdio: phy[0]: device 8000f00.mdio:00, driver TI DP83867
[    2.047478] davinci_mdio 8000f00.mdio: phy[7]: device 8000f00.mdio:07, driver Microchip KSZ9131 Gigabit PHY
[    2.058249] debugfs: Directory 'pd:53' with parent 'pm_genpd' already present!
[    2.059089] mmc1: CQHCI version 5.10
[    2.065549] debugfs: Directory 'pd:52' with parent 'pm_genpd' already present!
[    2.076607] debugfs: Directory 'pd:51' with parent 'pm_genpd' already present!
[    2.076670] mmc0: Command Queue Engine enabled
[    2.084176] debugfs: Directory 'pd:182' with parent 'pm_genpd' already present!
[    2.088325] mmc0: new HS200 MMC card at address 0001
[    2.097915] input: gpio-keys as /devices/platform/gpio-keys/input/input1
[    2.101317] mmcblk0: mmc0:0001 S0J56X 14.8 GiB 
[    2.112205] mmcblk0boot0: mmc0:0001 S0J56X partition 1 31.5 MiB
[    2.118394] mmcblk0boot1: mmc0:0001 S0J56X partition 2 31.5 MiB
[    2.124536] mmcblk0rpmb: mmc0:0001 S0J56X partition 3 4.00 MiB, chardev (238:0)
[    2.134913] ti-sci-clk 44043000.system-controller:clock-controller: is_prepared failed for dev=70, clk=0, ret=-19
[    2.135178]  mmcblk0: p1 p2
[    2.153930] ALSA device list:
[    2.156918]   No soundcards found.
[    3.591398] sdhci-am654 fa00000.mmc: Power on failed
[    3.626985] mmc1: SDHCI controller on fa00000.mmc [fa00000.mmc] using ADMA 64-bit
[    3.642670] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    3.650880] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    3.659632] devtmpfs: mounted
[    3.664055] Freeing unused kernel memory: 2048K
[    3.669279] Run /sbin/init as init process
[    3.765371] systemd[1]: System time before build time, advancing clock.
[    3.954131] NET: Registered protocol family 10
[    3.959819] Segment Routing with IPv6
[    3.980153] systemd[1]: systemd 250.5+ 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 -BZIP2 -LZ4 -XZ -ZLIB +ZSTD -BPF_FRAMEWORK +XKBCOMMON +UTMP +SYSVINIT default-hierarchy=hybrid)
[    4.012132] systemd[1]: Detected architecture arm64.

Welcome to TDX Wayland with XWayland 6.3.0-devel-20230518+build.289 (kirkstone)!

[    4.065849] systemd[1]: Hostname set to <verdin-am62-14917616>.
[    4.385410] systemd[1]: Queued start job for default target Graphical Interface.
[    4.436178] systemd[1]: Created slice Slice /system/getty.
[  OK  ] Created slice Slice /system/getty.
[    4.459509] systemd[1]: Created slice Slice /system/modprobe.
[  OK  ] Created slice Slice /system/modprobe.
[    4.483373] systemd[1]: Created slice Slice /system/serial-getty.
[  OK  ] Created slice Slice /system/serial-getty.
[    4.507047] systemd[1]: Created slice User and Session Slice.
[  OK  ] Created slice User and Session Slice.
[    4.529748] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Started Dispatch Password �…ts to Console Directory Watch.
[    4.553537] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Started Forward Password R�…uests to Wall Directory Watch.
[    4.577548] systemd[1]: Reached target Host and Network Name Lookups.
[  OK  ] Reached target Host and Network Name Lookups.
[    4.601333] systemd[1]: Reached target Path Units.
[  OK  ] Reached target Path Units.
[    4.617345] systemd[1]: Reached target Remote File Systems.
[  OK  ] Reached target Remote File Systems.
[    4.637323] systemd[1]: Reached target Slice Units.
[  OK  ] Reached target Slice Units.
[    4.653346] systemd[1]: Reached target Swaps.
[  OK  ] Reached target Swaps.
[    4.690963] systemd[1]: Listening on RPCbind Server Activation Socket.
[  OK  ] Listening on RPCbind Server Activation Socket.
[    4.713541] systemd[1]: Reached target RPC Port Mapper.
[  OK  ] Reached target RPC Port Mapper.
[    4.734100] systemd[1]: Listening on Syslog Socket.
[  OK  ] Listening on Syslog Socket.
[    4.749733] systemd[1]: Listening on initctl Compatibility Named Pipe.
[  OK  ] Listening on initctl Compatibility Named Pipe.
[    4.777361] systemd[1]: Journal Audit Socket was skipped because of a failed condition check (ConditionSecurity=audit).
[    4.789035] systemd[1]: Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket (/dev/log).
[    4.810036] systemd[1]: Listening on Journal Socket.
[  OK  ] Listening on Journal Socket.
[    4.826171] systemd[1]: Listening on Network Service Netlink Socket.
[  OK  ] Listening on Network Service Netlink Socket.
[    4.850071] systemd[1]: Listening on udev Control Socket.
[  OK  ] Listening on udev Control Socket.
[    4.873804] systemd[1]: Listening on udev Kernel Socket.
[  OK  ] Listening on udev Kernel Socket.
[    4.893919] systemd[1]: Listening on User Database Manager Socket.
[  OK  ] Listening on User Database Manager Socket.
[    4.921648] systemd[1]: Mounting Huge Pages File System...
         Mounting Huge Pages File System...
[    4.941703] systemd[1]: Mounting POSIX Message Queue File System...
         Mounting POSIX Message Queue File System...
[    4.969688] systemd[1]: Mounting Kernel Debug File System...
         Mounting Kernel Debug File System...
[    4.993855] systemd[1]: Kernel Trace File System was skipped because of a failed condition check (ConditionPathExists=/sys/kernel/tracing).
[    5.014919] systemd[1]: Mounting Temporary Directory /tmp...
         Mounting Temporary Directory /tmp...
[    5.035091] systemd[1]: Starting Create List of Static Device Nodes...
         Starting Create List of Static Device Nodes...
[    5.062233] systemd[1]: Starting Load Kernel Module configfs...
         Starting Load Kernel Module configfs...
[    5.082423] systemd[1]: Starting Load Kernel Module drm...
         Starting Load Kernel Module drm...
[    5.102074] systemd[1]: Starting Load Kernel Module fuse...
         Starting Load Kernel Module fuse...
[    5.130714] systemd[1]: Starting RPC Bind...
         Starting RPC Bind...
[    5.142192] fuse: init (API version 7.32)
[    5.151889] systemd[1]: Starting File System Check on Root Device...
         Starting File System Check on Root Device...
[    5.180990] systemd[1]: Starting Journal Service...
         Starting Journal Service...
[    5.197698] systemd[1]: Starting Load Kernel Modules...
         Starting Load Kernel Modules...
[    5.210153] systemd[1]: Starting Generate network units from Kernel command line...
         Starting Generate network �…ts from Kernel command line...
[    5.225657] systemd[1]: Starting Coldplug All udev Devices...
         Starting Coldplug All udev Devices...
[    5.253349] systemd[1]: Started RPC Bind.
[  OK  ] Started RPC Bind.
[    5.274631] systemd[1]: Mounted Huge Pages File System.
[  OK  ] Mounted Huge Pages File System.
[    5.302222] systemd[1]: Mounted POSIX Message Queue File System.
[  OK  ] Mounted POSIX Message Queue File System.
[    5.326261] systemd[1]: Started Journal Service.
[  OK  ] Started Journal Service.
[  OK  ] Mounted Kernel Debug File System.
[  OK  ] Mounted Temporary Directory /tmp.
[  OK  ] Finished Create List of Static Device Nodes.
[  OK  ] Finished Load Kernel Module configfs.
[  OK  ] Finished Load Kernel Module drm.
[  OK  ] Finished Load Kernel Module fuse.
[  OK  ] Finished File System Check on Root Device.
[  OK  ] Finished Load Kernel Modules.
[  OK  ] Finished Generate network units from Kernel command line.
         Mounting FUSE Control File System...
         Mounting Kernel Configuration File System...
         Starting Remount Root and Kernel File Systems...
         Starting Apply Kernel Variables...
[    5.585422] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[  OK  ] Mounted FUSE Control File System.
[  OK  ] Mounted Kernel Configuration File System.
[  OK  ] Finished Remount Root and Kernel File Systems.
[  OK  ] Finished Apply Kernel Variables.
         Starting Flush Journal to Persistent Storage...
[    5.700298] systemd-journald[200]: Received client request to flush runtime journal.
         Starting Create Static Device Nodes in /dev...
[  OK  ] Finished Flush Journal to Persistent Storage.
[  OK  ] Finished Create Static Device Nodes in /dev.
[  OK  ] Reached target Preparation for Local File Systems.
         Mounting /var/volatile...
         Starting Rule-based Manage�…for Device Events and Files...
[  OK  ] Finished Coldplug All udev Devices.
[  OK  ] Mounted /var/volatile.
         Starting Wait for udev To �…plete Device Initialization...
         Starting Load/Save Random Seed...
[  OK  ] Reached target Local File Systems.
         Starting Create Volatile Files and Directories...
[  OK  ] Started Rule-based Manager for Device Events and Files.
[  OK  ] Finished Create Volatile Files and Directories.
         Starting Network Time Synchronization...
         Starting Record System Boot/Shutdown in UTMP...
[  OK  ] Finished Record System Boot/Shutdown in UTMP.
[    6.296399] lm75 0-0048: supply vs not found, using dummy regulator
[    6.323505] ina2xx 1-0040: power monitor ina219 (Rshunt = 10000 uOhm)
[    6.327678] hwmon hwmon1: temp1_input not attached to any thermal zone
[    6.339228] lm75 0-0048: hwmon1: sensor 'tmp1075'
[    6.345802] lm75 1-004f: supply vs not found, using dummy regulator
[    6.361922] hwmon hwmon2: temp1_input not attached to any thermal zone
[    6.368629] lm75 1-004f: hwmon2: sensor 'tmp75c'
[    6.389118] CAN device driver interface
[    6.450034] m_can_platform 20701000.can: m_can device registered (irq=44, version=32)
[    6.536854] systemd-journald[200]: Oldest entry in /run/log/journal/3bbcba0502d64fd8836e11adf551d470/system.journal is older than the configured file retention duration (1month), sugges
ting rotation.
[  OK  ] Started Network Time Synchronizatio[    6.563084] systemd-journald[200]: /run/log/journal/3bbcba0502d64fd8836e11adf551d470/system.journal: Journal header limits reached or header 
out-of-date, rotating.
n.
[  OK  ] Reached target System Time Set.
[    6.628645] k3-m4-rproc 5000000.m4fss: assigned reserved memory node m4f-dma-memory@9cb00000
[    6.641019] k3-m4-rproc 5000000.m4fss: configured M4 for remoteproc mode
[    6.652740] k3-m4-rproc 5000000.m4fss: local reset is deasserted for device
[    6.669623] remoteproc remoteproc0: 5000000.m4fss is available
[    6.684841] remoteproc remoteproc0: Direct firmware load for am62-mcu-m4f0_0-fw failed with error -2
[    6.694135] remoteproc remoteproc0: powering up 5000000.m4fss
[    6.703619] remoteproc remoteproc0: Direct firmware load for am62-mcu-m4f0_0-fw failed with error -2
[    6.713186] remoteproc remoteproc0: request_firmware failed: -2
[    6.771073] platform 78000000.r5f: R5F core may have been powered on by a different host, programmed state (0) != actual state (1)
[    6.784928] platform 78000000.r5f: configured R5F for IPC-only mode
[    6.793328] platform 78000000.r5f: assigned reserved memory node r5f-dma-memory@9da00000
[    6.810681] remoteproc remoteproc1: 78000000.r5f is available
[    6.819748] remoteproc remoteproc1: attaching to 78000000.r5f
[    6.832575] platform 78000000.r5f: R5F core initialized in IPC-only mode
[    6.841707]  remoteproc1#vdev0buffer: assigned reserved memory node r5f-dma-memory@9da00000
[    6.854198] virtio_rpmsg_bus virtio0: rpmsg host is online
[    6.854860] virtio_rpmsg_bus virtio0: creating channel ti.ipc4.ping-pong addr 0xd
[    6.869374]  remoteproc1#vdev0buffer: registered virtio0 (type 7)
[    6.871477] virtio_rpmsg_bus virtio0: creating channel rpmsg_chrdev addr 0xe
[    6.877928] remoteproc remoteproc1: remote processor 78000000.r5f is now attached
[    7.721271] random: crng init done
[  OK  ] Finished Load/Save Random Seed.
[    7.821618] remoteproc remoteproc2: 30074000.pru is available
[    7.828950] omap_rng 40910000.rng: Unable to enable the clk: -19
[    7.832257] remoteproc remoteproc3: 30078000.pru is available
[    7.835390] ------------[ cut here ]------------
[    7.845468] clk:70:0 already disabled
[    7.849228] WARNING: CPU: 0 PID: 223 at drivers/clk/clk.c:969 clk_core_disable+0xb0/0xb8
[    7.857323] Modules linked in: omap_rng(+) pru_rproc rng_core snd_soc_simple_card crct10dif_ce snd_soc_simple_card_utils dwc3_am62 extcon_usb_gpio ti_k3_r5_remoteproc virtio_rpmsg_bus r
ti_wdt j721e_csi2rx videobuf2_dma_contig ti_k3_m4_remoteproc videobuf2_memops sa2ul videobuf2_v4l2 sha512_generic mcrc authenc videobuf2_common cdns_dphy pruss m_can_platform m_can can_dev
 snd_soc_nau8822 ina2xx lm75 sch_fq_codel libcomposite udc_core usb_common fuse ipv6
[    7.897531] CPU: 0 PID: 223 Comm: systemd-udevd Not tainted 5.10.168-00097-g8f7291dacb2c #15
[    7.905965] Hardware name: Toradex Verdin AM62 on Verdin Development Board (DT)
[    7.913275] pstate: 60000085 (nZCv daIf -PAN -UAO -TCO BTYPE=--)
[    7.919283] pc : clk_core_disable+0xb0/0xb8
[    7.923461] lr : clk_core_disable+0xb0/0xb8
[    7.927635] sp : ffff80001161b8c0
[    7.930941] x29: ffff80001161b8c0 x28: 0000000000000100 
[    7.936246] x27: ffff8000100f7c08 x26: 0000000000000003 
[    7.941549] x25: ffff8000111a4138 x24: 0000000000000056 
[    7.946854] x23: ffff0000003d1800 x22: ffff0000003d1810 
[    7.952157] x21: ffff000003952a80 x20: ffff000000f19900 
[    7.957461] x19: ffff000000f19900 x18: 0000000000000010 
[    7.962765] x17: 0000000000000000 x16: 0000000000000000 
[    7.968068] x15: ffff000000eecc90 x14: 0000000000000172 
[    7.973371] x13: ffff000000eecc90 x12: 00000000ffffffea 
[    7.978674] x11: ffff800011160770 x10: ffff800011148730 
[    7.983977] x9 : ffff800011148788 x8 : 0000000000017fe8 
[    7.989281] x7 : c0000000ffffefff x6 : 0000000000000001 
[    7.994583] x5 : ffff00003fd7cab8 x4 : 0000000000000000 
[    7.999887] x3 : 0000000000000027 x2 : 0000000000000023 
[    8.005190] x1 : 0000000000000000 x0 : 0000000000000000 
[    8.010494] Call trace:
[    8.012936]  clk_core_disable+0xb0/0xb8
[    8.016763]  clk_core_disable_lock+0x24/0x40
[    8.021024]  clk_disable+0x20/0x30
[    8.024428]  omap_rng_probe+0x28c/0x378 [omap_rng]
[    8.029214]  platform_drv_probe+0x54/0xa8
[    8.033214]  really_probe+0xf0/0x500
[    8.036782]  driver_probe_device+0xf4/0x160
[    8.040954]  device_driver_attach+0x74/0x80
[    8.045127]  __driver_attach+0xc8/0x188
[    8.048957]  bus_for_each_dev+0x70/0xc8
[    8.052784]  driver_attach+0x24/0x30
[    8.056352]  bus_add_driver+0x144/0x230
[    8.060180]  driver_register+0x64/0x120
[    8.064006]  __platform_driver_register+0x48/0x58
[    8.068704]  omap_rng_driver_init+0x24/0x1000 [omap_rng]
[    8.074007]  do_one_initcall+0x54/0x1b8
[    8.077836]  do_init_module+0x44/0x1f0
[    8.081576]  load_module+0x21d0/0x2830
[    8.085315]  __do_sys_finit_module+0xbc/0x128
[    8.089663]  __arm64_sys_finit_module+0x20/0x30
[    8.094187]  el0_svc_common.constprop.0+0x78/0x1c8
[    8.098968]  do_el0_svc+0x24/0xa0
[    8.102278]  el0_svc+0x14/0x20
[    8.105325]  el0_sync_handler+0xb0/0xb8
[    8.109151]  el0_sync+0x180/0x1c0
[    8.112459] ---[ end trace ad859cb918a80adb ]---
[    8.117804] ------------[ cut here ]------------
[    8.122684] clk:70:0 already unprepared
[    8.128317] WARNING: CPU: 0 PID: 223 at drivers/clk/clk.c:828 clk_core_unprepare+0xf0/0x110
[    8.136720] Modules linked in: irq_pruss_intc omap_rng(+) pru_rproc rng_core snd_soc_simple_card crct10dif_ce snd_soc_simple_card_utils dwc3_am62 extcon_usb_gpio ti_k3_r5_remoteproc vir
tio_rpmsg_bus rti_wdt j721e_csi2rx videobuf2_dma_contig ti_k3_m4_remoteproc videobuf2_memops sa2ul videobuf2_v4l2 sha512_generic mcrc authenc videobuf2_common cdns_dphy pruss m_can_platfor
m m_can can_dev snd_soc_nau8822 ina2xx lm75 sch_fq_codel libcomposite udc_core usb_common fuse ipv6
[    8.178247] CPU: 0 PID: 223 Comm: systemd-udevd Tainted: G        W         5.10.168-00097-g8f7291dacb2c #15
[    8.188062] Hardware name: Toradex Verdin AM62 on Verdin Development Board (DT)
[    8.195363] pstate: 60000005 (nZCv daif -PAN -UAO -TCO BTYPE=--)
[    8.201370] pc : clk_core_unprepare+0xf0/0x110
[    8.205807] lr : clk_core_unprepare+0xf0/0x110
[    8.210241] sp : ffff80001161b8d0
[    8.213545] x29: ffff80001161b8d0 x28: 0000000000000100 
[    8.218851] x27: ffff8000100f7c08 x26: 0000000000000003 
[    8.224155] x25: ffff8000111a4138 x24: 0000000000000056 
[    8.229457] x23: ffff0000003d1800 x22: ffff0000003d1810 
[    8.234760] x21: ffff000003952a80 x20: ffff000002ad7600 
[    8.240063] x19: ffff000000f19900 x18: fffffe0000062e80 
[    8.245367] x17: 0000000000000000 x16: 0000000000000000 
[    8.250670] x15: 0000b41871b1ac84 x14: 000000000000019d 
[    8.255973] x13: 000000000000019d x12: 0000000000000000 
[    8.261276] x11: 0000000000000001 x10: 00000000000009f0 
[    8.266580] x9 : ffff80001161b600 x8 : ffff000000eed190 
[    8.271884] x7 : ffff00000351b200 x6 : 00000000000003db 
[    8.277188] x5 : 0000000000000000 x4 : ffff00003fd7cab8 
[    8.282491] x3 : ffff00003fd839f8 x2 : ffff00003fd7cab8 
[    8.287794] x1 : 0000000000000000 x0 : 0000000000000000 
[    8.293099] Call trace:
[    8.295542]  clk_core_unprepare+0xf0/0x110
[    8.299633]  clk_unprepare+0x2c/0x48
[    8.303210]  omap_rng_probe+0x294/0x378 [omap_rng]
[    8.307998]  platform_drv_probe+0x54/0xa8
[    8.311998]  really_probe+0xf0/0x500
[    8.315565]  driver_probe_device+0xf4/0x160
[    8.319738]  device_driver_attach+0x74/0x80
[    8.323913]  __driver_attach+0xc8/0x188
[    8.327744]  bus_for_each_dev+0x70/0xc8
[    8.331571]  driver_attach+0x24/0x30
[    8.335138]  bus_add_driver+0x144/0x230
[    8.338965]  driver_register+0x64/0x120
[    8.342793]  __platform_driver_register+0x48/0x58
[    8.347489]  omap_rng_driver_init+0x24/0x1000 [omap_rng]
[    8.352793]  do_one_initcall+0x54/0x1b8
[    8.356623]  do_init_module+0x44/0x1f0
[    8.360362]  load_module+0x21d0/0x2830
[    8.364102]  __do_sys_finit_module+0xbc/0x128
[    8.368449]  __arm64_sys_finit_module+0x20/0x30
[    8.372973]  el0_svc_common.constprop.0+0x78/0x1c8
[    8.377754]  do_el0_svc+0x24/0xa0
[    8.381064]  el0_svc+0x14/0x20
[    8.384109]  el0_sync_handler+0xb0/0xb8
[    8.387936]  el0_sync+0x180/0x1c0
[    8.391245] ---[ end trace ad859cb918a80adc ]---
[    8.397322] omap_rng 40910000.rng: initialization failed.
[    8.429764] cdns-csi2rx: probe of 30101000.csi-bridge failed with error -22
[    8.447456] dwc3 31000000.usb: Configuration mismatch. dr_mode forced to gadget
[    8.543305] usbcore: registered new interface driver usbfs
[    8.549172] usbcore: registered new interface driver hub
[    8.554849] usbcore: registered new device driver usb
[    8.600987] xhci-hcd xhci-hcd.3.auto: xHCI Host Controller
[    8.606624] xhci-hcd xhci-hcd.3.auto: new USB bus registered, assigned bus number 1
[    8.614613] xhci-hcd xhci-hcd.3.auto: hcc params 0x0258fe6d hci version 0x110 quirks 0x0000000000010010
[    8.624270] xhci-hcd xhci-hcd.3.auto: irq 552, io mem 0x31100000
[    8.630700] xhci-hcd xhci-hcd.3.auto: xHCI Host Controller
[    8.636410] xhci-hcd xhci-hcd.3.auto: new USB bus registered, assigned bus number 2
[    8.644183] xhci-hcd xhci-hcd.3.auto: Host supports USB 3.0 SuperSpeed
[    8.650972] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[    8.659359] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.666755] usb usb1: Product: xHCI Host Controller
[    8.671752] usb usb1: Manufacturer: Linux 5.10.168-00097-g8f7291dacb2c xhci-hcd
[    8.679182] usb usb1: SerialNumber: xhci-hcd.3.auto
[    8.684989] hub 1-0:1.0: USB hub found
[    8.688892] hub 1-0:1.0: 1 port detected
[    8.693757] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    8.702141] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.10
[    8.710506] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.717834] usb usb2: Product: xHCI Host Controller
[    8.722870] usb usb2: Manufacturer: Linux 5.10.168-00097-g8f7291dacb2c xhci-hcd
[    8.730238] usb usb2: SerialNumber: xhci-hcd.3.auto
[    8.736190] hub 2-0:1.0: USB hub found
[    8.740168] hub 2-0:1.0: config failed, hub doesn't have any ports! (err -19)
[  OK  ] Created slice Slice /system/systemd-fsck.
[    8.949295] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[  OK  ] Found device /dev/mmcblk0p1.
[  OK  ] Finished Wait for udev To Complete Device Initialization.
[  OK  ] Started Hardware RNG Entropy Gatherer Daemon.
[  OK  ] Reached target System Initialization.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Reached target Timer Units.
[  OK  ] Listening on Avahi mDNS/DNS-SD Stac[    9.101869] usb 1-1: New USB device found, idVendor=0424, idProduct=2744, bcdDevice= 2.21
k Activation Socket.
[    9.112420] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    9.121745] usb 1-1: Product: USB2744
[    9.125487] usb 1-1: Manufacturer: Microchip Tech
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Listening on dropbear.socket.
[  OK  ] Listening on GPS (Global P�…ioning System) Daemon Sockets.
[    9.195317] hub 1-1:1.0: USB hub found
[    9.199291] hub 1-1:1.0: 4 ports detected
         Starting Weston socket...
         Starting File System Check on /dev/mmcblk0p1...
[  OK  ] Listening on Weston socket.
[  OK  ] Reached target Socket Units.
[  OK  ] Reached target Basic System.
         Starting Save/Restore Sound Card State...
[  OK  ] Started Kernel Logging Service.
[  OK  ] Started System Logging Service.
         Starting D-Bus System Message Bus...
         Starting IPv6 Packet Filtering Framework...
         Starting IPv4 Packet Filtering Framework...
         Starting Telephony service...
         Starting User Login Management...
[  OK  ] Started Timestamping service.
         Starting Load default USB gadget schema g1.schema...
[  OK  ] Finished File System Check on /dev/mmcblk0p1.
[  OK  ] Started D-Bus System Message Bus.
[  OK  ] Finished Save/Restore Sound Card State.
[  OK  ] Finished IPv6 Packet Filtering Framework.
[  OK  ] Finished IPv4 Packet Filtering Framework.
[  OK  ] Reached target Preparation for Network.
[  OK  ] Reached target Sound Card.
[    9.549342] usb 1-1.2: new full-speed USB device number 3 using xhci-hcd
[    9.553508] Bluetooth: Core ver 2.22
[    9.559922] NET: Registered protocol family 31
[    9.565184] Bluetooth: HCI device and connection manager initialized
[    9.565431] Bluetooth: HCI socket layer initialized
[    9.565442] Bluetooth: L2CAP socket layer initialized
[    9.565480] Bluetooth: SCO socket layer initialized
[    9.586468] using random self ethernet address
[  OK  ] Listening on Load/Save RF �…itch S[    9.594067] using random host ethernet address
tatus /dev/rfkill Watch.
         Mounting /media/BOOT-mmcblk0p1...
         Starting Connection service...
[    9.661102] usb 1-1.2: New USB device found, idVendor=046d, idProduct=c52b, bcdDevice=24.00
[    9.669814] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    9.669822] usb 1-1.2: Product: USB Receiver
[    9.669826] usb 1-1.2: Manufacturer: Logitech
[  OK  ] Mounted /media/BOOT-mmcblk0p1.
[  OK  ] Started Telephony service.
         Mounting /boot...
[  OK  ] Mounted /boot.
[    9.782767] usb0: HOST MAC 62:2c:14:fe:63:53
[    9.782777] usb0: MAC 62:d0:d8:13:63:9e
[  OK  ] Finished Load default USB gadget schema g1.schema.
[  OK  ] Started User Login Management.
[    9.834097] input: Logitech USB Receiver as /devices/platform/bus@f0000/f910000.dwc3-usb/31100000.usb/xhci-hcd.3.auto/usb1/1-1/1-1.2/1-1.2:1.0/0003:046D:C52B.0001/input/input2
[  OK  ] Started Connection service.
[    9.864633] usb 1-1.4: new high-speed USB device number 4 using xhci-hcd
[  OK  ] Reached target Hardware activated USB gadget.
[    9.910322] hid-generic 0003:046D:C52B.0001: input: USB HID v1.11 Keyboard [Logitech USB Receiver] on usb-xhci-hcd.3.auto-1.2/input0
         Starting Avahi mDNS/DNS-SD Stack...
[    9.929563] input: Logitech USB Receiver Mouse as /devices/platform/bus@f0000/f910000.dwc3-usb/31100000.usb/xhci-hcd.3.auto/usb1/1-1/1-1.2/1-1.2:1.1/0003:046D:C52B.0002/input/input3
         Starting Network Configuration...
[    9.947656] input: Logitech USB Receiver Consumer Control as /devices/platform/bus@f0000/f910000.dwc3-usb/31100000.usb/xhci-hcd.3.auto/usb1/1-1/1-1.2/1-1.2:1.1/0003:046D:C52B.0002/input
/input4
[    9.970224] usb 1-1.4: New USB device found, idVendor=0424, idProduct=2740, bcdDevice= 2.00
[    9.978804] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    9.990898] usb 1-1.4: Product: Hub Controller
[    9.996428] usb 1-1.4: Manufacturer: Microchip Tech
[    9.997845] am65-cpsw-nuss 8000000.ethernet eth0: PHY [8000f00.mdio:00] driver [TI DP83867] (irq=375)
         Starting WPA supplicant...
[   10.016975] am65-cpsw-nuss 8000000.ethernet eth0: configuring for phy/rgmii-rxid link mode
[   10.035304] input: Logitech USB Receiver System Control as /devices/platform/bus@f0000/f910000.dwc3-usb/31100000.usb/xhci-hcd.3.auto/usb1/1-1/1-1.2/1-1.2:1.1/0003:046D:C52B.0002/input/i
nput5
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
[   10.059324] hid-generic 0003:046D:C52B.0002: input,hiddev96: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-xhci-hcd.3.auto-1.2/input1
[   10.072205] am65-cpsw-nuss 8000000.ethernet eth1: PHY [8000f00.mdio:07] driver [Microchip KSZ9131 Gigabit PHY] (irq=388)
[   10.084719] am65-cpsw-nuss 8000000.ethernet eth1: configuring for phy/rgmii-rxid link mode
         Starting Hostname Service...
[   10.100202] hid-generic 0003:046D:C52B.0003: hiddev97: USB HID v1.11 Device [Logitech USB Receiver] on usb-xhci-hcd.3.auto-1.2/input2
[   10.115105] usbcore: registered new interface driver usbhid
[   10.123108] usbhid: USB HID core driver
[  OK  ] Started WPA supplicant.
[   10.354488] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[   10.371568] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[  OK  ] Started Network Configuration.
[  OK  ] Reached target Network.
[  OK  ] Started NFS status monitor for NFSv2/3 locking..
         Starting Permit User Sessions...
[  OK  ] Finished Permit User Sessions.
[  OK  ] Started Getty on tty1.
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Started Serial Getty on ttyS2.
[  OK  ] Reached target Login Prompts.
[  OK  ] Reached target Multi-User System.
         Starting Weston, a Wayland�…ositor, as a system service...
[  OK  ] Started Hostname Service.
         Starting User Database Manager...
[   10.813953] IPv6: ADDRCONF(NETDEV_CHANGE): usb0: link becomes ready
[  OK  ] Started User Database Manager.
[  OK  ] Created slice User Slice of UID 0.
         Starting User Runtime Directory /run/user/0...
[  OK  ] Finished User Runtime Directory /run/user/0.
         Starting User Manager for UID 0...
[  OK  ] Started User Manager for UID 0.
[  OK  ] Started Session c1 of User root.
[FAILED] Failed to start Weston, a �…mpositor, as a system service.
See 'systemctl status weston.service' for details.
[DEPEND] Dependency failed for Start a wayland application.
[  OK  ] Reached target Graphical Interface.
         Starting Record Runlevel Change in UTMP...
[  OK  ] Finished Record Runlevel Change in UTMP.

  • Hi,

    +//             power-domains = <&k3_pds 70 TI_SCI_PD_SHARED>;

    Why do you have to remove this DT property?

  • I assume for this reason: https://lore.kernel.org/all/20230417133308.1990057-1-kamlesh@ti.com/

    For sure if I do not remove the property the crypto node is not probed correctly, it just EPROBE_DEFER forever.

    root@verdin-am62-14917616:~# cat /sys/kernel/debug/devices_deferred 
    40900000.crypto
    

    Should I do something different there?

  • Okay, I will try to reproduce it next week and get back to you.

  • Any update? Can you confirm that this is a generic issue affecting also TI EVM and not specific of my integration?

  • Hi,

    +//             power-domains = <&k3_pds 70 TI_SCI_PD_SHARED>;

    You likely shouldn't remove this line, it is needed to enable power for the crypto module. However, the index '70' is not listed in the TI SCI user's guide, which makes me wonder if the crypto module is accessible in Linux.

    I will look into this and get back to you once I have an update.

  • With the power domain present the crypto driver never probes, as I wrote.

    Despite that I tested without this change and nothing change.

    from Vignesh Raghavendra <vigneshr@ti.com>, in lore.kernel.org/.../

    newer firmware seems to hate SA3UL PD control
    requests. But older firmwares just ignored the call as the SA3UL PD is
    on by default. So as such, this DT patch alone wont break
    forward/backward compatibility.


  • Hi,

    from Vignesh Raghavendra <vigneshr@ti.com>, in lore.kernel.org/.../

    Thanks for the note. Now I understand why this DT node should be removed.

    I will check internally to understand if crypto driver should be probed with this DT change. I will keep you posted.

  • Hi,

    Your link to the kernel community conversation hinted me to the solution, the "clocks" property in the rng node should be removed too. Please see the full DT patch below.

    diff --git a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi
    index 510775e9a88f..1b313b54908a 100644
    --- a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi
    +++ b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi
    @@ -179,7 +179,6 @@ k3_reset: reset-controller {
            crypto: crypto@40900000 {
                    compatible = "ti,am62-sa3ul";
                    reg = <0x00 0x40900000 0x00 0x1200>;
    -               power-domains = <&k3_pds 70 TI_SCI_PD_SHARED>;
                    #address-cells = <2>;
                    #size-cells = <2>;
                    ranges = <0x00 0x40900000 0x00 0x40900000 0x00 0x30000>;
    @@ -192,8 +191,6 @@ rng: rng@40910000 {
                            compatible = "inside-secure,safexcel-eip76";
                            reg = <0x00 0x40910000 0x00 0x7d>;
                            interrupts = <GIC_SPI 129 IRQ_TYPE_LEVEL_HIGH>;
    -                       clocks = <&k3_clks 70 0>;
    -                       status = "disabled";
                    };
            };

  • Thanks, from a quick test it solves the issue I reported.

    Just a couple of additional question

    1. can you explain the reason why removing this clock is required?

    2. what's your plan to integrate this fix into the TI Linux Kernel (v6.1 or v5.10)?

    3. what's your plan to integrate HW RNG support into the mainline Linux Kernel?

  • Hi,

    1. can you explain the reason why removing this clock is required?

    It is the same reason as Vignesh commented for removing the "power-domains" property, the DM firmware already enabled the power domain and clock for the Crypto module, and it doesn't like the kernel driver to request for "clocks" either.

    2. what's your plan to integrate this fix into the TI Linux Kernel (v6.1 or v5.10)?

    I will file a bug ticket to our sw dev team to get the issue fixed in TI kernel v6.1.

    3. what's your plan to integrate HW RNG support into the mainline Linux Kernel?

    I will ask our sw dev team on this and get back to you.