User avatar
HawaiianPi
Posts: 6217
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

5.4 kernel: tvservice --modes=DMT command causes hard crash

Sat Jun 06, 2020 8:10 am

It seems the new kernel or something else installed by rpi-update crashes the system hard when you run tvservice --modes=DMT (or CEA). Some tvservice commands work as expected (like --status and --list) but trying to find the modes brings the system down hard.

I've confirmed this doesn't happen with the stock OS, even on this Pi4B system with the beta boot-loader and VL805 firmware, but it also doesn't happen on a Pi3B+ even after sudo rpi-update (5.4.44 kernel), so... ¯\_(ツ)_/¯

Code: Select all

$ tvservice --modes=DMT

[  227.733504] Unable to handle kernel paging request at virtual address ffffff7fabf0c340
[  227.741475] Mem abort info:
[  227.744305]   ESR = 0x96000144
[  227.747392]   EC = 0x25: DABT (current EL), IL = 32 bits
[  227.752742]   SET = 0, FnV = 0
[  227.755823]   EA = 0, S1PTW = 0
[  227.758990] Data abort info:
[  227.761874]   ISV = 0, ISS = 0x00000144
[  227.765743]   CM = 1, WnR = 1
[  227.768737] [ffffff7fabf0c340] address between user and kernel address ranges
[  227.775906] Internal error: Oops: 96000144 [#1] PREEMPT SMP

Message from syslogd@Raspberr[  227.781479] Modules linked in: fuse 8021q garp stp llc hid_logitech_hidpp joydev evdev brcmfmac brcmutil vc4 sha256_generic libsha256 sg cec drm_kms_helper hid_logitech_dj v3d cfg80211 gpu_sched drm bcm2835_v4l2(C) bcm2835_isp(C) bcm2835_codec(C) videobuf2_vmalloc videobuf2_dma_contig v4l2_mem2mem bcm2835_mmal_vchiq(C) videobuf2_memops drm_panel_orientation_quirks videobuf2_v4l2 videobuf2_common rfkill snd_soc_core videodev snd_bcm2835(C) snd_compress raspberrypi_hwmon snd_pcm_dmaengine snd_pcm mc vc_sm_cma(C) snd_timer snd syscopyarea sysfillrect sysimgblt fb_sys_fops rpivid_mem uio_pdrv_genirq uio i2c_dev ip_tables x_tables ipv6 nf_defrag_ipv6
[  227.841553] CPU: 0 PID: 85 Comm: vchiq-slot/0 Tainted: G         C        5.4.44-v8+ #1320
[  227.841555] Hardware name: Raspberry Pi 4 Model B Rev 1.1 (DT)
[  227.841558] pstate: 00000005 (nzcv daif -PAN -UAO)
[  227.841571] pc : __dma_inv_area+0x28/0x58
[  227.841575] lr : arch_sync_dma_for_cpu+0x3c/0x50
[  227.841576] sp : ffffffc011463bd0
[  227.841578] x29: ffffffc011463bd0 x28: ffffffc010eff130
[  227.841582] x27: ffffff807a2d2c00 x26: ffffffc01126b000
[  227.882938] x25: ffffffc01126b00c x24: 0000000000000002
[  227.882941] x23: 0000000000000002 x22: 00000000000000c8
[  227.882945] x21: 0000000000000002 x20: 00000000000000c8
[  227.898844] x19: ffffffffabf0c280 x18: ffffff8066aee008
[  227.904146] x17: 0400000000000001 x16: ffffffc010c6d000
[  227.909447] x15: 00000000001a8fff x14: 0000000000000002
[  227.914749] x13: ffffff8064a2a008 x12: 00000000001a9000
[  227.920051] x11: 0000000000000000 x10: 0000000000001980
[  227.925353] x9 : ffffff807a2d2c68 x8 : ffffff807c9119e0
[  227.930655] x7 : 0000000000000001 x6 : 00000000000000c8
[  227.935956] x5 : 0000000000000001 x4 : 0000000000000000
[  227.941258] x3 : 000000000000003f x2 : 0000000000000040
[  227.946560] x1 : ffffff7fabf0c340 x0 : ffffff7fabf0c280
[  227.951862] Call trace:
[  227.954300]  __dma_inv_area+0x28/0x58
[  227.957954]  dma_direct_sync_single_for_cpu+0x9c/0xa0
[  227.962996]  dma_direct_unmap_page+0xa4/0xa8
[  227.967256]  dma_direct_unmap_sg+0x58/0x80
[  227.971345]  vchiq_complete_bulk+0xb0/0x278
[  227.975517]  slot_handler_func+0xf6c/0x1580
[  227.979692]  kthread+0xfc/0x128
[  227.982824]  ret_from_fork+0x10/0x1c
[  227.986394] Code: d1000443 ea03003f 8a230021 54000040 (d50b7e21)
[  227.992480] ---[ end trace c45b8a015da3ee73 ]---
yPi4B2 at Jun  6 00:08:37 ...
 kernel:[  227.775906] Internal error: Oops: 96000144 [#1] PREEMPT SMP

Message from syslogd@RaspberryPi4B2 at Jun  6 00:08:37 ...
 kernel:[  227.986394] Code: d1000443 ea03003f 8a230021 54000040 (d50b7e21)
Crash happens on Pi4B with either the 32-bit or 64-bit kernel.

Mouse and keyboard seem to be working but the taskbar is unresponsive (menu won't open and application launcher doesn't work).

I can double-click on a text file I have on the desktop and open it, and I can open the Trashcan, but not much else. Serial terminal reports the errors and crash above, but will no longer accept commands (entering sudo reboot in the terminal does nothing, but the text is visible).

I can reboot with the "Magic sysreq keys" and the system reboots normally.

I restored from a pre-beta backup and did a normal sudo apt update && sudo apt full-upgrade -y and the crash does not happen without rpi-update (although USB boot still works great). Cloned my SSD to a flash drive and tried rpi-update again, and encountered the crash again.

Haven't tried a new card with PiOS yet, but it's late and I need to get up early tomorrow.

My System
  • Raspberry Pi 4B v1.1 (2GB) powered by the official RPF USB-C PSU.
  • SATA-III SSD with USB 3.0 to SATA-III adapter cable (ASMedia 174c:55aa).
  • Raspbian Buster with desktop (sudo apt update && sudo apt full-upgrade -y && sudo rpi-update)
  • USB-MSD beta boot-loader: Wed 03 Jun 2020 12:53:47 PM UTC (1591188827).
  • VL805 beta firmware (000138a1).
  • Connected to an HP Pavilion 27xw HDMI monitor (1080p).
More detailed configuration info below.

Code: Select all

$ uname -a && sudo rpi-eeprom-update && vcgencmd bootloader_version && vcgencmd bootloader_config
Linux RaspberryPi4B2 5.4.44-v8+ #1320 SMP PREEMPT Wed Jun 3 16:20:05 BST 2020 aarch64 GNU/Linux
BCM2711 detected
Dedicated VL805 EEPROM detected
BOOTLOADER: up-to-date
CURRENT: Wed 03 Jun 2020 12:53:47 PM UTC (1591188827)
 LATEST: Thu 16 Apr 2020 05:11:26 PM UTC (1587057086)
 FW DIR: /lib/firmware/raspberrypi/bootloader/stable
VL805: up-to-date
CURRENT: 000138a1
 LATEST: 000137ad
Jun  3 2020 13:53:47
version b5de8c32f4f45a12a1fdfe107254df82965f9d56 (release)
timestamp 1591188827
[all]
BOOT_UART=1
WAKE_ON_GPIO=0
POWER_OFF_ON_HALT=1
DHCP_TIMEOUT=45000
DHCP_REQ_TIMEOUT=4000
TFTP_FILE_TIMEOUT=30000
ENABLE_SELF_UPDATE=1
DISABLE_HDMI=0
SD_BOOT_MAX_RETRIES=0
USB_MSD_BOOT_MAX_RETRIES=2
BOOT_ORDER=0xf41
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

Return to “Troubleshooting”