net: stmmac: Meson GXBB: attempting to execute userspace memory

2016-11-25 Thread Heinrich Schuchardt
For Odroid C2 I have compiled kernel 4.9.0-rc6-next-20161124-1-gbf7e142 with one additional patch https://github.com/xypron/kernel-odroid-c2/blob/master/patch/0001-stmmac-RTL8211F-Meson-GXBB-TX-throughput-problems.patch I repeatedly see faults like the one below: [ 2557.400796] Unhandled faul

[PATCH v3 15/30] perf clang: Compile BPF script use builtin clang support

2016-11-25 Thread Wang Nan
After this patch, perf utilizes builtin clang support to build BPF script, no longer depend on external clang. Test: $ type clang -bash: type: clang: not found $ cat ~/.perfconfig $ echo '#define LINUX_VERSION_CODE 0x040700' > ./test.c $ cat ./tools/perf/tests/bpf-script-example.c >> ./

[PATCH v3 00/30] perf clang: Builtin clang and perfhook support

2016-11-25 Thread Wang Nan
This is version 3 of perf builtin clang and perfhook patch series. Compare to v2 there is only minor changes: 1. BPF map helpers in perf hooks now called 'perf_map_...', instead of 'jit_helper_map_...'. (Alexei Starovoitov) 2. Rename bpf_map_{pin,get} to bpf_obj_{pin,get}, make them consi

[PATCH v3 22/30] perf clang jit: Actually JIT and hook in bpf loader

2016-11-25 Thread Wang Nan
Makes perf_clang__compile_bpf() actually uses clang jit to compile perf hooks. Returns a map through perf_clang__compile_bpf(), and set hooks after bpf_object is created. After this path jitting takes actions for bpf loader. For example: $ cat ./test.c /

[PATCH v3 08/30] tools build: Add feature detection for clang

2016-11-25 Thread Wang Nan
Check if basic clang compiling environment is ready. Doesn't like 'llvm-config --libs' which can returns llvm libraries in right order and duplicates some libraries if necessary, there's no correspondence for clang libraries (-lclangxxx). to avoid extra complexity and to avoid new clang breaking l

[PATCH v3 05/30] perf tools: Pass context to perf hook functions

2016-11-25 Thread Wang Nan
Pass a pointer to perf hook functions so they receive context information created durnig setup. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Alexei Starovoitov Cc: He Kuang Cc: Jiri Olsa Cc: Zefan Li Cc: pi3or...@163.com --- tools/perf/tests/perf-hooks.c | 14 +- too

[PATCH v3 10/30] perf clang: Add builtin clang support ant test case

2016-11-25 Thread Wang Nan
Add basic clang support in clang.cpp and test__clang() testcase. The first testcase checks if builtin clang is able to generate LLVM IR. tests/clang.c is a proxy. Real testcase resides in utils/c++/clang-test.cpp in c++ and exports C interface to perf test subsystem. Test result: $ perf test

[PATCH v3 25/30] perf clang jit: Allow jitted perf hook access BPF maps

2016-11-25 Thread Wang Nan
Newly introduced jit-helpers.[ch] defines a series of helpers which helps jitted perf hook functions accessing BPF maps defined in their BPF scripts. The helpers fetches fd of 'struct bpf_map' from 'struct bpf_object' and the address of 'struct bpf_map_def' in jitted file. 'struct bpf_object' is th

[PATCH v3 29/30] perf clang builtin: Define hook helpers by default

2016-11-25 Thread Wang Nan
Append declarations of helpers to default include file. All functions appear in exported_funcs array should be declared here except test__clang_callback, because it is used for perf test only. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Alexei Starovoitov Cc: He Kuang Cc: Jiri Ols

[PATCH v3 18/30] perf clang jit: Wrap llvm::Module using PerfModule

2016-11-25 Thread Wang Nan
Use PerfModule wrap llvm::Module and return perf::PerfModule in APIs to replace llvm::Module. Following commits are going to add new functions to PerfModule. getBPFObjectFromModule is merged to a method of perf::PerfModule. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Alexei Starovo

[PATCH v3 12/30] perf clang: Allow passing CFLAGS to builtin clang

2016-11-25 Thread Wang Nan
Improve getModuleFromSource() API to accept a cflags list. This feature will be used to pass LINUX_VERSION_CODE and -I flags. Signed-off-by: Wang Nan Cc: Alexei Starovoitov Cc: He Kuang Cc: Jiri Olsa Cc: Zefan Li Cc: pi3or...@163.com Link: http://lkml.kernel.org/r/1474874832-134786-9-git-sen

[PATCH v3 28/30] perf clang: Include helpers to BPF scripts

2016-11-25 Thread Wang Nan
Automatically include some commonly used macros and struct definitions into BPF scripts. Script writers are no longer required to define 'SEC' and 'struct bpf_map_def' in each of their scripts. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Alexei Starovoitov Cc: He Kuang Cc: Jiri Ol

[PATCH v3 20/30] perf clang jit: add PerfModule::doJIT to JIT perfhook functions

2016-11-25 Thread Wang Nan
PerfModule::doJIT JIT compile perfhook functions and saves result into a map. Add a test case for it. At this stage perfhook functions can do no useful things because they can't invoke external functions and can't return value. Following commits are going to make improvment. Don't hook functions

