Re: [RFC PATCH] bit_spinlock: introduce smp_cond_load_relaxed

2018-10-13 Thread Greg Kroah-Hartman
On Sat, Oct 13, 2018 at 02:47:29PM +0800, Gao Xiang wrote: > It is better to use smp_cond_load_relaxed instead > of busy waiting for bit_spinlock. Why? I think we need some kind of "proof" that this is true before being able to accept a patch like this, don't you agree? thanks, greg k-h

mmc: mediatek: add MT8183 MMC driver support

2018-10-13 Thread Chaotian Jing
this series of patch include below changes: 1. Add MT8183 SoC support in Mediatek MMC DT bindings 2. Fill mmc->actual_clock 3. Fix cannot receive new request issue 4. Tune CMD/DATA together to save tuning time 5. Add MT8183 MMC driver support 6. Refine the tuning method to drop too much redundant c

[PATCH 1/6] mmc: dt-bindings: add support for MT8183 SoC

2018-10-13 Thread Chaotian Jing
Add the devicetree binding for MT8183 SoC Signed-off-by: Chaotian Jing --- Documentation/devicetree/bindings/mmc/mtk-sd.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mmc/mtk-sd.txt b/Documentation/devicetree/bindings/mmc/mtk-sd.txt index f2208f4..f5bc

[PATCH 3/6] mmc: mediatek: fix cannot receive new request when msdc_cmd_is_ready fail

2018-10-13 Thread Chaotian Jing
when msdc_cmd_is_ready return fail, the req_timeout work has not been inited and cancel_delayed_work() will return false, then, the request return directly and never call mmc_request_done(). so need call mod_delayed_work() before msdc_cmd_is_ready() Signed-off-by: Chaotian Jing --- drivers/mmc/

[PATCH 2/6] mmc: mediatek: fill the actual clock for mmc debugfs

2018-10-13 Thread Chaotian Jing
as the mmc core layer has the mmc->actual_clock, so fill it and drop msdc_host->sclk. Signed-off-by: Chaotian Jing --- drivers/mmc/host/mtk-sd.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.c index 1c1c967..

[PATCH 4/6] mmc: mediatek: tune CMD/DATA together

2018-10-13 Thread Chaotian Jing
for MSDC IP which supports both data tune and async fifo, it can tune cmd/data together. which can save the time and make the tune result of CMD more stable as data line are 4bit or 8bit. Signed-off-by: Chaotian Jing --- drivers/mmc/host/mtk-sd.c | 87

[PATCH 5/6] mmc: mediatek: add MT8183 MMC driver support

2018-10-13 Thread Chaotian Jing
MT8183 puts the tune register at top layer, so need add new code to support it. Signed-off-by: Chaotian Jing --- drivers/mmc/host/mtk-sd.c | 283 ++ 1 file changed, 233 insertions(+), 50 deletions(-) diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mm

[PATCH 6/6] mmc: mediatek: drop too much code of tuning method

2018-10-13 Thread Chaotian Jing
the tuning code is becoming more and more bloated, let's make the set cmd/data delay to inline function to avoid too much redundant code. Signed-off-by: Chaotian Jing --- drivers/mmc/host/mtk-sd.c | 133 +- 1 file changed, 38 insertions(+), 95 deletion

Re: [RFC PATCH] bit_spinlock: introduce smp_cond_load_relaxed

2018-10-13 Thread Gao Xiang
Hi Greg, On 2018/10/13 15:04, Greg Kroah-Hartman wrote: > On Sat, Oct 13, 2018 at 02:47:29PM +0800, Gao Xiang wrote: >> It is better to use smp_cond_load_relaxed instead >> of busy waiting for bit_spinlock. > > Why? I think we need some kind of "proof" that this is true before > being able to ac

Re: [GIT PULL] Couple more arm64 fixes for 4.19

2018-10-13 Thread Greg KH
On Fri, Oct 12, 2018 at 04:46:29PM +0100, Will Deacon wrote: > Hi Greg, > > Please pull these two arm64 fixes for 4.19. One of them fixes a nasty > WARN() that has started triggering because we assumed that memory > reservations from firmware would always correspond to regions of the > physical ad

Re: [RFC PATCH] bit_spinlock: introduce smp_cond_load_relaxed

2018-10-13 Thread Greg Kroah-Hartman
On Sat, Oct 13, 2018 at 03:22:08PM +0800, Gao Xiang wrote: > Hi Greg, > > On 2018/10/13 15:04, Greg Kroah-Hartman wrote: > > On Sat, Oct 13, 2018 at 02:47:29PM +0800, Gao Xiang wrote: > >> It is better to use smp_cond_load_relaxed instead > >> of busy waiting for bit_spinlock. > > > > Why? I thi

Re: [RFC PATCH] bit_spinlock: introduce smp_cond_load_relaxed

2018-10-13 Thread Gao Xiang
On 2018/10/13 15:22, Gao Xiang wrote: > For other architectures like x86/arm64, I think they could implement > smp_cond_load_* later. Sorry about that, I mean "amd64". Actually I don't have performance numbers to proof that now. I think it really depends on the detailed architecture hardware i

INFO: rcu detected stall in do_idle

