This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMDS64GPEVM: CONFIG_DEBUG_FS kernel panic.

Part Number: TMDS64GPEVM

Yocto: 3.1 dunfell

Kernel: 5.10.109-rt

I want to disable CONFIG_DEBUG_FS (# CONFIG_DEBUG_FS is not set) but with this option, booting is failing.

[    0.892603] Key type dns_resolver registered
ERROR:   Unhandled External Abort received on 0x80000001 from EL3
ERROR:   exception reason=0 syndrome=0xbf000000
PANIC in EL3.
x30            = 0x00000000701a3c08
x0             = 0x0000000002800000
x1             = 0x0000000000000060
x2             = 0x0000000000000060
x3             = 0x0000000000000008
x4             = 0x0000000000000062
x5             = 0x000000000000003b
x6             = 0x000000000000000b
x7             = 0x0000000000000000
x8             = 0x0000000000000001
x9             = 0x0000000041033060
x10            = 0x000000000000073d
x11            = 0xffff80001115ba38
x12            = 0xffffffffffffffff
x13            = 0x0000000000000008
x14            = 0xffff0000004da920
x15            = 0xffff000000015310
x16            = 0x0000000000000007
x17            = 0x000000000000000e
x18            = 0xffff000000c2ac40
x19            = 0x0000000000000000
x20            = 0x00000000bf000000
x21            = 0xffff0000002dc010
x22            = 0x000000000000001b
x23            = 0xffff0000017b0e00
x24            = 0xffff800010cc82b8
x25            = 0x000000000000002a
x26            = 0x0000000000000000
x27            = 0x0000000000000000
x28            = 0x0000000000000000
x29            = 0x00000000701aac20
scr_el3        = 0x000000000000073d
sctlr_el3      = 0x0000000030cd183f
cptr_el3       = 0x0000000000000000
tcr_el3        = 0x0000000080803520
daif           = 0x00000000000003c0
mair_el3       = 0x00000000004404ff
spsr_el3       = 0x00000000400002cd
elr_el3        = 0x00000000701a7594
ttbr0_el3      = 0x00000000701ad780
esr_el3        = 0x00000000bf000000
far_el3        = 0xfffffdfe00001802
spsr_el1       = 0x0000000040000005
elr_el1        = 0xffff800010840608
spsr_abt       = 0x0000000000000000
spsr_und       = 0x0000000000000000
spsr_irq       = 0x0000000000000000
spsr_fiq       = 0x0000000000000000
sctlr_el1      = 0x0000000034d4d91d
actlr_el1      = 0x0000000000000000
cpacr_el1      = 0x0000000000300000
csselr_el1     = 0x0000000000000000
sp_el1         = 0xffff80001115bb30
esr_el1        = 0x0000000000000000
ttbr0_el1      = 0x0000000082a69000
ttbr1_el1      = 0x0000000082a6a000
mair_el1       = 0x000c0400bb44ffff
amair_el1      = 0x0000000000000000
tcr_el1        = 0x00000032b5d03590
tpidr_el1      = 0xffff80006f109000
tpidr_el0      = 0x0000000000000000
tpidrro_el0    = 0x0000000000000000
par_el1        = 0x0000000000000000
mpidr_el1      = 0x0000000080000001
afsr0_el1      = 0x0000000000000000
afsr1_el1      = 0x0000000000000000
contextidr_el1 = 0x0000000000000000
vbar_el1       = 0xffff800010010800
cntp_ctl_el0   = 0x0000000000000005
cntp_cval_el0  = 0x00000001f518ebf6
cntv_ctl_el0   = 0x0000000000000000
cntv_cval_el0  = 0x0000000000000000
cntkctl_el1    = 0x00000000000000d6
sp_el0         = 0x00000000701aac20
isr_el1        = 0x0000000000000040
dacr32_el2     = 0x0000000000000000
ifsr32_el2     = 0x0000000000000000
cpuectlr_el1   = 0x0000000000000040
cpumerrsr_el1  = 0x00000000031c0158
l2merrsr_el1   = 0x0000000013080650
cpuactlr_el1   = 0x00001000090ca000

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.10.109-rt65-g71d8b94986 (oe-user@oe-host) (aarch64-bayos-linux-gcc (GCC) 9.3.0, GNU ld (
GNU Binutils) 2.34.0.20200220) #1 SMP PREEMPT_RT Tue Apr 26 07:08:12 UTC 2022
[    0.000000] Machine model: Texas Instruments AM642 EVM
[    0.000000] earlycon: ns16550a0 at MMIO32 0x0000000002800000 (options '')
[    0.000000] printk: bootconsole [ns16550a0] enabled
[    0.000000] efi: UEFI not found.
[    0.000000] Reserved memory: created DMA memory pool at 0x00000000a0000000, size 1 MiB
[    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a0000000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x00000000a0100000, size 15 MiB
[    0.000000] OF: reserved mem: initialized node r5f-memory@a0100000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x00000000a1000000, size 1 MiB
[    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a1000000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x00000000a1100000, size 15 MiB
[    0.000000] OF: reserved mem: initialized node r5f-memory@a1100000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x00000000a2000000, size 1 MiB
[    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a2000000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x00000000a2100000, size 15 MiB
[    0.000000] OF: reserved mem: initialized node r5f-memory@a2100000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x00000000a3000000, size 1 MiB
[    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a3000000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x00000000a3100000, size 15 MiB
[    0.000000] OF: reserved mem: initialized node r5f-memory@a3100000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x00000000a4000000, size 1 MiB
[    0.000000] OF: reserved mem: initialized node m4f-dma-memory@a4000000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x00000000a4100000, size 15 MiB
[    0.000000] OF: reserved mem: initialized node m4f-memory@a4100000, compatible id shared-dma-pool
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000080000000-0x00000000ffffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000080000000-0x000000009e7fffff]
[    0.000000]   node   0: [mem 0x000000009e800000-0x00000000a57fffff]
[    0.000000]   node   0: [mem 0x00000000a5800000-0x00000000ffffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000000ffffffff]
[    0.000000] On node 0 totalpages: 524288
[    0.000000]   DMA zone: 8192 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 524288 pages, LIFO batch:63
[    0.000000] cma: Reserved 24 MiB at 0x00000000fb800000
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required
[    0.000000] psci: SMC Calling Convention v1.2
[    0.000000] percpu: Embedded 18 pages/cpu s34752 r8192 d30784 u73728
[    0.000000] pcpu-alloc: s34752 r8192 d30784 u73728 alloc=18*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] CPU features: detected: GIC system register CPU interface
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 516096
[    0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 1903912K/2097152K available (8448K kernel code, 1116K rwdata, 2132K rodata, 1536K init, 427K bss
, 168664K reserved, 24576K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=2.
[    0.000000] rcu:     RCU priority boosting: priority 1 delay 500 ms.
[    0.000000] rcu:     RCU_SOFTIRQ processing moved to rcuc kthreads.
[    0.000000]  No expedited grace period (rcu_normal_after_boot).
[    0.000000]  Trampoline 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=2
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[    0.000000] GICv3: 256 SPIs implemented
[    0.000000] GICv3: 0 Extended SPIs implemented
[    0.000000] GICv3: Distributor has no Range Selector support
[    0.000000] GICv3: 16 PPIs implemented
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000001840000
[    0.000000] ITS [mem 0x01820000-0x0182ffff]
[    0.000000] GIC: enabling workaround for ITS: Socionext Synquacer pre-ITS
[    0.000000] ITS@0x0000000001820000: Devices Table too large, reduce ids 20->19
[    0.000000] ITS@0x0000000001820000: allocated 524288 Devices @80800000 (flat, esz 8, psz 64K, shr 0)
[    0.000000] ITS: using cache flushing for cmd queue
[    0.000000] GICv3: using LPI property table @0x0000000080030000
[    0.000000] GIC: using cache flushing for LPI property table
[    0.000000] GICv3: CPU0: using allocated LPI pending table @0x0000000080040000
[    0.000000] random: get_random_bytes called from 0xffff800010a70d4c with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 225.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x33e45310bc, max_idle_ns: 44079520739
1 ns
[    0.000001] sched_clock: 56 bits at 225MHz, resolution 4ns, wraps every 4398046511101ns
[    0.008671] Console: colour dummy device 80x25
[    0.013293] Calibrating delay loop (skipped), value calculated using timer frequency.. 450.00 BogoMIPS (lpj=900000)
[    0.023984] pid_max: default: 32768 minimum: 301
[    0.028876] LSM: Security Framework initializing
[    0.033699] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.041295] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.052128] rcu: Hierarchical SRCU implementation.
[    0.057924] Platform MSI: msi-controller@1820000 domain created
[    0.064456] PCI/MSI: /bus@f4000/interrupt-controller@1800000/msi-controller@1820000 domain created
[    0.073891] EFI services will not be available.
[    0.078979] smp: Bringing up secondary CPUs ...
[    0.085113] Detected VIPT I-cache on CPU1
[    0.089273] GICv3: CPU1: found redistributor 1 region 0:0x0000000001860000
[    0.096319] GICv3: CPU1: using allocated LPI pending table @0x0000000080050000
[    0.103775] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.110676] smp: Brought up 1 node, 2 CPUs
[    0.114929] SMP: Total of 2 processors activated.
[    0.119771] CPU features: detected: 32-bit EL0 Support
[    0.125060] CPU features: detected: CRC32 instructions
[    0.131595] CPU: All CPU(s) started at EL2
[    0.135813] alternatives: patching kernel code
[    0.141790] devtmpfs: initialized
[    0.160597] KASLR disabled due to lack of seed
[    0.165477] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.175475] futex hash table entries: 512 (order: 4, 65536 bytes, linear)
[    0.184223] pinctrl core: initialized pinctrl subsystem
[    0.190344] DMI not present or invalid.
[    0.195132] NET: Registered protocol family 16
[    0.203431] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
[    0.210915] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.219230] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.228336] thermal_sys: Registered thermal governor 'step_wise'
[    0.229132] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.242336] ASID allocator initialised with 65536 entries
[    0.294559] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[    0.301524] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[    0.308415] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.315310] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[    0.324050] cryptd: max_cpu_qlen set to 1000
[    0.333874] k3-chipinfo 43000014.chipid: Family:AM64X rev:SR1.0 JTAGID[0x0bb3802f] Detected
[    0.343470] vsys_5v0: supplied by evm_12v0
[    0.348684] vsys_3v3: supplied by evm_12v0
[    0.353675] vddb_3v3_display: supplied by vsys_3v3
[    0.360841] iommu: Default domain type: Translated 
[    0.367149] mc: Linux media interface: v0.10
[    0.371678] videodev: Linux video capture interface: v2.00
[    0.377484] pps_core: LinuxPPS API ver. 1 registered
[    0.382572] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.391942] PTP clock support registered
[    0.396017] EDAC MC: Ver: 3.0.0
[    0.400447] omap-mailbox 29020000.mailbox: omap mailbox rev 0x66fc9100
[    0.407552] omap-mailbox 29040000.mailbox: omap mailbox rev 0x66fc9100
[    0.414494] omap-mailbox 29060000.mailbox: omap mailbox rev 0x66fc9100
[    0.422329] Advanced Linux Sound Architecture Driver Initialized.
[    0.430340] clocksource: Switched to clocksource arch_sys_counter
[    0.437061] VFS: Disk quotas dquot_6.6.0
[    0.441192] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.460440] NET: Registered protocol family 2
[    0.465286] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.475573] tcp_listen_portaddr_hash hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.484515] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.492894] TCP bind hash table entries: 16384 (order: 7, 917504 bytes, linear)
[    0.501340] TCP: Hash tables configured (established 16384 bind 16384)
[    0.508528] UDP hash table entries: 1024 (order: 5, 131072 bytes, linear)
[    0.515670] UDP-Lite hash table entries: 1024 (order: 5, 131072 bytes, linear)
[    0.523526] NET: Registered protocol family 1
[    0.528991] RPC: Registered named UNIX socket transport module.
[    0.535151] RPC: Registered udp transport module.
[    0.539975] RPC: Registered tcp transport module.
[    0.544795] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.551431] PCI: CLS 0 bytes, default 64
[    0.556748] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[    0.571919] Initialise system trusted keyrings
[    0.576848] workingset: timestamp_bits=46 max_order=19 bucket_order=0
[    0.594059] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.601432] NFS: Registering the id_resolver key type
[    0.606736] Key type id_resolver registered
[    0.611058] Key type id_legacy registered
[    0.615360] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.622228] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    0.685682] Key type asymmetric registered
[    0.689976] Asymmetric key parser 'x509' registered
[    0.695108] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243)
[    0.702719] io scheduler mq-deadline registered
[    0.707361] io scheduler kyber registered
[    0.715507] pinctrl-single f4000.pinctrl: 180 pins, size 720
[    0.723238] pinctrl-single a40000.timesync-router: 512 pins, size 2048
[    0.746137] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
[    0.779847] brd: module loaded
[    0.793143] loop: module loaded
[    0.805051] tun: Universal TUN/TAP device driver, 1.6
[    0.811513] igbvf: Intel(R) Gigabit Virtual Function Network Driver
[    0.818039] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[    0.824218] sky2: driver version 1.30
[    0.830053] VFIO - User Level meta-driver version: 0.3
[    0.836642] i2c /dev entries driver
[    0.842213] sdhci: Secure Digital Host Controller Interface driver
[    0.848636] sdhci: Copyright(c) Pierre Ossman
[    0.854209] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.862484] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[    0.870472] optee: probing for conduit method.
[    0.875076] optee: revision 3.12 (3d47a131)
[    0.875904] optee: initialized driver
[    0.887803] NET: Registered protocol family 17
[    0.892603] Key type dns_resolver registered
ERROR:   Unhandled External Abort received on 0x80000001 from EL3
ERROR:   exception reason=0 syndrome=0xbf000000
PANIC in EL3.
x30            = 0x00000000701a3c08
x0             = 0x0000000002800000
x1             = 0x0000000000000060
x2             = 0x0000000000000060
x3             = 0x0000000000000008
x4             = 0x0000000000000062
x5             = 0x000000000000003b
x6             = 0x000000000000000b
x7             = 0x0000000000000000
x8             = 0x0000000000000001
x9             = 0x0000000041033060
x10            = 0x000000000000073d
x11            = 0xffff80001115ba38
x12            = 0xffffffffffffffff
x13            = 0x0000000000000008
x14            = 0xffff0000004da920
x15            = 0xffff000000015310
x16            = 0x0000000000000007
x17            = 0x000000000000000e
x18            = 0xffff000000c2ac40
x19            = 0x0000000000000000
x20            = 0x00000000bf000000
x21            = 0xffff0000002dc010
x22            = 0x000000000000001b
x23            = 0xffff0000017b0e00
x24            = 0xffff800010cc82b8
x25            = 0x000000000000002a
x26            = 0x0000000000000000
x27            = 0x0000000000000000
x28            = 0x0000000000000000
x29            = 0x00000000701aac20
scr_el3        = 0x000000000000073d
sctlr_el3      = 0x0000000030cd183f
cptr_el3       = 0x0000000000000000
tcr_el3        = 0x0000000080803520
daif           = 0x00000000000003c0
mair_el3       = 0x00000000004404ff
spsr_el3       = 0x00000000400002cd
elr_el3        = 0x00000000701a7594
ttbr0_el3      = 0x00000000701ad780
esr_el3        = 0x00000000bf000000
far_el3        = 0xfffffdfe00001802
spsr_el1       = 0x0000000040000005
elr_el1        = 0xffff800010840608
spsr_abt       = 0x0000000000000000
spsr_und       = 0x0000000000000000
spsr_irq       = 0x0000000000000000
spsr_fiq       = 0x0000000000000000
sctlr_el1      = 0x0000000034d4d91d
actlr_el1      = 0x0000000000000000
cpacr_el1      = 0x0000000000300000
csselr_el1     = 0x0000000000000000
sp_el1         = 0xffff80001115bb30
esr_el1        = 0x0000000000000000
ttbr0_el1      = 0x0000000082a69000
ttbr1_el1      = 0x0000000082a6a000
mair_el1       = 0x000c0400bb44ffff
amair_el1      = 0x0000000000000000
tcr_el1        = 0x00000032b5d03590
tpidr_el1      = 0xffff80006f109000
tpidr_el0      = 0x0000000000000000
tpidrro_el0    = 0x0000000000000000
par_el1        = 0x0000000000000000
mpidr_el1      = 0x0000000080000001
afsr0_el1      = 0x0000000000000000
afsr1_el1      = 0x0000000000000000
contextidr_el1 = 0x0000000000000000
vbar_el1       = 0xffff800010010800
cntp_ctl_el0   = 0x0000000000000005
cntp_cval_el0  = 0x00000001f518ebf6
cntv_ctl_el0   = 0x0000000000000000
cntv_cval_el0  = 0x0000000000000000
cntkctl_el1    = 0x00000000000000d6
sp_el0         = 0x00000000701aac20
isr_el1        = 0x0000000000000040
dacr32_el2     = 0x0000000000000000
ifsr32_el2     = 0x0000000000000000
cpuectlr_el1   = 0x0000000000000040
cpumerrsr_el1  = 0x00000000031c0158
l2merrsr_el1   = 0x0000000013080650
cpuactlr_el1   = 0x00001000090ca000

  • Hi! The subject owner is currently out of the office. Please allow a couple of days for a response. Thanks.

  • Hi Muhammet,

    Sorry for delay response. I am able to reproduce the issue, and the following kernel patch should solve the issue.

    diff --git a/drivers/net/ethernet/ti/am65-debugfs.c b/drivers/net/ethernet/ti/am65-debugfs.c
    index 33bc6a24a328..87f84e2125f1 100644
    --- a/drivers/net/ethernet/ti/am65-debugfs.c
    +++ b/drivers/net/ethernet/ti/am65-debugfs.c
    @@ -8,6 +8,8 @@
    
     #include "am65-cpsw-nuss.h"
    
    +#ifdef CONFIG_DEBUG_FS
    +
     int am65_cpsw_nuss_register_debugfs(struct am65_cpsw_common *common)
     {
            common->debugfs_root = debugfs_create_dir(dev_name(common->dev), NULL);
    @@ -196,3 +198,18 @@ int am65_cpsw_nuss_register_port_debugfs(struct am65_cpsw_port *port)
    
            return 0;
     }
    +#else
    +inline int am65_cpsw_nuss_register_debugfs(struct am65_cpsw_common *common)
    +{
    +       return 0;
    +}
    +
    +inline void am65_cpsw_nuss_unregister_debugfs(struct am65_cpsw_common *common)
    +{
    +}
    +
    +inline int am65_cpsw_nuss_register_port_debugfs(struct am65_cpsw_port *port)
    +{
    +       return 0;
    +}
    +#endif