qcom: Reduce boot time by avoiding unnecessary initialization and probes - #128
Open
aswinm94 wants to merge 4 commits into
Open
qcom: Reduce boot time by avoiding unnecessary initialization and probes#128aswinm94 wants to merge 4 commits into
aswinm94 wants to merge 4 commits into
Conversation
qcom_configure_capsule_updates() unconditionally calls scsi_scan(), re-scanning all SCSI children even when an earlier boot stage has already bound them. Skip the rescan when UCLASS_SCSI already has devices, keeping it as a fallback if none are bound yet. ~34ms saved on Qcom SoC bootup time. Signed-off-by: Aswin Murugan <aswin.murugan@oss.qualcomm.com>
efi_disk_add_dev() runs efi_fs_exists() on every GPT partition as soon as its block device probes, even for raw partitions that are never opened as a filesystem before boot. Only the ESP needs this probe, so skip it for other GPT partitions. ~170ms saved on Qcom SoC bootup time. Signed-off-by: Aswin Murugan <aswin.murugan@oss.qualcomm.com>
CONFIG_SYS_MALLOC_CLEAR_ON_INIT zeroes the entire malloc pool at init, costing measurable boot time on the 256MB pool used by Qcom boards. Disabling it saves ~74ms on Qcom SoC bootup time. Signed-off-by: Aswin Murugan <aswin.murugan@oss.qualcomm.com>
qcom_load_fit_image() allocates the FAT-read buffer with malloc(), which is not guaranteed to be cache-line aligned and is unsafe to use with cache-line DMA. Use malloc_cache_aligned() instead. Signed-off-by: Aswin Murugan <aswin.murugan@oss.qualcomm.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains a set of boot time optimizations for Qualcomm SoCs,
targeting unnecessary initialization and device probing paths observed
during boot.
The changes reduce time spent in memory initialization, filesystem
probing, and redundant SCSI rescans, resulting in measurable boot KPI
improvements across Qualcomm platforms
upstream-link: https://marc.info/?l=u-boot&m=178781570076393&w=2