Re: [PATCH] x86/microcode/intel: Check microcode revision before updating sibling threads

2018-02-16 Thread Ingo Molnar
* Ashok Raj wrote: > After updating microcode on one of the threads in the core, the > thread sibling automatically gets the update since the microcode > resources are shared. Check the ucode revision on the cpu before > performing a ucode update. s/cpu/CPU > > Signed-off-by: Ashok Raj > Cc:

[PATCH 2/2] proc: use set_puts() at /proc/*/wchan

2018-02-16 Thread Alexey Dobriyan
Signed-off-by: Alexey Dobriyan --- fs/proc/base.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -396,7 +396,7 @@ static int proc_pid_wchan(struct seq_file *m, struct pid_namespace *ns, wchan = get_wchan(task); if (wchan

[PATCH 1/2] proc: check permissions earlier for /proc/*/wchan

2018-02-16 Thread Alexey Dobriyan
get_wchan() accesses stack page before permissions are checked, let's not play this game. Signed-off-by: Alexey Dobriyan --- fs/proc/base.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -391,14 +391,17 @@ static int proc_pid_

Re: [PATCH] USB: chaoskey: Use kasprintf() over strcpy()/strcat()

2018-02-16 Thread Keith Packard
Kees Cook writes: > Instead of kmalloc() with manually calculated values followed by > multiple strcpy()/strcat() calls, just fold it all into a single > kasprintf() call. > > Signed-off-by: Kees Cook Reviewed-by: Keith Packard -- -keith signature.asc Description: PGP signature

Re: [PATCH 1/3] tools include powerpc: Grab a copy of arch/powerpc/include/uapi/asm/unistd.h

2018-02-16 Thread Ravi Bangoria
Oops.. Really sorry about that. I've tested acme/perf/core on ubuntu ppc32 with and without libaudit-dev and it's working fine. Thank you very much for fixing it, Ravi On 02/16/2018 11:20 PM, Arnaldo Carvalho de Melo wrote: > Em Fri, Feb 16, 2018 at 02:29:01PM -0300, Arnaldo Carvalho de Melo esc

[PATCH v2] block/loop: add documentation for sysfs interface

2018-02-16 Thread Aishwarya Pant
Documentation has been compiled from git logs and by reading through code. Signed-off-by: Aishwarya Pant --- For drivers/block/loop.c, I don't see any maintainers or mailing lists except for LKML. I am guessing linux-block mailing list should be okay. Changes in v2: - Add linux-bl...@vger.kernel

Re: [PATCH 08/23] kconfig: add 'macro' keyword to support user-defined function

2018-02-16 Thread Ulf Magnusson
On Fri, Feb 16, 2018 at 11:44:25PM -0500, Nicolas Pitre wrote: > On Sat, 17 Feb 2018, Ulf Magnusson wrote: > > > On Sat, Feb 17, 2018 at 3:30 AM, Nicolas Pitre wrote: > > > On Sat, 17 Feb 2018, Ulf Magnusson wrote: > > > > > >> On Fri, Feb 16, 2018 at 02:49:31PM -0500, Nicolas Pitre wrote: > > >>

[PATCH v2] aoe: document sysfs interface

2018-02-16 Thread Aishwarya Pant
Documentation has been compiled from git commit logs and descriptions in Documentation/aoe/aoe.txt. This should be useful for scripting and tracking changes in the ABI. Signed-off-by: Aishwarya Pant --- Changes in v2: - interface -> interfaces in description of netif Documentation/ABI/testing/s

[PATCH 00/17] Include linux trace docs to Sphinx TOC tree

2018-02-16 Thread changbin . du
From: Changbin Du Hi All, The linux tracers are so useful that I want to make the docs better. The kernel now uses Sphinx to generate intelligent and beautiful documentation from reStructuredText files. I converted most of the Linux trace docs to rst format in this serias. For you to preview, pl

[PATCH 03/17] trace doc: add ftrace-uses.rst to doc tree

2018-02-16 Thread changbin . du
From: Changbin Du Add ftrace-uses.rst into Sphinx TOC tree. Few format issues are fixed. Cc: Steven Rostedt Signed-off-by: Changbin Du --- Documentation/trace/ftrace-uses.rst | 23 --- Documentation/trace/index.rst | 1 + 2 files changed, 13 insertions(+), 11 deleti

[PATCH] virtio_balloon: export huge page allocation statistics

2018-02-16 Thread Jonathan Helman
Export statistics for successful and failed huge page allocations from the virtio balloon driver. These 2 stats come directly from the vm_events HTLB_BUDDY_PGALLOC and HTLB_BUDDY_PGALLOC_FAIL. Signed-off-by: Jonathan Helman --- drivers/virtio/virtio_balloon.c | 6 ++ include/uapi/linux/v

[PATCH 02/17] trace doc: convert trace/ftrace-design.txt to rst format

