12 Oct, 2015

2 commits

  • With the changes in 7a3e70c 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: Tom Rini

    Tom Rini
     
  • 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: Julius Werner
    Acked-by: Simon Glass

    Julius Werner
     

05 Oct, 2015

1 commit


09 Sep, 2015

1 commit


07 Sep, 2015

1 commit


19 Aug, 2015

1 commit

  • - Re-direct stderr into the log files, so any errors U-Boot emits are
    visible in the logs. This is relevant if the "reset" shell command
    attempts to report that it's not supported on the sandbox board.
    - Fix test_fs_nonfs() to name the files it created differently for each
    invocation. Otherwise, the logs from different tests overwrite
    each-other.

    Signed-off-by: Stephen Warren
    Acked-by: Suriyan Ramasami

    Stephen Warren
     

06 Aug, 2015

1 commit

  • 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
    Acked-by: Simon Glass

    Masahiro Yamada
     

22 Jul, 2015

10 commits


04 Jun, 2015

1 commit

  • Commit 9cc36a2 '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

    Simon Glass
     

28 May, 2015

1 commit


21 May, 2015

12 commits


15 May, 2015

2 commits

  • The file test.dts from driver model test directory,
    was compiled by call dtc in script: test/dm/test-dm.sh.

    This doesn't allow for including of dtsi files and using
    of C preprocessor routines in this dts file.

    Since the mentioned script builds U-Boot before tests,
    then moving the test.dts file into sandbox dts directory
    is reasonable.

    Signed-off-by: Przemyslaw Marczak
    Acked-by: Simon Glass
    Tested on sandbox:
    Tested-by: Simon Glass

    Przemyslaw Marczak
     
  • This change adds new file to sandbox driver model test environment.
    The file is: test/dm/power.c, and it includes tests for PMIC framework,
    which includes PMIC uclass and REGULATOR uclass.

    All tests are based od Sandbox PMIC emulated device. Some test constants for
    this device are defined in the header: include/power/sandbox_pmic.h

    PMIC tests includes:
    - pmic get - tests, that pmic_get() returns the requested device
    - pmic I/O - tests I/O by writing and reading some values to PMIC's registers
    and then compares, that the write/read values are equal.

    The regulator tests includes:
    - Regulator get by devname/platname
    - Voltage set/get
    - Current set/get
    - Enable set/get
    - Mode set/get
    - Autoset
    - List autoset

    For the regulator 'get' test, the returned device pointers are compared,
    and their names are also compared to the requested one.
    Every other test, first sets the given attribute and next try to get it.
    The test pass, when the set/get values are equal.

    Signed-off-by: Przemyslaw Marczak
    Acked-by: Simon Glass
    Tested on sandbox:
    Tested-by: Simon Glass

    Przemyslaw Marczak
     

07 May, 2015

1 commit


06 May, 2015

4 commits


23 Apr, 2015

2 commits

  • We must not clear global_data even in tests, since the ram_buffer (which
    is used by malloc()) will also be lost, and subsequent tests will fail.

    Zero only the global_data fields that are required for the test to function.

    Signed-off-by: Simon Glass
    Reviewed-by: Joe Hershberger
    Tested-by: Joe Hershberger

    Simon Glass
     
  • This commit introduces simple tests for functions:
    - uclass_find_device_by_name()
    - uclass_get_device_by_name()

    Tests added by this commit:
    - Test: dm_test_uclass_devices_find_by_name: for uclass id: UCLASS_TEST_FDT
    * get uclass's devices by uclass_find_first/next_device() each as 'testdev',
    * for each returned device, call: uclass_find_device_by_name(),
    with previously returned device's name as an argument ('testdev->name').
    * for the found device ('founddev') check if:
    * founddev != NULL
    * testdev == founddev
    * testdev->name == founddev->name (by strcmp)

    - Test: dm_test_uclass_devices_get_by_name: for uclass id: UCLASS_TEST_FDT
    * get uclass's devices by uclass_get_first/next_device() each as 'testdev',
    * for each returned device, call: uclass_get_device_by_name(),
    with previously returned device's name as an argument ('testdev->name').
    * for the found device ('founddev') check if:
    * founddev != NULL
    * founddev is active
    * testdev == founddev
    * testdev->name == founddev->name (by strcmp)

    Signed-off-by: Przemyslaw Marczak
    Cc: Simon Glass
    Acked-by: Simon Glass

    Przemyslaw Marczak