[PATCH] ANDROID: binder: Add thread->process_todo flag.

2017-11-15 Thread Martijn Coenen
This flag determines whether the thread should currently process the work in the thread->todo worklist. The prime usecase for this is improving the performance of synchronous transactions: all synchronous transactions post a BR_TRANSACTION_COMPLETE to the calling thread, but there's no reason to r

Re: [PATCH net-next v2 0/2] retire IPX and NCPFS

2017-11-15 Thread Greg KH
On Wed, Nov 15, 2017 at 09:58:33AM +0900, David Miller wrote: > From: Stephen Hemminger > Date: Tue, 14 Nov 2017 08:37:13 -0800 > > > These are both old decrepit protocols that need to be sent > > to pasture. > > These need to go to gregkh and his staging/ tree, not net-next. I'll gladly take t

Re: [PATCH net] hv_netvsc: preserve hw_features on mtu/channels/ringparam changes

2017-11-15 Thread Vitaly Kuznetsov
Haiyang Zhang writes: >> -Original Message- >> From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] >> Sent: Tuesday, November 14, 2017 11:58 AM >> To: Stephen Hemminger >> Cc: net...@vger.kernel.org; linux-ker...@vger.kernel.org; >> de...@linuxdriverproject.org; KY Srinivasan ; Haiyang >

Re: [PATCH net-next v2 0/2] retire IPX and NCPFS

2017-11-15 Thread David Miller
From: Greg KH Date: Wed, 15 Nov 2017 10:13:18 +0100 > On Wed, Nov 15, 2017 at 09:58:33AM +0900, David Miller wrote: >> From: Stephen Hemminger >> Date: Tue, 14 Nov 2017 08:37:13 -0800 >> >> > These are both old decrepit protocols that need to be sent >> > to pasture. >> >> These need to go to

Re: [PATCH v3 5/6] ANDROID: binder: don't check prio permissions on restore.

2017-11-15 Thread Peter Zijlstra
On Thu, Oct 26, 2017 at 04:07:49PM +0200, Martijn Coenen wrote: > Because we have disabled RT priority inheritance for > the regular binder domain, the following can happen: > > 1) thread A (prio 98) calls into thread B > 2) because RT prio inheritance is disabled, thread B >runs at the lowest

[PATCH] dt-bindings: add device tree binding for Arm TrustZone CryptoCell crypto engine

2017-11-15 Thread Gilad Ben-Yossef
The Arm TrustZone CryptoCell is a hardware security engine. This patch adds DT bindings for its Rich Execution Environment crypto engine. A driver supporting this device is already present in the staging tree. Signed-off-by: Gilad Ben-Yossef --- .../devicetree/bindings/crypto/arm-cryptocell.txt

Re: [PATCH v3 2/6] ANDROID: binder: add min sched_policy to node.

2017-11-15 Thread Peter Zijlstra
On Thu, Oct 26, 2017 at 04:07:46PM +0200, Martijn Coenen wrote: > This change adds flags to flat_binder_object.flags > to allow indicating a minimum scheduling policy for > the node. It also clarifies the valid value range > for the priority bits in the flags. > > Internally, we use the priority m

Re: [PATCH v3 1/6] ANDROID: binder: add support for RT prio inheritance.

