[PATCH] mm, thp: relax __GFP_THISNODE for MADV_HUGEPAGE mappings

2018-09-07 Thread Michal Hocko
From: Michal Hocko Andrea has noticed [1] that a THP allocation might be really disruptive when allocated on NUMA system with the local node full or hard to reclaim. Stefan has posted an allocation stall report on 4.12 based SLES kernel which suggests the same issue: [245513.362669] kvm: page all

Re: [PATCH v3] objtool: Support multiple rodata sections.

2018-09-07 Thread Josh Poimboeuf
On Wed, Aug 29, 2018 at 06:04:12PM +0100, Allan Xavier wrote: > This commit adds support for processing switch jump tables in objects > with multiple .rodata sections, such as those created when using > -ffunction-sections and -fdata-sections. Currently, objtool always > looks in .rodata for jump

Re: [PATCH] sched/fair: fix load_balance redo for null imbalance

2018-09-07 Thread Vincent Guittot
On Fri, 7 Sep 2018 at 14:56, Peter Zijlstra wrote: > > On Fri, Sep 07, 2018 at 02:35:51PM +0200, Vincent Guittot wrote: > > Le Friday 07 Sep 2018 à 13:37:49 (+0200), Peter Zijlstra a écrit : > > > On Fri, Sep 07, 2018 at 09:51:04AM +0200, Vincent Guittot wrote: > > > > It can happen that load_bala

Re: [GIT PULL] ext4 updates for 3.11

2018-09-07 Thread Greg KH
Digging up an email thread from 2013... On Wed, Jul 03, 2013 at 01:29:41PM +1000, Dave Chinner wrote: > On Tue, Jul 02, 2013 at 06:01:11PM -0700, Greg KH wrote: > > On Tue, Jul 02, 2013 at 05:58:15PM -0700, Linus Torvalds wrote: > > > On Tue, Jul 2, 2013 at 5:54 PM, Greg KH wrote: > > > > On Tue,

[PATCH] objtool: Support per-function rodata sections

2018-09-07 Thread Josh Poimboeuf
From: Allan Xavier Add support for processing switch jump tables in objects with multiple .rodata sections, such as those created by '-ffunction-sections' and '-fdata-sections'. Currently, objtool always looks in .rodata for jump table information, which results in many "sibling call from callab

[PATCH] TTY: tty_buffer, warn on leaks

2018-09-07 Thread Jiri Slaby
When we leak some tty buffer, warn about that. For that we need to account the memory used also in the tty_buffer_free_all function. On other locations, the accounting is handled correctly. Note that we do not account the free list, as that was accounted in tty_buffer_free before put on the free l

Re: [SCHEDULER] Performance drop in 4.19 compared to 4.18 kernel

2018-09-07 Thread Peter Zijlstra
On Fri, Sep 07, 2018 at 06:26:49PM +0530, Srikar Dronamraju wrote: > Can you please pick > > > 1. 69bb3230297e881c797bbc4b3dbf73514078bc9d sched/numa: Stop multiple tasks > from moving to the cpu at the same time > 2. dc62cfdac5e5b7a61cd8a2bd4190e80b9bb408fc sched/numa: Avoid task migration > fo

Re: [PATCH v6 1/2] dt-bindings: leds: Add bindings for lm3697 driver

2018-09-07 Thread Dan Murphy
Pavel On 09/06/2018 04:16 PM, Pavel Machek wrote: > Hi! > >> Add the device tree bindings for the lm3697 >> LED driver for backlighting and display. >> >> Signed-off-by: Dan Murphy >> --- >> >> v6 - Fix minor issues - https://lore.kernel.org/patchwork/patch/975387/ >> >> v5 - Fix the comment for

[PATCH -resend] xtensa: use generic vga.h

2018-09-07 Thread Jiri Slaby
What xtensa has in asm/vga.h is the same as what can be found in asm-generic/vga.h. So use the latter header. Signed-off-by: Jiri Slaby Acked-by: Max Filippov Cc: Chris Zankel Cc: linux-xte...@linux-xtensa.org --- arch/xtensa/include/asm/Kbuild | 1 + arch/xtensa/include/asm/vga.h | 19 -

Re: [PATCH v6 1/2] dt-bindings: leds: Add bindings for lm3697 driver

2018-09-07 Thread Pavel Machek
Hi! > >> index ..3256dec21075 > >> --- /dev/null > >> +++ b/Documentation/devicetree/bindings/leds/leds-lm3697.txt > >> @@ -0,0 +1,86 @@ > >> +* Texas Instruments - LM3697 Highly Efficient White LED Driver > >> + > >> +The LM3697 11-bit LED driver provides high- > >> +performance backl

[PATCH v2] ANDROID: binder: Add BINDER_GET_NODE_INFO_FOR_REF ioctl.

2018-09-07 Thread Martijn Coenen
This allows the context manager to retrieve information about nodes that it holds a reference to, such as the current number of references to those nodes. Such information can for example be used to determine whether the servicemanager is the only process holding a reference to a node. This inform

Re: [PATCH v4 1/2] x86/speculation: apply IBPB more strictly to avoid cross-process data leak

2018-09-07 Thread Josh Poimboeuf
On Thu, Sep 06, 2018 at 10:32:38AM +0200, Jiri Kosina wrote: > From: Jiri Kosina > > Currently, we are issuing IBPB only in cases when switching into a > non-dumpable > process, the rationale being to protect such 'important and security > sensitive' > processess (such as GPG) from data leak in

Mouse no longer working : works in 4.18 : doesn't work in 4.18.5

