[PATCH v8 0/3]: perf: reduce data loss when profiling highly parallel CPU bound workloads

2018-09-07 Thread Alexey Budankov
Currently in record mode the tool implements trace writing serially. The algorithm loops over mapped per-cpu data buffers and stores ready data chunks into a trace file using write() system call. At some circumstances the kernel may lack free space in a buffer because the other buffer's half

[PATCH] Input: elantech - enable middle button of touchpad on ThinkPad P72

2018-09-07 Thread Aaron Ma
Adding 2 new touchpad IDs to support middle button support. Cc: sta...@vger.kernel.org Signed-off-by: Aaron Ma --- drivers/input/mouse/elantech.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/input/mouse/elantech.c b/drivers/input/mouse/elantech.c index 44f57cf6675b..2d95e8d93cc7

[PATCH v8 1/3]: perf util: map data buffer for preserving collected data

2018-09-07 Thread Alexey Budankov
The map->data buffer is used to preserve map->base profiling data for writing to disk. AIO map->cblock is used to queue corresponding map->data buffer for asynchronous writing. Signed-off-by: Alexey Budankov --- Changes in v7: - implemented handling record.aio setting from perfconfig file

Re: [PATCH] sched/fair: vruntime should normalize when switching from fair

2018-09-07 Thread Juri Lelli
On 06/09/18 16:25, Dietmar Eggemann wrote: > Hi Juri, > > On 08/23/2018 11:54 PM, Juri Lelli wrote: > > On 23/08/18 18:52, Dietmar Eggemann wrote: > > > Hi, > > > > > > On 08/21/2018 01:54 AM, Miguel de Dios wrote: > > > > On 08/17/2018 11:27 AM, Steve Muckle wrote: > > > > > From: John Dias >

Re: [PATCH AUTOSEL 4.18 043/131] ASoC: soc-pcm: Use delay set in component pointer function

2018-09-07 Thread Agrawal, Akshu
On 9/7/2018 5:53 AM, Sasha Levin wrote: > On Mon, Sep 03, 2018 at 12:16:26PM +0100, Mark Brown wrote: >> On Sun, Sep 02, 2018 at 01:03:55PM +, Sasha Levin wrote: >>> From: Akshu Agrawal >>> >>> [ Upstream commit 9fb4c2bf130b922c77c16a8368732699799c40de ] >>> >>> Take into account the base d

[PATCH v8 2/3]: perf record: enable asynchronous trace writing

2018-09-07 Thread Alexey Budankov
Trace file offset is calculated and updated linearly prior enqueuing aio write at record__pushfn(). record__aio_sync() blocks till completion of started AIO operation and then proceeds. record__mmap_read_sync() implements a barrier for all incomplete aio write requests. Signed-off-by: Alexey

Re: [PATCH resend 0/2] irqchip: convert to SPDX for Renesas drivers

2018-09-07 Thread Marc Zyngier
On Fri, 07 Sep 2018 02:50:13 +0100, Kuninori Morimoto wrote: > > > Hi Thomas, Marc, Jason > > 2weeks passed. I resend this patch again > > Kuninori Morimoto (2): > pinctrl: sh-pfc: convert to SPDX identifiers > pinctrl: rza1: convert to SPDX identifiers > > drivers/pinctrl/pinctrl-rza1.c

Re: [PATCH] vme: remove unneeded kfree

2018-09-07 Thread Greg Kroah-Hartman
On Thu, Sep 06, 2018 at 10:04:49PM -0700, Linus Torvalds wrote: > On Thu, Sep 6, 2018 at 1:51 AM Ding Xiang > wrote: > > > > put_device will call vme_dev_release to free vdev, kfree is > > unnecessary here. > > That does seem to be the case. I think "unnecessary" is overly kind, > it does seem t

[PATCH 1/2] mtd: rawnand: denali: remove ->dev_ready() hook

2018-09-07 Thread Masahiro Yamada
The Denali NAND IP has no way to read out the current signal level of the R/B# pin. Instead, denali_dev_ready() checks if the R/B# transition has already happened. (The INTR__INT_ACT interrupt is asserted at the rising edge of the R/B# pin.) It is not a correct way to implement the ->dev_ready()

[PATCH 0/2] mtd: rawnand: denali: clean-up unnecessary hook and device reset

2018-09-07 Thread Masahiro Yamada
As I replied to Boris [1], I took a closer look for further cleanups. I test this series on my board. Remove mis-implemented ->dev_ready hook. Remove unnecessary device resetting because nand_scan_ident() reset devices anyway. [1] http://patchwork.ozlabs.org/patch/960160/ Masahiro Yamada (2)

[PATCH 2/2] mtd: rawnand: denali: remove denali_reset_banks()

2018-09-07 Thread Masahiro Yamada
In nand_scan_ident(), the controller driver resets every NAND chip. This is done by sending NAND_CMD_RESET. The Denali IP provides another way to do the equivalent thing; if a bit is set in the DEVICE_RESET register, the controller sends the RESET command to the corresponding device. denali_reset

Re: [PATCH 1/2] platform/chrome: Move mfd/cros_ec_lpc* includes to drivers/platform.

