Skip to content
  1. Sep 21, 2017
  2. Sep 19, 2017
  3. Sep 18, 2017
  4. Sep 15, 2017
  5. Sep 09, 2017
  6. Sep 07, 2017
  7. Sep 06, 2017
  8. Sep 01, 2017
  9. Aug 31, 2017
    • Robin Murphy's avatar
      libnvdimm, nd_blk: remove mmio_flush_range() · 5deb67f7
      Robin Murphy authored
      
      
      mmio_flush_range() suffers from a lack of clearly-defined semantics,
      and is somewhat ambiguous to port to other architectures where the
      scope of the writeback implied by "flush" and ordering might matter,
      but MMIO would tend to imply non-cacheable anyway. Per the rationale
      in 67a3e8fe ("nd_blk: change aperture mapping from WC to WB"), the
      only existing use is actually to invalidate clean cache lines for
      ARCH_MEMREMAP_PMEM type mappings *without* writeback. Since the recent
      cleanup of the pmem API, that also now happens to be the exact purpose
      of arch_invalidate_pmem(), which would be a far more well-defined tool
      for the job.
      
      Rather than risk potentially inconsistent implementations of
      mmio_flush_range() for the sake of one callsite, streamline things by
      removing it entirely and instead move the ARCH_MEMREMAP_PMEM related
      definitions up to the libnvdimm level, so they can be shared by NFIT
      as well. This allows NFIT to be enabled for arm64.
      
      Signed-off-by: default avatarRobin Murphy <robin.murphy@arm.com>
      Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
      5deb67f7
    • Michael Neuling's avatar
      selftests/powerpc: Force ptrace tests to build -fno-pie · a3c01050
      Michael Neuling authored
      
      
      Currently these tests won't build with a `--enable-default-pie`
      compiler as they require r30 to be clobbered. This gives
      an error:
        ptrace-tm-spd-gpr.c:41:2: error: PIC register clobbered by 'r30' in 'asm'
      
      This forces these tests to be built no-pie.
      
      Signed-off-by: default avatarMichael Neuling <mikey@neuling.org>
      Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
      a3c01050
    • Tobin C. Harding's avatar
      powerpc/asm: Convert .llong directives to .8byte · eb039161
      Tobin C. Harding authored
      
      
      .llong is an undocumented PPC specific directive. The generic
      equivalent is .quad, but even better (because it's self describing) is
      .8byte.
      
      Convert all .llong directives to .8byte.
      
      Signed-off-by: default avatarTobin C. Harding <me@tobin.cc>
      Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
      eb039161
  10. Aug 30, 2017
  11. Aug 29, 2017
  12. Aug 28, 2017
  13. Aug 25, 2017
    • Shuah Khan's avatar
      selftests: lib.mk: change RUN_TESTS to print messages in TAP13 format · 1f87c7c1
      Shuah Khan authored
      
      
      Change common RUN_TESTS to print messages in user friendly TAP13 format.
      This change add TAP13 header at the start of RUN_TESTS target run, and
      prints the resulting pass/fail messages with test number information in
      the TAP 13 format for each test in the run tests list.
      
      This change covers test scripts as well as test programs. Test programs
      have an option to use ksft_ API, however test scripts won't be able to.
      With this change, test scripts can print TAP13 format output without any
      changes to individual scripts.
      
      Test programs can provide TAP13 format output as needed as some tests
      already do. Tests that haven't been converted will benefit from this
      change. Tests that are converted benefit from the test counts for all
      the tests in each test directory.
      
      Running firmware tests:
      make --silent -C tools/testing/selftests/firmware/ run_tests
      
      Before the change:
      
      modprobe: ERROR: could not insert 'test_firmware': Operation not
      permitted
      ./fw_filesystem.sh: /sys/devices/virtual/misc/test_firmware not present
      You must have the following enabled in your kernel:
      CONFIG_TEST_FIRMWARE=y
      selftests:  fw_filesystem.sh [FAIL]
      modprobe: ERROR: could not insert 'test_firmware': Operation not
      permitted
      selftests:  fw_fallback.sh [FAIL]
      
      After the change:
      
      TAP version 13
      selftests: fw_filesystem.sh
      ========================================
      modprobe: ERROR: could not insert 'test_firmware': Operation not
      permitted
      ./fw_filesystem.sh: /sys/devices/virtual/misc/test_firmware not present
      You must have the following enabled in your kernel:
      CONFIG_TEST_FIRMWARE=y
      not ok 1..1 selftests:  fw_filesystem.sh [FAIL]
      selftests: fw_fallback.sh
      ========================================
      modprobe: ERROR: could not insert 'test_firmware': Operation not
      permitted
      not ok 1..2 selftests:  fw_fallback.sh [FAIL]
      
      Signed-off-by: default avatarShuah Khan <shuahkh@osg.samsung.com>
      1f87c7c1
    • Shuah Khan's avatar
      selftests: change lib.mk RUN_TESTS to take test list as an argument · 77d802e2
      Shuah Khan authored
      
      
      Change lib.mk RUN_TESTS to take test list as an argument. This will
      allow it to be called from individual test makefiles to run additional
      tests that aren't suitable for a default kselftest run. As an example,
      timers test includes destructive tests that aren't included in the
      common run_tests target.
      
      Change times/Makefile to use RUN_TESTS call with destructive test list
      as an argument instead of using its own RUN_TESTS target.
      
      Signed-off-by: default avatarShuah Khan <shuahkh@osg.samsung.com>
      77d802e2
    • Shuah Khan's avatar
      selftests: lib.mk: suppress "cd" output from run_tests target · 49b73645
      Shuah Khan authored
      
      
      Suppress "cd" output from run_tests while running tests to declutter the
      test results.
      
      Running efivarfs test:
      make --silent -C tools/testing/selftests/efivarfs/ run_tests
      
      Before the change:
      
      skip all tests: must be run as root
      selftests: efivarfs.sh [PASS]
      /lkml/linux-kselftest/tools/testing/selftests/efivarfs
      
      After the change:
      
      skip all tests: must be run as root
      selftests: efivarfs.sh [PASS]
      
      Signed-off-by: default avatarShuah Khan <shuahkh@osg.samsung.com>
      49b73645
    • Shuah Khan's avatar
      selftests: kselftest framework: change skip exit code to 0 · 11867a77
      Shuah Khan authored
      
      
      When a test is skipped, instead of using a special exit code of 4, treat
      it as pass condition and use exit code of 0. It makes sense to treat skip
      as pass since the test couldn't be run as opposed to a failed test.
      
      Signed-off-by: default avatarShuah Khan <shuahkh@osg.samsung.com>
      11867a77
    • Benjamin Gaignard's avatar
      selftests/timers: make loop consistent with array size · 8f14e26b
      Benjamin Gaignard authored
      
      
      clocksource_list array is defined as char [10][30] so
      to initialise it we only have to iterate 10 times.
      
      Signed-off-by: default avatarBenjamin Gaignard <benjamin.gaignard@linaro.org>
      Signed-off-by: default avatarShuah Khan <shuahkh@osg.samsung.com>
      8f14e26b
  14. Aug 24, 2017
Loading