2018-09-07 Thread hanas...@gmail.com
Mouse worked fine in 4.18 however does not work in 4.18.5 Both kernels were built with exactly the same .config file (copied from the 4.18 build dir to the un-tar'ed 4.18.5 directory to build) Any input on root cause and fix / workaround is appreciated. "Doesn't work" means : syslog and kerne

[PATCH] ARM: dts: at91: sama5d4: add labels to soc dtsi for derivative boards

2018-09-07 Thread Eugen Hristev
This adds labels to commonly used device-tree nodes so that derivative boards can avoid ahb/apb hierarchy. Signed-off-by: Eugen Hristev --- Hello, This was already done for SoC sama5d3 and sam9x5, in commit: "fc37204432d" ("ARM: dts: at91: add labels to soc dtsi for derivative boards") This co

Re: [PATCH] printk/tracing: Do not trace printk_nmi_enter()

2018-09-07 Thread Steven Rostedt
On Fri, 7 Sep 2018 09:34:48 +0200 Peter Zijlstra wrote: > On Wed, Sep 05, 2018 at 09:33:34PM -0400, Steven Rostedt wrote: > > do_idle { > > > > [interrupts enabled] > > > > [interrupts disabled] > > TRACE_IRQS_OFF [lockdep says irqs off] > > [...] > > TRACE_IRQS_IRET > >

Re: [PATCH 4/4] sched/numa: Do not move imbalanced load purely on the basis of an idle CPU

2018-09-07 Thread Srikar Dronamraju
* Peter Zijlstra [2018-09-07 14:44:32]: > On Fri, Sep 07, 2018 at 01:37:39PM +0100, Mel Gorman wrote: > > On Fri, Sep 07, 2018 at 01:33:09PM +0200, Peter Zijlstra wrote: > > > > --- > > > > kernel/sched/fair.c | 2 +- > > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > > > diff --

Re: [RFC PATCH 1/2] mm: move tlb_table_flush to tlb_flush_mmu_free

2018-09-07 Thread Will Deacon
On Thu, Sep 06, 2018 at 04:29:59PM -0400, Rik van Riel wrote: > On Thu, 2018-08-23 at 18:47 +1000, Nicholas Piggin wrote: > > There is no need to call this from tlb_flush_mmu_tlbonly, it > > logically belongs with tlb_flush_mmu_free. This allows some > > code consolidation with a subsequent fix. >

Re: [SCHEDULER] Performance drop in 4.19 compared to 4.18 kernel

2018-09-07 Thread Srikar Dronamraju
* Peter Zijlstra [2018-09-07 15:19:23]: > On Fri, Sep 07, 2018 at 06:26:49PM +0530, Srikar Dronamraju wrote: > > > Can you please pick > > > > > > 1. 69bb3230297e881c797bbc4b3dbf73514078bc9d sched/numa: Stop multiple tasks > > from moving to the cpu at the same time > > 2. dc62cfdac5e5b7a61cd8

Re: [PATCH] printk/tracing: Do not trace printk_nmi_enter()

2018-09-07 Thread Peter Zijlstra
On Fri, Sep 07, 2018 at 09:41:48AM -0400, Steven Rostedt wrote: > On Fri, 7 Sep 2018 09:34:48 +0200 > Peter Zijlstra wrote: > > > On Wed, Sep 05, 2018 at 09:33:34PM -0400, Steven Rostedt wrote: > > > do_idle { > > > > > > [interrupts enabled] > > > > > > [interrupts disabled] > > >

Re: [PATCH] printk/tracing: Do not trace printk_nmi_enter()

2018-09-07 Thread Steven Rostedt
On Fri, 7 Sep 2018 17:35:38 +0900 Sergey Senozhatsky wrote: > Should't printk_nmi_enter()/printk_nmi_exit() still be notrace? > Like you and Steven said - it's still before ftrace_nmi_enter() > and should be notrace regardless. Correct. My patch fixes both issues. The patch that Peter is postin

Re: [PATCH V2 8/8] watchdog: stpmic1: add stpmic1 watchdog driver

2018-09-07 Thread Guenter Roeck
On 09/07/2018 05:59 AM, Pascal PAILLET-LME wrote: From: pascal paillet The stpmic1 PMIC embeds a watchdog which is disabled by default. As soon as the watchdog is started, it must be refreshed periodically otherwise the PMIC goes off. Signed-off-by: pascal paillet --- changes in v2: * the har

Re: [SCHEDULER] Performance drop in 4.19 compared to 4.18 kernel

2018-09-07 Thread Peter Zijlstra
On Fri, Sep 07, 2018 at 07:14:20PM +0530, Srikar Dronamraju wrote: > * Peter Zijlstra [2018-09-07 15:19:23]: > > > On Fri, Sep 07, 2018 at 06:26:49PM +0530, Srikar Dronamraju wrote: > > > > > Can you please pick > > > > > > > > > 1. 69bb3230297e881c797bbc4b3dbf73514078bc9d sched/numa: Stop mul

Re: [PATCH v6 1/2] dt-bindings: leds: Add bindings for lm3697 driver

2018-09-07 Thread Dan Murphy
Pavel On 09/07/2018 08:32 AM, Pavel Machek wrote: > Hi! > index ..3256dec21075 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/leds-lm3697.txt @@ -0,0 +1,86 @@ +* Texas Instruments - LM3697 Highly Efficient White LED Driver + +The LM3697 1

Re: [PATCH] printk/tracing: Do not trace printk_nmi_enter()

2018-09-07 Thread Steven Rostedt
On Fri, 7 Sep 2018 11:30:55 +0200 Peter Zijlstra wrote: > > That said, I am not against this change. Especially the inlining > > is a good move. Note that lockdep_off()/lockdep_on() must not > > be traced as well. > > Hard to trace an inline funcion; we could make it __always_inline to > feel

Re: [PATCH] printk/tracing: Do not trace printk_nmi_enter()

2018-09-07 Thread Steven Rostedt
On Fri, 7 Sep 2018 15:45:32 +0200 Peter Zijlstra wrote: > Yes really, we should not muck with the IRQ state from NMI context. Right, and we didn't. Your patch didn't change anything, but allow for printk_nmi_enter/exit() to be traced by ftrace, but that's wrong to begin with because it ftrace_nm

Re: [PATCH] printk/tracing: Do not trace printk_nmi_enter()

2018-09-07 Thread Steven Rostedt
On Fri, 7 Sep 2018 09:55:33 -0400 Steven Rostedt wrote: > On Fri, 7 Sep 2018 15:45:32 +0200 > Peter Zijlstra wrote: > > > Yes really, we should not muck with the IRQ state from NMI context. > > Right, and we didn't. Your patch didn't change anything, but allow for > printk_nmi_enter/exit() t

Re: [PATCH] printk/tracing: Do not trace printk_nmi_enter()

2018-09-07 Thread Peter Zijlstra
On Fri, Sep 07, 2018 at 09:55:33AM -0400, Steven Rostedt wrote: > On Fri, 7 Sep 2018 15:45:32 +0200 > Peter Zijlstra wrote: > > > Yes really, we should not muck with the IRQ state from NMI context. > > Right, and we didn't. Your patch didn't change anything, but allow for It does, it kills lock

Re: [PATCH] printk/tracing: Do not trace printk_nmi_enter()

2018-09-07 Thread Peter Zijlstra
On Fri, Sep 07, 2018 at 10:01:28AM -0400, Steven Rostedt wrote: > On Fri, 7 Sep 2018 09:55:33 -0400 > Steven Rostedt wrote: > > > On Fri, 7 Sep 2018 15:45:32 +0200 > > Peter Zijlstra wrote: > > > > > Yes really, we should not muck with the IRQ state from NMI context. > > > > Right, and we di

[PATCH v7] f2fs: guarantee journalled quota data by checkpoint

2018-09-07 Thread Chao Yu
From: Chao Yu For journalled quota mode, let checkpoint to flush dquot dirty data and quota file data to guarntee persistence of all quota sysfile in last checkpoint, by this way, we can avoid corrupting quota sysfile when encountering SPO. The implementation is as below: 1. add a global state

Re: [PATCH] mtd: rawnand: denali: add DT property to specify skipped bytes in OOB

2018-09-07 Thread Boris Brezillon
Hi Masahiro, On Fri, 7 Sep 2018 19:56:23 +0900 Masahiro Yamada wrote: > NAND devices need additional data area (OOB) for error correction, > but it is also used for Bad Block Marker (BBM). In many cases, the > first byte in OOB is used for BBM, but the location actually depends > on chip vendo

Re: [PATCH v2 6/8] perf/x86/intel/lbr: guest requesting KVM for lbr stack save/restore

2018-09-07 Thread Andi Kleen
> This could achieve the above #1, but how would it solve #2 above? That is, > after the guest uses the lbr feature for a while, the lbr stack has been > passed through, then the guest doesn't use lbr any more, but the vCPU will > still save/restore on switching? If nothing accesses the MSR LBRs a

Re: [PATCH] x86: use WRITE_ONCE() when setting PTEs

2018-09-07 Thread Vlastimil Babka
On 09/06/2018 07:21 PM, Dave Hansen wrote: > On 09/02/2018 11:14 AM, Nadav Amit wrote: >> When page-table entries are set, the compiler might optimize their >> assignment by using multiple instructions to set the PTE. This might >> turn into a security hazard if the user somehow manages to use the

Re: [PATCH V3 06/26] csky: Cache and TLB routines

2018-09-07 Thread Arnd Bergmann
On Fri, Sep 7, 2018 at 2:55 PM Guo Ren wrote: > > On Fri, Sep 07, 2018 at 10:14:38AM +0200, Arnd Bergmann wrote: > > On Fri, Sep 7, 2018 at 5:04 AM Guo Ren wrote: > > > On Thu, Sep 06, 2018 at 04:31:16PM +0200, Arnd Bergmann wrote: > > Similarly, an MMIO read may be used to see if a DMA has compl

Re: [PATCH] perf: enum overflow in uapi/linux/perf_event.h

2018-09-07 Thread Peter Zijlstra
On Fri, Sep 07, 2018 at 03:58:17PM +0200, Peter Zijlstra wrote: > On Fri, Sep 07, 2018 at 01:50:18PM +, Christophe Leroy wrote: > > > > > > On 09/07/2018 01:42 PM, Peter Zijlstra wrote: > > > On Fri, Sep 07, 2018 at 01:27:19PM +, Christophe Leroy wrote: > > > > On PPC32, enums are 32 bits

Re: [PATCH 3/4] sched/numa: Stop comparing tasks for NUMA placement after selecting an idle core

2018-09-07 Thread Mel Gorman
On Fri, Sep 07, 2018 at 06:35:53PM +0530, Srikar Dronamraju wrote: > * Mel Gorman [2018-09-07 11:11:38]: > > > task_numa_migrate is responsible for finding a core on a preferred NUMA > > node for a task. As part of this, task_numa_find_cpu iterates through > > the CPUs of a node and evaulates CPU

[PATCH] of: Split up name & type in modalias generation

2018-09-07 Thread Thierry Reding
From: Thierry Reding The kernel's vsnprintf() implementation discards all alpha-numeric characters following a %p conversion specifier. This is done in order to generically skip any of the various modifiers that the kernel supports. Unfortunately, the OF modalias is generated with a format string

Re: [PATCH v3] ata: Disable AHCI ALPM feature for Ampere Computing eMAG SATA

2018-09-07 Thread Jens Axboe
On 9/6/18 2:08 PM, Suman Tripathi wrote: >> Sorry, but the patch is still coming through mangled. Did you use git >> send-email ? > > [Suman Tripathi] yes. I rechecked before sending twice. Sorry for the > inconvenience. Will figure the issue out I can apply it manually while you work out the kink

Re: [PATCH 4/4] sched/numa: Do not move imbalanced load purely on the basis of an idle CPU

2018-09-07 Thread Mel Gorman
On Fri, Sep 07, 2018 at 07:12:01PM +0530, Srikar Dronamraju wrote: > > Yeah, I was afraid it would.. Srikar, can you also evaluate, I suspect > > we'll have to pick one of these two patches. > > I can surely run some benchmarks between the two patches. > However comparing Mel's patch with > http:

Re: [RFC PATCH 1/2] mm: move tlb_table_flush to tlb_flush_mmu_free

2018-09-07 Thread Rik van Riel
On Fri, 2018-09-07 at 14:44 +0100, Will Deacon wrote: > On Thu, Sep 06, 2018 at 04:29:59PM -0400, Rik van Riel wrote: > > On Thu, 2018-08-23 at 18:47 +1000, Nicholas Piggin wrote: > > > There is no need to call this from tlb_flush_mmu_tlbonly, it > > > logically belongs with tlb_flush_mmu_free. Thi

Re: [PATCH V12 00/14] Krait clocks + Krait CPUfreq

2018-09-07 Thread Craig Tatlor
On 7 September 2018 10:57:34 BST, Sricharan R wrote: >Hi Craig, > > >>> [v12] >>> * Added my signed-off that was missing in some patches. >>> * Added Bjorn's acked that i missed earlier. >>> >> >> Can you give this a try on your 8974 device and check if the >> pvs version reporting, sc

Re: Conflict between sparse and commit cafa0010cd51f ("Raise the minimum required gcc version to 4.6")

2018-09-07 Thread Christophe LEROY
Cc linux-spa...@vger.kernel.org Le 07/09/2018 à 14:22, Christophe Leroy a écrit : Since commit cafa0010cd51f ("Raise the minimum required gcc version to 4.6"), sparse check fails as follows: [root@pc16082vm linux-powerpc]# make C=2 arch/powerpc/kernel/process.o   CALL    scripts/checksyscalls

[PATCH v3 1/2] selftests: gpio: restructure Makefile

2018-09-07 Thread Daniel Díaz
From: Fathi Boudra This patch cleans up the Makefile by restructuring a couple of things, namely: 1) change explicit paths in targets for variables 2) substitute a variable (BINARIES) for another, part of the selftests build system (TEST_PROGS_EXTENDED) 3) proper cleaning up of the EXTRA objec