[PATCH v3 26/30] perf clang: Link BPF functions declaration into perf

2016-11-25 Thread Wang Nan
Use a shell script to generate BPF functions declarations from kernel source code, embed the generated header into a C string. Following commits will utilizes clang's virtual file system to automatically include this header to all BPF scripts. The generated header is wrapped by a BUILTIN_CLANG_NO_

[PATCH v3 27/30] perf clang: Declare BPF functions for BPF scripts automatically

2016-11-25 Thread Wang Nan
Use Clang's OverlayFileSystem, add '-include' options to make builtin clang define BPF functions. After this patch BPF script writer needn't define BPF functions by their own. Add -DBUILTIN_CLANG_DEFAULT_INCLUDE to builtin clang so when adopting builtin clang BPF functions can be automatically def

[PATCH v3 09/30] perf build: Add clang and llvm compile and linking support

2016-11-25 Thread Wang Nan
Add necessary c++ flags and link libraries to support builtin clang and LLVM. Add all llvm and clang libraries, so don't need to worry about clang changes its libraries setting. However, linking perf would take much longer than usual. Signed-off-by: Wang Nan Cc: Alexei Starovoitov Cc: He Kuang

[PATCH v3 03/30] tools lib bpf: Retrive bpf_map through offset of bpf_map_def

2016-11-25 Thread Wang Nan
Add a new API to libbpf, caller is able to get bpf_map through the offset of bpf_map_def to 'maps' section. The API will be used to help jitted perf hook code find fd of a map. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Alexei Starovoitov Cc: Jiri Olsa Cc: Zefan Li Cc: pi3or...

[PATCH v3 11/30] perf clang: Use real file system for #include

2016-11-25 Thread Wang Nan
Utilize clang's OverlayFileSystem facility, allow CompilerInstance to access real file system. With this patch '#include' directive can be used. Add a new getModuleFromSource for real file. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Alexei Starovoitov Cc: He Kuang Cc: Jiri Olsa

[PATCH v3 19/30] perf clang jit: Insignt BPF and JIT functions in a Module

2016-11-25 Thread Wang Nan
Identify BPF functions, JIT functions and maps during init. Functions in section starting with "perfhook:" are JIT functions. They will be JIT compiled and hooked at perfhooks. During init of PerfModule, mark JIT functions as AvailableExternallyLinkage. LLVM skips functions with linkage like this

[PATCH v3 06/30] perf llvm: Extract helpers in llvm-utils.c

2016-11-25 Thread Wang Nan
Following commits will use builtin clang to compile BPF script. llvm__get_kbuild_opts() and llvm__get_nr_cpus() are extracted to help building '-DKERNEL_VERSION_CODE' and '-D__NR_CPUS__' macros. Doing object dumping in bpf loader, so futher builtin clang compiling needn't consider it. Signed-off-

[PATCH v3 17/30] perf clang: Pass CFLAGS to builtin clang

2016-11-25 Thread Wang Nan
Pass -DLINUX_VERSION_CODE, -D__NR_CPUS__, llvm.clang-opt config options and CFLAGS detected by kbuild detector to builtin clang so BPF scripts can use kernel headers and user defined options like external clang compiler. Test: # perf record -v --dry-run -e tools/perf/tests/bpf-script-test-kbuild

Xmas Offer

2016-11-25 Thread Mrs Julie Leach
You are a recipient to Mrs Julie Leach Donation of $3 million USD. Contact ( julieleac...@gmail.com ) for claims.

[PATCH v3 07/30] tools build: Add feature detection for LLVM

2016-11-25 Thread Wang Nan
Check if basic LLVM compiling environment is ready. Use llvm-config to detect include and library directories. Avoid using 'llvm-config --cxxflags' because its result contain some unwanted flags like --sysroot (if LLVM is built by yocto). Use '?=' to set LLVM_CONFIG, so explicitly passing LLVM_CO

[PATCH v3 24/30] perf clang jit: Retrive fd of BPF map from its offset

2016-11-25 Thread Wang Nan
bpf__map_fd() is introduced to retrive fd of a BPF map through its offset in BPF object. This function is going be used in further commits which allow scripts jitted by builtin clang access BPF maps. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Alexei Starovoitov Cc: He Kuang Cc: J

[PATCH v3 30/30] perf clang jit: Export getpid() to perf hook

2016-11-25 Thread Wang Nan
After this patch perf hooks can retrive pid of perf itself by calling getpid. It is important for excluding event from perf. This commit is also an example to show how to export more helpers to hooked script. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Alexei Starovoitov Cc: He Ku

[PATCH v3 21/30] perf clang jit: Export functions for jitted code

2016-11-25 Thread Wang Nan
After this patch functions attached on perf hooks is allowed to invoke external functions. Add a testcase for this feature. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Alexei Starovoitov Cc: He Kuang Cc: Jiri Olsa Cc: Zefan Li Cc: pi3or...@163.com --- tools/perf/tests/Build

[PATCH v3 14/30] perf clang: Support compile IR to BPF object and add testcase

