1. 05 8月, 2016 1 次提交
    • L
      ntb_test: Add a selftest script for the NTB subsystem · a9c59ef7
      Logan Gunthorpe 提交于
      This script automates testing doorbells, scratchpads and memory windows
      for an NTB device. It can be run locally, with the NTB looped
      back to the same host or use SSH to remotely control the second host.
      
      In the single host case, the script just needs to be passed two
      arguments: a PCI ID for each side of the link. In the two host case
      the -r option must be used to specify the remote hostname (which must
      be SSH accessible and should probably have ssh-keys exchanged).
      
      A sample run looks like this:
      
      $ sudo ./ntb_test.sh 0000:03:00.1 0000:83:00.1 -p 29
      Starting ntb_tool tests...
      Running link tests on: 0000:03:00.1 / 0000:83:00.1
        Passed
      Running link tests on: 0000:83:00.1 / 0000:03:00.1
        Passed
      Running db tests on: 0000:03:00.1 / 0000:83:00.1
        Passed
      Running db tests on: 0000:83:00.1 / 0000:03:00.1
        Passed
      Running spad tests on: 0000:03:00.1 / 0000:83:00.1
        Passed
      Running spad tests on: 0000:83:00.1 / 0000:03:00.1
        Passed
      Running mw0 tests on: 0000:03:00.1 / 0000:83:00.1
        Passed
      Running mw0 tests on: 0000:83:00.1 / 0000:03:00.1
        Passed
      Running mw1 tests on: 0000:03:00.1 / 0000:83:00.1
        Passed
      Running mw1 tests on: 0000:83:00.1 / 0000:03:00.1
        Passed
      
      Starting ntb_pingpong tests...
      Running ping pong tests on: 0000:03:00.1 / 0000:83:00.1
        Passed
      
      Starting ntb_perf tests...
      Running local perf test without DMA
        0: copied 536870912 bytes in 164453 usecs, 3264 MBytes/s
        Passed
      Running remote perf test without DMA
        0: copied 536870912 bytes in 164453 usecs, 3264 MBytes/s
        Passed
      Signed-off-by: NLogan Gunthorpe <logang@deltatee.com>
      Acked-by: NShuah Khan <shuahkh@osg.samsung.com>
      Acked-by: NAllen Hubbe <Allen.Hubbe@emc.com>
      Signed-off-by: NJon Mason <jdmason@kudzu.us>
      a9c59ef7
  2. 04 8月, 2016 1 次提交
    • A
      perf tests bpf: Use SyS_epoll_wait alias · c369e0a1
      Arnaldo Carvalho de Melo 提交于
      Something made the sys_epoll_wait() function alias not to be found in
      the vmlinux DWARF info, being found only in /proc/kallsyms, which made
      the BPF perf tests to fail:
      
        [root@jouet ~]# perf test BPF
        37: Test BPF filter                                          :
        37.1: Test basic BPF filtering                               : FAILED!
        37.2: Test BPF prologue generation                           : Skip
        37.3: Test BPF relocation checker                            : Skip
        [root@jouet ~]#
      
      Using -v we can see it is failing to find DWARF info for the probed function,
      sys_epoll_wait, which we can find in /proc/kallsyms but not in vmlinux with
      CONFIG_DEBUG_INFO:
      
        [root@jouet ~]# grep -w sys_epoll_wait /proc/kallsyms
        ffffffffbd295b50 T sys_epoll_wait
        [root@jouet ~]#
      
        [root@jouet ~]# readelf -wi /lib/modules/4.7.0+/build/vmlinux | grep -w sys_epoll_wait
        [root@jouet ~]#
      
      If we try to use perf probe:
      
      [root@jouet ~]# perf probe sys_epoll_wait
      Failed to find debug information for address ffffffffbd295b50
      Probe point 'sys_epoll_wait' not found.
        Error: Failed to add events.
      [root@jouet ~]#
      
      It all works if we use SyS_epoll_wait, that is just an alias to the probed
      function:
      
        [root@jouet ~]# grep -i sys_epoll_wait /proc/kallsyms
        ffffffffbd295b50 T SyS_epoll_wait
        ffffffffbd295b50 T sys_epoll_wait
        [root@jouet ~]#
      
      So use it:
      
        [root@jouet ~]# perf test BPF
        37: Test BPF filter                                          :
        37.1: Test basic BPF filtering                               : Ok
        37.2: Test BPF prologue generation                           : Ok
        37.3: Test BPF relocation checker                            : Ok
        [root@jouet ~]#
      
      Further info:
      
        [root@jouet ~]# gcc --version
        gcc (GCC) 6.1.1 20160621 (Red Hat 6.1.1-3)
        [acme@jouet linux]$ cat /etc/fedora-release
        Fedora release 24 (Twenty Four)
      
      Investigation as to why it fails is still underway, but it was always
      going from sys_epoll_wait to SyS_epoll_wait when looking up the DWARF
      info in vmlinux, and this is what is breaking now.
      
      Switching to use SyS_epoll_wait allows this test to proceed and test the
      BPF code it was designed for, so lets have this in to allow passing this
      test while we fix the root cause.
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexei Starovoitov <alexei.starovoitov@gmail.com>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Wang Nan <wangnan0@huawei.com>
      Link: http://lkml.kernel.org/n/tip-7hekjp0bodwjbb419sl2b55h@git.kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      c369e0a1
  3. 03 8月, 2016 9 次提交
  4. 02 8月, 2016 5 次提交
  5. 29 7月, 2016 7 次提交
  6. 28 7月, 2016 1 次提交
  7. 27 7月, 2016 3 次提交
  8. 26 7月, 2016 3 次提交
  9. 25 7月, 2016 1 次提交
  10. 24 7月, 2016 3 次提交
    • V
      nfit: do an ARS scrub on hitting a latent media error · 6839a6d9
      Vishal Verma 提交于
      When a latent (unknown to 'badblocks') error is encountered, it will
      trigger a machine check exception. On a system with machine check
      recovery, this will only SIGBUS the process(es) which had the bad page
      mapped (as opposed to a kernel panic on platforms without machine
      check recovery features). In the former case, we want to trigger a full
      rescan of that nvdimm bus. This will allow any additional, new errors
      to be captured in the block devices' badblocks lists, and offending
      operations on them can be trapped early, avoiding machine checks.
      
      This is done by registering a callback function with the
      x86_mce_decoder_chain and calling the new ars_rescan functionality with
      the address in the mce notificatiion.
      
      Cc: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
      Cc: Tony Luck <tony.luck@intel.com>
      Signed-off-by: NVishal Verma <vishal.l.verma@intel.com>
      Signed-off-by: NDan Williams <dan.j.williams@intel.com>
      6839a6d9
    • D
      nfit: move to nfit/ sub-directory · bdf97013
      Dan Williams 提交于
      With the arrival of x86-machine-check support the nfit driver will add a
      (conditionally-compiled) source file.  Prepare for this by moving all
      nfit source to drivers/acpi/nfit/.  This is pure code movement, no
      functional changes.
      Signed-off-by: NDan Williams <dan.j.williams@intel.com>
      bdf97013
    • D
      x86/insn: remove pcommit · fd1d961d
      Dan Williams 提交于
      The pcommit instruction is being deprecated in favor of either ADR
      (asynchronous DRAM refresh: flush-on-power-fail) at the platform level, or
      posted-write-queue flush addresses as defined by the ACPI 6.x NFIT (NVDIMM
      Firmware Interface Table).
      
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      Cc: x86@kernel.org
      Cc: Josh Poimboeuf <jpoimboe@redhat.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Borislav Petkov <bp@suse.de>
      Cc: Andy Lutomirski <luto@kernel.org>
      Cc: Xiao Guangrong <guangrong.xiao@linux.intel.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
      Acked-by: NIngo Molnar <mingo@redhat.com>
      Signed-off-by: NDan Williams <dan.j.williams@intel.com>
      fd1d961d
  11. 23 7月, 2016 6 次提交