[PATCH v3 2/2] selftests: gpio: Fix OUTPUT directory in Makefile

2018-09-07 Thread Daniel Díaz
When simply running `make' from the selftests top dir, this error shows up: cc -O2 -g -std=gnu99 -Wall -I../../../../usr/include/ -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuidgpio-mockup-chardev.c ../../../gpio/gpio-utils.o -lmount -o gpio-mockup-chardev cc: error: ..

Re: [PATCH v2 7/8] KVM: PMU: support to save/restore the guest lbr stack on vCPU switching

2018-09-07 Thread Jann Horn
On Fri, Sep 7, 2018 at 4:28 PM Wei Wang wrote: > This patch adds support to KVM to save/restore the lbr stack on vCPU > context switching. > > When the guest sets the ACTIVE bit of MSR_KVM_PV_LBR_CTRL, a perf event > is created on the host for the related vCPU. This perf event ensures the > LBR st

Re: [PATCH] mtd: rawnand: denali: add DT property to specify skipped bytes in OOB

2018-09-07 Thread Masahiro Yamada
Hi Boris, 2018-09-07 23:08 GMT+09:00 Boris Brezillon : > Hi Masahiro, > > On Fri, 7 Sep 2018 19:56:23 +0900 > Masahiro Yamada wrote: > >> NAND devices need additional data area (OOB) for error correction, >> but it is also used for Bad Block Marker (BBM). In many cases, the >> first byte in OOB

Re: [PATCH 8/9] psi: pressure stall information for CPU, memory, and IO

2018-09-07 Thread Johannes Weiner
On Fri, Sep 07, 2018 at 12:16:34PM +0200, Peter Zijlstra wrote: > On Tue, Aug 28, 2018 at 01:22:57PM -0400, Johannes Weiner wrote: > > +enum psi_states { > > + PSI_IO_SOME, > > + PSI_IO_FULL, > > + PSI_MEM_SOME, > > + PSI_MEM_FULL, > > + PSI_CPU_SOME, > > + /* Only per-CPU, to weigh the

Re: [PATCH v11 0/3] remain and optimize memblock_next_valid_pfn on arm and arm64

2018-09-07 Thread Will Deacon
On Thu, Sep 06, 2018 at 01:24:22PM +0200, Ard Biesheuvel wrote: > On 22 August 2018 at 05:07, Jia He wrote: > > Commit b92df1de5d28 ("mm: page_alloc: skip over regions of invalid pfns > > where possible") optimized the loop in memmap_init_zone(). But it causes > > possible panic bug. So Daniel Vac

Re: Widespread crashes in next-20180906

2018-09-07 Thread Matt Hart
On 6 September 2018 at 20:43, Theodore Y. Ts'o wrote: > On Thu, Sep 06, 2018 at 03:13:23PM +0100, Matt Hart wrote: >> On 6 September 2018 at 15:04, Theodore Y. Ts'o wrote: >> > On Thu, Sep 06, 2018 at 06:45:15AM -0700, Guenter Roeck wrote: >> >> Build results: >> >> total: 134 pass: 133 fai

Re: [PATCH] printk/tracing: Do not trace printk_nmi_enter()

2018-09-07 Thread Sergey Senozhatsky
On (09/07/18 16:03), Peter Zijlstra wrote: > > > > I would even argue that placing printk_nmi_enter() between > > lockdep_off() and ftrace_nmi_enter() is wrong because if in the future > > printk_nmi_enter() were to do any ftrace tracing, it wont be caught, as > > it was by having it before lockde

Re: [tip:x86/paravirt] x86/paravirt: Move the pv_irq_ops under the PARAVIRT_XXL umbrella

2018-09-07 Thread Juergen Gross
On 07/09/18 16:49, Borislav Petkov wrote: > Hi Jürgen, > > On Mon, Sep 03, 2018 at 08:01:40AM -0700, tip-bot for Juergen Gross wrote: >> Commit-ID: 6da63eb241a05b0e676d68975e793c0521387141 >> Gitweb: >> https://git.kernel.org/tip/6da63eb241a05b0e676d68975e793c0521387141 >> Author: Juerge

Re: [PATCH] mtd: rawnand: denali: add DT property to specify skipped bytes in OOB

2018-09-07 Thread Boris Brezillon
On Fri, 7 Sep 2018 23:42:53 +0900 Masahiro Yamada wrote: > Hi Boris, > > 2018-09-07 23:08 GMT+09:00 Boris Brezillon : > > Hi Masahiro, > > > > On Fri, 7 Sep 2018 19:56:23 +0900 > > Masahiro Yamada wrote: > > > >> NAND devices need additional data area (OOB) for error correction, > >> but it

Re: [PATCH 8/9] psi: pressure stall information for CPU, memory, and IO

2018-09-07 Thread Johannes Weiner
On Fri, Sep 07, 2018 at 12:24:58PM +0200, Peter Zijlstra wrote: > On Tue, Aug 28, 2018 at 01:22:57PM -0400, Johannes Weiner wrote: > > +static void psi_clock(struct work_struct *work) > > +{ > > + struct delayed_work *dwork; > > + struct psi_group *group; > > + bool nonidle; > > + > > + dwo

Re: [tip:x86/paravirt] x86/paravirt: Move the pv_irq_ops under the PARAVIRT_XXL umbrella

2018-09-07 Thread Borislav Petkov
On Fri, Sep 07, 2018 at 04:52:20PM +0200, Juergen Gross wrote: > And the fixing patch is already there: Yeah, tglx just told me :) Thx! -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.

Re: [PATCH] arm64: lib: use C string functions with KASAN enabled.

2018-09-07 Thread Will Deacon
On Thu, Sep 06, 2018 at 08:05:33PM +0300, Andrey Ryabinin wrote: > ARM64 has asm implementations of memchr(), memcmp(), str[r]chr(), > str[n]cmp(), str[n]len(). KASAN don't see memory accesses in asm > code, thus it can potentially miss many bugs. > > Ifdef out __HAVE_ARCH_* defines of these funct

Re: [PATCH] ARM: dts: at91: sama5d4: add labels to soc dtsi for derivative boards

2018-09-07 Thread Ludovic Desroches
Hi Eugen, On Fri, Sep 07, 2018 at 04:38:09PM +0300, Eugen Hristev wrote: > This adds labels to commonly used device-tree nodes so that derivative > boards can avoid ahb/apb hierarchy. > > Signed-off-by: Eugen Hristev > --- > > Hello, > > This was already done for SoC sama5d3 and sam9x5, in com

Re: [PATCH 8/9] psi: pressure stall information for CPU, memory, and IO

2018-09-07 Thread Peter Zijlstra
On Fri, Sep 07, 2018 at 10:44:22AM -0400, Johannes Weiner wrote: > > This does the whole seqcount thing 6x, which is a bit of a waste. > > [...] > > > It's a bit cumbersome, but that's because of C. > > I was actually debating exactly this with Suren before, but since this > is a super cold pat

Re: [PATCH 0/9] psi: pressure stall information for CPU, memory, and IO v4

2018-09-07 Thread Johannes Weiner
On Fri, Sep 07, 2018 at 01:04:07PM +0200, Peter Zijlstra wrote: > So yeah, grudingly acked. Did you want me to pick this up through the > scheduler tree since most of this lives there? Thanks for the ack. As for routing it, I'll leave that decision to you and Andrew. It touches stuff all over, so

Re: [PATCH V3 21/26] dt-bindings: interrupt-controller: C-SKY APB intc

2018-09-07 Thread Rob Herring
On Thu, Sep 6, 2018 at 8:05 AM Arnd Bergmann wrote: > > On Thu, Sep 6, 2018 at 4:13 AM Guo Ren wrote: > > > > On Wed, Sep 05, 2018 at 07:43:10PM -0500, Rob Herring wrote: > > > On Wed, Sep 5, 2018 at 7:10 AM Guo Ren wrote: > > > > > > > > Signed-off-by: Guo Ren > > > > + > > > > + intc: i

Re: [PATCH] infiniband: nes: add unlikely() to assert()

2018-09-07 Thread Doug Ledford
On Wed, 2018-09-05 at 09:01 +0300, Leon Romanovsky wrote: > On Fri, Aug 31, 2018 at 10:24:18PM +0300, Igor Stoppa wrote: > > Typically the assert is expected to not fail. > > This whole assert can be removed. > > > > > Signed-off-by: Igor Stoppa > > Acked-by: Doug Ledford > > Most probably th

BUG: bad usercopy in __check_object_size (2)

2018-09-07 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:28619527b8a7 Merge git://git.kernel.org/pub/scm/linux/kern.. git tree: bpf console output: https://syzkaller.appspot.com/x/log.txt?x=1618ac2140 kernel config: https://syzkaller.appspot.com/x/.config?x=62e9b447c16085cf dashboa

Re: [PATCH v4 2/2] x86/speculation: Enable cross-hyperthread spectre v2 STIBP mitigation

2018-09-07 Thread Josh Poimboeuf
On Thu, Sep 06, 2018 at 10:33:39AM +0200, Jiri Kosina wrote: > +/* > + * The read-modify-write of the MSR doesn't need any race protection here, > + * as we're running in atomic context. > + */ > +static void enable_stibp(void *info) > +{ > + u64 mask; > + rdmsrl(MSR_IA32_SPEC_CTRL, mask);

[PATCH] rtc: abx80x: add basic watchdog support

2018-09-07 Thread Jeremy Gebben
The abx804 and abx805 chips have support for a simple watchdog function that can trigger an external reset. Signed-off-by: Jeremy Gebben --- drivers/rtc/Kconfig | 11 +++ drivers/rtc/rtc-abx80x.c | 160 --- 2 files changed, 159 insertions(+), 12 deletion

Re: [PATCH] jump_label: Fix typo in warning message

2018-09-07 Thread Steven Rostedt
On Fri, 7 Sep 2018 12:35:21 +0200 Borislav Petkov wrote: > From: Borislav Petkov > > There's no 'allocatote' - use the next best thing: 'allocate' :-) Nice. Probably can go through the trivial tree (Cc'd). Acked-by: Steven Rostedt (VMware) -- Steve > > Signed-off-by: Borislav Petkov >

Re: BUG: bad usercopy in __check_object_size (2)

2018-09-07 Thread Dmitry Vyukov
On Fri, Sep 7, 2018 at 5:17 PM, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:28619527b8a7 Merge git://git.kernel.org/pub/scm/linux/kern.. > git tree: bpf > console output: https://syzkaller.appspot.com/x/log.txt?x=1618ac2140 > kernel config: https:

RE: [PATCH v2 6/8] perf/x86/intel/lbr: guest requesting KVM for lbr stack save/restore

2018-09-07 Thread Wang, Wei W
On Friday, September 7, 2018 10:11 PM, Andi Kleen wrote: > > This could achieve the above #1, but how would it solve #2 above? That > > is, after the guest uses the lbr feature for a while, the lbr stack > > has been passed through, then the guest doesn't use lbr any more, but > > the vCPU will sti

RE: [PATCH v2 7/8] KVM: PMU: support to save/restore the guest lbr stack on vCPU switching

2018-09-07 Thread Wang, Wei W
On Friday, September 7, 2018 10:37 PM, Jann Horn wrote: > On Fri, Sep 7, 2018 at 4:28 PM Wei Wang wrote: > > This patch adds support to KVM to save/restore the lbr stack on vCPU > > context switching. > > > > When the guest sets the ACTIVE bit of MSR_KVM_PV_LBR_CTRL, a perf > > event is created on

Re: [PATCH] infiniband: nes: add unlikely() to assert()

2018-09-07 Thread Igor Stoppa
On 07/09/18 18:13, Doug Ledford wrote: This patch was part of a larger series on lkml. In that context, I acked it so that the series could be applied by whomever took it (it didn't belong on rdma-list as a series since only one patch out of some large number touched rdma files). Now it is bei

Re: BUG: bad usercopy in __check_object_size (2)

2018-09-07 Thread syzbot
syzbot has found a reproducer for the following crash on: HEAD commit:28619527b8a7 Merge git://git.kernel.org/pub/scm/linux/kern.. git tree: bpf console output: https://syzkaller.appspot.com/x/log.txt?x=124e64d140 kernel config: https://syzkaller.appspot.com/x/.config?x=62e9b447c16

Re: [PATCH v6 13/14] sched/topology: Make Energy Aware Scheduling depend on schedutil

2018-09-07 Thread Quentin Perret
On Friday 07 Sep 2018 at 10:52:01 (+0200), Rafael J. Wysocki wrote: > On Thursday, September 6, 2018 4:38:44 PM CEST Quentin Perret wrote: > > Hi Rafael, > > > > On Thursday 06 Sep 2018 at 11:18:55 (+0200), Rafael J. Wysocki wrote: > > > I'm not a particular fan of notifiers to be honest and you d

Hello Dear Friend.

2018-09-07 Thread miss.favour.solomon
Hello Dear Friend. Am Mrs.Favour Solomon . i work in one of the prime bank here in Burkina Faso, i want the bank to transfer the money left by most of the greedy African Politicians used our bank to launder money overseas through the help of their Political advisers. Most of the funds which the

Hello Dear Friend.

2018-09-07 Thread miss.favour.solomon
Hello Dear Friend. Am Mrs.Favour Solomon . i work in one of the prime bank here in Burkina Faso, i want the bank to transfer the money left by most of the greedy African Politicians used our bank to launder money overseas through the help of their Political advisers. Most of the funds which the

Re: [PATCH v2 1/4] acpi: arm64: add iort support for PMCG

2018-09-07 Thread Robin Murphy
On 24/07/18 12:45, Shameer Kolothum wrote: From: Neil Leeder Add support for the SMMU Performance Monitor Counter Group information from ACPI. This is in preparation for its use in the SMMU v3 PMU driver. Signed-off-by: Neil Leeder Signed-off-by: Hanjun Guo Signed-off-by: Shameer Kolothum -

[PATCH] sched/fair: fix 1 task per CPU

2018-09-07 Thread Vincent Guittot
When CPUs have different capacity because of RT/DL tasks or micro-architecture or max frequency differences, there are situation where the imbalance is not correctly set to migrate waiting task on the idle CPU. The UC uses the force_balance case : if (env->idle != CPU_NOT_IDLE && group_has

Re: [PATCH v2 2/4] acpi: arm64: iort helper to find the associated smmu of pmcg node

2018-09-07 Thread Robin Murphy
On 24/07/18 12:45, Shameer Kolothum wrote: This adds an helper to retrieve the smmuv3 dev(if any) associated with the PMCG node. This will be used in subsequent SMMUv3 PMU driver patch to name the pmu device. As before, I think we might as well try to generalise this to the NC/RC case now, rat

[patch 04/10] x86/mm/cpa: Add debug mechanism

2018-09-07 Thread Thomas Gleixner
The whole static protection magic is silently fixing up anything which is handed in. That's just wrong. The offending call sites need to be fixed. Add a debug mechanism which emits a warning if a requested mapping needs to be fixed up. The DETECT debug mechanism is really not meant to be enabled e

[patch 09/10] x86/mm/cpa: Do the range check early

2018-09-07 Thread Thomas Gleixner
To avoid excessive 4k wise checks in the common case do a quick check first whether the requested new page protections conflict with a static protection area in the large page. If there is no conflict then the decision whether to preserve or to split the page can be made immediately. If the reques

[patch 10/10] x86/mm/cpa: Avoid the 4k pages check completely

2018-09-07 Thread Thomas Gleixner
The extra loop which tries hard to preserve large pages in case of conflicts with static protection regions turns out to be not preserving anything, at least not in the experiments which have been conducted. There might be corner cases in which the code would be able to preserve a large page oaccs

[patch 02/10] x86/mm/cpa: Rework static_protections()

2018-09-07 Thread Thomas Gleixner
static_protections() is pretty unreadable. Split it up into separate checks for each protection area. Signed-off-by: Thomas Gleixner --- arch/x86/mm/pageattr.c | 159 + 1 file changed, 95 insertions(+), 64 deletions(-) --- a/arch/x86/mm/pageattr.

[patch 03/10] x86/mm/cpa: Allow range check for static protections

2018-09-07 Thread Thomas Gleixner
Checking static protections only page by page is slow especially for huge pages. To allow quick checks over a complete range, add the ability to do that. Make the checks inclusive so the ranges can be directly used for debug output later. No functional change. Signed-off-by: Thomas Gleixner ---

[patch 01/10] x86/mm/cpa: Split, rename and clean up try_preserve_large_page()

2018-09-07 Thread Thomas Gleixner
Avoid the extra variable and gotos by splitting the function into the actual algorithm and a callable function which contains the lock protection. Rename it to should_split_large_page() while at it so the return values make actually sense. Clean up the code flow, comments and general whitespace d

[patch 08/10] x86/mm/cpa: Optimize same protection check

2018-09-07 Thread Thomas Gleixner
When the existing mapping is correct and the new requested page protections are the same as the existing ones, then further checks can be omitted and the large page can be preserved. The slow path 4k wise check will not come up with a different result. Before: 1G pages checked:

[patch 05/10] x86/mm/cpa: Add large page preservation statistics

2018-09-07 Thread Thomas Gleixner
The large page preservation mechanism is just magic and provides no information at all. Add optional statistic output in debugfs so the magic can be evaluated. Defaults is off. Output: 1G pages checked:2 1G pages sameprot: 0 1G pages preserved:

[patch 07/10] x86/mm/cpa: Add sanity check for existing mappings

2018-09-07 Thread Thomas Gleixner
With the range check it is possible to do a quick verification that the current mapping is correct vs. the static protection areas. In case a incorrect mapping is detected a warning is emitted and the large page is split up. If the large page is a 2M page, then the split code is forced to check th

[patch 06/10] x86/mm/cpa: Avoid static protection checks on unmap

2018-09-07 Thread Thomas Gleixner
If the new pgprot has the PRESENT bit cleared, then conflicts vs. RW/NX are completely irrelevant. Before: 1G pages checked:2 1G pages sameprot: 0 1G pages preserved: 0 2M pages checked: 540 2M pages sameprot:

[patch 00/10] x86/mm/cpa: Improve large page preservation handling

2018-09-07 Thread Thomas Gleixner
Bin reported that try_preserve_large_page() in the page attribute code consumes an large amount of CPU time. His initial attempts of addressing this made me look deeper into the code. The logic in this code is not really intelligent. It requires to check a large page in 4k steps for conflicts. Tha

[GIT PULL] arm64: fix for -rc3

2018-09-07 Thread Will Deacon
Hi Linus, Just one small fix here, preventing a VM_WARN_ON when a !present PMD/PUD is "freed" as part of a huge ioremap() operation. The correct behaviour is to skip the free silently in this case, which is a little weird (the function is a bit of a misnomer), but it follows the x86 implementation

Re: [PATCH v6 1/5] seccomp: add a return code to trap to userspace

2018-09-07 Thread Tycho Andersen
Hey Tyler, On Thu, Sep 06, 2018 at 10:15:12PM +, Tyler Hicks wrote: > > +Users can read via ``ioctl(SECCOMP_NOTIF_RECV)`` (or ``poll()``) on a > > seccomp > > +notification fd to receive a ``struct seccomp_notif``, which contains five > > +members: the input length of the structure, a global

Re: [PATCH] arm64: lib: use C string functions with KASAN enabled.

2018-09-07 Thread Andrey Ryabinin
On 09/07/2018 05:56 PM, Will Deacon wrote: > On Thu, Sep 06, 2018 at 08:05:33PM +0300, Andrey Ryabinin wrote: >> ARM64 has asm implementations of memchr(), memcmp(), str[r]chr(), >> str[n]cmp(), str[n]len(). KASAN don't see memory accesses in asm >> code, thus it can potentially miss many bugs.

[PATCH] drivers:s390:char:move spin_lock_bh to spin_lock in tasklet

2018-09-07 Thread jun qian
As you are already in a tasklet, it is unnecessary to call spin_lock_bh. Signed-off-by: jun qian Cc: Barry song <21cn...@gmail.com> --- drivers/s390/char/tty3270.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/s390/char/tty3270.c b/drivers/s390/char/tty3270.c in

Re: [PATCH V2 4/8] regulator: stpmic1: add stpmic1 regulator driver

2018-09-07 Thread Mark Brown
On Fri, Sep 07, 2018 at 12:59:44PM +, Pascal PAILLET-LME wrote: > @@ -804,6 +804,18 @@ config REGULATOR_TI_ABB > on TI SoCs may be unstable without enabling this as it provides > device specific optimized bias to allow/optimize functionality. > > +config REGULATOR_STPMIC1 Th

Re: [PATCH 0/9] psi: pressure stall information for CPU, memory, and IO v4

2018-09-07 Thread Suren Baghdasaryan
Thanks for the new patchset! Backported to 4.9 and retested on ARMv8 8 code system running Android. Signals behave as expected reacting to memory pressure, no jumps in "total" counters that would indicate an overflow/underflow issues. Nicely done! Tested-by: Suren Baghdasaryan On Fri, Sep 7, 201

Re: BUG: bad usercopy in __check_object_size (2)

2018-09-07 Thread Kees Cook
On Fri, Sep 7, 2018 at 8:19 AM, Dmitry Vyukov wrote: > On Fri, Sep 7, 2018 at 5:17 PM, syzbot > wrote: >> Hello, >> >> syzbot found the following crash on: >> >> HEAD commit:28619527b8a7 Merge git://git.kernel.org/pub/scm/linux/kern.. >> git tree: bpf >> console output: https://syzkalle

Re: [PATCH RFC LKMM 1/7] tools/memory-model: Add extra ordering for locks and remove it for ordinary release/acquire

2018-09-07 Thread Alan Stern
On Thu, 6 Sep 2018, Andrea Parri wrote: > > Have you noticed any part of the generic code that relies on ordinary > > acquire-release (rather than atomic RMW acquire-release) in order to > > implement locking constructs? > > There are several places in code where the "lock-acquire" seems to be

Applied "regmap: split up regmap_config.use_single_rw" to the regmap tree

2018-09-07 Thread Mark Brown
The patch regmap: split up regmap_config.use_single_rw has been applied to the regmap tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent

Applied "spi: pic32: remove unnecessary of_node_get()" to the spi tree

2018-09-07 Thread Mark Brown
The patch spi: pic32: remove unnecessary of_node_get() has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Lin

Applied "regmap: fix comment for regmap.use_single_write" to the regmap tree

2018-09-07 Thread Mark Brown
The patch regmap: fix comment for regmap.use_single_write has been applied to the regmap tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and se

Re: [PATCH RFC LKMM 1/7] tools/memory-model: Add extra ordering for locks and remove it for ordinary release/acquire

2018-09-07 Thread Will Deacon
On Fri, Sep 07, 2018 at 12:00:19PM -0400, Alan Stern wrote: > On Thu, 6 Sep 2018, Andrea Parri wrote: > > > > Have you noticed any part of the generic code that relies on ordinary > > > acquire-release (rather than atomic RMW acquire-release) in order to > > > implement locking constructs? > >

[PATCH] cpufreq: remove unnecessary unlikely()

2018-09-07 Thread Igor Stoppa
WARN_ON() already contains an unlikely(), so it's not necessary to wrap it into another. Signed-off-by: Igor Stoppa Cc: Srivatsa S. Bhat Cc: "Rafael J. Wysocki" Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- drivers/cpufreq/cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: Regression in next with filesystem context concept

2018-09-07 Thread Tony Lindgren
* David Howells [180907 08:51]: > Tony Lindgren wrote: > > > Looks like next-20180906 now has a regression where mounting > > root won't work with commit fd0002870b45 ("vfs: Implement a > > filesystem superblock creation/configuration context"). > > Am I right in thinking you're not using any o

Re: [PATCH] mtd: rawnand: denali: add DT property to specify skipped bytes in OOB

2018-09-07 Thread Masahiro Yamada
Hi Boris, 2018-09-07 23:53 GMT+09:00 Boris Brezillon : > On Fri, 7 Sep 2018 23:42:53 +0900 > Masahiro Yamada wrote: > >> Hi Boris, >> >> 2018-09-07 23:08 GMT+09:00 Boris Brezillon : >> > Hi Masahiro, >> > >> > On Fri, 7 Sep 2018 19:56:23 +0900 >> > Masahiro Yamada wrote: >> > >> >> NAND devices

<    1   2   3   4   5   6   7   8   9   10   >