1. 21 Jan, 2020 2 commits
  2. 19 Jan, 2020 1 commit
  3. 18 Jan, 2020 4 commits
  4. 08 Jan, 2020 1 commit
  5. 07 Jan, 2020 4 commits
  6. 06 Jan, 2020 13 commits
  7. 27 Dec, 2019 4 commits
    • Zeng Tao's avatar
      devicetree: Fix the dt_for_each_cpu_node · 57a11d8d
      Zeng Tao authored and Andrew Jones's avatar Andrew Jones committed
      
      
      If the /cpus node contains nodes other than /cpus/cpu*, for example:
      /cpus/cpu-map/. The test will issue an unexpected assert error as
      follow:
      [root@localhost]# ./arm-run arm/spinlock-test.flat
      qemu-system-aarch64 -nodefaults -machine virt,gic-version=host,accel=kvm
       -cpu host -device virtio-serial-device -device virtconsole,chardev=ctd
      -chardev testdev,id=ctd -device pci-testdev -display none -serial stdio
      -kernel arm/spinlock-test.flat # -initrd /tmp/tmp.mwPLiF4EWm
      lib/arm/setup.c:64: assert failed: ret == 0
              STACK:
      
      In this patch, ignore the non-cpu subnodes instead of return an error.
      Signed-off-by: default avatarZeng Tao <prime.zeng@hisilicon.com>
      Signed-off-by: Andrew Jones's avatarAndrew Jones <drjones@redhat.com>
      57a11d8d
    • Andrew Jones's avatar
      arm/arm64: PL031: Fix check_rtc_irq · 4be7630b
      Andrew Jones authored
      
      
      Since QEMU commit 83ad95957c7e ("pl031: Expose RTCICR as proper WC
      register") the PL031 test gets into an infinite loop. Now we must
      write bit zero of RTCICR to clear the IRQ status. Before, writing
      anything to RTCICR would work. As '1' is a member of 'anything'
      writing it should work for old QEMU as well.
      
      Cc: Alexander Graf <graf@amazon.com>
      Signed-off-by: Andrew Jones's avatarAndrew Jones <drjones@redhat.com>
      Reviewed-by: default avatarAlexander Graf <graf@amazon.com>
      4be7630b
    • Andrew Jones's avatar
      arm: Enable the VFP · efd13c38
      Andrew Jones authored
      
      
      Variable argument macros frequently depend on floating point
      registers. Indeed we needed to enable the VFP for arm64 since its
      introduction in order to use printf and the like. Somehow we
      didn't need to do that for arm32 until recently when compiling
      with GCC 9.
      Tested-by: default avatarThomas Huth <thuth@redhat.com>
      Signed-off-by: Andrew Jones's avatarAndrew Jones <drjones@redhat.com>
      efd13c38
    • Chen Qun's avatar
      arm: Add missing test name prefix for pl031 and spinlock · e3f9c6f6
      Chen Qun authored and Andrew Jones's avatar Andrew Jones committed
      
      
      pl031 and spinlock testcase without prefix, when running
      the unit tests in TAP mode (./run_tests.sh -t), it is
      difficult to the test results.
      
      The test results:
      ok 13 - Periph/PCell IDs match
      ok 14 - R/O fields are R/O
      ok 15 - RTC ticks at 1HZ
      ok 16 - RTC IRQ not pending yet
      ...
      ok 24 -   RTC IRQ not pending anymore
      ok 25 - CPU1: Done - Errors: 0
      ok 26 - CPU0: Done - Errors: 0
      
      It should be like this:
      ok 13 - pl031: Periph/PCell IDs match
      ok 14 - pl031: R/O fields are R/O
      ok 15 - pl031: RTC ticks at 1HZ
      ok 16 - pl031: RTC IRQ not pending yet
      ...
      ok 24 - pl031:   RTC IRQ not pending anymore
      ok 25 - spinlock: CPU0: Done - Errors: 0
      ok 26 - spinlock: CPU1: Done - Errors: 0
      Signed-off-by: default avatarChen Qun <kuhn.chenqun@huawei.com>
      Signed-off-by: Andrew Jones's avatarAndrew Jones <drjones@redhat.com>
      e3f9c6f6
  8. 18 Dec, 2019 1 commit
  9. 10 Dec, 2019 6 commits
  10. 09 Dec, 2019 1 commit
  11. 06 Dec, 2019 2 commits
    • Thomas Huth's avatar
      Switch the order of the parameters in report() and report_xfail() · a299895b
      Thomas Huth authored
      Commit c09c54c6
      
       ("lib: use an argument which doesn't require
      default argument promotion") fixed a warning that occurs with Clang,
      but introduced a regression: If the "pass" parameter is a value
      which has only set the condition bits in the upper 32 bits of a
      64 bit value, the condition is now false since the value is truncated
      to "unsigned int" so that the upper bits are simply discarded.
      
      We fixed it by reverting the commit, but that of course also means
      trouble with Clang again. We can not use "bool" if it is the last
      parameter before the variable argument list. The proper fix is to
      swap the parameters around and make the format string the last
      parameter.
      
      This patch (except the changes in lib/libcflat.h and lib/report.c
      and some rebase conflicts along the way) has basically been created
      with following coccinelle script (with some additional manual tweaking
      of long and disabled lines afterwards):
      
      @@
      expression fmt;
      expression pass;
      expression list args;
      @@
       report(
      -fmt, pass
      +pass, fmt
       , args);
      
      @@
      expression fmt;
      expression pass;
      expression list args;
      @@
       report_xfail(
      -fmt, xfail, pass
      +xfail, pass, fmt
       , args);
      Tested-by: Andrew Jones's avatarAndrew Jones <drjones@redhat.com>
      Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
      Message-Id: <20191206113102.14914-1-thuth@redhat.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      a299895b
    • Thomas Huth's avatar
      MAINTAINERS: Radim is no longer available as kvm-unit-tests maintainer · 78818bb5
      Thomas Huth authored
      
      
      Radim's mail address @redhat.com is not valid anymore, so we should
      remove this line from the MAINTAINERS file.
      
      Thanks for all your work on kvm-unit-tests during the past years, Radim!
      Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
      Message-Id: <20191206131534.18509-1-thuth@redhat.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      78818bb5
  12. 04 Dec, 2019 1 commit