[PATCH] drivers: hwmon: fix ptr_ret.cocci warnings

2017-01-09 Thread Julia Lawall
Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci CC: Jaghathiswari Rankappagounder Natarajan Signed-off-by: Julia Lawall Signed-off-by: Fengguang Wu ---

[PATCH] drivers: hwmon: fix device_node_continue.cocci warnings

2017-01-09 Thread Julia Lawall
Device node iterators put the previous value of the index variable, so an explicit put causes a double put. Generated by: scripts/coccinelle/iterators/device_node_continue.cocci CC: Jaghathiswari Rankappagounder Natarajan Signed-off-by: Julia Lawall

[PATCH] drivers: hwmon: fix semicolon.cocci warnings

2017-01-09 Thread Julia Lawall
Remove unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci CC: Jaghathiswari Rankappagounder Natarajan Signed-off-by: Julia Lawall Signed-off-by: Fengguang Wu --- url:

Re: [Resend][PATCH 2/3] PM / core / docs: Convert sleep states API document to reST

2017-01-09 Thread Lukas Wunner
Hi Rafael, I've perused devices.rst up until section "Entering System Suspend" so far, about half of the document. Here are my comments, I'll read the remainder of the document later. On Fri, Jan 06, 2017 at 02:41:38AM +0100, Rafael J. Wysocki wrote: > +.. |struct| replace:: :c:type:`struct`

[PATCHv14 2/3] IB/core: added support to use rdma cgroup controller

2017-01-09 Thread Parav Pandit
Added support APIs for IB core to register/unregister every IB/RDMA device with rdma cgroup for tracking rdma resources. IB core registers with rdma cgroup controller. Added support APIs for uverbs layer to make use of rdma controller. Added uverbs layer to perform resource charge/uncharge

[PATCHv14 3/3] rdmacg: Added documentation for rdmacg

2017-01-09 Thread Parav Pandit
Added documentation for v1 and v2 version describing high level design and usage examples on using rdma controller. Signed-off-by: Parav Pandit --- Documentation/cgroup-v1/rdma.txt | 109 +++ Documentation/cgroup-v2.txt | 38

[PATCHv14 1/3] rdmacg: Added rdma cgroup controller

2017-01-09 Thread Parav Pandit
Added rdma cgroup controller that does accounting, limit enforcement on rdma/IB resources. Added rdma cgroup header file which defines its APIs to perform charging/uncharging functionality. It also defined APIs for RDMA/IB stack for device registration. Devices which are registered will

[PATCHv14 0/3] rdmacg: IB/core: rdma controller support

2017-01-09 Thread Parav Pandit
Patchset is compiled and tested against below Tejun's cgroup tree using cgroup v1 and v2 mode. URL: git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git Branch: for-4.11 Overview: Currently user space applications can easily take away the rdma device specific resources such as AH, CQ, QP,

[PATCH linux v1 2/2] drivers: hwmon: hwmon driver for ASPEED AST2400/2500 PWM and Fan tach controller

2017-01-09 Thread Jaghathiswari Rankappagounder Natarajan
The ASPEED AST2400/2500 PWM controller supports 8 PWM output ports. The ASPEED AST2400/2500 Fan tach controller supports 16 tachometer inputs. PWM clock types M, N and 0 are three types just to have three independent PWM sources. The device driver matches on the device tree node. The configuration

[PATCH linux v1 0/2] Support for ASPEED AST2400/AST2500 PWM and Fan Tach driver

2017-01-09 Thread Jaghathiswari Rankappagounder Natarajan
Support for ASPEED AST2400/AST2500 PWM and Fan Tach driver Support for ASPEED AST2400/AST2500 PWM and Fan Tach driver. The AST2400/AST2500 PWM controller can support 8 PWM output ports. The AST2400/AST2500 Fan Tach controller can support 16 tachometer inputs. There can be three different PWM

Re: kmod: add a sanity check on module loading