2016-11-25 Thread Wang Nan
getBPFObjectFromModule() is introduced to compile LLVM IR(Module) to BPF object. Add new testcase for it. Test result: $ ./buildperf/perf test -v clang 51: Test builtin clang support : 51.1: Test builtin clang compile C source to IR : --- start --

[PATCH v3 16/30] perf clang: Pass full path to builtin clang

2016-11-25 Thread Wang Nan
If clang changes its working directory, relative path passed to perf_clang__compile_bpf() becomes invalid. Before running clang, convert it to absolute path so file can be found even working directory is changed. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Alexei Starovoitov Cc: He

[PATCH v3 23/30] perf clang jit: Collect the lowest address in maps section as map_base

2016-11-25 Thread Wang Nan
During jitting, find the lowest address in maps section and store its value to _map_base. Pass its value out through perf_clang__compile_bpf(). map_base is useful for jitted functions accessing BPF maps. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Alexei Starovoitov Cc: He Kuang C

[PATCH v3 04/30] perf tools: Introduce perf hooks

2016-11-25 Thread Wang Nan
Perf hooks allow hooking user code at perf events. They can be used for manipulation of BPF maps, taking snapshot and reporting results. In this patch two perf hook points are introduced: record_start and record_end. To avoid buggy user actions, a SIGSEGV signal handler is introduced into 'perf re

[PATCH v3 13/30] perf clang: Update test case to use real BPF script

2016-11-25 Thread Wang Nan
Allow C++ code to use util.h and tests/llvm.h. Let 'perf test' compile a real BPF script. Signed-off-by: Wang Nan Cc: Alexei Starovoitov Cc: He Kuang Cc: Jiri Olsa Cc: Zefan Li Cc: pi3or...@163.com Link: http://lkml.kernel.org/r/1474874832-134786-10-git-send-email-wangn...@huawei.com Signed-

[PATCH v3 01/30] tools lib bpf: Add missing BPF functions

2016-11-25 Thread Wang Nan
Add more BPF map operations to libbpf. Also add bpf_obj_{pin,get}(). They can be used on not only BPF maps but also BPF programs. Signed-off-by: Wang Nan Cc: Alexei Starovoitov Cc: Arnaldo Carvalho de Melo Cc: Joe Stringer Cc: Li Zefan --- tools/lib/bpf/bpf.c | 56 +++

[PATCH v3 02/30] tools lib bpf: Add private field for bpf_object

2016-11-25 Thread Wang Nan
Similar to other classes defined in libbpf.h (map and program), allow 'object' class has its own private data. Signed-off-by: Wang Nan Cc: Alexei Starovoitov Cc: Arnaldo Carvalho de Melo Cc: Li Zefan --- tools/lib/bpf/libbpf.c | 23 +++ tools/lib/bpf/libbpf.h | 5 + 2

Re: [PATCH v3 2/3] zram: revalidate disk under init_lock

2016-11-25 Thread Sergey Senozhatsky
Hi, On (11/25/16 17:35), Minchan Kim wrote: > [1] moved revalidate_disk call out of init_lock to avoid lockdep > false-positive splat. However, [2] remove init_lock in IO path > so there is no worry about lockdep splat. So, let's restore it. > This patch need to set BDI_CAP_STABLE_WRITES atomical

Re: [PATCH v3 3/3] zram: support BDI_CAP_STABLE_WRITES

2016-11-25 Thread Sergey Senozhatsky
Hello Minchan, On (11/25/16 17:35), Minchan Kim wrote: [..] > +static void zram_revalidate_disk(struct zram *zram) > +{ > + revalidate_disk(zram->disk); > + zram->disk->queue->backing_dev_info.capabilities |= > + BDI_CAP_STABLE_WRITES; > +} > + > /* > * Check if request is w

Re: [PATCH] Fixes for compiling with clang

2016-11-25 Thread kbuild test robot
Hi Peter, [auto build test ERROR on kbuild/for-next] [also build test ERROR on v4.9-rc6 next-20161125] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Peter-Foley/Fixes-for-compiling-with-clang

Re: [PATCH v2] Staging: iio: adc: fix sysfs files modes in ad7192.c

2016-11-25 Thread Boyan Vladinov
Ignore patch version...comments below Will resend it On 24.11.2016 19:38, Boyan Vladinov wrote: Fixes sysfs entries user/group modes and coding style warnings found by checkpatch.pl tool. Also use the IIO_DEVICE_ATTR_[RO|RW] and macros to create device attributes Signed-off-by: Boyan Vladinov

Xmas Offer

2016-11-25 Thread Mrs Julie Leach
You are a recipient to Mrs Julie Leach Donation of $3 million USD. Contact ( julieleac...@gmail.com ) for claims.

[PATCH] Fixes for compiling with clang

2016-11-25 Thread Peter Foley
Move definition of HOSTCC to allow use of cc-name. Suppress warnings about unsupported optimization options. Disable clang's integrated assembler which is incompatible with kernel asm constructs. Signed-off-by: Peter Foley --- Makefile | 23 +-- 1 file changed, 13 insertions(

Re: [RFC 1/1] LSM ptags: Add tagging of processes

2016-11-25 Thread Tetsuo Handa
Jose Bollo wrote: > +/** > + * is_valid_utf8 - Is buffer a valid utf8 string? > + * > + * @buffer: the start of the string > + * @length: length in bytes of the buffer > + * > + * Return 1 when valid or else returns 0 > + */ Do we really need to check UTF-8 inside kernel? What do you do if people

