Re: [RFC][PATCH] sched: Have do_idle() call __schedule() without enabling preemption

2017-04-12 Thread Steven Rostedt
[ tl;dr; version ] Peter, In order to have synchronize_rcu_tasks() work, the idle task can never be preempted. There's a very small window in schedule_preempt_disable() that enables preemption, and when this happens, it breaks synchronize_rcu_tasks() (see above email for details). Is there any re

Re: [PATCH v2] fpga: allow to compile-test Altera FPGA bridge drivers

2017-04-12 Thread Alan Tull
On Wed, Apr 12, 2017 at 2:20 AM, Tobias Klauser wrote: > Add COMPILE_TEST to the Kconfig entry for the Altera SoCFPGA FPGA > Bridge. The Altera FPGA Freeze Bridge can also be used on Altera PEIe > FPGAs, so the driver shouldn't depend on ARCH_SOCFPGA in the first place. > This allows test-compilin

Re: [PATCH v2 06/17] mm: doc comment for scary spot in write_one_page

2017-04-12 Thread Matthew Wilcox
On Wed, Apr 12, 2017 at 09:01:34AM -0400, Jeff Layton wrote: > On Wed, 2017-04-12 at 08:06 -0400, Jeff Layton wrote: > > Not sure what to do here just yet. > > > > Signed-off-by: Jeff Layton > > --- > > mm/page-writeback.c | 6 ++ > > 1 file changed, 6 insertions(+) > > > > diff --git a/mm/

Re: [PATCH 1/4] Revert "tty_port: register tty ports with serdev bus"

2017-04-12 Thread Johan Hovold
On Tue, Apr 11, 2017 at 08:53:32PM -0500, Rob Herring wrote: > On Tue, Apr 11, 2017 at 12:07 PM, Johan Hovold wrote: > > This reverts commit 8ee3fde047589dc9c201251f07d0ca1dc776feca. > > > > The new serdev bus hooked into the tty layer in > > tty_port_register_device() by registering a serdev cont

Re: [v2] PCI: Add an option to control probing of VFs before enabling SR-IOV

2017-04-12 Thread Bodong Wang
On 4/11/2017 4:12 PM, Bjorn Helgaas wrote: Hi Bodong, On Wed, Mar 22, 2017 at 05:53:58PM +0200, bod...@mellanox.com wrote: From: Bodong Wang Sometimes it is not desirable to probe the virtual functions after SRIOV is enabled. This can save host side resource usage by VF instances which would

[PATCH] x86/mm: fix dump pagetables for 4 levels of page tables

2017-04-12 Thread Juergen Gross
Commit fdd3d8ce0ea62 ("x86/dump_pagetables: Add support for 5-level paging") introduced an error for dumping with only 4 levels by setting PGD_LEVEL_MULT to a wrong value. This is leading to e.g. addresses printed as "(null)" for ranges: x86/mm: Found insecure W+X mapping at address (null)/(null)

Re: iov_iter_pipe warning.

2017-04-12 Thread Dave Jones
On Wed, Apr 12, 2017 at 03:58:42AM +0100, Al Viro wrote: > On Tue, Apr 11, 2017 at 10:29:11PM -0400, Dave Jones wrote: > > On Wed, Apr 12, 2017 at 02:15:32AM +0100, Al Viro wrote: > > > On Tue, Apr 11, 2017 at 08:58:53PM -0400, Dave Jones wrote: > > > > [ 462.696557] in->f_op = a02df

Re: [PATCH v2 01/17] mm: drop "wait" parameter from write_one_page

2017-04-12 Thread Jeff Layton
On Wed, 2017-04-12 at 07:27 -0700, Matthew Wilcox wrote: > On Wed, Apr 12, 2017 at 08:05:58AM -0400, Jeff Layton wrote: > > The callers all set it to 1. Also, make it clear that this function will > > not set any sort of AS_* error, and that the caller must do so if > > necessary. No existing calle

Re: [PATCH v6] kvm: better MWAIT emulation for guests

2017-04-12 Thread Jim Mattson
Actually, we have rejected commit 87c00572ba05aa8c ("kvm: x86: emulate monitor and mwait instructions as nop"), so when we intercept MONITOR/MWAIT, we synthesize #UD. Perhaps it is this difference from vanilla kvm that motivates the following idea... Since we're still not going to report MONITOR s

[PATCH] Save current timestamp while moving oops message to nvram

2017-04-12 Thread Ankit Kumar
Currently on panic or Oops, kernel saves the last few bytes from dmesg buffer to nvram. Usually kdump does capture kernel memory and provide dmesg logs as well. But in some cases where kdump fails to capture vmcore, the dmesg buffer stored in nvram/pstore turns out to be very helpful in analyzing r

Re: [RFC v3 0/5] Add capacity capping support to the CPU controller

2017-04-12 Thread Peter Zijlstra
On Wed, Apr 12, 2017 at 02:27:41PM +0100, Patrick Bellasi wrote: > On 12-Apr 14:48, Peter Zijlstra wrote: > > On Tue, Apr 11, 2017 at 06:58:33PM +0100, Patrick Bellasi wrote: > > > > illustrated per your above points in that it affects both, while in > > > > fact it actually modifies anothe

Re: [PATCH] selinux: add selinux_is_enforced() function

2017-04-12 Thread Stephen Smalley
On Wed, 2017-04-12 at 15:30 +0200, Sebastien Buisson wrote: > 2017-04-12 13:55 GMT+02:00 Paul Moore : > > As currently written this code isn't something we would want to > > merge > > upstream for two important reasons: > > > > * No clear user of this functionality.  There needs to be a well > > d