2017-01-09 Thread Luis R. Rodriguez
On Fri, Jan 06, 2017 at 04:53:54PM -0500, Jessica Yu wrote: > +++ Luis R. Rodriguez [06/01/17 21:36 +0100]: > > On Tue, Jan 03, 2017 at 10:34:53AM +1030, Rusty Russell wrote: > > > "Luis R. Rodriguez" writes: > > > > Right, out of ~350 request_module() calls (not included try

[PATCH] kernel-doc: properly document array arguments of function

2017-01-09 Thread Gabriel Krisman Bertazi
Documentation for array parameters passed in a function, like the first argument in the function below, weren't getting exported in the rst format, although they work fine for html and pdf formats: void drm_clflush_pages(struct page * pages[], unsigned long num_pages) That's because the string

Re: [PATCHv13 0/3] rdmacg: IB/core: rdma controller support

2017-01-09 Thread Tejun Heo
On Mon, Jan 09, 2017 at 02:01:26PM -0600, Parav Pandit wrote: > I will generate new patch in sometime this week with for-4.11 to > address comments and rebase. > I will be renaming cgroup_rdma.c to kernel/cgroup/rdma.c (similar to pids.c) > > I will keep the header file name

Re: [PATCHv13 0/3] rdmacg: IB/core: rdma controller support

2017-01-09 Thread Parav Pandit
Hi Tejun, On Mon, Jan 9, 2017 at 7:02 AM, Tejun Heo wrote: > On Fri, Dec 02, 2016 at 07:07:14PM +, Parav Pandit wrote: >> Patch is generated and tested against below Doug's linux-rdma >> git tree. >> URL: git://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma.git >>

Re: [RFC 10/10] kmod: add a sanity check on module loading

2017-01-09 Thread Luis R. Rodriguez
On Tue, Jan 10, 2017 at 05:17:22AM +1030, Rusty Russell wrote: > "Luis R. Rodriguez" writes: > > On Tue, Jan 03, 2017 at 10:34:53AM +1030, Rusty Russell wrote: > >> "Luis R. Rodriguez" writes: > >> > Right, out of ~350 request_module() calls (not included

Re: [PULL] Documentation changes for 4.10

2017-01-09 Thread Geert Uytterhoeven
Hi Jon, Jani, On Sun, Dec 11, 2016 at 11:00 PM, Jonathan Corbet wrote: > Jani Nikula (13): > Documentation/admin-guide: split the kernel parameter list to a > separate file > Documentation/admin-guide: split the device list to a separate file Please note that in the

[PATCH v4 2/3] watchdog: introduce watchdog.open_timeout commandline parameter

2017-01-09 Thread Rasmus Villemoes
The watchdog framework takes care of feeding a hardware watchdog until userspace opens /dev/watchdogN. If that never happens for some reason (buggy init script, corrupt root filesystem or whatnot) but the kernel itself is fine, the machine stays up indefinitely. This patch allows setting an upper

[PATCH v4 3/3] watchdog: introduce CONFIG_WATCHDOG_OPEN_TIMEOUT

2017-01-09 Thread Rasmus Villemoes
This allows setting a default value for the watchdog.open_timeout commandline parameter via Kconfig. Signed-off-by: Rasmus Villemoes --- Documentation/watchdog/watchdog-parameters.txt | 9 + drivers/watchdog/Kconfig | 9 +

[PATCH v4 0/3] watchdog: allow setting deadline for opening /dev/watchdogN

2017-01-09 Thread Rasmus Villemoes
If a watchdog driver tells the framework that the device is running, the framework takes care of feeding the watchdog until userspace opens the device. If the userspace application which is supposed to do that never comes up properly, the watchdog is fed indefinitely by the kernel. This can be

Re: [PATCH] Documentation/livepatch: remove the limitation for schedule() patching

2017-01-09 Thread Josh Poimboeuf
On Mon, Jan 09, 2017 at 01:50:19PM +0100, Miroslav Benes wrote: > There is still one thing which I don't understand. Why __schedule() > (patched or the original) is not on the stack. The actual "sleep" > should happen in __switch_to_asm() which is C function now. And there is a > call to

Re: [PATCHv13 0/3] rdmacg: IB/core: rdma controller support

2017-01-09 Thread Tejun Heo
On Fri, Dec 02, 2016 at 07:07:14PM +, Parav Pandit wrote: > Patch is generated and tested against below Doug's linux-rdma > git tree. > URL: git://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma.git > Branch: master > > Patchset is also compiled and tested against below Tejun's cgroup

Re: [PATCHv13 2/3] IB/core: added support to use rdma cgroup controller

2017-01-09 Thread Tejun Heo
On Fri, Dec 02, 2016 at 07:07:16PM +, Parav Pandit wrote: > Added support APIs for IB core to register/unregister every IB/RDMA > device with rdma cgroup for tracking rdma resources. > IB core registers with rdma cgroup controller. > Added support APIs for uverbs layer to make use of rdma

Re: [PATCHv13 1/3] rdmacg: Added rdma cgroup controller

2017-01-09 Thread Tejun Heo
Hello, Parav. Looks good to me. Just one minor nit below. > +static void rdmacg_uncharge_hirerchy(struct rdma_cgroup *cg, hierarchy Other than that, looks good to me. Thanks. -- tejun -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to

Re: [PATCH v2 7/7] uapi: export all headers under uapi directories

2017-01-09 Thread Christoph Hellwig
On Fri, Jan 06, 2017 at 10:43:59AM +0100, Nicolas Dichtel wrote: > Regularly, when a new header is created in include/uapi/, the developer > forgets to add it in the corresponding Kbuild file. This error is usually > detected after the release is out. > > In fact, all headers under uapi

Re: [PATCH] Documentation/livepatch: remove the limitation for schedule() patching

2017-01-09 Thread Miroslav Benes
On Fri, 6 Jan 2017, Josh Poimboeuf wrote: > On Fri, Jan 06, 2017 at 03:00:45PM +0100, Miroslav Benes wrote: > > > > 2. reversion of the process does not work as expected. The kernel > > crashes after the removal of the module. A task very likely slept in > > schedule and was not migrated

Re: [PATCH v2 1/7] arm: put types.h in uapi

2017-01-09 Thread Russell King - ARM Linux
On Mon, Jan 09, 2017 at 12:33:02PM +0100, Arnd Bergmann wrote: > On Friday, January 6, 2017 10:43:53 AM CET Nicolas Dichtel wrote: > > > > diff --git a/arch/arm/include/asm/types.h b/arch/arm/include/asm/types.h > > index a53cdb8f068c..c48fee3d7b3b 100644 > > --- a/arch/arm/include/asm/types.h >

Re: [PATCH v2 7/7] uapi: export all headers under uapi directories

2017-01-09 Thread Russell King - ARM Linux
On Fri, Jan 06, 2017 at 10:43:59AM +0100, Nicolas Dichtel wrote: > diff --git a/arch/arm/include/uapi/asm/Kbuild > b/arch/arm/include/uapi/asm/Kbuild > index 46a76cd6acb6..607f702c2d62 100644 > --- a/arch/arm/include/uapi/asm/Kbuild > +++ b/arch/arm/include/uapi/asm/Kbuild > @@ -1,23 +1,6 @@ > #

[PATCH 02/20] 32-bit ABI: introduce ARCH_32BIT_OFF_T config option

2017-01-09 Thread Yury Norov
All new 32-bit architectures should have 64-bit off_t type, but existing architectures has 32-bit ones. To handle it, new config option is added to arch/Kconfig that defaults ARCH_32BIT_OFF_T to be disabled for non-64 bit architectures. All existing 32-bit architectures enable it explicitly here.

[PATCH 19/20] arm64:ilp32: add vdso-ilp32 and use for signal return

2017-01-09 Thread Yury Norov
From: Philipp Tomsich ILP32 VDSO exports next symbols: __kernel_rt_sigreturn; __kernel_gettimeofday; __kernel_clock_gettime; __kernel_clock_getres. What shared object to use, kernel selects depending on result of is_ilp32_compat_task() in

Re: [PATCH v2 3/7] nios2: put setup.h in uapi

2017-01-09 Thread Arnd Bergmann
On Friday, January 6, 2017 10:43:55 AM CET Nicolas Dichtel wrote: > diff --git a/arch/nios2/include/uapi/asm/setup.h > b/arch/nios2/include/uapi/asm/setup.h > new file mode 100644 > index ..8d8285997ba8 > --- /dev/null > +++ b/arch/nios2/include/uapi/asm/setup.h > @@ -0,0 +1,6 @@ >

[PATCH 16/20] arm64: signal32: move ilp32 and aarch32 common code to separated file

2017-01-09 Thread Yury Norov
Signed-off-by: Yury Norov --- arch/arm64/include/asm/signal32.h| 3 + arch/arm64/include/asm/signal32_common.h | 27 +++ arch/arm64/kernel/Makefile | 2 +- arch/arm64/kernel/signal32.c | 107

[PATCH 13/20] arm64: ilp32: share aarch32 syscall handlers

2017-01-09 Thread Yury Norov
off_t is passed in register pair just like in aarch32. In this patch corresponding aarch32 handlers are shared to ilp32 code. Signed-off-by: Yury Norov --- arch/arm64/kernel/Makefile | 1 + arch/arm64/kernel/entry32.S| 80

Re: [PATCH v2 0/7] uapi: export all headers under uapi directories

2017-01-09 Thread Arnd Bergmann
On Friday, January 6, 2017 10:43:52 AM CET Nicolas Dichtel wrote: > Here is the v2 of this series. The first 5 patches are just cleanup: some > exported headers were still under a non-uapi directory. Since this is meant as a cleanup, I commented on this to point out a cleaner way to do the same.

Re: [PATCH v2 1/7] arm: put types.h in uapi

2017-01-09 Thread Arnd Bergmann
On Friday, January 6, 2017 10:43:53 AM CET Nicolas Dichtel wrote: > > diff --git a/arch/arm/include/asm/types.h b/arch/arm/include/asm/types.h > index a53cdb8f068c..c48fee3d7b3b 100644 > --- a/arch/arm/include/asm/types.h > +++ b/arch/arm/include/asm/types.h > @@ -1,40 +1,6 @@ > #ifndef

[PATCH 17/20] arm64: ilp32: introduce ilp32-specific handlers for sigframe and ucontext

2017-01-09 Thread Yury Norov
From: Andrew Pinski ILP32 uses AARCH32 compat structures and syscall handlers for signals. But ILP32 struct rt_sigframe and ucontext differs from both LP64 and AARCH32. So some specific mechanism is needed to take care of it. Signed-off-by: Andrew Pinski

[PATCH 20/20] arm64:ilp32: add ARM64_ILP32 to Kconfig

2017-01-09 Thread Yury Norov
From: Andrew Pinski This patch adds the config option for ILP32. Signed-off-by: Andrew Pinski Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner

[PATCH 15/20] arm64: signal: share lp64 signal routines to ilp32

2017-01-09 Thread Yury Norov
After that, it will be possible to reuse it in ilp32. Signed-off-by: Yury Norov --- arch/arm64/include/asm/signal_common.h | 33 arch/arm64/kernel/signal.c | 93 +- 2 files changed, 92 insertions(+), 34

[PATCH 14/20] arm64: ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it

2017-01-09 Thread Yury Norov
From: Andrew Pinski Add a separate syscall-table for ILP32, which dispatches either to native LP64 system call implementation or to compat-syscalls, as appropriate. Signed-off-by: Andrew Pinski Signed-off-by: Yury Norov

[PATCH 09/20] arm64: introduce is_a32_task and is_a32_thread (for AArch32 compat)

2017-01-09 Thread Yury Norov
Based on patch of Andrew Pinski. This patch introduces is_a32_compat_task and is_a32_thread so it is easier to say this is a a32 specific thread or a generic compat thread/task. Corresponding functions are located in to avoid mess in headers. Some files include both and , and this is wrong

[PATCH 05/20] arm64: rename COMPAT to AARCH32_EL0 in Kconfig

2017-01-09 Thread Yury Norov
From: Andrew Pinski In this patchset ILP32 ABI support is added. Additionally to AARCH32, which is binary-compatible with ARM, ILP32 is (mostly) ABI-compatible. >From now, AARCH32_EL0 (former COMPAT) config option means the support of AARCH32 userspace, ARM64_ILP32 -

[PATCH 07/20] arm64:uapi: set __BITS_PER_LONG correctly for ILP32 and LP64

2017-01-09 Thread Yury Norov
From: Andrew Pinski Define __BITS_PER_LONG depending on the ABI used (i.e. check whether __ILP32__ or __LP64__ is defined). This is necessary for glibc to determine the appropriate type definitions for the system call interface. Signed-off-by: Andrew Pinski

[PATCH 10/20] arm64: ilp32: add is_ilp32_compat_{task,thread} and TIF_32BIT_AARCH64

2017-01-09 Thread Yury Norov
ILP32 tasks are needed to be distinguished from lp64 and aarch32. This patch adds helper functions is_ilp32_compat_{task,thread} and thread flag TIF_32BIT_AARCH64 to address it. This is a preparation for following patches in ilp32 patchset. For consistency, SET_PERSONALITY is changed here

[PATCH 03/20] asm-generic: Drop getrlimit and setrlimit syscalls from default list

2017-01-09 Thread Yury Norov
The newer prlimit64 syscall provides all the functionality provided by the getrlimit and setrlimit syscalls and adds the pid of target process, so future architectures won't need to include getrlimit and setrlimit. Therefore drop getrlimit and setrlimit syscalls from the generic syscall list

[PATCH 08/20] thread: move thread bits accessors to separated file

2017-01-09 Thread Yury Norov
They may be accessed from low-level code, so isolating is a measure to avoid circular dependencies in header files. The exact reason for circular dependency is WARN_ON() macro added in patch edd63a27 "set_restore_sigmask() is never called without SIGPENDING (and never should be)" Signed-off-by:

[PATCH 11/20] arm64: introduce binfmt_elf32.c

2017-01-09 Thread Yury Norov
As we support more than one compat formats, it looks more reasonable to not use fs/compat_binfmt.c. Custom binfmt_elf32.c allows to move aarch32 specific definitions there and make code more maintainable and readable. Signed-off-by: Yury Norov --- arch/arm64/Kconfig

[PATCH 06/20] arm64: ensure the kernel is compiled for LP64

2017-01-09 Thread Yury Norov
From: Andrew Pinski The kernel needs to be compiled as a LP64 binary for ARM64, even when using a compiler that defaults to code-generation for the ILP32 ABI. Consequently, we need to explicitly pass '-mabi=lp64' (supported on gcc-4.9 and newer). Signed-off-by: Andrew Pinski

[PATCH 01/20] compat ABI: use non-compat openat and open_by_handle_at variants

2017-01-09 Thread Yury Norov
The only difference is that non-compat version forces O_LARGEFILE, and it should be the default behaviour for all architectures, as we don't support 32-bit off_t. The only exception is tile32, that continues with compat version of syscalls. Signed-off-by: Yury Norov

[PATCH 04/20] arm64: ilp32: add documentation on the ILP32 ABI for ARM64

2017-01-09 Thread Yury Norov
Based on Andrew Pinski's patch-series. Signed-off-by: Yury Norov --- Documentation/arm64/ilp32.txt | 45 +++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/arm64/ilp32.txt diff --git

[PATCH v7 00/20] ILP32 for ARM64

2017-01-09 Thread Yury Norov
This series enables aarch64 with ilp32 mode. As supporting work, it introduces ARCH_32BIT_OFF_T configuration option that is enabled for existing 32-bit architectures but disabled for new arches (so 64-bit off_t is is used by new userspace). Also it deprecates getrlimit and setrlimit syscalls

Re: [PATCH v2 7/7] uapi: export all headers under uapi directories

2017-01-09 Thread Daniel Vetter
On Fri, Jan 06, 2017 at 10:43:59AM +0100, Nicolas Dichtel wrote: > Regularly, when a new header is created in include/uapi/, the developer > forgets to add it in the corresponding Kbuild file. This error is usually > detected after the release is out. > > In fact, all headers under uapi

Re: [RFC3 nowrap: PATCH v7 00/18] ILP32 for ARM64

2017-01-09 Thread Yury Norov
On Fri, Jan 06, 2017 at 02:47:04PM +, Catalin Marinas wrote: > On Sun, Dec 18, 2016 at 12:38:23PM +0530, Yury Norov wrote: > > On Fri, Oct 21, 2016 at 11:32:59PM +0300, Yury Norov wrote: > > > This series enables aarch64 with ilp32 mode, and as supporting work, > > > introduces