2018-09-07 Thread Benson Leung
Hi Enric, On Wed, Jul 18, 2018 at 06:09:55PM +0200, Enric Balletbo i Serra wrote: > The cros-ec-lpc driver lives in drivers/platform because is platform > specific, however there are two includes (cros_ec_lpc_mec.h and > cros_ec_lpc_reg.h) that lives in include/linux/mfd. These two includes > are

Re: [PATCH v7 1/2] leds: core: Introduce LED pattern trigger

2018-09-07 Thread Pavel Machek
Hi! > +What:/sys/class/leds//hw_pattern > +Date:September 2018 > +KernelVersion: 4.20 > +Description: > + Specify a hardware pattern for the SC27XX LED. For the SC27XX > + LED controller, it only supports 4 hardware patterns to > confi

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

2018-09-07 Thread Peter Zijlstra
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 > test if pt_regs say return to interrupts enabled [yes] >

Re: [PATCH v9 3/6] kernel/reboot.c: export pm_power_off_prepare

2018-09-07 Thread Oleksij Rempel
Hi Mark, On Thu, Sep 06, 2018 at 11:15:17AM +0100, Mark Brown wrote: > On Mon, Aug 27, 2018 at 09:48:16AM +0800, Shawn Guo wrote: > > > Can you ACK on those two regulator patches, so that I can queue this > > series up on IMX tree? > > I was expecting to get a pull request with the precursor pat

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

2018-09-07 Thread Daniel Drake
On Thu, Sep 6, 2018 at 5:43 AM, Johannes Weiner wrote: > Peter, do the changes from v3 look sane to you? > > If there aren't any further objections, I was hoping we could get this > lined up for 4.20. That would be excellent. I just retested the latest version at http://git.cmpxchg.org/cgit.cgi/l

[PATCH v8 3/3]: perf record: extend trace writing to multi AIO

2018-09-07 Thread Alexey Budankov
Multi AIO trace writing allows caching more kernel data into userspace memory postponing trace writing for the sake of overall profiling data thruput increase. It could be seen as kernel data buffer extension into userspace memory. With aio-cblocks option value different from 1, current defaul

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

2018-09-07 Thread Peter Zijlstra
On Thu, Sep 06, 2018 at 11:31:51AM +0900, Sergey Senozhatsky wrote: > An alternative option, thus, could be re-instating back the rule that > lockdep_off/on should be the first and the last thing we do in > nmi_enter/nmi_exit. E.g. > > nmi_enter() > lockdep_off(); > printk_nmi_enter();

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

2018-09-07 Thread Pavel Machek
Hi! > >> +All HVLED strings controlled by control bank A > > > > ":"? > > Not sure what you are asking for here. Text looked like missing ":" at end of line. Best regards, Pavel -- (english) http://www.livejournal.com/~pa

[PATCH 2/2] rxrpc: use kmemdup_nul in rxrpc_krb5_decode_principal

2018-09-07 Thread Rasmus Villemoes
Signed-off-by: Rasmus Villemoes --- This depends on patch 1/2. net/rxrpc/key.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/net/rxrpc/key.c b/net/rxrpc/key.c index e7f6b8823eb6..42f0ca9265c2 100644 --- a/net/rxrpc/key.c +++ b/net/rxrpc/key.c @@ -252,11 +252,9 @@ st

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

2018-09-07 Thread Peter Zijlstra
On Wed, Sep 05, 2018 at 05:43:03PM -0400, Johannes Weiner wrote: > On Tue, Aug 28, 2018 at 01:22:49PM -0400, Johannes Weiner wrote: > > This version 4 of the PSI series incorporates feedback from Peter and > > fixes two races in the lockless aggregator that Suren found in his > > testing and which

[PATCH 1/2] string: make kmemdup_nul take and return void*, not char*

2018-09-07 Thread Rasmus Villemoes
This allows kmemdup_nul to be used in cases where the source pointer is not a char* or const char*, but the result should nevertheless have a nul char after the memcpy'ed data. Signed-off-by: Rasmus Villemoes --- include/linux/string.h | 2 +- mm/util.c | 2 +- 2 files changed, 2 in

Re: [PATCH v2 7/9] net: stmmac: dwmac-sun8i: fix OF child-node lookup

2018-09-07 Thread Johan Hovold
On Thu, Sep 06, 2018 at 10:03:37PM +0200, Corentin Labbe wrote: > On Mon, Aug 27, 2018 at 10:21:51AM +0200, Johan Hovold wrote: > > Use the new of_get_compatible_child() helper to lookup the mdio-internal > > child node instead of using of_find_compatible_node(), which searches > > the entire tree

Re: [PATCH v3 4/5] x86/mm: optimize static_protection() by using overlap()

2018-09-07 Thread Thomas Gleixner
On Fri, 7 Sep 2018, Yang, Bin wrote: > On Tue, 2018-09-04 at 14:22 +0200, Thomas Gleixner wrote: > > I just write a test.c to compare the result between overlap() and > original within(). You are right. Your version of doing the overlap exclusive works. I misread the conditions. I still prefer do

Re: [PATCH] ttyprintk: make the printk log level configurable

