panic: deadlres_td_sleep_q: possible deadlock detected on RPI3

Ralf Wenk iz-rpi03 at hs-karlsruhe.de
Fri Jan 31 22:05:30 UTC 2020


On 2020-01-31 at 7:48 -0600 Kyle Evans wrote:
> [...]
> These results should no longer be reproducible in recent loaders --
> the effect you're seeing is an extraordinarily long redraw times as
> that's roughly in the range where serial console in loader was
> effectively borked. Things were later hashed out such that we use the
> old console driver for serial in many (most? all?) situations.

Now having upgraded the contents of /boot/msdos aka "the boot partition"
to those of the
FreeBSD-13.0-CURRENT-arm64-aarch64-RPI3-20200130-r357276.img
and the result stays as described:

  Autoboot in 10 seconds, hit [Enter] to boot or any other key to stop     
  Autoboot in -6 seconds, hit [Enter] to boot or any other key to stop     
  Loading kernel...

The /boot/loader*efi files are from 25 of January. r357112 I think.

On this machine I am using EFI/HDMI and serial console parallel
boot_mulicons=YES", boot_serial="YES", console="comconsole,efi".

In the attached file you will find a part of the serial console output
during boot where you can see the loader version used and the jump from
10 to -6 seconds with immediate boot.

As you also can see the cursor control sequences of the beastie are
printed and not executed any more. With the exception of the ^H (which
I removed) during the spinning wheels. This happened at some time in
the past when I did not kept sufficient backups. So I can not help to
point at a range of releases.

While writing this, I remembered that Bob Prohaskas 'five seconds per
"click"' did only happened on my RPi3 systems when some USB keyboards
are plugged in during boot. Never without a USB keyboard. It seems to
depend on the manufacturer and/or chip. Didn't had/have the spare time
to figure it out, but this may be a hint.

The system with the negative time jump in loader is equipped with a
USB keyboard parallel to the serial console.


Ralf
-------------- next part --------------
EFI boot manager: Cannot load any image
679320 bytes read in 70 ms (9.3 MiB/s)
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
Consoles: EFI console  
|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\    Reading loader env vars from /efi/freebsd/loader.env
Setting currdev to disk0p1:
|/-\|/FreeBSD/arm64 EFI loader, Revision 1.1
(Thu Nov 14 08:36:43 UTC 2019 root at releng1.nyi.freebsd.org)

   Command line arguments: loader.efi
   EFI version: 2.80
   EFI Firmware: Das U-Boot (rev 8217.4096)
   Console: efi (0x1000)
   Load Path: /efi\boot\bootaa64.efi
   Load Device: /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/SD(1)/SD(0)/HD(1,MBR,0x11f39717,0x800,0x19000)
Trying ESP: /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/SD(1)/SD(0)/HD(1,MBR,0x11f39717,0x800,0x19000)
Setting currdev to disk0p1:
-\|/-\|/-\|/Trying: /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/SD(1)/SD(0)/HD(2,MBR,0x11f39717,0x19800,0x3a00000)
-\|/Setting currdev to zfs:rootpool/ROOT/default.defect:
-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-Loading /boot/defaults/loader.conf
Loading /boot/device.hints
\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\Loading /boot/loader.conf
|/-\|/-\|/-console comconsole is invalid!
Available consoles:
    efi
Loading /boot/loader.conf.local
\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-[H[J\|/-\|/-\|/-\|/-\|/-\|/-[8;48H  ```                        `[9;48H s` `.....---.......--.```   -/[10;48H +o   .--`         /y:`      +.[11;48H  yo`:.            :o      `+-[12;48H   y/               -/`   -o/[13;48H  .-                  ::/sy+:.[14;48H  /                     `--  /[15;48H `:                          :`[16;48H `:                          :`[17;48H  /                          /[18;48H  .-                        -.[19;48H   --                      -.[20;48H    `:`                  `:`[21;48H      .--             `--.[22;48H         .---.....----.[1;2H  ______               ____   _____ _____  [2;2H |  ____|             |  _ \ / ____|  __ \ [3;2H | |___ _ __ ___  ___ | |_) | (___ | |  | |[4;2H |  ___| '__/ _ \/ _ \|  _ < \___ \| |  | |[5;2H | |   | | |  __/  __/| |_) |____) | |__| |[6;2H | |   | | |    |    ||     |      |      |[7;2H |_|   |_|  \___|\___||____/|_____/|_____/ [9;2H+[22;2H+[9;44H+[22;44H+[9;3H-----------------------------------------[22;3H-----------------------------------------[10;2H|[10;44H|[11;2H|[11;44H|[12;2H|[12;44H|[13;2H|[13;44H|[14;2H|[14;44H|[15;2H|[15;44H|[16;2H|[16;44H|[17;2H|[17;44H|[18;2H|[18;44H|[19;2H|[19;44H|[20;2H|[20;44H|[21;2H|[21;44H|[9;14HWelcome to FreeBSD[11;5H1. Boot Multi user [Enter][12;5H2. Boot Single user[13;5H3. Escape to loader prompt[14;5H4. Reboot[15;5H[16;5HOptions:[17;5H\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|5. Kernel: default/kernel (1 of 7)[18;5H6. Boot Options[19;5H7. Boot Environments[25;0H[23;4HAutoboot in 10 seconds, hit [Enter] to boot or any other key to stop     
[25;0H[23;4HAutoboot in -6 seconds, hit [Enter] to boot or any other key to stop     
[25;0HLoading kernel...
/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|//boot/kernel/kernel text=0x987f7c -\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\data=0x1905a8 |/-\|data=0x0+0x79d260 /syms=[0x8+0x10bd38-\|/+0x8+0x130464-\|/-]
Loading configured modules...
\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\/boot/kernel/zfs.ko text=0xa3e40 |/text=0x14cb60 -\|/-data=0x17f10+0x91170 \|syms=[0x8+0x26040/+0x8+0x1fc2a]
-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-/boot/kernel/mac_ntpd.ko text=0x8f7 text=0x48 data=0xad8 \syms=[0x8+0x588+0x8+0x433]
|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\/boot/kernel/opensolaris.ko text=0x12ed text=0xc40 data=0x440+0x6830 |syms=[0x8+0xfc0+0x8+0x894]
/-\|/-\|/-\|/-\|/-\|/-\/boot/entropy size=0x1000
Using DTB provided by EFI at 0x7ef6000.
|/-\|/-\|/-\|/-EFI framebuffer information:
addr, size     0x3e330000, 0x8ca000
dimensions     1920 x 1200
stride         1920
masks          0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000



More information about the freebsd-arm mailing list