OP-TEE / optee_os

Trusted side of the TEE
Other
1.56k stars 1.05k forks source link

How to enable only one core for running OPTEE OS on hikey960 board? #6372

Closed qianfei11 closed 10 months ago

qianfei11 commented 11 months ago

I tried to edit $(call force,CFG_TEE_CORE_NB_CORE,8) to $(call force,CFG_TEE_CORE_NB_CORE,1), but the operating system will stuck at some point of booting process. Looks like linux tried to wake up another seven cores, but failed. Is this something related to SMP?

...
[    0.111583] smp: Bringing up secondary CPUs ...
[    5.142210] CPU1: failed to come online
[    5.146114] CPU1: failed in unknown state : 0x0
[   10.268724] CPU2: failed to come online
[   10.272625] CPU2: failed in unknown state : 0x0
[   15.395239] CPU3: failed to come online
[   15.399141] CPU3: failed in unknown state : 0x0
[   20.521581] CPU4: failed to come online
[   20.525457] CPU4: failed in unknown state : 0x0
[   25.647951] CPU5: failed to come online
[   25.651827] CPU5: failed in unknown state : 0x0
[   30.774298] CPU6: failed to come online
[   30.778174] CPU6: failed in unknown state : 0x0
[   35.900675] CPU7: failed to come online
[   35.904551] CPU7: failed in unknown state : 0x0
[   35.909175] smp: Brought up 1 node, 1 CPU
[   35.913237] SMP: Total of 1 processors activated.
[   35.918003] CPU features: detected: 32-bit EL0 Support
[   35.923199] CPU features: detected: 32-bit EL1 Support
[   35.928398] CPU features: detected: CRC32 instructions
[   35.933663] CPU: All CPU(s) started at EL2
[   35.937821] alternatives: applying system-wide alternatives
[   35.945229] devtmpfs: initialized
[   35.955632] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[   35.965591] futex hash table entries: 2048 (order: 5, 131072 bytes, linear)
[   35.973909] pinctrl core: initialized pinctrl subsystem
[   35.981217] DMI not present or invalid.
[   35.985697] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[   35.992446] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
[   35.999687] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[   36.007650] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[   36.015705] audit: initializing netlink subsys (disabled)
[   36.022533] thermal_sys: Registered thermal governor 'step_wise'
[   36.022545] thermal_sys: Registered thermal governor 'power_allocator'
[   36.028665] audit: type=2000 audit(35.884:1): state=initialized audit_enabled=0 res=1
[   36.043245] cpuidle: using governor menu
[   36.047449] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[   36.054367] ASID allocator initialised with 32768 entries
[   36.061264] Serial: AMBA PL011 UART driver
[   36.088857] hi3660-mbox e896b000.mailbox: Mailbox enabled
[   36.102040] amba ec801000.funnel: Fixing up cyclic dependency with ecf40000.etm
[   36.109561] amba ec801000.funnel: Fixing up cyclic dependency with ece40000.etm
[   36.116993] amba ec801000.funnel: Fixing up cyclic dependency with ecd40000.etm
[   36.124417] amba ec801000.funnel: Fixing up cyclic dependency with ecc40000.etm
[   36.131987] amba ec802000.etf: Fixing up cyclic dependency with ec801000.funnel
[   36.140036] amba ed001000.funnel: Fixing up cyclic dependency with ed740000.etm
[   36.147460] amba ed001000.funnel: Fixing up cyclic dependency with ed640000.etm
[   36.154885] amba ed001000.funnel: Fixing up cyclic dependency with ed540000.etm
[   36.162306] amba ed001000.funnel: Fixing up cyclic dependency with ed440000.etm
[   36.169870] amba ed002000.etf: Fixing up cyclic dependency with ed001000.funnel
[   36.177447] platform soc:funnel: Fixing up cyclic dependency with ed002000.etf
[   36.184781] platform soc:funnel: Fixing up cyclic dependency with ec802000.etf
[   36.192533] amba ec031000.funnel: Fixing up cyclic dependency with soc:funnel
[   36.199916] amba ec036000.etf: Fixing up cyclic dependency with ec031000.funnel
[   36.207461] platform soc:replicator: Fixing up cyclic dependency with ec036000.etf
[   36.215477] amba ec033000.etr: Fixing up cyclic dependency with soc:replicator
[   36.222946] amba ec032000.tpiu: Fixing up cyclic dependency with soc:replicator
[   36.234763] KASLR enabled
[   36.246596] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
[   36.257479] HugeTLB: 16380 KiB vmemmap can be freed for a 1.00 GiB page
[   36.272171] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
[   36.287035] HugeTLB: 508 KiB vmemmap can be freed for a 32.0 MiB page
[   36.297547] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[   36.312413] HugeTLB: 28 KiB vmemmap can be freed for a 2.00 MiB page
[   36.326839] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
[   36.337701] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
[   36.360648] ACPI: Interpreter disabled.
[   36.368579] iommu: Default domain type: Translated 
[   36.377520] iommu: DMA domain TLB invalidation policy: strict mode 
[   36.392125] SCSI subsystem initialized
[   36.400036] libata version 3.00 loaded.
[   36.408155] usbcore: registered new interface driver usbfs
[   36.417719] usbcore: registered new interface driver hub
[   36.431113] usbcore: registered new device driver usb
[   36.440884] pps_core: LinuxPPS API ver. 1 registered
[   36.449907] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[   36.471157] PTP clock support registered
[   36.479210] EDAC MC: Ver: 3.0.0
[   36.488212] FPGA manager framework
[   36.495772] Advanced Linux Sound Architecture Driver Initialized.
[   36.506866] vgaarb: loaded
[   36.514273] clocksource: Switched to clocksource arch_sys_counter
[   36.526660] VFS: Disk quotas dquot_6.6.0
[   36.534291] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[   36.550431] pnp: PnP ACPI: disabled
[   36.562118] NET: Registered PF_INET protocol family
[   36.574614] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[   36.592320] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
[   36.610294] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[   36.626272] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[   36.642407] TCP bind hash table entries: 32768 (order: 8, 1048576 bytes, linear)
[   36.659012] TCP: Hash tables configured (established 32768 bind 32768)
[   36.670485] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
[   36.686315] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
[   36.702512] NET: Registered PF_UNIX/PF_LOCAL protocol family
[   36.714716] RPC: Registered named UNIX socket transport module.
[   36.726265] RPC: Registered udp transport module.
[   36.734264] RPC: Registered tcp transport module.
[   36.746264] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   36.759325] PCI: CLS 0 bytes, default 64
[   36.766477] Unpacking initramfs...
[   36.770991] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[   36.798747] armv8-pmu a73-pmu: hw perfevents: failed to probe PMU!
[   36.822885] kvm [1]: IPA Size Limit: 40 bits
[   36.838389] kvm [1]: vgic interrupt IRQ9
[   36.850481] kvm [1]: Hyp mode initialized successfully
[   36.871874] Initialise system trusted keyrings
[   36.886787] workingset: timestamp_bits=42 max_order=20 bucket_order=0
[   36.910788] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[   36.930410] NFS: Registering the id_resolver key type
[   36.946420] Key type id_resolver registered
[   36.958356] Key type id_legacy registered
[   36.970548] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[   36.994464] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[   37.014691] 9p: Installing v9fs 9p2000 file system support
[   37.093713] Key type asymmetric registered
[   37.114334] Asymmetric key parser 'x509' registered
[   37.130492] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[   37.154338] io scheduler mq-deadline registered
[   37.170516] io scheduler kyber registered
[   37.195458] pinctrl-single e896c000.pinmux: 124 pins, size 496
[   37.214743] pinctrl-single ff37e000.pinmux: 6 pins, size 24
[   37.230697] pinctrl-single ff3b6000.pinmux: 12 pins, size 48
[   37.250665] pinctrl-single ff3fd000.pinmux: 6 pins, size 24
[   37.266713] pinctrl-single fff11000.pinmux: 42 pins, size 168
[   37.290858] pinctrl-single e896c800.pinmux: 128 pins, size 512
[   37.306816] pinctrl-single ff3b6800.pinmux: 6 pins, size 24
[   37.326679] pinctrl-single ff3fd800.pinmux: 6 pins, size 24
[   37.342739] pinctrl-single ff37e800.pinmux: 6 pins, size 24
[   37.362789] pinctrl-single fff11800.pinmux: 47 pins, size 188
[   37.390309] pl061_gpio e8a0b000.gpio: PL061 GPIO chip registered
[   37.410316] pl061_gpio e8a0c000.gpio: PL061 GPIO chip registered
[   37.431089] pl061_gpio e8a0d000.gpio: PL061 GPIO chip registered
[   37.451046] pl061_gpio e8a0e000.gpio: PL061 GPIO chip registered
[   37.475012] pl061_gpio e8a0f000.gpio: PL061 GPIO chip registered
[   37.491047] pl061_gpio e8a10000.gpio: PL061 GPIO chip registered
[   37.515008] pl061_gpio e8a11000.gpio: PL061 GPIO chip registered
[   37.534400] pl061_gpio e8a12000.gpio: PL061 GPIO chip registered
[   37.550981] pl061_gpio e8a13000.gpio: PL061 GPIO chip registered
[   37.575113] pl061_gpio e8a14000.gpio: PL061 GPIO chip registered
[   37.588019] Freeing initrd memory: 9932K
[   37.598305] pl061_gpio e8a15000.gpio: PL061 GPIO chip registered
[   37.610603] pl061_gpio e8a16000.gpio: PL061 GPIO chip registered
[   37.627161] pl061_gpio e8a17000.gpio: PL061 GPIO chip registered
[   37.643171] pl061_gpio e8a18000.gpio: PL061 GPIO chip registered
[   37.655155] pl061_gpio e8a19000.gpio: PL061 GPIO chip registered
[   37.670478] pl061_gpio e8a1a000.gpio: PL061 GPIO chip registered
[   37.683146] pl061_gpio e8a1b000.gpio: PL061 GPIO chip registered
[   37.698481] pl061_gpio e8a1c000.gpio: PL061 GPIO chip registered
[   37.711199] pl061_gpio ff3b4000.gpio: PL061 GPIO chip registered
[   37.722831] pl061_gpio ff3b5000.gpio: PL061 GPIO chip registered
[   37.729165] pl061_gpio e8a1f000.gpio: PL061 GPIO chip registered
[   37.735447] pl061_gpio e8a20000.gpio: PL061 GPIO chip registered
[   37.741714] pl061_gpio fff0b000.gpio: PL061 GPIO chip registered
[   37.747968] pl061_gpio fff0c000.gpio: PL061 GPIO chip registered
[   37.754239] pl061_gpio fff0d000.gpio: PL061 GPIO chip registered
[   37.760496] pl061_gpio fff0e000.gpio: PL061 GPIO chip registered
[   37.766752] pl061_gpio fff0f000.gpio: PL061 GPIO chip registered
[   37.773001] pl061_gpio fff10000.gpio: PL061 GPIO chip registered
[   37.779256] pl061_gpio fff1d000.gpio: PL061 GPIO chip registered
[   37.825520] kirin-pcie f4000000.pcie: host bridge /soc/pcie@f4000000 ranges:
[   37.832746] kirin-pcie f4000000.pcie:      MEM 0x00f6000000..0x00f7ffffff -> 0x0000000000
[   37.841432] kirin-pcie f4000000.pcie: iATU: unroll F, 16 ob, 16 ib, align 4K, limit 4G
[   38.842355] kirin-pcie f4000000.pcie: Phy link never came up
[   38.848490] kirin-pcie f4000000.pcie: PCI host bridge to bus 0000:00
[   38.854937] pci_bus 0000:00: root bus resource [bus 00-ff]
[   38.860491] pci_bus 0000:00: root bus resource [mem 0xf6000000-0xf7ffffff] (bus address [0x00000000-0x01ffffff])
[   38.870839] pci 0000:00:00.0: [19e5:3660] type 01 class 0x060400
[   38.876948] pci 0000:00:00.0: reg 0x10: [mem 0xf6000000-0xf6ffffff]
[   38.883483] pci 0000:00:00.0: supports D1 D2
[   38.887803] pci 0000:00:00.0: PME# supported from D0 D1 D2 D3hot
[   38.895666] pci 0000:00:00.0: BAR 0: assigned [mem 0xf6000000-0xf6ffffff]
[   38.902546] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[   38.908222] pcieport 0000:00:00.0: PME: Signaling with IRQ 54
[   38.914371] pcieport 0000:00:00.0: AER: enabled with IRQ 54
[   38.920995] EINJ: ACPI disabled.
[   38.931863] k3-dma fdf30000.dma: initialized
[   38.936403] k3-dma e804b000.dma-controller: dma-channel-mask doesn't exist, considering all as available.
[   38.947173] k3-dma e804b000.dma-controller: initialized
[   38.960445] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[   38.969175] SuperH (H)SCI(F) driver initialized
[   38.974148] msm_serial: driver initialized
[   38.984098] loop: module loaded
[   39.036179] megasas: 07.719.03.00-rc1
[   39.044527] tun: Universal TUN/TAP device driver, 1.6
[   39.050488] thunder_xcv, ver 1.0
[   39.053777] thunder_bgx, ver 1.0
[   39.057098] nicpf, ver 1.0
[   39.060636] hns3: Hisilicon Ethernet Network Driver for Hip08 Family - version
[   39.067955] hns3: Copyright (c) 2017 Huawei Corporation.
[   39.073357] hclge is initializing
[   39.076732] e1000: Intel(R) PRO/1000 Network Driver
[   39.081665] e1000: Copyright (c) 1999-2006 Intel Corporation.
[   39.087491] e1000e: Intel(R) PRO/1000 Network Driver
[   39.092510] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[   39.098518] igb: Intel(R) Gigabit Ethernet Network Driver
[   39.103978] igb: Copyright (c) 2007-2014 Intel Corporation.
[   39.109628] igbvf: Intel(R) Gigabit Virtual Function Network Driver
[   39.115967] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[   39.122164] sky2: driver version 1.30
[   39.126585] usbcore: registered new interface driver asix
[   39.132064] usbcore: registered new interface driver ax88179_178a
[   39.138239] usbcore: registered new interface driver cdc_ether
[   39.144154] usbcore: registered new interface driver dm9601
[   39.149802] usbcore: registered new interface driver net1080
[   39.155539] usbcore: registered new interface driver cdc_subset
[   39.161547] usbcore: registered new interface driver zaurus
[   39.167205] usbcore: registered new interface driver cdc_ncm
[   39.173309] VFIO - User Level meta-driver version: 0.3
[   39.180426] usbcore: registered new interface driver usb-storage
[   39.188921] rtc-pl031 fff04000.rtc: registered as rtc0
[   39.194237] rtc-pl031 fff04000.rtc: setting system clock to 1970-01-01T00:00:57 UTC (57)
[   39.203127] i2c_dev: i2c /dev entries driver
[   39.211609] sp805-wdt e8a06000.watchdog: registration successful
[   39.217995] sp805-wdt e8a07000.watchdog: registration successful
[   39.225054] ghes_edac: GHES probing device list is empty
[   39.226237] cpu cpu0: EM: created perf domain
[   39.239803] sdhci: Secure Digital Host Controller Interface driver
[   39.246196] sdhci: Copyright(c) Pierre Ossman
[   39.251131] Synopsys Designware Multimedia Card Interface Driver
[   39.257864] dwmmc_k3 ff37f000.dwmmc1: fifo-depth property not found, using value of FIFOTH register as default
[   39.268565] sdhci-pltfm: SDHCI platform and OF driver helper
[   39.276060] ufshcd-hisi ff3b0000.ufs: ufshcd_populate_vreg: Unable to find vdd-hba-supply regulator, assuming enabled
[   39.286844] ufshcd-hisi ff3b0000.ufs: ufshcd_populate_vreg: Unable to find vcc-supply regulator, assuming enabled
[   39.297245] dwmmc_k3 ff37f000.dwmmc1: IDMAC supports 64-bit address mode.
[   39.304115] ufshcd-hisi ff3b0000.ufs: ufshcd_populate_vreg: Unable to find vccq-supply regulator, assuming enabled
[   39.314602] dwmmc_k3 ff37f000.dwmmc1: Using internal DMA controller.
[   39.321034] dwmmc_k3 ff37f000.dwmmc1: Version ID is 270a
[   39.326410] ufshcd-hisi ff3b0000.ufs: ufshcd_populate_vreg: Unable to find vccq2-supply regulator, assuming enabled
[   39.337019] dwmmc_k3 ff37f000.dwmmc1: DW MMC controller at irq 61,32 bit host data width,256 deep fifo
[   39.347892] dwmmc_k3 ff37f000.dwmmc1: Got CD GPIO
[   39.367694] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[   39.378945] scsi host0: ufshcd
[   39.385994] ledtrig-cpu: registered to indicate activity on CPUs
[   39.394059] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[   39.401763] usbcore: registered new interface driver usbhid
[   39.407467] usbhid: USB HID core driver
[   39.414247] optee: probing for conduit method.
I/TC: Reserved shared memory is enabled
I/TC: Dynamic shared memory is disabled
I/TC: Normal World virtualization support is disabled
I/TC: Asynchronous notifications are disabled
D/TC:0 0 entry_open_session:409 UUID as string: 7011a688-ddde-4053-a5a9-7b3c4ddf13b8
D/TC:? 0 tee_ta_init_pseudo_ta_session:322 Lookup pseudo TA 7011a688-ddde-4053-a5a9-7b3c4ddf13b8
D/TC:? 0 tee_ta_init_pseudo_ta_session:335 Open device.pta
D/TC:? 0 tee_ta_init_pseudo_ta_session:352 device.pta : 7011a688-ddde-4053-a5a9-7b3c4ddf13b8
D/TC:? 0 tee_ta_close_session:529 csess 0x3f0f5920 id 1
D/TC:? 0 tee_ta_close_session:548 Destroy session
[   39.418806] optee: revision 3.21 (14eef625)
[   39.473799] optee: initialized driver
[   39.485030] NET: Registered PF_PACKET protocol family
[   39.490376] 9pnet: Installing 9P2000 support
[   39.494781] Key type dns_resolver registered
[   39.505453] registered taskstats version 1
[   39.509816] Loading compiled-in X.509 certificates
[   39.528496] ffd74000.serial: ttyAMA3 at MMIO 0xffd74000 (irq = 64, base_baud = 0) is a PL011 rev2
[   39.538337] fdf01000.serial: ttyAMA4 at MMIO 0xfdf01000 (irq = 65, base_baud = 0) is a PL011 rev2
[   39.547464] serial serial0: tty port ttyAMA4 registered
[   39.553128] fff32000.serial: ttyAMA6 at MMIO 0xfff32000 (irq = 66, base_baud = 0) is a PL011 rev2
[   39.562140] printk: console [ttyAMA6] enabled
[   39.562140] printk: console [ttyAMA6] enabled
[   39.570955] printk: bootconsole [pl11] disabled
[   39.570955] printk: bootconsole [pl11] disabled