2018-10-13 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:6b3944e42e2e afs: Fix cell proc list git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1545a47940 kernel config: https://syzkaller.appspot.com/x/.config?x=88e9a8a39dc0be2d dashboard link: https://sy

Re: [PATCH v3 1/3] namei: implement O_BENEATH-style AT_* flags

2018-10-13 Thread Al Viro
On Tue, Oct 09, 2018 at 06:02:28PM +1100, Aleksa Sarai wrote: First of all, dirfd_path_init() part should be in a separate commit. And I'm really not happy with the logics in there. dirfd_path_init() itself is kinda-sorta reasonable. It is equivalent to setting the starting point for relative p

Re: [PATCH 4/6] mm: introduce page->dma_pinned_flags, _count

2018-10-13 Thread John Hubbard
On 10/12/18 8:55 PM, Dave Chinner wrote: > On Thu, Oct 11, 2018 at 11:00:12PM -0700, john.hubb...@gmail.com wrote: >> From: John Hubbard [...] >> diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h >> index 5ed8f6292a53..017ab82e36ca 100644 >> --- a/include/linux/mm_types.h >> +++ b/i

Re: [RFC PATCH] bit_spinlock: introduce smp_cond_load_relaxed

2018-10-13 Thread Gao Xiang
Hi Greg, On 2018/10/13 15:30, Greg Kroah-Hartman wrote: > On Sat, Oct 13, 2018 at 03:22:08PM +0800, Gao Xiang wrote: >> Hi Greg, >> >> On 2018/10/13 15:04, Greg Kroah-Hartman wrote: >>> On Sat, Oct 13, 2018 at 02:47:29PM +0800, Gao Xiang wrote: It is better to use smp_cond_load_relaxed instea

Re: procfs: Move proc_fill_super() to fs/proc/root.c

2018-10-13 Thread Alexey Dobriyan
Reviewed-by: Alexey Dobriyan

Re: proc: Add fs_context support to procfs