Re: [PATCH v5 1/4] gpio: mvebu: Add limited PWM support

2017-04-12 Thread Thomas Petazzoni
Hello, Sorry for the late feedback about this. On Sun, 9 Apr 2017 20:09:27 +0200, Ralph Sennhauser wrote: > + gpio1: gpio@18140 { > + compatible = "marvell,armada-370-xp-gpio"; > + reg = <0x18140 0x40>, <0x181c8 0x08>; One issue I see is that

[RFC PATCH linux 0/2] net sched actions: access to uninitialized data and error handling

2017-04-12 Thread Wolfgang Bumiller
Commit 1045ba77a ("net sched actions: Add support for user cookies") added code to net/sched/act_api.c's tcf_action_init_1 using the `tb` nlattr array unconditionally, while it was otherwise used as well as initialized only when `name == NULL`: if (name == NULL) { err = nla

[PATCH linux 1/2] net sched actions: fix access to uninitialized data

2017-04-12 Thread Wolfgang Bumiller
Signed-off-by: Wolfgang Bumiller --- net/sched/act_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/sched/act_api.c b/net/sched/act_api.c index b70aa57319ea..8cc883c063f0 100644 --- a/net/sched/act_api.c +++ b/net/sched/act_api.c @@ -604,7 +604,7 @@ struct tc_action *

[PATCH linux 2/2] net sched actions: fix refcount decrement on error

2017-04-12 Thread Wolfgang Bumiller
If memory allocation for nla_memdup_cookie() fails module_put has to be guarded by the same condition as it was before the TCA_ACT_COOKIE has been added as stated in the comment afterwards: /* module count goes up only when brand new policy is created * if it exists and is only bound to in a_o->i

Re: [PATCH v3 1/3] usb: udc: allow adding and removing the same gadget device

2017-04-12 Thread Alan Stern
On Wed, 12 Apr 2017, Felipe Balbi wrote: > >> Maybe... But I can't shake the feeling that Greg KH would strongly > >> disagree. Hasn't he said, many times in the past, that any dynamically > >> allocated device structure _must_ have a real release routine? > >> usb_udc_nop_release() doesn't

Re: [PATCH v2 03/17] buffer: use mapping_set_error instead of setting the flag

2017-04-12 Thread Matthew Wilcox
On Wed, Apr 12, 2017 at 08:06:00AM -0400, Jeff Layton wrote: > Signed-off-by: Jeff Layton Reviewed-by: Matthew Wilcox

Re: [PATCH v2 02/17] mm: fix mapping_set_error call in me_pagecache_dirty

2017-04-12 Thread Matthew Wilcox
On Wed, Apr 12, 2017 at 08:05:59AM -0400, Jeff Layton wrote: > The error code should be negative. Since this ends up in the default > case anyway, this is harmless, but it's less confusing to negate it. > Also, later patches will require a negative error code here. > > Signed-off-by: Jeff Layton

Re: [PATCH v2 01/17] mm: drop "wait" parameter from write_one_page

2017-04-12 Thread Matthew Wilcox
On Wed, Apr 12, 2017 at 08:05:58AM -0400, Jeff Layton wrote: > The callers all set it to 1. Also, make it clear that this function will > not set any sort of AS_* error, and that the caller must do so if > necessary. No existing caller uses this on normal files, so none of them > need it. So ... a

Re: [PATCH v4 0/5] perf report: Show branch type

2017-04-12 Thread Jiri Olsa
On Wed, Apr 12, 2017 at 08:25:34PM +0800, Jin, Yao wrote: SNIP > > # Overhead Command Source Shared Object Source Symbol > > Target SymbolBasic Block Cycles > > # ... > > .

Re: [RFC 5/9] sched: cpufreq: remove smp_processor_id() in remote paths

2017-04-12 Thread Viresh Kumar
On 11-04-17, 16:00, Rafael J. Wysocki wrote: > On Tue, Apr 11, 2017 at 12:35 PM, Viresh Kumar > wrote: > > On 29-03-17, 23:28, Rafael J. Wysocki wrote: > >> On Thursday, March 09, 2017 05:15:15 PM Viresh Kumar wrote: > >> > @@ -216,7 +216,7 @@ static void sugov_update_single(struct > >> > update

Re: [PATCH V4 0/9] PM / Domains: Implement domain performance states

2017-04-12 Thread Viresh Kumar
On 20-03-17, 15:02, Viresh Kumar wrote: > Hi, > > The main feedback I got for the V3 series came from Kevin, who suggested > that we should reuse OPP tables for genpd devices as well, instead of > creating a new table type. And that's what this version is trying to do. > > Some platforms have the

Re: [PATCH net-next] net: dsa: add CONFIG_NET_DSA_LEGACY

2017-04-12 Thread Vivien Didelot
Hi Florian, Florian Fainelli writes: > On 04/11/2017 01:52 PM, Vivien Didelot wrote: >> This patch moves as is the legacy DSA code from dsa.c to legacy.c, >> except the few shared symbols which remain in dsa.c. >> >> Compile legacy.o only if a new CONFIG_NET_DSA_LEGACY symbol is enabled, >> whi

Re: [PATCH v2 0/3] of: Make of_match_node() an inline stub for CONFIG_OF=n

2017-04-12 Thread David Miller
From: Florian Fainelli Date: Tue, 11 Apr 2017 21:41:53 -0700 > Hi all, > > This patch series makes of_match_node() an inline stub for CONFIG_OF=n. kbuild > reported two build errors which are fixed as preriquisite patches. > > This is based on Linus' master, not sure which tree would merge this

Re: There is a Tasks RCU stall warning

2017-04-12 Thread Paul E. McKenney
On Wed, Apr 12, 2017 at 09:18:21AM -0400, Steven Rostedt wrote: > On Tue, 11 Apr 2017 20:23:07 -0700 > "Paul E. McKenney" wrote: > > > But another question... > > > > Suppose someone traced or probed or whatever a call to (say) > > cond_resched_rcu_qs(). Wouldn't that put the call to this > > f

Re: [PATCH net-next v1 1/1] L2TP device MTU setup - tunnel socket needs a lock

2017-04-12 Thread David Miller
From: "R. Parameswaran" Date: Tue, 11 Apr 2017 20:14:37 -0700 (PDT) > > The MTU overhead calculation in L2TP device set-up > merged via commit b784e7ebfce8cfb16c6f95e14e8532d0768ab7ff > needs to be adjusted to lock the tunnel socket while > referencing the sub-data structures to derive the > soc

Re: [PATCH v3] xen,input: add xen-kbdfront module parameter for setting resolution

2017-04-12 Thread Oleksandr Andrushchenko
Hi, Juergen! On 04/11/2017 03:30 PM, Juergen Gross wrote: Add a parameter for setting the resolution of xen-kbdfront in order to be able to cope with a (virtual) frame buffer of arbitrary resolution. While at it remove the pointless second reading of parameters from Xenstore in the device conn

[PATCH] snic: fix spelling mistake: "Cann't" -> "Cannot"

2017-04-12 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in SNIC_ERR error message text, one cannot have "Cann't". Signed-off-by: Colin Ian King --- drivers/scsi/snic/snic_debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/snic/snic_debugfs.c b/drivers/scsi/

Re: [PATCH] mmc: sdhci-cadence: add parsing sdhci properties

2017-04-12 Thread Ulf Hansson
On 11 April 2017 at 13:13, Piotr Sroka wrote: > Add calling sdhci_get_of_property function to parse sdhci properties. > > Signed-off-by: Piotr Sroka Thanks, applied for next! Kind regards Uffe > --- > drivers/mmc/host/sdhci-cadence.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/

[PATCH 3/3] arm64: kconfig: allow support for memory failure handling

2017-04-12 Thread Punit Agrawal
From: "Jonathan (Zhixiong) Zhang" Declare ARCH_SUPPORTS_MEMORY_FAILURE, as arm64 does support memory failure recovery attempt. Signed-off-by: Jonathan (Zhixiong) Zhang Signed-off-by: Tyler Baicar (Dropped changes to ACPI APEI Kconfig and updated commit log) Signed-off-by: Punit Agrawal --- a

[PATCH 2/3] arm64: hwpoison: add VM_FAULT_HWPOISON[_LARGE] handling

2017-04-12 Thread Punit Agrawal
From: "Jonathan (Zhixiong) Zhang" Add VM_FAULT_HWPOISON[_LARGE] handling to the arm64 page fault handler. Handling of VM_FAULT_HWPOISON[_LARGE] is very similar to VM_FAULT_OOM, the only difference is that a different si_code (BUS_MCEERR_AR) is passed to user space and si_addr_lsb field is initial

[PATCH 1/3] arm64: hugetlb: Fix huge_pte_offset to return poisoned page table entries

2017-04-12 Thread Punit Agrawal
When memory failure is enabled, a poisoned hugepage pte is marked as a swap entry. huge_pte_offset() does not return the poisoned page table entries when it encounters PUD/PMD hugepages. This behaviour of huge_pte_offset() leads to error such as below when munmap is called on poisoned hugepages.

[PATCH 0/3] arm64: Add support for handling memory corruption

2017-04-12 Thread Punit Agrawal
Hi, With support for contiguous hugepages being turned off[0], some of the problems arising from swap entries go away[1]. This simplifies the changes needed to enable memory corruption handling for arm64 (done in this seris). In this series, we updates huge_pte_offset() to correctly deal with swa

[PATCH] [media] xc5000: fix spelling mistake: "calibration"

2017-04-12 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake on calibration, make Self lowercase and re-join multiple lined printk since checkpatch allows this coding style. Signed-off-by: Colin Ian King --- drivers/media/tuners/xc5000.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --

[PATCH v3 2/4] net: dsa: add new DSA switch driver for the SMSC-LAN9303

2017-04-12 Thread Juergen Borleis
The SMSC/Microchip LAN9303 is an ethernet switch device with one CPU port and two external ethernet ports with built-in phys. This driver uses the DSA framework, but is currently only capable of separating the two external ports. There is no offload support yet. Signed-off-by: Juergen Borleis Re

[PATCH v3 1/4] net: dsa: add support for the SMSC-LAN9303 tagging format

2017-04-12 Thread Juergen Borleis
To define the outgoing port and to discover the incoming port a regular VLAN tag is used by the LAN9303. But its VID meaning is 'special'. This tag handler/filter depends on some hardware features which must be enabled in the device to provide and make use of this special VLAN tag to control the d

[PATCH v3 4/4] net: dsa: LAN9303: add MDIO managed mode support

2017-04-12 Thread Juergen Borleis
When the LAN9303 device is in MDIO manged mode, all register accesses must be done via MDIO. Please note: this code is compile time tested only due to the absence of such configured hardware. It is based on a patch from Stefan Roese from 2014. Signed-off-by: Juergen Borleis Reviewed-by: Andrew L

[PATCHv4] net: dsa: add SMSC/Microchip LAN9303 three port ethernet switch driver

2017-04-12 Thread Juergen Borleis
The LAN9303 is a three port 10/100 ethernet switch with integrated phys for the two external ethernet ports. The third port is an RMII/MII interface to a host master network interface (e.g. fixed link). While the LAN9303 device itself supports offload packet processing, this driver does not make u

[PATCH v3 3/4] net: dsa: LAN9303: add I2C managed mode support

2017-04-12 Thread Juergen Borleis
In this mode the switch device and the internal phys will be managed via I2C interface. The MDIO interface is still supported, but for the (emulated) CPU port only. Signed-off-by: Juergen Borleis Reviewed-by: Andrew Lunn CC: devicet...@vger.kernel.org CC: robh...@kernel.org CC: mark.rutl...@arm.

Re: [PATCH] Revert "arm64: Increase the max granular size"

2017-04-12 Thread Chalamarla, Tirumalesh
On 4/11/17, 10:13 PM, "linux-arm-kernel on behalf of Imran Khan" wrote: On 4/7/2017 7:36 AM, Ganesh Mahendran wrote: > 2017-04-06 23:58 GMT+08:00 Catalin Marinas : >> On Thu, Apr 06, 2017 at 12:52:13PM +0530, Imran Khan wrote: >>> On 4/5/2017 10:13 AM, Imran Khan wrote: >>>

Re: [RFC v3 0/5] Add capacity capping support to the CPU controller

2017-04-12 Thread Patrick Bellasi
On 12-Apr 14:10, Peter Zijlstra wrote: > Let me reply in parts as I read this.. easy things first :-) > > On Tue, Apr 11, 2017 at 06:58:33PM +0100, Patrick Bellasi wrote: > > On 10-Apr 09:36, Peter Zijlstra wrote: > > > > 4) they have muddled semantics, because while its presented as a task > >

Re: [PATCH] selinux: add selinux_is_enforced() function

2017-04-12 Thread Stephen Smalley
On Wed, 2017-04-12 at 15:30 +0200, Sebastien Buisson wrote: > 2017-04-12 13:55 GMT+02:00 Paul Moore : > > As currently written this code isn't something we would want to > > merge > > upstream for two important reasons: > > > > * No abstraction layer at the LSM interface.  The core kernel code > >

Re: [PATCH] ALSA: line6: constify snd_kcontrol_new structures

2017-04-12 Thread Takashi Sakamoto
Hi, On Apr 12 2017 22:10, Bhumika Goyal wrote: Declare snd_kcontrol_new strcutures as const as they are only passed as an argument to the function snd_ctl_new1. This argument is of type const, so snd_kcontrol_new structures having this property can be made const too. Done using Coccinelle: @r d

[PATCH] selftests/timers: fix spelling mistake: "Asynchronous"

2017-04-12 Thread Colin King
From: Colin Ian King trivial fix to spelling mistake in printed message. Signed-off-by: Colin Ian King --- tools/testing/selftests/timers/clocksource-switch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/timers/clocksource-switch.c b/tools/testin

Re: [PATCH 11/24] uswsusp: Disable when the kernel is locked down

2017-04-12 Thread joeyli
On Sat, Apr 08, 2017 at 05:28:15AM +0200, poma wrote: > On 06.04.2017 22:25, Jiri Kosina wrote: > > On Thu, 6 Apr 2017, Rafael J. Wysocki wrote: > > > > Your swap partition may be located on an NVDIMM or be encrypted. > > An NVDIMM should be considered the same as any other persisten

Re: [PATCH 07/12] fs: btrfs: Use ktime_get_real_ts for root ctime

2017-04-12 Thread David Sterba
On Fri, Apr 07, 2017 at 05:57:05PM -0700, Deepa Dinamani wrote: > btrfs_root_item maintains the ctime for root updates. > This is not part of vfs_inode. > > Since current_time() uses struct inode* as an argument > as Linus suggested, this cannot be used to update root > times unless, we modify the

Re: [PATCH] ALSA: usb-audio: constify snd_kcontrol_new structures

2017-04-12 Thread Takashi Iwai
On Wed, 12 Apr 2017 15:08:06 +0200, Bhumika Goyal wrote: > > Declare snd_kcontrol_new strcutures as const as they are only passed as > an argument to the function snd_ctl_new1. This argument is of type const, > so snd_kcontrol_new structures having this property can be made const too. > Done using

Re: [PATCH] ALSA: line6: constify snd_kcontrol_new structures

2017-04-12 Thread Takashi Iwai
On Wed, 12 Apr 2017 15:10:47 +0200, Bhumika Goyal wrote: > > Declare snd_kcontrol_new strcutures as const as they are only passed as > an argument to the function snd_ctl_new1. This argument is of type const, > so snd_kcontrol_new structures having this property can be made const too. > Done using

Re: [PATCH V14 02/10] ras: acpi/apei: cper: generic error data entry v3 per ACPI 6.1

2017-04-12 Thread Borislav Petkov
> Subject: [PATCH V14 02/10] ras: acpi/apei: cper: generic error data entry v3 > per ACPI 6.1 Use a verb in your patch subjects: "Add support for ..." or so. On Tue, Mar 28, 2017 at 01:30:32PM -0600, Tyler Baicar wrote: > Currently when a RAS error is reported it is not timestamped. What is a R

Re: [PATCH V2] clk: hi6220: Add the hi655x's pmic clock

2017-04-12 Thread Lee Jones
On Wed, 12 Apr 2017, Daniel Lezcano wrote: > On 12/04/2017 10:00, Lee Jones wrote: > > On Tue, 11 Apr 2017, Daniel Lezcano wrote: > > > >> On Tue, Apr 11, 2017 at 03:06:13PM +0100, Lee Jones wrote: > >>> On Sat, 08 Apr 2017, Daniel Lezcano wrote: > >>> > The hi655x multi function device is a

Re: [RFC v3 0/5] Add capacity capping support to the CPU controller

2017-04-12 Thread Patrick Bellasi
On 12-Apr 14:15, Peter Zijlstra wrote: > On Tue, Apr 11, 2017 at 06:58:33PM +0100, Patrick Bellasi wrote: > > We should consider also that at the CPUFreq side we already expose > > knobs like scaling_{min,max}_freq which are much more platform > > dependant than capacity. > > So I've always object

Re: [PATCH 2/4] thp: fix MADV_DONTNEED vs. numa balancing race

2017-04-12 Thread Vlastimil Babka
On 03/02/2017 04:10 PM, Kirill A. Shutemov wrote: > In case prot_numa, we are under down_read(mmap_sem). It's critical > to not clear pmd intermittently to avoid race with MADV_DONTNEED > which is also under down_read(mmap_sem): > > CPU0: CPU1: >

Re: [PATCH v2 3/7] includes: dt-bindings: Rename STM32F429 pinctrl DT bindings

2017-04-12 Thread Alexandre Torgue
Hi Rob, On 04/10/2017 10:27 PM, Rob Herring wrote: On Fri, Apr 07, 2017 at 02:43:00PM +0200, Alexandre TORGUE wrote: STM32F4 MCU series is composed of several SOC (STM32F429, STM32F469, ...). Most of muxing definition are identical. So to avoid to duplicate bindings definition, this patch creat

Re: [v3, 1/4] powernv: Move CPU-Offline idle state invocation from smp.c to idle.c

2017-04-12 Thread Michael Ellerman
On Wed, 2017-03-22 at 15:04:14 UTC, "Gautham R. Shenoy" wrote: > From: "Gautham R. Shenoy" > > Move the piece of code in powernv/smp.c::pnv_smp_cpu_kill_self() which > transitions the CPU to the deepest available platform idle state to a > new function named pnv_cpu_offline() in powernv/idle.c. T

Re: [PATCH] selinux: add selinux_is_enforced() function

2017-04-12 Thread Sebastien Buisson
2017-04-12 13:55 GMT+02:00 Paul Moore : > As currently written this code isn't something we would want to merge > upstream for two important reasons: > > * No clear user of this functionality. There needs to be a well > defined user of this functionality in the kernel. The use case for this new f

Re: [PATCH 03/16] mfd: madera: Register map tables for Cirrus Logic CS47L35

2017-04-12 Thread Lee Jones
On Wed, 05 Apr 2017, Richard Fitzgerald wrote: > Regmap configuration tables for Cirrus Logic CS47L35 codecs. > > Signed-off-by: Piotr Stankiewicz > Signed-off-by: Richard Fitzgerald > Signed-off-by: Charles Keepax > --- > drivers/mfd/Kconfig |6 + > drivers/mfd/Makefile

Re: [PATCH] selinux: add selinux_is_enforced() function

2017-04-12 Thread Sebastien Buisson
2017-04-12 13:55 GMT+02:00 Paul Moore : > As currently written this code isn't something we would want to merge > upstream for two important reasons: > > * No abstraction layer at the LSM interface. The core kernel code > should not call directly into any specific LSM, all interaction should > go

Re: [PATCH v2 2/2] dt-bindings: document: add firefly-rk3399 board support

2017-04-12 Thread Heiko Stuebner
Hi Kever, Am Mittwoch, 5. April 2017, 17:33:20 CEST schrieb Kever Yang: > Use "firefly,firefly-rk3399" compatible string for firefly-rk3399 board. > > Signed-off-by: Kever Yang you forgot to send the binding in your v3 series, so I've applied this one for v4.13 with Rob's Ack. Heiko

Re: [PATCH 00/16] Intel FPGA Device Drivers

2017-04-12 Thread Jerome Glisse
On Tue, Apr 11, 2017 at 12:38:10PM -0700, Luebbers, Enno wrote: > Hi Jerome, > > On Thu, Apr 06, 2017 at 04:27:00PM -0400, Jerome Glisse wrote: > > > Do we have an open source toolchain to generate the FPGA configuration > > (bitstream) ? As it is required for the GPU sub-system that any driver >

Re: [PATCH v3] arm64: dts: rk3399: add support for firefly-rk3399 board

2017-04-12 Thread Heiko Stuebner
Hi Kever, Am Montag, 10. April 2017, 11:50:13 CEST schrieb Kever Yang: > Firefly-rk3399 is a bord from T-Firefly, you can find detail about > it here: > http://en.t-firefly.com/en/firenow/Firefly_RK3399/ > > This patch add basic node for the board and make it able to bring > up. > > Peripheral w

Re: [RFC v3 0/5] Add capacity capping support to the CPU controller

2017-04-12 Thread Patrick Bellasi
On 12-Apr 14:48, Peter Zijlstra wrote: > On Tue, Apr 11, 2017 at 06:58:33PM +0100, Patrick Bellasi wrote: > > > illustrated per your above points in that it affects both, while in > > > fact it actually modifies another metric, namely util_avg. > > > > I don't see it modifying in any direc

Re: [PATCH v2 2/7] Documentation: dt: Remove bindings for STM32 pinctrl

2017-04-12 Thread Alexandre Torgue
Hi Rob On 04/10/2017 10:20 PM, Rob Herring wrote: On Fri, Apr 07, 2017 at 02:42:59PM +0200, Alexandre TORGUE wrote: Remove "ngpios" bindings definition as it is no more used in stm32 pinctrl driver. I read the subject as "rm Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.txt". You

Re: [RFC v3 0/5] Add capacity capping support to the CPU controller

2017-04-12 Thread Patrick Bellasi
On 12-Apr 14:22, Peter Zijlstra wrote: > On Tue, Apr 11, 2017 at 06:58:33PM +0100, Patrick Bellasi wrote: > > Sorry, I don't get instead what are the "confusing nesting properties" > > you are referring to? > > If a parent group sets min=.2 and max=.8, what are the constraints on > its child group

[PATCH v6] lightnvm: pblk

2017-04-12 Thread Javier González
Hi Matias, A last spin to fix a regression that I introduced yesterday on v4. This should be the one. Thanks, Javier Changes since v5: * Fix regression on the erase scheduler introduced on v4 Changes since v4: * Rebase on top of Matias' for-4.12/core * Fix type implicit conversions reported by

Re: [BUG nohz]: wrong user and system time accounting

2017-04-12 Thread Frederic Weisbecker
On Tue, Apr 11, 2017 at 04:22:48PM +0200, Thomas Gleixner wrote: > On Thu, 30 Mar 2017, Wanpeng Li wrote: > > diff --git a/kernel/sched/cputime.c b/kernel/sched/cputime.c > > index f3778e2b..f1ee393 100644 > > --- a/kernel/sched/cputime.c > > +++ b/kernel/sched/cputime.c > > @@ -676,18 +676,21 @@ v

Re: There is a Tasks RCU stall warning

2017-04-12 Thread Steven Rostedt
On Tue, 11 Apr 2017 20:23:07 -0700 "Paul E. McKenney" wrote: > But another question... > > Suppose someone traced or probed or whatever a call to (say) > cond_resched_rcu_qs(). Wouldn't that put the call to this > function in the trampoline itself? Of course, if this happened, > life would be

Re: [PATCH] x86, kvm: Handle PFNs outside of kernel reach when touching GPTEs

2017-04-12 Thread Sironi, Filippo
Thanks for taking the time and sorry for the delay. > On 6. Apr 2017, at 16:22, Radim Krčmář wrote: > > 2017-04-05 15:07+0200, Filippo Sironi: >> cmpxchg_gpte() calls get_user_pages_fast() to retrieve the number of >> pages and the respective struct pages for mapping in the kernel virtual >> add

Re: patch to candidate for stable kernel 4.10

2017-04-12 Thread Greg KH
On Tue, Apr 11, 2017 at 03:25:32PM -0400, Anna Schumaker wrote: > Sounds good to me! Sorry that my initial pull request didn't have > "cc: stable" added to it... Not a problem, now queued up, thanks. greg k-h

[PATCH] ALSA: line6: constify snd_kcontrol_new structures

2017-04-12 Thread Bhumika Goyal
Declare snd_kcontrol_new strcutures as const as they are only passed as an argument to the function snd_ctl_new1. This argument is of type const, so snd_kcontrol_new structures having this property can be made const too. Done using Coccinelle: @r disable optional_qualifier@ identifier x; position

Re: [PATCH] sched/deadline: Throttle a constrained task activated if overflow

2017-04-12 Thread luca abeni
On Wed, 12 Apr 2017 20:30:04 +0800 Xunlei Pang wrote: [...] > > If the relative deadline is different from the period, then the > > check is an approximation (and this is the big issue here). I am > > still not sure about what is the best thing to do in this case. > > > >> E.g. For (runtime 2ms,

[PATCH] ALSA: usb-audio: constify snd_kcontrol_new structures

2017-04-12 Thread Bhumika Goyal
Declare snd_kcontrol_new strcutures as const as they are only passed as an argument to the function snd_ctl_new1. This argument is of type const, so snd_kcontrol_new structures having this property can be made const too. Done using Coccinelle: @r disable optional_qualifier@ identifier x; position

Re: [PATCH v2 06/17] mm: doc comment for scary spot in write_one_page

2017-04-12 Thread Jeff Layton
On Wed, 2017-04-12 at 08:06 -0400, Jeff Layton wrote: > Not sure what to do here just yet. > > Signed-off-by: Jeff Layton > --- > mm/page-writeback.c | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/mm/page-writeback.c b/mm/page-writeback.c > index de0dbf12e2c1..3ac8399dc984 10064

Re: [PATCH] Revert "HID: rmi: Handle all Synaptics touchpads using hid-rmi"

2017-04-12 Thread Jiri Kosina
On Tue, 11 Apr 2017, Jiri Kosina wrote: > From: Jiri Kosina > > This reverts commit 279967a65b320d174a507498aea7d44db3fee7f4. Now in Linus' tree as 84379d83d8e. -- Jiri Kosina SUSE Labs

Re: [Intel-gfx] The i915 stable patch marking is totally broken

2017-04-12 Thread Greg KH
On Wed, Apr 12, 2017 at 02:48:55PM +0200, Greg KH wrote: > On Mon, Mar 13, 2017 at 07:49:59AM +0100, Daniel Vetter wrote: > > On Sun, Mar 12, 2017 at 10:52 PM, Greg KH > > wrote: > > > Why don't the maintainers know which tree to put them in when they are > > > submitted? As an example, if I get

Re: [PATCH 02/16] mfd: madera: Add common support for Cirrus Logic Madera codecs

2017-04-12 Thread Lee Jones
On Wed, 05 Apr 2017, Richard Fitzgerald wrote: > This adds the generic core support for Cirrus Logic "Madera" class codecs. > These are complex audio codec SoCs with a variety of digital and analogue > I/O, onboard audio processing and DSPs, and other features. > > These codecs are all based off

Re: [PATCH 2/3] drm/etnaviv: Expose our reservation object when exporting a dmabuf.

2017-04-12 Thread Lucas Stach
Am Mittwoch, den 12.04.2017, 14:47 +0200 schrieb Daniel Vetter: > On Mon, Apr 10, 2017 at 06:44:13PM -0700, Eric Anholt wrote: > > Without this, polling on the dma-buf (and presumably other devices > > synchronizing against our rendering) would return immediately, even > > while the BO was busy. >

Re: KASLR causes intermittent boot failures on some systems

2017-04-12 Thread Jeff Moyer
Dave Young writes: > On 04/12/17 at 04:24pm, Dave Young wrote: >> I did some tests about emulated pmem via memmap=, kdump kernel hangs or >> just reboots early during compressing kernel, no clue how to handle it. >> Since for kdump kernel kaslr is pointless a workaround is use "nokaslr" >> >> In

[PATCH v2 2/5] x86/ldt: use vfree() instead of vfree_atomic()

2017-04-12 Thread Andrey Ryabinin
vfree() can be used in any atomic context now, thus there is no point in vfree_atomic(). This reverts commit 8d5341a6260a ("x86/ldt: use vfree_atomic() to free ldt entries") Signed-off-by: Andrey Ryabinin Reviewed-by: Thomas Gleixner --- arch/x86/kernel/ldt.c | 2 +- 1 file changed, 1 insertion

[PATCH v2 4/5] mm/vmalloc: remove vfree_atomic()

2017-04-12 Thread Andrey Ryabinin
vfree() can be used in any atomic context and there is no vfree_atomic() callers left, so let's remove it. This reverts commit bf22e37a6413 ("mm: add vfree_atomic()") Signed-off-by: Andrey Ryabinin Acked-by: Michal Hocko --- include/linux/vmalloc.h | 1 - mm/vmalloc.c| 40 +---

Re: [PATCH v2] libnvdimm: fix btt vs clear poison locking

2017-04-12 Thread Jeff Moyer
Dan Williams writes: > As a minimal fix, disable error clearing when the BTT is enabled for the > namespace. For the final fix a larger rework of the poison list locking > is needed. I think "fix" is a strong word for this patch. ;-) Looks fine, though. Reviewed-by: Jeff Moyer

[PATCH v2 5/5] mm/vmalloc: Don't spawn workers if somebody already purging

2017-04-12 Thread Andrey Ryabinin
Don't schedule purge_vmap_work if mutex_is_locked(&vmap_purge_lock), as this means that purging is already running in another thread. There is no point to schedule extra purge_vmap_work if somebody is already purging for us, because that extra work will not do anything useful. To evaluate performa

[PATCH v2 0/5] allow to call vfree() in atomic context

2017-04-12 Thread Andrey Ryabinin
Changes since v1: - Added small optmization as a separate patch 5/5 - Collected Acks/Review tags. Andrey Ryabinin (5): mm/vmalloc: allow to call vfree() in atomic context x86/ldt: use vfree() instead of vfree_atomic() kernel/fork: use vfree() instead of vfree_atomic() to free thread s

[PATCH v2 1/5] mm/vmalloc: allow to call vfree() in atomic context

2017-04-12 Thread Andrey Ryabinin
Commit 5803ed292e63 ("mm: mark all calls into the vmalloc subsystem as potentially sleeping") added might_sleep() to remove_vm_area() from vfree(), and commit 763b218ddfaf ("mm: add preempt points into __purge_vmap_area_lazy()") actually made vfree() potentially sleeping. This broke vmwgfx driver

[PATCH v2 3/5] kernel/fork: use vfree() instead of vfree_atomic() to free thread stack

2017-04-12 Thread Andrey Ryabinin
vfree() can be used in any atomic context now, thus there is no point in using vfree_atomic(). This reverts commit 0f110a9b956c ("kernel/fork: use vfree_atomic() to free thread stack") Signed-off-by: Andrey Ryabinin --- kernel/fork.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

Re: [Intel-gfx] The i915 stable patch marking is totally broken

2017-04-12 Thread Greg KH
On Mon, Mar 13, 2017 at 07:49:59AM +0100, Daniel Vetter wrote: > On Sun, Mar 12, 2017 at 10:52 PM, Greg KH wrote: > > Why don't the maintainers know which tree to put them in when they are > > submitted? As an example, if I get a patch that needs to go to Linus, I > > put it in my usb-linus branc

Re: [RFC v3 0/5] Add capacity capping support to the CPU controller

2017-04-12 Thread Peter Zijlstra
On Tue, Apr 11, 2017 at 06:58:33PM +0100, Patrick Bellasi wrote: > > illustrated per your above points in that it affects both, while in > > fact it actually modifies another metric, namely util_avg. > > I don't see it modifying in any direct way util_avg. The point is that clamps called

Re: [PATCH 3/3] drm/vc4: Add support for dma-buf fencing.

2017-04-12 Thread Daniel Vetter
On Tue, Apr 11, 2017 at 10:43:35AM -0700, Eric Anholt wrote: > Chris Wilson writes: > > > On Mon, Apr 10, 2017 at 06:44:14PM -0700, Eric Anholt wrote: > >> This is needed for proper synchronization with display on another DRM > >> device (pl111 or tinydrm) with buffers produced by vc4 V3D. Fixes

Re: [PATCH 3/3] drm/vc4: Add support for dma-buf fencing.

2017-04-12 Thread Daniel Vetter
On Mon, Apr 10, 2017 at 06:44:14PM -0700, Eric Anholt wrote: > This is needed for proper synchronization with display on another DRM > device (pl111 or tinydrm) with buffers produced by vc4 V3D. Fixes the > new igt vc4_dmabuf_poll testcase, and rendering of one of the glmark2 > desktop tests on pl

Re: [PATCH] chipidea: Fix issue in reconnecing gadget without insmod/rmmod

2017-04-12 Thread Niranjan Dighe
On Wed, Apr 12, 2017 at 5:21 PM, Peter Chen wrote: > On Tue, Apr 11, 2017 at 08:46:24PM +0530, Niranjan Dighe wrote: >> Currently usb_gadget_connect() is called only through gadget >> registration via composite_driver_probe(). As a result, after a >> disconnection, if the role transitions to host

Re: [PATCH 2/3] drm/etnaviv: Expose our reservation object when exporting a dmabuf.

2017-04-12 Thread Daniel Vetter
On Mon, Apr 10, 2017 at 06:44:13PM -0700, Eric Anholt wrote: > Without this, polling on the dma-buf (and presumably other devices > synchronizing against our rendering) would return immediately, even > while the BO was busy. > > Signed-off-by: Eric Anholt > Cc: sta...@vger.kernel.org > Cc: Lucas

Re: [PATCH] MAINTAINERS: Add maintainers for the meson clock driver

2017-04-12 Thread Michael Turquette
Quoting Jerome Brunet (2017-03-31 12:14:17) > Suggested-by: Michael Turquette > Cc: Kevin Hilman , > Signed-off-by: Jerome Brunet > Signed-off-by: Neil Armstrong > --- > > Hi Mike, Stephen, > > If this is OK with you, this will be the first patch of our upcoming pull > request. Sounds goods t

[PATCH v7] NTB: Add IDT 89HPESxNTx PCIe-switches support

2017-04-12 Thread Serge Semin
IDT 89HPESxNTx device series is PCIe-switches, which support Non-Transparent bridging between domains connected to the device ports. Since new NTB API exposes multi-port interface and messaging API, the IDT NT-functions can be now supported in the kernel. This driver adds the following functionalit

Re: [PATCH v4 18/18] arm: multi_v7: Enable dwmac-sun8i driver on multi_v7_defconfig

2017-04-12 Thread Maxime Ripard
On Wed, Apr 12, 2017 at 01:14:00PM +0200, Corentin Labbe wrote: > Enable the dwmac-sun8i driver in the multi_v7 default configuration > > Signed-off-by: Corentin Labbe Maybe we should enable that in arm64's defconfig too? Maxime -- Maxime Ripard, Free Electrons Embedded Linux and Kernel engin

Re: [PATCH v4 14/18] arm: allwinner: pine64: Enable dwmac-sun8i

2017-04-12 Thread Maxime Ripard
On Wed, Apr 12, 2017 at 01:13:56PM +0200, Corentin Labbe wrote: > The dwmac-sun8i hardware is present on the pine64 > It uses an external PHY via RMII. > > Signed-off-by: Corentin Labbe The architecture in your commit title in arm64, not arm (the next patch also have this issue). Maxime -- Ma

Re: [PATCH v4 13/18] arm64: allwinner: sun50i-a64: add dwmac-sun8i Ethernet driver

2017-04-12 Thread Maxime Ripard
On Wed, Apr 12, 2017 at 01:13:55PM +0200, Corentin Labbe wrote: > The dwmac-sun8i is an Ethernet MAC that supports 10/100/1000 Mbit > connections. It is very similar to the device found in the Allwinner > H3, but lacks the internal 100 Mbit PHY and its associated control > bits. > This adds the nec

Re: [PATCH v4 08/18] arm: sun8i: orangepi-pc: Enable dwmac-sun8i

2017-04-12 Thread Maxime Ripard
Hi Corentin, On Wed, Apr 12, 2017 at 01:13:50PM +0200, Corentin Labbe wrote: > The dwmac-sun8i hardware is present on the Orange PI PC. > It uses the internal PHY. > > This patch create the needed emac node. > > Signed-off-by: Corentin Labbe > --- > arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts |

Re: [PATCH] staging: ks7010: Adjust dev_err() calls in ks7010_sdio_probe()

2017-04-12 Thread Greg Kroah-Hartman
On Wed, Apr 12, 2017 at 09:57:35PM +1000, Tobin C. Harding wrote: > On Wed, Apr 12, 2017 at 12:27:10PM +0200, Greg Kroah-Hartman wrote: > > On Wed, Apr 12, 2017 at 08:39:15AM +1000, Tobin C. Harding wrote: > > > On Tue, Apr 11, 2017 at 03:15:32PM +0200, SF Markus Elfring wrote: > > > > From: Markus

Re: [PATCH] sched/deadline: Throttle a constrained task activated if overflow

2017-04-12 Thread Steven Rostedt
On Wed, 12 Apr 2017 20:30:04 +0800 Xunlei Pang wrote: > Image this deadline task was preempted after running 0.1ms by another one > with an > earlier absolute deadline for 1.9ms, after scheduled back it will have the > same status > (1.9ms remaining runtime, 2ms remaining deadline) under the cu

[PATCH v2 05/27] pci: Add arch_can_pci_mmap_wc() macro

2017-04-12 Thread David Woodhouse
From: David Woodhouse Most of the almost-identical versions of pci_mmap_page_range() silently ignore the 'write_combine' argument and give uncached mappings. Yet we allow the PCIIOC_WRITE_COMBINE ioctl in /proc/bus/pci, expose the 'resourceX_wc' file in sysfs, and allow an attempted mapping to a

<    2   3   4   5   6   7   8   9   10   >