fixed drivers/staging/most/mostcore/core.c coding style

2016-11-25 Thread wenhungyang
fix drivers/staging/most/mostcore/core.c coding style 1. move static from MACRO to function name 2. change symbolic permission such as 'S_IRUGO' to number >From 3e1dba83090c58251aae1dc7aca431bb11632a98 Mon Sep 17 00:00:00 2001 From: wenhungyang Date: Wed, 23 Nov 2016 21:55:36 +0800 Subject: [c15

[PATCH] IIO: Change msleep to usleep_range for small msecs

2016-11-25 Thread Aniroop Mathur
msleep(1~20) may not do what the caller intends, and will often sleep longer. (~20 ms actual sleep for any value given in the 1~20ms range) This is not the desired behaviour for many cases like device resume time, device suspend time, device enable time, data reading time, etc. Thus, change msleep

Re: [PATCH 1/3] perf sched timehist: Mark schedule function in callchains

2016-11-25 Thread David Ahern
On 11/23/16 11:30 PM, Namhyung Kim wrote: > Hi David, > > On Wed, Nov 23, 2016 at 10:13:46PM -0500, David Ahern wrote: >> On 11/23/16 8:11 PM, Namhyung Kim wrote: >>> The sched_switch event always captured from the scheduler function. So >>> it'd be great omit them from the callchain. This patch

Re: [PATCH 2/2] x86/intel_rdt: Update task closid immediately on CPU in rmdir and unmount

2016-11-25 Thread Fenghua Yu
On Wed, Nov 23, 2016 at 03:23:50PM +0100, Thomas Gleixner wrote: > On Fri, 18 Nov 2016, Fenghua Yu wrote: > Reworked untested patch below. The reworked patch passes my baisc tests. But I have a quesiton on rdt_move_group_tasks() (please see below). > > Thanks, > > tglx > > 8<

Xmas Offer

2016-11-25 Thread Mrs Julie Leach
You are a recipient to Mrs Julie Leach Donation of $3 million USD. Contact ( julieleac...@gmail.com ) for claims.

Re: [PATCH net] mvpp2: use correct size for memset

2016-11-25 Thread David Miller
From: Arnd Bergmann Date: Thu, 24 Nov 2016 17:28:12 +0100 > gcc-7 detects a short memset in mvpp2, introduced in the original > merge of the driver: > > drivers/net/ethernet/marvell/mvpp2.c: In function 'mvpp2_cls_init': > drivers/net/ethernet/marvell/mvpp2.c:3296:2: error: 'memset' used with le

Re: [PATCH] irda: fix overly long udelay()

2016-11-25 Thread David Miller
From: Arnd Bergmann Date: Thu, 24 Nov 2016 17:26:22 +0100 > irda_get_mtt() returns a hardcoded '1' in some cases, > and with gcc-7, we get a build error because this triggers a > compile-time check in udelay(): > > drivers/net/irda/w83977af_ir.o: In function `w83977af_hard_xmit': > w83977af_

RE: [patch v3 1/1] platform/x86: move module mlx-platform from arch/x86 to drivers/platform/x86

2016-11-25 Thread Vadim Pasternak
> -Original Message- > From: Andy Shevchenko [mailto:andy.shevche...@gmail.com] > Sent: Friday, November 25, 2016 12:03 PM > To: Vadim Pasternak > Cc: Thomas Gleixner ; dvh...@infradead.org; platform- > driver-...@vger.kernel.org; x...@kernel.org; linux-kernel@vger.kernel.org; > j...@res

Re: [PATCH] net: ieee802154: drop duplicate header delay.h

2016-11-25 Thread David Miller
From: Geliang Tang Date: Thu, 24 Nov 2016 21:58:32 +0800 > Drop duplicate header delay.h from adf7242.c. > > Signed-off-by: Geliang Tang Applied.

Re: [PATCH] net/mlx5: drop duplicate header delay.h

2016-11-25 Thread David Miller
From: Geliang Tang Date: Thu, 24 Nov 2016 21:58:33 +0800 > Drop duplicate header delay.h from mlx5/core/main.c. > > Signed-off-by: Geliang Tang Applied.

Re: [PATCH] ibmvnic: drop duplicate header seq_file.h

2016-11-25 Thread David Miller
From: Geliang Tang Date: Thu, 24 Nov 2016 21:58:29 +0800 > Drop duplicate header seq_file.h from ibmvnic.c. > > Signed-off-by: Geliang Tang Applied.

Re: [patch] net/mlx5: remove a duplicate condition

2016-11-25 Thread David Miller
From: Dan Carpenter Date: Thu, 24 Nov 2016 14:03:45 +0300 > We verified that MLX5_FLOW_CONTEXT_ACTION_COUNT was set on the first > line of the function so we don't need to check again here. > > Signed-off-by: Dan Carpenter Applied.

Re: [PATCH 0/4] net: thunderx: Support for 80xx, RED, PFC e.t.c

2016-11-25 Thread David Miller
From: sunil.kovv...@gmail.com Date: Thu, 24 Nov 2016 14:47:59 +0530 > This patch series adds support for SLM modules present on 80xx > silicon, enables ramdom early discard, backpressure generation, > PFC and some ethtool changes to display supported link modes e.t.c. Series applied to net-next.

[PATCH v4 1/2] perf sdt: add scanning of sdt probles arguments

2016-11-25 Thread Alexis Berlemont
During a "perf buildid-cache --add" command, the section ".note.stapsdt" of the "added" binary is scanned in order to list the available SDT markers available in a binary. The parts containing the probes arguments were left unscanned. The whole section is now parsed; the probe arguments are extrac

[PATCH v4 2/2] perf probe: add sdt probes arguments into the uprobe cmd string

2016-11-25 Thread Alexis Berlemont
An sdt probe can be associated with arguments but they were not passed to the user probe tracing interface (uprobe_events); this patch adapts the sdt argument descriptors according to the uprobe input format. As the uprobe parser does not support scaled address mode, perf will skip arguments which

[PATCH v4 0/2] perf probe: add sdt probes arguments into the uprobe cmd string

2016-11-25 Thread Alexis Berlemont
Hi Arnaldo, Here is another patch set which fixes the issues you noticed. Thank you. Alexis. Alexis Berlemont (2): perf sdt: add scanning of sdt probles arguments perf probe: add sdt probes arguments into the uprobe cmd string tools/perf/arch/x86/util/perf_regs.c | 18 tools/perf/ut

Re: [PATCH] x86/kbuild: enable modversions for symbols exported from asm

2016-11-25 Thread Nicholas Piggin
On Fri, 25 Nov 2016 10:00:46 -0800 Linus Torvalds wrote: > On Thu, Nov 24, 2016 at 4:40 PM, Nicholas Piggin wrote: > >> > >> Yes, manual "marking" is never going to be a viable solution. > > > > I guess it really depends on how exactly you want to use it. For distros > > that do stable ABI but

Re: [PATCH RFC] hlist_add_tail_rcu disable sparse warning

2016-11-25 Thread David Miller
From: "Michael S. Tsirkin" Date: Wed, 23 Nov 2016 22:48:19 +0200 > I would appreciate review to confirm the function doesn't > do anything unsafe though. > > In particular, should this use __hlist_for_each_rcu instead? > I note that __hlist_for_each_rcu does rcu_dereference > internally, which i

Re: [PATCH v18 0/4] Introduce usb charger framework to deal with the usb gadget power negotation

2016-11-25 Thread NeilBrown
On Sat, Nov 26 2016, Mark Brown wrote: > [ Unknown signature status ] > On Tue, Nov 22, 2016 at 09:40:07AM +1100, NeilBrown wrote: > >> I agree that the question of where the responsibility for information >> aggregation lies is open for discussion. If fact all details on how >> things should work

Re: [PATCH] cpuset: Remove unused 'struct cpuset*' variable

2016-11-25 Thread Zefan Li
On 2016/11/25 17:46, Arnd Bergmann wrote: > On Friday, November 25, 2016 1:46:04 PM CET Zefan Li wrote: >> On 2016/11/25 12:55, Kirtika Ruchandani wrote: >>> 'struct cpuset* cs' that is set but not used, was introduced in commit >>> 1f7dd3e5a6e4 ("cgroup: fix handling of multi-destination migration

Re: [lustre-devel] [PATCH 09/10] staging: lustre: libcfs: remove zero comparisons in headers

2016-11-25 Thread Dilger, Andreas
On Nov 18, 2016, at 09:48, James Simmons wrote: > > Remove the zero comparisions in the libcfs headers. > > Signed-off-by: James Simmons > --- > .../lustre/include/linux/libcfs/libcfs_crypto.h|2 +- > .../lustre/include/linux/libcfs/libcfs_fail.h |4 +- > .../lustre/include/linux

Re: Enabling peer to peer device transactions for PCIe devices

2016-11-25 Thread Alex Deucher
On Fri, Nov 25, 2016 at 2:34 PM, Jason Gunthorpe wrote: > On Fri, Nov 25, 2016 at 12:16:30PM -0500, Serguei Sagalovitch wrote: > >> b) Allocation may not have CPU address at all - only GPU one. > > But you don't expect RDMA to work in the case, right? > > GPU people need to stop doing this windo

Re: [PATCH] ARM: pxa: ezx: fix a910 camera data

2016-11-25 Thread Stefan Schmidt
Hello. On 25.11.2016 20:53, Robert Jarzmik wrote: > Stefan Schmidt writes: > >> Hello. >> >> On 24.11.2016 17:29, Arnd Bergmann wrote: >>> The camera_supply_dummy_device definition is shared between a780 and a910, >>> but only provided when the first is enabled and fails to build for a >>> confi

Re: [PATCH 3/6] dax: add tracepoint infrastructure, PMD tracing

2016-11-25 Thread Linus Torvalds
On Fri, Nov 25, 2016 at 1:48 PM, Theodore Ts'o wrote: > > There is a reason why people want to be able to do that, and that's > because kprobes doesn't give you access to the arguments and return > codes to the functions. Honestly, that's simply not a good reason. What if everybody did this? Do

Re: [PATCH] ARM: lpc32xx: drop duplicate header device.h

2016-11-25 Thread Arnd Bergmann
On Monday, November 21, 2016 3:59:05 PM CET Sylvain Lemieux wrote: > On Fri, 2016-11-18 at 22:21 +0800, Geliang Tang wrote: > > Drop duplicate header device.h from phy3250.c. > > > > Signed-off-by: Geliang Tang > Reviewed-by: Sylvain Lemieux > Applied into arm-soc/next/fixes-non-critical, I s

Re: [PATCH] ARM: ixp4xx: drop duplicate header gpio.h

2016-11-25 Thread Arnd Bergmann
On Friday, November 18, 2016 10:21:10 PM CET Geliang Tang wrote: > Drop duplicate header gpio.h from dsmg600-setup.c. > > Signed-off-by: Geliang Tang > Applied to arm-soc/next/fixes-non-critical, thanks Arnd

Re: [GIT PULL] ARM: at91: drivers for 4.10

2016-11-25 Thread Arnd Bergmann
On Monday, November 14, 2016 7:44:38 PM CET Alexandre Belloni wrote: > Drivers for 4.10: > > - few fixes for the memory drivers > - minimal security module driver > - support for the Secure SRAM > For reference, Olof pulled this into next/drivers on Nov 18. Arnd

Re: [lustre-devel] [patch] staging: lustre/ptlrpc: small leak on allocation failure

2016-11-25 Thread Dilger, Andreas
On Nov 24, 2016, at 04:12, Dan Carpenter wrote: > > We should free "desc" before returning NULL. > > Signed-off-by: Dan Carpenter Reviewed-by: Andreas Dilger > diff --git a/drivers/staging/lustre/lustre/ptlrpc/client.c > b/drivers/staging/lustre/lustre/ptlrpc/client.c > index ac959ef..80474

Re: [GIT PULL]: ARM ARTPEC changes for 4.10

2016-11-25 Thread Arnd Bergmann
On Thursday, November 10, 2016 4:09:31 PM CET Jesper Nilsson wrote: > Please pull the below signed tag for a trio of minor changes > adding PCIe for the ARM ARTPEC SoC. > > Thanks! > > /Jesper > > The following changes since commit bc33b0ca11e3df46a4fa7639ba488c9d4911: > > Linux 4.9-rc4 (

Re: [PATCH] orangefs: Axe some dead code

2016-11-25 Thread Mike Marshall
We're on rc7 now. Linus said in LWN that there might be a rc8 this time. I'll try to get this pulled in 4.9-rc8 I hope, or sometime in 4.10... it is just a few lines of code that I don't think can be reached. Sorry for the confusion. -Mike On Fri, Nov 25, 2016 at 4:51 PM, Dan Carpenter wrote: >

Re: [PATCH net-next 1/5] net: mvneta: Use cacheable memory to store the rx buffer virtual address

2016-11-25 Thread kbuild test robot
Hi Gregory, [auto build test ERROR on ] url: https://github.com/0day-ci/linux/commits/Gregory-CLEMENT/Support-Armada-37xx-SoC-ARMv8-64-bits-in-mvneta-driver/20161126-050621 base: config: parisc-allmodconfig (attached as .config) compiler: hppa-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705

Re: RFC: documentation of the autogroup feature [v2]

2016-11-25 Thread Peter Zijlstra
On Fri, Nov 25, 2016 at 05:33:23PM +0100, Michael Kerrisk (man-pages) wrote: > Okay -- you're really quite the ASCII artist. And somehow, > I think you needed to compose the mail in LaTeX. But thanks > for the detail. It's helpful, for me at least. Hehe, its been a while since I did LaTeX, so I'd

Re: [RESEND PATCH] arm: assabet_defconfig: disable IDE subsystem

2016-11-25 Thread Arnd Bergmann
On Monday, October 31, 2016 7:24:46 PM CET Bartlomiej Zolnierkiewicz wrote: > On Monday, October 31, 2016 07:14:13 PM Bartlomiej Zolnierkiewicz wrote: > > On Monday, October 31, 2016 03:46:22 PM Russell King - ARM Linux wrote: > > > On Wed, Oct 26, 2016 at 07:01:12PM +0200, Bartlomiej Zolnierkiewic

Re: [PATCH v2] staging: lustre: osc: Performance tune for LRU

2016-11-25 Thread Dan Carpenter
On Wed, Nov 23, 2016 at 06:01:45PM -0500, James Simmons wrote: > From: Jinshan Xiong > > Early launch page LRU work in osc_io_rw_iter_init(); > Change the page LRU shrinking policy by OSC attributes; > Delete the contented lock osc_object::oo_seatbelt > The cli_name() stuff should be in a separ

Re: [PATCH] ARM: pxa: ezx: fix a910 camera data

2016-11-25 Thread Arnd Bergmann
On Friday, November 25, 2016 8:48:53 PM CET Robert Jarzmik wrote: > Arnd Bergmann writes: > > > The camera_supply_dummy_device definition is shared between a780 and a910, > > but only provided when the first is enabled and fails to build for a > > configuration with only a910: > > > > arch/arm/ma

Re: [PATCH v3 2/4] Documentation/atomic_ops.txt: convert to ReST markup

2016-11-25 Thread Peter Zijlstra
On Fri, Nov 25, 2016 at 03:59:45PM +0100, Silvio Fricke wrote: > ... and move to core-api folder. > > Signed-off-by: Silvio Fricke > --- > Documentation/atomic_ops.txt => Documentation/core-api/atomic_ops.rst | 777 > +--- > Do

Cash Grant

2016-11-25 Thread Mrs Julie Leach
You are a recipient to Mrs Julie Leach Donation of $3 million USD. Contact (julieleac...@gmail.com ) for claims.

[PATCH] uio: pruss: add clk_disable()

2016-11-25 Thread Alexey Khoroshilov
pruss_probe() enables gdev->pruss_clk, but there is no clk_disable() in the driver. The patch adds clk_disable() to pruss_cleanup() and error handling for clk_enable(). Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/uio/uio_pruss.c

Re: mm: BUG in pgtable_pmd_page_dtor

2016-11-25 Thread Andrey Ryabinin
On 11/25/2016 05:08 PM, Vlastimil Babka wrote: > On 11/25/2016 02:07 PM, Kirill A. Shutemov wrote: >>> --- a/mm/debug.c >>> +++ b/mm/debug.c >>> @@ -59,6 +59,10 @@ void __dump_page(struct page *page, const char *reason) >>> >>> pr_emerg("flags: %#lx(%pGp)\n", page->flags, &page->flags); >>>

Re: [PATCH] orangefs: Axe some dead code

2016-11-25 Thread Dan Carpenter
On Thu, Nov 24, 2016 at 07:31:11AM -0500, Mike Marshall wrote: > This seems like a good and proper patch to me, and simple too. > But like all changes, it needs tested. While I was testing it, I > discovered a regression in the associated userspace code. I > "bisected" (we use SVN for the userspace

Re: RFC: documentation of the autogroup feature [v2]

2016-11-25 Thread Peter Zijlstra
On Fri, Nov 25, 2016 at 09:54:05PM +0100, Michael Kerrisk (man-pages) wrote: > So, part of what I was struggling with was what you meant by cfs-cgroup. > Do you mean the CFS bandwidth control features added in Linux 3.2? Nope, /me digs around for a bit... around here I suppose: 68318b8e0b61 ("Ho

[GIT PULL] ACPI fixes for v4.9-rc7

2016-11-25 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ acpi-4.9-rc7 with top-most commit 7e5c07af8693e72b23aefb70da88b31b30c35b22 Merge branches 'acpi-sleep-fixes' and 'acpi-wdat-fixes' on top of commit 9c763584b7c8911106bb77af7e648bef09af9d80

Re: [PATCH 3/6] dax: add tracepoint infrastructure, PMD tracing

2016-11-25 Thread Theodore Ts'o
On Fri, Nov 25, 2016 at 11:51:26AM -0800, Linus Torvalds wrote: > We do have filesystem code that is just disgusting. As an example: > fs/afs/ tends to have these crazy "_enter()/_exit()" macros in every > single function. If you want that, use the function tracer. That seems > to be just debugging

[PATCH] perf kmem stat: Track memory freed

2016-11-25 Thread David Ahern
Track freed memory as well as allocations and show the net in the summary. Signed-off-by: David Ahern --- tools/perf/builtin-kmem.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tools/perf/builtin-kmem.c b/tools/perf/builtin-kmem.c index f184ecf9b0b3..cd662dd8e

Re: [PATCH 0/3] virtio/vringh: kill off ACCESS_ONCE()

2016-11-25 Thread Christian Borntraeger
On 11/25/2016 10:08 PM, Michael S. Tsirkin wrote: > On Fri, Nov 25, 2016 at 05:49:45PM +0100, Christian Borntraeger wrote: >> On 11/25/2016 05:17 PM, Peter Zijlstra wrote: >>> On Fri, Nov 25, 2016 at 04:10:04PM +, Mark Rutland wrote: On Fri, Nov 25, 2016 at 04:21:39PM +0100, Dmitry Vyukov

[PATCH 5/6] perf kmem: Add option to specify time window of interest

2016-11-25 Thread David Ahern
From: David Ahern Add option to allow user to control analysis window. e.g., collect data for time window and analyze a segment of interest within that window. Signed-off-by: David Ahern --- tools/perf/Documentation/perf-kmem.txt | 7 +++ tools/perf/builtin-kmem.c | 24 ++

[PATCH 3/6] perf script: Add option to specify time window of interest

2016-11-25 Thread David Ahern
From: David Ahern Add option to allow user to control analysis window. e.g., collect data for some amount of time and analyze a segment of interest within that window. Signed-off-by: David Ahern --- tools/perf/Documentation/perf-script.txt | 7 +++ tools/perf/builtin-script.c

[PATCH 6/6] perf report: Add option to specify time window of interest

2016-11-25 Thread David Ahern
From: David Ahern Add option to allow user to control analysis window. e.g., collect data for time window and analyze a segment of interest within that window. Signed-off-by: David Ahern --- tools/perf/Documentation/perf-report.txt | 7 +++ tools/perf/builtin-report.c | 14 ++

[PATCH 4/6] perf sched timehist: Add option to specify time window of interest

2016-11-25 Thread David Ahern
From: David Ahern Add option to allow user to control analysis window. e.g., collect data for time window and analyze a segment of interest within that window. Signed-off-by: David Ahern --- tools/perf/Documentation/perf-sched.txt | 8 ++ tools/perf/builtin-sched.c | 51 +

Re: [GIT PULL] STi defconfig fix for v4.9-rcs

2016-11-25 Thread Arnd Bergmann
On Wednesday, November 23, 2016 9:59:14 AM CET Patrice Chotard wrote: > STi defconfig fix: > > Enable HVA (Hardware Video Accelerator) video encoder > driver for STMicroelectronics SoC. Defconfig changes like this don't seem particularly urgent. Unless there is a good reason, I'd suggest putting

[PATCH 2/6] perf tool: Move parse_nsec_time to time-utils.c

2016-11-25 Thread David Ahern
From: David Ahern Code move only; no functional change intended. Signed-off-by: David Ahern --- tools/perf/util/time-utils.c | 35 ++- tools/perf/util/time-utils.h | 2 ++ tools/perf/util/util.c | 33 - tools/perf/util/util

[PATCH 1/6] perf tool: Add time-based utility functions

2016-11-25 Thread David Ahern
From: David Ahern Add function to parse a user time string of the form , where start and stop are time in sec.nsec format. Both start and stop times are optional. Add function to determine if a sample time is within a given time time window of interest. Signed-off-by: David Ahern --- tools/pe

[PATCH 0/6] perf: Add option to specify time window of interest

2016-11-25 Thread David Ahern
From: David Ahern This series allows users to collect data and analyze a time window of interest within the file. David Ahern (6): perf tool: Add time-based utility functions perf tool: Move parse_nsec_time to time-utils.c perf script: Add option to specify time window of interest perf s

Re: [GIT PULL] STi DT fix for v4.9-rcs round 2

2016-11-25 Thread Arnd Bergmann
On Wednesday, November 23, 2016 9:59:16 AM CET Patrice Chotard wrote: > STi DT fix: > > The I2C nodes are missing #address-cells and #size-cells. > This is causing warning at device tree compilation when > some I2C device sub-nodes are defined. > > Pulled into fixes branch, thanks! Arn

Re: [PATCH] ARM: pxa: ezx: fix a910 camera data

2016-11-25 Thread Harald Welte
Hi Stefan, On Thu, Nov 24, 2016 at 11:10:09PM +0100, Stefan Schmidt wrote: > Daniel, Harald, if one of you is still interested in these and what to > pick up the work again, please speak up now. :) I have no interest, motivtaion nor time to still work on ezx support. I guess the number of people

Re: [PATCH] cxgb4: fix memory leak on txq_info

2016-11-25 Thread Colin Ian King
On 25/11/16 21:10, David Miller wrote: > From: Colin King > Date: Wed, 23 Nov 2016 11:02:44 + > >> From: Colin Ian King >> >> Currently if txq_info->uldtxq cannot be allocated then >> txq_info->txq is being kfree'd (which is redundant because it >> is NULL) instead of txq_info. Fix this by i

Re: [PATCH] xen-scsifront: Add a missing call to kfree

2016-11-25 Thread Dan Carpenter
On Mon, Nov 21, 2016 at 07:01:36AM +0100, Juergen Gross wrote: > On 19/11/16 19:22, Quentin Lambert wrote: > > Most error branches following the call to kmalloc contain > > a call to kfree. This patch add these calls where they are > > missing. > > > > This issue was found with Hector. > > > > Si

[POC/RFC PATCH] overlayfs: constant inode numbers

2016-11-25 Thread Miklos Szeredi
Here's a really preliminary patch to allow inode numbers to be constant across copy ups and be consistent between st_ino and d_ino. It only works if underlying lower and upper dirs are all on the same filesystem (so there's only a single inode namespace to deal with). Performance of readdir is pr

Re: [PATCH] drivers: net: davinci_mdio: use builtin_platform_driver

2016-11-25 Thread David Miller
From: Geliang Tang Date: Wed, 23 Nov 2016 22:45:43 +0800 > @@ -536,11 +536,7 @@ static struct platform_driver davinci_mdio_driver = { > .remove = davinci_mdio_remove, > }; > > -static int __init davinci_mdio_init(void) > -{ > - return platform_driver_register(&davinci_mdio_driver); >

[mm] 68ab21008a: BUG:unable_to_handle_kernel

2016-11-25 Thread kernel test robot
FYI, we noticed the following commit: commit 68ab21008a656abeb1fe2c7117a67eeab4d68ded ("mm: ovl: copy-up on MAP_SHARED") url: https://github.com/0day-ci/linux/commits/Miklos-Szeredi/overlayfs-fix-ro-rw-fd-data-inconsistecies/20161124-233654 base: https://git.kernel.org/pub/scm/linux/kernel/git/m

  1   2   3   4   5   6   7   8   9   >