2017-11-15 Thread Peter Zijlstra
On Thu, Oct 26, 2017 at 04:07:45PM +0200, Martijn Coenen wrote: > +/** > + * binder_set_priority() - sets the scheduler priority of a task > + * @task:task to set priority on > + * @desired: desired priority to run at > + * > + * The scheduler policy of tasks is changed explicitly, because we w

Re: [PATCH v3 4/6] ANDROID: binder: add RT inheritance flag to node.

2017-11-15 Thread Peter Zijlstra
On Thu, Oct 26, 2017 at 04:07:48PM +0200, Martijn Coenen wrote: > Allows a binder node to specify whether it wants to > inherit real-time scheduling policy from a caller. This > inheritance may not always be desirable, for example in > cases where the binder call runs untrusted and therefore > pote

Re: [PATCH v3 3/6] ANDROID: binder: improve priority inheritance.

2017-11-15 Thread Peter Zijlstra
On Thu, Oct 26, 2017 at 04:07:47PM +0200, Martijn Coenen wrote: > By raising the priority of a thread selected for > a transaction *before* we wake it up. > > Delay restoring the priority when doing a reply > until after we wake-up the process receiving > the reply. What happens if a thread dies?

[PATCH net v2] hv_netvsc: preserve hw_features on mtu/channels/ringparam changes

2017-11-15 Thread Vitaly Kuznetsov
rndis_filter_device_add() is called both from netvsc_probe() when we initially create the device and from set channels/mtu/ringparam routines where we basically remove the device and add it back. hw_features is reset in rndis_filter_device_add() and filled with host data. However, we lose all addi

RE: [PATCH net v2] hv_netvsc: preserve hw_features on mtu/channels/ringparam changes

2017-11-15 Thread Haiyang Zhang
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Wednesday, November 15, 2017 9:13 AM > To: net...@vger.kernel.org > Cc: linux-ker...@vger.kernel.org; de...@linuxdriverproject.org; KY > Srinivasan ; Haiyang Zhang > ; Stephen Hemminger > ; Mohammed Gamal

Re: [PATCH net-next v2 0/2] retire IPX and NCPFS

2017-11-15 Thread Stephen Hemminger
On Wed, 15 Nov 2017 09:58:33 +0900 (KST) David Miller wrote: > From: Stephen Hemminger > Date: Tue, 14 Nov 2017 08:37:13 -0800 > > > These are both old decrepit protocols that need to be sent > > to pasture. > > These need to go to gregkh and his staging/ tree, not net-next. Ok, just wanted

Re: [PATCH v3 1/8] dt-bindings: Add Cavium Octeon Common Ethernet Interface.

2017-11-15 Thread Rob Herring
On Thu, Nov 09, 2017 at 11:29:08AM -0800, David Daney wrote: > From: Carlos Munoz > > Add bindings for Common Ethernet Interface (BGX) block. > > Signed-off-by: Carlos Munoz > Signed-off-by: Steven J. Hill > Signed-off-by: David Daney > --- > .../devicetree/bindings/net/cavium-bgx.txt

Re: [PATCH v3 1/8] dt-bindings: Add Cavium Octeon Common Ethernet Interface.

2017-11-15 Thread David Daney
On 11/15/2017 11:18 AM, Rob Herring wrote: On Thu, Nov 09, 2017 at 11:29:08AM -0800, David Daney wrote: From: Carlos Munoz Add bindings for Common Ethernet Interface (BGX) block. Signed-off-by: Carlos Munoz Signed-off-by: Steven J. Hill Signed-off-by: David Daney --- .../devicetree/bindi

Re: [PATCH 0/9] posix_clocks: Prepare syscalls for 64 bit time_t conversion

2017-11-15 Thread Deepa Dinamani
> I had on concern about x32, maybe we should check > for "COMPAT_USE_64BIT_TIME" before zeroing out the tv_nsec > bits. Thanks, I think you are right. I had the check conditional on CONFIG_64BIT_TIME and then removed as I forgot why I added it. :) > Regarding CONFIG_COMPAT_TIME/CONFIG_64BIT_TIME

[PATCH 3/6] staging: pi433: pi433_if.c: fix trailing statement coding style issues

2017-11-15 Thread Chase Metzger
Put trailing statement after if/else statements on new line to comply with the kernel coding style. Signed-off-by: Chase Metzger --- drivers/staging/pi433/pi433_if.c | 44 +++- 1 file changed, 30 insertions(+), 14 deletions(-) diff --git a/drivers/staging/pi4

[PATCH 4/6] staging: pi433: pi433_if.c: fix space prohibited coding style issues

2017-11-15 Thread Chase Metzger
Remove unnecessary spaces before and after parenthesis' to comply with the kernel coding style. Signed-off-by: Chase Metzger --- drivers/staging/pi433/pi433_if.c | 34 +- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/drivers/staging/pi433/pi433_i

[PATCH 5/6] staging: pi433: pi433_if.c: fix space(s) required coding style issues

2017-11-15 Thread Chase Metzger
Put space(s) in required spots to comply with the kernel coding style. Signed-off-by: Chase Metzger --- drivers/staging/pi433/pi433_if.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c index

[PATCH 6/6] staging: pi433: pi433_if.c: use tabs instead of spaces

2017-11-15 Thread Chase Metzger
Replace spaces with tabs where possible to comply with the kernel coding style. Signed-off-by: Chase Metzger --- drivers/staging/pi433/pi433_if.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c index

[PATCH 0/6] staging: pi433: pi433_if.c: coding style fixes

2017-11-15 Thread Chase Metzger
Fixes some of the coding style violations to comply with the kernel coding style. Chase Metzger (6): staging: pi433: pi433_if.c: fix opening curly brace coding style issues staging: pi433: pi433_if.c: fix else if/else statements coding style issues staging: pi433: pi433_if.c: fix tra

[PATCH 1/6] staging: pi433: pi433_if.c: fix opening curly brace coding style issues

2017-11-15 Thread Chase Metzger
Put opening curly braces for if/else/else if statements and for/while loops on the same line as the statements or loops to comply with the kernel coding style. Signed-off-by: Chase Metzger --- drivers/staging/pi433/pi433_if.c | 110 ++- 1 file changed, 38 inse

[PATCH 2/6] staging: pi433: pi433_if.c: fix else if/else statements coding style issues

2017-11-15 Thread Chase Metzger
Put else if/else statements on same line as if/else if statements closing curly brace to comply with the kernel coding style. Signed-off-by: Chase Metzger --- drivers/staging/pi433/pi433_if.c | 33 +++-- 1 file changed, 11 insertions(+), 22 deletions(-) diff --git a/

Re: [PATCH net v2] hv_netvsc: preserve hw_features on mtu/channels/ringparam changes

2017-11-15 Thread David Miller
From: Vitaly Kuznetsov Date: Wed, 15 Nov 2017 15:12:55 +0100 > rndis_filter_device_add() is called both from netvsc_probe() when we > initially create the device and from set channels/mtu/ringparam > routines where we basically remove the device and add it back. > > hw_features is reset in rndis

[PATCH] staging: comedi: ni_atmio: Handle return value of pnp_*

2017-11-15 Thread Arvind Yadav
pnp_irq() and pnp_port_start() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- drivers/staging/comedi/drivers/ni_atmio.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/staging/comedi/drivers/ni_atmio.c b/drivers/staging/comedi/drivers/ni_atmio.c

Re: [PATCH] dt-bindings: add device tree binding for Arm TrustZone CryptoCell crypto engine

2017-11-15 Thread Rob Herring
On Wed, Nov 15, 2017 at 01:05:17PM +, Gilad Ben-Yossef wrote: > The Arm TrustZone CryptoCell is a hardware security engine. This patch > adds DT bindings for its Rich Execution Environment crypto engine. > > A driver supporting this device is already present in the staging tree. > > Signed-of

[PATCHi v2] dt-bindings: add device tree binding for Arm TrustZone CryptoCell crypto engine

2017-11-15 Thread Gilad Ben-Yossef
The Arm TrustZone CryptoCell is a hardware security engine. This patch adds DT bindings for its Rich Execution Environment crypto engine. A driver supporting this device is already present in the staging tree. Signed-off-by: Gilad Ben-Yossef Acked-by: Rob Herring --- Changes from v1: - Change