2018-09-07 Thread Peter Korsgaard
On Tue, Aug 21, 2018 at 7:28 PM Peter Korsgaard wrote: > > For some use cases it is handy to use a different printk log level than the > default (info) for the messages written to ttyprintk, so add a Kconfig > option similar to what we have for default console loglevel. Ping? Feedback, comments?

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

2018-09-07 Thread Vincent Guittot
It can happen that load_balance finds a busiest group and then a busiest rq but the calculated imbalance is in fact null. In such situation, detach_tasks returns immediately and lets the flag LBF_ALL_PINNED set. The busiest CPU is then wrongly assumed to have pinned tasks and removed from the load

Re: [PATCH 2/2] mfd: cros_ec: Fix and improve kerneldoc comments.

2018-09-07 Thread Benson Leung
Hi Enric, On Wed, Jul 18, 2018 at 06:09:56PM +0200, Enric Balletbo i Serra wrote: > cros-ec includes inside the MFD subsystem, specially the file > cros_ec_commands.h, has been modified several times and it has grown a > lot, unfortunately, we didn't have care too much about the documentation. > T

Re: [PATCH] leds: pwm: silently error out on EPROBE_DEFER

2018-09-07 Thread Jerome Brunet
On Thu, 2018-09-06 at 17:35 +0200, Pavel Machek wrote: > On Thu 2018-09-06 15:59:04, Jerome Brunet wrote: > > When probing, if we fail to get the pwm due to probe deferal, we shouldn't > > print an error message. Just be silent in this case. > > > > Signed-off-by: Jerome Brunet > > --- > > drive

Re: [PATCH] sched/fair: vruntime should normalize when switching from fair

2018-09-07 Thread Vincent Guittot
On Fri, 7 Sep 2018 at 09:16, Juri Lelli wrote: > > On 06/09/18 16:25, Dietmar Eggemann wrote: > > Hi Juri, > > > > On 08/23/2018 11:54 PM, Juri Lelli wrote: > > > On 23/08/18 18:52, Dietmar Eggemann wrote: > > > > Hi, > > > > > > > > On 08/21/2018 01:54 AM, Miguel de Dios wrote: > > > > > On 08/17

Re: [PATCH v2 2/3] x86/entry/64: Use the TSS sp2 slot for SYSCALL/SYSRET scratch space

2018-09-07 Thread Borislav Petkov
On Mon, Sep 03, 2018 at 03:59:43PM -0700, Andy Lutomirski wrote: > In the non-trampoline SYSCALL64 path, we use a percpu variable to > temporarily store the user RSP value. Instead of a separate > variable, use the otherwise unused sp2 slot in the TSS. This will > improve cache locality, as the s

Re: [PATCH V3 17/26] csky: Misc headers

2018-09-07 Thread Arnd Bergmann
On Fri, Sep 7, 2018 at 7:17 AM Guo Ren wrote: > > On Thu, Sep 06, 2018 at 04:16:30PM +0200, Arnd Bergmann wrote: > > On Wed, Sep 5, 2018 at 2:08 PM Guo Ren wrote: > > > > > diff --git a/arch/csky/boot/dts/qemu.dts b/arch/csky/boot/dts/qemu.dts > > > new file mode 100644 > > > index 000..d36e4

[PATCH v14 12/16] arm64: kexec_file: add crash dump support

2018-09-07 Thread AKASHI Takahiro
Enabling crash dump (kdump) includes * prepare contents of ELF header of a core dump file, /proc/vmcore, using crash_prepare_elf64_headers(), and * add two device tree properties, "linux,usable-memory-range" and "linux,elfcorehdr", which represent respectively a memory range to be used by cra

[PATCH v14 11/16] arm64: kexec_file: allow for loading Image-format kernel

2018-09-07 Thread AKASHI Takahiro
This patch provides kexec_file_ops for "Image"-format kernel. In this implementation, a binary is always loaded with a fixed offset identified in text_offset field of its header. Regarding signature verification for trusted boot, this patch doesn't contains CONFIG_KEXEC_VERIFY_SIG support, which i

[PATCH v14 08/16] arm64: cpufeature: add MMFR0 helper functions

2018-09-07 Thread AKASHI Takahiro
Those helper functions for MMFR0 register will be used later by kexec_file loader. Signed-off-by: AKASHI Takahiro Cc: Catalin Marinas Cc: Will Deacon Reviewed-by: James Morse --- arch/arm64/include/asm/cpufeature.h | 48 + 1 file changed, 48 insertions(+) diff --g

[PATCH] android: binder: use kstrdup instead of open-coding it

2018-09-07 Thread Rasmus Villemoes
Signed-off-by: Rasmus Villemoes --- drivers/android/binder.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/android/binder.c b/drivers/android/binder.c index d58763b6b009..2abcf4501d9a 100644 --- a/drivers/android/binder.c +++ b/drivers/android/binder.c @@ -5667,12

KASAN: use-after-free Write in ucma_put_ctx

2018-09-07 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:b36fdc6853a3 Merge tag 'gpio-v4.19-2' of git://git.kernel... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=16a1842140 kernel config: https://syzkaller.appspot.com/x/.config?x=6c9564cd177daf0c da

Re: [PATCH] ttyprintk: make the printk log level configurable

