Skip to content
Snippets Groups Projects
  1. Jan 07, 2016
  2. Dec 07, 2015
  3. Nov 20, 2015
  4. Nov 18, 2015
    • Stephen Warren's avatar
      test: fat: add error-checking to non-contig test · 34a60d9b
      Stephen Warren authored and Tom Rini's avatar Tom Rini committed
      
      Check the result code of all command that are executed. Without this,
      if the fallocate invocation fails (this feature is not supported on ext3
      filesystems for example) then a zero-length output file will be created,
      and subsequent the mkfs and mount invocations will fail, which will cause
      the subsequent dd invocation to attempt to fill up the host's entire free
      disk space. That's not a nice user experience!
      
      Related, if fallocate does fail, try to create the test disk image using
      dd instead. That should work everywhere.
      
      Fixes: 4a282742 ("test: fat: add test of non-contiguous file reads")
      Signed-off-by: Stephen Warren's avatarStephen Warren <swarren@nvidia.com>
      34a60d9b
  5. Nov 02, 2015
    • Przemyslaw Marczak's avatar
      sandbox: add ADC unit tests · c48cb7eb
      Przemyslaw Marczak authored and Minkyu Kang's avatar Minkyu Kang committed
      
      This commit adds unit tests for ADC uclass's methods using sandbox ADC.
      
      Testing proper ADC binding:
      - dm_test_adc_bind()                    - device binding
      - dm_test_adc_wrong_channel_selection() - checking wrong channel selection
      
      Testing ADC supply operations:
      - dm_test_adc_supply():
        - Vdd/Vss values validating
        - Vdd regulator updated value validating
        - Vdd regulator's auto enable state validating
      
      Testing ADC operations results:
      - dm_test_adc_single_channel_conversion() - single channel start/data
      - dm_test_adc_single_channel_shot()       - single channel shot
      - dm_test_adc_multi_channel_conversion()  - multi channel start/data
      - dm_test_adc_multi_channel_shot()        - multi channel single shot
      
      Signed-off-by: default avatarPrzemyslaw Marczak <p.marczak@samsung.com>
      Cc: Simon Glass <sjg@chromium.org>
      Signed-off-by: Minkyu Kang's avatarMinkyu Kang <mk7.kang@samsung.com>
      c48cb7eb
  6. Oct 29, 2015
  7. Oct 24, 2015
    • Stephen Warren's avatar
      fs-test.sh: fix pre-requisite detection · 47b71644
      Stephen Warren authored and Tom Rini's avatar Tom Rini committed
      
      In the following snippet:
      
      if [ ! -x `which $prereq` ]; then
      
      When $prereq does not exist, `which $prereq` evaluates to the empty string,
      which results in *no* argument being passed to the -x operator, which then
      evaluates to true, which is the equivalent of the prereq having been found. In
      order for this to fail as expected, we must pass an empty argument, which then
      causes -x to fail. Do this by wrapping the `` in quotes so there's always an
      argument to -x, even if the value of the argument is zero-length.
      
      Signed-off-by: default avatarStephen Warren <swarren@wwwdotorg.org>
      Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      Tested-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      47b71644
    • Stephen Warren's avatar
      test: fat: add test of non-contiguous file reads · 4a282742
      Stephen Warren authored and Tom Rini's avatar Tom Rini committed
      
      In my patch series to replace fs/fat with "ff.c", I enhanced ff.c to
      optimize file reading, so that reads of contiguous clusters are submitted
      to the IO device as a single read. This test attempts to torture-test
      edge-cases of that enhancement.
      
      BTW, the only way I found to validate that this script actually does
      create non-contiguous files was to manually inspect the FAT bitmap in a
      hex dump of the FAT image. hdparm --fibmap doesn't work on loop-mounted
      filesystems. filefrag -v -e seems to lie about files being contiguous
      when they aren't.
      
      Signed-off-by: default avatarStephen Warren <swarren@wwwdotorg.org>
      Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      Tested-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      4a282742
  8. Oct 23, 2015
  9. Oct 22, 2015
  10. Oct 11, 2015
    • Tom Rini's avatar
      test/fs/fs-test.sh: Update expected results and TC10 logic · e8de6d7b
      Tom Rini authored
      
      With the changes in 7a3e70cf we now get read(2) behavior so trying to
      read 2MB with 1MB left in the file results in 1MB read and a warning.
      We update the test logic here to make sure we read back 1MB as expected.
      This change however changes the overall summary as while EXT4 continues
      to not have offset support the test now fails when expected to pass
      rather than fails when expected to fail (and we report that as pass).
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      e8de6d7b
    • Julius Werner's avatar
      Add support for LZ4 decompression algorithm · 027b728d
      Julius Werner authored and Tom Rini's avatar Tom Rini committed
      
      This patch adds support for LZ4-compressed FIT image contents. This
      algorithm has a slightly worse compression ration than LZO while being
      nearly twice as fast to decompress. When loading images from a fast
      storage medium this usually results in a boot time win.
      
      Sandbox-tested only since I don't have a U-Boot development system set
      up right now. The code was imported unchanged from coreboot where it's
      proven to work, though. I'm mostly interested in getting this recognized
      by mkImage for use in a downstream project.
      
      Signed-off-by: default avatarJulius Werner <jwerner@chromium.org>
      Acked-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      027b728d
  11. Oct 05, 2015
  12. Sep 09, 2015
  13. Sep 07, 2015
  14. Aug 18, 2015
  15. Aug 06, 2015
    • Masahiro Yamada's avatar
      devres: add debug command to dump device resources · 40b6f2d0
      Masahiro Yamada authored and Simon Glass's avatar Simon Glass committed
      
      This new command can dump all device resources associated to
      each device.  The fields in every line shows:
        - The address of the resource
        - The size of the resource
        - The name of the release function
        - The stage in which the resource has been acquired (BIND/PROBE)
      
      Currently, there is no driver using devres, but if such drivers are
      implemented, the output of this command should look like this:
      
      => dm devres
      - root_driver
      - soc
      - extbus
      - serial@54006800
          bfb541e8 (8 byte) devm_kmalloc_release  BIND
          bfb54440 (4 byte) devm_kmalloc_release  PROBE
          bfb54460 (4 byte) devm_kmalloc_release  PROBE
      - serial@54006900
          bfb54270 (8 byte) devm_kmalloc_release  BIND
      - gpio@55000000
      - i2c@58780000
          bfb5bce8 (12 byte) devm_kmalloc_release  PROBE
          bfb5bd10 (4 byte) devm_kmalloc_release  PROBE
      - eeprom
          bfb54418 (12 byte) devm_kmalloc_release  BIND
      
      Signed-off-by: Masahiro Yamada's avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      Acked-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      40b6f2d0
  16. Jul 21, 2015
  17. Jun 04, 2015
    • Simon Glass's avatar
      dm: pci: Allow PCI bus numbering aliases · 2bb02e4f
      Simon Glass authored
      
      Commit 9cc36a2b 'dm: core: Add a flag to control sequence numbering' changed
      the default uclass behaviour to not support bus numbering. This is incorrect
      for PCI and that commit should have enabled the flag for PCI.
      
      Enable it so that PCI buses can be found and the 'pci' command works again.
      Also add a test for this.
      
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      2bb02e4f
  18. May 28, 2015
  19. May 21, 2015
Loading