1. 28 9月, 2018 1 次提交
    • M
      selftests/powerpc: Fix Makefiles for headers_install change · 7e0cf1c9
      Michael Ellerman 提交于
      Commit b2d35fa5 ("selftests: add headers_install to lib.mk")
      introduced a requirement that Makefiles more than one level below the
      selftests directory need to define top_srcdir, but it didn't update
      any of the powerpc Makefiles.
      
      This broke building all the powerpc selftests with eg:
      
        make[1]: Entering directory '/src/linux/tools/testing/selftests/powerpc'
        BUILD_TARGET=/src/linux/tools/testing/selftests/powerpc/alignment; mkdir -p $BUILD_TARGET; make OUTPUT=$BUILD_TARGET -k -C alignment all
        make[2]: Entering directory '/src/linux/tools/testing/selftests/powerpc/alignment'
        ../../lib.mk:20: ../../../../scripts/subarch.include: No such file or directory
        make[2]: *** No rule to make target '../../../../scripts/subarch.include'.
        make[2]: Failed to remake makefile '../../../../scripts/subarch.include'.
        Makefile:38: recipe for target 'alignment' failed
      
      Fix it by setting top_srcdir in the affected Makefiles.
      
      Fixes: b2d35fa5 ("selftests: add headers_install to lib.mk")
      Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
      7e0cf1c9
  2. 08 8月, 2018 1 次提交
    • B
      selftests/powerpc: Kill child processes on SIGINT · 7c27a26e
      Breno Leitao 提交于
      There are some powerpc selftests, as tm/tm-unavailable, that run for a long
      period (>120 seconds), and if it is interrupted, as pressing CRTL-C
      (SIGINT), the foreground process (harness) dies but the child process and
      threads continue to execute (with PPID = 1 now) in background.
      
      In this case, you'd think the whole test exited, but there are remaining
      threads and processes being executed in background. Sometimes these
      zombies processes are doing annoying things, as consuming the whole CPU or
      dumping things to STDOUT.
      
      This patch fixes this problem by attaching an empty signal handler to
      SIGINT in the harness process. This handler will interrupt (EINTR) the
      parent process waitpid() call, letting the code to follow through the
      normal flow, which will kill all the processes in the child process group.
      
      This patch also fixes a typo.
      Signed-off-by: NBreno Leitao <leitao@debian.org>
      Signed-off-by: NGustavo Romero <gromero@linux.vnet.ibm.com>
      Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
      7c27a26e
  3. 07 8月, 2018 10 次提交
  4. 30 7月, 2018 2 次提交
  5. 24 7月, 2018 3 次提交
  6. 20 7月, 2018 3 次提交
  7. 02 7月, 2018 2 次提交
  8. 03 6月, 2018 1 次提交
  9. 28 5月, 2018 2 次提交
  10. 24 5月, 2018 2 次提交
  11. 21 5月, 2018 1 次提交
  12. 14 5月, 2018 1 次提交
  13. 03 4月, 2018 1 次提交
    • M
      selftests/powerpc: Fix copyloops build since Power4 assembler change · b6f534d1
      Michael Ellerman 提交于
      The recent commit 15a3204d ("powerpc/64s: Set assembler machine
      type to POWER4") set the machine type in our ASFLAGS when building the
      kernel, and removed some ".machine power4" directives from various asm
      files.
      
      This broke the selftests build on old toolchains (that don't assume
      Power4), because we build the kernel source files into the selftests
      using different ASFLAGS.
      
      The fix is simply to add -mpower4 to the selftest ASFLAGS as well.
      
      Fixes: 15a3204d ("powerpc/64s: Set assembler machine type to POWER4")
      Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
      b6f534d1
  14. 20 3月, 2018 1 次提交
  15. 13 3月, 2018 2 次提交
  16. 02 3月, 2018 1 次提交
    • M
      selftests/powerpc: Skip the subpage_prot tests if the syscall is unavailable · cd4a6f3a
      Michael Ellerman 提交于
      The subpage_prot syscall is only functional when the system is using
      the Hash MMU. Since commit 5b2b8071 ("powerpc/mm: Invalidate
      subpage_prot() system call on radix platforms") it returns ENOENT when
      the Radix MMU is active. Currently this just makes the test fail.
      
      Additionally the syscall is not available if the kernel is built with
      4K pages, or if CONFIG_PPC_SUBPAGE_PROT=n, in which case it returns
      ENOSYS because the syscall is missing entirely.
      
      So check explicitly for ENOENT and ENOSYS and skip if we see either of
      those.
      Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
      cd4a6f3a
  17. 28 2月, 2018 1 次提交
  18. 26 2月, 2018 1 次提交
  19. 13 2月, 2018 1 次提交
  20. 22 1月, 2018 2 次提交
  21. 21 1月, 2018 1 次提交