2018-09-07 Thread Joe Perches
On Fri, 2018-09-07 at 09:50 +0200, Peter Korsgaard wrote: > On Tue, Aug 21, 2018 at 7:28 PM Peter Korsgaard wrote: > > > > For some use cases it is handy to use a different printk log level than the > > default (info) for the messages written to ttyprintk, so add a Kconfig > > option similar to w

Re: [PATCH v3 4/5] x86/mm: optimize static_protection() by using overlap()

2018-09-07 Thread Yang, Bin
On Fri, 2018-09-07 at 09:49 +0200, Thomas Gleixner wrote: > On Fri, 7 Sep 2018, Yang, Bin wrote: > > On Tue, 2018-09-04 at 14:22 +0200, Thomas Gleixner wrote: > > > > I just write a test.c to compare the result between overlap() and > > original within(). > > You are right. Your version of doing

Re: [PATCH] android: binder: use kstrdup instead of open-coding it

2018-09-07 Thread Greg Kroah-Hartman
On Fri, Sep 07, 2018 at 10:01:46AM +0200, Rasmus Villemoes wrote: > Signed-off-by: Rasmus Villemoes > --- > drivers/android/binder.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) Hi, This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that has triggered

Re: [PATCH V3 17/26] csky: Misc headers

2018-09-07 Thread Guo Ren
On Fri, Sep 07, 2018 at 10:01:03AM +0200, Arnd Bergmann wrote: > On Fri, Sep 7, 2018 at 7:17 AM Guo Ren wrote: > > > > On Thu, Sep 06, 2018 at 04:16:30PM +0200, Arnd Bergmann wrote: > > > On Wed, Sep 5, 2018 at 2:08 PM Guo Ren wrote: > > > > > > > diff --git a/arch/csky/boot/dts/qemu.dts b/arch/c

Re: [4.17 regression] Performance drop on kernel-4.17 visible on Stream, Linpack and NAS parallel benchmarks

2018-09-07 Thread Jirka Hladky
> Maybe 305c1fac3225dfa7eeb89bfe91b7335a6edd5172. That introduces a weird > condition in terms of idle CPU handling that has been problematic. We will try that, thanks! > I would suggest contacting Srikar directly. I will do that right away. Whom should I put on Cc? Just you and linux-kernel@

Re: [PATCH] ttyprintk: make the printk log level configurable

2018-09-07 Thread Peter Korsgaard
> "Joe" == Joe Perches writes: > On Fri, 2018-09-07 at 09:50 +0200, Peter Korsgaard wrote: >> On Tue, Aug 21, 2018 at 7:28 PM Peter Korsgaard wrote: >> > >> > For some use cases it is handy to use a different printk log level than >> > the >> > default (info) for the messages written

Re: [PATCH] x86, mm: Reserver some memory for bootmem allocator for NO_BOOTMEM

2018-09-07 Thread Feng Tang
Hi Thomas, On Fri, Aug 31, 2018 at 09:36:59PM +0800, Feng Tang wrote: > On Fri, Aug 31, 2018 at 01:33:05PM +0200, Thomas Gleixner wrote: > > On Fri, 31 Aug 2018, Feng Tang wrote: > > > On Thu, Aug 30, 2018 at 03:25:42PM +0200, Thomas Gleixner wrote: > > > This panic happens as the earlycon's fixma

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

2018-09-07 Thread Arnd Bergmann
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: > > On Wed, Sep 5, 2018 at 2:08 PM Guo Ren wrote: > > > > Can you describe how C-Sky hardware implements MMIO? > Our mmio is uncachable and strong-order address, so there is no need >

Re: [PATCH v4 3/4] drivers: edac: Add EDAC driver support for QCOM SoCs

2018-09-07 Thread Borislav Petkov
On Tue, Sep 04, 2018 at 04:22:24PM -0700, Venkata Narendra Kumar Gutta wrote: > From: Channagoud Kadabi > > Add error reporting driver for Single Bit Errors (SBEs) and Double Bit > Errors (DBEs). As of now, this driver supports error reporting for > Last Level Cache Controller (LLCC) of Tag RAM a

[PATCH v2] ttyprintk: make the printk log level configurable

2018-09-07 Thread Peter Korsgaard
For some use cases it is handy to use a different printk log level than the default (info) for the messages written to ttyprintk, so add a Kconfig option similar to what we have for default console loglevel. Signed-off-by: Peter Korsgaard --- Changes since v1: - Leave [U] prefix in printk invocat

[PATCH 1/4 v7] x86/ioremap: add a function ioremap_encrypted() to remap kdump old memory

2018-09-07 Thread Lianbo Jiang
When SME is enabled on AMD machine, the memory is encrypted in the first kernel. In this case, SME also needs to be enabled in kdump kernel, and we have to remap the old memory with the memory encryption mask. Signed-off-by: Lianbo Jiang --- arch/x86/include/asm/io.h | 3 +++ arch/x86/mm/iorema

Re: [PATCH v3 4/5] x86/mm: optimize static_protection() by using overlap()

2018-09-07 Thread Thomas Gleixner
On Fri, 7 Sep 2018, Yang, Bin wrote: > On Fri, 2018-09-07 at 09:49 +0200, Thomas Gleixner wrote: > > On Fri, 7 Sep 2018, Yang, Bin wrote: > > > On Tue, 2018-09-04 at 14:22 +0200, Thomas Gleixner wrote: > > > > > > I just write a test.c to compare the result between overlap() and > > > original wit