I found this patch showed that the CFG_TEE_CORE_NB_CORE is not changable. Is there any other way to use only one core to run OPTEE OS on hikey960 board?

jenswi-linaro commented 11 months ago

The Linux kernel looks in the DTB and tries to enable the CPUs described there.

qianfei11 commented 11 months ago

The Linux kernel looks in the DTB and tries to enable the CPUs described there.

Thanks for replying, I found the dts file related to cpu in linux/arch/arm64/boot/dts/hisilicon/hi3660.dtsi. This may help.

qianfei11 commented 11 months ago

I tried to edit the DTB files and it seems not realistic and not an easy task.

And I tried the methods used in this issue #3643, change the value of CFG_TEE_CORE_NB_CORE to 1 and change the return value of get_core_pos() to 0. The hikey960 board still stucks in the booting process.

Is there any more suggestions to running the whole optee_os and linux kernel with only one core on hikey960 board?

jforissier commented 11 months ago

Is there any more suggestions to running the whole optee_os and linux kernel with only one core on hikey960 board?

Add maxcpus=1 to the kernel command line.

qianfei11 commented 11 months ago

Add maxcpus=1 to the kernel command line.

Thanks for your suggestion!

I edited patches_hikey/grub/grub_uart6.cfg to add the maxcpus=1 option, and flash the images to the board. the kernel stop to wake up the other 7 cores, but encountered with a new kernel panic:

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 6.2.0-rc3-dirty (bea1e@bea1e-OptiPlex-5000) (aarch64-linux-gnu-gcc (Arm GNU Toolchain 11.3.Rel1) 11.3.1 20220712, GNU ld (Arm GNU Toolchain 11.3.Rel1) 2.38.20220708) #8 SMP PREEMPT Sat Oct 14 13:05:20 CST 2023
[    0.000000] Machine model: HiKey960
[    0.000000] earlycon: pl11 at MMIO 0x00000000fff32000 (options '')
[    0.000000] printk: bootconsole [pl11] enabled
[    0.000000] printk: debug: ignoring loglevel setting.
[    0.000000] efi: EFI v2.60 by EDK II
[    0.000000] efi: MEMATTR=0xbe79c418 MEMRESERVE=0xba6e6f18 
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000000000000-0x000000021fffffff]
[    0.000000] NUMA: NODE_DATA [mem 0x21f7cba00-0x21f7cdfff]
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000000000-0x00000000ffffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   [mem 0x0000000100000000-0x000000021fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges                                                                                                                                                                                                                                                        
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000001abfffff]                                                                                                                                                                                                                         
[    0.000000]   node   0: [mem 0x000000001ad88000-0x0000000031ffffff]                                                                                                                                                                                                                         
[    0.000000]   node   0: [mem 0x0000000032101000-0x000000003dffffff]                                                                                                                                                                                                                         
[    0.000000]   node   0: [mem 0x0000000040000000-0x0000000089b7ffff]                                                                                                                                                                                                                         
[    0.000000]   node   0: [mem 0x0000000089cc0000-0x00000000ba49ffff]                                                                                                                                                                                                                         
[    0.000000]   node   0: [mem 0x00000000ba4a0000-0x00000000ba6dffff]                                                                                                                                                                                                                         
[    0.000000]   node   0: [mem 0x00000000ba6e0000-0x00000000ba6e7fff]                                                                                                                                                                                                                         
[    0.000000]   node   0: [mem 0x00000000ba6e8000-0x00000000ba6ebfff]                                                                                                                                                                                                                         
[    0.000000]   node   0: [mem 0x00000000ba6ec000-0x00000000bf6affff]                                                                                                                                                                                                                         
[    0.000000]   node   0: [mem 0x00000000bf6b0000-0x00000000bf6effff]                                                                                                                                                                                                                         
[    0.000000]   node   0: [mem 0x00000000bf6f0000-0x00000000bf6fffff]                                                                                                                                                                                                                         
[    0.000000]   node   0: [mem 0x00000000bf700000-0x00000000bf74ffff]                                                                                                                                                                                                                         
[    0.000000]   node   0: [mem 0x00000000bf750000-0x00000000dfffffff]                                                                                                                                                                                                                         
[    0.000000]   node   0: [mem 0x0000000200000000-0x000000021fffffff]                                                                                                                                                                                                                         
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000021fffffff]                                                                                                                                                                                                                
[    0.000000] On node 0, zone DMA: 392 pages in unavailable ranges                                                                                                                                                                                                                            
[    0.000000] On node 0, zone DMA: 257 pages in unavailable ranges                                                                                                                                                                                                                            
[    0.000000] On node 0, zone DMA: 8192 pages in unavailable ranges                                                                                                                                                                                                                           
[    0.000000] On node 0, zone DMA: 320 pages in unavailable ranges                                                                                                                                                                                                                            
[    0.000000] cma: Reserved 32 MiB at 0x00000000de000000                                                                                                                                                                                                                                      
[    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 30 pages/cpu s82920 r8192 d31768 u122880                                                                                                                                                                                                                       
[    0.000000] pcpu-alloc: s82920 r8192 d31768 u122880 alloc=30*4096                                                                                                                                                                                                                           
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [0] 4 [0] 5 [0] 6 [0] 7                                                                                                                                                                                                                     
[    0.000000] Detected VIPT I-cache on CPU0                                                                                                                                                                                                                                                   
[    0.000000] CPU features: kernel page table isolation forced ON by KASLR                                                                                                                                                                                                                    
[    0.000000] CPU features: detected: Kernel page table isolation (KPTI)                                                                                                                                                                                                                      
[    0.000000] CPU features: detected: ARM erratum 845719                                                                                                                                                                                                                                      
[    0.000000] alternatives: applying boot alternatives                                                                                                                                                                                                                                        
[    0.000000] Fallback order for Node 0: 0                                                                                                                                                                                                                                                    
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1023174                                                                                                                                                                                                                  
[    0.000000] Policy zone: Normal                                                                                                                                                                                                                                                             
[    0.000000] Kernel command line: BOOT_IMAGE=/Image console=tty0 console=ttyAMA6,115200n8 earlycon=pl011,0xfff32000 root=/dev/disk/by-partlabel/system rootwait rw ignore_loglevel efi=noruntime maxcpus=1                                                                                   
[    0.000000] Unknown kernel command line parameters "BOOT_IMAGE=/Image", will be passed to user space.                                                                                                                                                                                       
[    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)                                                                                                                                                                                                      
[    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)                                                                                                                                                                                                        
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off                                                                                                                                                                                                                         
[    0.000000] software IO TLB: area num 8.                                                                                                                                                                                                                                                    
[    0.000000] software IO TLB: mapped [mem 0x00000000da000000-0x00000000de000000] (64MB)                                                                                                                                                                                                      
[    0.000000] Memory: 3915956K/4157660K available (19648K kernel code, 5310K rwdata, 11036K rodata, 11776K init, 633K bss, 208936K reserved, 32768K cma-reserved)                                                                                                                             
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=8, Nodes=1                                                                                                                                                                                                                      
[    0.000000] ftrace: allocating 65492 entries in 256 pages                                                                                                                                                                                                                                   
[    0.000000] ftrace: allocated 256 pages with 1 groups                                                                                                                                                                                                                                       
[    0.000000] trace event string verifier disabled                                                                                                                                                                                                                                            
[    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=8.                                                                                                                                                                                                                 
[    0.000000]  Trampoline variant of Tasks RCU enabled.                                                                                                                                                                                                                                       
[    0.000000]  Rude 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=8                                                                                                                                                                                                                    
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0                                                                                                                                                                                                                                  
[    0.000000] Root IRQ handler: gic_handle_irq                                                                                                                                                                                                                                                
[    0.000000] GIC: Using split EOI/Deactivate mode                                                                                                                                                                                                                                            
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.                                                                                                                                                                                                                  
[    0.000000] arch_timer: cp15 timer(s) running at 1.92MHz (phys).                                                                                                                                                                                                                            
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x1c570327e, max_idle_ns: 1763180809505 ns                                                                                                                                                                    
[    0.000002] sched_clock: 56 bits at 1920kHz, resolution 520ns, wraps every 4398046510977ns                                                                                                                                                                                                  
[    0.008521] clocksource: arm,sp804: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 58334160866034 ns                                                                                                                                                                                 
[    0.019606] Console: colour dummy device 80x25                                                                                                                                                                                                                                              
[    0.024135] printk: console [tty0] enabled                                                                                                                                                                                                                                                  
[    0.028848] Calibrating delay loop (skipped), value calculated using timer frequency.. 3.84 BogoMIPS (lpj=7680)                                                                                                                                                                             
[    0.039131] pid_max: default: 32768 minimum: 301                                                                                                                                                                                                                                            
[    0.043905] LSM: initializing lsm=capability,integrity                                                                                                                                                                                                                                      
[    0.049297] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)                                                                                                                                                                                                            
[    0.056843] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)                                                                                                                                                                                                       
[    0.067026] cblist_init_generic: Setting adjustable number of callback queues.                                                                                                                                                                                                              
[    0.074506] cblist_init_generic: Setting shift to 3 and lim to 1.                                                                                                                                                                                                                           
[    0.080771] cblist_init_generic: Setting shift to 3 and lim to 1.                                                                                                                                                                                                                           
[    0.087042] cblist_init_generic: Setting shift to 3 and lim to 1.                                                                                                                                                                                                                           
[    0.093402] rcu: Hierarchical SRCU implementation.                                                                                                                                                                                                                                          
[    0.098285] rcu:     Max phase no-delay instances is 1000.                                                                                                                                                                                                                                  
[    0.106083] EFI runtime services will be disabled.                                                                                                                                                                                                                                          
[    0.111528] smp: Bringing up secondary CPUs ...                                                                                                                                                                                                                                             
[    0.116188] NR_CPUS = 256                                                                                                                                                                                                                                                                   
[    0.118848] Bring up CPU0                                                                                                                                                                                                                                                                   
[    0.121513] smp: Brought up 1 node, 1 CPU                                                                                                                                                                                                                                                   
[    0.125593] SMP: Total of 1 processors activated.                                                                                                                                                                                                                                           
[    0.130384] CPU features: detected: 32-bit EL0 Support                                                                                                                                                                                                                                      
[    0.135612] CPU features: detected: 32-bit EL1 Support                                                                                                                                                                                                                                      
[    0.140847] CPU features: detected: CRC32 instructions                                                                                                                                                                                                                                      
[    0.146170] CPU: All CPU(s) started at EL2                                                                                                                                                                                                                                                  
[    0.150361] alternatives: applying system-wide alternatives                                                                                                                                                                                                                                 
[    0.158706] devtmpfs: initialized                                                                                                                                                                                                                                                           
[    0.169457] level: 0, command_line: BOOT_IMAGE=/Image console=tty0 console=ttyAMA6,115200n8 earlycon=pl011,0xfff32000 root=/dev/disk/by-partlabel/system rootwait rw ignore_loglevel efi=noruntime maxcpus=1                                                                                
[    0.188806] level: 1, command_line: BOOT_IMAGE=/Image console=tty0 console=ttyAMA6,115200n8 earlycon=pl011,0xfff32000 root=/dev/disk/by-partlabel/system rootwait rw ignore_loglevel efi=noruntime maxcpus=1                                                                                
[    0.207630] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns                                                                                                                                                                                 
[    0.217569] futex hash table entries: 2048 (order: 5, 131072 bytes, linear)                                                                                                                                                                                                                 
[    0.226635] pinctrl core: initialized pinctrl subsystem                                                                                                                                                                                                                                     
[    0.234405] DMI not present or invalid.                                                                                                                                                                                                                                                     
[    0.239132] NET: Registered PF_NETLINK/PF_ROUTE protocol family                                                                                                                                                                                                                             
[    0.245285] level: 2, command_line: BOOT_IMAGE=/Image console=tty0 console=ttyAMA6,115200n8 earlycon=pl011,0xfff32000 root=/dev/disk/by-partlabel/system rootwait rw ignore_loglevel efi=noruntime maxcpus=1                                                                                
[    0.264976] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations                                                                                                                                                                                                                
[    0.272304] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations                                                                                                                                                                                                        
[    0.280343] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations                                                                                                                                                                                                      
[    0.288504] audit: initializing netlink subsys (disabled)                                                                                                                                                                                                                                   
[    0.295704] thermal_sys: Registered thermal governor 'step_wise'                                                                                                                                                                                                                            
[    0.295721] thermal_sys: Registered thermal governor 'power_allocator'                                                                                                                                                                                                                      
[    0.301917] audit: type=2000 audit(0.152:1): state=initialized audit_enabled=0 res=1                                                                                                                                                                                                        
[    0.316524] cpuidle: using governor menu                                                                                                                                                                                                                                                    
[    0.320602] level: 3, command_line: BOOT_IMAGE=/Image console=tty0 console=ttyAMA6,115200n8 earlycon=pl011,0xfff32000 root=/dev/disk/by-partlabel/system rootwait rw ignore_loglevel efi=noruntime maxcpus=1                                                                                
[    0.339364] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.                                                                                                                                                                                                                   
[    0.346329] ASID allocator initialised with 32768 entries                                                                                                                                                                                                                                   
[    0.353577] Serial: AMBA PL011 UART driver                                                                                                                                                                                                                                                  
[    0.382262] hi3660-mbox e896b000.mailbox: Mailbox enabled                                                                                                                                                                                                                                   
[    0.396628] amba ec801000.funnel: Fixing up cyclic dependency with ecf40000.etm                                                                                                                                                                                                             
[    0.404198] amba ec801000.funnel: Fixing up cyclic dependency with ece40000.etm                                                                                                                                                                                                             
[    0.411677] amba ec801000.funnel: Fixing up cyclic dependency with ecd40000.etm                                                                                                                                                                                                             
[    0.419148] amba ec801000.funnel: Fixing up cyclic dependency with ecc40000.etm                                                                                                                                                                                                             
[    0.426793] amba ec802000.etf: Fixing up cyclic dependency with ec801000.funnel                                                                                                                                                                                                             
[    0.434341] Internal error: synchronous external abort: 0000000096000210 [#1] PREEMPT SMP                                                                                                                                                                                                   
[    0.442668] Modules linked in:                                                                                                                                                                                                                                                              
[    0.445786] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.2.0-rc3-dirty #8                                                                                                                                                                                                                    
[    0.452604] Hardware name: HiKey960 (DT)                                                                                                                                                                                                                                                    
[    0.456592] pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)                                                                                                                                                                                                                 
[    0.463674] pc : amba_read_periphid+0xcc/0x230                                                                                                                                                                                                                                              
[    0.468213] lr : amba_read_periphid+0xb8/0x230                                                                                                                                                                                                                                              
[    0.472730] sp : ffff80000804bb90                                                                                                                                                                                                                                                           
[    0.476096] x29: ffff80000804bb90 x28: 0000000000000004 x27: ffff800009d51870                                                                                                                                                                                                               
[    0.483357] x26: ffff800009ff00f0 x25: ffff000200886010 x24: 0000000000000001                                                                                                                                                                                                               
[    0.490618] x23: ffff80000997e910 x22: 0000000000000000 x21: 0000000000000000                                                                                                                                                                                                               
[    0.497877] x20: ffff00020095c000 x19: 0000000000001000 x18: ffffffffffffffff                                                                                                                                                                                                               
[    0.505138] x17: 6e75662e30303031 x16: 3038636520687469 x15: ffff00020096588d                                                                                                                                                                                                               
[    0.512399] x14: ffffffffffffffff x13: 0000000000000000 x12: 0101010101010101                                                                                                                                                                                                               
[    0.519659] x11: 7f7f7f7f7f7f7f7f x10: 00000000ed440000 x9 : 0140000000000000                                                                                                                                                                                                               
[    0.526920] x8 : 0040000000000001 x7 : 00008000e526d000 x6 : 0000000000000000                                                                                                                                                                                                               
[    0.534180] x5 : ffff8000481d3000 x4 : 0000000000000000 x3 : ffff8000081d3fe0                                                                                                                                                                                                               
[    0.541441] x2 : 0068000000000f13 x1 : 0000000000000000 x0 : ffff8000081d3000                                                                                                                                                                                                               
[    0.548704] Call trace:                                                                                                                                                                                                                                                                     
[    0.551189]  amba_read_periphid+0xcc/0x230                                                                                                                                                                                                                                                  
[    0.555354]  amba_device_add+0x90/0xb4                                                                                                                                                                                                                                                      
[    0.559168]  of_platform_bus_create+0x2bc/0x380                                                                                                                                                                                                                                             
[    0.563783]  of_platform_bus_create+0x1c4/0x380                                                                                                                                                                                                                                             
[    0.568389]  of_platform_populate+0x58/0x104                                                                                                                                                                                                                                                
[    0.572730]  of_platform_default_populate_init+0xd4/0xf4                                                                                                                                                                                                                                    
[    0.578141]  do_one_initcall+0x4c/0x2b0                                                                                                                                                                                                                                                     
[    0.582045]  kernel_init_freeable+0x24c/0x2c0                                                                                                                                                                                                                                               
[    0.586482]  kernel_init+0x2c/0x140                                                                                                                                                                                                                                                         
[    0.590032]  ret_from_fork+0x10/0x20                                                                                                                                                                                                                                                        
[    0.593673] Code: d1008263 52800004 8b030003 52800006 (b9400062)                                                                                                                                                                                                                            
[    0.599878] ---[ end trace 0000000000000000 ]---                                                                                                                                                                                                                                            
[    0.604594] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b                                                                                                                                                                                                         
[    0.612387] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b ]---

Though I haven't digged into this error yet. What problem might this error be related to?

github-actions[bot] commented 10 months ago

This issue has been marked as a stale issue because it has been open (more than) 30 days with no activity. Remove the stale label or add a comment, otherwise this issue will automatically be closed in 5 days. Note, that you can always re-open a closed issue at any time.