Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 05 Jan 2020 18:21:15 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 243118] sysutils/rpi-firmware: rpi4 updates for rpi3-psci-monitor severely slows down booting on 3B+
Message-ID:  <bug-243118-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D243118

            Bug ID: 243118
           Summary: sysutils/rpi-firmware: rpi4 updates for
                    rpi3-psci-monitor severely slows down booting on 3B+
           Product: Ports & Packages
           Version: Latest
          Hardware: arm64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: tom.ty89@gmail.com

Created attachment 210471
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D210471&action=
=3Dedit
test set of rpi3-psci-monitor sources and binaries

Booting on a Raspberry Pi 3B+ is extremely slow (could take 30-40 minutes)
before the kernel kicks in.

Here's the situation:
- `12.1-RELEASE` works fine
- `12.1-STABLE` / `13.0-CURRENT` snapshots (since at least / as of `2019122=
6`)
are broken

It is caused by armstub8.bin updates and I've done some dissecting. The
differences between the one in 12.1-RELEASE (2b8890a) and the one in the
snapshots (6bfbaff) are:
- new LOCAL_CONTROL and LOCAL_PRESCALER
- new OSC_FREQ
- L2 read/write cache latency setting
Either of the first two changes alone can slow down booting to different
severity at different point. Combining them would make booting intolerably
slow. The third change doesn't seem to be problematic so far.

Attached is a set of rpi3-psci-monitor sources and binaries I built with
gcc-arm-9.2-2019.12-aarch64-aarch64-none-elf from
https://developer.arm.com/tools-and-software/open-source-software/developer=
-tools/gnu-toolchain/gnu-a/downloads:
- rpi3-psci-monitor-2b8890a is equivalent to the one in 12.1-RELEASE
- rpi3-psci-monitor-6bfbaff is equivalent to the one in the snapshots
- rpi3-psci-monitor-2b8890a-{a,b} can show that either of the new values of
LOCAL_CONTROL and LOCAL_PRESCALER or OSC_FREQ could slow down booting / tim=
e to
different severity at different point
- rpi3-psci-monitor-6bfbaff-c can show that L2 read/write cache latency
setting, the only remaining difference of the armstub8.bin in 12.1-RELEASE =
and
the one in the snapshots, is not the cause of the issue; although this does=
 not
mean it will not be potentially problematic on other aspects if done
"generally".

I've already created PRs on https://github.com/gonzoua/rpi3-psci-monitor/pu=
ll/6
and https://github.com/raspberrypi/tools/pull/105.

(@kevans91, the armstub8.bin you sent me is the one in 12.1-RELEASE with the
first two changes)

--- Comment #1 from Bugzilla Automation <bugzilla@FreeBSD.org> ---
Maintainer informed via mail

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-243118-7788>