Looking at bootchart graphs, I notice flashrom is slow on Reef/Cave when called by vpd. Both are DVT units, vpd prints the warning message:
"""[WARN] VPD partition not formatted. It's fine."""
vpd is called at 2 places:
1 - in cryptohomed.conf, before starting cryptohome:
vpd -g stable_device_secret_DO_NOT_SHARE
2 - in check_rw_vpd (called check-rw-vpd.conf)
vpd_rw_output="$(vpd -i RW_VPD -l)"
See the boot graphs:
reef: boot-20170301-113827.svg
cave: boot-20170228-154832.svg
note that on veyron, vpd is fast, flashrom does even appears. (boot-20170301-104145.svg)
For 1, the flashrom command sent is:
"flashrom -p host -i FMAP -i 'RO_VPD':'/tmp/vpd.flashrom.SnCoH3' -r '/tmp/vpd.flashrom.dV2jl4' >/dev/null 2>&1", it lasts ~1s.
(Using strace -o process_dump -ff -e abbrev=none -s 128 vpd -g stable_device_secret_DO_NOT_SHARE)
|
Deleted:
boot-20170301-113827.svg
712 KB
|
|
boot-20170301-113827.svg
712 KB
Download
|
|
Deleted:
boot-20170228-154832.svg
549 KB
|
|
boot-20170228-154832.svg
549 KB
Download
|
|
Deleted:
boot-20170301-104145.svg
642 KB
|
|
boot-20170301-104145.svg
642 KB
Download
|
Comment 1 by adurbin@chromium.org
, Mar 1 2017