Paul Menzel (paulepanter(a)users.sourceforge.net) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/18503
-gerrit
commit 660f4aca97fa3151acb943e912a70e9aacb7d67f
Author: Paul Menzel <paulepanter(a)users.sourceforge.net>
Date: Sun Feb 26 19:58:24 2017 +0100
drivers/spi: Measure execution time of `spi_flash_probe()`
Measure the time of the execution of the method `spi_flash_probe()`.
It’s useful to analyze the boot process, and to compare different flash
ROM chips.
TEST=Build and boot on ASRock E350M1, and observe the new messages.
```
Manufacturer: ef
SF: Detected W25Q32 with sector size 0x1000, total 0x400000
spi_flash_probe: Probing the flash chip took 24 usecs
SF: Successfully erased 4096 bytes @ 0xffff1000
Manufacturer: ef
SF: Detected W25Q32 with sector size 0x1000, total 0x400000
spi_flash_probe: Probing the flash chip took 21 usecs
SF: Successfully erased 4096 bytes @ 0xffff0000
```
Change-Id: I448e12508b09a8796c5351b17495113afe9a50ef
Signed-off-by: Paul Menzel <paulepanter(a)users.sourceforge.net>
---
src/drivers/spi/spi_flash.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/drivers/spi/spi_flash.c b/src/drivers/spi/spi_flash.c
index 95362f2..b2e928b 100644
--- a/src/drivers/spi/spi_flash.c
+++ b/src/drivers/spi/spi_flash.c
@@ -331,6 +331,9 @@ struct spi_flash *spi_flash_probe(unsigned int bus, unsigned int cs)
{
struct spi_slave spi;
struct spi_flash *flash;
+ struct stopwatch sw;
+
+ stopwatch_init(&sw);
if (spi_setup_slave(bus, cs, &spi)) {
printk(BIOS_WARNING, "SF: Failed to set up slave\n");
@@ -365,6 +368,9 @@ struct spi_flash *spi_flash_probe(unsigned int bus, unsigned int cs)
CONFIG_BOOT_DEVICE_SPI_FLASH_BUS == bus && !spi_flash_dev)
spi_flash_dev = flash;
+ printk(BIOS_DEBUG, "%s: Probing the flash chip took %ld usecs\n",
+ __func__, stopwatch_duration_usecs(&sw));
+
return flash;
}
Zheng Bao (fishbaozi(a)gmail.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/18524
-gerrit
commit 8968751094ee61cbea707f0338f464e92d259cb4
Author: Zheng Bao <fishbaozi(a)gmail.com>
Date: Wed Mar 1 13:56:25 2017 +0800
lint: Remove signed-off-by check
The command "git log -n 1" only gets the last commit message,
instead of this time.
Pre-commit in git,
"It takes no parameters, and is invoked before obtaining the
proposed commit log message and making a commit."
Only commit-msg can handle the message.
Change-Id: I01208ae984915142521da541b81eecd288be7e19
Signed-off-by: Zheng Bao <fishbaozi(a)gmail.com>
---
util/lint/lint-stable-020-signed-off-by | 23 -----------------------
1 file changed, 23 deletions(-)
diff --git a/util/lint/lint-stable-020-signed-off-by b/util/lint/lint-stable-020-signed-off-by
deleted file mode 100755
index 40b6e9e..0000000
--- a/util/lint/lint-stable-020-signed-off-by
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/sh
-# This file is part of the coreboot project.
-#
-# Copyright 2016 Google Inc.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License, or (at your option)
-# any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# DESCR: Check for a signed-off-by line on the latest git commit
-
-# This test is mainly for the jenkins server
-if [ -n "$(command -v git)" ] && [ -d .git ]; then
- if [ -z "$(git log -n 1 | grep '[[:space:]]\+Signed-off-by: ')" ]; then
- echo "No Signed-off-by line in commit message"
- fi
-fi