Package: linux-image-6.1.0-56-armmp-lpae Version: 6.1.192-2 Severity:
important

 

Dear Debian Kernel Team,

 

I would like to report a kernel panic regression affecting the Banana Pi M1
(Allwinner A20).

 

Hardware:

*       Board: LeMaker Banana Pi M1
*       SoC: Allwinner A20 (sun7i)
*       RAM: 1 GiB
*       Bootloader: U-Boot 2016.11
*       Debian: Debian 12 (Bookworm)
*       Architecture: ARM armmp-lpae

 

Affected kernel: 6.1.0-56-armmp-lpae Debian package version: 6.1.192-2

 

Previously working kernel: 6.1.0-54-armmp-lpae Debian package version:
6.1.190-1

 

Problem description:

After upgrading the kernel from 6.1.190-1 to 6.1.192-2, the system crashes
during boot with a kernel panic.

 

Before the panic, the following firmware warning appears:

platform regulatory.0: firmware: failed to load regulatory.db (-2)

 

However, the actual kernel panic appears to be related to the Allwinner
Ethernet driver (stmmac).

The relevant kernel messages are:

 

Unable to handle kernel paging request at virtual address 2e15e000

Internal error: Oops: 206 [#1] SMP ARM

 

PC is at dwmac_dma_interrupt+0xd0/0x214 [stmmac]

 

Comm: systemd-network

Hardware name: Allwinner sun7i (A20) Family

 

dwmac_dma_interrupt [stmmac]

stmmac_napi_check [stmmac]

stmmac_interrupt [stmmac]

stmmac_xmit [stmmac]

 

Kernel panic - not syncing: Fatal exception in interrupt

 

Network configuration:

 

The Banana Pi uses its onboard Ethernet controller. The network
configuration includes VLAN interfaces.

 

The stack trace includes:

vlan_dev_hard_start_xmit

stmmac_xmit

stmmac_interrupt

dwmac_dma_interrupt

 

This suggests a possible regression in the stmmac Ethernet driver,
potentially related to VLAN traffic.

 

Reproducibility:

*       Kernel 6.1.190-1: System works normally.
*       Kernel 6.1.192-2: Kernel panic during boot.
*       Restoring a full SD-card backup with the previous kernel restores
normal operation.

 

Unfortunately, I have restored the working SD-card backup and cannot
currently perform further tests with the failing kernel.

The complete serial console output, including the kernel panic and call
trace, is attached to this mail.

 

Could you please investigate whether this might be a regression in the
stmmac driver affecting the Allwinner A20 platform?

 

Best regards

Jörg

 

=> printenv
arch=arm
baudrate=115200
board=sunxi
board_name=sunxi
boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} 
${prefix}${script}; source ${scriptaddr}
boot_efi_binary=load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} 
efi/boot/bootarm.efi; if fdt addr ${fdt_addr_r}; then bootefi ${kernel_addr_r} 
${fdt_addr_r};else bootefi ${kernel_addr_r} ${fdtcontroladdr};fi
boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} 
${prefix}extlinux/extlinux.conf
boot_net_usb_start=usb start
boot_prefixes=/ /boot/
boot_script_dhcp=boot.scr.uimg
boot_scripts=boot.scr.uimg boot.scr
boot_targets=fel mmc0 scsi0 usb0 pxe dhcp
bootargs=iomem=relaxed
bootcmd=run distro_bootcmd
bootcmd_dhcp=run boot_net_usb_start; if dhcp ${scriptaddr} ${boot_script_dhcp}; 
then source ${scriptaddr}; fi;setenv efi_fdtfile ${fdtfile}; if test -z 
"${fdtfile}" -a -n "${soc}"; then setenv efi_fdtfile 
${soc}-${board}${boardver}.dtb; fi; setenv efi_old_vci ${bootp_vci};setenv 
efi_old_arch ${bootp_arch};setenv bootp_vci 
PXEClient:Arch:00010:UNDI:003000;setenv bootp_arch 0xa;if dhcp 
${kernel_addr_r}; then tftpboot ${fdt_addr_r} dtb/${efi_fdtfile};if fdt addr 
${fdt_addr_r}; then bootefi ${kernel_addr_r} ${fdt_addr_r}; else bootefi 
${kernel_addr_r} ${fdtcontroladdr};fi;fi;setenv bootp_vci ${efi_old_vci};setenv 
bootp_arch ${efi_old_arch};setenv efi_fdtfile;setenv efi_old_arch;setenv 
efi_old_vci;
bootcmd_fel=if test -n ${fel_booted} && test -n ${fel_scriptaddr}; then echo 
'(FEL boot)'; source ${fel_scriptaddr}; fi
bootcmd_mmc0=setenv devnum 0; run mmc_boot
bootcmd_pxe=run boot_net_usb_start; dhcp; if pxe get; then pxe boot; fi
bootcmd_scsi0=setenv devnum 0; run scsi_boot
bootcmd_usb0=setenv devnum 0; run usb_boot
bootdelay=2
bootm_size=0xa000000
console=ttyS0,115200
cpu=armv7
dfu_alt_info_ram=kernel ram 0x42000000 0x1000000;fdt ram 0x43000000 
0x100000;ramdisk ram 0x43300000 0x4000000
distro_bootcmd=setenv scsi_need_init; for target in ${boot_targets}; do run 
bootcmd_${target}; done
efi_dtb_prefixes=/ /dtb/ /dtb/current/
ethaddr=02:c2:09:42:18:5f
fdt_addr_r=0x43000000
fdtcontroladdr=7af2e5e0
fdtfile=sun7i-a20-bananapi.dtb
kernel_addr_r=0x42000000
load_efi_dtb=load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} 
${prefix}${efi_fdtfile}
mmc_boot=if mmc dev ${devnum}; then setenv devtype mmc; run 
scan_dev_for_boot_part; fi
preboot=usb start
pxefile_addr_r=0x43200000
ramdisk_addr_r=0x43300000
scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for 
prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run 
scan_dev_for_scripts; done;run scan_dev_for_efi;
scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env 
exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if 
fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run 
scan_dev_for_boot; fi; done
scan_dev_for_efi=setenv efi_fdtfile ${fdtfile}; if test -z "${fdtfile}" -a -n 
"${soc}"; then setenv efi_fdtfile ${soc}-${board}${boardver}.dtb; fi; for 
prefix in ${efi_dtb_prefixes}; do if test -e ${devtype} 
${devnum}:${distro_bootpart} ${prefix}${efi_fdtfile}; then run load_efi_dtb; 
fi;done;if test -e ${devtype} ${devnum}:${distro_bootpart} 
efi/boot/bootarm.efi; then echo Found EFI removable media binary 
efi/boot/bootarm.efi; run boot_efi_binary; echo EFI LOAD FAILED: continuing...; 
fi; setenv efi_fdtfile
scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} 
${prefix}extlinux/extlinux.conf; then echo Found 
${prefix}extlinux/extlinux.conf; run boot_extlinux; echo SCRIPT FAILED: 
continuing...; fi
scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} 
${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script 
${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; 
done
scriptaddr=0x43100000
scsi_boot=run scsi_init; if scsi dev ${devnum}; then setenv devtype scsi; run 
scan_dev_for_boot_part; fi
scsi_init=if ${scsi_need_init}; then setenv scsi_need_init false; scsi scan; fi
serial#=165166c20942185f
soc=sunxi
stderr=serial,vga
stdin=serial,usbkbd
stdout=serial,vga
usb_boot=usb start; if usb dev ${devnum}; then setenv devtype usb; run 
scan_dev_for_boot_part; fi

Environment size: 4341/131068 bytes
U-Boot 2016.11+dfsg1-4 (Mar 27 2017 - 18:39:51 +0000) Allwinner Technology

CPU:   Allwinner A20 (SUN7I)
Model: LeMaker Banana Pi
I2C:   ready
DRAM:  1 GiB
MMC:   SUNXI SD/MMC: 0
Setting up a 720x576i composite-pal console (overscan 32x20)
In:    serial
Out:   vga
Err:   vga
SCSI:  SATA link 0 timeout.
AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
flags: ncq stag pm led clo only pmp pio slum part ccc apst
Net:   eth0: ethernet@01c50000
starting USB...
USB0:   USB EHCI 1.00
USB1:   USB OHCI 1.0
USB2:   USB EHCI 1.00
USB3:   USB OHCI 1.0
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 2 for devices... 1 USB Device(s) found
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
2627 bytes read in 44 ms (57.6 KiB/s)
## Executing script at 43100000
Mainline u-boot / new-style environment detected.
5542400 bytes read in 619 ms (8.5 MiB/s)
27177 bytes read in 695 ms (38.1 KiB/s)
24067871 bytes read in 1967 ms (11.7 MiB/s)
Booting Debian 6.1.0-56-armmp-lpae from mmc 0:1...
## Flattened Device Tree blob at 43000000
   Booting using the fdt blob at 0x43000000
   Loading Ramdisk to 4890c000, end 49ffff1f ... OK
   Loading Device Tree to 48902000, end 4890ba28 ... OK

Starting kernel ...

+▒r▒▒▒▒▒▒▒Can't get timer clock
[    0.007850] /cpus/cpu@0 missing clock-frequency property
[    0.007983] /cpus/cpu@1 missing clock-frequency property
/dev/mmcblk0p2: recovering journal
/dev/mmcblk0p2: clean, 62787/166656 files, 535494/666112 blocks
[   19.128725] platform regulatory.0: firmware: failed to load regulatory.db 
(-2)
[   19.136092] firmware_class: See https://wiki.debian.org/Firmware for 
information about missing firmware
[   19.214077] platform regulatory.0: firmware: failed to load regulatory.db 
(-2)
[   26.888669] 8<--- cut here ---
[   26.891778] Unable to handle kernel paging request at virtual address 
2e15e000
[   26.899036] [2e15e000] *pgd=49f6b003, *pmd=00000000
[   26.903976] Internal error: Oops: 206 [#1] SMP ARM
[   26.908811] Modules linked in: binfmt_misc ecb des_generic 8021q garp evdev 
mrp aes_arm_bs stp crypto_simd llc cryptd sun4i_codec lima snd_soc_core 
governor_simpleondemand axp20x_adc sunxi_cedrus(C) sun4i_backend gpu_sched 
axp20x_pek snd_pcm_dmaengine v4l2_mem2mem snd_pcm drm_shmem_helper snd_timer 
nvmem_sunxi_sid videobuf2_dma_contig snd sun4i_ts videobuf2_memops soundcore 
videobuf2_v4l2 sunxi_cir sun4i_drm_hdmi sun4i_ss videobuf2_common cec rc_core 
sunxi_wdt libdes videodev cfg80211 mc leds_gpio rfkill display_connector 
cpufreq_dt loop fuse dm_mod configfs ip_tables x_tables autofs4 ext4 crc16 
mbcache jbd2 crc32c_generic axp20x_usb_power axp20x_regulator realtek 
pinctrl_axp209 industrialio ahci_sunxi libahci_platform dwmac_sunxi libahci 
stmmac_platform stmmac pcs_xpcs phylink of_mdio sunxi phy_generic fixed_phy 
libata fwnode_mdio libphy musb_hdrc i2c_mv64xxx sun4i_drm udc_core scsi_mod 
ohci_platform ohci_hcd sun4i_frontend ehci_platform ehci_hcd sun4i_tcon usbcore 
scsi_common
[   26.909276]  sun8i_tcon_top drm_dma_helper sunxi_mmc spi_sun4i phy_sun4i_usb 
drm_kms_helper drm
[   27.004504] CPU: 0 PID: 237 Comm: systemd-network Tainted: G         C       
  6.1.0-56-armmp-lpae #1  Debian 6.1.192-2
[   27.015289] Hardware name: Allwinner sun7i (A20) Family
[   27.020514] PC is at dwmac_dma_interrupt+0xd0/0x214 [stmmac]
[   27.026316] LR is at 0x670405
[   27.029291] pc : [<bf27aef8>]    lr : [<00670405>]    psr: 00000193
[   27.035558] sp : f0801ee8  ip : 00000000  fp : f0979b78
[   27.040783] r10: 00000001  r9 : f0801f44  r8 : 00000000
[   27.046006] r7 : f0991014  r6 : 00010405  r5 : 00000000  r4 : 2e15e000
[   27.052533] r3 : 00000000  r2 : c3212c40  r1 : f0990000  r0 : 2e15e000
[   27.059059] Flags: nzcv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment 
user
[   27.066283] Control: 30c5387d  Table: 49f6e300  DAC: fffffffd
[   27.072025] Register r0 information: non-paged memory
[   27.077088] Register r1 information: 0-page vmalloc region starting at 
0xf0990000 allocated at __devm_ioremap_resource+0x184/0x1f8
[   27.088850] Register r2 information: non-slab/vmalloc memory
[   27.094517] Register r3 information: NULL pointer
[   27.099225] Register r4 information: non-paged memory
[   27.104279] Register r5 information: NULL pointer
[   27.108988] Register r6 information: non-paged memory
[   27.114042] Register r7 information: 0-page vmalloc region starting at 
0xf0990000 allocated at __devm_ioremap_resource+0x184/0x1f8
[   27.125790] Register r8 information: NULL pointer
[   27.130498] Register r9 information: 2-page vmalloc region starting at 
0xf0800000 allocated at start_kernel+0x568/0x744
[   27.141289] Register r10 information: non-paged memory
[   27.146431] Register r11 information: 2-page vmalloc region starting at 
0xf0978000 allocated at kernel_clone+0xac/0x3a8
[   27.157225] Register r12 information: NULL pointer
[   27.162020] Process systemd-network (pid: 237, stack limit = 0x0bc5a2d1)
[   27.168726] Stack: (0xf0801ee8 to 0xf0802000)
[   27.173093] 1ee0:                   c3210640 00000000 bf27ae28 c3210640 
00000001 f0801f44
[   27.181273] 1f00: 00000001 bf2693f8 00000003 00000000 ef69acc0 0113ba6e 
00000000 00000001
[   27.189451] 1f20: c3210000 f0801f40 c3210640 00000001 f0801f44 00000001 
f0979b78 bf26e330
[   27.197629] 1f40: 00000000 00000000 00000000 00000000 00000000 00000000 
00000000 00000000
[   27.205808] 1f60: 00000000 0113ba6e c41b2100 c107f9c8 00000000 00000074 
c160aeac c9daac00
[   27.213987] 1f80: c25ac100 c04c6bac ef695c00 c211da00 c25ac100 c107f9c8 
c25ac16c f080a00c
[   27.222166] 1fa0: f0801fd8 c9daac00 c3210000 c04c6d84 c25ac100 c107f9c8 
c15378a4 c04cbb88
[   27.230345] 1fc0: c160ca80 f080a000 c15378a4 c04c644c c160ca80 c04015bc 
c1538ecc f0979b80
[   27.238524] 1fe0: 00000000 f0979bb4 c9f470c0 c0e5d850 c0e674f4 60000013 
ffffffff c0e22b28
[   27.246721]  dwmac_dma_interrupt [stmmac] from stmmac_napi_check+0x48/0x1d0 
[stmmac]
[   27.254628]  stmmac_napi_check [stmmac] from stmmac_interrupt+0xc8/0x170 
[stmmac]
[   27.262252]  stmmac_interrupt [stmmac] from 
__handle_irq_event_percpu+0x5c/0x1a0
[   27.269731]  __handle_irq_event_percpu from handle_irq_event+0x4c/0x94
[   27.276271]  handle_irq_event from handle_fasteoi_irq+0xa0/0x194
[   27.282294]  handle_fasteoi_irq from handle_irq_desc+0x74/0x84
[   27.288140]  handle_irq_desc from gic_handle_irq+0x70/0x9c
[   27.293642]  gic_handle_irq from generic_handle_arch_irq+0x34/0x44
[   27.299839]  generic_handle_arch_irq from call_with_stack+0x18/0x20
[   27.306120]  call_with_stack from __irq_svc+0x84/0x94
[   27.311182] Exception stack(0xf0979b80 to 0xf0979bc8)
[   27.316241] 9b80: ef68eb40 20000013 00000000 00003d63 00000000 00000000 
bf27ce60 c3210000
[   27.324421] 9ba0: c9f470c0 00000000 c3210000 c3213000 00002e96 f0979bd0 
bf273a28 c0e674f4
[   27.332594] 9bc0: 60000013 ffffffff
[   27.336085]  __irq_svc from _raw_spin_unlock_irqrestore+0x24/0x28
[   27.342199]  _raw_spin_unlock_irqrestore from stmmac_xmit+0x7ec/0xd5c 
[stmmac]
[   27.349512]  stmmac_xmit [stmmac] from dev_hard_start_xmit+0xb8/0x18c
[   27.356040]  dev_hard_start_xmit from sch_direct_xmit+0xb0/0x234
[   27.362074]  sch_direct_xmit from __dev_queue_xmit+0xba8/0xe78
[   27.367930]  __dev_queue_xmit from vlan_dev_hard_start_xmit+0xc8/0x2c0 
[8021q]
[   27.375227]  vlan_dev_hard_start_xmit [8021q] from 
dev_hard_start_xmit+0xb8/0x18c
[   27.382740]  dev_hard_start_xmit from __dev_queue_xmit+0x800/0xe78
[   27.388939]  __dev_queue_xmit from packet_sendmsg+0x97c/0x12d8
[   27.394798]  packet_sendmsg from __sock_sendmsg+0x3c/0x4c
[   27.400226]  __sock_sendmsg from __sys_sendto+0x114/0x158
[   27.405651]  __sys_sendto from __sys_trace_return+0x0/0x10
[   27.411156] Exception stack(0xf0979fa8 to 0xf0979ff0)
[   27.416214] 9fa0:                   02263684 00000014 00000015 02269b98 
00000138 00000000
[   27.424393] 9fc0: 02263684 00000014 00000001 00000122 00000150 00000000 
00000000 bede4ac0
[   27.432569] 9fe0: 00000122 bede4908 b6d22fd1 b6c8b656
[   27.437628] Code: e2811001 e78c1004 e31e0001 0a00000f (e79c1004)
[   27.443727] ---[ end trace 0000000000000000 ]---
[   27.448346] Kernel panic - not syncing: Fatal exception in interrupt
[   27.454703] CPU1: stopping
[   27.454727] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G      D  C         
6.1.0-56-armmp-lpae #1  Debian 6.1.192-2
[   27.454744] Hardware name: Allwinner sun7i (A20) Family
[   27.454758]  unwind_backtrace from show_stack+0x18/0x1c
[   27.454792]  show_stack from dump_stack_lvl+0x40/0x4c
[   27.454825]  dump_stack_lvl from do_handle_IPI+0x2d8/0x310
[   27.454860]  do_handle_IPI from ipi_handler+0x20/0x28
[   27.454889]  ipi_handler from handle_percpu_devid_irq+0x84/0x1c0
[   27.454919]  handle_percpu_devid_irq from handle_irq_desc+0x74/0x84
[   27.454942]  handle_irq_desc from gic_handle_irq+0x70/0x9c
[   27.454961]  gic_handle_irq from generic_handle_arch_irq+0x34/0x44
[   27.454981]  generic_handle_arch_irq from call_with_stack+0x18/0x20
[   27.455001]  call_with_stack from __irq_svc+0x84/0x94
[   27.455019] Exception stack(0xf085df68 to 0xf085dfb0)
[   27.455034] df60:                   00000005 00000000 0013fa19 c041fde0 
c21a4200 c160aeac
[   27.455048] df80: c21a4200 c160af0c 00000001 410fc074 00000000 00000000 
2e171000 f085dfb8
[   27.455059] dfa0: c04098c8 c04098cc 600c0013 ffffffff
[   27.455066]  __irq_svc from arch_cpu_idle+0x40/0x44
[   27.455086]  arch_cpu_idle from default_idle_call+0x30/0xac
[   27.455109]  default_idle_call from do_idle+0xd0/0x148
[   27.455139]  do_idle from cpu_startup_entry+0x30/0x34
[   27.455164]  cpu_startup_entry from secondary_start_kernel+0x12c/0x150
[   27.455194]  secondary_start_kernel from 0x40401914
[   27.587572] ---[ end Kernel panic - not syncing: Fatal exception in 
interrupt ]---

Reply via email to