Re: [PATCH 3/4] paravirt: add virt_spin_lock pvops function

2017-09-05 Thread Waiman Long
On 09/05/2017 10:08 AM, Peter Zijlstra wrote: > On Tue, Sep 05, 2017 at 10:02:57AM -0400, Waiman Long wrote: >> On 09/05/2017 09:24 AM, Juergen Gross wrote: >>> +static inline bool native_virt_spin_lock(struct qspinlock *lock) >>> +{ >>> + if (!static_cpu_has(X86_FEATURE_HYPERVISOR)) >>> +

Re: [PATCH 3/4] paravirt: add virt_spin_lock pvops function

2017-09-05 Thread Juergen Gross
On 05/09/17 16:10, Waiman Long wrote: > On 09/05/2017 09:24 AM, Juergen Gross wrote: >> There are cases where a guest tries to switch spinlocks to bare metal >> behavior (e.g. by setting "xen_nopvspin" boot parameter). Today this >> has the downside of falling back to unfair test and set scheme for

Re: printk: what is going on with additional newlines?

2017-09-05 Thread Sergey Senozhatsky
On (09/05/17 21:35), Tetsuo Handa wrote: [..] > > Well, what do you think about the extra printed information? > > For example: > > > >message > > > > It looks straightforward to me. These information > > might be helpful on its own. So, it might be a > > win-win solution. > > Yes, if bu

[GIT PULL] percpu changes for v4.14-rc1

2017-09-05 Thread Tejun Heo
Hello, Linus. A lot of changes for percpu this time around. percpu inherited the same area allocator from the original pre-virtual-address-mapped implementation. This was from the time when percpu allocator wasn't used all that much and the implementation was focused on simplicity, with the unfo

Re: kmemleak not always catching stuff

2017-09-05 Thread Dmitry Vyukov
On Mon, Sep 4, 2017 at 12:09 PM, Catalin Marinas wrote: > Hi Steve, > > On Fri, Sep 01, 2017 at 06:33:11PM -0400, Steven Rostedt wrote: >> Recently kmemleak discovered a bug in my code where an allocated >> trampoline for a ftrace function tracer wasn't freed due to an exit >> path. The thing is,

Re: [PATCH 3/4] paravirt: add virt_spin_lock pvops function

2017-09-05 Thread Waiman Long
On 09/05/2017 10:18 AM, Juergen Gross wrote: > On 05/09/17 16:10, Waiman Long wrote: >> On 09/05/2017 09:24 AM, Juergen Gross wrote: >>> There are cases where a guest tries to switch spinlocks to bare metal >>> behavior (e.g. by setting "xen_nopvspin" boot parameter). Today this >>> has the downsid

Re: [RFC/PATCH] drivers/of/platform: Add powerpc 4xx embedded busses to default list

2017-09-05 Thread Rob Herring
On Fri, Sep 1, 2017 at 6:47 PM, Benjamin Herrenschmidt wrote: > On Fri, 2017-09-01 at 10:24 -0500, Rob Herring wrote: >> On Thu, Aug 31, 2017 at 10:51 PM, Benjamin Herrenschmidt >> wrote: >> > This allow to (slowly) migrate those embedded platforms >> > to of_platform_default_populate() >> > >> >

RE: [PATCH linux-next v6 1/1] spi: imx: Add support for SPI Slave mode

2017-09-05 Thread Palacios, Hector
Hi, On Tue, 5 Sep 2017 16:15, Fabio Estevam wrote: > [Adding Hector on Cc in case he could send his Tested-by tag] I backported and tested this on a v4.1 so I'm not sure it qualifies for a Tested-by. :-( > On Tue, Sep 5, 2017 at 2:12 AM, Jiada Wang wrote: >> Previously i.MX SPI controller onl

[GIT PULL] libata changes for v4.14-rc1

2017-09-05 Thread Tejun Heo
Hello, Linus. Nothing major. Some new platform controller support and device specific changes. Thanks. The following changes since commit 74cbd96bc2e00f5daa805e2ebf49e998f7045062: Merge tag 'md/4.13-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/shli/md (2017-07-18 11:51:08 -0700)

Re: [PATCH] usb: gadget: dummy: fix nonsensical comparisons

2017-09-05 Thread Alan Stern
On Tue, 5 Sep 2017, Arnd Bergmann wrote: > gcc-8 points out two comparisons that are clearly bogus > and almost certainly not what the author intended to write: > > drivers/usb/gadget/udc/dummy_hcd.c: In function 'set_link_state_by_speed': > drivers/usb/gadget/udc/dummy_hcd.c:379:31: error: bitwi

Re: [v7 5/5] mm, oom: cgroup v2 mount option to disable cgroup-aware OOM killer

2017-09-05 Thread Roman Gushchin
On Tue, Sep 05, 2017 at 03:44:12PM +0200, Michal Hocko wrote: > I will go and check patch 2 more deeply but this is something that I > wanted to sort out first. > > On Mon 04-09-17 15:21:08, Roman Gushchin wrote: > > Introducing of cgroup-aware OOM killer changes the victim selection > > algorithm

Re: [PATCH 3/4] paravirt: add virt_spin_lock pvops function

2017-09-05 Thread Waiman Long
On 09/05/2017 10:24 AM, Waiman Long wrote: > On 09/05/2017 10:18 AM, Juergen Gross wrote: >> On 05/09/17 16:10, Waiman Long wrote: >>> On 09/05/2017 09:24 AM, Juergen Gross wrote: There are cases where a guest tries to switch spinlocks to bare metal behavior (e.g. by setting "xen_nopvspin

[GIT PULL] workqueue changes for v4.14-rc1

2017-09-05 Thread Tejun Heo
Hello, Linus. Nothing major. I introduced a flag collsion bug during v4.13 cycle which is fixed in this pull request. Fortunately, the flag is for debugging / verification and the bug isn't critical. Thanks. The following changes since commit 1ad0f0a7aa1bf3bd42dcd108a96713d255eacd9f: workqu

[PATCH] paravirt: switch maintainer

2017-09-05 Thread Juergen Gross
Jeremy Fitzhardinge is stepping down as a paravirt maintainer. I'll replace him. While at it, update the file list to the actual pattern. Signed-off-by: Juergen Gross --- MAINTAINERS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 8ef4694a

[GIT PULL] cgroup changes for v4.14-rc1

2017-09-05 Thread Tejun Heo
Hello, Linus. Several notable changes this cycle. * Thread mode was merged. This will be used for cgroup2 support for CPU and possibly other controllers. Unfortunately, CPU controller cgroup2 support didn't make this pull request but most contentions have been resolved and the support is

Re: kmemleak not always catching stuff

2017-09-05 Thread Catalin Marinas
On Tue, Sep 05, 2017 at 04:23:47PM +0200, Dmitry Vyukov wrote: > On Mon, Sep 4, 2017 at 12:09 PM, Catalin Marinas > wrote: > > I also need to find > > some time to implement a "stopscan" command which uses stop_machine() > > and skips the heuristics for reducing false positives. > > "stopscan" wo

Re: [PATCH][V2] RDMA/nes: do not leak uninitialized resp.reserved to userspace Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit

2017-09-05 Thread Chien Tin Tung
On Mon, Sep 04, 2017 at 02:37:05PM +0100, Colin King wrote: > From: Colin Ian King > > resp.reserved has not been initialized and so the copy_to_user (via > ib_copy_to_udata) is copying uninitialized data from the stack back > to user space which is a potential information leak. Fix this by > ini

Re: [PATCH 3/4] paravirt: add virt_spin_lock pvops function

2017-09-05 Thread Juergen Gross
On 05/09/17 16:31, Waiman Long wrote: > On 09/05/2017 10:24 AM, Waiman Long wrote: >> On 09/05/2017 10:18 AM, Juergen Gross wrote: >>> On 05/09/17 16:10, Waiman Long wrote: On 09/05/2017 09:24 AM, Juergen Gross wrote: > There are cases where a guest tries to switch spinlocks to bare metal

[PATCH RFC 0/3] A few round_pipe_size() and pipe-max-size fixups

2017-09-05 Thread Joe Lawrence
While backporting Michael's "pipe: fix limit handling" [1] patchset to a distro-kernel, Mikulas noticed that current upstream pipe limit handling contains a few problems: 1 - round_pipe_size() nr_pages overflow on 32bit: this would subsequently try roundup_pow_of_two(0), which is undefine

[PATCH RFC 2/3] pipe: protect pipe_max_size access with a mutex

2017-09-05 Thread Joe Lawrence
pipe_max_size is assigned directly via procfs sysctl: static struct ctl_table fs_table[] = { ... { .procname = "pipe-max-size", .data = &pipe_max_size, .maxlen = sizeof(int), .mode

Re: [PATCH][V2] RDMA/nes: do not leak uninitialized resp.reserved to userspace Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit

2017-09-05 Thread Colin Ian King
On 05/09/17 15:40, Chien Tin Tung wrote: > On Mon, Sep 04, 2017 at 02:37:05PM +0100, Colin King wrote: >> From: Colin Ian King >> >> resp.reserved has not been initialized and so the copy_to_user (via >> ib_copy_to_udata) is copying uninitialized data from the stack back >> to user space which is

[PATCH RFC 1/3] pipe: avoid round_pipe_size() nr_pages overflow on 32-bit

2017-09-05 Thread Joe Lawrence
The round_pipe_size() function contains a right-bit-shift expression which may overflow, which would cause undefined results in a subsequent roundup_pow_of_two() call. static inline unsigned int round_pipe_size(unsigned int size) { unsigned long nr_pages; nr_pages = (size

[PATCH RFC 3/3] pipe: match pipe_max_size data type with procfs

2017-09-05 Thread Joe Lawrence
pipe_max_size is defined as an unsigned int: unsigned int pipe_max_size = 1048576; but its procfs/sysctl representation is an integer: static struct ctl_table fs_table[] = { ... { .procname = "pipe-max-size", .data = &pi

Re: [PATCH] Unifying headers for AArch64 and ARM

2017-09-05 Thread Arnd Bergmann
On Mon, Sep 4, 2017 at 2:23 PM, Yury Norov wrote: > Hi Kaushik, > > (CC arm and arch maintainers) > > On Fri, Sep 01, 2017 at 12:24:08PM +, Kaushik Phatak wrote: >> Ping for this patch: >> https://lkml.org/lkml/2017/8/10/136 >> >> The patch can be viewed on the mail-archive link below, >> http

Re: [RFC PATCH 01/11] workqueue: Add a decrement-after-return and wake if 0 facility

2017-09-05 Thread David Howells
Tejun Heo wrote: > Given how work items are used, I think this is too inviting to abuses > where people build complex event chains through these counters and > those chains would be completely opaque. If the goal is protecting > .text of a work item, can't we just do that? Can you please descri

Re: [patch 10/29] lockup_detector/perf: Prevent cpu hotplug deadlock

2017-09-05 Thread Don Zickus
On Fri, Sep 01, 2017 at 09:29:07PM +0200, Thomas Gleixner wrote: > On Fri, 1 Sep 2017, Don Zickus wrote: > > On Thu, Aug 31, 2017 at 09:16:08AM +0200, Thomas Gleixner wrote: > > > The following deadlock is possible in the watchdog hotplug code: > > > > > > cpus_write_lock() > > > ... > > >

Re: [PATCH] blk-mq: Start to fix memory ordering...

2017-09-05 Thread Bart Van Assche
On Mon, 2017-09-04 at 11:09 +0200, Peter Zijlstra wrote: > /* >* Mark us as started and clear complete. Complete might have been >* set if requeue raced with timeout, which then marked it as >* complete. So be sure to clear complete again when we start >* the r

[ANNOUNCE] v4.11.12-rt13

2017-09-05 Thread Sebastian Andrzej Siewior
Dear RT folks! I'm pleased to announce the v4.11.12-rt13 patch set. Changes since v4.11.12-rt12: - Merging Anna-Maria's "hrtimer: Provide softirq context hrtimers" series. Merging this series enables the removal of almost all hrtimer related patches in the queue. What is left is the "

Re: [PATCH v2 2/2] console: don't select first registered console if stdout-path used

2017-09-05 Thread Petr Mladek
On Mon 2017-08-28 19:58:07, Eugeniy Paltsev wrote: > In the current implementation we take the first console that > registers if we didn't select one. > > But if we specify console via "stdout-path" property in device tree > we don't want first console that registers here to be selected. > Otherwi

Re: printk: what is going on with additional newlines?

2017-09-05 Thread Steven Rostedt
On Mon, 4 Sep 2017 14:22:46 +0900 Sergey Senozhatsky wrote: > like I said in another email, printk-safe buffer > is per-CPU and is also used for actual printk-safe, hence it must be > used with local IRQs disabled when we "borrow" the buffer for pr_line > (disabled preemption is not enough due to

Re: [v7 2/5] mm, oom: cgroup-aware OOM killer

2017-09-05 Thread Michal Hocko
On Mon 04-09-17 15:21:05, Roman Gushchin wrote: [...] > diff --git a/mm/memcontrol.c b/mm/memcontrol.c > index a69d23082abf..97813c56163b 100644 > --- a/mm/memcontrol.c > +++ b/mm/memcontrol.c > @@ -2649,6 +2649,213 @@ static inline bool memcg_has_children(struct > mem_cgroup *memcg) > retur

Re: [PATCH] iio staging: tsl2x7x: clean up limit checks

2017-09-05 Thread Dan Carpenter
On Sun, Sep 03, 2017 at 10:12:46PM -0400, Brian Masney wrote: > On Sun, Sep 03, 2017 at 12:35:05PM +0100, Jonathan Cameron wrote: > > On Mon, 21 Aug 2017 13:11:03 +0300 > > Dan Carpenter wrote: > > > > > The second part of this patch is probably the most interesting. We > > > use "TSL2X7X_MAX_LU

[PATCH] RDMA/qedr: fix build error without ipv6

2017-09-05 Thread Arnd Bergmann
When CONFIG_IPV6 disabled, we run into a link error: drivers/infiniband/hw/qedr/qedr_iw_cm.o: In function `qedr_addr6_resolve.isra.3': qedr_iw_cm.c:(.text+0x4e0): undefined reference to `ip6_route_output_flags' The ipv6 handling code is obviously not needed here, so this adds a compile-time chec

[GIT PULL] arm64 updates for 4.14

2017-09-05 Thread Catalin Marinas
Hi Linus, Please pull the arm64 updates for 4.14 below. There is a minor conflict in arch/arm64/kernel/fpsimd.c, resolved to the changes introduced in this pull request (use local_bh_* instead of preempt_*). Thanks. The following changes since commit aae4e7a8bc44722fe70d58920a36916b1043195e:

[PATCH] clk: cdce925: remove redundant check for non-null parent_name

2017-09-05 Thread Colin King
From: Colin Ian King The check for a non-null parent_name is always true as there is an earlier check for a null parent_name that returns -ENODEV. Remove this redundant check and always set init.num_parents to 1. Detected by CoverityScan CID#1309477 ("Logically dead code") Signed-off-by: Colin

Re: [PATCH v2 05/18] firmware: arm_scmi: add initial support for performance protocol

2017-09-05 Thread Julien Thierry
Hi Sudeep, On 04/08/17 15:31, Sudeep Holla wrote: The performance protocol is intended for the performance management of group(s) of device(s) that run in the same performance domain. It includes even the CPUs. A performance domain is defined by a set of devices that always have to run at the sa

[PATCH] [RFC] clocksource: improve GENERIC_CLOCKEVENTS dependency

2017-09-05 Thread Arnd Bergmann
We regularly run into build errors when a clocksource driver selects CONFIG_TIMER_OF while CONFIG_GENERIC_CLOCKEVENTS is disabled: In file included from drivers/clocksource/timer-of.c:25:0: drivers/clocksource/timer-of.h:35:28: error: field 'clkevt' has incomplete type At the moment, three drive

[PATCH] ARM: make memzero optimization smarter

2017-09-05 Thread Arnd Bergmann
While testing with a gcc-8.0.0 snapshot, I ran into a harmless build warning: In file included from include/linux/string.h:18:0, ... from drivers/net/ethernet/hisilicon/hns/hns_ethtool.c:10: drivers/net/ethernet/hisilicon/hns/hns_ethtool.c: In function '__lb_othe

Re: [PATCH] asm-generic/io.h: remove unnecessary include of linux/vmalloc.h

2017-09-05 Thread Arnd Bergmann
On Tue, Sep 5, 2017 at 1:27 PM, Tobias Klauser wrote: > Including linux/vmalloc.h in asm-generic/io.h isn't necessary since none > of the definitions are used in the header itself. Remove the include in > order to avoid potential header dependency problems if other headers > rely on implict inclus

Re: [v7 5/5] mm, oom: cgroup v2 mount option to disable cgroup-aware OOM killer

2017-09-05 Thread Michal Hocko
On Tue 05-09-17 15:30:21, Roman Gushchin wrote: > On Tue, Sep 05, 2017 at 03:44:12PM +0200, Michal Hocko wrote: [...] > > Why is this an opt out rather than opt-in? IMHO the original oom logic > > should be preserved by default and specific workloads should opt in for > > the cgroup aware logic. Ch

Re: [patch 11/29] lockup_detector: Remove park_in_progress hackery

2017-09-05 Thread Don Zickus
On Mon, Sep 04, 2017 at 02:10:50PM +0200, Peter Zijlstra wrote: > On Mon, Sep 04, 2017 at 01:09:06PM +0200, Ulrich Obergfell wrote: > > > - A thread hogs CPU N (soft lockup) so that watchdog/N is unable to run. > > - A user re-configures 'watchdog_thresh' on the fly. The reconfiguration > > requ

Re: [PATCH] sound: soc: fsl: Do not set DAI sysclk when it is equal to system freq

2017-09-05 Thread Mark Brown
On Tue, Sep 05, 2017 at 10:19:05AM +0200, Łukasz Majewski wrote: > On 09/05/2017 09:52 AM, Nicolin Chen wrote: > > Can you elaborate why you set ipg clock as bclk? I don't remember SSI could > > derive bitclock from ipg clock. > Just to be clear: > What clock shall be set with: > struct snd_soc

[PATCH] [media] cobalt: remove redundant zero check on retval

2017-09-05 Thread Colin King
From: Colin Ian King The error handling paths all end up with retval being non-zero, so the check for retval being zero is always false and hence is redundant. Remove it. Detected by CoverityScan CID#1309479 ("Logically dead code") Signed-off-by: Colin Ian King --- drivers/media/pci/cobalt/co

Re: [PATCH] asm-generic/io.h: remove unnecessary include of linux/vmalloc.h

2017-09-05 Thread Tobias Klauser
On 2017-09-05 at 17:11:50 +0200, Arnd Bergmann wrote: > On Tue, Sep 5, 2017 at 1:27 PM, Tobias Klauser wrote: > > Including linux/vmalloc.h in asm-generic/io.h isn't necessary since none > > of the definitions are used in the header itself. Remove the include in > > order to avoid potential heade

[PATCH] mm: Fix mem_cgroup_oom_disable() call missing

2017-09-05 Thread Laurent Dufour
Seen while reading the code, in handle_mm_fault(), in the case arch_vma_access_permitted() is failing the call to mem_cgroup_oom_disable() is not made. To fix that, move the call to mem_cgroup_oom_enable() after calling arch_vma_access_permitted() as it should not have entered the memcg OOM. Fixe

Re: [PATCH] crypto: caam - properly set IV after {en,de}crypt

2017-09-05 Thread Horia Geantă
On 8/14/2017 10:59 AM, Gilad Ben-Yossef wrote: > Hi, > > On Thu, Jun 29, 2017 at 1:19 PM, Horia Geantă wrote: >> On 6/28/2017 4:42 PM, Horia Geantă wrote: >>> On 6/28/2017 4:27 PM, David Gstir wrote: Certain cipher modes like CTS expect the IV (req->info) of ablkcipher_request (or equiv

[PATCH 24/25 v2] net/cdc_ncm: Replace tasklet with softirq hrtimer

2017-09-05 Thread Sebastian Andrzej Siewior
From: Thomas Gleixner The bh tasklet is used in invoke the hrtimer (cdc_ncm_tx_timer_cb) in softirq context. This can be also achieved without the tasklet but with CLOCK_MONOTONIC_SOFT as hrtimer base. Signed-off-by: Thomas Gleixner Signed-off-by: Anna-Maria Gleixner Cc: Oliver Neukum Cc: Gre

Re: [patch 11/29] lockup_detector: Remove park_in_progress hackery

2017-09-05 Thread Thomas Gleixner
On Tue, 5 Sep 2017, Don Zickus wrote: > On Mon, Sep 04, 2017 at 02:10:50PM +0200, Peter Zijlstra wrote: > > On Mon, Sep 04, 2017 at 01:09:06PM +0200, Ulrich Obergfell wrote: > > > > > - A thread hogs CPU N (soft lockup) so that watchdog/N is unable to run. > > > - A user re-configures 'watchdog_t

[PATCH net] rds: Fix non-atomic operation on shared flag variable

2017-09-05 Thread Håkon Bugge
The bits in m_flags in struct rds_message are used for a plurality of reasons, and from different contexts. To avoid any missing updates to m_flags, use the atomic set_bit() instead of the non-atomic equivalent. Signed-off-by: Håkon Bugge Reviewed-by: Knut Omang Reviewed-by: Wei Lin Guay --- n

Re: [PATCH] mm: Fix mem_cgroup_oom_disable() call missing

2017-09-05 Thread Kirill A. Shutemov
On Tue, Sep 05, 2017 at 05:30:39PM +0200, Laurent Dufour wrote: > Seen while reading the code, in handle_mm_fault(), in the case > arch_vma_access_permitted() is failing the call to mem_cgroup_oom_disable() > is not made. > > To fix that, move the call to mem_cgroup_oom_enable() after calling > ar

[PATCH 23/25 v2] ALSA/dummy: Replace tasklet with softirq hrtimer

2017-09-05 Thread Sebastian Andrzej Siewior
From: Thomas Gleixner The tasklet is used to defer the execution of snd_pcm_period_elapsed() to the softirq context. Using the CLOCK_MONOTONIC_SOFT base invokes the timer callback in softirq context as well which renders the tasklet useless. Signed-off-by: Thomas Gleixner Signed-off-by: Anna-Ma

Re: [PATCH] mm: Fix mem_cgroup_oom_disable() call missing

2017-09-05 Thread Laurent Dufour
On 05/09/2017 17:46, Kirill A. Shutemov wrote: > On Tue, Sep 05, 2017 at 05:30:39PM +0200, Laurent Dufour wrote: >> Seen while reading the code, in handle_mm_fault(), in the case >> arch_vma_access_permitted() is failing the call to mem_cgroup_oom_disable() >> is not made. >> >> To fix that, move t

Re: [PATCH v2 05/18] firmware: arm_scmi: add initial support for performance protocol

2017-09-05 Thread Julien Thierry
On 05/09/17 16:04, Julien Thierry wrote: Hi Sudeep, On 04/08/17 15:31, Sudeep Holla wrote: The performance protocol is intended for the performance management of group(s) of device(s) that run in the same performance domain. It includes even the CPUs. A performance domain is defined by a set

Re: [PATCH v6] vfio: platform: reset: Add Broadcom FlexRM reset module

2017-09-05 Thread Alex Williamson
On Mon, 4 Sep 2017 15:20:11 +0530 Anup Patel wrote: > Sorry for delayed response... > > On Tue, Aug 29, 2017 at 7:39 PM, Konrad Rzeszutek Wilk > wrote: > > On Tue, Aug 29, 2017 at 09:34:46AM +0530, Anup Patel wrote: > >> This patch adds Broadcom FlexRM low-level reset for > >> VFIO platform.

Re: [PATCH] tracing: Fix clear of RECORDED_TGID flag when disabling trace event

2017-09-05 Thread Steven Rostedt
On Tue, 5 Sep 2017 13:36:46 +0800 Chunyu Hu wrote: > When disabling one trace event, the RECORDED_TGID flag in the event > file is not correctly cleared. It's clearing RECORDED_CMD flag when > it should clear RECORDED_TGID flag. Fix d914ba37("tracing: Add support > for recording tgid of tasks")

Re: [PATCH 23/25 v2] ALSA/dummy: Replace tasklet with softirq hrtimer

2017-09-05 Thread Takashi Iwai
On Tue, 05 Sep 2017 17:53:51 +0200, Sebastian Andrzej Siewior wrote: > > From: Thomas Gleixner > > The tasklet is used to defer the execution of snd_pcm_period_elapsed() to > the softirq context. Using the CLOCK_MONOTONIC_SOFT base invokes the timer > callback in softirq context as well which re

Re: [RFC][PATCH] perf: Rewrite enabled/running timekeeping

2017-09-05 Thread Peter Zijlstra
On Tue, Sep 05, 2017 at 03:06:26PM +0300, Alexey Budankov wrote: > [ 6614.226305] WARNING: CPU: 45 PID: 43385 at kernel/events/core.c:239 > event_function+0xb3/0xe0 I think I avoided that problem by not radically rewriting perf_event_read() but fixing it instead: https://git.kernel.org/pub/sc

Re: Changing FAT label of mounted file system

2017-09-05 Thread OGAWA Hirofumi
Pali Rohár writes: > Hello! Hi, > On most file system it is possible to change its label at anytime, when > mounted or unmounted. But FAT is such special file system on which is > label stored in two location, plus one is in directory structure (which > cannot be modified when file system is

Re: [PATCH 23/25 v2] ALSA/dummy: Replace tasklet with softirq hrtimer

2017-09-05 Thread Takashi Sakamoto
On Sep 6 2017 00:53, Sebastian Andrzej Siewior wrote: From: Thomas Gleixner The tasklet is used to defer the execution of snd_pcm_period_elapsed() to the softirq context. Using the CLOCK_MONOTONIC_SOFT base invokes the timer callback in softirq context as well which renders the tasklet useless.

Re: [PATCH v3 2/5] dt-bindings: input: Add document bindings for mtk-pmic-keys

2017-09-05 Thread Rob Herring
On Fri, Sep 1, 2017 at 9:16 PM, Chen Zhong wrote: > On Thu, 2017-08-31 at 14:52 -0500, Rob Herring wrote: >> On Fri, Aug 25, 2017 at 02:32:30PM +0800, Chen Zhong wrote: >> > This patch adds the device tree binding documentation for the MediaTek >> > pmic keys found on PMIC MT6397/MT6323. >> > >> >

Re: usb/midi: use-after-free in snd_rawmidi_dev_seq_free

2017-09-05 Thread Takashi Iwai
On Tue, 05 Sep 2017 13:12:14 +0200, Andrey Konovalov wrote: > > Hi! > > While working on adding USB fuzzing support to syzkaller, I got the > following crash. > > On commit 81a84ad3cb5711cec79f4dd53a4ce026b092c432 (4.13+). > > My .config is attached. I don't have a reproducer for this bug. > >

Re: [PATCH] net/ncsi: fix ncsi_vlan_rx_{add,kill}_vid references

2017-09-05 Thread David Miller
From: Arnd Bergmann Date: Tue, 5 Sep 2017 10:05:47 +0200 > We get a new link error in allmodconfig kernels after ftgmac100 > started using the ncsi helpers: > > ERROR: "ncsi_vlan_rx_kill_vid" [drivers/net/ethernet/faraday/ftgmac100.ko] > undefined! > ERROR: "ncsi_vlan_rx_add_vid" [drivers/net/

Re: [PATCH] soc: ti/knav_dma: include dmaengine header

2017-09-05 Thread David Miller
From: Arnd Bergmann Date: Tue, 5 Sep 2017 10:31:35 +0200 > A header file cleanup apparently caused a build regression > with one driver using the knav infrastructure: > > In file included from drivers/net/ethernet/ti/netcp_core.c:30:0: > include/linux/soc/ti/knav_dma.h:129:30: error: field 'dir

[PATCH 23/25 v3] ALSA/dummy: Replace tasklet with softirq hrtimer

2017-09-05 Thread Sebastian Andrzej Siewior
From: Thomas Gleixner The tasklet is used to defer the execution of snd_pcm_period_elapsed() to the softirq context. Using the CLOCK_MONOTONIC_SOFT base invokes the timer callback in softirq context as well which renders the tasklet useless. Signed-off-by: Thomas Gleixner Signed-off-by: Anna-Ma

Re: [HMM-v25 19/19] mm/hmm: add new helper to hotplug CDM memory region v3

2017-09-05 Thread Dan Williams
On Tue, Sep 5, 2017 at 6:50 AM, Jerome Glisse wrote: > On Tue, Sep 05, 2017 at 11:50:57AM +0800, Bob Liu wrote: >> On 2017/9/5 10:38, Jerome Glisse wrote: >> > On Tue, Sep 05, 2017 at 09:13:24AM +0800, Bob Liu wrote: >> >> On 2017/9/4 23:51, Jerome Glisse wrote: >> >>> On Mon, Sep 04, 2017 at 11:0

Re: [PATCH 10/13] sgi-gru: update to new mmu_notifier semantic

2017-09-05 Thread Dimitri Sivanich
Acked-by: Dimitri Sivanich On Thu, Aug 31, 2017 at 05:17:35PM -0400, jgli...@redhat.com wrote: > From: Jérôme Glisse > > Call to mmu_notifier_invalidate_page() are replaced by call to > mmu_notifier_invalidate_range() and thus call are bracketed by > call to mmu_notifier_invalidate_range_start(

[PATCH] staging: rtl8192u: fix incorrect mask when calculating TxPowerLevelCCK

2017-09-05 Thread Colin King
From: Colin Ian King The mask of 0xff and right shift of 8 bits on ret always results in a value of 0 for TxPowerLevelCCK. I believe this should be a mask of 0xff00, however I do not have the hardware at hand to test this out, so there is a distinct possibility I may be wrong on this. Detected

Re: [PATCH net] rds: Fix non-atomic operation on shared flag variable

2017-09-05 Thread Santosh Shilimkar
On 9/5/2017 8:42 AM, Håkon Bugge wrote: The bits in m_flags in struct rds_message are used for a plurality of reasons, and from different contexts. To avoid any missing updates to m_flags, use the atomic set_bit() instead of the non-atomic equivalent. Signed-off-by: Håkon Bugge Reviewed-by: Knu

Re: [RFC 0/2] backlight: pwm_bl: support linear brightness to human eye

2017-09-05 Thread Jingoo Han
On Tuesday, September 5, 2017 7:06 AM, Daniel Thompson wrote: > > On 04/09/17 16:35, Enric Balletbo i Serra wrote: > > Dear all, > > > > This patch series is a first RFC to know your opinion about implement > > support to create brightness levels tables dinamically. I tried to argue > > in every p

Re: [PATCH 2/2] tracing: Add support for critical section events

2017-09-05 Thread Joel Fernandes
On Mon, Sep 4, 2017 at 11:52 PM, Peter Zijlstra wrote: > On Mon, Sep 04, 2017 at 08:26:13PM -0700, Joel Fernandes wrote: > >> Apologies, I meant (without the "off"): >> >> subsystem: atomic_section >> events: >> irqs_disable >> irqs_enable >> preempt_disable >> preempt_enable >> >> and add

[PATCH 2/2] MIPS: jz4780: DTS: Probe the jz4740-rtc driver from devicetree

2017-09-05 Thread Mathieu Malaterre
The jz4740-rtc driver supports both jz4740 & jz4780, setup the compatible string to jz4780. Signed-off-by: Mathieu Malaterre --- arch/mips/boot/dts/ingenic/jz4780.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/mips/boot/dts/ingenic/jz4780.dtsi b/arch/mips/boot/dts/in

[PATCH 1/2] MIPS: Ci20: Enable RTC driver

2017-09-05 Thread Mathieu Malaterre
Update the Ci20's defconfig to enable the JZ4780's RTC driver. Signed-off-by: Mathieu Malaterre --- arch/mips/configs/ci20_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/configs/ci20_defconfig b/arch/mips/configs/ci20_defconfig index 99719cc4c137..2571045e14df 100644 -

Re: 915f3e3f76 ("mac80211_hwsim: Replace bogus hrtimer clockid"): BUG: kernel reboot-without-warning in test stage

2017-09-05 Thread Sebastian Andrzej Siewior
On 2017-09-05 09:12:40 [+0200], Thomas Gleixner wrote: > Sorry, no. That bisect is completely bogus. The commit in question merily > replaces the unsupported clockid with a valid one. The bisect is correct. It just has problems to express itself properly. So the table says: | WARNING:at_kernel/ti

[PATCH v2 00/11] mux/typec: Add USB / TypeC mux drivers and hook them up on some x86 systems

2017-09-05 Thread Hans de Goede
Hi All, Here is v2 of my USB / Type-C mux series, addressing various comments from the reviews of v1. See the per patch changelogs for details. For reference here the cover letter of v1: This series consists of 4 parts: 1) Core mux changes to add support for getting mux-controllers on non DT

[PATCH v2 01/11] mux: core: Add of_mux_control_get helper function

2017-09-05 Thread Hans de Goede
Currently the mux_control_get implementation only deals with getting mux controllers on DT platforms. This commit renames the current implementation to of_mux_control_get to reflect this and makes mux_control_get a wrapper around of_mux_control_get. This is a preparation patch for adding support f

[PATCH v2 04/11] usb: xhci: Add Intel cherrytrail extended cap / otg phy mux handling

2017-09-05 Thread Hans de Goede
The Intel cherrytrail xhci controller has an extended cap mmio-range which contains registers to control the muxing to the xhci (host mode) or the dwc3 (device mode) and vbus-detection for the otg usb-phy. Having a mux driver included in the xhci code (or under drivers/usb/host) is not desirable.

[PATCH v2 02/11] mux: core: Add support for getting a mux controller on a non DT platform

2017-09-05 Thread Hans de Goede
On non DT platforms we cannot get the mux_chip by pnode. Other subsystems (regulator, clock, pwm) have the same problem and solve this by allowing platform / board-setup code to add entries to a lookup table and then use this table to look things up. This commit adds support for getting a mux cont

[PATCH v2 03/11] mux: core: Add usb.h header with MUX_USB_* and and MUX_TYPEC_* state constants

2017-09-05 Thread Hans de Goede
Add MUX_USB_* and MUX_TYPEC_* state constant defines, which can be used by USB device/host, resp. Type-C polarity/role/altmode mux drivers and consumers to ensure that they agree on the meaning of the mux_control_select() state argument. Signed-off-by: Hans de Goede --- Changes in v2: -Start numb

[PATCH v2 06/11] mux: Add Pericom PI3USB30532 Type-C mux driver

2017-09-05 Thread Hans de Goede
Add a driver for the Pericom PI3USB30532 Type-C cross switch / mux chip found on some devices with a Type-C port. Signed-off-by: Hans de Goede --- Changes in v2: -Adjust for new MUX_TYPEC_foo state defines -Add MAINTAINERS entry -Various code-style fixes --- MAINTAINERS | 5 +++ d

[PATCH v2 10/11] staging: typec: fusb302: Hook up mux support using tcpc_gen_mux support

2017-09-05 Thread Hans de Goede
Add mux support to the fusb302 driver, call devm_tcpc_gen_mux_create() to let the generic tcpc_mux_dev code create a tcpc_mux_dev for us. Also document the mux-names used by the generic tcpc_mux_dev code in our devicetree bindings. Cc: Rob Herring Cc: Mark Rutland Cc: devicet...@vger.kernel.org

[PATCH v2 11/11] platform/x86: intel_cht_int33fe: Add mux mappings for the Type-C port

2017-09-05 Thread Hans de Goede
We need to add mappings for the mux subsys to be able to find the muxes for the fusb302 driver to be able to control the PI3USB30532 Type-C mux and the device/host mux integrated in the CHT SoC. Signed-off-by: Hans de Goede Acked-by: Andy Shevchenko --- drivers/platform/x86/Kconfig

[PATCH v2 09/11] staging: typec: Add Generic TCPC mux driver using the mux subsys

2017-09-05 Thread Hans de Goede
So far the mux functionality of the tcpm code has not been hooked up in any tcpc drivers. This commit adds a generic TCPC mux driver using the mux subsys, which tcpc drivers can use to provide mux functionality in cases where an external my is used. Signed-off-by: Hans de Goede --- drivers/stagi

Re: [PATCH] mm: Fix mem_cgroup_oom_disable() call missing

2017-09-05 Thread Michal Hocko
On Tue 05-09-17 17:30:39, Laurent Dufour wrote: > Seen while reading the code, in handle_mm_fault(), in the case > arch_vma_access_permitted() is failing the call to mem_cgroup_oom_disable() > is not made. > > To fix that, move the call to mem_cgroup_oom_enable() after calling > arch_vma_access_pe

[PATCH v2 08/11] staging: typec: tcpm: Set mux to device mode when configured as such

2017-09-05 Thread Hans de Goede
Setting the mux to TYPEC_MUX_NONE, TCPC_USB_SWITCH_DISCONNECT when the data-role is device is not correct. Plenty of devices support operating as USB device through a (separate) USB device controller. So this commit instead splits out TYPEC_MUX_USB into TYPEC_MUX_USB_HOST and TYPEC_MUX_USB_DEVICE

[PATCH v2 07/11] extcon: intel-int3496: Add support for controlling the USB-role mux

2017-09-05 Thread Hans de Goede
Cherry Trail SoCs have a built-in USB-role mux for switching between the host and device controllers, rather then using an external mux controller by a GPIO. There is a driver using the mux-subsys to control this mux, this commit adds support to the intel-int3496 driver to get a mux_controller han

Re: [PATCH] hwmon: (k10temp) Add support for family 17h

2017-09-05 Thread Guenter Roeck
On Tue, Sep 05, 2017 at 04:12:07PM +0200, Clemens Ladisch wrote: > Guenter Roeck wrote: > > On 09/04/2017 11:47 PM, Clemens Ladisch wrote: > >> Guenter Roeck wrote: > >>> Some of this is guesswork, but afaics it is working. No idea if there > >>> is a better way to determine the temperature offset.

[PATCH v2 05/11] mux: Add Intel Cherrytrail USB mux driver

2017-09-05 Thread Hans de Goede
Intel Cherrytrail SoCs have an internal USB mux for muxing the otg-port USB data lines between the xHCI host controller and the dwc3 gadget controller. On some Cherrytrail systems this mux is controlled through AML code reacting on a GPIO IRQ connected to the USB OTG id pin (through an _AIE ACPI me

Re: [PATCH 3.18 0/9] 3.18.70-stable review

2017-09-05 Thread Guenter Roeck
On Tue, Sep 05, 2017 at 09:09:34AM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 3.18.70 release. > There are 9 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know.

Re: [PATCH 4.4 00/16] 4.4.87-stable review

2017-09-05 Thread Guenter Roeck
On Tue, Sep 05, 2017 at 09:09:50AM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.87 release. > There are 16 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know.

Re: [PATCH 4.9 00/18] 4.9.48-stable review

2017-09-05 Thread Guenter Roeck
On Tue, Sep 05, 2017 at 09:11:08AM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.48 release. > There are 18 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know.

Re: [PATCH 4.12 00/27] 4.12.11-stable review

2017-09-05 Thread Guenter Roeck
On Tue, Sep 05, 2017 at 09:11:16AM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.12.11 release. > There are 27 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know

Re: [PATCH 0/2] Update TMDSEVM3530 support for omap3-evm

2017-09-05 Thread Tony Lindgren
* Derald D. Woods [170902 17:39]: > This patch set allows TMDSEVM3530(omap3-evm.dts) to boot using common > processor module data that is shared with 'omap3-evm-37xx.dts'. A new > common file for processor module data is introduced to help facilitate > the updated OMAP3530 support. Hey that's gre

[GIT PULL] dlm updates for 4.14

2017-09-05 Thread David Teigland
Hi Linus, Please pull dlm updates from tag: git://git.kernel.org/pub/scm/linux/kernel/git/teigland/linux-dlm.git dlm-4.14 This set includes a bunch of minor code cleanups that have accumulated, probably from code analyzers people like to run. There is one nice fix that avoids some socket leaks

[ANNOUNCE] Iproute2 for Linux 4.13

2017-09-05 Thread Stephen Hemminger
Update to iproute2 utility to support new features in Linux 4.13. This is a larger than usual release because of lots of updates for BPF and the new RDMA utility. Lots of cleanups and Coverity reported potential issues as well. Source: https://www.kernel.org/pub/linux/utils/net/iproute2/iproute

RE: [Patch v2 00/19] CIFS: Implement SMBDirect

2017-09-05 Thread Steve Wise
> I have put the patch v3 in the following location: > https://github.com/longlimsft/linux-next/tree/patch_v3 > > I will be sending it out soon. Please give it a try. > Hey Long, how do I request a CIFS RDMA mount from the Linux client? Is there a mount.cifs option? If so, where can I get the

[PATCH][ext4-next] ext4: fix null pointer dereference on sbi

2017-09-05 Thread Colin King
From: Colin Ian King In the case of a kzalloc failure when allocating sbi we end up with a null pointer dereference on sbi when assigning sbi->s_daxdev. Fix this by moving the assignment of sbi->s_daxdev to after the null pointer check of sbi. Detected by CoverityScan CID#1455379 ("Dereference b

[PATCH v2] x86/perf: Enable free running pebs for REGS_USER/INTR

2017-09-05 Thread Andi Kleen
From: Andi Kleen Currently free running PEBS is disabled when user or interrupt registers are requested. Most of the registers are actually available in the PEBS record and can be supported. So we just need to check for the supported registers and then allow it: it is all except for the segment

Re: [PATCH v3 3/5] dt-bindings: sdhci-omap: Add bindings for the sdhci-omap controller

2017-09-05 Thread Tony Lindgren
* Kishon Vijay Abraham I [170905 01:53]: > Hi, > > On Tuesday 29 August 2017 11:09 PM, Tony Lindgren wrote: > > * Rob Herring [170829 10:09]: > >> On Tue, Aug 29, 2017 at 06:58:23AM -0700, Tony Lindgren wrote: > >>> * Sebastian Reichel [170829 04:51]: > I would expect the conversion to loo

Re: [v4,0/3] iommu/ipmmu-vmsa: r8a7796 support V4

2017-09-05 Thread Oleksandr
Hi, Magnus, maintainers, all. On 19.06.17 14:04, Magnus Damm wrote: iommu/ipmmu-vmsa: r8a7796 support V4 [PATCH v4 1/3] iommu/ipmmu-vmsa: Add r8a7796 DT binding [PATCH v4 2/3] iommu/ipmmu-vmsa: Increase maximum micro-TLBS to 48 [PATCH v4 3/3] iommu/ipmmu-vmsa: Hook up r8a7796 DT matching code

Re: [PATCH v2 05/18] firmware: arm_scmi: add initial support for performance protocol

2017-09-05 Thread Sudeep Holla
Hi Julien, On 05/09/17 16:56, Julien Thierry wrote: > > > On 05/09/17 16:04, Julien Thierry wrote: [...] >> >> This seems odd, shouldn't it be the following? >> le64_to_cpu(attr->stats_addr_low | (__le64)attr->stats_addr_high << 32) >> > > After further reflexion, I think you are right. If I

<    1   2   3   4   5   6   7   8   9   >