Skip to content
Snippets Groups Projects
  1. Oct 22, 2018
    • Bin Meng's avatar
      x86: tsc: Introduce config option for early timer frequency · 6ce38364
      Bin Meng authored
      
      So far the TSC timer driver supports trying hardware calibration first
      and using device tree as last resort for its running frequency as the
      normal timer.
      
      However when it is used as the early timer, it only supports hardware
      calibration and if it fails, the driver just panics. This introduces
      a new config option to specify the early timer frequency in MHz and
      it should be equal to the value described in the device tree.
      
      Without this patch, the travis-ci testing on QEMU x86_64 target fails
      each time after it finishes the 'bootefi selftest' as the test.py see
      an error was emitted on the console like this:
      
        TSC frequency is ZERO
        resetting ...
        ### ERROR ### Please RESET the board ###
      
      It's strange that this error is consistently seen on the travis-ci
      machine, but only occasionally seen on my local machine (maybe 1 out
      of 10). Since QEMU x86_64 target enables BOOTSTAGE support which uses
      early timer, with this fix it should work without any failure.
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      6ce38364
  2. Aug 20, 2018
    • Bin Meng's avatar
      x86: tsc: Try hardware calibration first · 165db7c4
      Bin Meng authored
      
      At present if TSC frequency is provided in the device tree, it takes
      precedence over hardware calibration result. This swaps the order to
      try hardware calibration first and uses device tree as last resort.
      
      This can be helpful when a generic dts (eg: coreboot/efi payload) is
      supposed to work on as many hardware as possible, including emulators
      like QEMU where TSC hardware calibration sometimes fails.
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: default avatarChristian Gmeiner <christian.gmeiner@gmail.com>
      165db7c4
  3. Jul 02, 2018
  4. Jun 13, 2018
  5. May 07, 2018
    • Tom Rini's avatar
      SPDX: Convert all of our single license tags to Linux Kernel style · 83d290c5
      Tom Rini authored
      
      When U-Boot started using SPDX tags we were among the early adopters and
      there weren't a lot of other examples to borrow from.  So we picked the
      area of the file that usually had a full license text and replaced it
      with an appropriate SPDX-License-Identifier: entry.  Since then, the
      Linux Kernel has adopted SPDX tags and they place it as the very first
      line in a file (except where shebangs are used, then it's second line)
      and with slightly different comment styles than us.
      
      In part due to community overlap, in part due to better tag visibility
      and in part for other minor reasons, switch over to that style.
      
      This commit changes all instances where we have a single declared
      license in the tag as both the before and after are identical in tag
      contents.  There's also a few places where I found we did not have a tag
      and have introduced one.
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      83d290c5
  6. Sep 16, 2017
  7. Aug 01, 2017
  8. Dec 09, 2015
  9. Dec 01, 2015
  10. Nov 13, 2015
  11. Aug 05, 2015
  12. Jan 13, 2015
  13. Nov 21, 2014
  14. Jul 24, 2013
  15. Jun 26, 2013
  16. May 13, 2013
Loading