2018-02-16 Thread changbin . du
From: Changbin Du This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. This documentation is not synced with current code, so mark it as out of date. Cc: Steven Rostedt Signed-off-by: Changbin Du --- .../trace/{ftrace-design.txt => ftrace-design

[PATCH 11/17] trace doc: convert trace/events-power.txt to rst format

2018-02-16 Thread changbin . du
From: Changbin Du This converts the plain text documentation to reStructuredText format and add it into Sphinx TOC tree. No essential content change. Cc: Steven Rostedt Signed-off-by: Changbin Du --- .../trace/{events-power.txt => events-power.rst} | 52 +- Documentation

[PATCH 12/17] trace doc: convert trace/events-nmi.txt to rst format

2018-02-16 Thread changbin . du
From: Changbin Du This converts the plain text documentation to reStructuredText format and add it into Sphinx TOC tree. No essential content change. Cc: Steven Rostedt Signed-off-by: Changbin Du --- Documentation/trace/events-nmi.rst | 45 ++ Documentation

[PATCH 06/17] trace doc: convert trace/kprobetrace.txt to rst format

2018-02-16 Thread changbin . du
From: Changbin Du This converts the plain text documentation to reStructuredText format and add it into Sphinx TOC tree. No essential content change. Cc: Steven Rostedt Signed-off-by: Changbin Du --- Documentation/trace/index.rst | 1 + .../trace/{kprobetrace.txt => kpr

[PATCH 10/17] trace doc: convert trace/events-kmem.txt to rst format

2018-02-16 Thread changbin . du
From: Changbin Du This converts the plain text documentation to reStructuredText format and add it into Sphinx TOC tree. No essential content change. Cc: Steven Rostedt Signed-off-by: Changbin Du --- .../trace/{events-kmem.txt => events-kmem.rst} | 50 ++ Documentation

[PATCH 13/17] trace doc: convert trace/events-msr.txt to rst format

2018-02-16 Thread changbin . du
From: Changbin Du This converts the plain text documentation to reStructuredText format and add it into Sphinx TOC tree. No essential content change. Cc: Steven Rostedt Signed-off-by: Changbin Du --- Documentation/trace/events-msr.rst | 40 ++ Documentation

[PATCH 09/17] trace doc: convert trace/events.txt to rst format

2018-02-16 Thread changbin . du
From: Changbin Du This converts the plain text documentation to reStructuredText format and add it into Sphinx TOC tree. No essential content change. Cc: Steven Rostedt Signed-off-by: Changbin Du --- Documentation/trace/{events.txt => events.rst} | 669 + Documentation

[PATCH 07/17] trace doc: convert trace/uprobetracer.txt to rst format

2018-02-16 Thread changbin . du
From: Changbin Du This converts the plain text documentation to reStructuredText format and add it into Sphinx TOC tree. No essential content change. Cc: Steven Rostedt Signed-off-by: Changbin Du --- Documentation/trace/index.rst | 1 + .../trace/{uprobetracer.txt => upr

[PATCH 16/17] trace doc: convert trace/intel_th.txt to rst format

2018-02-16 Thread changbin . du
From: Changbin Du This converts the plain text documentation to reStructuredText format and add it into Sphinx TOC tree. No essential content change. Cc: Steven Rostedt Signed-off-by: Changbin Du --- Documentation/trace/index.rst | 1 + Documentation/trace/{intel_th.txt

[PATCH 17/17] trace doc: convert trace/stm.txt to rst format

2018-02-16 Thread changbin . du
From: Changbin Du This converts the plain text documentation to reStructuredText format and add it into Sphinx TOC tree. No essential content change. Cc: Steven Rostedt Signed-off-by: Changbin Du --- Documentation/trace/index.rst| 1 + Documentation/trace/{stm.txt => stm.rst} | 2

[PATCH 14/17] trace doc: convert trace/mmiotrace.txt to rst format

2018-02-16 Thread changbin . du
From: Changbin Du This converts the plain text documentation to reStructuredText format and add it into Sphinx TOC tree. No essential content change. Cc: Steven Rostedt Signed-off-by: Changbin Du --- Documentation/trace/index.rst | 1 + .../trace/{mmiotrace.txt => mmiotr

[PATCH 08/17] trace doc: convert trace/tracepoints.txt to rst format

2018-02-16 Thread changbin . du
From: Changbin Du This converts the plain text documentation to reStructuredText format and add it into Sphinx TOC tree. No essential content change. Cc: Steven Rostedt Signed-off-by: Changbin Du --- Documentation/trace/index.rst | 1 + .../trace/{tracepoints.txt => trac

[PATCH 15/17] trace doc: convert trace/hwlat_detector.txt to rst fromat

2018-02-16 Thread changbin . du
From: Changbin Du This converts the plain text documentation to reStructuredText format and add it into Sphinx TOC tree. No essential content change. Cc: Steven Rostedt Signed-off-by: Changbin Du --- .../{hwlat_detector.txt => hwlat_detector.rst} | 26 +- Documentation

[PATCH 01/17] Documentation: add Linux tracing to Sphinx TOC tree

2018-02-16 Thread changbin . du
From: Changbin Du This just add a index.rst for trace subsystem. More docs will be added later. Cc: Steven Rostedt Signed-off-by: Changbin Du --- Documentation/index.rst | 1 + Documentation/trace/index.rst | 6 ++ 2 files changed, 7 insertions(+) create mode 100644 Documentation/t

[PATCH 04/17] trace doc: convert trace/tracepoint-analysis.txt to rst format

2018-02-16 Thread changbin . du
From: Changbin Du This converts the plain text documentation to reStructuredText format and add it into Sphinx TOC tree. No essential content change. Cc: Steven Rostedt Signed-off-by: Changbin Du --- Documentation/trace/index.rst | 1 + ...epoint-analysis.txt => tracepoi

RE: [PATCH v1 0/4] platform/x86: mlx-platform: Add bus differed and auto detection functionalities

2018-02-16 Thread Vadim Pasternak
> -Original Message- > From: Darren Hart [mailto:dvh...@infradead.org] > Sent: Friday, February 16, 2018 3:33 AM > To: Vadim Pasternak > Cc: andy.shevche...@gmail.com; gre...@linuxfoundation.org; platform- > driver-...@vger.kernel.org; linux-kernel@vger.kernel.org; j...@resnulli.us; > Mi

[PATCH] ARM: sunxi: Fix multi-cluster SMP support compilation in multi v6/v7 configs

2018-02-16 Thread Chen-Yu Tsai
Various parts of the assembly code used in the multi-cluster SMP support requires ARMv7-A. If the kernel config also has multi v6 support enabled, Kbuild defaults to building for armv6k, which does not support some of the instructions we use. Configure the Makefile such that the multi-cluster SMP

Plan for DTC re-sync?

2018-02-16 Thread Masahiro Yamada
Hi Rob, Do you have a plan to sync scripts/dtc/ with upstream? I want the following commit in the upstream DTC project. commit b260c4f610c004c6e9e36c5f7bbb58d23e605bf1 Author: Grant Likely Date: Mon Nov 20 17:12:18 2017 + Fix ambiguous grammar for devicetree rule -- Best Rega

[PATCH] USB: chaoskey: Use kasprintf() over strcpy()/strcat()

2018-02-16 Thread Kees Cook
Instead of kmalloc() with manually calculated values followed by multiple strcpy()/strcat() calls, just fold it all into a single kasprintf() call. Signed-off-by: Kees Cook --- drivers/usb/misc/chaoskey.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/usb/mis

Re: [PATCH 08/23] kconfig: add 'macro' keyword to support user-defined function

2018-02-16 Thread Nicolas Pitre
On Sat, 17 Feb 2018, Ulf Magnusson wrote: > On Sat, Feb 17, 2018 at 3:30 AM, Nicolas Pitre wrote: > > On Sat, 17 Feb 2018, Ulf Magnusson wrote: > > > >> On Fri, Feb 16, 2018 at 02:49:31PM -0500, Nicolas Pitre wrote: > >> > On Sat, 17 Feb 2018, Masahiro Yamada wrote: > >> > > >> > > Now, we got a

Re: [PATCH v2 0/6] crypto: engine - Permit to enqueue all async requests

2018-02-16 Thread Herbert Xu
On Fri, Feb 16, 2018 at 04:36:56PM +0100, Corentin Labbe wrote: > > As mentionned in the cover letter, all patchs (except documentation one) > should be squashed. > A kbuild robot reported a build error on cryptodev due to this. It's too late now. In future if you want the patches to be squashed

Re: [PATCH 08/23] kconfig: add 'macro' keyword to support user-defined function

2018-02-16 Thread Ulf Magnusson
On Sat, Feb 17, 2018 at 3:30 AM, Nicolas Pitre wrote: > On Sat, 17 Feb 2018, Ulf Magnusson wrote: > >> On Fri, Feb 16, 2018 at 02:49:31PM -0500, Nicolas Pitre wrote: >> > On Sat, 17 Feb 2018, Masahiro Yamada wrote: >> > >> > > Now, we got a basic ability to test compiler capability in Kconfig. >>

Re: [PATCH 2/3] Documentation: convert trace/ftrace-design.txt to rst format

2018-02-16 Thread Du, Changbin
On Fri, Feb 16, 2018 at 12:36:29PM -0500, Steven Rostedt wrote: > On Fri, 16 Feb 2018 05:49:52 -0700 > Jonathan Corbet wrote: > > > On Thu, 15 Feb 2018 22:57:05 -0500 > > Steven Rostedt wrote: > > > > > This document is out of date, and I rather have it updated before we > > > make it more "ava

Re: [PATCH] tools/memory-model: remove rb-dep, smp_read_barrier_depends, and lockless_dereference

2018-02-16 Thread Andrea Parri
On Fri, Feb 16, 2018 at 05:22:55PM -0500, Alan Stern wrote: > Since commit 76ebbe78f739 ("locking/barriers: Add implicit > smp_read_barrier_depends() to READ_ONCE()") was merged for the 4.15 > kernel, it has not been necessary to use smp_read_barrier_depends(). > Similarly, commit 59ecbbe7b31c ("lo

Re: [PATCH] aoe: document sysfs interface

2018-02-16 Thread Ed Cashin
On 02/16/2018 10:39 AM, Aishwarya Pant wrote: Documentation has been compiled from git commit logs and descriptions in Documentation/aoe/aoe.txt. This should be useful for scripting and tracking changes in the ABI. ... +What: /sys/block/etherd*/netif ... +Description: +

Re: [PATCH 08/23] kconfig: add 'macro' keyword to support user-defined function

2018-02-16 Thread Nicolas Pitre
On Sat, 17 Feb 2018, Ulf Magnusson wrote: > On Fri, Feb 16, 2018 at 02:49:31PM -0500, Nicolas Pitre wrote: > > On Sat, 17 Feb 2018, Masahiro Yamada wrote: > > > > > Now, we got a basic ability to test compiler capability in Kconfig. > > > > > > config CC_HAS_STACKPROTECTOR > > > bool > >

Re: [PATCH v3 08/11] watchdog/hpwdt: Programable Pretimeout NMI

2018-02-16 Thread Guenter Roeck
On 02/16/2018 05:56 PM, Jerry Hoemann wrote: On Fri, Feb 16, 2018 at 03:55:06PM -0800, Guenter Roeck wrote: On Fri, Feb 16, 2018 at 04:46:17PM -0700, Jerry Hoemann wrote: On Fri, Feb 16, 2018 at 12:34:40PM -0800, Guenter Roeck wrote: On Thu, Feb 15, 2018 at 04:43:57PM -0700, Jerry Hoemann wrot

[PATCH 4/4] Staging: ks7010: hostif: Fix multiple use of arguments in ps_confirm_wait_inc() macro.

2018-02-16 Thread Quytelda Kahja
Use GCC extensions to prevent macro arguments from accidentally being evaluated multiple times when the macro is called. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/staging/ks7010/ks_hos

[PATCH 3/4] Staging: ks7010: hostif: Fix multiple use of arguments in rate and event masking macros.

2018-02-16 Thread Quytelda Kahja
Use GCC extensions to prevent macro arguments from accidentally being evaluated multiple times when the macro is called. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.h | 74 +- 1 file changed, 50 insertions(+), 24 deletions(-) diff --git

[PATCH 2/4] Staging: ks7010: hostif: Fix multiple use of arguments in SME queue macros.

2018-02-16 Thread Quytelda Kahja
Use GCC extensions to prevent macro arguments from accidentally being evaluated multiple times when the macro is called. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.c | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/drivers/staging/k

[PATCH 1/4] Staging: ks7010: sdio: Fix multiple use of arguments in RX/TX queue macros.

2018-02-16 Thread Quytelda Kahja
Use GCC extensions to prevent macro arguments from accidentally being evaluated multiple times when the macro is called. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks7010_sdio.c | 40 1 file changed, 27 insertions(+), 13 deletions(-) diff --git

Re: [PATCH v3 01/15] Documentation: add newcx initramfs format description

2018-02-16 Thread hpa
On February 16, 2018 1:47:35 PM PST, Victor Kamensky wrote: > > >On Fri, 16 Feb 2018, Rob Landley wrote: > >> >> On 02/16/2018 02:59 PM, H. Peter Anvin wrote: >>> On 02/16/18 12:33, Taras Kondratiuk wrote: Many of the Linux security/integrity features are dependent on file metadata, stor

Re: [PATCH v2] reset: add support for non-DT systems

2018-02-16 Thread David Lechner
On 02/13/2018 12:39 PM, Bartosz Golaszewski wrote: From: Bartosz Golaszewski The reset framework only supports device-tree. There are some platforms however, which need to use it even in legacy, board-file based mode. An example of such architecture is the DaVinci family of SoCs which supports

Re: [PATCH v3 08/11] watchdog/hpwdt: Programable Pretimeout NMI

2018-02-16 Thread Jerry Hoemann
On Fri, Feb 16, 2018 at 03:55:06PM -0800, Guenter Roeck wrote: > On Fri, Feb 16, 2018 at 04:46:17PM -0700, Jerry Hoemann wrote: > > On Fri, Feb 16, 2018 at 12:34:40PM -0800, Guenter Roeck wrote: > > > On Thu, Feb 15, 2018 at 04:43:57PM -0700, Jerry Hoemann wrote: ... > > > > @@ -98,12 +106,21 @@

Re: [PATCH 1/1] perf: Add CPU hotplug support for events

2018-02-16 Thread Raghavendra Rao Ananta
On 02/16/2018 12:39 PM, Peter Zijlstra wrote: On Fri, Feb 16, 2018 at 10:06:29AM -0800, Raghavendra Rao Ananta wrote: No this is absolutely disguisting. You can simply keep the events in the dead CPU's context. It's really not that hard. Keeping the events in the dead CPU's context was also a

[no subject]

2018-02-16 Thread Ryan Ellis
Hi, I am Ryan. I consider myself an easy-going man,honest and loving person. I am currently looking for a relationship in which i feel loved. Please tell me more about yourself, if you do not mind. Regards, Ryan Ellis.

syscon regmap for disabled node?

2018-02-16 Thread Suman Anna
Hi Pankaj, Arnd, Lee, I am testing some code to use a syscon/regmap interface and I find that the syscon/regmap is initialized even on a disabled device node using a "syscon" compatible property when I have expected it to fail. Prior to commit bdb0066df96e ("mfd: syscon: Decouple syscon interface

Re: [PATCH 3/3] taint: Add taint for randstruct

2018-02-16 Thread Kees Cook
On Fri, Feb 16, 2018 at 1:02 PM, Andrew Morton wrote: > On Thu, 15 Feb 2018 19:37:44 -0800 Kees Cook wrote: > >> --- a/Documentation/sysctl/kernel.txt >> +++ b/Documentation/sysctl/kernel.txt >> @@ -991,6 +991,7 @@ ORed together. The letters are seen in "Tainted" line of >> Oops reports. >> 16

[PATCH] arm64: Add support for new control bits CTR_EL0.IDC and CTR_EL0.IDC

2018-02-16 Thread Shanker Donthineni
Two point of unification cache maintenance operations 'DC CVAU' and 'IC IVAU' are optional for implementors as per ARMv8 specification. This patch parses the updated CTR_EL0 register definition and adds the required changes to skip POU operations if the hardware reports CTR_EL0.IDC and/or CTR_EL0.I

Re: [PATCH v3 1/1] mm: page_alloc: skip over regions of invalid pfns on UMA

2018-02-16 Thread Andrew Morton
On Mon, 12 Feb 2018 19:47:59 +0100 Michal Hocko wrote: > > prerequisite for this is to reach some agreement on what people think is > > the best option, which I feel didn't occur yet. > > I do not have a _strong_ preference here as well. So I will leave the > decision to you. > > In any case fe

Re: [PATCH] tools/memory-model: remove rb-dep, smp_read_barrier_depends, and lockless_dereference

2018-02-16 Thread Paul E. McKenney
On Fri, Feb 16, 2018 at 05:22:55PM -0500, Alan Stern wrote: > Since commit 76ebbe78f739 ("locking/barriers: Add implicit > smp_read_barrier_depends() to READ_ONCE()") was merged for the 4.15 > kernel, it has not been necessary to use smp_read_barrier_depends(). > Similarly, commit 59ecbbe7b31c ("lo

Re: [PATCH] lib: Rename compiler intrinsic selects to GENERIC_LIB_*

2018-02-16 Thread Palmer Dabbelt
On Tue, 13 Feb 2018 14:49:37 PST (-0800), jho...@kernel.org wrote: On Tue, Feb 13, 2018 at 01:48:18PM -0800, Palmer Dabbelt wrote: On Fri, 09 Feb 2018 05:22:52 PST (-0800), matt.redfe...@mips.com wrote: > When these are included into arch Kconfig files, maintaining > alphabetical ordering of the

Re: [PATCH] z3fold: limit use of stale list for allocation

2018-02-16 Thread Andrew Morton
On Sat, 10 Feb 2018 12:02:52 +0100 Vitaly Wool wrote: > Currently if z3fold couldn't find an unbuddied page it would first > try to pull a page off the stale list. The problem with this > approach is that we can't 100% guarantee that the page is not > processed by the workqueue thread at the same

[PATCH v2/rollup] headers: untangle kmemleak.h from mm.h

2018-02-16 Thread Randy Dunlap
From: Randy Dunlap Currently #includes for no obvious reason. It looks like it's only a convenience, so remove kmemleak.h from slab.h and add to any users of kmemleak_* that don't already #include it. Also remove from source files that do not use it. This is tested on i386 allmodconfig and x

Re: [PATCH v3 6/6] drm/rockchip: cdn-dp: remove the DP phy switch

2018-02-16 Thread Heiko Stuebner
Am Freitag, 16. Februar 2018, 13:09:56 CET schrieb Enric Balletbo i Serra: > From: Chris Zhong > > There are 2 Type-c PHYs in RK3399, but only one DP controller. Hence > only one PHY can connect to DP controller at one time, the other should > be disconnected. The GRF_SOC_CON26 register has a swi

Re: [PATCH v3 4/6] phy: rockchip-typec: force to USB2 if DP at 4 lanes mode

2018-02-16 Thread Heiko Stuebner
Am Freitag, 16. Februar 2018, 13:09:54 CET schrieb Enric Balletbo i Serra: > From: Chris Zhong > > The usb3tousb2_en BIT will be clear to 0 in probe(), it make USB > controller work at USB3 mode, and if the USB phy is turned on with DP > only mode(4 lanes DP), the rockchip_usb3_phy_power_on() wil

Re: [PATCH v3 5/6] phy: rockchip-typec: support DP phy switch

2018-02-16 Thread Heiko Stuebner
Am Freitag, 16. Februar 2018, 13:09:55 CET schrieb Enric Balletbo i Serra: > From: Chris Zhong > > There are 2 Type-c PHYs in RK3399, but only one DP controller. Hence > only one PHY can connect to DP controller at one time, the other should > be disconnected. The GRF_SOC_CON26 register has a swi

Re: [PATCH] Make kernel taint on invalid module signatures configurable

2018-02-16 Thread Matthew Garrett
On Fri, Feb 16, 2018 at 12:25 AM Philipp Hahn wrote: > Sadly didn't work for me :-( > If my understanding is correct and iff that would work, Debian (and > others) could load their public key into Shim and then use the > associated private key for singing their modules. This works for UEFI system

Re: [PATCH v3 3/6] phy: rockchip-typec: enable usb3 host during usb3 phy power on

2018-02-16 Thread Heiko Stuebner
Am Freitag, 16. Februar 2018, 13:09:53 CET schrieb Enric Balletbo i Serra: > From: William wu > > We have forced usb3 to work in usb2 only mode in firmware by setting > usb3tousb2_en (bit3 of GRF_USB3PHY0/1_CON0) to 1, and setting > host_u3_port_disable (bit0 of GRF_USB3OTG0/1_CON1) to 1 and host

Re: [PATCH v3 2/6] dt-bindings: phy-rockchip-typec: deprecate some register properties.

2018-02-16 Thread Heiko Stuebner
Am Freitag, 16. Februar 2018, 13:09:52 CET schrieb Enric Balletbo i Serra: > As now the following register properties are in the driver, document as > deprecated these properties and recommend to not use them on new bindings. > > The deprecated properties are: > > - rockchip,typec-conn-dir : the

Re: [PATCH v3 1/6] phy: rockchip-typec: deprecate some DT properties for various register fields.

2018-02-16 Thread Heiko Stuebner
Am Freitag, 16. Februar 2018, 13:09:51 CET schrieb Enric Balletbo i Serra: > Adding properties for various register fields in the DT doesn't scale and > this information should be in the driver instead. > > Before this patch these registers (description below) were specified in > the DT, every reg

Re: [PATCH 4/4] fs/dcache: Avoid the try_lock loops in dentry_kill()

2018-02-16 Thread Linus Torvalds
On Fri, Feb 16, 2018 at 3:49 PM, John Ogness wrote: > > After reading your initial feedback my idea was to change both > lock_parent() and dentry_lock_inode() to not only communicate _if_ the > lock was successful, but also if d_lock was dropped in the process. (For > example, with a tristate rath

Re: [PATCH] proc/kpageflags: add KPF_WAITERS

2018-02-16 Thread Andrew Morton
On Sun, 11 Feb 2018 13:36:41 +0300 Konstantin Khlebnikov wrote: > KPF_WAITERS indicates tasks are waiting for a page lock or writeback. > This might be false-positive, in this case next unlock will clear it. Well, kpageflags is full of potential false-positives. Or do you think this flag is es

Re: [PATCH v3 08/11] watchdog/hpwdt: Programable Pretimeout NMI

2018-02-16 Thread Guenter Roeck
On Fri, Feb 16, 2018 at 04:46:17PM -0700, Jerry Hoemann wrote: > On Fri, Feb 16, 2018 at 12:34:40PM -0800, Guenter Roeck wrote: > > On Thu, Feb 15, 2018 at 04:43:57PM -0700, Jerry Hoemann wrote: > > > Make whether or not the hpwdt watchdog delivers a pretimeout NMI > > > programable by the user. >

Re: [PATCH][V2] rtc: tx4939: avoid unintended sign extension on a 24 bit shift

2018-02-16 Thread Alexandre Belloni
On 15/02/2018 at 19:36:14 +, Colin King wrote: > From: Colin Ian King > > The shifting of buf[5] by 24 bits to the left will be promoted to > a 32 bit signed int and then sign-extended to an unsigned long. If > the top bit of buf[5] is set then all then all the upper bits sec > end up as also

Re: [PATCH 08/23] kconfig: add 'macro' keyword to support user-defined function

2018-02-16 Thread Ulf Magnusson
On Fri, Feb 16, 2018 at 02:49:31PM -0500, Nicolas Pitre wrote: > On Sat, 17 Feb 2018, Masahiro Yamada wrote: > > > Now, we got a basic ability to test compiler capability in Kconfig. > > > > config CC_HAS_STACKPROTECTOR > > bool > > default $(shell $CC -Werror -fstack-protector -c

Re: [PATCH v2 01/10] drivers: qcom: rpmh-rsc: add RPMH controller for QCOM SoCs

2018-02-16 Thread Lina Iyer
Thanks Evan for your review. On Fri, Feb 16 2018 at 21:30 +, Evan Green wrote: Hi Lina, On Thu, Feb 15, 2018 at 9:34 AM, Lina Iyer wrote: + +/** + * tcs_response: Response object for a request Can you embed the acronym definition, ie: tcs_response: Responses for a Trigger Command Set.

Re: [PATCH v2 05/10] drivers: qcom: rpmh-rsc: write sleep/wake requests to TCS

2018-02-16 Thread Evan Green
Hello Lina, On Thu, Feb 15, 2018 at 9:35 AM, Lina Iyer wrote: > Sleep and wake requests are sent when the application processor > subsystem of the SoC is entering deep sleep states like in suspend. > These requests help lower the system power requirements when the > resources are not in use. > >

Re: [PATCH 4/4] fs/dcache: Avoid the try_lock loops in dentry_kill()

2018-02-16 Thread John Ogness
On 2018-02-17, Linus Torvalds wrote: >> dentry_kill() calls both dentry_lock_inode() and lock_parent() in the >> common case. So by changing the semantics of lock_parent(), I am >> removing two "recheck in case I dropped" in the common case rather >> than just the one you pointed out. > > Ok, that

Re: [tip:x86/pti] x86/speculation: Use IBRS if available before calling into firmware

2018-02-16 Thread Tim Chen
On 02/16/2018 11:16 AM, David Woodhouse wrote: > On Fri, 2018-02-16 at 10:44 -0800, Tim Chen wrote: >> >> I encountered hang on a machine but not others when using the above >> macro. It is probably an alignment thing with ALTERNATIVE as the >> problem went >> away after I made the change below: >

Re: [PATCH v3 08/11] watchdog/hpwdt: Programable Pretimeout NMI

2018-02-16 Thread Jerry Hoemann
On Fri, Feb 16, 2018 at 12:34:40PM -0800, Guenter Roeck wrote: > On Thu, Feb 15, 2018 at 04:43:57PM -0700, Jerry Hoemann wrote: > > Make whether or not the hpwdt watchdog delivers a pretimeout NMI > > programable by the user. > > > > The underlying iLO hardware is programmable as to whether or not

[PATCH RESEND] powerpc/5200: dts: digsy_mtc.dts: fix rv3029 compatible

2018-02-16 Thread Alexandre Belloni
The proper compatible for rv3029 is microcrystal,rv3029. Acked-by: Anatolij Gustschin Signed-off-by: Alexandre Belloni --- Hi, I'm resending that one because I prefer not taking DT patches through the RTC tree. arch/powerpc/boot/dts/digsy_mtc.dts | 2 +- 1 file changed, 1 insertion(+), 1 del

Re: [PATCH -mm -v5 RESEND] mm, swap: Fix race between swapoff and some swap operations

2018-02-16 Thread Andrew Morton
On Wed, 14 Feb 2018 08:38:00 +0800 "Huang\, Ying" wrote: > Andrew Morton writes: > > > On Tue, 13 Feb 2018 09:42:20 +0800 "Huang, Ying" > > wrote: > > > >> From: Huang Ying > >> > >> When the swapin is performed, after getting the swap entry information > >> from the page table, system will

[PATCH] alpha: rtc: remove unused set_mmss ops

2018-02-16 Thread Alexandre Belloni
The .set_mmss and .setmmss64 ops are only called when the RTC is not providing an implementation for the .set_time callback. On alpha, .set_time is provided so .set_mmss64 is never called. Remove the unused code. Signed-off-by: Alexandre Belloni --- arch/alpha/kernel/rtc.c | 99

Re: [PATCH 4/4] fs/dcache: Avoid the try_lock loops in dentry_kill()

2018-02-16 Thread Linus Torvalds
On Fri, Feb 16, 2018 at 3:05 PM, John Ogness wrote: > > dentry_kill() calls both dentry_lock_inode() and lock_parent() in the > common case. So by changing the semantics of lock_parent(), I am > removing two "recheck in case I dropped" in the common case rather than > just the one you pointed out.

Re: [PATCH] tools/memory-model: remove rb-dep, smp_read_barrier_depends, and lockless_dereference

2018-02-16 Thread Akira Yokosawa
On 2018/02/16 17:22:55 -0500, Alan Stern wrote: > Since commit 76ebbe78f739 ("locking/barriers: Add implicit > smp_read_barrier_depends() to READ_ONCE()") was merged for the 4.15 > kernel, it has not been necessary to use smp_read_barrier_depends(). > Similarly, commit 59ecbbe7b31c ("locking/barrie

Re: [PATCH 2/3] x86/mm: introduce __PAGE_KERNEL_GLOBAL

2018-02-16 Thread Dave Hansen
On 02/16/2018 10:25 AM, Nadav Amit wrote: >> --- a/arch/x86/mm/pageattr.c~kpti-no-global-for-kernel-mappings >> 2018-02-13 15:17:56.148210060 -0800 >> +++ b/arch/x86/mm/pageattr.c 2018-02-13 15:17:56.153210060 -0800 >> @@ -593,7 +593,8 @@ try_preserve_large_page(pte_t *kpte, uns >> * di

Re: [PATCH 4/4] fs/dcache: Avoid the try_lock loops in dentry_kill()

2018-02-16 Thread John Ogness
On 2018-02-16, Linus Torvalds wrote: >> lock_parent() already has the problem you are referring to. Callers >> are required to recheck the dentry contents and check the returned >> parent because they do not know if the trylock succeeded. See >> d_prune_aliases(), for example. > > What are you tal

Re: [PATCH 1/3] Kconfig: disable PROFILE_ALL_BRANCHES for compile testing

2018-02-16 Thread Steven Rostedt
On Fri, 16 Feb 2018 23:40:22 +0100 Arnd Bergmann wrote: > ((CAPI_MSG *) msg)->info.facility_req.structs[1] = > LI_REQ_SILENT_UPDATE & 0xff; > > ~^ > drivers/isdn/hardware/eicon/message.c:11163:54: error: array

[PATCH v1 1/2] PCI: Probe for device reset support before driver claim

2018-02-16 Thread Bjorn Helgaas
From: Bjorn Helgaas Previously we called pci_probe_reset_function() in this path: pci_sysfs_init # late_initcall for_each_pci_dev(dev) pci_create_sysfs_dev_files(dev) pci_create_capabilities_sysfs(dev) pci_probe_reset_function

[PATCH v1 2/2] PCI: Remove redundant probes for device reset support

2018-02-16 Thread Bjorn Helgaas
From: Bjorn Helgaas We probe every device for whether it supports reset so we can tell whether to create a sysfs "reset" file for it. We do that probe in pci_init_capabilities() during enumeration and save the result in dev->reset_fn. The result doesn't depend on any other devices on the bus an

[PATCH v1 0/2] PCI: Probe for reset support earlier

2018-02-16 Thread Bjorn Helgaas
The PCI core currently uses a late_initcall to probe each device for whether it supports reset. This is dangerous because a driver may have already claimed the device by this point, and the PCI core should not interfere with the driver by touching the device on its own. These patches move the pro

[PATCH v3 0/2] drivers/qcom: add Command DB support

2018-02-16 Thread Lina Iyer
Changes in v3: - use min_t instead of MIN - add cmd db memory to reserved memory region - use devm_memremap These patches add support for reading a shared memory database in the newer QCOM SoCs called Command DB. With the new architecture on SDM845, shared resources like clocks, regulators etc., h

[PATCH v3 1/2] drivers: qcom: add command DB driver

2018-02-16 Thread Lina Iyer
From: Mahesh Sivasubramanian Command DB is a simple database in the shared memory of QCOM SoCs, that provides information regarding shared resources. Some shared resources in the SoC have properties that are probed dynamically at boot by the remote processor. The information pertaining to the SoC

[PATCH v3 2/2] dt-bindings: introduce Command DB for QCOM SoCs

2018-02-16 Thread Lina Iyer
From: Mahesh Sivasubramanian Command DB provides information on shared resources like clocks, regulators etc., probed at boot by the remote subsytem and made available in shared memory. Cc: devicet...@vger.kernel.org Signed-off-by: Mahesh Sivasubramanian Signed-off-by: Lina Iyer --- .../devic

Re: [PATCH] tun: fix mismatch in mutex lock-unlock in tun_get_user()

2018-02-16 Thread Eric Dumazet
On Fri, Feb 16, 2018 at 2:11 PM, Alexey Khoroshilov wrote: > There is a single error path where tfile->napi_mutex is left unlocked. > It can lead to a deadlock. > > Found by Linux Driver Verification project (linuxtesting.org). > > Signed-off-by: Alexey Khoroshilov > --- > drivers/net/tun.c | 4

Re: [PATCH 4/4] fs/dcache: Avoid the try_lock loops in dentry_kill()

2018-02-16 Thread Linus Torvalds
On Fri, Feb 16, 2018 at 2:32 PM, John Ogness wrote: > > lock_parent() already has the problem you are referring to. Callers are > required to recheck the dentry contents and check the returned parent > because they do not know if the trylock succeeded. See > d_prune_aliases(), for example. What a

Re: [PATCH 1/3] Kconfig: disable PROFILE_ALL_BRANCHES for compile testing

2018-02-16 Thread Arnd Bergmann
On Fri, Feb 16, 2018 at 11:14 PM, Arnd Bergmann wrote: > On Fri, Feb 16, 2018 at 11:03 PM, Steven Rostedt wrote: >> On Fri, 16 Feb 2018 22:41:11 +0100 >> Arnd Bergmann wrote: >> >>> This can easily double the time for compiling a driver but does not >>> provide any benefit for the compile tester

Re: [PATCH v3] of: cache phandle nodes to reduce cost of of_find_node_by_phandle()

2018-02-16 Thread Frank Rowand
On 02/16/18 14:20, Frank Rowand wrote: > On 02/16/18 01:04, Chintan Pandya wrote: >> >> >> On 2/15/2018 6:22 AM, frowand.l...@gmail.com wrote: >>> From: Frank Rowand >>> >>> Create a cache of the nodes that contain a phandle property.  Use this >>> cache to find the node for a given phandle value

Re: [PATCH] of: add early boot allocation of of_find_node_by_phandle() cache

2018-02-16 Thread Frank Rowand
On 02/16/18 01:07, Chintan Pandya wrote: > > > On 2/15/2018 6:14 AM, frowand.l...@gmail.com wrote: >> From: Frank Rowand >> >> The initial implementation of the of_find_node_by_phandle() cache >> allocates the cache using kcalloc().  Add an early boot allocation >> of the cache so it will be usa

Re: [PATCH 4/4] fs/dcache: Avoid the try_lock loops in dentry_kill()

2018-02-16 Thread John Ogness
On 2018-02-16, Linus Torvalds wrote: > On Fri, Feb 16, 2018 at 7:09 AM, John Ogness > wrote: >> dentry_kill() holds dentry->d_lock and needs to acquire both >> dentry->d_inode->i_lock and dentry->d_parent->d_lock. This cannot be >> done with spin_lock() operations because it's the reverse of the

Nokia N900 camera in v4.16-rc1: ready for testing?

2018-02-16 Thread Pavel Machek
Hi! Camera should work on N900, with v4.16-rc1. Autofocus should work; flash is in the queue. This patch is needed for non-square image. Patched v4l-utils is very much recommened for taking photos. Sakari: any ideas about this one? This is the bug I showed you in Prague... Best regards,

[PATCH] Staging: gdm724x: tty: Fix macro argument reuse that could cause side-effects.

2018-02-16 Thread Quytelda Kahja
Fix a coding style warning from checkpatch.pl. Use GNU extensions to create references to the results of problem macro arguments when they are evaluated so that they can be used safely multiple times. Signed-off-by: Quytelda Kahja --- drivers/staging/gdm724x/gdm_tty.c | 24 -

[PATCH] tools/memory-model: remove rb-dep, smp_read_barrier_depends, and lockless_dereference

2018-02-16 Thread Alan Stern
Since commit 76ebbe78f739 ("locking/barriers: Add implicit smp_read_barrier_depends() to READ_ONCE()") was merged for the 4.15 kernel, it has not been necessary to use smp_read_barrier_depends(). Similarly, commit 59ecbbe7b31c ("locking/barriers: Kill lockless_dereference()") removed lockless_deref

Re: [PATCH v3] of: cache phandle nodes to reduce cost of of_find_node_by_phandle()

2018-02-16 Thread Frank Rowand
On 02/16/18 01:04, Chintan Pandya wrote: > > > On 2/15/2018 6:22 AM, frowand.l...@gmail.com wrote: >> From: Frank Rowand >> >> Create a cache of the nodes that contain a phandle property.  Use this >> cache to find the node for a given phandle value instead of scanning >> the devicetree to find

Re: [PATCH 1/3] Kconfig: disable PROFILE_ALL_BRANCHES for compile testing

2018-02-16 Thread Arnd Bergmann
On Fri, Feb 16, 2018 at 11:03 PM, Steven Rostedt wrote: > On Fri, 16 Feb 2018 22:41:11 +0100 > Arnd Bergmann wrote: > >> This can easily double the time for compiling a driver but does not >> provide any benefit for the compile tester, so it's better left disabled. >> >> In addition, any 'inline'

Re: [PATCH v3 5/6] vfio/type1: Add IOVA range capability support

2018-02-16 Thread Alex Williamson
On Thu, 15 Feb 2018 09:45:03 + Shameer Kolothum wrote: > This allows the user-space to retrieve the supported IOVA > range(s), excluding any reserved regions. The implementation > is based on capability chains, added to VFIO_IOMMU_GET_INFO ioctl. > > Signed-off-by: Shameer Kolothum > --- >

[PATCH] tun: fix mismatch in mutex lock-unlock in tun_get_user()

2018-02-16 Thread Alexey Khoroshilov
There is a single error path where tfile->napi_mutex is left unlocked. It can lead to a deadlock. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/net/tun.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/tun.c b/dr

Re: [PATCH RFC v2 4/6] x86: Disable PTI on compatibility mode

2018-02-16 Thread Nadav Amit
Dmitry Safonov <0x7f454...@gmail.com> wrote: > 2018-02-16 7:11 GMT+00:00 Cyrill Gorcunov : >> On Thu, Feb 15, 2018 at 11:29:42PM +, Andy Lutomirski wrote: >> ... >> +bool pti_handle_segment_not_present(long error_code) >> +{ >> + if (!static_cpu_has(X86_FEATURE_PTI)) >> +

  1   2   3   4   5   6   7   8   9   >