linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* FVP: kernel BUG at arch/arm64/kernel/traps.c:497 - Internal error: Oops - BUG: 0
@ 2022-07-12  9:57 Naresh Kamboju
  2022-07-12 11:54 ` Mark Brown
  2022-07-12 12:49 ` Mark Rutland
  0 siblings, 2 replies; 14+ messages in thread
From: Naresh Kamboju @ 2022-07-12  9:57 UTC (permalink / raw)
  To: open list, Linux-Next Mailing List, Linux ARM, lkft-triage, regressions
  Cc: Catalin Marinas, Mark Brown, Will Deacon, Mark Rutland,
	Arnd Bergmann, Anders Roxell, Aishwarya TCV

FVP boot failed with linux next 20220712.

Reported-by:  Linux Kernel Functional Testing <lkft@linaro.org>
Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org>

Boot log:
Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd0f0]
[    0.000000] Linux version 5.19.0-rc6-next-20220711
(tuxmake@tuxmake) (aarch64-linux-gnu-gcc (Debian 11.3.0-3) 11.3.0, GNU
ld (GNU Binutils for Debian) 2.38) #1 SMP PREEMPT @1657539508
[    0.000000] Machine model: FVP Base RevC
[    0.000000] earlycon: pl11 at MMIO 0x000000001c090000 (options '')
[    0.000000] printk: bootconsole [pl11] enabled
[    0.000000] efi: UEFI not found.
[    0.000000] Reserved memory: created DMA memory pool at
0x0000000018000000, size 8 MiB
[    0.000000] OF: reserved mem: initialized node vram@18000000,
compatible id shared-dma-pool
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem
0x0000000080000000-0x00000008ffffffff]
[    0.000000] NUMA: NODE_DATA [mem 0x8ff7f6b40-0x8ff7f8fff]
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000080000000-0x00000000ffffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   [mem 0x0000000100000000-0x00000008ffffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000080000000-0x00000000feffffff]
[    0.000000]   node   0: [mem 0x0000000880000000-0x00000008ffffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000008ffffffff]
[    0.000000] On node 0, zone Normal: 4096 pages in unavailable ranges
[    0.000000] cma: Reserved 32 MiB at 0x00000000fd000000
[    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: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.2
[    0.000000] percpu: Embedded 30 pages/cpu s82856 r8192 d31832 u122880
[    0.000000] pcpu-alloc: s82856 r8192 d31832 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 PIPT I-cache on CPU0
[    0.000000] CPU features: detected: Branch Target Identification
[    0.000000] CPU features: detected: Address authentication (IMP DEF
algorithm)
[    0.000000] CPU features: detected: GIC system register CPU interface
[    0.000000] CPU features: detected: Virtualization Host Extensions
[    0.000000] CPU features: detected: Hardware dirty bit management
[    0.000000] CPU features: detected: Spectre-v4
[    0.000000] alternatives: patching kernel code
[    0.000000] Fallback order for Node 0: 0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1028096
[    0.000000] Policy zone: Normal
[    0.000000] Kernel command line: console=ttyAMA0
earlycon=pl011,0x1c090000 root=/dev/vda rw ip=dhcp debug user_debug=31
loglevel=9
[    0.000000] Unknown kernel command line parameters
\"user_debug=31\", 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: mapped [mem
0x00000000f9000000-0x00000000fd000000] (64MB)
[    0.000000] Memory: 3947088K/4177920K available (20288K kernel
code, 4902K rwdata, 11308K rodata, 11136K init, 955K bss, 198064K
reserved, 32768K cma-reserved)
[    0.000000] SLUB: HWalign=128, Order=0-3, MinObjects=0, CPUs=8, Nodes=1
[    0.000000] ftrace: allocating 65660 entries in 257 pages
[    0.000000] ------------[ ftrace bug ]------------
[    0.000000] ftrace failed to modify
[    0.000000] [<ffff800009f80030>] udpv6_init+0x8/0x74
[    0.000000]  actual:   00:00:00:00
[    0.000000] Initializing ftrace call sites
[    0.000000] ftrace record flags: 0
[    0.000000]  (0)
[    0.000000]  expected tramp: ffff80000802f3a8
[    0.000000] ------------[ cut here ]------------
[    0.000000] WARNING: CPU: 0 PID: 0 at kernel/trace/ftrace.c:2084
ftrace_bug+0x280/0x2b0
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted
5.19.0-rc6-next-20220711 #1
[    0.000000] Hardware name: FVP Base RevC (DT)
[    0.000000] pstate: 600000c9 (nZCv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[    0.000000] pc : ftrace_bug+0x280/0x2b0
[    0.000000] lr : ftrace_bug+0x280/0x2b0
[    0.000000] sp : ffff80000a9e3d50
[    0.000000] x29: ffff80000a9e3d50 x28: 0000000000000000 x27: ffff80000a9eed28
[    0.000000] x26: 0000000000000052 x25: ffff80000a118008 x24: ffff80000aee3000
[    0.000000] x23: 00000000ffffffea x22: ffff800009befc30 x21: ffff80000a9eed28
[    0.000000] x20: ffff000800005510 x19: ffff80000a9ee000 x18: ffffffffffffffff
[    0.000000] x17: 000000000000003f x16: 0000000000000008 x15: ffff80008a9e3a47
[    0.000000] x14: 0000000000000000 x13: 3861336632303830 x12: 3030303866666666
[    0.000000] x11: 203a706d61727420 x10: ffff80000aa6a960 x9 : ffff800008121910
[    0.000000] x8 : 00000000ffffefff x7 : ffff80000aa6a960 x6 : 0000000000000000
[    0.000000] x5 : 000000000000bff4 x4 : 0000000000000000 x3 : 0000000000000000
[    0.000000] x2 : 0000000000000000 x1 : ffff80000a9f9e40 x0 : 0000000000000022
[    0.000000] Call trace:
[    0.000000]  ftrace_bug+0x280/0x2b0
[    0.000000]  ftrace_process_locs+0x310/0x400
[    0.000000]  ftrace_init+0xa0/0x16c
[    0.000000]  start_kernel+0x45c/0x738
[    0.000000]  __primary_switched+0xb8/0xc0
[    0.000000] ---[ end trace 0000000000000000 ]---
[    0.000000] ftrace: allocated 257 pages with 2 groups
[    0.0#
00000] 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] GICv3: GIC: Using split EOI/Deactivate mode
[    0.000000] GICv3: 224 SPIs implemented
[    0.000000] GICv3: 0 Extended SPIs implemented
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GICv3: GICv3 features: 16 PPIs
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x000000002f100000
[    0.000000] ITS [mem 0x2f020000-0x2f03ffff]
[    0.000000] ITS@0x000000002f020000: allocated 8192 Devices
@8800f0000 (indirect, esz 8, psz 64K, shr 1)
[    0.000000] ITS@0x000000002f020000: allocated 8192 Virtual CPUs
@880200000 (indirect, esz 8, psz 64K, shr 1)
[    0.000000] ITS@0x000000002f020000: allocated 8192 Interrupt
Collections @880210000 (flat, esz 8, psz 64K, shr 1)
[    0.000000] GICv3: using LPI property table @0x0000000880220000
[    0.000000] GICv3: CPU0: using allocated LPI pending table
@0x0000000880230000
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] kfence: initialized - using 2097152 bytes for 255
objects at 0x(____ptrval____)-0x(____ptrval____)
[    0.000000] timer_sp804: timer clock not found: -517
[    0.000000] timer_sp804: arm,sp804 clock not found: -2
[    0.000000] Failed to initialize
'/bus@8000000/motherboard-bus/iofpga-bus@300000000/timer@110000': -22
[    0.000000] timer_sp804: timer clock not found: -517
[    0.000000] timer_sp804: arm,sp804 clock not found: -2
[    0.000000] Failed to initialize
'/bus@8000000/motherboard-bus/iofpga-bus@300000000/timer@120000': -22
[    0.000000] arch_timer: cp15 timer(s) running at 100.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0x1ffffffffffffff
max_cycles: 0x171024e7e0, max_idle_ns: 440795205315 ns
[    0.000009] sched_clock: 57 bits at 100MHz, resolution 10ns, wraps
every 4398046511100ns
[    0.001009] random: crng init done
[    0.002015] Console: colour dummy device 80x25
[    0.002709] Calibrating delay loop (skipped), value calculated
using timer frequency.. 200.00 BogoMIPS (lpj=400000)
[    0.002949] pid_max: default: 32768 minimum: 301
[    0.003909] LSM: Security Framework initializing
[    0.004751] Mount-cache hash table entries: 8192 (order: 4, 65536
bytes, linear)
[    0.004915] Mountpoint-cache hash table entries: 8192 (order: 4,
65536 bytes, linear)
[    0.012948] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.013122] Early cacheinfo failed, ret = -2
[    0.023187] cblist_init_generic: Setting adjustable number of
callback queues.
[    0.023309] cblist_init_generic: Setting shift to 3 and lim to 1.
[    0.024609] cblist_init_generic: Setting shift to 3 and lim to 1.
[    0.025809] cblist_init_generic: Setting shift to 3 and lim to 1.
[    0.028426] rcu: Hierarchical SRCU implementation.
[    0.028590] rcu: Max phase no-delay instances is 1000.
[    0.042209] Platform MSI: msi-controller@2f020000 domain created
[    0.043171] PCI/MSI:
/interrupt-controller@2f000000/msi-controller@2f020000 domain created
[    0.044359] fsl-mc MSI: msi-controller@2f020000 domain created
[    0.052019] EFI services will not be available.
[    0.057426] smp: Bringing up secondary CPUs ...
[    0.064109] Detected PIPT I-cache on CPU1
[    0.064230] GICv3: CPU1: found redistributor 100 region 0:0x000000002f120000
[    0.064316] GICv3: CPU1: using allocated LPI pending table
@0x0000000880240000
[    0.064509] CPU1: Booted secondary processor 0x0000000100 [0x410fd0f0]
[    0.072609] Detected PIPT I-cache on CPU2
[    0.072809] GICv3: CPU2: found redistributor 200 region 0:0x000000002f140000
[    0.072809] GICv3: CPU2: using allocated LPI pending table
@0x0000000880250000
[    0.073009] CPU2: Booted secondary processor 0x0000000200 [0x410fd0f0]
[    0.081109] Detected PIPT I-cache on CPU3
[    0.081209] GICv3: CPU3: found redistributor 300 region 0:0x000000002f160000
[    0.081346] GICv3: CPU3: using allocated LPI pending table
@0x0000000880260000
[    0.081510] CPU3: Booted secondary processor 0x0000000300 [0x410fd0f0]
[    0.089809] Detected PIPT I-cache on CPU4
[    0.090009] GICv3: CPU4: found redistributor 10000 region
0:0x000000002f180000
[    0.090030] GICv3: CPU4: using allocated LPI pending table
@0x0000000880270000
[    0.090261] CPU4: Booted secondary processor 0x0000010000 [0x410fd0f0]
[    0.098509] Detected PIPT I-cache on CPU5
[    0.098678] GICv3: CPU5: found redistributor 10100 region
0:0x000000002f1a0000
[    0.098713] GICv3: CPU5: using allocated LPI pending table
@0x0000000880280000
[    0.098909] CPU5: Booted secondary processor 0x0000010100 [0x410fd0f0]
[    0.107010] Detected PIPT I-cache on CPU6
[    0.107233] GICv3: CPU6: found redistributor 10200 region
0:0x000000002f1c0000
[    0.107315] GICv3: CPU6: using allocated LPI pending table
@0x0000000880290000
[    0.107441] CPU6: Booted secondary processor 0x0000010200 [0x410fd0f0]
[    0.115909] Detected PIPT I-cache on CPU7
[    0.116119] GICv3: CPU7: found redistributor 10300 region
0:0x000000002f1e0000
[    0.116119] GICv3: CPU7: using allocated LPI pending table
@0x00000008802a0000
[    0.116326] CPU7: Booted secondary processor 0x0000010300 [0x410fd0f0]
[    0.117909] smp: Brought up 1 node, 8 CPUs
[    0.119709] SMP: Total of 8 processors activated.
[    0.119909] CPU features: detected: 32-bit EL0 Support
[    0.120023] CPU features: detected: 32-bit EL1 Support
[    0.120176] CPU features: detected: ARMv8.4 Translation Table Level
[    0.120326] CPU features: detected: Data cache clean to the PoU not
required for I/D coherence
[    0.120457] CPU features: detected: Common not Private translations
[    0.120609] CPU features: detected: CRC32 instructions
[    0.120717] CPU features: detected: E0PD
[    0.120832] CPU features: detected: Enhanced Counter Virtualization
[    0.121009] CPU features: detected: Generic authentication (IMP DEF
algorithm)
[    0.121151] CPU features: detected: RCpc load-acquire (LDAPR)
[    0.121323] CPU features: detected: LSE atomic instructions
[    0.121809] CPU features: detected: Privileged Access Never
[    0.121932] CPU features: detected: RAS Extension Support
[    0.122060] CPU features: detected: Random Number Generator
[    0.122209] CPU features: detected: Speculation barrier (SB)
[    0.122309] CPU features: detected: Stage-2 Force Write-Back
[    0.122470] CPU features: detected: TLB range maintenance instructions
[    0.122634] CPU features: detected: Speculative Store Bypassing Safe (SSBS)
[    0.122716] CPU features: detected: Scalable Vector Extension
[    0.413916] SVE: maximum available vector length 64 bytes per vector
[    0.414109] SVE: default vector length 64 bytes per vector
[    0.430509] CPU features: No Cache Writeback Granule information,
assuming 128
[    0.430655] CPU: All CPU(s) started at EL2
[    0.449009] devtmpfs: initialized
[    0.476391] clocksource: jiffies: mask: 0xffffffff max_cycles:
0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.476610] futex hash table entries: 2048 (order: 5, 131072 bytes, linear)
[    0.484509] pinctrl core: initialized pinctrl subsystem
[    0.499875] DMI not present or invalid.
[    0.500613] ------------[ cut here ]------------
[    0.500709] kernel BUG at arch/arm64/kernel/traps.c:497!
[    0.500777] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP
[    0.500860] Modules linked in:
[    0.500947] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G        W
   5.19.0-rc6-next-20220711 #1