[PATCH] ARM: dts: at91: sama5d2_ptc_ek: fix nand pinctrl

2018-09-07 Thread Ludovic Desroches
The drive strength has to be set to medium otherwise some data corruption may happen. Signed-off-by: Ludovic Desroches --- Hi, This fix depends on the support of the drive-strength for the atmel pio4 pinctroller. It has been added in v4.19 but I omitted to send it at the same time. Ludovic a

Re: [PATCH v6 07/14] sched/topology: Introduce sched_energy_present static key

2018-09-07 Thread Quentin Perret
On Thursday 06 Sep 2018 at 16:49:47 (-0700), Dietmar Eggemann wrote: > I would prefer a sched_feature. I guess it has to be disabled by default so > that other systems don't have to check rcu_dereference(rd->pd) in the wakeup > path. Right, this is what I had in mind too. I guess downstream kernel

[PATCH 2/2] irq/matrix: Spread managed interrupts on allocation

2018-09-07 Thread Dou Liyang
From: Dou Liyang Linux has spread out the non managed interrupt across the possible target CPUs to avoid vector space exhaustion. But, the same situation may happen on the managed interrupts. Spread managed interrupt on allocation as well. Fixes: a0c9259dc4e1("irq/matrix: Spread interrupts on

[PATCH 1/2] irq/matrix: Split out the CPU finding code into a helper

2018-09-07 Thread Dou Liyang
From: Dou Liyang Linux finds the CPU which has the lowest vector allocation count to spread out the non managed interrupt across the possible target CPUs. This common CPU finding code will also be used in managed case, So Split it out into a helper for preparation. Signed-off-by: Dou Liyang

Re: [PATCH v3 4/5] x86/mm: optimize static_protection() by using overlap()

2018-09-07 Thread Yang, Bin
On Fri, 2018-09-07 at 10:21 +0200, Thomas Gleixner wrote: > On Fri, 7 Sep 2018, Yang, Bin wrote: > > On Fri, 2018-09-07 at 09:49 +0200, Thomas Gleixner wrote: > > > On Fri, 7 Sep 2018, Yang, Bin wrote: > > > > On Tue, 2018-09-04 at 14:22 +0200, Thomas Gleixner wrote: > > > > > > > > I just write a

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

2018-09-07 Thread Petr Mladek
On Fri 2018-09-07 09:45:31, Peter Zijlstra wrote: > On Thu, Sep 06, 2018 at 11:31:51AM +0900, Sergey Senozhatsky wrote: > > An alternative option, thus, could be re-instating back the rule that > > lockdep_off/on should be the first and the last thing we do in > > nmi_enter/nmi_exit. E.g. > > > >

Re: [PATCH] vme: remove unneeded kfree

2018-09-07 Thread Martyn Welch
On Thu, 2018-09-06 at 22:04 -0700, Linus Torvalds wrote: > On Thu, Sep 6, 2018 at 1:51 AM Ding Xiang > wrote: > > > > put_device will call vme_dev_release to free vdev, kfree is > > unnecessary here. > > That does seem to be the case.  I think "unnecessary" is overly kind, > it does seem to be a

Re: [PATCH] arm64: add NUMA emulation support

2018-09-07 Thread Michal Hocko
On Thu 06-09-18 15:53:34, Shuah Khan wrote: [...] > A few critical allocations could be satisfied and root cgroup prevails. It is > not the > intent to have exclusivity at the expense of the kernel. Well, it is not "few critical allocations". It can be a lot of memory. Basically any GFP_KERNEL al

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

2018-09-07 Thread Sergey Senozhatsky
On (09/07/18 10:28), Petr Mladek wrote: > On Fri 2018-09-07 09:45:31, Peter Zijlstra wrote: > > On Thu, Sep 06, 2018 at 11:31:51AM +0900, Sergey Senozhatsky wrote: > > > An alternative option, thus, could be re-instating back the rule that > > > lockdep_off/on should be the first and the last thing

possible deadlock in start_this_handle

2018-09-07 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:ca16eb342ebe Merge tag 'for-linus-20180906' of git://git.k.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=129e80ae40 kernel config: https://syzkaller.appspot.com/x/.config?x=6c9564cd177daf0c da

general protection fault in ovl_free_fs

2018-09-07 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:b36fdc6853a3 Merge tag 'gpio-v4.19-2' of git://git.kernel... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=13579cd140 kernel config: https://syzkaller.appspot.com/x/.config?x=6c9564cd177daf0c da

KASAN: use-after-free Read in cma_bind_port

2018-09-07 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:b36fdc6853a3 Merge tag 'gpio-v4.19-2' of git://git.kernel... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1660c26640 kernel config: https://syzkaller.appspot.com/x/.config?x=6c9564cd177daf0c da

Re: [PATCH 1/5] mfd: lochnagar: Add support for the Cirrus Logic Lochnagar

2018-09-07 Thread Charles Keepax
rong git tree, please drop us a note to > help improve the system] > > url: > https://github.com/0day-ci/linux/commits/Charles-Keepax/mfd-lochnagar-Add-support-for-the-Cirrus-Logic-Lochnagar/20180907-010308 > base: https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd

Re: Regression in next with filesystem context concept

2018-09-07 Thread David Howells
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 of the LSMs? David

[PATCH] Input: reserve 2 events code because of HID

2018-09-07 Thread Benjamin Tissoires
From: Benjamin Tissoires Prior to commit 190d7f02ce8e ("HID: input: do not increment usages when a duplicate is found") from the v4.18 kernel, HID used to shift the event codes if a duplicate usage was found. This ended up in a situation where a device would export a ton of ABS_MISC+n event codes

Re: [PATCH V8 0/9] mmc: add support for sdhci 4.0

2018-09-07 Thread Ulf Hansson
On 30 August 2018 at 10:21, Chunyan Zhang wrote: > From the SD host controller version 4.0 on, SDHCI implementation either > is version 3 compatible or version 4 mode. This patch-set covers those > changes which are common for SDHCI 4.0 version, regardless of whether > they are used with SD or eMM

Re: [RESEND PATCH v2 1/3] mtd: spi-nor: add support to non-uniform SFDP SPI NOR flash memories

2018-09-07 Thread Tudor Ambarus
Thanks Marek, On 09/03/2018 08:37 PM, Marek Vasut wrote: > On 08/27/2018 12:26 PM, Tudor Ambarus wrote: > [...] > >> +/* JEDEC JESD216B Standard imposes erase sizes to be power of 2. */ >> +static inline u64 >> +spi_nor_div_by_erase_size(const struct spi_nor_erase_type *erase, >> +

[PATCH V2] perf tools: Fix maps__find_symbol_by_name()

2018-09-07 Thread Adrian Hunter
Commit 1c5aae7710bb ("perf machine: Create maps for x86 PTI entry trampolines") revealed a problem with maps__find_symbol_by_name() that resulted in probes not being found e.g. $ sudo perf probe xsk_mmap xsk_mmap is out of .text, skip it. Probe point 'xsk_mmap' not found.

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

2018-09-07 Thread Rafael J. Wysocki
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 don't need > > to add an extra chain just in order to be able to register a cal

Re: [RFC 3/3] stk1160: Use non-coherent buffers for USB transfers

2018-09-07 Thread Tomasz Figa
On Fri, Aug 31, 2018 at 2:59 AM Christoph Hellwig wrote: > > > + dma_sync_single_for_cpu(&urb->dev->dev, urb->transfer_dma, > > + urb->transfer_buffer_length, DMA_FROM_DEVICE); > > You can't ue dma_sync_single_for_cpu on non-coherent dma buffers, > which is one of the major issues

Re: [PATCH] ARM: dts: at91: sama5d2_ptc_ek: fix nand pinctrl

2018-09-07 Thread Nicolas Ferre
On 07/09/2018 at 10:18, Ludovic Desroches wrote: The drive strength has to be set to medium otherwise some data corruption may happen. Signed-off-by: Ludovic Desroches Acked-by: Nicolas Ferre --- Hi, This fix depends on the support of the drive-strength for the atmel pio4 pinctroller. It

Re: [PATCH v3] mm: slowly shrink slabs with a relatively small number of objects

2018-09-07 Thread Michal Hocko
[Please make sure to CC Vladimir when modifying memcg kmem reclaim] On Wed 05-09-18 16:07:59, Roman Gushchin wrote: > Commit 9092c71bb724 ("mm: use sc->priority for slab shrink targets") > changed the way how the target slab pressure is calculated and > made it priority-based: > > delta = fre

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

2018-09-07 Thread David Howells
Stephen Rothwell wrote: > After merging the net-next tree, today's linux-next build (x86_64 > allmodconfig) produced this warning: > > security/selinux/hooks.c:2835:12: warning: 'selinux_sb_remount' defined but > not used [-Wunused-function] > static int selinux_sb_remount(struct super_block *

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

2018-09-07 Thread Rafael J. Wysocki
On Friday, September 7, 2018 10:52:01 AM CEST 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 yo

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:56:12 (+0200), Rafael J. Wysocki wrote: > On Friday, September 7, 2018 10:52:01 AM CEST 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.

Re: [PATCH 00/17] thermal: enable/check sensor after its setup is finished

2018-09-07 Thread Amit Kucheria
Hi Bartlomiej, Do you have an updated version of this patchset on 4.19-rc1 somewhere that I can look at? I might be seeing this issue on the QCom TSENS driver and would like to verify. Regards, Amit On Tue, Apr 10, 2018 at 6:11 PM, Bartlomiej Zolnierkiewicz wrote: > Hi, > > [devm]_thermal_zone_

Re: [RESEND PATCH v2 2/3] mtd: spi-nor: parse SFDP Sector Map Parameter Table

2018-09-07 Thread Tudor Ambarus
On 09/03/2018 08:40 PM, Marek Vasut wrote: > On 08/27/2018 12:26 PM, Tudor Ambarus wrote: > [...] >> +static const u32 *spi_nor_get_map_in_use(struct spi_nor *nor, const u32 >> *smpt) >> +{ >> +const u32 *ret = NULL; >> +u32 i, addr; >> +int err; >> +u8 addr_width, read_opcode,

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

2018-09-07 Thread Peter Zijlstra
On Fri, Sep 07, 2018 at 10:28:34AM +0200, Petr Mladek wrote: > On Fri 2018-09-07 09:45:31, Peter Zijlstra wrote: > > On Thu, Sep 06, 2018 at 11:31:51AM +0900, Sergey Senozhatsky wrote: > > > An alternative option, thus, could be re-instating back the rule that > > > lockdep_off/on should be the fir

Re: [PATCH v8 0/3]: perf: reduce data loss when profiling highly parallel CPU bound workloads

2018-09-07 Thread Alexey Budankov
On 07.09.2018 10:07, Alexey Budankov wrote: > > Currently in record mode the tool implements trace writing serially. > The algorithm loops over mapped per-cpu data buffers and stores > ready data chunks into a trace file using write() system call. > > At some circumstances the kernel may lac

[SCHEDULER] Performance drop in 4.19 compared to 4.18 kernel

2018-09-07 Thread Jirka Hladky
Hi Srikar, I work at Red Hat in the Kernel Performance Team. I would like to ask you for help. We have detected a significant performance drop (20% and more) with 4.19rc1 relatively to 4.18 vanilla. We see the regression on different 2 NUMA and 4 NUMA boxes with pretty much all the benchmarks we

Re: [PATCH v2 3/3] x86/pti/64: Remove the SYSCALL64 entry trampoline

2018-09-07 Thread Borislav Petkov
On Mon, Sep 03, 2018 at 03:59:44PM -0700, Andy Lutomirski wrote: > The SYSCALL64 trampoline has a couple of nice properties: > > - The usual sequence of SWAPGS followed by two GS-relative accesses to >set up RSP is somewhat slow because the GS-relative accesses need >to wait for SWAPGS to

[GIT PULL] ACPI fixes for v4.19-rc3

2018-09-07 Thread Rafael J. Wysocki
two ACPI fixes for 4.19-rc3. These fix a regression from the 4.18 cycle in the ACPI driver for Intel SoCs (LPSS) and prevent dmi_check_system() from being called on non-x86 systems in the ACPI core. Specifics: - Fix a power management regression in the ACPI driver for Intel SoCs (LPSS) intro

Re: possible deadlock in start_this_handle

2018-09-07 Thread Jan Kara
On Fri 07-09-18 01:38:03, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:ca16eb342ebe Merge tag 'for-linus-20180906' of git://git.k.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=129e80ae40 > kernel config: https:

Re: [PATCH] mfd: ti-lmu: constify mfd_cell tables

2018-09-07 Thread Pavel Machek
On Wed 2018-08-29 11:31:08, Pavel Machek wrote: > From: Sebastian Reichel > > mfd: ti-lmu: constify mfd_cell tables > > Add const attribute to all mfd_cell structures. > > Signed-off-by: Sebastian Reichel > Signed-off-by: Pavel Machek Lee, I guess this is for you to apply. Any news t

[GIT PULL] sound fixes for 4.19-rc3

2018-09-07 Thread Takashi Iwai
Linus, please pull sound fixes for v4.19-rc3 from: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-4.19-rc3 The topmost commit is f7c50fa636f72490baceb1664ba64973137266f2 sound fixes for 4.19-rc3 Just

Re: [GIT PULL] ACPI fixes for v4.19-rc3

2018-09-07 Thread Rafael J. Wysocki
On Fri, Sep 7, 2018 at 11:37 AM Rafael J. Wysocki wrote: > > two ACPI fixes for 4.19-rc3. > > These fix a regression from the 4.18 cycle in the ACPI driver > for Intel SoCs (LPSS) and prevent dmi_check_system() from being > called on non-x86 systems in the ACPI core. > > Specifics: > > - Fix a po

[GIT PULL] ACPI fixes for v4.19-rc3

2018-09-07 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ acpi-4.19-rc3 with top-most commit a6b7eb3b4176d9732d74d214b349932faa5524b4 Merge branch 'acpi-bus' on top of commit 57361846b52bc686112da6ca5368d11210796804 Linux 4.19-rc2 to receive t

Re: [PATCH v3 3/4] PCI: mediatek: Add system pm support for MT2712 and MT7622

2018-09-07 Thread Honghui Zhang
On Wed, 2018-07-18 at 10:49 +0100, Lorenzo Pieralisi wrote: > On Wed, Jul 18, 2018 at 02:02:41PM +0800, Honghui Zhang wrote: > > > > > > > +static int __maybe_unused mtk_pcie_resume_noirq(struct device *dev) > > > > +{ > > > > + struct mtk_pcie *pcie = dev_get_drvdata(dev); > > > > +

Re: Fwd: Smack: wrong-looking capable() check in smk_ptrace_rule_check()

2018-09-07 Thread Lukasz Pawelczyk
Hi, On Thu, 2018-09-06 at 11:53 -0700, Casey Schaufler wrote: > Lukasz, does this analysis seem correct to you? This is code you > wrote in 2014. It seems correct. Moreover I've sent a patch that fixes this bug long time ago with the namespace series. https://lists.linux-foundation.org/pipermail

Re: ovl: hash non-dir by lower inode for fsnotify

2018-09-07 Thread Greg KH
On Thu, Aug 02, 2018 at 08:29:02AM -0700, Mark Salyzyn wrote: > On 08/01/2018 11:05 PM, Greg KH wrote: > > On Wed, Aug 01, 2018 at 02:29:01PM -0700, Mark Salyzyn wrote: > > > 764baba80168ad3adafb521d2ab483ccbc49e344 ovl: hash non-dir by lower inode > > > for fsnotify is not part of 4.14 stable and

Re: [RESEND PATCH v4 1/6] arm64/mm: Introduce the init_pg_dir.

2018-09-07 Thread James Morse
Hi Jun, On 22/08/18 10:54, Jun Yao wrote: > To make the swapper_pg_dir read only, we will move it to the rodata > section. And force the kernel to set up the initial page table in > the init_pg_dir. After generating all levels page table, we copy > only the top level into the swapper_pg_dir during

Re: [RESEND PATCH v4 0/6] arm64/mm: Move swapper_pg_dir to rodata

2018-09-07 Thread James Morse
Hi Jun, (I'm a bit confused about which version of this series I should be looking at. I have a v4, and two v4-resends, all of which are different. Please only mark something as 'resend' if it is exactly the same!) On 22/08/18 10:54, Jun Yao wrote: > The set_init_mm_pgd() is reimplemented using

Re: [RESEND PATCH v4 2/6] arm64/mm: Pass ttbr1 as a parameter to __enable_mmu().

2018-09-07 Thread James Morse
Hi Jun, On 22/08/18 10:54, Jun Yao wrote: > The kernel sets up the initial page table in the init_pg_dir. (Nit: 'will set up', it doesn't until patch 3.) > However, it will create the final page table in the swapper_pg_dir > during the initialization process. We need to let __enable_mmu() > know

Re: [RESEND PATCH v4 4/6] arm64/mm: Create the final page table directly in swapper_pg_dir.

2018-09-07 Thread James Morse
Hi Jun, On 22/08/18 10:54, Jun Yao wrote: > As the initial page table is created in the init_pg_dir, we can set > up the final page table directly in the swapper_pg_dir. And it only> contains > the top level page table, so we can reduce it to a page Reviewed-by: James Morse Thanks, James

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

2018-09-07 Thread Sricharan R
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, scaling for higher frequencies are fine ? > Sorry, i could not get

Re: [RESEND PATCH v4 3/6] arm64/mm: Create the initial page table in the init_pg_dir.

2018-09-07 Thread James Morse
Hi Jun, On 22/08/18 10:54, Jun Yao wrote: > Create the initial page table in the init_pg_dir. And before > calling kasan_early_init(), we update the init_mm.pgd by > introducing set_init_mm_pgd(). This will ensure that pgd_offset_k() > works correctly. When the final page table is created, we redi

Re: [RESEND PATCH v4 5/6] arm64/mm: Populate the swapper_pg_dir by fixmap.

2018-09-07 Thread James Morse
Hi Jun, On 22/08/18 10:54, Jun Yao wrote: > Since we will move the swapper_pg_dir to rodata section, we need a > way to update it. The fixmap can handle it. When the swapper_pg_dir > needs to be updated, we map it dynamically. The map will be > canceled after the update is complete. In this way, w

Re: [PATCH V2] perf tools: Fix maps__find_symbol_by_name()

2018-09-07 Thread Jiri Olsa
On Fri, Sep 07, 2018 at 11:51:16AM +0300, Adrian Hunter wrote: > Commit 1c5aae7710bb ("perf machine: Create maps for x86 PTI entry > trampolines") revealed a problem with maps__find_symbol_by_name() that > resulted in probes not being found e.g. > > $ sudo perf probe xsk_mmap > xsk_mma

Re: [PATCH V3] spi: spi-geni-qcom: Add SPI driver support for GENI based QUP

2018-09-07 Thread dkota
On 2018-09-02 10:36, Doug Anderson wrote: Hi, On Fri, Aug 24, 2018 at 3:42 AM, Dilip Kota wrote: From: Girish Mahadevan This driver supports GENI based SPI Controller in the Qualcomm SOCs. The Qualcomm Generic Interface (GENI) is a programmable module supporting a wide range of serial int

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

2018-09-07 Thread Mel Gorman
Commit 305c1fac3225 ("sched/numa: Evaluate move once per node") restructured how task_numa_compare evaluates load but there is an anomaly. task_numa_find_cpu() checks if the load balance between too nodes is too imbalanced with the intent of only swapping tasks if it would improve the balance overa

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

2018-09-07 Thread Mel Gorman
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 CPUs, both idle and with running tasks, as placement candidates. Generally though, any idle CPU is equivalent in terms of im

[PATCH 2/4] sched/numa: Remove unused calculations in update_numa_stats

2018-09-07 Thread Mel Gorman
Commit 2d4056fafa19 ("sched/numa: Remove numa_has_capacity()") removed the the has_free_capacity field but did not remove calculations related to it in update_numa_stats. This patch removes the unused code. Signed-off-by: Mel Gorman --- kernel/sched/fair.c | 22 +- 1 file cha

  1   2   3   4   5   6   7   8   9   10   >