Re: [PATCH v2] netfilter: mark expected switch fall-throughs

2017-11-13 Thread Simon Horman
On Tue, Nov 07, 2017 at 08:19:29AM -0600, Gustavo A. R. Silva wrote: > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Addresses-Coverity-ID: 1128839 > Addresses-Coverity-ID: 1128840 > Addresses-Coverity-ID: 115120 >

Re: [PATCH v4 2/4] KVM: X86: Add paravirt remote TLB flush

2017-11-13 Thread Peter Zijlstra
On Sun, Nov 12, 2017 at 04:33:24PM -0800, Wanpeng Li wrote: > +static void kvm_flush_tlb_others(const struct cpumask *cpumask, > + const struct flush_tlb_info *info) > +{ > + u8 state; > + int cpu; > + struct kvm_steal_time *src; > + struct cpumask *flushmask =

Re: [PATCH v4 2/4] KVM: X86: Add paravirt remote TLB flush

2017-11-13 Thread Wanpeng Li
2017-11-13 15:59 GMT+08:00 Peter Zijlstra : > On Sun, Nov 12, 2017 at 04:33:24PM -0800, Wanpeng Li wrote: >> +static void kvm_flush_tlb_others(const struct cpumask *cpumask, >> + const struct flush_tlb_info *info) >> +{ >> + u8 state; >> + int cpu;

Re: [PATCH 3/4] x86/umip: Identify the str and sldt instructions

2017-11-13 Thread Ingo Molnar
* Ricardo Neri wrote: > The instructions str and sldt are not emulated in any case. Thus, it made > sense to not implement functionality to identify them. However, a > subsequent commit will introduce functionality to warn about the use of > all the

[GIT PULL] x86/boot changes for v4.15

2017-11-13 Thread Ingo Molnar
Linus, Please pull the latest x86-boot-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-boot-for-linus # HEAD: 6c3b56b1973083e2bb4e87eb90ea5368455706dc x86/boot: Disable Clang warnings about GNU extensions Three smaller changes: - clang fix -

Re: [RESENT,PATCH 0/5] licenses: Create LICENSES directory

2017-11-13 Thread Greg KH
On Sun, Nov 12, 2017 at 12:23:43PM +0100, Charlemagne Lasse wrote: > From: Charlemagne Lasse > > Hi, > > the FSFE created some best practices for the (re)distribution of open source > software [1]. They partially talk about the the SPDX-License-Identifier tag > which

[GIT PULL] scheduler updates for v4.15

2017-11-13 Thread Ingo Molnar
Linus, Please pull the latest sched-core-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched-core-for-linus # HEAD: 765cc3a4b224e22bf524fabe40284a524f37cdd0 sched/core: Optimize sched_feat() for !CONFIG_SCHED_DEBUG builds The main updates in this

Re: [PATCH] KVM: x86: inject exceptions produced by x86_decode_insn

2017-11-13 Thread Paolo Bonzini
On 13/11/2017 08:15, Wanpeng Li wrote: > 2017-11-10 17:49 GMT+08:00 Paolo Bonzini : >> Sometimes, a processor might execute an instruction while another >> processor is updating the page tables for that instruction's code page, >> but before the TLB shootdown completes. The

Re: [PATCH] scsi: bnx2i: bnx2i_hwi: use swap macro in bnx2i_send_iscsi_nopout

2017-11-13 Thread Rangankar, Manish
On 04/11/17 1:28 AM, "Gustavo A. R. Silva" wrote: >Make use of the swap macro and remove unnecessary variable tmp. >This makes the code easier to read and maintain. > >This code was detected with the help of Coccinelle. > >Signed-off-by: Gustavo A. R. Silva

Re: [PATCH] wcn36xx: fix iris child-node lookup

2017-11-13 Thread Kalle Valo
Johan Hovold writes: > Fix child-node lookup during probe, which ended up searching the whole > device tree depth-first starting at the parent rather than just matching > on its children. > > To make things worse, the parent mmio node was also prematurely freed. > > Fixes:

Re: Improving documentation of parent-ID field in /proc/PID/mountinfo

2017-11-13 Thread Miklos Szeredi
On Mon, Nov 13, 2017 at 8:55 AM, Ram Pai wrote: > On Mon, Nov 13, 2017 at 07:02:21AM +0100, Michael Kerrisk (man-pages) wrote: >> Hello Ram, >> >> Long ago (2.6.29) you added the /proc/PID/mountinfo file and >> associated documentation in Documentation/filesystems/proc.txt.

Re: [PATCH v2 1/4] kaslr: parse the extended movable_node=nn[KMG]@ss[KMG]

2017-11-13 Thread Baoquan He
Hi Chao, Please think more on your patches, better to discuss with your colleagues and ask them to help review before your post. On 11/01/17 at 07:32pm, Chao Fan wrote: > Extend the movable_node to movable_node=nn[KMG]@ss[KMG]. Firstly, apparently we can't make use of movable_node kernel

Re: [PATCH v2 2/4] kaslr: select the memory region in immovable node to process

2017-11-13 Thread Baoquan He
On 11/01/17 at 07:32pm, Chao Fan wrote: > Compare the region of memmap entry and immovable_mem, then choose the > intersection to process_mem_region. > > Since the interrelationship between e820 or efi entries and memory > region in immovable_mem is different: > One memory region in one node may

Re: [PATCH] serial: 8250_pci: Add Amazon PCI serial device ID

2017-11-13 Thread Greg Kroah-Hartman
On Sun, Nov 12, 2017 at 02:14:06PM -0800, Matt Wilson wrote: > From: Matt Wilson > > Cc: sta...@vger.kernel.org > Signed-off-by: Matt Wilson > --- I can't take patches without any changelog text at all :( Please resend with a bit more descriptions of what

Re: [PATCH v2 4/4] kaslr: clean up a useless variable and some usless space

2017-11-13 Thread Baoquan He
On 11/01/17 at 07:32pm, Chao Fan wrote: > There are two same variable "rc" in this function. One is in the > circulation, the other is out of the circulation. The one out will never > be used, so drop it. You can send this clean up patch alone. > > Signed-off-by: Chao Fan

RE: [PATCH V2 net] net: hns3: Updates MSI/MSI-X alloc/free APIs(depricated) to new APIs

2017-11-13 Thread Salil Mehta
Hi David, > -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Monday, November 13, 2017 1:19 AM > To: Salil Mehta > Cc: h...@lst.de; Zhuangyuzeng (Yisen); lipeng (Y); > mehta.salil@gmail.com; net...@vger.kernel.org; linux- > ker...@vger.kernel.org;

Re: [PATCH 3/4] kbuild: create object directories simpler and faster

2017-11-13 Thread Masahiro Yamada
2017-11-10 18:21 GMT+09:00 Masahiro Yamada : > Hi Cao, > > > 2017-11-10 17:45 GMT+09:00 Cao jin : > >>> +ifneq ($(KBUILD_SRC),) >>> +# Create directories for object files if directory does not exist >>> +obj-dirs := $(sort $(obj) $(patsubst

[PATCH 2/2] net: dsa: lan9303: check error value from devm_gpiod_get_optional()

2017-11-13 Thread Phil Reid
devm_gpiod_get_optional() can return an error in addition to a NULL ptr. Check for error and propagate that to the probe function. Check return value in probe. This will now handle EPROBE_DEFER for the reset gpio. Signed-off-by: Phil Reid ---

Re: 319554f284dd ("inet: don't use sk_v6_rcv_saddr directly") causes bind port regression

2017-11-13 Thread Marc Haber
Hi, those four patches never made it into any 4.13 release. 0001-net-call-sk_reuseport_match-if-we-are-a-reusesock.patch 0001-net-don-t-fast-patch-mismatched-sockets-in-STRICT-mo.patch 0001-net-use-inet6_rcv_saddr-to-compare-sockets.patch 0001-net-set-tb-fast_sk_family.patch And I have just

Re: linux-next: build warning after merge of the akpm-current tree

2017-11-13 Thread Michal Hocko
On Mon 13-11-17 16:42:06, Stephen Rothwell wrote: > Hi Andrew, > > After merging the akpm-current tree, today's linux-next build (powerpc > ppc64_defconfig) produced this warning: > > In file included from include/linux/mmzone.h:17:0, > from include/linux/mempolicy.h:10, >

[PATCH 1/2] net: dsa: lan9303: make lan9303_handle_reset() a void function

2017-11-13 Thread Phil Reid
lan9303_handle_reset never returns anything other than success. So there's not need for it to return an error code. Signed-off-by: Phil Reid --- drivers/net/dsa/lan9303-core.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git

[PATCH 0/2] net: dsa: lan9303: check error value from devm_gpiod_get_optional()

2017-11-13 Thread Phil Reid
Replaces Pan Bian patch "net: dsa: lan9303: correctly check return value of devm_gpiod_get_optional" Errors need to be prograted back from probe. Note: I have only compile tested the code as I don't have the hardware. Phil Reid (2): net: dsa: lan9303: make

Re: [linux-sunxi] [PATCH v3 3/3] media: MAINTAINERS: add entries for Allwinner V3s CSI

2017-11-13 Thread Yong
On Mon, 13 Nov 2017 15:37:11 +0800 Yong Deng wrote: > Signed-off-by: Yong Deng > --- > MAINTAINERS | 8 > 1 file changed, 8 insertions(+) > > diff --git a/MAINTAINERS b/MAINTAINERS > index adbf693..1ba7782 100644 > --- a/MAINTAINERS >

[GIT PULL] x86/cleanups for v4.15

2017-11-13 Thread Ingo Molnar
Linus, Please pull the latest x86-cleanups-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-cleanups-for-linus # HEAD: 642e641cbea57e559720b9df09889ffcf525cf04 x86/events/amd/iommu: Make iommu_pmu const and __initconst Two changes: Propagate

Re: [PATCH v1 1/5] perf, tools: Document some missing perf.data headers

2017-11-13 Thread Jiri Olsa
On Thu, Nov 09, 2017 at 06:55:24AM -0800, Andi Kleen wrote: > From: Andi Kleen > > Document STAT and CACHE header entries. > > Signed-off-by: Andi Kleen Acked-by: Jiri Olsa thanks, jirka > --- >

Re: [ftrace-bpf 1/5] add BPF_PROG_TYPE_FTRACE to bpf

2017-11-13 Thread peng yu
> 1. anything bpf related has to go via net-next tree. I found there is a net-next git repo: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git I will use this repo for the further bpf-ftrace patch set. > 2. > this obviously breaks ABI. New types can only be added to the end.

Re: [PATCH v4 3/5] staging: Introduce NVIDIA Tegra video decoder driver

2017-11-13 Thread Dan Carpenter
On Sat, Nov 11, 2017 at 04:06:52PM +0200, Vladimir Zapolskiy wrote: > > + if (!wait_dma) > > + return 0; > > + > > + err = readl_relaxed_poll_timeout(vde->bsev + INTR_STATUS, value, > > +!(value & BSE_DMA_BUSY), 1, 100); > > + if (err) { > > +

[git pull] m68k updates for 4.15

2017-11-13 Thread Geert Uytterhoeven
Hi Linus, The following changes since commit 0b07194bb55ed836c2cc7c22e866b87a14681984: Linux 4.14-rc7 (2017-10-29 13:58:38 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k.git tags/m68k-for-v4.15-tag1 for you to fetch

[GIT PULL] x86/debug change for v4.15

2017-11-13 Thread Ingo Molnar
Linus, Please pull the latest x86-debug-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-debug-for-linus # HEAD: 77072f09eab19326dd2424c8dad0a443341a228f x86/stacktrace: Avoid recording save_stack_trace() wrappers A single change enhancing stack

Re: [PATCH v2 1/4] kaslr: parse the extended movable_node=nn[KMG]@ss[KMG]

2017-11-13 Thread Chao Fan
On Mon, Nov 13, 2017 at 04:10:41PM +0800, Baoquan He wrote: >Hi Chao, Hi Baoquan, Thanks for your reply. > >Please think more on your patches, better to discuss with your >colleagues and ask them to help review before your post. > >On 11/01/17 at 07:32pm, Chao Fan wrote: >> Extend the

Re: [PATCH] perf/core: fast breakpoint modification via _IOC_MODIFY_BREAKPOINT

2017-11-13 Thread Milind Chabbi
SNIP On Sun, Nov 12, 2017 at 11:46 PM, Jiri Olsa wrote: > but you closed fd4 before openning fd5..? Yes, that is correct. I closed fd4. The reason is by closing fd4, we are having a total of 3 hardware breakpoints active, but we are making the software counting in the kernel

[PATCH] ARM64: dts: meson-axg: add ethernet mac controller

2017-11-13 Thread Yixun Lan
Add DT info for the stmmac ethernet MAC which found in the Amlogic's Meson-AXG SoC, also describe the ethernet pinctrl & clock information here. This is tested in the S400 dev board which use a RTL8211F PHY, and the pins connect to the 'eth_rgmii_y_pins' group. Signed-off-by: Yixun Lan

[GIT PULL] x86 updates for v4.15

2017-11-13 Thread Ingo Molnar
Linus, Please pull the latest x86-asm-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-asm-for-linus # HEAD: 91a6a6cfee8ad34ea4cc10a54c0765edfe437cdb Merge branch 'linus' into x86/asm, to resolve conflict Note that in this cycle most of the x86

Re: linux-next: build warning after merge of the akpm-current tree

2017-11-13 Thread Michal Hocko
On Mon 13-11-17 09:09:55, Michal Hocko wrote: > On Mon 13-11-17 16:42:06, Stephen Rothwell wrote: > > Hi Andrew, > > > > After merging the akpm-current tree, today's linux-next build (powerpc > > ppc64_defconfig) produced this warning: > > > > In file included from include/linux/mmzone.h:17:0, >

Re: [PATCH] ARM: dts: sunxi: Add codec for A13 Olinuxino

2017-11-13 Thread Maxime Ripard
On Mon, Nov 06, 2017 at 09:51:39PM +0100, Emmanuel Vadot wrote: > The A13 Olinuxino have an headphone jack and audio is supported > so enable it. > > Signed-off-by: Emmanuel Vadot Queued for 4.16, thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux and Kernel

Re: [PATCH v4 2/4] KVM: X86: Add paravirt remote TLB flush

2017-11-13 Thread Wanpeng Li
2017-11-13 16:04 GMT+08:00 Peter Zijlstra : > On Sun, Nov 12, 2017 at 04:33:24PM -0800, Wanpeng Li wrote: >> +static void kvm_flush_tlb_others(const struct cpumask *cpumask, >> + const struct flush_tlb_info *info) >> +{ >> + u8 state; >> + int cpu;

Re: [PATCH V9 1/4] dma-mapping: Rework dma_get_cache_alignment()

2017-11-13 Thread 陈华才
But in b44_init(), there is no device instances. -- Original -- From: "Christoph Hellwig"; Date: Fri, Nov 10, 2017 08:30 PM To: "Huacai Chen"; Cc: "Christoph Hellwig"; "Marek

[GIT PULL] x86/platform changes for v4.15

2017-11-13 Thread Ingo Molnar
Linus, Please pull the latest x86-platform-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-platform-for-linus # HEAD: 418492ba40b2c2bbdaf1a169aac5b1673bde8189 x86/virt/xen: Use guest_late_init to detect Xen PVH guest The main changes in this cycle

Re: [PATCH v4 2/4] KVM: X86: Add paravirt remote TLB flush

2017-11-13 Thread Peter Zijlstra
On Sun, Nov 12, 2017 at 04:33:24PM -0800, Wanpeng Li wrote: > +static void kvm_flush_tlb_others(const struct cpumask *cpumask, > + const struct flush_tlb_info *info) > +{ > + u8 state; > + int cpu; > + struct kvm_steal_time *src; > + struct cpumask *flushmask =

Re: [linux-sunxi] Re: [PATCH] ARM: sun8i: h2+: add support for Banana Pi M2 Zero board

2017-11-13 Thread Maxime Ripard
Hi, On Fri, Nov 03, 2017 at 07:53:17AM +0800, Icenowy Zheng wrote: > 在 2017-11-02 23:50,Maxime Ripard 写道: > > On Thu, Nov 02, 2017 at 05:07:30PM +0800, Icenowy Zheng wrote: > > > > > + { > > > > > + pinctrl-names = "default"; > > > > > + pinctrl-0 = <_pins_a>; > > > > > + vmmc-supply

[PATCH] ANDROID: binder: show high watermark of alloc->pages.

2017-11-13 Thread Martijn Coenen
Show the high watermark of the index into the alloc->pages array, to facilitate sizing the buffer on a per-process basis. Signed-off-by: Martijn Coenen --- drivers/android/binder_alloc.c | 4 drivers/android/binder_alloc.h | 2 ++ 2 files changed, 6 insertions(+) diff

[PATCH] ANDROID: binder: fix transaction leak.

2017-11-13 Thread Martijn Coenen
If a call to put_user() fails, we failed to properly free a transaction and send a failed reply (if necessary). Signed-off-by: Martijn Coenen --- drivers/android/binder.c | 40 +++- 1 file changed, 31 insertions(+), 9 deletions(-) diff

Re: [PATCH] arch, mm: introduce arch_tlb_gather_mmu_lazy (was: Re: [RESEND PATCH] mm, oom_reaper: gather each vma to prevent) leaking TLB entry

2017-11-13 Thread Michal Hocko
On Mon 13-11-17 09:28:33, Minchan Kim wrote: [...] > Thanks for the patch, Michal. > However, it would be nice to do it tranparently without asking > new flags from users. > > When I read tlb_gather_mmu's description, fullmm is supposed to > be used only if there is no users and full address

Re: linux-next: manual merge of the arm64 tree with Linus' tree

2017-11-13 Thread Lorenzo Pieralisi
On Mon, Nov 13, 2017 at 09:15:08AM +, Catalin Marinas wrote: > Hi Stephen, > > On Mon, Nov 13, 2017 at 05:09:53PM +1100, Stephen Rothwell wrote: > > On Wed, 1 Nov 2017 07:57:23 +1100 Stephen Rothwell > > wrote: > > > Today's linux-next merge of the arm64 tree got a

Re: [PATCH RFC v3 1/6] x86/paravirt: Add pv_idle_ops to paravirt ops

2017-11-13 Thread Juergen Gross
On 13/11/17 11:06, Quan Xu wrote: > From: Quan Xu > > So far, pv_idle_ops.poll is the only ops for pv_idle. .poll is called > in idle path which will poll for a while before we enter the real idle > state. > > In virtualization, idle path includes several heavy operations >

Re: [RFC] hv_netvsc: safer orderly shutdown

2017-11-13 Thread Vitaly Kuznetsov
Stephen Hemminger writes: > > The NAPI disable is already handled by rndis close. Sorry, but I'm probably missing something: I can only see netif_napi_del() call in netvsc_device_remove() but this happens much later. And I don see us doing napi_disable() anywhere on

[PATCH] sh: decompressor: ignore shipped files

2017-11-13 Thread Masahiro Yamada
These files are copied from arch/sh/lib, so should be ignored by git. Signed-off-by: Masahiro Yamada --- arch/sh/boot/compressed/.gitignore | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/sh/boot/compressed/.gitignore

Re: [PATCH] usb: f_fs: Drop check on Reserved1 field on OS_DESC_EXT_COMPAT

2017-11-13 Thread Felipe Balbi
Hi, John Keeping writes: > On Fri, 10 Nov 2017 12:40:39 +0200, Felipe Balbi wrote: > >> John Keeping writes: >> > This check has gone through several incompatible variations in commits >> > 53642399aa71 ("usb: gadget: f_fs: Fix wrong check on reserved1 of

Re: [PATCH 1/2] mfd: twl4030-audio: fix sibling-node lookup

2017-11-13 Thread Lee Jones
On Sat, 11 Nov 2017, Johan Hovold wrote: > A helper purported to look up a child node based on its name was using > the wrong of-helper and ended up prematurely freeing the parent of-node > while leaking any matching node. > > To make things worse, any matching node would not even necessarily be

Re: [PATCH v1 3/5] perf, tools, script: Allow printing period for non freq mode groups

2017-11-13 Thread Jiri Olsa
On Thu, Nov 09, 2017 at 06:55:26AM -0800, Andi Kleen wrote: > From: Andi Kleen > > When using leader sampling the values of the not sampled but counted > events are shown by perf script in "period". > > Currently printing period is only allowed when the main event > has a

Re: [PATCH v2 28/37] hrtimer: Implement support for softirq based hrtimers

2017-11-13 Thread Anna-Maria Gleixner
On Fri, 10 Nov 2017, Sebastian Andrzej Siewior wrote: > On 2017-10-22 23:40:06 [+0200], Anna-Maria Gleixner wrote: > > --- a/include/linux/hrtimer.h > > +++ b/include/linux/hrtimer.h > > @@ -528,25 +546,42 @@ static ktime_t __hrtimer_next_event_base > > * Recomputes cpu_base::*next_timer and

Re: [PATCH 2/2] mfd: twl6040: fix child-node lookup

2017-11-13 Thread Lee Jones
On Sat, 11 Nov 2017, Johan Hovold wrote: > Fix child-node lookup during probe, which ended up searching the whole > device tree depth-first starting at the parent rather than just matching > on its children. > > To make things worse, the parent node was prematurely freed, while the > child node

Re: linux-next: Tree for Nov 7

2017-11-13 Thread Russell King - ARM Linux
On Mon, Nov 13, 2017 at 10:20:06AM +0100, Michal Hocko wrote: > [Cc arm and ppc maintainers] > > Thanks a lot for testing! > > On Sun 12-11-17 11:38:02, Joel Stanley wrote: > > On Fri, Nov 10, 2017 at 11:00 PM, Michal Hocko wrote: > > > Hi Joel, > > > > > > On Wed 08-11-17

Re: [PATCH 1/3] Input: twl4030-vibra: fix sibling-node lookup

2017-11-13 Thread Johan Hovold
On Mon, Nov 13, 2017 at 09:11:44AM +, Lee Jones wrote: > On Sun, 12 Nov 2017, Johan Hovold wrote: > > > [ +CC: Lee, Rob and device-tree list ] > > > > On Sat, Nov 11, 2017 at 09:50:59AM -0800, Dmitry Torokhov wrote: > > > On Sat, Nov 11, 2017 at 04:43:37PM +0100, Johan Hovold wrote: > > > >

[PATCH 2/2] f2fs: inject fault in inc_valid_node_count

2017-11-13 Thread Chao Yu
This patch adds missing fault injection in inc_valid_node_count. Signed-off-by: Chao Yu --- fs/f2fs/f2fs.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 5c379a8ea075..22b81bbb056f 100644 --- a/fs/f2fs/f2fs.h +++

[PATCH 1/2] f2fs: fix to clear FI_NO_PREALLOC

2017-11-13 Thread Chao Yu
We need to clear FI_NO_PREALLOC flag in error path of f2fs_file_write_iter, otherwise we will lose the chance to preallocate blocks in latter write() at one time. Fixes: dc91de78e5e1 ("f2fs: do not preallocate blocks which has wrong buffer") Signed-off-by: Chao Yu ---

Re: [PATCHv4 3/6] powerpc64: Add .opd based function descriptor dereference

2017-11-13 Thread Sergey Senozhatsky
On (11/13/17 12:41), Santosh Sivaraj wrote: > * Sergey Senozhatsky wrote (on 2017-11-10 > 08:48:27 +0900): > > > We are moving towards separate kernel and module function descriptor > > dereference callbacks. This patch enables it for powerpc64. > > > > For

Re: [PATCH v2 2/4] kaslr: select the memory region in immovable node to process

2017-11-13 Thread Chao Fan
On Mon, Nov 13, 2017 at 05:26:24PM +0800, Baoquan He wrote: >On 11/13/17 at 05:18pm, Chao Fan wrote: >> On Mon, Nov 13, 2017 at 04:31:31PM +0800, Baoquan He wrote: >> >On 11/01/17 at 07:32pm, Chao Fan wrote: >> >> Compare the region of memmap entry and immovable_mem, then choose the >> >>

[PATCH v5 3/4] KVM: X86: introduce invalidate_gpa argument to tlb flush

2017-11-13 Thread Wanpeng Li
From: Wanpeng Li Introduce a new bool invalidate_gpa argument to kvm_x86_ops->tlb_flush, it will be used by later patches to just flush guest tlb. Cc: Paolo Bonzini Cc: Radim Krčmář Cc: Peter Zijlstra

[PATCH v5 1/4] KVM: X86: Add vCPU running/preempted state

2017-11-13 Thread Wanpeng Li
From: Wanpeng Li This patch reuses the preempted field in kvm_steal_time, and will export the vcpu running/pre-empted information to the guest from host. This will enable guest to intelligently send ipi to running vcpus and set flag for pre-empted vcpus. This will prevent

[PATCH v5 0/4] KVM: X86: Paravirt remote TLB flush

2017-11-13 Thread Wanpeng Li
Remote flushing api's does a busy wait which is fine in bare-metal scenario. But with-in the guest, the vcpus might have been pre-empted or blocked. In this scenario, the initator vcpu would end up busy-waiting for a long amount of time. This patch set implements para-virt flush tlbs making sure

[PATCH v5 4/4] KVM: X86: Add flush_on_enter before guest enter

2017-11-13 Thread Wanpeng Li
From: Wanpeng Li PV-Flush guest would indicate to flush on enter, flush the TLB before entering the guest. Cc: Paolo Bonzini Cc: Radim Krčmář Cc: Peter Zijlstra Signed-off-by: Wanpeng Li

Re: [PATCH] KVM: x86: inject exceptions produced by x86_decode_insn

2017-11-13 Thread Yanan Fu
- Original Message - > From: "Paolo Bonzini" > To: "Wanpeng Li" > Cc: linux-kernel@vger.kernel.org, "kvm" , > y...@redhat.com, "Eduardo Habkost" > > Sent: Monday, November 13, 2017 4:32:09 PM >

Re: [PATCH v5 2/2] crypto: stm32 - Support for STM32 CRYP crypto module

2017-11-13 Thread Fabien DESSENNE
Hi Herbert, Can you check if this patchset (removed the AEAD part as you suggested + libkcapi test OK as suggested by Corentin) can be applied now? BR Fabien On 07/11/17 15:40, Fabien DESSENNE wrote: > > On 22/10/17 09:26, Corentin Labbe wrote: >> On Thu, Oct 19, 2017 at 05:10:30PM +0200,

[PATCH v2 6/6] kbuild: remove redundant mkdir from ./Kbuild

2017-11-13 Thread Masahiro Yamada
These two targets are added to "targets". Their directories are automatically created. Signed-off-by: Masahiro Yamada --- Changes in v2: None Kbuild | 2 -- 1 file changed, 2 deletions(-) diff --git a/Kbuild b/Kbuild index 94c7527..f1997d8 100644 --- a/Kbuild

[PATCH v2 1/6] kbuild: create directory for make cache only when necessary

2017-11-13 Thread Masahiro Yamada
Currently, the existence of $(dir $(make-cache)) is always checked, and created if it is missing. We can avoid unnecessary system calls by some tricks. [1] If KBUILD_SRC is unset, we are building in the source tree. The output directory checks can be entirely skipped. [2] If at least one

[PATCH v2] ahci: imx: Handle increased read failures for IMX53 temperature sensor in low frequency mode.

2017-11-13 Thread Martyn Welch
From: Egor Starkov Extended testing has shown that the imx ahci driver sometimes requires more than the 100 attempts currently alotted in the driver to perform a successful temperature reading when running at minimum (throttled) CPU frequency. Debugging suggests that the

Re: [PATCH] drm/stm: ltdc: add clut mode support

2017-11-13 Thread Philippe CORNU
Hi Peter, On 11/12/2017 01:31 PM, Peter Rosin wrote: > On 2017-11-10 17:12, Philippe CORNU wrote: >> Hi Peter, >> >> On 11/07/2017 05:34 PM, Peter Rosin wrote: >>> On 2017-11-07 16:53, Philippe CORNU wrote: + Peter Hi Peter, CLUT support on STM32 has been removed thanks

Re: [PATCH] sched/deadline: fix runtime accounting in documentation

2017-11-13 Thread Daniel Bristot de Oliveira
On 10/13/2017 12:08 PM, Claudio Scordino wrote: > Signed-off-by: Claudio Scordino > Signed-off-by: Luca Abeni > --- > Documentation/scheduler/sched-deadline.txt | 12 +--- > 1 file changed, 9 insertions(+), 3 deletions(-) > > diff

Re: [PATCH 26/31] nds32: Build infrastructure

2017-11-13 Thread Geert Uytterhoeven
On Wed, Nov 8, 2017 at 11:16 AM, Arnd Bergmann wrote: > On Wed, Nov 8, 2017 at 6:55 AM, Greentime Hu wrote: >> --- /dev/null >> +++ b/arch/nds32/Kconfig >> @@ -0,0 +1,107 @@ >> +# >> +# For a description of the syntax of this configuration file, >> +# see

Re: [PATCH v2 3/3] kvm: arm64: handle single-step of userspace mmio instructions

2017-11-13 Thread Julien Thierry
Hi Alex, On 09/11/17 17:00, Alex Bennée wrote: The system state of KVM when using userspace emulation is not complete until we return into KVM_RUN. To handle mmio related updates we wait until they have been committed and then schedule our KVM_EXIT_DEBUG. The kvm_arm_handle_step_debug() helper

Re: [PATCH 7/7] blk-throtl: don't throttle the same IO multiple times

2017-11-13 Thread Tejun Heo
Hello, Shaohua. On Sun, Nov 12, 2017 at 08:07:16PM -0800, Shaohua Li wrote: > Thanks for looking into this while I was absence. I don't understand how this > works. Assume a bio will be splitted into 2 small bios. In > generic_make_request, we charge the whole bio. 'q->make_request_fn' will >

[PATCH 2/2] ASoC: twl4030: fix child-node lookup

2017-11-13 Thread Johan Hovold
Fix child-node lookup during probe, which ended up searching the whole device tree depth-first starting at the parent rather than just matching on its children. To make things worse, the parent codec node was also prematurely freed, while the child node was leaked. Fixes: 2d6d649a2e0f ("ASoC:

[PATCH 1/2] ASoC: da7218: fix fix child-node lookup

2017-11-13 Thread Johan Hovold
Fix child-node lookup during probe, which ended up searching the whole device tree depth-first starting at the parent rather than just matching on its children. To make things worse, the parent codec node was also prematurely freed. Fixes: 4d50934abd22 ("ASoC: da7218: Add da7218 codec driver")

Re: [PATCH 11/14] nubus: Repopulate /proc/bus/nubus/s/

2017-11-13 Thread Geert Uytterhoeven
Hi Finn, On Sat, Nov 11, 2017 at 7:12 AM, Finn Thain wrote: > Create the /proc/bus/nubus/s/ inodes while scanning slot s. During > descent through slot resource subdirectories, call the new > nubus_proc_add_foo() functions to create the procfs inodes. > > Also add a

Re: [PATCH 12/14] nubus: Rename struct nubus_dev

2017-11-13 Thread Geert Uytterhoeven
Hi Finn, On Sat, Nov 11, 2017 at 7:12 AM, Finn Thain wrote: > It is misleading to use "dev" to mean a functional resource. And > in adopting the Linux Driver Model, struct nubus_board will embed a > struct device. Drivers will then bind with boards, not with

Re: [PATCH v1 4/5] perf, tools: Add fallback in perf_evsel__nr_cpus for no map

2017-11-13 Thread Jiri Olsa
On Thu, Nov 09, 2017 at 06:55:27AM -0800, Andi Kleen wrote: > From: Andi Kleen > > Support the case of the event having no cpumap in perf_evsel__nr_cpus. > Just return 1 in this case. This can happen in perf script > when it uses the perf stat shadow functions. why 1,

Re: [PATCH] ARM: dts: sun8i: add support for Orange Pi R1

2017-11-13 Thread Maxime Ripard
On Sun, Nov 12, 2017 at 08:41:29PM +0800, Icenowy Zheng wrote: > Orange Pi R1 is a board design based on Orange Pi Zero, with XR819 Wi-Fi > chip replaced by RTL8189ETV Wi-Fi module and the USB Type-A jack > replaced by an onboard USB RTL8152B USB-Ethernet adapter. > > Add support for it. > >

Re: [PATCH v2 2/4] kaslr: select the memory region in immovable node to process

2017-11-13 Thread Baoquan He
On 11/13/17 at 05:18pm, Chao Fan wrote: > On Mon, Nov 13, 2017 at 04:31:31PM +0800, Baoquan He wrote: > >On 11/01/17 at 07:32pm, Chao Fan wrote: > >> Compare the region of memmap entry and immovable_mem, then choose the > >> intersection to process_mem_region. > >> > >> Since the

[GIT pull] printk updates for 4.15

2017-11-13 Thread Thomas Gleixner
Linus, please pull the latest core-printk-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git core-printk-for-linus This update adds the mechanisms to emit printk timestamps based on different clocks: - scheduler clock (default) - monotonic time - boot

Re: [PATCH] wcn36xx: fix iris child-node lookup

2017-11-13 Thread Johan Hovold
On Mon, Nov 13, 2017 at 08:51:49AM +, Kalle Valo wrote: > Johan Hovold writes: > > > Fix child-node lookup during probe, which ended up searching the whole > > device tree depth-first starting at the parent rather than just matching > > on its children. > > > > To make

Re: [PATCH] ANDROID: binder: fix transaction leak.

2017-11-13 Thread Greg KH
On Mon, Nov 13, 2017 at 10:06:08AM +0100, Martijn Coenen wrote: > If a call to put_user() fails, we failed to > properly free a transaction and send a failed > reply (if necessary). > > Signed-off-by: Martijn Coenen > --- > drivers/android/binder.c | 40

Re: [PATCH] ANDROID: binder: show high watermark of alloc->pages.

2017-11-13 Thread Greg KH
On Mon, Nov 13, 2017 at 10:06:56AM +0100, Martijn Coenen wrote: > Show the high watermark of the index into the alloc->pages > array, to facilitate sizing the buffer on a per-process > basis. > > Signed-off-by: Martijn Coenen > --- > drivers/android/binder_alloc.c | 4 >

[PATCH v5 2/4] KVM: X86: Add paravirt remote TLB flush

2017-11-13 Thread Wanpeng Li
From: Wanpeng Li Remote flushing api's does a busy wait which is fine in bare-metal scenario. But with-in the guest, the vcpus might have been pre-empted or blocked. In this scenario, the initator vcpu would end up busy-waiting for a long amount of time. This patch set

[PATCH] MAINTAINERS: change maintainer for Rockchip drm drivers

2017-11-13 Thread Mark Yao
For personal reasons, Mark Yao will leave rockchip, can not continue maintain drm/rockchip, Sandy Huang will take over the drm/rockchip. Cc: Sandy Huang Cc: Heiko Stuebner Signed-off-by: Mark Yao --- MAINTAINERS | 2 +- 1 file

Re: [PATCH] PCI: keystone: fix interrupt-controller-node lookup

2017-11-13 Thread Lorenzo Pieralisi
Hi Johan, On Sun, Nov 12, 2017 at 01:28:50PM +0100, Johan Hovold wrote: > Fix child-node lookup during initialisation, which ended up searching > the whole device tree depth-first starting at the parent rather than > just matching on its children. > > To make things worse, the parent pci node

[PATCH] frv: .gitignore: ignore vmlinux.lds

2017-11-13 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- arch/frv/kernel/.gitignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 arch/frv/kernel/.gitignore diff --git a/arch/frv/kernel/.gitignore b/arch/frv/kernel/.gitignore new file mode 100644 index 000..c5f676c ---

[PATCH] kbuild: fixes in Makefile.lib

2017-11-13 Thread Cao jin
Commit cf4f21938e13 ("kbuild: Allow to specify composite modules with modname-m") added modname-m support, but missed to update the corresponding multi-objs-m & modname-multi definition. Signed-off-by: Cao jin --- Addressed the all comments of Masahiro-san from RFC

[PATCH] selinux: remove unnecessary assignment to subdir-

2017-11-13 Thread Masahiro Yamada
Makefile.clean descends into $(subdir-y). Dummy assignment to subdir- is meaningless. Signed-off-by: Masahiro Yamada --- I will pick this up for kbuild tree since this is very trivial from the build system point of view. scripts/selinux/Makefile | 1 - 1 file

Re: [PATCH v4 2/4] KVM: X86: Add paravirt remote TLB flush

2017-11-13 Thread Peter Zijlstra
On Mon, Nov 13, 2017 at 04:26:57PM +0800, Wanpeng Li wrote: > 2017-11-13 16:04 GMT+08:00 Peter Zijlstra : > > So if at this point a vCPU gets preempted we'll still spin-wait for it, > > which is sub-optimal. > > > > I think we can come up with something to get around that

Re: [PATCH] bootwrapper: mspsc.c: fix pointer-to-int-cast warnings

2017-11-13 Thread Michael Ellerman
Hi Michal, Thanks for trying to fix this. Michal Suchanek writes: > I get these warnings: > > ../arch/powerpc/boot/mpsc.c: In function 'mpsc_get_virtreg_of_phandle': > ../arch/powerpc/boot/mpsc.c:113:35: warning: cast from pointer to > integer of different size

Re: linux-next: build warning after merge of the akpm-current tree

2017-11-13 Thread Arnd Bergmann
On Mon, Nov 13, 2017 at 9:09 AM, Michal Hocko wrote: > On Mon 13-11-17 16:42:06, Stephen Rothwell wrote: >> Hi Andrew, >> >> After merging the akpm-current tree, today's linux-next build (powerpc >> ppc64_defconfig) produced this warning: >> >> In file included from

[RFC PATCH v2] fw_lockdown: new micro LSM module to prevent loading unsigned firmware

2017-11-13 Thread Mimi Zohar
If the kernel is locked down and IMA-appraisal is not enabled, prevent loading of unsigned firmware. Signed-off-by: Mimi Zohar --- Changelog v2: - Invert kernel_is_locked_down() test (Luis Rodriquez) - Increase LSM name maximum size (15 bytes + null) (Casey) Changelog

Re: linux-next: build warning after merge of the akpm-current tree

2017-11-13 Thread Arnd Bergmann
On Mon, Nov 13, 2017 at 12:54 PM, Michal Hocko wrote: > On Mon 13-11-17 12:43:08, Arnd Bergmann wrote: >> On Mon, Nov 13, 2017 at 9:09 AM, Michal Hocko wrote: >> > On Mon 13-11-17 16:42:06, Stephen Rothwell wrote: >> >> Hi Andrew, >> >> >> >> After merging

Re: [PATCH V1 2/3] perf/x86/intel/bm.c: Add Intel Branch Monitoring support

2017-11-13 Thread Peter Zijlstra
On Sat, Nov 11, 2017 at 01:20:05PM -0800, Megha Dey wrote: > Currently, the cannonlake family of Intel processors support the > branch monitoring feature. Intel's Branch monitoring feature is trying > to utilize heuristics to detect the occurrence of an ROP (Return > Oriented Programming) attack.

Re: [PATCH v1 2/5] perf, tools: Save event scaling factors in perf.data

2017-11-13 Thread Jiri Olsa
On Thu, Nov 09, 2017 at 06:55:25AM -0800, Andi Kleen wrote: > From: Andi Kleen > > To process metrics, perf script needs to know the scaling > factors reported by sysfs for events. Save the scaling factors > in the perf.data metadata in a new SCALE header. > >

Re: linux-next: manual merge of the arm64 tree with Linus' tree

2017-11-13 Thread Catalin Marinas
Hi Stephen, On Mon, Nov 13, 2017 at 05:09:53PM +1100, Stephen Rothwell wrote: > On Wed, 1 Nov 2017 07:57:23 +1100 Stephen Rothwell > wrote: > > Today's linux-next merge of the arm64 tree got a conflict in: > > > > drivers/acpi/arm64/iort.c > > > > between commit: > >

Re: linux-next: Tree for Nov 7

2017-11-13 Thread Michal Hocko
[Cc arm and ppc maintainers] Thanks a lot for testing! On Sun 12-11-17 11:38:02, Joel Stanley wrote: > On Fri, Nov 10, 2017 at 11:00 PM, Michal Hocko wrote: > > Hi Joel, > > > > On Wed 08-11-17 15:20:50, Michal Hocko wrote: > > [...] > >> > There are a lot of messages on the

Re: [PATCH] quota: be aware of error from dquot_initialize

2017-11-13 Thread Jan Kara
On Mon 13-11-17 11:31:48, Chao Yu wrote: > Commit 6184fc0b8dd7 ("quota: Propagate error from ->acquire_dquot()") > missed to handle error from dquot_initialize in dquot_file_open, fix it. > > Signed-off-by: Chao Yu Good spotting. I've added the patch to my tree.

Re: [PATCH v2 4/4] kaslr: clean up a useless variable and some usless space

2017-11-13 Thread Chao Fan
On Mon, Nov 13, 2017 at 04:32:33PM +0800, Baoquan He wrote: >On 11/01/17 at 07:32pm, Chao Fan wrote: >> There are two same variable "rc" in this function. One is in the >> circulation, the other is out of the circulation. The one out will never >> be used, so drop it. > >You can send this clean up

  1   2   3   4   5   6   7   8   9   10   >