[    0.501034] Hardware name: FVP Base RevC (DT)
[    0.501109] pstate: 00400009 (nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[    0.501209] pc : do_undefinstr+0x284/0x2b4
[    0.501381] lr : do_undefinstr+0x150/0x2b4
[    0.501509] sp : ffff80000affbbc0
[    0.501509] x29: ffff80000affbbc0 x28: ffff000800330000 x27: ffff800009f00444
[    0.501759] x26: ffff800009fe6038 x25: 0000000000000001 x24: ffff80000a115968
[    0.501923] x23: 0000000040400009 x22: ffff800009f80de0 x21: ffff80000affbd90
[    0.502109] x20: 0000000001000000 x19: ffff80000affbc40 x18: ffffffffffffffff
[    0.502309] x17: 000000000000003f x16: 000000000000000a x15: ffff0008002b1a1c
[    0.502422] x14: ffffffffffffffff x13: ffff0008002b1268 x12: 20726f20746e6573
[    0.502683] x11: ffff80000aa12950 x10: 0000000000000073 x9 : ffff8000093bcd6c
[    0.502856] x8 : 000000003d4d554e x7 : ffff80000affbce0 x6 : 0000000000000001
[    0.503030] x5 : ffff80000a9ef000 x4 : ffff80000a9ef2e0 x3 : 0000000000000000
[    0.503234] x2 : ffff000800330000 x1 : ffff000800330000 x0 : 0000000040400009
[    0.503409] Call trace:
[    0.503480]  do_undefinstr+0x284/0x2b4
[    0.503562]  el1_undef+0x30/0x60
[    0.503709]  el1h_64_sync_handler+0x84/0xd0
[    0.503811]  el1h_64_sync+0x64/0x68
[    0.503909]  net_sysctl_init+0x8/0x7c
[    0.504053]  do_one_initcall+0x50/0x2b0
[    0.504158]  kernel_init_freeable+0x24c/0x2d4
[    0.504245]  kernel_init+0x30/0x140
[    0.504381]  ret_from_fork+0x10/0x20
[    0.504509] Code: 17ffff98 a9425bf5 17ffffbb a9025bf5 (d4210000)
[    0.504627] ---[ end trace 0000000000000000 ]---
[    0.504678] note: sw#
apper/0[1] exited with preempt_count 1
[    0.504852] Kernel panic - not syncing: Attempted to kill init!
exitcode=0x0000000b
[    0.504939] SMP: stopping secondary CPUs
[    0.505209] ---[ end Kernel panic - not syncing: Attempted to kill
init! exitcode=0x0000000b ]---

Build:
https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20220711/testrun/10743317/suite/log-parser-test/tests/

https://builds.tuxbuild.com/2BnQMpJj3kDTJXoCwd2pY5gW9CN/

Best regards
Naresh Kamboju


--
Linaro LKFT
https://lkft.linaro.org

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: FVP: kernel BUG at arch/arm64/kernel/traps.c:497 - Internal error: Oops - BUG: 0
  2022-07-12  9:57 FVP: kernel BUG at arch/arm64/kernel/traps.c:497 - Internal error: Oops - BUG: 0 Naresh Kamboju
@ 2022-07-12 11:54 ` Mark Brown
  2022-07-13 19:37   ` Naresh Kamboju
  2022-07-12 12:49 ` Mark Rutland
  1 sibling, 1 reply; 14+ messages in thread
From: Mark Brown @ 2022-07-12 11:54 UTC (permalink / raw)
  To: Naresh Kamboju
  Cc: open list, Linux-Next Mailing List, Linux ARM, lkft-triage,
	regressions, Catalin Marinas, Will Deacon, Mark Rutland,
	Arnd Bergmann, Anders Roxell, Aishwarya TCV


[-- Attachment #1.1: Type: text/plain, Size: 992 bytes --]

On Tue, Jul 12, 2022 at 03:27:09PM +0530, Naresh Kamboju wrote:

> FVP boot failed with linux next 20220712.

I can't reproduce this, including with your kernel binary, which
suggests that this an issue with your FVP usage and firmware.

> Boot log:
> Starting kernel ...
> 
> [    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd0f0]
> [    0.000000] Linux version 5.19.0-rc6-next-20220711

How are you invoking the FVP, what firmware are you using and how is it
configured?

> [    0.500709] kernel BUG at arch/arm64/kernel/traps.c:497!

This is an undefined instruction, my first thought there would be that
you have some feature enabled for the kernel which requires enablement
at EL3 but your EL3 firmware is not configured to enable it.

> [    0.503562]  el1_undef+0x30/0x60
> [    0.503709]  el1h_64_sync_handler+0x84/0xd0
> [    0.503811]  el1h_64_sync+0x64/0x68
> [    0.503909]  net_sysctl_init+0x8/0x7c

This is where the undef came from.

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: FVP: kernel BUG at arch/arm64/kernel/traps.c:497 - Internal error: Oops - BUG: 0
  2022-07-12  9:57 FVP: kernel BUG at arch/arm64/kernel/traps.c:497 - Internal error: Oops - BUG: 0 Naresh Kamboju
  2022-07-12 11:54 ` Mark Brown
@ 2022-07-12 12:49 ` Mark Rutland
  2022-07-12 12:52   ` Mark Brown
  2022-07-12 16:21   ` Mark Rutland
  1 sibling, 2 replies; 14+ messages in thread
From: Mark Rutland @ 2022-07-12 12:49 UTC (permalink / raw)
  To: Naresh Kamboju
  Cc: open list, Linux-Next Mailing List, Linux ARM, lkft-triage,
	regressions, Catalin Marinas, Mark Brown, Will Deacon,
	Arnd Bergmann, Anders Roxell, Aishwarya TCV

On Tue, Jul 12, 2022 at 03:27:09PM +0530, Naresh Kamboju wrote:
> FVP boot failed with linux next 20220712.

FWIW, I just grabbed your Image from:

 https://builds.tuxbuild.com/2BnQMpJj3kDTJXoCwd2pY5gW9CN/

...  and it boots perfectly fine under:

* An FVP Base RevC model using the latest boot-wrapper
* a QEMU KVM VM on a ThunderX2 host.
* a QEMU TCG VM on a ThunderX2 host (with -cpu max).

What firmware are you using in your FVP? How are you loading the kernel?

> Reported-by:  Linux Kernel Functional Testing <lkft@linaro.org>
> Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org>
> 
> Boot log:
> Starting kernel ...
> 
> [    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd0f0]
> [    0.000000] Linux version 5.19.0-rc6-next-20220711
> (tuxmake@tuxmake) (aarch64-linux-gnu-gcc (Debian 11.3.0-3) 11.3.0, GNU
> ld (GNU Binutils for Debian) 2.38) #1 SMP PREEMPT @1657539508
> [    0.000000] Machine model: FVP Base RevC
> [    0.000000] earlycon: pl11 at MMIO 0x000000001c090000 (options '')
> [    0.000000] printk: bootconsole [pl11] enabled
> [    0.000000] efi: UEFI not found.
> [    0.000000] Reserved memory: created DMA memory pool at
> 0x0000000018000000, size 8 MiB
> [    0.000000] OF: reserved mem: initialized node vram@18000000,
> compatible id shared-dma-pool
> [    0.000000] NUMA: No NUMA configuration found
> [    0.000000] NUMA: Faking a node at [mem
> 0x0000000080000000-0x00000008ffffffff]
> [    0.000000] NUMA: NODE_DATA [mem 0x8ff7f6b40-0x8ff7f8fff]
> [    0.000000] Zone ranges:
> [    0.000000]   DMA      [mem 0x0000000080000000-0x00000000ffffffff]
> [    0.000000]   DMA32    empty
> [    0.000000]   Normal   [mem 0x0000000100000000-0x00000008ffffffff]
> [    0.000000] Movable zone start for each node
> [    0.000000] Early memory node ranges
> [    0.000000]   node   0: [mem 0x0000000080000000-0x00000000feffffff]
> [    0.000000]   node   0: [mem 0x0000000880000000-0x00000008ffffffff]
> [    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000008ffffffff]
> [    0.000000] On node 0, zone Normal: 4096 pages in unavailable ranges
> [    0.000000] cma: Reserved 32 MiB at 0x00000000fd000000
> [    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: MIGRATE_INFO_TYPE not supported.
> [    0.000000] psci: SMC Calling Convention v1.2
> [    0.000000] percpu: Embedded 30 pages/cpu s82856 r8192 d31832 u122880
> [    0.000000] pcpu-alloc: s82856 r8192 d31832 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 PIPT I-cache on CPU0
> [    0.000000] CPU features: detected: Branch Target Identification
> [    0.000000] CPU features: detected: Address authentication (IMP DEF
> algorithm)
> [    0.000000] CPU features: detected: GIC system register CPU interface
> [    0.000000] CPU features: detected: Virtualization Host Extensions
> [    0.000000] CPU features: detected: Hardware dirty bit management
> [    0.000000] CPU features: detected: Spectre-v4
> [    0.000000] alternatives: patching kernel code
> [    0.000000] Fallback order for Node 0: 0
> [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1028096
> [    0.000000] Policy zone: Normal
> [    0.000000] Kernel command line: console=ttyAMA0
> earlycon=pl011,0x1c090000 root=/dev/vda rw ip=dhcp debug user_debug=31
> loglevel=9
> [    0.000000] Unknown kernel command line parameters
> \"user_debug=31\", 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: mapped [mem
> 0x00000000f9000000-0x00000000fd000000] (64MB)
> [    0.000000] Memory: 3947088K/4177920K available (20288K kernel
> code, 4902K rwdata, 11308K rodata, 11136K init, 955K bss, 198064K
> reserved, 32768K cma-reserved)
> [    0.000000] SLUB: HWalign=128, Order=0-3, MinObjects=0, CPUs=8, Nodes=1
> [    0.000000] ftrace: allocating 65660 entries in 257 pages
> [    0.000000] ------------[ ftrace bug ]------------
> [    0.000000] ftrace failed to modify
> [    0.000000] [<ffff800009f80030>] udpv6_init+0x8/0x74
> [    0.000000]  actual:   00:00:00:00
> [    0.000000] Initializing ftrace call sites
> [    0.000000] ftrace record flags: 0
> [    0.000000]  (0)
> [    0.000000]  expected tramp: ffff80000802f3a8
> [    0.000000] ------------[ cut here ]------------

This looks bad. IIUC that "actual" line tells us that the instruction we wanted
to modify consisted of zeroes, and was not a NOP as it should have been.

So perhaps the kernel has not been fully loaded into memory, or has been
corrupted somehow after loading. That could explain the subsequent failure, too.

[...]

> [    0.500613] ------------[ cut here ]------------
> [    0.500709] kernel BUG at arch/arm64/kernel/traps.c:497!
> [    0.500777] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP
> [    0.500860] Modules linked in:
> [    0.500947] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G        W
>    5.19.0-rc6-next-20220711 #1
> [    0.501034] Hardware name: FVP Base RevC (DT)
> [    0.501109] pstate: 00400009 (nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
> [    0.501209] pc : do_undefinstr+0x284/0x2b4
> [    0.501381] lr : do_undefinstr+0x150/0x2b4
> [    0.501509] sp : ffff80000affbbc0
> [    0.501509] x29: ffff80000affbbc0 x28: ffff000800330000 x27: ffff800009f00444
> [    0.501759] x26: ffff800009fe6038 x25: 0000000000000001 x24: ffff80000a115968
> [    0.501923] x23: 0000000040400009 x22: ffff800009f80de0 x21: ffff80000affbd90
> [    0.502109] x20: 0000000001000000 x19: ffff80000affbc40 x18: ffffffffffffffff
> [    0.502309] x17: 000000000000003f x16: 000000000000000a x15: ffff0008002b1a1c
> [    0.502422] x14: ffffffffffffffff x13: ffff0008002b1268 x12: 20726f20746e6573
> [    0.502683] x11: ffff80000aa12950 x10: 0000000000000073 x9 : ffff8000093bcd6c
> [    0.502856] x8 : 000000003d4d554e x7 : ffff80000affbce0 x6 : 0000000000000001
> [    0.503030] x5 : ffff80000a9ef000 x4 : ffff80000a9ef2e0 x3 : 0000000000000000
> [    0.503234] x2 : ffff000800330000 x1 : ffff000800330000 x0 : 0000000040400009
> [    0.503409] Call trace:
> [    0.503480]  do_undefinstr+0x284/0x2b4
> [    0.503562]  el1_undef+0x30/0x60
> [    0.503709]  el1h_64_sync_handler+0x84/0xd0
> [    0.503811]  el1h_64_sync+0x64/0x68
> [    0.503909]  net_sysctl_init+0x8/0x7c
> [    0.504053]  do_one_initcall+0x50/0x2b0
> [    0.504158]  kernel_init_freeable+0x24c/0x2d4
> [    0.504245]  kernel_init+0x30/0x140
> [    0.504381]  ret_from_fork+0x10/0x20
> [    0.504509] Code: 17ffff98 a9425bf5 17ffffbb a9025bf5 (d4210000)
> [    0.504627] ---[ end trace 0000000000000000 ]---

We should really improve this WARN to something that tells us about the actual
failing instruction.

Thanks.
Mark.

> Build:
> https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20220711/testrun/10743317/suite/log-parser-test/tests/
> 
> https://builds.tuxbuild.com/2BnQMpJj3kDTJXoCwd2pY5gW9CN/
> 
> Best regards
> Naresh Kamboju
> 
> 
> --
> Linaro LKFT
> https://lkft.linaro.org

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: FVP: kernel BUG at arch/arm64/kernel/traps.c:497 - Internal error: Oops - BUG: 0
  2022-07-12 12:49 ` Mark Rutland
@ 2022-07-12 12:52   ` Mark Brown
  2022-07-12 16:21   ` Mark Rutland
  1 sibling, 0 replies; 14+ messages in thread
From: Mark Brown @ 2022-07-12 12:52 UTC (permalink / raw)
  To: Mark Rutland
  Cc: Naresh Kamboju, open list, Linux-Next Mailing List, Linux ARM,
	lkft-triage, regressions, Catalin Marinas, Will Deacon,
	Arnd Bergmann, Anders Roxell, Aishwarya TCV


[-- Attachment #1.1: Type: text/plain, Size: 259 bytes --]

On Tue, Jul 12, 2022 at 01:49:55PM +0100, Mark Rutland wrote:

> ...  and it boots perfectly fine under:

> * An FVP Base RevC model using the latest boot-wrapper

Also with TF-A and u-boot (both some random recentish tip of tree
whenever I last built them).

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: FVP: kernel BUG at arch/arm64/kernel/traps.c:497 - Internal error: Oops - BUG: 0
  2022-07-12 12:49 ` Mark Rutland
  2022-07-12 12:52   ` Mark Brown
@ 2022-07-12 16:21   ` Mark Rutland
  1 sibling, 0 replies; 14+ messages in thread
From: Mark Rutland @ 2022-07-12 16:21 UTC (permalink / raw)
  To: Naresh Kamboju
  Cc: open list, Linux-Next Mailing List, Linux ARM, lkft-triage,
	regressions, Catalin Marinas, Mark Brown, Will Deacon,
	Arnd Bergmann, Anders Roxell, Aishwarya TCV

On Tue, Jul 12, 2022 at 01:49:55PM +0100, Mark Rutland wrote:
> On Tue, Jul 12, 2022 at 03:27:09PM +0530, Naresh Kamboju wrote:
> > [    0.500613] ------------[ cut here ]------------
> > [    0.500709] kernel BUG at arch/arm64/kernel/traps.c:497!
> > [    0.500777] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP
> > [    0.500860] Modules linked in:
> > [    0.500947] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G        W
> >    5.19.0-rc6-next-20220711 #1
> > [    0.501034] Hardware name: FVP Base RevC (DT)
> > [    0.501109] pstate: 00400009 (nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
> > [    0.501209] pc : do_undefinstr+0x284/0x2b4
> > [    0.501381] lr : do_undefinstr+0x150/0x2b4
> > [    0.501509] sp : ffff80000affbbc0
> > [    0.501509] x29: ffff80000affbbc0 x28: ffff000800330000 x27: ffff800009f00444
> > [    0.501759] x26: ffff800009fe6038 x25: 0000000000000001 x24: ffff80000a115968
> > [    0.501923] x23: 0000000040400009 x22: ffff800009f80de0 x21: ffff80000affbd90
> > [    0.502109] x20: 0000000001000000 x19: ffff80000affbc40 x18: ffffffffffffffff
> > [    0.502309] x17: 000000000000003f x16: 000000000000000a x15: ffff0008002b1a1c
> > [    0.502422] x14: ffffffffffffffff x13: ffff0008002b1268 x12: 20726f20746e6573
> > [    0.502683] x11: ffff80000aa12950 x10: 0000000000000073 x9 : ffff8000093bcd6c
> > [    0.502856] x8 : 000000003d4d554e x7 : ffff80000affbce0 x6 : 0000000000000001
> > [    0.503030] x5 : ffff80000a9ef000 x4 : ffff80000a9ef2e0 x3 : 0000000000000000
> > [    0.503234] x2 : ffff000800330000 x1 : ffff000800330000 x0 : 0000000040400009
> > [    0.503409] Call trace:
> > [    0.503480]  do_undefinstr+0x284/0x2b4
> > [    0.503562]  el1_undef+0x30/0x60
> > [    0.503709]  el1h_64_sync_handler+0x84/0xd0
> > [    0.503811]  el1h_64_sync+0x64/0x68
> > [    0.503909]  net_sysctl_init+0x8/0x7c
> > [    0.504053]  do_one_initcall+0x50/0x2b0
> > [    0.504158]  kernel_init_freeable+0x24c/0x2d4
> > [    0.504245]  kernel_init+0x30/0x140
> > [    0.504381]  ret_from_fork+0x10/0x20
> > [    0.504509] Code: 17ffff98 a9425bf5 17ffffbb a9025bf5 (d4210000)
> > [    0.504627] ---[ end trace 0000000000000000 ]---
> 
> We should really improve this WARN to something that tells us about the actual
> failing instruction.

FWIW, I've put together a series to improve the reporting here:

  https://lore.kernel.org/linux-arm-kernel/20220712161452.4142444-1-mark.rutland@arm.com

Thanks,
Mark.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: FVP: kernel BUG at arch/arm64/kernel/traps.c:497 - Internal error: Oops - BUG: 0
  2022-07-12 11:54 ` Mark Brown
@ 2022-07-13 19:37   ` Naresh Kamboju
  2022-07-14 11:26     ` Mark Rutland
  2022-07-14 11:37     ` Mark Brown
  0 siblings, 2 replies; 14+ messages in thread
From: Naresh Kamboju @ 2022-07-13 19:37 UTC (permalink / raw)
  To: Mark Brown
  Cc: open list, Linux-Next Mailing List, Linux ARM, lkft-triage,
	regressions, Catalin Marinas, Will Deacon, Mark Rutland,
	Arnd Bergmann, Anders Roxell, Aishwarya TCV

On Tue, 12 Jul 2022 at 17:24, Mark Brown <broonie@kernel.org> wrote:
>
> On Tue, Jul 12, 2022 at 03:27:09PM +0530, Naresh Kamboju wrote:
>
> > FVP boot failed with linux next 20220712.
>
> I can't reproduce this, including with your kernel binary, which
> suggests that this an issue with your FVP usage and firmware.
>
> > Boot log:
> > Starting kernel ...
> >
> > [    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd0f0]
> > [    0.000000] Linux version 5.19.0-rc6-next-20220711
>
> How are you invoking the FVP, what firmware are you using and how is it
> configured?
>
> > [    0.500709] kernel BUG at arch/arm64/kernel/traps.c:497!
>
> This is an undefined instruction, my first thought there would be that
> you have some feature enabled for the kernel which requires enablement
> at EL3 but your EL3 firmware is not configured to enable it.

Thanks for investigating the reported issue and providing details.
We will do the needful to update / configure EL3 firmware.


>
> > [    0.503562]  el1_undef+0x30/0x60
> > [    0.503709]  el1h_64_sync_handler+0x84/0xd0
> > [    0.503811]  el1h_64_sync+0x64/0x68
> > [    0.503909]  net_sysctl_init+0x8/0x7c
>
> This is where the undef came from.

Here I am providing the available data.
Let me know what I am missing here, so that I will update my setup.
Thanks in advance.

Fast Models 11.17.21 (Feb 16 2022)

https://storage.tuxboot.com/fvp-aemva/tf-bl1.bin
https://storage.tuxboot.com/fvp-aemva/fvp-base-revc.dtb
https://storage.tuxboot.com/fvp-aemva/fip-uboot.bin
https://builds.tuxbuild.com/2BnQMpJj3kDTJXoCwd2pY5gW9CN/Image.gz
https://builds.tuxbuild.com/2BnQMpJj3kDTJXoCwd2pY5gW9CN/modules.tar.xz


docker run
  --rm
  --interactive
  --tty
  --hostname lava
  --name tuxrun-r4_1075p-lava-1
  --volume /var/lib/lava/dispatcher/tmp/tuxrun-r4_1075p-1/url-repo-action-3h1oa_zl/url_repo/https___storage.tuxboot.com_test-definitions_2022.01.tar:/tuxrun-r4_1075p-lava-1/https___storage.tuxboot.com_test-definitions_2022.01.tar
  --volume /var/lib/lava/dispatcher/tmp/tuxrun-r4_1075p-1/fvp-deploy-w_qt5qgt/bl1/tf-bl1.bin:/tuxrun-r4_1075p-lava-1/tf-bl1.bin
  --volume /var/lib/lava/dispatcher/tmp/tuxrun-r4_1075p-1/fvp-deploy-w_qt5qgt/dtb/fvp-base-revc.dtb:/tuxrun-r4_1075p-lava-1/fvp-base-revc.dtb
  --volume /var/lib/lava/dispatcher/tmp/tuxrun-r4_1075p-1/fvp-deploy-w_qt5qgt/fip/fip-uboot.bin:/tuxrun-r4_1075p-lava-1/fip-uboot.bin
  --volume /var/lib/lava/dispatcher/tmp/tuxrun-r4_1075p-1/fvp-deploy-w_qt5qgt/kernel/Image:/tuxrun-r4_1075p-lava-1/Image
  --volume /var/lib/lava/dispatcher/tmp/tuxrun-r4_1075p-1/fvp-deploy-w_qt5qgt/rootfs/https___storage.lkft.org_rootfs_oe-sumo_20220219_juno_rpb-console-image-lkft-juno-20220219023239.rootfs.ext4:/tuxrun-r4_1075p-lava-1/https___storage.lkft.org_rootfs_oe-sumo_20220219_juno_rpb-console-image-lkft-juno-20220219023239.rootfs.ext4
  --volume /var/lib/lava/dispatcher/tmp/tuxrun-r4_1075p-1/fvp-deploy-w_qt5qgt/rootfs.modules/modules.tar:/tuxrun-r4_1075p-lava-1/modules.tar
fvp:aemva-11.17.21



/opt/model/FVP_AEMvA/models/Linux64_GCC-9.3/FVP_Base_RevC-2xAEMvA
  --plugin /opt/model/FVP_AEMvA/plugins/Linux64_GCC-9.3/ScalableVectorExtension.so
  --data cluster0.cpu0=/tuxrun-r4_1075p-lava-1/fvp-base-revc.dtb@0x86000000
  --data cluster0.cpu0=/tuxrun-r4_1075p-lava-1/Image@0x80080000
   -C pctl.startup=0.0.0.0
   -C bp.secure_memory=0
   -C cluster0.NUM_CORES=4
   -C cluster1.NUM_CORES=4
   -C cache_state_modelled=0
   -C bp.smsc_91c111.enabled=true
   -C bp.pl011_uart0.untimed_fifos=1
   -C bp.pl011_uart0.unbuffered_output=1
   -C bp.secureflashloader.fname='/tuxrun-r4_1075p-lava-1/tf-bl1.bin'
   -C bp.flashloader0.fname='/tuxrun-r4_1075p-lava-1/fip-uboot.bin'
   -C bp.ve_sysregs.mmbSiteDefault=0
   -C bp.ve_sysregs.exit_on_shutdown=1
   -C bp.virtioblockdevice.image_path='/tuxrun-r4_1075p-lava-1/https___storage.lkft.org_rootfs_oe-sumo_20220219_juno_rpb-console-image-lkft-juno-20220219023239.rootfs.ext4'
   -C pci.pcidevice0.bus=0xFF
   -C pci.pcidevice1.bus=0xFF
   -C cluster0.has_large_system_ext=1
   -C cluster1.has_large_system_ext=1
   -C cluster0.has_16k_granule=1
   -C cluster1.has_16k_granule=1
   -C cluster0.has_branch_target_exception=1
   -C cluster1.has_branch_target_exception=1
   -C cluster0.has_rndr=1
   -C cluster1.has_rndr=1
   -C cluster0.has_arm_v8-1=1
   -C cluster1.has_arm_v8-1=1
   -C cluster0.has_arm_v8-2=1
   -C cluster1.has_arm_v8-2=1
   -C cluster0.has_arm_v8-3=1
   -C cluster1.has_arm_v8-3=1
   -C cluster0.has_arm_v8-4=1
   -C cluster1.has_arm_v8-4=1
   -C cluster0.has_arm_v8-5=1
   -C cluster1.has_arm_v8-5=1
   -C cluster0.has_arm_v8-6=1
   -C cluster1.has_arm_v8-6=1

- Naresh

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: FVP: kernel BUG at arch/arm64/kernel/traps.c:497 - Internal error: Oops - BUG: 0
  2022-07-13 19:37   ` Naresh Kamboju
@ 2022-07-14 11:26     ` Mark Rutland
  2022-07-14 11:42       ` Mark Brown
  2022-07-14 11:37     ` Mark Brown
  1 sibling, 1 reply; 14+ messages in thread
From: Mark Rutland @ 2022-07-14 11:26 UTC (permalink / raw)
  To: Naresh Kamboju
  Cc: Mark Brown, open list, Linux-Next Mailing List, Linux ARM,
	lkft-triage, regressions, Catalin Marinas, Will Deacon,
	Arnd Bergmann, Anders Roxell, Aishwarya TCV

On Thu, Jul 14, 2022 at 01:07:32AM +0530, Naresh Kamboju wrote:
 
> Here I am providing the available data.
> Let me know what I am missing here, so that I will update my setup.
> Thanks in advance.
> 
> Fast Models 11.17.21 (Feb 16 2022)
> 
> https://storage.tuxboot.com/fvp-aemva/tf-bl1.bin
> https://storage.tuxboot.com/fvp-aemva/fvp-base-revc.dtb
> https://storage.tuxboot.com/fvp-aemva/fip-uboot.bin
> https://builds.tuxbuild.com/2BnQMpJj3kDTJXoCwd2pY5gW9CN/Image.gz
> https://builds.tuxbuild.com/2BnQMpJj3kDTJXoCwd2pY5gW9CN/modules.tar.xz

I had a go with these files...

> /opt/model/FVP_AEMvA/models/Linux64_GCC-9.3/FVP_Base_RevC-2xAEMvA
>   --plugin /opt/model/FVP_AEMvA/plugins/Linux64_GCC-9.3/ScalableVectorExtension.so
>   --data cluster0.cpu0=/tuxrun-r4_1075p-lava-1/fvp-base-revc.dtb@0x86000000
>   --data cluster0.cpu0=/tuxrun-r4_1075p-lava-1/Image@0x80080000
>    -C pctl.startup=0.0.0.0
>    -C bp.secure_memory=0
>    -C cluster0.NUM_CORES=4
>    -C cluster1.NUM_CORES=4
>    -C cache_state_modelled=0
>    -C bp.smsc_91c111.enabled=true
>    -C bp.pl011_uart0.untimed_fifos=1
>    -C bp.pl011_uart0.unbuffered_output=1
>    -C bp.secureflashloader.fname='/tuxrun-r4_1075p-lava-1/tf-bl1.bin'
>    -C bp.flashloader0.fname='/tuxrun-r4_1075p-lava-1/fip-uboot.bin'
>    -C bp.ve_sysregs.mmbSiteDefault=0
>    -C bp.ve_sysregs.exit_on_shutdown=1
>    -C bp.virtioblockdevice.image_path='/tuxrun-r4_1075p-lava-1/https___storage.lkft.org_rootfs_oe-sumo_20220219_juno_rpb-console-image-lkft-juno-20220219023239.rootfs.ext4'
>    -C pci.pcidevice0.bus=0xFF
>    -C pci.pcidevice1.bus=0xFF
>    -C cluster0.has_large_system_ext=1
>    -C cluster1.has_large_system_ext=1
>    -C cluster0.has_16k_granule=1
>    -C cluster1.has_16k_granule=1
>    -C cluster0.has_branch_target_exception=1
>    -C cluster1.has_branch_target_exception=1
>    -C cluster0.has_rndr=1
>    -C cluster1.has_rndr=1
>    -C cluster0.has_arm_v8-1=1
>    -C cluster1.has_arm_v8-1=1
>    -C cluster0.has_arm_v8-2=1
>    -C cluster1.has_arm_v8-2=1
>    -C cluster0.has_arm_v8-3=1
>    -C cluster1.has_arm_v8-3=1
>    -C cluster0.has_arm_v8-4=1
>    -C cluster1.has_arm_v8-4=1
>    -C cluster0.has_arm_v8-5=1
>    -C cluster1.has_arm_v8-5=1
>    -C cluster0.has_arm_v8-6=1
>    -C cluster1.has_arm_v8-6=1

... and this command line (modulo paths, and providing my own bogus rootfs) ...

... and this boots as far as loading userspace on a couple of models I've tried
it on (though the latest internal model I have doesn't like the PCI options).

I note that your log has:

| Hit any key to stop autoboot:  1  0 
| smh_open: ERROR fd -1 for file 'boot.img'
| smh_open: ERROR fd -1 for file 'Image'
| smh_open: ERROR fd -1 for file 'devtree.dtb'
| smh_open: ERROR fd -1 for file 'ramdisk.img'

... whereas mine has:

| Hit any key to stop autoboot:  0   
| smh_open: ERROR fd -1 for file 'boot.img'
| loaded file Image from 80080000 to 82F299FF, 02EA9A00 bytes
| smh_open: ERROR fd -1 for file 'devtree.dtb'
| smh_open: ERROR fd -1 for file 'ramdisk.img'
| fdt - flattened device tree utility commands

... and I wonder if that has something to do with it, given it appears that
your Image is corrupted somehow.

Full log below.

Thanks,
Mark.

---->8----

NOTICE:  Booting Trusted Firmware
NOTICE:  BL1: v2.5(debug):v2.5
NOTICE:  BL1: Built : 09:39:44, Apr  8 2022
INFO:    BL1: RAM 0x4035000 - 0x403c000
INFO:    Loading image id=31 at address 0x4001010
INFO:    Image id=31 loaded: 0x4001010 - 0x40011e8
INFO:    FCONF: Config file with image ID:31 loaded at address = 0x4001010
INFO:    Loading image id=24 at address 0x4001300
INFO:    Image id=24 loaded: 0x4001300 - 0x400156c
INFO:    FCONF: Config file with image ID:24 loaded at address = 0x4001300
INFO:    BL1: Loading BL2
INFO:    Loading image id=1 at address 0x4022000
INFO:    Image id=1 loaded: 0x4022000 - 0x402a779
NOTICE:  BL1: Booting BL2
INFO:    Entry point address = 0x4022000
INFO:    SPSR = 0x3c5
INFO:    FCONF: Reading FW_CONFIG firmware configuration file from: 0x4001010
INFO:    FCONF: Reading firmware configuration information for: dyn_cfg
INFO:    FCONF: Reading TB_FW firmware configuration file from: 0x4001300
NOTICE:  BL2: v2.5(debug):v2.5
NOTICE:  BL2: Built : 08:01:44, May  2 2022
INFO:    BL2: Doing platform setup
INFO:    Configuring TrustZone Controller
INFO:    Total 4 regions set.
INFO:    BL2: Loading image id 3
INFO:    Loading image id=3 at address 0x4003000
INFO:    Image id=3 loaded: 0x4003000 - 0x401623c
INFO:    BL2: Loading image id 23
INFO:    Loading image id=23 at address 0x82000000
INFO:    Image id=23 loaded: 0x82000000 - 0x82002348
INFO:    BL2: Loading image id 25
INFO:    Loading image id=25 at address 0x4001300
INFO:    Image id=25 loaded: 0x4001300 - 0x4001348
INFO:    BL2: Loading image id 5
INFO:    Loading image id=5 at address 0x88000000
INFO:    Image id=5 loaded: 0x88000000 - 0x8807fb28
INFO:    BL2: Loading image id 27
INFO:    Loading image id=27 at address 0x80000000
INFO:    Image id=27 loaded: 0x80000000 - 0x80000048
NOTICE:  BL1: Booting BL31
INFO:    Entry point address = 0x4003000
INFO:    SPSR = 0x3cd
INFO:    FCONF: Reading HW_CONFIG firmware configuration file from: 0x82000000
INFO:    FCONF: Reading firmware configuration information for: cpu_timer
INFO:    FCONF: Reading firmware configuration information for: uart_config
INFO:    FCONF: Reading firmware configuration information for: topology
INFO:    FCONF: Reading firmware configuration information for: gicv3_config
NOTICE:  BL31: v2.5(debug):v2.5
NOTICE:  BL31: Built : 08:01:44, May  2 2022
INFO:    GICv3 with legacy support detected.
INFO:    ARM GICv3 driver initialized in EL3
INFO:    Maximum SPI INTID supported: 255
INFO:    BL31: Initializing runtime services
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x88000000
INFO:    SPSR = 0x3c9


U-Boot 2021.04-dirty (May 02 2022 - 08:04:14 +0000) vexpress_aemv8a

DRAM:  4 GiB
Flash: 64 MiB
*** Warning - bad CRC, using default environment

In:    serial_pl01x
Out:   serial_pl01x
Err:   serial_pl01x
Net:   SMC91111-0
Hit any key to stop autoboot:  0 
smh_open: ERROR fd -1 for file 'boot.img'
loaded file Image from 80080000 to 82F299FF, 02EA9A00 bytes
smh_open: ERROR fd -1 for file 'devtree.dtb'
smh_open: ERROR fd -1 for file 'ramdisk.img'
fdt - flattened device tree utility commands

Usage:
fdt addr [-c]  <addr> [<length>]   - Set the [control] fdt location to <addr>
fdt move   <fdt> <newaddr> <length> - Copy the fdt to <addr> and make it active
fdt resize [<extrasize>]            - Resize fdt to size + padding to 4k addr + some optional <extrasize> if needed
fdt print  <path> [<prop>]          - Recursive print starting at <path>
fdt list   <path> [<prop>]          - Print one level starting at <path>
fdt get value <var> <path> <prop>   - Get <property> and store in <var>
fdt get name <var> <path> <index>   - Get name of node <index> and store in <var>
fdt get addr <var> <path> <prop>    - Get start address of <property> and store in <var>
fdt get size <var> <path> [<prop>]  - Get size of [<property>] or num nodes and store in <var>
fdt set    <path> <prop> [<val>]    - Set <property> [to <val>]
fdt mknode <path> <node>            - Create a new node after <path>
fdt rm     <path> [<prop>]          - Delete the node or <property>
fdt header [get <var> <member>]     - Display header info
                                      get - get header member <member> and store it in <var>
fdt bootcpu <id>                    - Set boot cpuid
fdt memory <addr> <size>            - Add/Update memory node
fdt rsvmem print                    - Show current mem reserves
fdt rsvmem add <addr> <size>        - Add a mem reserve
fdt rsvmem delete <index>           - Delete a mem reserves
fdt chosen [<start> <end>]          - Add/update the /chosen branch in the tree
                                        <start>/<end> - initrd start/end addr
NOTE: Dereference aliases by omitting the leading '/', e.g. fdt print ethernet0.
Moving Image from 0x80080000 to 0x80200000, end=831a0000
## Flattened Device Tree blob at 86000000
   Booting using the fdt blob at 0x86000000
   Using Device Tree in place at 0000000086000000, end 0000000086005fff

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd0f0]
[    0.000000] Linux version 5.19.0-rc6-next-20220711 (tuxmake@tuxmake) (aarch64-linux-gnu-gcc (Debian 11.3.0-3) 11.3.0, GNU ld (GNU Binutils for Debian) 2.38) #1 SMP PREEMPT @1657539508
[    0.000000] Machine model: FVP Base RevC
[    0.000000] earlycon: pl11 at MMIO 0x000000001c090000 (options '')
[    0.000000] printk: bootconsole [pl11] enabled
[    0.000000] efi: UEFI not found.
[    0.000000] Reserved memory: created DMA memory pool at 0x0000000018000000, size 8 MiB
[    0.000000] OF: reserved mem: initialized node vram@18000000, compatible id shared-dma-pool
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000080000000-0x00000008ffffffff]
[    0.000000] NUMA: NODE_DATA [mem 0x8ff7f6b40-0x8ff7f8fff]
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000080000000-0x00000000ffffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   [mem 0x0000000100000000-0x00000008ffffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000080000000-0x00000000feffffff]
[    0.000000]   node   0: [mem 0x0000000880000000-0x00000008ffffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000008ffffffff]
[    0.000000] On node 0, zone Normal: 4096 pages in unavailable ranges
[    0.000000] cma: Reserved 32 MiB at 0x00000000fd000000
[    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: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.2
[    0.000000] percpu: Embedded 30 pages/cpu s82856 r8192 d31832 u122880
[    0.000000] pcpu-alloc: s82856 r8192 d31832 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 PIPT I-cache on CPU0
[    0.000000] CPU features: detected: Branch Target Identification
[    0.000000] CPU features: detected: Address authentication (IMP DEF algorithm)
[    0.000000] CPU features: detected: GIC system register CPU interface
[    0.000000] CPU features: detected: Virtualization Host Extensions
[    0.000000] CPU features: detected: Hardware dirty bit management
[    0.000000] alternatives: patching kernel code
[    0.000000] Fallback order for Node 0: 0 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1028096
[    0.000000] Policy zone: Normal
[    0.000000] Kernel command line: console=ttyAMA0 earlycon=pl011,0x1c090000 root=/dev/vda rw ip=dhcp debug user_debug=31 loglevel=9
[    0.000000] Unknown kernel command line parameters "user_debug=31", 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: mapped [mem 0x00000000f9000000-0x00000000fd000000] (64MB)
[    0.000000] Memory: 3947088K/4177920K available (20288K kernel code, 4902K rwdata, 11308K rodata, 11136K init, 955K bss, 198064K reserved, 32768K cma-reserved)
[    0.000000] SLUB: HWalign=128, Order=0-3, MinObjects=0, CPUs=8, Nodes=1
[    0.000000] ftrace: allocating 65660 entries in 257 pages
[    0.000000] ftrace: allocated 257 pages with 2 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] GICv3: GIC: Using split EOI/Deactivate mode
[    0.000000] GICv3: 224 SPIs implemented
[    0.000000] GICv3: 0 Extended SPIs implemented
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GICv3: GICv3 features: 16 PPIs
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x000000002f100000
[    0.000000] ITS [mem 0x2f020000-0x2f03ffff]
[    0.000000] ITS@0x000000002f020000: allocated 8192 Devices @8800f0000 (indirect, esz 8, psz 64K, shr 1)
[    0.000000] ITS@0x000000002f020000: allocated 8192 Virtual CPUs @880200000 (indirect, esz 8, psz 64K, shr 1)
[    0.000000] ITS@0x000000002f020000: allocated 8192 Interrupt Collections @880210000 (flat, esz 8, psz 64K, shr 1)
[    0.000000] GICv3: using LPI property table @0x0000000880220000
[    0.000000] GICv3: CPU0: using allocated LPI pending table @0x0000000880230000
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] kfence: initialized - using 2097152 bytes for 255 objects at 0x(____ptrval____)-0x(____ptrval____)
[    0.000000] timer_sp804: timer clock not found: -517
[    0.000000] timer_sp804: arm,sp804 clock not found: -2
[    0.000000] Failed to initialize '/bus@8000000/motherboard-bus/iofpga-bus@300000000/timer@110000': -22
[    0.000000] timer_sp804: timer clock not found: -517
[    0.000000] timer_sp804: arm,sp804 clock not found: -2
[    0.000000] Failed to initialize '/bus@8000000/motherboard-bus/iofpga-bus@300000000/timer@120000': -22
[    0.000000] arch_timer: cp15 timer(s) running at 100.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0x1ffffffffffffff max_cycles: 0x171024e7e0, max_idle_ns: 440795205315 ns
[    0.000000] sched_clock: 57 bits at 100MHz, resolution 10ns, wraps every 4398046511100ns
[    0.000987] random: crng init done
[    0.002028] Console: colour dummy device 80x25
[    0.002722] Calibrating delay loop (skipped), value calculated using timer frequency.. 200.00 BogoMIPS (lpj=400000)
[    0.002896] pid_max: default: 32768 minimum: 301
[    0.003932] LSM: Security Framework initializing
[    0.004751] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.004915] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.012987] cacheinfo: Unable to detect cache hierarchy for CPU 0

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd0f0]
[    0.000000] Linux version 5.19.0-rc6-next-20220711 (tuxmake@tuxmake) (aarch64-linux-gnu-gcc (Debian 11.3.0-3) 11.3.0, GNU ld (GNU Binutils for Debian) 2.38) #1 SMP PREEMPT @1657539508
[    0.000000] Machine model: FVP Base RevC
[    0.000000] earlycon: pl11 at MMIO 0x000000001c090000 (options '')
[    0.000000] printk: bootconsole [pl11] enabled
[    0.000000] efi: UEFI not found.
[    0.000000] Reserved memory: created DMA memory pool at 0x0000000018000000, size 8 MiB
[    0.000000] OF: reserved mem: initialized node vram@18000000, compatible id shared-dma-pool
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000080000000-0x00000008ffffffff]
[    0.000000] NUMA: NODE_DATA [mem 0x8ff7f6b40-0x8ff7f8fff]
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000080000000-0x00000000ffffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   [mem 0x0000000100000000-0x00000008ffffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000080000000-0x00000000feffffff]
[    0.000000]   node   0: [mem 0x0000000880000000-0x00000008ffffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000008ffffffff]
[    0.000000] On node 0, zone Normal: 4096 pages in unavailable ranges
[    0.000000] cma: Reserved 32 MiB at 0x00000000fd000000
[    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: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.2
[    0.000000] percpu: Embedded 30 pages/cpu s82856 r8192 d31832 u122880
[    0.000000] pcpu-alloc: s82856 r8192 d31832 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 PIPT I-cache on CPU0
[    0.000000] CPU features: detected: Branch Target Identification
[    0.000000] CPU features: detected: Address authentication (IMP DEF algorithm)
[    0.000000] CPU features: detected: GIC system register CPU interface
[    0.000000] CPU features: detected: Virtualization Host Extensions
[    0.000000] CPU features: detected: Hardware dirty bit management
[    0.000000] alternatives: patching kernel code
[    0.000000] Fallback order for Node 0: 0 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1028096
[    0.000000] Policy zone: Normal
[    0.000000] Kernel command line: console=ttyAMA0 earlycon=pl011,0x1c090000 root=/dev/vda rw ip=dhcp debug user_debug=31 loglevel=9
[    0.000000] Unknown kernel command line parameters "user_debug=31", 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: mapped [mem 0x00000000f9000000-0x00000000fd000000] (64MB)
[    0.000000] Memory: 3947088K/4177920K available (20288K kernel code, 4902K rwdata, 11308K rodata, 11136K init, 955K bss, 198064K reserved, 32768K cma-reserved)
[    0.000000] SLUB: HWalign=128, Order=0-3, MinObjects=0, CPUs=8, Nodes=1
[    0.000000] ftrace: allocating 65660 entries in 257 pages
[    0.000000] ftrace: allocated 257 pages with 2 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] GICv3: GIC: Using split EOI/Deactivate mode
[    0.000000] GICv3: 224 SPIs implemented
[    0.000000] GICv3: 0 Extended SPIs implemented
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GICv3: GICv3 features: 16 PPIs
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x000000002f100000
[    0.000000] ITS [mem 0x2f020000-0x2f03ffff]
[    0.000000] ITS@0x000000002f020000: allocated 8192 Devices @8800f0000 (indirect, esz 8, psz 64K, shr 1)
[    0.000000] ITS@0x000000002f020000: allocated 8192 Virtual CPUs @880200000 (indirect, esz 8, psz 64K, shr 1)
[    0.000000] ITS@0x000000002f020000: allocated 8192 Interrupt Collections @880210000 (flat, esz 8, psz 64K, shr 1)
[    0.000000] GICv3: using LPI property table @0x0000000880220000
[    0.000000] GICv3: CPU0: using allocated LPI pending table @0x0000000880230000
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] kfence: initialized - using 2097152 bytes for 255 objects at 0x(____ptrval____)-0x(____ptrval____)
[    0.000000] timer_sp804: timer clock not found: -517
[    0.000000] timer_sp804: arm,sp804 clock not found: -2
[    0.000000] Failed to initialize '/bus@8000000/motherboard-bus/iofpga-bus@300000000/timer@110000': -22
[    0.000000] timer_sp804: timer clock not found: -517
[    0.000000] timer_sp804: arm,sp804 clock not found: -2
[    0.000000] Failed to initialize '/bus@8000000/motherboard-bus/iofpga-bus@300000000/timer@120000': -22
[    0.000000] arch_timer: cp15 timer(s) running at 100.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0x1ffffffffffffff max_cycles: 0x171024e7e0, max_idle_ns: 440795205315 ns
[    0.000000] sched_clock: 57 bits at 100MHz, resolution 10ns, wraps every 4398046511100ns
[    0.000987] random: crng init done
[    0.002028] Console: colour dummy device 80x25
[    0.002722] Calibrating delay loop (skipped), value calculated using timer frequency.. 200.00 BogoMIPS (lpj=400000)
[    0.002896] pid_max: default: 32768 minimum: 301
[    0.003932] LSM: Security Framework initializing
[    0.004751] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.004915] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.012987] cacheinfo: Unable to detect cache hierarchy for CPU 0
rly cacheinfo failed, ret = -2
[    0.023200] cblist_init_generic: Setting adjustable number of callback queues.
[    0.023287] cblist_init_generic: Setting shift to 3 and lim to 1.
[    0.024657] cblist_init_generic: Setting shift to 3 and lim to 1.
[    0.025804] cblist_init_generic: Setting shift to 3 and lim to 1.
[    0.028508] rcu: Hierarchical SRCU implementation.
[    0.028590] rcu:     Max phase no-delay instances is 1000.
[    0.042289] Platform MSI: msi-controller@2f020000 domain created
[    0.043253] PCI/MSI: /interrupt-controller@2f000000/msi-controller@2f020000 domain created
[    0.044400] fsl-mc MSI: msi-controller@2f020000 domain created
[    0.052095] EFI services will not be available.
[    0.057507] smp: Bringing up secondary CPUs ...
[    0.064187] Detected PIPT I-cache on CPU1
[    0.064287] GICv3: CPU1: found redistributor 100 region 0:0x000000002f120000
[    0.064416] GICv3: CPU1: using allocated LPI pending table @0x0000000880240000
[    0.064503] CPU1: Booted secondary processor 0x0000000100 [0x410fd0f0]
[    0.072587] Detected PIPT I-cache on CPU2
[    0.072687] GICv3: CPU2: found redistributor 200 region 0:0x000000002f140000
[    0.072787] GICv3: CPU2: using allocated LPI pending table @0x0000000880250000
[    0.072920] CPU2: Booted secondary processor 0x0000000200 [0x410fd0f0]
[    0.081187] Detected PIPT I-cache on CPU3
[    0.081336] GICv3: CPU3: found redistributor 300 region 0:0x000000002f160000
[    0.081423] GICv3: CPU3: using allocated LPI pending table @0x0000000880260000
[    0.081510] CPU3: Booted secondary processor 0x0000000300 [0x410fd0f0]
[    0.089787] Detected PIPT I-cache on CPU4
[    0.089887] GICv3: CPU4: found redistributor 10000 region 0:0x000000002f180000
[    0.089987] GICv3: CPU4: using allocated LPI pending table @0x0000000880270000
[    0.090100] CPU4: Booted secondary processor 0x0000010000 [0x410fd0f0]
[    0.098387] Detected PIPT I-cache on CPU5
[    0.098604] GICv3: CPU5: found redistributor 10100 region 0:0x000000002f1a0000
[    0.098604] GICv3: CPU5: using allocated LPI pending table @0x0000000880280000
[    0.098795] CPU5: Booted secondary processor 0x0000010100 [0x410fd0f0]
[    0.106987] Detected PIPT I-cache on CPU6
[    0.107194] GICv3: CPU6: found redistributor 10200 region 0:0x000000002f1c0000
[    0.107194] GICv3: CPU6: using allocated LPI pending table @0x0000000880290000
[    0.107397] CPU6: Booted secondary processor 0x0000010200 [0x410fd0f0]
[    0.115787] Detected PIPT I-cache on CPU7
[    0.115916] GICv3: CPU7: found redistributor 10300 region 0:0x000000002f1e0000
[    0.115998] GICv3: CPU7: using allocated LPI pending table @0x00000008802a0000
[    0.116131] CPU7: Booted secondary processor 0x0000010300 [0x410fd0f0]
[    0.117520] smp: Brought up 1 node, 8 CPUs
[    0.119411] SMP: Total of 8 processors activated.
[    0.119516] CPU features: detected: 32-bit EL0 Support
[    0.119602] CPU features: detected: 32-bit EL1 Support
[    0.119787] CPU features: detected: ARMv8.4 Translation Table Level
[    0.119930] CPU features: detected: Data cache clean to the PoU not required for I/D coherence
[    0.120094] CPU features: detected: Common not Private translations
[    0.120210] CPU features: detected: CRC32 instructions
[    0.120340] CPU features: detected: E0PD
[    0.120504] CPU features: detected: Enhanced Counter Virtualization
[    0.120644] CPU features: detected: Generic authentication (IMP DEF algorithm)
[    0.120790] CPU features: detected: RCpc load-acquire (LDAPR)
[    0.120887] CPU features: detected: LSE atomic instructions
[    0.120991] CPU features: detected: Privileged Access Never
[    0.121487] CPU features: detected: RAS Extension Support
[    0.121687] CPU features: detected: Random Number Generator
[    0.121815] CPU features: detected: Speculation barrier (SB)
[    0.121945] CPU features: detected: Stage-2 Force Write-Back
[    0.122087] CPU features: detected: TLB range maintenance instructions
[    0.122224] CPU features: detected: Scalable Vector Extension
[    0.413387] SVE: maximum available vector length 64 bytes per vector
[    0.413495] SVE: default vector length 64 bytes per vector
[    0.429916] CPU features: No Cache Writeback Granule information, assuming 128
[    0.429998] CPU: All CPU(s) started at EL2
[    0.449360] devtmpfs: initialized
[    0.476187] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.476487] futex hash table entries: 2048 (order: 5, 131072 bytes, linear)
[    0.484387] pinctrl core: initialized pinctrl subsystem
[    0.499687] DMI not present or invalid.
[    0.504431] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.522219] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
[    0.524887] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.529787] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.530387] audit: initializing netlink subsys (disabled)
[    0.532024] audit: type=2000 audit(0.516:1): state=initialized audit_enabled=0 res=1
[    0.540094] thermal_sys: Registered thermal governor 'step_wise'
[    0.540187] thermal_sys: Registered thermal governor 'power_allocator'
[    0.541087] cpuidle: using governor menu
[    0.543087] hw-breakpoint: found 16 breakpoint and 16 watchpoint registers.
[    0.544787] ASID allocator initialised with 65536 entries
[    0.562220] Serial: AMBA PL011 UART driver
[    0.736803] 1c090000.serial: ttyAMA0 at MMIO 0x1c090000 (irq = 16, base_baud = 0) is a PL011 rev2
[    0.737087] printk: console [ttyAMA0] enabled
[    0.737087] printk: console [ttyAMA0] enabled
[    0.737287] printk: bootconsole [pl11] disabled
[    0.737287] printk: bootconsole [pl11] disabled
[    0.750633] 1c0a0000.serial: ttyAMA1 at MMIO 0x1c0a0000 (irq = 17, base_baud = 0) is a PL011 rev2
[    0.763687] 1c0b0000.serial: ttyAMA2 at MMIO 0x1c0b0000 (irq = 18, base_baud = 0) is a PL011 rev2
[    0.777422] 1c0c0000.serial: ttyAMA3 at MMIO 0x1c0c0000 (irq = 19, base_baud = 0) is a PL011 rev2
[    0.896905] platform panel: Fixing up cyclic dependency with 1c1f0000.clcd
[    0.916987] KASLR disabled due to lack of seed
[    1.031487] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
[    1.031687] HugeTLB: 16380 KiB vmemmap can be freed for a 1.00 GiB page
[    1.031787] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
[    1.031987] HugeTLB: 508 KiB vmemmap can be freed for a 32.0 MiB page
[    1.032094] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[    1.032287] HugeTLB: 28 KiB vmemmap can be freed for a 2.00 MiB page
[    1.032487] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
[    1.032615] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
[    1.043251] cryptd: max_cpu_qlen set to 1000
[    1.058039] ACPI: Interpreter disabled.
[    1.093094] iommu: Default domain type: Translated 
[    1.093187] iommu: DMA domain TLB invalidation policy: strict mode 
[    1.095887] SCSI subsystem initialized
[    1.097487] libata version 3.00 loaded.
[    1.099887] usbcore: registered new interface driver usbfs
[    1.100287] usbcore: registered new interface driver hub
[    1.101087] usbcore: registered new device driver usb
[    1.111837] mc: Linux media interface: v0.10
[    1.112087] videodev: Linux video capture interface: v2.00
[    1.112555] pps_core: LinuxPPS API ver. 1 registered
[    1.112687] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.112887] PTP clock support registered
[    1.114587] EDAC MC: Ver: 3.0.0
[    1.131177] FPGA manager framework
[    1.131987] Advanced Linux Sound Architecture Driver Initialized.
[    1.137887] vgaarb: loaded
[    1.141187] clocksource: Switched to clocksource arch_sys_counter
[    1.144887] VFS: Disk quotas dquot_6.6.0
[    1.145764] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    1.148587] pnp: PnP ACPI: disabled
[    1.214887] NET: Registered PF_INET protocol family
[    1.215887] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    1.270194] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    1.270687] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    1.270887] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    1.273987] TCP bind hash table entries: 32768 (order: 7, 524288 bytes, linear)
[    1.277487] TCP: Hash tables configured (established 32768 bind 32768)
[    1.279187] MPTCP token hash table entries: 4096 (order: 4, 98304 bytes, linear)
[    1.280087] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    1.280901] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    1.282687] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    1.286487] RPC: Registered named UNIX socket transport module.
[    1.286717] RPC: Registered udp transport module.
[    1.286787] RPC: Registered tcp transport module.
[    1.287017] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.287187] PCI: CLS 0 bytes, default 64
[    1.298087] hw perfevents: enabled with armv8_pmuv3 PMU driver, 9 counters available
[    1.300234] kvm [1]: IPA Size Limit: 40 bits
[    1.300524] kvm [1]: vgic-v2@2c02f000
[    1.300911] kvm [1]: GIC system register CPU interface enabled
[    1.303347] kvm [1]: vgic interrupt IRQ9
[    1.305968] kvm [1]: VHE mode initialized successfully
[    1.322087] Initialise system trusted keyrings
[    1.323663] workingset: timestamp_bits=42 max_order=20 bucket_order=0
[    1.389687] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.395425] NFS: Registering the id_resolver key type
[    1.395741] Key type id_resolver registered
[    1.395787] Key type id_legacy registered
[    1.396817] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.396887] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    1.398187] 9p: Installing v9fs 9p2000 file system support
[    1.403781] jitterentropy: Initialization failed with host not compliant with requirements: 2
[    1.403945] NET: Registered PF_ALG protocol family
[    1.404387] xor: measuring software checksum speed
[    1.450187]    8regs           :   216 MB/sec
[    1.494323]    32regs          :   225 MB/sec
[    1.558176]    arm64_neon      :   154 MB/sec
[    1.558287] xor: using function: 32regs (225 MB/sec)
[    1.558487] Key type asymmetric registered
[    1.558609] Asymmetric key parser 'x509' registered
[    1.559287] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[    1.559487] io scheduler mq-deadline registered
[    1.559592] io scheduler kyber registered
[    1.770087] EINJ: ACPI disabled.
[    2.060589] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    2.100787] SuperH (H)SCI(F) driver initialized
[    2.107387] msm_serial: driver initialized
[    2.126643] arm-smmu-v3 2b400000.iommu: ias 48-bit, oas 48-bit (features 0x00041fef)
[    2.134587] arm-smmu-v3 2b400000.iommu: allocated 65536 entries for cmdq
[    2.136391] arm-smmu-v3 2b400000.iommu: allocated 32768 entries for evtq
[    2.149687] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    2.228317] loop: module loaded
[    2.228987] virtio_blk virtio0: 1/0/0 default/read/poll queues
[    2.236087] virtio_blk virtio0: [vda] 1228800 512-byte logical blocks (629 MB/600 MiB)
[    2.257733] basic-mmio-gpio: Failed to locate of_node [id: -2]
[    2.267135] basic-mmio-gpio: Failed to locate of_node [id: -2]
[    2.276487] basic-mmio-gpio: Failed to locate of_node [id: -2]
[    2.487287] megasas: 07.719.03.00-rc1
[    2.511987] physmap-flash 8000000.flash: physmap platform flash device: [mem 0x08000000-0x0bffffff]
[    2.512240] 8000000.flash: Found 2 x16 devices at 0x0 in 32-bit bank. Manufacturer ID 0x000089 Chip ID 0x000018
[    2.512487] Intel/Sharp Extended Query Table at 0x0031
[    2.512665] Intel/Sharp Extended Query Table at 0x0031
[    2.512829] Using buffer write method
[    2.512926] erase region 0: offset=0x0,size=0x40000,blocks=256
[    2.513287] physmap-flash 8000000.flash: physmap platform flash device: [mem 0x0c000000-0x0fffffff]
[    2.513587] 8000000.flash: Found 2 x16 devices at 0x0 in 32-bit bank. Manufacturer ID 0x000089 Chip ID 0x000018
[    2.513787] Intel/Sharp Extended Query Table at 0x0031
[    2.513887] Intel/Sharp Extended Query Table at 0x0031
[    2.514130] Using buffer write method
[    2.514287] erase region 0: offset=0x0,size=0x40000,blocks=256
[    2.514487] Concatenating MTD devices:
[    2.514616] (0): "8000000.flash"
[    2.514687] (1): "8000000.flash"
[    2.514887] into device "8000000.flash"
[    2.642493] virtio_net: probe of virtio2 failed with error -2
[    2.655587] thunder_xcv, ver 1.0
[    2.656010] thunder_bgx, ver 1.0
[    2.656531] nicpf, ver 1.0
[    2.678831] hns3: Hisilicon Ethernet Network Driver for Hip08 Family - version
[    2.679005] hns3: Copyright (c) 2017 Huawei Corporation.
[    2.679487] hclge is initializing
[    2.679767] e1000: Intel(R) PRO/1000 Network Driver
[    2.679887] e1000: Copyright (c) 1999-2006 Intel Corporation.
[    2.680422] e1000e: Intel(R) PRO/1000 Network Driver
[    2.680567] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    2.681001] igb: Intel(R) Gigabit Ethernet Network Driver
[    2.681241] igb: Copyright (c) 2007-2014 Intel Corporation.
[    2.681687] igbvf: Intel(R) Gigabit Virtual Function Network Driver
[    2.681868] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[    2.687877] sky2: driver version 1.30
[    2.688290] QLogic FastLinQ 4xxxx Core Module qed
[    2.688387] qede init: QLogic FastLinQ 4xxxx Ethernet Driver qede
[    2.698035] smc91x 1a000000.ethernet (unnamed net_device) (uninitialized): smc91x: IOADDR 0000000046731890 doesn't match configuration (300).
[    2.698287] smc91x.c: v1.1, sep 22 2004 by Nicolas Pitre <nico@fluxnic.net>
[    3.165887] smc91x 1a000000.ethernet eth0: SMC91C11xFD (rev 1) at 0000000046731890 IRQ 28
[    3.166087] 
[    3.166223] smc91x 1a000000.ethernet eth0: Ethernet addr: 00:02:f7:ef:96:ba
[    3.178187] usbcore: registered new interface driver asix
[    3.178687] usbcore: registered new interface driver ax88179_178a
[    3.180087] VFIO - User Level meta-driver version: 0.3
[    3.212385] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.212587] ehci-pci: EHCI PCI platform driver
[    3.213087] ehci-platform: EHCI generic platform driver
[    3.215187] ehci-orion: EHCI orion driver
[    3.217087] ehci-exynos: EHCI Exynos driver
[    3.218987] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.219240] ohci-pci: OHCI PCI platform driver
[    3.219587] ohci-platform: OHCI generic platform driver
[    3.221687] ohci-exynos: OHCI Exynos driver
[    3.230520] usbcore: registered new interface driver usb-storage
[    3.296788] rtc-pl031 1c170000.rtc: registered as rtc0
[    3.297187] rtc-pl031 1c170000.rtc: setting system clock to 2022-07-14T11:07:56 UTC (1657796876)
[    3.308187] i2c_dev: i2c /dev entries driver
[    3.390687] sp805-wdt 1c0f0000.wdt: registration successful
[    3.452393] mmci-pl18x 1c050000.mmci: Got CD GPIO
[    3.452928] mmci-pl18x 1c050000.mmci: Got WP GPIO
[    3.458294] mmci-pl18x 1c050000.mmci: mmc0: PL180 manf 41 rev0 at 0x1c050000 irq 33,34 (pio)
[    3.486842] sdhci: Secure Digital Host Controller Interface driver
[    3.487188] sdhci: Copyright(c) Pierre Ossman
[    3.499787] Synopsys Designware Multimedia Card Interface Driver
[    3.518087] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.553047] ledtrig-cpu: registered to indicate activity on CPUs
[    3.584587] input: AT Raw Set 2 keyboard as /devices/platform/bus@8000000/bus@8000000:motherboard-bus/bus@8000000:motherboard-bus:iofpga-bus@300000000/1c060000.kmi/serio0/input/input0
[    3.593687] SMCCC: SOC_ID: ID = jep106:043b:0000 Revision = 0x00000002
[    3.635387] usbcore: registered new interface driver usbhid
[    3.635487] usbhid: USB HID core driver
[    3.689187]  cs_system_cfg: CoreSight Configuration manager initialised
[    3.761587] NET: Registered PF_INET6 protocol family
[    3.772579] Segment Routing with IPv6
[    3.772838] In-situ OAM (IOAM) with IPv6
[    3.773487] NET: Registered PF_PACKET protocol family
[    3.774987] 9pnet: Installing 9P2000 support
[    3.781939] Key type dns_resolver registered
[    3.795687] registered taskstats version 1
[    3.796093] Loading compiled-in X.509 certificates
[    3.963535] pci-host-generic 40000000.pci: host bridge /pci@40000000 ranges:
[    3.964087] pci-host-generic 40000000.pci:      MEM 0x0050000000..0x005fffffff -> 0x0050000000
[    3.965087] pci-host-generic 40000000.pci: ECAM at [mem 0x40000000-0x4fffffff] for [bus 00-01]
[    3.966387] pci-host-generic 40000000.pci: PCI host bridge to bus 0000:00
[    3.966587] pci_bus 0000:00: root bus resource [bus 00-01]
[    3.966787] pci_bus 0000:00: root bus resource [mem 0x50000000-0x5fffffff]
[    3.967368] pci 0000:00:00.0: [1af4:1001] type 00 class 0x018000
[    3.967812] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x00000fff]
[    3.968187] pci 0000:00:00.0: reg 0x18: [mem 0x00000000-0x00000fff]
[    3.968687] pci 0000:00:00.0: reg 0x20: [mem 0x00000000-0x00000fff]
[    3.969187] pci 0000:00:00.0: enabling Extended Tags
[    3.970589] pci 0000:00:00.0: PME# supported from D3hot
[    3.974387] pci 0000:00:02.0: [1af4:1001] type 00 class 0x018000
[    3.974887] pci 0000:00:02.0: reg 0x10: [mem 0x00000000-0x00000fff]
[    3.975361] pci 0000:00:02.0: reg 0x18: [mem 0x00000000-0x00000fff]
[    3.975787] pci 0000:00:02.0: reg 0x20: [mem 0x00000000-0x00000fff]
[    3.976305] pci 0000:00:02.0: enabling Extended Tags
[    3.977687] pci 0000:00:02.0: PME# supported from D3hot
[    3.981087] pci 0000:00:03.0: [0abc:aced] type 00 class 0x010601
[    3.981721] pci 0000:00:03.0: reg 0x10: [mem 0x00000000-0x00001fff]
[    3.982049] pci 0000:00:03.0: reg 0x14: [mem 0x00000000-0x00001fff]
[    3.982287] pci 0000:00:03.0: reg 0x18: [mem 0x00000000-0x00000fff]
[    3.982650] pci 0000:00:03.0: reg 0x1c: [mem 0x00000000-0x00001fff]
[    3.982987] pci 0000:00:03.0: reg 0x20: [mem 0x00000000-0x00000fff]
[    3.983287] pci 0000:00:03.0: reg 0x24: [mem 0x00000000-0x00001fff]
[    3.984424] pci 0000:00:03.0: PME# supported from D3hot
[    3.993287] pci 0000:00:03.0: BAR 0: assigned [mem 0x50000000-0x50001fff]
[    3.993587] pci 0000:00:03.0: BAR 1: assigned [mem 0x50002000-0x50003fff]
[    3.993845] pci 0000:00:03.0: BAR 3: assigned [mem 0x50004000-0x50005fff]
[    3.994104] pci 0000:00:03.0: BAR 5: assigned [mem 0x50006000-0x50007fff]
[    3.994354] pci 0000:00:00.0: BAR 0: assigned [mem 0x50008000-0x50008fff]
[    3.994587] pci 0000:00:00.0: BAR 2: assigned [mem 0x50009000-0x50009fff]
[    3.994787] pci 0000:00:00.0: BAR 4: assigned [mem 0x5000a000-0x5000afff]
[    3.995135] pci 0000:00:02.0: BAR 0: assigned [mem 0x5000b000-0x5000bfff]
[    3.995387] pci 0000:00:02.0: BAR 2: assigned [mem 0x5000c000-0x5000cfff]
[    3.995587] pci 0000:00:02.0: BAR 4: assigned [mem 0x5000d000-0x5000dfff]
[    3.995887] pci 0000:00:03.0: BAR 2: assigned [mem 0x5000e000-0x5000efff]
[    3.996139] pci 0000:00:03.0: BAR 4: assigned [mem 0x5000f000-0x5000ffff]
[    4.001887] virtio-pci 0000:00:00.0: Adding to iommu group 0
[    4.004003] virtio-pci 0000:00:00.0: enabling device (0000 -> 0002)
[    4.004343] virtio-pci 0000:00:00.0: virtio_pci: leaving for legacy driver
[    4.005587] virtio_blk virtio3: 1/0/0 default/read/poll queues
[    4.010087] virtio_blk virtio3: [vdb] 0 512-byte logical blocks (0 B/0 B)
[    4.023606] virtio-pci 0000:00:02.0: Adding to iommu group 1
[    4.025428] virtio-pci 0000:00:02.0: enabling device (0000 -> 0002)
[    4.025794] virtio-pci 0000:00:02.0: virtio_pci: leaving for legacy driver
[    4.026903] virtio_blk virtio4: 1/0/0 default/read/poll queues
[    4.031187] virtio_blk virtio4: [vdc] 0 512-byte logical blocks (0 B/0 B)
[    4.044604] ahci 0000:00:03.0: Adding to iommu group 2
[    4.046387] ahci 0000:00:03.0: version 3.0
[    4.046587] ahci 0000:00:03.0: enabling device (0000 -> 0002)
[    4.048687] ahci 0000:00:03.0: AHCI 0001.0301 32 slots 1 ports 6 Gbps 0x1 impl SATA mode
[    4.048943] ahci 0000:00:03.0: flags: 64bit ncq only 
[    4.056319] scsi host0: ahci
[    4.058890] ata1: SATA max UDMA/133 abar m8192@0x50006000 port 0x50006100 irq 41
[    4.373387] ata1: SATA link down (SStatus 0 SControl 300)
[    5.848187] input: PS/2 Generic Mouse as /devices/platform/bus@8000000/bus@8000000:motherboard-bus/bus@8000000:motherboard-bus:iofpga-bus@300000000/1c070000.kmi/serio1/input/input2
[    5.988597] smc91x 1a000000.ethernet eth0: link up, 10Mbps, half-duplex, lpa 0x0000
[    6.013287] Sending DHCP requests ...... timed out!
[   93.935687] IP-Config: Reopening network devices...
[   94.027787] smc91x 1a000000.ethernet eth0: link up, 10Mbps, half-duplex, lpa 0x0000
[   94.049376] Sending DHCP requests .
[   94.965287] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   96.209387] ..... timed out!
[  168.362347] IP-Config: Auto-configuration of network failed
[  168.364256] ALSA device list:
[  168.364387]   No soundcards found.
[  168.365752] uart-pl011 1c090000.serial: no DMA platform data
[  168.407391] EXT4-fs (vda): recovery complete
[  168.408287] EXT4-fs (vda): mounted filesystem with ordered data mode. Quota mode: none.
[  168.408693] VFS: Mounted root (ext4 filesystem) on device 254:0.
[  168.409907] devtmpfs: mounted
[  168.586400] Freeing unused kernel memory: 11136K
[  168.587788] Run /sbin/init as init process
[  168.587951]   with arguments:
[  168.588048]     /sbin/init
[  168.588211]   with environment:
[  168.588328]     HOME=/
[  168.588472]     TERM=linux
[  168.588587]     user_debug=31
[  168.726448] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-464c, throttling...
[  173.813587] request_module: modprobe binfmt-464c cannot be processed, kmod busy with 50 threads for more than 5 seconds now
[  173.867187] Starting init: /sbin/init exists but couldn't execute it (error -8)
[  173.867487] Run /etc/init as init process
[  173.867620]   with arguments:
[  173.867745]     /etc/init
[  173.867887]   with environment:
[  173.867991]     HOME=/
[  173.868140]     TERM=linux
[  173.868236]     user_debug=31
[  173.870136] Run /bin/init as init process
[  173.870284]   with arguments:
[  173.870396]     /bin/init
[  173.870530]   with environment:
[  173.870657]     HOME=/
[  173.870787]     TERM=linux
[  173.870940]     user_debug=31
[  173.871787] Run /bin/sh as init process
[  173.871923]   with arguments:
[  173.872045]     /bin/sh
[  173.872187]   with environment:
[  173.872305]     HOME=/
[  173.872414]     TERM=linux
[  173.872587]     user_debug=31
[  173.951087] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-464c, throttling...
[  179.189622] request_module: modprobe binfmt-464c cannot be processed, kmod busy with 50 threads for more than 5 seconds now
[  179.242205] Starting init: /bin/sh exists but couldn't execute it (error -8)
[  179.242516] Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
[  179.242687] CPU: 6 PID: 1 Comm: swapper/0 Not tainted 5.19.0-rc6-next-20220711 #1
[  179.242812] Hardware name: FVP Base RevC (DT)
[  179.242899] Call trace:
[  179.242976]  dump_backtrace+0xe8/0x130
[  179.243089]  show_stack+0x24/0x60
[  179.243187]  dump_stack_lvl+0x8c/0xb8
[  179.243287]  dump_stack+0x18/0x34
[  179.243420]  panic+0x188/0x38c
[  179.243507]  kernel_init+0x13c/0x140
[  179.243663]  ret_from_fork+0x10/0x20
[  179.243787] SMP: stopping secondary CPUs
[  179.243987] Kernel Offset: disabled
[  179.244027] CPU features: 0x0000,0002002d,f9a59dcf
[  179.244114] Memory Limit: none
[  179.244201] ---[ end Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance. ]---

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: FVP: kernel BUG at arch/arm64/kernel/traps.c:497 - Internal error: Oops - BUG: 0
  2022-07-13 19:37   ` Naresh Kamboju
  2022-07-14 11:26     ` Mark Rutland
@ 2022-07-14 11:37     ` Mark Brown
  1 sibling, 0 replies; 14+ messages in thread
From: Mark Brown @ 2022-07-14 11:37 UTC (permalink / raw)
  To: Naresh Kamboju
  Cc: open list, Linux-Next Mailing List, Linux ARM, lkft-triage,
	regressions, Catalin Marinas, Will Deacon, Mark Rutland,
	Arnd Bergmann, Anders Roxell, Aishwarya TCV


[-- Attachment #1.1: Type: text/plain, Size: 2133 bytes --]

On Thu, Jul 14, 2022 at 01:07:32AM +0530, Naresh Kamboju wrote:

> Here I am providing the available data.
> Let me know what I am missing here, so that I will update my setup.
> Thanks in advance.

> Fast Models 11.17.21 (Feb 16 2022)

11.18 was released since (not that it should make any difference to this
issue).

> https://storage.tuxboot.com/fvp-aemva/tf-bl1.bin
> https://storage.tuxboot.com/fvp-aemva/fvp-base-revc.dtb
> https://storage.tuxboot.com/fvp-aemva/fip-uboot.bin

Where did you get the TF-A and u-boot from - what versions are they and
how are they configured and built?  Especially TF-A, u-boot isn't likely
to cause any issues here since it isn't responsible for initialising the
higher ELs.

That said I do seem to be able to boot with those images on my system -
it looks like a debug build of TF-A 2.5 and a modified version of u-boot
2021.04.  There's newer releases of both, especially with TF-A I'd
recommend keeping up with new releases though it doesn't *immediately*
look like your issue here.

> https://builds.tuxbuild.com/2BnQMpJj3kDTJXoCwd2pY5gW9CN/Image.gz
> https://builds.tuxbuild.com/2BnQMpJj3kDTJXoCwd2pY5gW9CN/modules.tar.xz

>   --data cluster0.cpu0=/tuxrun-r4_1075p-lava-1/fvp-base-revc.dtb@0x86000000
>   --data cluster0.cpu0=/tuxrun-r4_1075p-lava-1/Image@0x80080000
>    -C pctl.startup=0.0.0.0
>    -C bp.secure_memory=0

You don't seem to have

	-C cluster0.mpidr_layout=1 
	-C cluster1.mpidr_layout=1 

though I would expect that the system wouldn't get as far as it was
without that, it doesn't seem to when I try testing here - it dies
running TF-A.

You might also want to turn on a few more options

	-C cluster0.has_fgt=1
	-C cluster1.has_fgt=1
	-C cluster0.memory_tagging_support_level=3
	-C cluster1.memory_tagging_support_level=3
	-C bp.dram_metadata.is_enabled=1 

to turn on fine grained traps and MTE, plus at least the newer model has
more base architecture extensions, though these shouldn't be the issue
here.  They don't seem to be (and shouldn't be) relevant here though.
FGT is an EL2 feature so it'd die earlier.

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: FVP: kernel BUG at arch/arm64/kernel/traps.c:497 - Internal error: Oops - BUG: 0
  2022-07-14 11:26     ` Mark Rutland
@ 2022-07-14 11:42       ` Mark Brown
  2022-07-14 12:57         ` Mark Rutland
  0 siblings, 1 reply; 14+ messages in thread
From: Mark Brown @ 2022-07-14 11:42 UTC (permalink / raw)
  To: Mark Rutland
  Cc: Naresh Kamboju, open list, Linux-Next Mailing List, Linux ARM,
	lkft-triage, regressions, Catalin Marinas, Will Deacon,
	Arnd Bergmann, Anders Roxell, Aishwarya TCV


[-- Attachment #1.1: Type: text/plain, Size: 892 bytes --]

On Thu, Jul 14, 2022 at 12:26:05PM +0100, Mark Rutland wrote:

> I note that your log has:

> | Hit any key to stop autoboot:  1  0 
> | smh_open: ERROR fd -1 for file 'boot.img'
> | smh_open: ERROR fd -1 for file 'Image'
> | smh_open: ERROR fd -1 for file 'devtree.dtb'
> | smh_open: ERROR fd -1 for file 'ramdisk.img'

...

> | Hit any key to stop autoboot:  0   
> | smh_open: ERROR fd -1 for file 'boot.img'
> | loaded file Image from 80080000 to 82F299FF, 02EA9A00 bytes
> | smh_open: ERROR fd -1 for file 'devtree.dtb'
> | smh_open: ERROR fd -1 for file 'ramdisk.img'
> | fdt - flattened device tree utility commands

> ... and I wonder if that has something to do with it, given it appears that
> your Image is corrupted somehow.

Naresh's command line is putting Image directly into RAM with

    --data cluster0.cpu0=/tuxrun-r4_1075p-lava-1/Image@0x80080000

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: FVP: kernel BUG at arch/arm64/kernel/traps.c:497 - Internal error: Oops - BUG: 0
  2022-07-14 11:42       ` Mark Brown
@ 2022-07-14 12:57         ` Mark Rutland
  2022-07-14 13:06           ` Mark Rutland
  0 siblings, 1 reply; 14+ messages in thread
From: Mark Rutland @ 2022-07-14 12:57 UTC (permalink / raw)
  To: Mark Brown
  Cc: Naresh Kamboju, open list, Linux-Next Mailing List, Linux ARM,
	lkft-triage, regressions, Catalin Marinas, Will Deacon,
	Arnd Bergmann, Anders Roxell, Aishwarya TCV

On Thu, Jul 14, 2022 at 12:42:08PM +0100, Mark Brown wrote:
> On Thu, Jul 14, 2022 at 12:26:05PM +0100, Mark Rutland wrote:
> 
> > I note that your log has:
> 
> > | Hit any key to stop autoboot:  1  0 
> > | smh_open: ERROR fd -1 for file 'boot.img'
> > | smh_open: ERROR fd -1 for file 'Image'
> > | smh_open: ERROR fd -1 for file 'devtree.dtb'
> > | smh_open: ERROR fd -1 for file 'ramdisk.img'
> 
> ...
> 
> > | Hit any key to stop autoboot:  0   
> > | smh_open: ERROR fd -1 for file 'boot.img'
> > | loaded file Image from 80080000 to 82F299FF, 02EA9A00 bytes
> > | smh_open: ERROR fd -1 for file 'devtree.dtb'
> > | smh_open: ERROR fd -1 for file 'ramdisk.img'
> > | fdt - flattened device tree utility commands
> 
> > ... and I wonder if that has something to do with it, given it appears that
> > your Image is corrupted somehow.
> 
> Naresh's command line is putting Image directly into RAM with
> 
>     --data cluster0.cpu0=/tuxrun-r4_1075p-lava-1/Image@0x80080000

Likewise in mine:

	--data cluster0.cpu0=/mnt/data/models/fvp/naresh/Image@0x80080000

... as I'm using the same command line, just with paths altered.

Mark.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: FVP: kernel BUG at arch/arm64/kernel/traps.c:497 - Internal error: Oops - BUG: 0
  2022-07-14 12:57         ` Mark Rutland
@ 2022-07-14 13:06           ` Mark Rutland
  2022-07-14 13:39             ` Mark Rutland
  0 siblings, 1 reply; 14+ messages in thread
From: Mark Rutland @ 2022-07-14 13:06 UTC (permalink / raw)
  To: Mark Brown
  Cc: Naresh Kamboju, open list, Linux-Next Mailing List, Linux ARM,
	lkft-triage, regressions, Catalin Marinas, Will Deacon,
	Arnd Bergmann, Anders Roxell, Aishwarya TCV

On Thu, Jul 14, 2022 at 01:57:50PM +0100, Mark Rutland wrote:
> On Thu, Jul 14, 2022 at 12:42:08PM +0100, Mark Brown wrote:
> > On Thu, Jul 14, 2022 at 12:26:05PM +0100, Mark Rutland wrote:
> > 
> > > I note that your log has:
> > 
> > > | Hit any key to stop autoboot:  1  0 
> > > | smh_open: ERROR fd -1 for file 'boot.img'
> > > | smh_open: ERROR fd -1 for file 'Image'
> > > | smh_open: ERROR fd -1 for file 'devtree.dtb'
> > > | smh_open: ERROR fd -1 for file 'ramdisk.img'
> > 
> > ...
> > 
> > > | Hit any key to stop autoboot:  0   
> > > | smh_open: ERROR fd -1 for file 'boot.img'
> > > | loaded file Image from 80080000 to 82F299FF, 02EA9A00 bytes
> > > | smh_open: ERROR fd -1 for file 'devtree.dtb'
> > > | smh_open: ERROR fd -1 for file 'ramdisk.img'
> > > | fdt - flattened device tree utility commands
> > 
> > > ... and I wonder if that has something to do with it, given it appears that
> > > your Image is corrupted somehow.
> > 
> > Naresh's command line is putting Image directly into RAM with
> > 
> >     --data cluster0.cpu0=/tuxrun-r4_1075p-lava-1/Image@0x80080000
> 
> Likewise in mine:
> 
> 	--data cluster0.cpu0=/mnt/data/models/fvp/naresh/Image@0x80080000
> 
> ... as I'm using the same command line, just with paths altered.

... and I've just reproduced the issue by running the script from a different
directory, since apprarently the semihosting interface just grabs the file from
the current directory.

I'm pretty sure this means that *something* is clobbering the Image early on
during boot, and the semihisting loading happens to refresh it.

Thanks,
Mark.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: FVP: kernel BUG at arch/arm64/kernel/traps.c:497 - Internal error: Oops - BUG: 0
  2022-07-14 13:06           ` Mark Rutland
@ 2022-07-14 13:39             ` Mark Rutland
  2022-07-14 14:05               ` Naresh Kamboju
  0 siblings, 1 reply; 14+ messages in thread
From: Mark Rutland @ 2022-07-14 13:39 UTC (permalink / raw)
  To: Naresh Kamboju
  Cc: Mark Brown, open list, Linux-Next Mailing List, Linux ARM,
	lkft-triage, regressions, Catalin Marinas, Will Deacon,
	Arnd Bergmann, Anders Roxell, Aishwarya TCV

On Thu, Jul 14, 2022 at 02:06:28PM +0100, Mark Rutland wrote:
 
> ... and I've just reproduced the issue by running the script from a different
> directory, since apprarently the semihosting interface just grabs the file from
> the current directory.
> 
> I'm pretty sure this means that *something* is clobbering the Image early on
> during boot, and the semihisting loading happens to refresh it.

I had a go with my own kernel built from my arm64/traps/rework branch:
  
  https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git/log/?h=arm64/traps/rework

... and Naresh's config:

  https://builds.tuxbuild.com/2BnQMpJj3kDTJXoCwd2pY5gW9CN/config

When *only* using the initial loading into memory, that blows up in stackdepot
and with a subsequent bogus pointer dereference (full log below), and when
loaded via semihosting that just works. Note that my kernel is based on the
arm64 for-next/core branch, which itself is based on v5.19-rc3.

My failing kernel Image is ~47M, as is Naresh's original Image. When using
smaller Images (as large as 43M so far), I don't see any issues.

I also note that if I enable KASAN_OUTLINE, the kernel is so big that it
clobbers the DTB, and cannot be booted. So this looks liek a problem with tha
arbitrary placement / limits chosen for U-Boot being too small, and this is not
a kernel bug.

Naresh, please can you fix your boot flow before reporting any further issues?
This sort of corruption will manifest in a number of ways, and we need to rule
that out for any other bug reports.

Thanks,
Mark.

---->8----

[mark@lakrids:~]% telnet localhost 5000
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
NOTICE:  Booting Trusted Firmware
NOTICE:  BL1: v2.5(debug):v2.5
NOTICE:  BL1: Built : 09:39:44, Apr  8 2022
INFO:    BL1: RAM 0x4035000 - 0x403c000
INFO:    Loading image id=31 at address 0x4001010
INFO:    Image id=31 loaded: 0x4001010 - 0x40011e8
INFO:    FCONF: Config file with image ID:31 loaded at address = 0x4001010
INFO:    Loading image id=24 at address 0x4001300
INFO:    Image id=24 loaded: 0x4001300 - 0x400156c
INFO:    FCONF: Config file with image ID:24 loaded at address = 0x4001300
INFO:    BL1: Loading BL2
INFO:    Loading image id=1 at address 0x4022000
INFO:    Image id=1 loaded: 0x4022000 - 0x402a779
NOTICE:  BL1: Booting BL2
INFO:    Entry point address = 0x4022000
INFO:    SPSR = 0x3c5
INFO:    FCONF: Reading FW_CONFIG firmware configuration file from: 0x4001010
INFO:    FCONF: Reading firmware configuration information for: dyn_cfg
INFO:    FCONF: Reading TB_FW firmware configuration file from: 0x4001300
NOTICE:  BL2: v2.5(debug):v2.5
NOTICE:  BL2: Built : 08:01:44, May  2 2022
INFO:    BL2: Doing platform setup
INFO:    Configuring TrustZone Controller
INFO:    Total 4 regions set.
INFO:    BL2: Loading image id 3
INFO:    Loading image id=3 at address 0x4003000
INFO:    Image id=3 loaded: 0x4003000 - 0x401623c
INFO:    BL2: Loading image id 23
INFO:    Loading image id=23 at address 0x82000000
INFO:    Image id=23 loaded: 0x82000000 - 0x82002348
INFO:    BL2: Loading image id 25
INFO:    Loading image id=25 at address 0x4001300
INFO:    Image id=25 loaded: 0x4001300 - 0x4001348
INFO:    BL2: Loading image id 5
INFO:    Loading image id=5 at address 0x88000000
INFO:    Image id=5 loaded: 0x88000000 - 0x8807fb28
INFO:    BL2: Loading image id 27
INFO:    Loading image id=27 at address 0x80000000
INFO:    Image id=27 loaded: 0x80000000 - 0x80000048
NOTICE:  BL1: Booting BL31
INFO:    Entry point address = 0x4003000
INFO:    SPSR = 0x3cd
INFO:    FCONF: Reading HW_CONFIG firmware configuration file from: 0x82000000
INFO:    FCONF: Reading firmware configuration information for: cpu_timer
INFO:    FCONF: Reading firmware configuration information for: uart_config
INFO:    FCONF: Reading firmware configuration information for: topology
INFO:    FCONF: Reading firmware configuration information for: gicv3_config
NOTICE:  BL31: v2.5(debug):v2.5
NOTICE:  BL31: Built : 08:01:44, May  2 2022
INFO:    GICv3 with legacy support detected.
INFO:    ARM GICv3 driver initialized in EL3
INFO:    Maximum SPI INTID supported: 255
INFO:    BL31: Initializing runtime services
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x88000000
INFO:    SPSR = 0x3c9


U-Boot 2021.04-dirty (May 02 2022 - 08:04:14 +0000) vexpress_aemv8a

DRAM:  4 GiB
Flash: 64 MiB
*** Warning - bad CRC, using default environment

In:    serial_pl01x
Out:   serial_pl01x
Err:   serial_pl01x
Net:   SMC91111-0
Hit any key to stop autoboot:  0
smh_open: ERROR fd -1 for file 'boot.img'
smh_open: ERROR fd -1 for file 'Image'
smh_open: ERROR fd -1 for file 'devtree.dtb'
smh_open: ERROR fd -1 for file 'ramdisk.img'
fdt - flattened device tree utility commands

Usage:
fdt addr [-c]  <addr> [<length>]   - Set the [control] fdt location to <addr>
fdt move   <fdt> <newaddr> <length> - Copy the fdt to <addr> and make it active
fdt resize [<extrasize>]            - Resize fdt to size + padding to 4k addr + some optional <extrasize> if needed
fdt print  <path> [<prop>]          - Recursive print starting at <path>
fdt list   <path> [<prop>]          - Print one level starting at <path>
fdt get value <var> <path> <prop>   - Get <property> and store in <var>
fdt get name <var> <path> <index>   - Get name of node <index> and store in <var>
fdt get addr <var> <path> <prop>    - Get start address of <property> and store in <var>
fdt get size <var> <path> [<prop>]  - Get size of [<property>] or num nodes and store in <var>
fdt set    <path> <prop> [<val>]    - Set <property> [to <val>]
fdt mknode <path> <node>            - Create a new node after <path>
fdt rm     <path> [<prop>]          - Delete the node or <property>
fdt header [get <var> <member>]     - Display header info
                                      get - get header member <member> and store it in <var>
fdt bootcpu <id>                    - Set boot cpuid
fdt memory <addr> <size>            - Add/Update memory node
fdt rsvmem print                    - Show current mem reserves
fdt rsvmem add <addr> <size>        - Add a mem reserve
fdt rsvmem delete <index>           - Delete a mem reserves
fdt chosen [<start> <end>]          - Add/update the /chosen branch in the tree
                                        <start>/<end> - initrd start/end addr
NOTE: Dereference aliases by omitting the leading '/', e.g. fdt print ethernet0.
Moving Image from 0x80080000 to 0x80200000, end=83120000
## Flattened Device Tree blob at 86000000
   Booting using the fdt blob at 0x86000000
   Using Device Tree in place at 0000000086000000, end 0000000086005fff

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd0f0]
[    0.000000] Linux version 5.19.0-rc3-00132-g647529cd3b65 (mark@lakrids) (aarch64-linux-gcc (GCC) 11.3.0, GNU ld (GNU Binutils) 2.38) #1 SMP PREEMPT Thu Jul 14 14:21:33 BST 2022
[    0.000000] Machine model: FVP Base RevC
[    0.000000] earlycon: pl11 at MMIO 0x000000001c090000 (options '')
[    0.000000] printk: bootconsole [pl11] enabled
[    0.000000] efi: UEFI not found.
[    0.000000] Reserved memory: created DMA memory pool at 0x0000000018000000, size 8 MiB
[    0.000000] OF: reserved mem: initialized node vram@18000000, compatible id shared-dma-pool
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000080000000-0x00000008ffffffff]
[    0.000000] NUMA: NODE_DATA [mem 0x8ff7f6b40-0x8ff7f8fff]
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000080000000-0x00000000ffffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   [mem 0x0000000100000000-0x00000008ffffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000080000000-0x00000000feffffff]
[    0.000000]   node   0: [mem 0x0000000880000000-0x00000008ffffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000008ffffffff]
[    0.000000] On node 0, zone Normal: 4096 pages in unavailable ranges
[    0.000000] cma: Reserved 32 MiB at 0x00000000fd000000
[    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: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.2
[    0.000000] percpu: Embedded 30 pages/cpu s82792 r8192 d31896 u122880
[    0.000000] pcpu-alloc: s82792 r8192 d31896 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 PIPT I-cache on CPU0
[    0.000000] CPU features: detected: Branch Target Identification
[    0.000000] CPU features: detected: Address authentication (IMP DEF algorithm)
[    0.000000] CPU features: detected: GIC system register CPU interface
[    0.000000] CPU features: detected: Virtualization Host Extensions
[    0.000000] CPU features: detected: Hardware dirty bit management
[    0.000000] alternatives: patching kernel code
[    0.000000] Fallback order for Node 0: 0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1028096
[    0.000000] Policy zone: Normal
[    0.000000] Kernel command line: console=ttyAMA0 earlycon=pl011,0x1c090000 root=/dev/vda rw ip=dhcp debug user_debug=31 loglevel=9
[    0.000000] Unknown kernel command line parameters "user_debug=31", 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] ------------[ cut here ]------------
[    0.000000] WARNING: CPU: 0 PID: 0 at lib/stackdepot.c:181 stack_depot_early_init+0x10/0xb4
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 5.19.0-rc3-00132-g647529cd3b65 #1
[    0.000000] Hardware name: FVP Base RevC (DT)
[    0.000000] pstate: 400000c9 (nZcv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[    0.000000] pc : stack_depot_early_init+0x10/0xb4
[    0.000000] lr : start_kernel+0x450/0x744
[    0.000000] sp : ffffd7c5d5d63e30
[    0.000000] x29: ffffd7c5d5d63e30 x28: 0000000082090010 x27: ffffd7c5d5000398
[    0.000000] x26: ffffd7c5d5000398 x25: 0000000000000000 x24: ffff6d4b3f7e42ce
[    0.000000] x23: ffff6d4b3f7e42c0 x22: ffffd7c5d5d6e9c0 x21: ffffd7c5d5115318
[    0.000000] x20: ffffd7c5d622b000 x19: ffffd7c5d5115318 x18: ffffffffffffffff
[    0.000000] x17: 2c73657479622032 x16: 353137393032202c x15: ffffd7c655d63b17
[    0.000000] x14: 0000000000000000 x13: 66666f3a65657266 x12: 2070616568202c66
[    0.000000] x11: 666f3a636f6c6c61 x10: ffffd7c5d5dea850 x9 : ffffd7c5d5d92850
[    0.000000] x8 : 00000000ffffefff x7 : ffffd7c5d5dea850 x6 : 0000000000000000
[    0.000000] x5 : 000000000000bff4 x4 : 0000000000000000 x3 : 0000000000000000
[    0.000000] x2 : 000000000000006d x1 : ffffd7c5d5d79e00 x0 : ffffd7c5d5380000
[    0.000000] Call trace:
[    0.000000]  stack_depot_early_init+0x10/0xb4
[    0.000000]  __primary_switched+0xb8/0xc0
[    0.000000] ---[ end trace 0000000000000000 ]---
[    0.000000] software IO TLB: mapped [mem 0x00000000f9000000-0x00000000fd000000] (64MB)
[    0.000000] Memory: 3947600K/4177920K available (19968K kernel code, 4882K rwdata, 11156K rodata, 11072K init, 951K bss, 197552K reserved, 32768K cma-reserved)
[    0.000000] SLUB: HWalign=128, Order=0-3, MinObjects=0, CPUs=8, Nodes=1
[    0.000000] ftrace: allocating 65020 entries in 254 pages
[    0.000000] ftrace: allocated 254 pages with 7 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] GICv3: GIC: Using split EOI/Deactivate mode
[    0.000000] GICv3: 224 SPIs implemented
[    0.000000] GICv3: 0 Extended SPIs implemented
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GICv3: GICv3 features: 16 PPIs
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x000000002f100000
[    0.000000] ITS [mem 0x2f020000-0x2f03ffff]
[    0.000000] ITS@0x000000002f020000: allocated 8192 Devices @8801f0000 (indirect, esz 8, psz 64K, shr 1)
[    0.000000] ITS@0x000000002f020000: allocated 8192 Virtual CPUs @880200000 (indirect, esz 8, psz 64K, shr 1)
[    0.000000] ITS@0x000000002f020000: allocated 8192 Interrupt Collections @880210000 (flat, esz 8, psz 64K, shr 1)
[    0.000000] GICv3: using LPI property table @0x0000000880220000
[    0.000000] GICv3: CPU0: using allocated LPI pending table @0x0000000880230000
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] kfence: initialized - using 2097152 bytes for 255 objects at 0x(____ptrval____)-0x(____ptrval____)
[    0.000000] timer_sp804: timer clock not found: -517
[    0.000000] timer_sp804: arm,sp804 clock not found: -2
[    0.000000] Failed to initialize '/bus@8000000/motherboard-bus/iofpga-bus@300000000/timer@110000': -22
[    0.000000] timer_sp804: timer clock not found: -517
[    0.000000] timer_sp804: arm,sp804 clock not found: -2
[    0.000000] Failed to initialize '/bus@8000000/motherboard-bus/iofpga-bus@300000000/timer@120000': -22
[    0.000000] arch_timer: cp15 timer(s) running at 100.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0x1ffffffffffffff max_cycles: 0x171024e7e0, max_idle_ns: 440795205315 ns
[    0.000000] sched_clock: 57 bits at 100MHz, resolution 10ns, wraps every 4398046511100ns
[    0.000997] random: crng init done
[    0.001966] Console: colour dummy device 80x25
[    0.002703] Calibrating delay loop (skipped), value calculated using timer frequency.. 200.00 BogoMIPS (lpj=400000)
[    0.002952] pid_max: default: 32768 minimum: 301
[    0.003952] LSM: Security Framework initializing
[    0.004052] LSM: security= is ignored because it is superseded by lsm=
[    0.004208] Unable to handle kernel paging request at virtual address 0000000004000000
[    0.004382] Mem abort info:
[    0.004468]   ESR = 0x0000000096000004
[    0.004587]   EC = 0x25: DABT (current EL), IL = 32 bits
[    0.004752]   SET = 0, FnV = 0
[    0.004852]   EA = 0, S1PTW = 0
[    0.004997]   FSC = 0x04: level 0 translation fault
[    0.005152] Data abort info:
[    0.005252]   ISV = 0, ISS = 0x00000004
[    0.005352]   CM = 0, WnR = 0
[    0.005488] [0000000004000000] user address but active_mm is swapper
[    0.005596] Internal error: Oops: 0000000096000004 [#1] PREEMPT SMP
[    0.005652] Modules linked in:
[    0.005816] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G        W         5.19.0-rc3-00132-g647529cd3b65 #1
[    0.005952] Hardware name: FVP Base RevC (DT)
[    0.006030] pstate: 80000009 (Nzcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[    0.006152] pc : __pi_strlen+0x14/0x150
[    0.006252] lr : kstrdup+0x34/0xa4
[    0.006352] sp : ffffd7c5d5d63d60
[    0.006389] x29: ffffd7c5d5d63d60 x28: 0000000082090010 x27: ffffd7c5d514c000
[    0.006552] x26: ffffd7c5d5000398 x25: 0000000000000000 x24: 2200000004000000
[    0.006811] x23: ffffd7c5d4fb4df8 x22: ffffd7c5d54a8db8 x21: b09ad7c5d52b951c
[    0.006985] x20: 2200000004000000 x19: 0000000000000cc0 x18: ffffffffffffffff
[    0.007158] x17: 000000000000003f x16: 000000000000000b x15: ffffd7c655d63ae7
[    0.007372] x14: 0000000000000000 x13: 3d6d736c20796220 x12: 6465646573726570
[    0.007552] x11: 7573207369207469 x10: ffffd7c5d5dea850 x9 : ffffd7c5d52b951c
[    0.007765] x8 : 0101010101010101 x7 : ffffd7c5d5dea850 x6 : 0000000000000000
[    0.007952] x5 : 000000000000bff4 x4 : 0000000000000000 x3 : 0000000003000001
[    0.008112] x2 : 0000000000000000 x1 : 0000000000000cc0 x0 : 2200000004000000
[    0.008286] Call trace:
[    0.008373]  __pi_strlen+0x14/0x150
[    0.008460]  ordered_lsm_parse+0xa4/0x27c
[    0.008601]  security_init+0xdc/0x2c4
[    0.008720]  start_kernel+0x6cc/0x744
[    0.008852]  __primary_switched+0xb8/0xc0
[    0.009011] Code: 92402c04 b200c3e8 f13fc09f 5400088c (a9400c02)
[    0.009067] ---[ end trace 0000000000000000 ]---
[    0.009240] Kernel panic - not syncing: Attempted to kill the idle task!
[    0.009352] ---[ end Kernel panic - not syncing: Attempted to kill the idle task! ]---

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: FVP: kernel BUG at arch/arm64/kernel/traps.c:497 - Internal error: Oops - BUG: 0
  2022-07-14 13:39             ` Mark Rutland
@ 2022-07-14 14:05               ` Naresh Kamboju
  2022-07-15 12:28                 ` Mark Brown
  0 siblings, 1 reply; 14+ messages in thread
From: Naresh Kamboju @ 2022-07-14 14:05 UTC (permalink / raw)
  To: Mark Rutland
  Cc: Mark Brown, open list, Linux-Next Mailing List, Linux ARM,
	lkft-triage, regressions, Catalin Marinas, Will Deacon,
	Arnd Bergmann, Anders Roxell, Aishwarya TCV

Hi Mark,

On Thu, 14 Jul 2022 at 19:09, Mark Rutland <mark.rutland@arm.com> wrote:
>
> On Thu, Jul 14, 2022 at 02:06:28PM +0100, Mark Rutland wrote:
>
> > ... and I've just reproduced the issue by running the script from a different
> > directory, since apprarently the semihosting interface just grabs the file from
> > the current directory.
> >
> > I'm pretty sure this means that *something* is clobbering the Image early on
> > during boot, and the semihisting loading happens to refresh it.
>
> I had a go with my own kernel built from my arm64/traps/rework branch:
>
>   https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git/log/?h=arm64/traps/rework
>
> ... and Naresh's config:
>
>   https://builds.tuxbuild.com/2BnQMpJj3kDTJXoCwd2pY5gW9CN/config
>
> When *only* using the initial loading into memory, that blows up in stackdepot
> and with a subsequent bogus pointer dereference (full log below), and when
> loaded via semihosting that just works. Note that my kernel is based on the
> arm64 for-next/core branch, which itself is based on v5.19-rc3.
>
> My failing kernel Image is ~47M, as is Naresh's original Image. When using
> smaller Images (as large as 43M so far), I don't see any issues.
>
> I also note that if I enable KASAN_OUTLINE, the kernel is so big that it
> clobbers the DTB, and cannot be booted. So this looks liek a problem with tha
> arbitrary placement / limits chosen for U-Boot being too small, and this is not
> a kernel bug.

Now I have understood the reason.

> Naresh, please can you fix your boot flow before reporting any further issues?

Yes.

> This sort of corruption will manifest in a number of ways, and we need to rule
> that out for any other bug reports.

Any further reports I will do needful initial investigation.

- Naresh

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: FVP: kernel BUG at arch/arm64/kernel/traps.c:497 - Internal error: Oops - BUG: 0
  2022-07-14 14:05               ` Naresh Kamboju
@ 2022-07-15 12:28                 ` Mark Brown
  0 siblings, 0 replies; 14+ messages in thread
From: Mark Brown @ 2022-07-15 12:28 UTC (permalink / raw)
  To: Naresh Kamboju
  Cc: Mark Rutland, open list, Linux-Next Mailing List, Linux ARM,
	lkft-triage, regressions, Catalin Marinas, Will Deacon,
	Arnd Bergmann, Anders Roxell, Aishwarya TCV


[-- Attachment #1.1: Type: text/plain, Size: 821 bytes --]

On Thu, Jul 14, 2022 at 07:35:50PM +0530, Naresh Kamboju wrote:
> On Thu, 14 Jul 2022 at 19:09, Mark Rutland <mark.rutland@arm.com> wrote:

> > When *only* using the initial loading into memory, that blows up in stackdepot
> > and with a subsequent bogus pointer dereference (full log below), and when
> > loaded via semihosting that just works. Note that my kernel is based on the
> > arm64 for-next/core branch, which itself is based on v5.19-rc3.

> > Naresh, please can you fix your boot flow before reporting any further issues?
> 
> Yes.

If you don't *need* to use u-boot for any reason then it might be worth
looking into using EDK2 instead, it will dynamically place loaded images
so you don't need to worry about size issues unless you actually run out
of memory which is a whole other problem.

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2022-07-15 12:29 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-12  9:57 FVP: kernel BUG at arch/arm64/kernel/traps.c:497 - Internal error: Oops - BUG: 0 Naresh Kamboju
2022-07-12 11:54 ` Mark Brown
2022-07-13 19:37   ` Naresh Kamboju
2022-07-14 11:26     ` Mark Rutland
2022-07-14 11:42       ` Mark Brown
2022-07-14 12:57         ` Mark Rutland
2022-07-14 13:06           ` Mark Rutland
2022-07-14 13:39             ` Mark Rutland
2022-07-14 14:05               ` Naresh Kamboju
2022-07-15 12:28                 ` Mark Brown
2022-07-14 11:37     ` Mark Brown
2022-07-12 12:49 ` Mark Rutland
2022-07-12 12:52   ` Mark Brown
2022-07-12 16:21   ` Mark Rutland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).