utility/dev_debug_vboot: Save 3-6 s of CPU after every boot

update_engine runs dev_debug_vboot about a minute after every boot. It
reads the whole firmware flash, keeping a CPU core busy, but only checks
the keys, the firmware slots and the bootblock. Read just those; if that
fails, read the whole flash as before. Idle, user+sys, median of 5:
nissa 14.1 -> 7.9 s, octopus 12.5 -> 9.5 s.

BUG=None
BRANCH=none
TEST=nissa, octopus: same log as before, also with a failing read.
TEST=futility read --emulate, brox/geralt (CBFS integration): same log.

Change-Id: Ie732aa693d889267c9bb648053d8dcd80ea2a8ae
Signed-off-by: Di Wu <diwux@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/8651198
Reviewed-by: Yu-Ping Wu <yupingso@chromium.org>
1 file changed