mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
scsi: bootstage: Measure time taken to scan the bus
On some hardware this time can be significant. Add bootstage support for measuring this. The result can be obtained using 'bootstage report' or passed on to the Linux via the device tree. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
5093badbb5
commit
abbdb26257
2 changed files with 3 additions and 0 deletions
|
@ -217,8 +217,10 @@ void scsi_init(void)
|
||||||
(busdevfunc >> 8) & 0x7);
|
(busdevfunc >> 8) & 0x7);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
bootstage_start(BOOTSTAGE_ID_ACCUM_SCSI, "ahci");
|
||||||
scsi_low_level_init(busdevfunc);
|
scsi_low_level_init(busdevfunc);
|
||||||
scsi_scan(1);
|
scsi_scan(1);
|
||||||
|
bootstage_accum(BOOTSTAGE_ID_ACCUM_SCSI);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -194,6 +194,7 @@ enum bootstage_id {
|
||||||
BOOTSTAGE_ID_MAIN_CPU_READY,
|
BOOTSTAGE_ID_MAIN_CPU_READY,
|
||||||
|
|
||||||
BOOTSTAGE_ID_ACCUM_LCD,
|
BOOTSTAGE_ID_ACCUM_LCD,
|
||||||
|
BOOTSTAGE_ID_ACCUM_SCSI,
|
||||||
|
|
||||||
/* a few spare for the user, from here */
|
/* a few spare for the user, from here */
|
||||||
BOOTSTAGE_ID_USER,
|
BOOTSTAGE_ID_USER,
|
||||||
|
|
Loading…
Reference in a new issue