2018-10-13 Thread Alexey Dobriyan
> +struct proc_fs_context { > + struct pid_namespace*pid_ns; > + unsigned long mask; mask should "unsigned" as there aren't lot of flags.

Re: [PATCH v3 1/3] namei: implement O_BENEATH-style AT_* flags

2018-10-13 Thread Al Viro
On Sat, Oct 13, 2018 at 08:33:19AM +0100, Al Viro wrote: > Pardon me, but... huh? The reason for your two calls of dirfd_path_init() is, > AFAICS, the combination of absolute pathname with both LOOKUP_XDEV and > LOOKUP_BENEATH at the same time. That combination is treated as if the > pathname >

Re: [PATCH v3 1/3] namei: implement O_BENEATH-style AT_* flags

2018-10-13 Thread Aleksa Sarai
On 2018-10-13, Al Viro wrote: > First of all, dirfd_path_init() part should be in a separate commit. And I'm > really not happy with the logics in there. dirfd_path_init() itself is > kinda-sorta reasonable. Sure, I can do that. > It is equivalent to setting the starting point for > relative p

Re: [PATCH v1] KVM/x86/vPMU: Guest PMI Optimization

2018-10-13 Thread Paolo Bonzini
On 12/10/2018 18:30, Andi Kleen wrote: >> 4. Results >> - Without this optimization, the guest pmi handling time is >> ~450 ns, and the max sampling rate is reduced to 250. >> - With this optimization, the guest pmi handling time is ~9000 ns >> (i.e. 1 / 500 of the non-optim

[PATCH v4 1/7] dt-bindings: power: supply: axp20x: add AXP813 AC power DT binding

2018-10-13 Thread Oskari Lemmela
The AXP803/AXP813 AC power supply can limit input current and voltage. Signed-off-by: Oskari Lemmela Reviewed-by: Rob Herring Reviewed-by: Quentin Schulz --- .../devicetree/bindings/power/supply/axp20x_ac_power.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devi

[PATCH v4 0/7] AXP8x3 AC and battery power supply support

2018-10-13 Thread Oskari Lemmela
AXP813 AC power supply support with input current and voltage limiting support. AXP803 AC and battery power supply support. Changes in v4: * Change order of axp20x-gpio in axp20x.c * Fix indentation and spaces to tabs in axp20x.c Changes in v3: * Reorder ac_power_supply DT node * Rename axp20x_a

[PATCH v4 2/7] ARM: dts: axp81x: add AC power supply subnode

2018-10-13 Thread Oskari Lemmela
Add AC power supply subnode for AXP81X PMIC. Signed-off-by: Oskari Lemmela Reviewed-by: Quentin Schulz --- arch/arm/boot/dts/axp81x.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/axp81x.dtsi b/arch/arm/boot/dts/axp81x.dtsi index 043c717dcef1..bd83962d3627 100644

[PATCH v4 5/7] power: supply: add AC power supply driver for AXP813

2018-10-13 Thread Oskari Lemmela
AXP813 and AXP803 PMICs can control input current and minimum voltage. Both of these values are configurable. Signed-off-by: Oskari Lemmela Reviewed-by: Quentin Schulz --- drivers/power/supply/axp20x_ac_power.c | 92 ++ include/linux/mfd/axp20x.h | 1 + 2 f

[PATCH v4 7/7] mfd: axp20x: Add supported cells for AXP803

2018-10-13 Thread Oskari Lemmela
AXP803 is compatible with AXP813. Adding cells for GPIO, ADC, AC and battery power supplies. Signed-off-by: Oskari Lemmela --- drivers/mfd/axp20x.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index dfc3cff1d08b..e415b967d38c 10

[PATCH v4 3/7] arm64: dts: allwinner: axp803: add AC and battery power supplies

2018-10-13 Thread Oskari Lemmela
AXP803 is compatible with AXP813. Add DT nodes ADC, GPIO, AC and battery power supplies. Signed-off-by: Oskari Lemmela Reviewed-by: Quentin Schulz --- arch/arm64/boot/dts/allwinner/axp803.dtsi | 31 +++ 1 file changed, 31 insertions(+) diff --git a/arch/arm64/boot/dts/allwi

[PATCH v4 6/7] mfd: axp20x: Add AC power supply cell for AXP813

2018-10-13 Thread Oskari Lemmela
As axp20x-ac-power-supply now supports AXP813, add a cell for it. Signed-off-by: Oskari Lemmela Reviewed-by: Quentin Schulz --- drivers/mfd/axp20x.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index 0be511dd93d0..dfc3cff1d08b 100644 --- a

[PATCH v4 4/7] arm64: dts: allwinner: a64: sopine: enable power supplies

2018-10-13 Thread Oskari Lemmela
Sopine baseboard have ACIN and battery connectors. Signed-off-by: Oskari Lemmela Reviewed-by: Quentin Schulz --- .../boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts| 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts b

[PATCH] ubifs: Fix WARN_ON logic in exit path

2018-10-13 Thread Richard Weinberger
ubifs_assert() is not WARN_ON(), so we have to invert the checks. Randy faced this warning with UBIFS being a module, since most users use UBIFS as builtin because UBIFS is the rootfs nobody noticed so far. :-( Including me. Reported-by: Randy Dunlap Fixes: 54169ddd382d ("ubifs: Turn two ubifs_as

Re: [PATCH v3 1/3] namei: implement O_BENEATH-style AT_* flags

2018-10-13 Thread Aleksa Sarai
On 2018-10-13, Al Viro wrote: > > Pardon me, but... huh? The reason for your two calls of dirfd_path_init() > > is, > > AFAICS, the combination of absolute pathname with both LOOKUP_XDEV and > > LOOKUP_BENEATH at the same time. That combination is treated as if the > > pathname > > had been re

Re: ubifs: WARNINGs

2018-10-13 Thread Richard Weinberger
Randy, On Sat, Oct 13, 2018 at 3:48 AM Randy Dunlap wrote: > > Hi, > > Linux 4.19-rc7, x86_64 laptop. > > I don't have an ubifs filesystem. When I just modprobe ubifs and then > rmmod ubifs, I get 2 WARNINGs from these 2 lines: > > static void __exit ubifs_exit(void) > { > WARN_ON(list_e

Re: [PATCH v3 3/3] namei: aggressively check for nd->root escape on ".." resolution

2018-10-13 Thread Al Viro
On Wed, Oct 10, 2018 at 02:37:28AM +1100, Aleksa Sarai wrote: > > > +static inline int nd_alloc_dpathbuf(struct nameidata *nd) > > > +{ > > > + if (unlikely(!nd->dpathbuf)) { > > > + if (nd->flags & LOOKUP_RCU) { > > > + nd->dpathbuf = kmalloc(PATH_MAX, GFP

Re: [RFC][PATCH] perf: Rewrite core context handling

2018-10-13 Thread Song Liu
> On Oct 12, 2018, at 2:50 AM, Peter Zijlstra wrote: > > > Can we please not top-post? > > On Thu, Oct 11, 2018 at 10:37:14PM +, Song Liu wrote: >> Thanks Peter! These are really really helpful. >> >> I am trying to think through the case of a group of two events on two >> separate ha

Re: Charity Support

2018-10-13 Thread M. M Fridman
I, Mikhail Fridman have selected you specifically as one of my beneficiaries for my Charitable Donation of $5 Million Dollars, Check the link below for confirmation: https://www.rt.com/business/343781-mikhail-fridman-will-charity/ I await your earliest response for further directives. Best Reg

Linux 3.18.123

2018-10-13 Thread Greg KH
I'm announcing the release of the 3.18.124 kernel. All users of the 3.18 kernel series must upgrade. The updated 3.18.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.18.y and can be browsed at the normal kernel.org git web browser

Re: Linux 3.18.123

2018-10-13 Thread Greg KH
diff --git a/Makefile b/Makefile index 7943b4c59499..595392549dfb 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 18 -SUBLEVEL = 123 +SUBLEVEL = 124 EXTRAVERSION = NAME = Diseased Newt diff --git a/arch/arm/mach-mvebu/pmsu.c b/arch/arm/mach-mvebu/pmsu.c index 6f8

Re: [PATCH v3 3/3] namei: aggressively check for nd->root escape on ".." resolution

2018-10-13 Thread Aleksa Sarai
On 2018-10-13, Al Viro wrote: > > > > +static inline int nd_alloc_dpathbuf(struct nameidata *nd) > > > > +{ > > > > + if (unlikely(!nd->dpathbuf)) { > > > > + if (nd->flags & LOOKUP_RCU) { > > > > + nd->dpathbuf = kmalloc(PATH_MAX, GFP_ATOMIC); > > > > +

Linux 4.4.161

2018-10-13 Thread Greg KH
I'm announcing the release of the 4.4.161 kernel. All users of the 4.4 kernel series must upgrade. The updated 4.4.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.4.y and can be browsed at the normal kernel.org git web browser:

Re: Linux 4.4.161

2018-10-13 Thread Greg KH
diff --git a/Makefile b/Makefile index 607394a56036..57e4ff1a8b96 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 4 -SUBLEVEL = 160 +SUBLEVEL = 161 EXTRAVERSION = NAME = Blurry Fish Butt diff --git a/arch/arc/kernel/process.c b/arch/arc/kernel/process.c index a3f

Linux 4.9.133

2018-10-13 Thread Greg KH
I'm announcing the release of the 4.9.133 kernel. All users of the 4.9 kernel series must upgrade. The updated 4.9.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.9.y and can be browsed at the normal kernel.org git web browser:

Re: Linux 4.9.133

2018-10-13 Thread Greg KH
diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt index a36a695318c6..f9f67be8d3c3 100644 --- a/Documentation/kernel-parameters.txt +++ b/Documentation/kernel-parameters.txt @@ -1084,12 +1084,6 @@ bytes respectively. Such letter suffixes can also be entirely o

Re: Linux 3.18.123

2018-10-13 Thread Sven Joachim
On 2018-10-13 10:50 +0200, Greg KH wrote: > I'm announcing the release of the 3.18.124 kernel. $Subject inadvertently says 3.18.123, something wrong with your scripts? Cheers, Sven

Re: Linux 4.14.76

2018-10-13 Thread Greg KH
diff --git a/Makefile b/Makefile index 7fc373c011c0..332dd011b3b9 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 4 PATCHLEVEL = 14 -SUBLEVEL = 75 +SUBLEVEL = 76 EXTRAVERSION = NAME = Petit Gorille diff --git a/arch/arc/kernel/process.c b/arc

Linux 4.18.14

2018-10-13 Thread Greg KH
I'm announcing the release of the 4.18.14 kernel. All users of the 4.18 kernel series must upgrade. The updated 4.18.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.18.y and can be browsed at the normal kernel.org git web browser:

Re: Linux 4.18.14

2018-10-13 Thread Greg KH
diff --git a/Makefile b/Makefile index 4442e9ea4b6d..5274f8ae6b44 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 4 PATCHLEVEL = 18 -SUBLEVEL = 13 +SUBLEVEL = 14 EXTRAVERSION = NAME = Merciless Moray diff --git a/arch/arc/kernel/process.c b/a

Linux 4.14.76

2018-10-13 Thread Greg KH
I'm announcing the release of the 4.14.76 kernel. All users of the 4.14 kernel series must upgrade. The updated 4.14.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.14.y and can be browsed at the normal kernel.org git web browser:

Re: Linux 3.18.123

2018-10-13 Thread Greg KH
On Sat, Oct 13, 2018 at 10:59:47AM +0200, Sven Joachim wrote: > On 2018-10-13 10:50 +0200, Greg KH wrote: > > > I'm announcing the release of the 3.18.124 kernel. > > $Subject inadvertently says 3.18.123, something wrong with your scripts? It's a manual thing, yeah, my fault, let me redo this...

Linux 3.18.124

2018-10-13 Thread Greg KH
I'm announcing the release of the 3.18.124 kernel. All users of the 3.18 kernel series must upgrade. The updated 3.18.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.18.y and can be browsed at the normal kernel.org git web browser

Re: Linux 3.18.124

2018-10-13 Thread Greg KH
diff --git a/Makefile b/Makefile index 7943b4c59499..595392549dfb 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 18 -SUBLEVEL = 123 +SUBLEVEL = 124 EXTRAVERSION = NAME = Diseased Newt diff --git a/arch/arm/mach-mvebu/pmsu.c b/arch/arm/mach-mvebu/pmsu.c index 6f8

Re: [PATCH v3 3/3] namei: aggressively check for nd->root escape on ".." resolution

2018-10-13 Thread Al Viro
On Sat, Oct 13, 2018 at 07:53:26PM +1100, Aleksa Sarai wrote: > I didn't know about path_is_under() -- I just checked and it appears to > not take &rename_lock? From my understanding, in order to protect > against the rename attack you need to take &rename_lock (or check > against &rename_lock at

Re: [PATCH v3 3/3] iio: magnetometer: Add driver support for PNI RM3100

2018-10-13 Thread Jonathan Cameron
On Thu, 11 Oct 2018 12:35:18 +0800 Song Qiang wrote: > On 2018年10月07日 23:44, Jonathan Cameron wrote: > > On Tue, 2 Oct 2018 22:38:12 +0800 > > Song Qiang wrote: > > > >> PNI RM3100 is a high resolution, large signal immunity magnetometer, > >> composed of 3 single sensors and a processing chi

Re: [PATCH v3 3/3] namei: aggressively check for nd->root escape on ".." resolution

2018-10-13 Thread Aleksa Sarai
On 2018-10-13, Al Viro wrote: > On Sat, Oct 13, 2018 at 07:53:26PM +1100, Aleksa Sarai wrote: > > > I didn't know about path_is_under() -- I just checked and it appears to > > not take &rename_lock? From my understanding, in order to protect > > against the rename attack you need to take &rename_

Re: [PATCH] ubifs: Fix WARN_ON logic in exit path

2018-10-13 Thread Greg KH
On Sat, Oct 13, 2018 at 10:18:41AM +0200, Richard Weinberger wrote: > ubifs_assert() is not WARN_ON(), so we have to invert > the checks. > Randy faced this warning with UBIFS being a module, since > most users use UBIFS as builtin because UBIFS is the rootfs > nobody noticed so far. :-( > Includin

Re: [PATCH] KVM: vmx: hyper-v: don't pass EPT configuration info to vmx_hv_remote_flush_tlb()

2018-10-13 Thread Paolo Bonzini
On 11/10/2018 15:00, Vitaly Kuznetsov wrote: >> Yes. that need to rename ept_pointer. >> > Honestly, I would prefer to keep more information cached, e.g. if > someone needs EPT configuration data later he can easily get it from > ept_pointer and by putting raw cr3 there we'll just keep less. > > B

[GIT PULL] KVM fixes for 4.19-rc8

2018-10-13 Thread Paolo Bonzini
Greg, The following changes since commit cc906f07d7d569a30bb6f0baf8f80b2968353dc9: Merge tag 'kvm-ppc-fixes-4.19-3' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc into kvm-master (2018-10-05 09:39:53 +0200) are available in the git repository at: git://git.kernel.org/pub

Re: [PATCH for 4.19] tracepoint: Fix: out-of-bound tracepoint array iteration

2018-10-13 Thread kbuild test robot
/commits/Mathieu-Desnoyers/tracepoint-Fix-out-of-bound-tracepoint-array-iteration/20181013-073410 config: arm-allyesconfig (attached as .config) compiler: arm-linux-gnueabi-gcc (Debian 7.2.0-11) 7.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O

Re: [PATCH 31/34] vfs: syscall: Add fspick() to select a superblock for reconfiguration [ver #12]

2018-10-13 Thread Alan Jenkins
On 13/10/2018 07:11, Al Viro wrote: On Fri, Oct 12, 2018 at 03:49:50PM +0100, Alan Jenkins wrote: +SYSCALL_DEFINE3(fspick, int, dfd, const char __user *, path, unsigned int, flags) +{ + struct fs_context *fc; + struct path target; + unsigned int lookup_flags; + int ret;

[PATCH] x86/entry/32: Fix setup of CS high bits

2018-10-13 Thread Jan Kiszka
From: Jan Kiszka Even if we are not on an entry stack, we have to initialize the CS high bits because we are unconditionally evaluating them PARANOID_EXIT_TO_KERNEL_MODE. Failing to do so broke the boot on Galileo Gen2 and IOT2000 boards. Fixes: b92a165df17e ("x86/entry/32: Handle Entry from Ker

The GPL is not a contract, it is a revocable license.

2018-10-13 Thread missingterms
The GPL is not a contract, it is a revocable license. Enjoy the read: http://illinoisjltp.com/journal/wp-content/uploads/2013/10/kumar.pdf (With full citations).

[PATCH] clk: meson-gxbb: set fclk_div3 as CLK_IS_CRITICAL

2018-10-13 Thread Christian Hewitt
On the Khadas VIM2 (GXM) and LePotato (GXL) board there are problems with reboot; e.g. a ~60 second delay between issuing reboot and the board power cycling (and in some OS configurations reboot will fail and require manual power cycling). Similar to 'commit c987ac6f1f088663b6dad39281071aeb31d450a

Re: [PATCH v4 3/3] iio: magnetometer: Add driver support for PNI RM3100

2018-10-13 Thread Jonathan Cameron
On Fri, 12 Oct 2018 15:35:36 +0800 Song Qiang wrote: > PNI RM3100 is a high resolution, large signal immunity magnetometer, > composed of 3 single sensors and a processing chip with a MagI2C > interface. > > Following functions are available: > - Single-shot measurement from >/sys/bus/iio/d

[PATCH] perf stat: Potential NULL dereference in print_aggr()

2018-10-13 Thread Dan Carpenter
Smatch complains that: ./tools/perf/util/stat-display.c:616 print_aggr() error: we previously assumed 'config->aggr_map' could be null (see line 607) Not only that, but it looks like aggr_update_shadow() can Oops if "config->aggr_get_id" is NULL. The intent seems to have been to return i

[PATCH] clocksource/timer-vt8500: remove duplicate function name

2018-10-13 Thread Dan Carpenter
We print the function name twice in a row in the error message so I've removed one. Signed-off-by: Dan Carpenter diff --git a/drivers/clocksource/timer-vt8500.c b/drivers/clocksource/timer-vt8500.c index e0f7489cfc8e..c3aff1a8f7d5 100644 --- a/drivers/clocksource/timer-vt8500.c +++ b/drivers/cl

[PATCH] irqchip/irq-mvebu-sei: Fix a NULL vs IS_ERR() bug in probe

2018-10-13 Thread Dan Carpenter
The devm_ioremap_resource() function never returns NULL, it returns error pointers. Fixes: 61ce8d8d8a81 ("irqchip/irq-mvebu-sei: Add new driver for Marvell SEI") Signed-off-by: Dan Carpenter --- drivers/irqchip/irq-mvebu-sei.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [PATCH] kernel/signal: Signal-based pre-coredump notification

2018-10-13 Thread Christian Brauner
On Fri, Oct 12, 2018 at 05:33:35PM -0700, Enke Chen wrote: > For simplicity and consistency, this patch provides an implementation > for signal-based fault notification prior to the coredump of a child > process. A new prctl command, PR_SET_PREDUMP_SIG, is defined that can > be used by an applicati

Re: [RFC PATCH] memcg, oom: throttle dump_header for memcg ooms without eligible tasks

2018-10-13 Thread Tetsuo Handa
On 2018/10/12 21:58, Tetsuo Handa wrote: > On 2018/10/12 21:41, Johannes Weiner wrote: >> On Fri, Oct 12, 2018 at 09:10:40PM +0900, Tetsuo Handa wrote: >>> On 2018/10/12 21:08, Michal Hocko wrote: > So not more than 10 dumps in each 5s interval. That looks reasonable > to me. By the time it

Re: [RFC PATCH] memcg, oom: throttle dump_header for memcg ooms without eligible tasks

2018-10-13 Thread Johannes Weiner
On Sat, Oct 13, 2018 at 08:09:30PM +0900, Tetsuo Handa wrote: > -- Michal's patch -- > > 73133 lines (5.79MB) of kernel messages per one run > > [root@ccsecurity ~]# time ./a.out > > real3m44.389s > user0m0.000s > sys 3m42.334s > > [root@ccsecurity ~]# time ./a.out >

Re: [RFC PATCH] memcg, oom: throttle dump_header for memcg ooms without eligible tasks

2018-10-13 Thread Tetsuo Handa
On 2018/10/13 20:22, Johannes Weiner wrote: > On Sat, Oct 13, 2018 at 08:09:30PM +0900, Tetsuo Handa wrote: >> -- Michal's patch -- >> >> 73133 lines (5.79MB) of kernel messages per one run >> >> [root@ccsecurity ~]# time ./a.out >> >> real3m44.389s >> user0m0.000s >> sys

[PATCH] signal: Mark expected switch fall-throughs

2018-10-13 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva --- include/linux/signal.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/linux/signal.h b/include/linux/signal.h index 200ed96..f428

[PATCH] compat: Mark expected switch fall-throughs

2018-10-13 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva --- include/linux/compat.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/compat.h b/include/linux/compat.h index d30e4db..06e7747

[PATCH] skbuff: Mark expected switch fall-throughs

2018-10-13 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva --- include/linux/skbuff.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 119d092..92ec

[PATCH] ARM64: dts: meson-gxl-s905x-khadas-vim enable Bluetooth

2018-10-13 Thread Christian Hewitt
This enables Bluetooth support for the following models: - Khadas VIM basic (AP6212) using firmware BCM43438A1.hcd - Khadas VIM pro (AP6255) using firmware BCM4345C0.hcd The AP6212 module used on the VIM basic has an ID clash with another device. To get Bluetooth working you either need to apply

여보세요

2018-10-13 Thread Peter Wong
여보세요 연락주시기바랍피터웡이메일: peter.w...@p-wong.com에대한자세한정보는송금을기반으로성을재정인전체이름입니다.

Re: [PATCH] iio: dpot-dac: mark expected switch fall-through

2018-10-13 Thread Jonathan Cameron
On Mon, 8 Oct 2018 20:42:41 + Peter Rosin wrote: > On 2018-10-08 19:35, Gustavo A. R. Silva wrote: > > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > > where we are expecting to fall through. > > The way I see it, it is pretty well marked up as is. So, this paragrap

Re: [PATCH] iio: adc: ina2xx: fix missing break statement

2018-10-13 Thread Jonathan Cameron
On Wed, 10 Oct 2018 12:42:39 +0200 Stefan Brüns wrote: > On Montag, 8. Oktober 2018 23:09:04 CEST Colin King wrote: > > From: Colin Ian King > > > > The IIO_CHAN_INFO_SCALE case is missing a break statement and in > > the unlikely event that chan->address is not matched in the nested > > switch

Re: [PATCH v3] staging: iio: adt7316: fix parenthesis alignment

2018-10-13 Thread Jonathan Cameron
On Mon, 8 Oct 2018 19:12:05 -0300 Renato Lui Geh wrote: > This patch fixes most "Alignment should match open parenthesis" check > warnings found by checkpatch.pl in the addac/adt7316 driver. > > Signed-off-by: Renato Lui Geh > --- Please in future put a description here (below the ---) of the c

RE: [PATCH V4 0/9] clk: add imx7ulp clk support

2018-10-13 Thread A.s. Dong
Ping > -Original Message- > From: A.s. Dong > Sent: Tuesday, September 25, 2018 5:11 PM > To: sb...@kernel.org; shawn...@kernel.org > Cc: linux-kernel@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > mturque...@baylibre.com; Anson Huang ; Jacky Bai > ; dl-linux-imx ; > linux-...@vg

Re: [PATCH v1] KVM/x86/vPMU: Guest PMI Optimization

2018-10-13 Thread Peter Zijlstra
On Fri, Oct 12, 2018 at 08:20:17PM +0800, Wei Wang wrote: > Guest changing MSR_CORE_PERF_GLOBAL_CTRL causes KVM to reprogram pmc > counters, which re-allocates a host perf event. This process is Yea gawds, that's horrific. Why does it do that? We have PERF_EVENT_IOC_PERIOD which does that much bet

Re: [PATCH] iio: dpot-dac: mark expected switch fall-through

2018-10-13 Thread Gustavo A. R. Silva
On 10/13/18 2:38 PM, Jonathan Cameron wrote: > On Mon, 8 Oct 2018 20:42:41 + > Peter Rosin wrote: > >> On 2018-10-08 19:35, Gustavo A. R. Silva wrote: >>> In preparation to enabling -Wimplicit-fallthrough, mark switch cases >>> where we are expecting to fall through. >> >> The way I see

RE: [PATCH V6 0/4] clk: new APIs to handle all available clocks

2018-10-13 Thread A.s. Dong
Ping > -Original Message- > From: A.s. Dong > Sent: Monday, October 8, 2018 6:43 PM > To: thor.tha...@linux.intel.com; linux-...@vger.kernel.org; sb...@kernel.org > Cc: linux-kernel@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > mturque...@baylibre.com; shawn...@kernel.org; dl-li

[PATCH] selftests/vm: Add a test for MAP_FIXED_NOREPLACE

2018-10-13 Thread Michael Ellerman
Add a test for MAP_FIXED_NOREPLACE, based on some code originally by Jann Horn. This would have caught the overlap bug reported by Daniel Micay. I originally suggested to Michal that we create MAP_FIXED_NOREPLACE, but instead of writing a selftest I spent my time bike-shedding whether it should be

Re: [GIT PULL] KVM fixes for 4.19-rc8

2018-10-13 Thread Greg KH
On Sat, Oct 13, 2018 at 11:43:02AM +0200, Paolo Bonzini wrote: > Greg, > > The following changes since commit cc906f07d7d569a30bb6f0baf8f80b2968353dc9: > > Merge tag 'kvm-ppc-fixes-4.19-3' of > git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc into kvm-master > (2018-10-05 09:39:53

Re: [PATCH] rcu: Use cpus_read_lock() while looking at cpu_online_mask

2018-10-13 Thread Paul E. McKenney
On Fri, Oct 12, 2018 at 08:41:15PM +0200, Sebastian Andrzej Siewior wrote: > On 2018-09-19 15:11:40 [-0700], Paul E. McKenney wrote: > > On Wed, Sep 19, 2018 at 01:55:21PM -0700, Tejun Heo wrote: > > > Unbound workqueue is NUMA-affine by default, so using it by default > > > might not harm anything

Re: [PATCH 3/7] dt-bindings: pinctrl: ds90ux9xx: add description of TI DS90Ux9xx pinmux

2018-10-13 Thread Vladimir Zapolskiy
Hi Laurent, thank you for review, please find my comments below. On 10/12/2018 03:01 PM, Laurent Pinchart wrote: > Hi Vladimir, > > Thank you for the patch. > > On Tuesday, 9 October 2018 00:12:01 EEST Vladimir Zapolskiy wrote: >> From: Vladimir Zapolskiy >> >> TI DS90Ux9xx de-/serializers hav

Re: [PATCH] mm/kasan: make quarantine_lock a raw_spinlock_t

2018-10-13 Thread Peter Zijlstra
On Fri, Oct 12, 2018 at 04:56:55PM -0700, Andrew Morton wrote: > There are several reasons for using raw_*, so an explanatory comment at > each site is called for. > > However it would be smarter to stop "using raw_* for several reasons". > Instead, create a differently named variant for each suc

[PATCH V4 11/15] KVM/MMU: Replace tlb flush function with range list flush function

2018-10-13 Thread lantianyu1986
From: Lan Tianyu This patch is to use range list flush function in the mmu_sync_children(), kvm_mmu_commit_zap_page() and FNAME(sync_page)(). Signed-off-by: Lan Tianyu --- arch/x86/kvm/mmu.c | 26 +++--- arch/x86/kvm/paging_tmpl.h | 5 - 2 files changed, 27 ins

[PATCH V4 2/15] KVM/MMU: Add tlb flush with range helper function

2018-10-13 Thread lantianyu1986
From: Lan Tianyu This patch is to add wrapper functions for tlb_remote_flush_with_range callback. Signed-off-by: Lan Tianyu --- Change sicne V3: Remove code of updating "tlbs_dirty" Change since V2: Fix comment in the kvm_flush_remote_tlbs_with_range() --- arch/x86/kvm/mmu.c | 40

[PATCH V4 5/15] KVM/MMU: Move tlb flush in kvm_set_pte_rmapp() to kvm_mmu_notifier_change_pte()

2018-10-13 Thread lantianyu1986
From: Lan Tianyu This patch is to move tlb flush in kvm_set_pte_rmapp() to kvm_mmu_notifier_change_pte() in order to avoid redundant tlb flush. Signed-off-by: Lan Tianyu --- arch/x86/kvm/mmu.c | 8 ++-- virt/kvm/kvm_main.c | 5 - 2 files changed, 6 insertions(+), 7 deletions(-) diff

[PATCH V4 6/15] KVM/MMU: Flush tlb directly in the kvm_set_pte_rmapp()

2018-10-13 Thread lantianyu1986
From: Lan Tianyu This patch is to flush tlb directly in the kvm_set_pte_rmapp() and return 0. Signed-off-by: Lan Tianyu --- arch/x86/kvm/mmu.c | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 5d3a180c57e2..f3742ff4ec18 100644 --- a/arch/x86

[PATCH V4 9/15] KVM: Add flush_link and parent_pte in the struct kvm_mmu_page

2018-10-13 Thread lantianyu1986
From: Lan Tianyu PV EPT tlb flush function will accept a list of flush ranges and use struct kvm_mmu_page as the list entry. Signed-off-by: Lan Tianyu --- arch/x86/include/asm/kvm_host.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/

[PATCH V4 12/15] x86/hyper-v: Add HvFlushGuestAddressList hypercall support

2018-10-13 Thread lantianyu1986
From: Lan Tianyu Hyper-V provides HvFlushGuestAddressList() hypercall to flush EPT tlb with specified ranges. This patch is to add the hypercall support. Reviewed-by: Michael Kelley Signed-off-by: Lan Tianyu --- Change since v2: Fix some coding style issues - Move HV_MAX_FLUSH_P

[PATCH V4 15/15] KVM/VMX: Add hv tlb range flush support

2018-10-13 Thread lantianyu1986
From: Lan Tianyu This patch is to register tlb_remote_flush_with_range callback with hv tlb range flush interface. Signed-off-by: Lan Tianyu --- Change since v3: Merge Vitaly's don't pass EPT configuration info to vmx_hv_remote_flush_tlb() fix. Change since v1: Pass flush range w

[PATCH V4 14/15] KVM/VMX: Change hv flush logic when ept tables are mismatched.

2018-10-13 Thread lantianyu1986
From: Lan Tianyu If ept table pointers are mismatched, flushing tlb for each vcpus via hv flush interface still helps to reduce vmexits which are triggered by IPI and INEPT emulation. Signed-off-by: Lan Tianyu --- arch/x86/kvm/vmx.c | 15 --- 1 file changed, 8 insertions(+), 7 dele

[PATCH V4 10/15] KVM: Add spte's point in the struct kvm_mmu_page

2018-10-13 Thread lantianyu1986
From: Lan Tianyu It's necessary to check whether mmu page is last or large page when add mmu page into flush list. "spte" is needed for such check and so add spte point in the struct kvm_mmu_page. Signed-off-by: Lan Tianyu --- arch/x86/include/asm/kvm_host.h | 1 + arch/x86/kvm/mmu.c

[PATCH V4 7/15] KVM/MMU: Flush tlb directly in the kvm_zap_gfn_range()

2018-10-13 Thread lantianyu1986
From: Lan Tianyu Originally, flush tlb is done by slot_handle_level_range(). This patch is to flush tlb directly in the kvm_zap_gfn_range() when range flush is available. Signed-off-by: Lan Tianyu --- arch/x86/kvm/mmu.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) d

[PATCH V4 8/15] KVM/MMU: Flush tlb directly in kvm_mmu_zap_collapsible_spte()

2018-10-13 Thread lantianyu1986
From: Lan Tianyu kvm_mmu_zap_collapsible_spte() returns flush request to the slot_handle_leaf() and the latter does flush on demand. When range flush is available, make kvm_mmu_zap_collapsible_spte() to flush tlb with range directly to avoid returning range back to slot_handle_leaf(). Signed-off

[PATCH V4 13/15] x86/Hyper-v: Add trace in the hyperv_nested_flush_guest_mapping_range()

2018-10-13 Thread lantianyu1986
From: Lan Tianyu This patch is to trace log in the hyperv_nested_flush_ guest_mapping_range(). Signed-off-by: Lan Tianyu --- arch/x86/hyperv/nested.c| 1 + arch/x86/include/asm/trace/hyperv.h | 14 ++ 2 files changed, 15 insertions(+) diff --git a/arch/x86/hyperv/nest

[PATCH V5 1/3] kvm/x86 : add coalesced pio support

2018-10-13 Thread Peng Hao
add coalesced pio support. Signed-off-by: Peng Hao --- include/uapi/linux/kvm.h | 11 +-- virt/kvm/coalesced_mmio.c | 12 +--- virt/kvm/kvm_main.c | 2 ++ 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h

[PATCH V5 2/3] kvm/x86 : add document for coalesced mmio

2018-10-13 Thread Peng Hao
Signed-off-by: Peng Hao --- Documentation/virtual/kvm/api.txt | 24 1 file changed, 24 insertions(+) diff --git a/Documentation/virtual/kvm/api.txt b/Documentation/virtual/kvm/api.txt index 647f941..9615b9e 100644 --- a/Documentation/virtual/kvm/api.txt +++ b/Documentat

  1   2   >