Re: [U-Boot] [PATCH v2 08/22] x86: video: Add debug option to time the BIOS copy

2015-01-05 Thread Simon Glass
On 1 January 2015 at 16:18, Simon Glass s...@chromium.org wrote:
 This can be very slow - typically 80ms even on a fast machine since it uses
 the SPI flash to read the data. Add an option to display the time taken.

 Signed-off-by: Simon Glass s...@chromium.org
 Reviewed-by: Bin Meng bmeng...@gmail.com
 ---

 Changes in v2: None

  drivers/pci/pci_rom.c | 3 +++
  1 file changed, 3 insertions(+)

Applied to u-boot-x86/next.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v2 08/22] x86: video: Add debug option to time the BIOS copy

2015-01-01 Thread Simon Glass
This can be very slow - typically 80ms even on a fast machine since it uses
the SPI flash to read the data. Add an option to display the time taken.

Signed-off-by: Simon Glass s...@chromium.org
Reviewed-by: Bin Meng bmeng...@gmail.com
---

Changes in v2: None

 drivers/pci/pci_rom.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/pci/pci_rom.c b/drivers/pci/pci_rom.c
index 9808bb3..5ba315b 100644
--- a/drivers/pci/pci_rom.c
+++ b/drivers/pci/pci_rom.c
@@ -156,6 +156,8 @@ int pci_rom_load(uint16_t class, struct pci_rom_header 
*rom_header,
 
target = (void *)PCI_VGA_RAM_IMAGE_START;
if (target != rom_header) {
+   ulong start = get_timer(0);
+
debug(Copying VGA ROM Image from %p to %p, 0x%x bytes\n,
  rom_header, target, rom_size);
memcpy(target, rom_header, rom_size);
@@ -163,6 +165,7 @@ int pci_rom_load(uint16_t class, struct pci_rom_header 
*rom_header,
printf(VGA ROM copy failed\n);
return -EFAULT;
}
+   debug(Copy took %lums\n, get_timer(start));
}
*ram_headerp = target;
 
-- 
2.2.0.rc0.207.ga3a616c

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot