Re: [PATCH 4/4] powerpc/32: remove a NOP from memset()

2017-08-24 Thread Christophe LEROY
Le 24/08/2017 à 12:51, Michael Ellerman a écrit : Christophe Leroy writes: memset() is patched after initialisation to activate the optimised part which uses cache instructions. Today we have a 'b 2f' to skip the optimised patch, which then gets replaced by a NOP, implying a useless cycle c

Re: [v6 2/4] mm, oom: cgroup-aware OOM killer

2017-08-24 Thread Roman Gushchin
On Thu, Aug 24, 2017 at 02:58:11PM +0200, Michal Hocko wrote: > On Thu 24-08-17 13:28:46, Roman Gushchin wrote: > > Hi Michal! > > > There is nothing like a "better victim". We are pretty much in a > catastrophic situation when we try to survive by killing a userspace. Not necessary, it can be a

Re: [PATCH net-next 02/13] phy: add the mvebu cp110 comphy driver

2017-08-24 Thread Antoine Tenart
Hi Stefan, On Thu, Aug 24, 2017 at 01:57:04PM +, Stefan Chulski wrote: > > > > How would you name it if not "comphy-cp110"? > > > > Good question... > > > > '7000-cpmphy-cp110' > > '8000-cpmphy-cp110' > > > > ?? > > > > Andrew > > A8K Marvell SoC has two South Bridge communication co

Re: [PATCH 4/4] lockdep: Fix workqueue crossrelease annotation

2017-08-24 Thread Peter Zijlstra
On Thu, Aug 24, 2017 at 11:18:40AM +0900, Byungchul Park wrote: > On Wed, Aug 23, 2017 at 01:58:47PM +0200, Peter Zijlstra wrote: > > Also, unconditinoally switching to recursive-read here would fail to > > detect the actual deadlock on single-threaded workqueues, which do > > Do you mean it's tr

Re: [PATCH net-next 02/13] phy: add the mvebu cp110 comphy driver

2017-08-24 Thread Andrew Lunn
> > -Original Message- > > From: Andrew Lunn [mailto:and...@lunn.ch] > > Sent: Thursday, August 24, 2017 4:51 PM > > To: Antoine Tenart > > Cc: da...@davemloft.net; kis...@ti.com; ja...@lakedaemon.net; > > sebastian.hesselba...@gmail.com; gregory.clem...@free-electrons.com; > > thomas.peta

Re: [PATCH net-next 12/13] arm64: dts: marvell: mcbin: add comphy references to Ethernet ports

2017-08-24 Thread Antoine Tenart
Hi Andrew, On Thu, Aug 24, 2017 at 03:58:13PM +0200, Andrew Lunn wrote: > > @@ -189,6 +191,7 @@ > > status = "okay"; > > phy = <&ge_phy>; > > phy-mode = "sgmii"; > > + phys = <&cps_comphy0 1>; > > Does the binding document describe the meaning of the specifier? Ahhh no you're right

Re: [PATCH net-next 07/13] net: mvpp2: improve the link management function

2017-08-24 Thread Andrew Lunn
On Thu, Aug 24, 2017 at 10:38:17AM +0200, Antoine Tenart wrote: > When the link status changes, the phylib calls the link_event function > in the mvpp2 driver. Before this patch only the egress/ingress transmit > was enabled/disabled. This patch adds more functionality to the link > status manageme

Re: [PATCH] zram: add zstd to the supported algorithms list

2017-08-24 Thread Sergey Senozhatsky
Hi, On (08/24/17 13:30), Minchan Kim wrote: > Hello Sergey, > > On Thu, Aug 24, 2017 at 10:49:36AM +0900, Sergey Senozhatsky wrote: > > Add ZSTD to the list of supported compression algorithms. > > > > Official benchmarks [1]: > > First of all, thanks for the work! > > I want to ask one thing.

Re: [PATCH v3] staging: olpc_dcon: remove pointless debug printk in dcon_freeze_store()

2017-08-24 Thread Dan Carpenter
On Thu, Aug 24, 2017 at 02:10:37PM +0800, Shurong Zhang wrote: > This printk doesn't really add anything worthwhile. > > Signed-off-by: Shurong Zhang > --- > drivers/staging/olpc_dcon/olpc_dcon.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/staging/olpc_dcon/olpc_dcon.c > b/

Re: [v6 3/4] mm, oom: introduce oom_priority for memory cgroups

2017-08-24 Thread Roman Gushchin
On Thu, Aug 24, 2017 at 03:48:59PM +0200, Michal Hocko wrote: > On Thu 24-08-17 13:51:13, Roman Gushchin wrote: > > On Thu, Aug 24, 2017 at 02:10:54PM +0200, Michal Hocko wrote: > > > On Wed 23-08-17 17:52:00, Roman Gushchin wrote: > > > > Introduce a per-memory-cgroup oom_priority setting: an inte

Re: [v6 2/4] mm, oom: cgroup-aware OOM killer

2017-08-24 Thread Michal Hocko
On Thu 24-08-17 14:58:42, Roman Gushchin wrote: > On Thu, Aug 24, 2017 at 02:58:11PM +0200, Michal Hocko wrote: > > On Thu 24-08-17 13:28:46, Roman Gushchin wrote: > > > Hi Michal! > > > > > There is nothing like a "better victim". We are pretty much in a > > catastrophic situation when we try to

Re: [PATCH net-next 07/13] net: mvpp2: improve the link management function

2017-08-24 Thread Antoine Tenart
Hi Andrew, On Thu, Aug 24, 2017 at 04:06:25PM +0200, Andrew Lunn wrote: > On Thu, Aug 24, 2017 at 10:38:17AM +0200, Antoine Tenart wrote: > > @@ -5753,14 +5753,24 @@ static void mvpp2_link_event(struct net_device *dev) > > port->link = phydev->link; > > > > if (phydev->li

[GIT PULL] ARM: SoC fixes for 4.13

2017-08-24 Thread Arnd Bergmann
The following changes since commit 4dd6a9973b8aaffac4bf37c5bb70e8eae5a7afb4: soc: ti: ti_sci_pm_domains: Populate name for genpd (2017-08-18 11:59:53 +0200) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc.git tags/armsoc-fixes for you to fet

Re: [PATCH] staging:rtl8188eu:core Fix Avoid CamelCase

2017-08-24 Thread Dan Carpenter
On Thu, Aug 24, 2017 at 02:58:06PM +0530, Janani Sankara Babu wrote: > This patch is created to solve the CamelCase issue. The members 'IEs' and > 'IELength' of struct wlan_bssid_ex are being modified to 'ies' and > 'ie_length' to solve the issue. And all the places where these variables > are ref

Re: [PATCH] rtc: mxc: avoid disabling interrupts on device close

2017-08-24 Thread Fabio Estevam
On Wed, Aug 23, 2017 at 7:00 PM, Alexandre Belloni wrote: > Currently, the IRQs are disabled when the rtc character device is closed. > This means that the device needs to stay open to get alarms while the usual > use case will open the device, set the alarm and close the device as is > done in rt

[PATCH v7 00/19] simplify crypto wait for async op

2017-08-24 Thread Gilad Ben-Yossef
all of the corner cases. The patch set is based upon linux-next release tagged next-20170824. Changes from v6: - Fix brown paper bag compile error on marvell/cesa code. Changes from v5: - Remove redundant new line as spotted by Jonathan Cameron. - Reworded dm-verity change commit message to

[PATCH v7 01/19] crypto: change transient busy return code to -EAGAIN

2017-08-24 Thread Gilad Ben-Yossef
The crypto API was using the -EBUSY return value to indicate both a hard failure to submit a crypto operation into a transformation provider when the latter was busy and the backlog mechanism was not enabled as well as a notification that the operation was queued into the backlog when the backlog m

[PATCH v7 02/19] crypto: ccp: use -EAGAIN for transient busy indication

2017-08-24 Thread Gilad Ben-Yossef
Replace -EBUSY with -EAGAIN when reporting transient busy indication in the absence of backlog. Signed-off-by: Gilad Ben-Yossef Reviewed-by: Gary R Hook --- drivers/crypto/ccp/ccp-crypto-main.c | 8 +++- drivers/crypto/ccp/ccp-dev.c | 7 +-- 2 files changed, 8 insertions(+), 7 d

[PATCH v7 03/19] crypto: remove redundant backlog checks on EBUSY

2017-08-24 Thread Gilad Ben-Yossef
Now that -EBUSY return code only indicates backlog queueing we can safely remove the now redundant check for the CRYPTO_TFM_REQ_MAY_BACKLOG flag when -EBUSY is returned. Signed-off-by: Gilad Ben-Yossef --- crypto/ahash.c| 12 +++- crypto/cts.c | 6 ++ crypto/lrw.c

[PATCH v7 04/19] crypto: marvell/cesa: remove redundant backlog checks on EBUSY

2017-08-24 Thread Gilad Ben-Yossef
Now that -EBUSY return code only indicates backlog queueing we can safely remove the now redundant check for the CRYPTO_TFM_REQ_MAY_BACKLOG flag when -EBUSY is returned. Signed-off-by: Gilad Ben-Yossef Acked-by: Boris Brezillon --- drivers/crypto/marvell/cesa.c | 3 +-- drivers/crypto/marvell/c

[PATCH v7 05/19] crypto: introduce crypto wait for async op

2017-08-24 Thread Gilad Ben-Yossef
Invoking a possibly async. crypto op and waiting for completion while correctly handling backlog processing is a common task in the crypto API implementation and outside users of it. This patch adds a generic implementation for doing so in preparation for using it across the board instead of hand

[PATCH v7 06/19] crypto: move algif to generic async completion

2017-08-24 Thread Gilad Ben-Yossef
algif starts several async crypto ops and waits for their completion. Move it over to generic code doing the same. Signed-off-by: Gilad Ben-Yossef --- crypto/af_alg.c | 27 --- crypto/algif_aead.c | 8 crypto/algif_hash.c | 30 ++-

[PATCH v7 07/19] crypto: move pub key to generic async completion

2017-08-24 Thread Gilad Ben-Yossef
public_key_verify_signature() is starting an async crypto op and waiting for it to complete. Move it over to generic code doing the same. Signed-off-by: Gilad Ben-Yossef --- crypto/asymmetric_keys/public_key.c | 28 1 file changed, 4 insertions(+), 24 deletions(-) d

[PATCH v7 08/19] crypto: move drbg to generic async completion

2017-08-24 Thread Gilad Ben-Yossef
DRBG is starting an async. crypto op and waiting for it complete. Move it over to generic code doing the same. The code now also passes CRYPTO_TFM_REQ_MAY_SLEEP flag indicating crypto request memory allocation may use GFP_KERNEL which should be perfectly fine as the code is obviously sleeping for

[PATCH v7 09/19] crypto: move gcm to generic async completion

2017-08-24 Thread Gilad Ben-Yossef
gcm is starting an async. crypto op and waiting for it complete. Move it over to generic code doing the same. Signed-off-by: Gilad Ben-Yossef --- crypto/gcm.c | 32 ++-- 1 file changed, 6 insertions(+), 26 deletions(-) diff --git a/crypto/gcm.c b/crypto/gcm.c index 3

[PATCH v7 11/19] fscrypt: move to generic async completion

2017-08-24 Thread Gilad Ben-Yossef
fscrypt starts several async. crypto ops and waiting for them to complete. Move it over to generic code doing the same. Signed-off-by: Gilad Ben-Yossef --- fs/crypto/crypto.c | 28 fs/crypto/fname.c | 36 ++-- fs/cry

[PATCH v7 10/19] crypto: move testmgr to generic async completion

2017-08-24 Thread Gilad Ben-Yossef
testmgr is starting async. crypto ops and waiting for them to complete. Move it over to generic code doing the same. This also provides a test of the generic crypto async. wait code. Signed-off-by: Gilad Ben-Yossef --- crypto/testmgr.c | 204 ++---

[PATCH v7 12/19] dm: move dm-verity to generic async completion

2017-08-24 Thread Gilad Ben-Yossef
dm-verity is starting async. crypto ops and waiting for them to complete. Move it over to generic code doing the same. This also avoids a future potential data coruption bug created by the use of wait_for_completion_interruptible() without dealing correctly with an interrupt aborting the wait prio

[PATCH v7 13/19] cifs: move to generic async completion

2017-08-24 Thread Gilad Ben-Yossef
cifs starts an async. crypto op and waits for their completion. Move it over to generic code doing the same. Signed-off-by: Gilad Ben-Yossef Acked-by: Pavel Shilovsky --- fs/cifs/smb2ops.c | 30 -- 1 file changed, 4 insertions(+), 26 deletions(-) diff --git a/fs/cif

[PATCH v7 14/19] ima: move to generic async completion

2017-08-24 Thread Gilad Ben-Yossef
ima starts several async crypto ops and waits for their completions. Move it over to generic code doing the same. Signed-off-by: Gilad Ben-Yossef Acked-by: Mimi Zohar --- security/integrity/ima/ima_crypto.c | 56 +++-- 1 file changed, 17 insertions(+), 39 deleti

[PATCH 0/6] [GIT PULL] tracing: Various minor fixes

2017-08-24 Thread Steven Rostedt
Linus, Various bug fixes: - Two small memory leaks in error paths. - A missed return error code on an error path. - A fix to check the tracing ring buffer CPU when it doesn't exist (caused by setting maxcpus on the command line that is less than the actual number of CPUs, and then onl

Re: [PATCH v2 0/1] bsg: fix regression resulting in panics when sending commands via BSG

2017-08-24 Thread Jens Axboe
On 08/23/2017 05:57 PM, Benjamin Block wrote: > Hello all, > > This is the second try for fixing the regression in the BSG-interface that > exists since v4.11 (for more infos see the first series). > > I separated my other changes from the bug-fix so that it is easier to apply > if judged good. I

[PATCH v7 17/19] crypto: qce: move to generic async completion

2017-08-24 Thread Gilad Ben-Yossef
The qce driver starts several async crypto ops and waits for their completions. Move it over to generic code doing the same. Signed-off-by: Gilad Ben-Yossef --- drivers/crypto/qce/sha.c | 30 -- 1 file changed, 4 insertions(+), 26 deletions(-) diff --git a/drivers/c

[PATCH v7 18/19] crypto: mediatek: move to generic async completion

2017-08-24 Thread Gilad Ben-Yossef
The mediatek driver starts several async crypto ops and waits for their completions. Move it over to generic code doing the same. Signed-off-by: Gilad Ben-Yossef Acked-by: Ryder Lee --- drivers/crypto/mediatek/mtk-aes.c | 31 +-- 1 file changed, 5 insertions(+), 26 d

[PATCH v7 19/19] crypto: adapt api sample to use async. op wait

2017-08-24 Thread Gilad Ben-Yossef
The code sample is waiting for an async. crypto op completion. Adapt sample to use the new generic infrastructure to do the same. This also fixes a possible data coruption bug created by the use of wait_for_completion_interruptible() without dealing correctly with an interrupt aborting the wait pr

Re: [PATCH] devfreq: Convert to using %pOF instead of full_name

2017-08-24 Thread Rob Herring
On Wed, Aug 23, 2017 at 6:18 PM, Chanwoo Choi wrote: > Hi Rob, > > On 2017년 08월 24일 03:09, Rob Herring wrote: >> On Thu, Jul 20, 2017 at 12:25 AM, MyungJoo Ham >> wrote: On 2017년 07월 19일 06:42, Rob Herring wrote: > Now that we have a custom printf format specifier, convert users of

Re: [PATCH 0/3] constify ata_port_info

2017-08-24 Thread Tejun Heo
On Thu, Aug 24, 2017 at 03:19:58PM +0530, Arvind Yadav wrote: > ata_port_info are not supposed to change at runtime. All functions > working with ata_port_info provided by work with > const ata_port_info. So mark the non-const structs as const. Applied 1-3 to libata/for-4.14. Thanks. -- tejun

[PATCH v7 16/19] crypto: talitos: move to generic async completion

2017-08-24 Thread Gilad Ben-Yossef
The talitos driver starts several async crypto ops and waits for their completions. Move it over to generic code doing the same. Signed-off-by: Gilad Ben-Yossef --- drivers/crypto/talitos.c | 38 +- 1 file changed, 5 insertions(+), 33 deletions(-) diff --git

[PATCH 6/6] tracing: Fix freeing of filter in create_filter() when set_str is false

2017-08-24 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Performing the following task with kmemleak enabled: # cd /sys/kernel/tracing/events/irq/irq_handler_entry/ # echo 'enable_event:kmem:kmalloc:3 if irq >' > trigger # echo 'enable_event:kmem:kmalloc:3 if irq > 31' > trigger # echo scan > /sys/kernel/debug/kmeml

[PATCH v7 15/19] crypto: tcrypt: move to generic async completion

2017-08-24 Thread Gilad Ben-Yossef
tcrypt starts several async crypto ops and waits for their completions. Move it over to generic code doing the same. Signed-off-by: Gilad Ben-Yossef --- crypto/tcrypt.c | 84 + 1 file changed, 25 insertions(+), 59 deletions(-) diff --git

[PATCH 1/6] tracing: Call clear_boot_tracer() at lateinit_sync

2017-08-24 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The clear_boot_tracer function is used to reset the default_bootup_tracer string to prevent it from being accessed after boot, as it originally points to init data. But since clear_boot_tracer() is called via the init_lateinit() call, it races with the initcall for

Re: [PATCH 1/3] livepatch: Add klp_object and klp_func iterators

2017-08-24 Thread Petr Mladek
On Wed 2017-07-19 13:18:05, Jason Baron wrote: > In preparation to introducing atomic replace, introduce iterators for klp_func > and klp_object, such that objects and functions can be dynmically allocated > (needed for atomic replace). Note that this patch is careful, not to grow the > size of klp

[PATCH 4/6] ftrace: Check for null ret_stack on profile function graph entry function

2017-08-24 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" There's a small race when function graph shutsdown and the calling of the registered function graph entry callback. The callback must not reference the task's ret_stack without first checking that it is not NULL. Note, when a ret_stack is allocated for a task, it s

[PATCH 2/6] tracing: Missing error code in tracer_alloc_buffers()

2017-08-24 Thread Steven Rostedt
From: Dan Carpenter If ring_buffer_alloc() or one of the next couple function calls fail then we should return -ENOMEM but the current code returns success. Link: http://lkml.kernel.org/r/20170801110201.ajdkct7vwzixahvx@mwanda Cc: Sebastian Andrzej Siewior Cc: Ingo Molnar Cc: sta...@vger.kern

[PATCH 3/6] ring-buffer: Have ring_buffer_alloc_read_page() return error on offline CPU

2017-08-24 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Chunyu Hu reported: "per_cpu trace directories and files are created for all possible cpus, but only the cpus which have ever been on-lined have their own per cpu ring buffer (allocated by cpuhp threads). While trace_buffers_open, the open handler for tr

[PATCH 5/6] tracing: Fix kmemleak in tracing_map_array_free()

2017-08-24 Thread Steven Rostedt
From: Chunyu Hu kmemleak reported the below leak when I was doing clear of the hist trigger. With this patch, the kmeamleak is gone. unreferenced object 0x94322b63d760 (size 32): comm "bash", pid 1522, jiffies 4403687962 (age 2442.311s) hex dump (first 32 bytes): 00 01 00 00 04 00 00

[PATCH v2 1/2] nfit: Fix the abuse of COMPLETION_INITIALIZER_ONSTACK()

2017-08-24 Thread Boqun Feng
COMPLETION_INITIALIZER_ONSTACK() is supposed to used as an initializer, in other words, it should only be used in assignment expressions or compound literals. So the usage in drivers/acpi/nfit/core.c: COMPLETION_INITIALIZER_ONSTACK(flush.cmp); , is inappropriate. Besides, this usage coul

Re: [alsa-devel] [PATCH] ASoC: rt5677: Reintroduce I2C device IDs

2017-08-24 Thread Takashi Iwai
On Thu, 24 Aug 2017 02:05:25 +0200, Tom Rini wrote: > > On Wed, Aug 23, 2017 at 01:39:12PM -0400, Tom Rini wrote: > > On Wed, Aug 23, 2017 at 05:29:33PM +0300, Andy Shevchenko wrote: > > > > > On Tue, 2017-08-22 at 21:51 -0400, Tom Rini wrote: > > > > Not all devices with ACPI and this combinatio

Re: [alsa-devel] [PATCH] ASoC: rt5677: Reintroduce I2C device IDs

2017-08-24 Thread Takashi Iwai
On Thu, 24 Aug 2017 16:28:29 +0200, Takashi Iwai wrote: > > On Thu, 24 Aug 2017 02:05:25 +0200, > Tom Rini wrote: > > > > On Wed, Aug 23, 2017 at 01:39:12PM -0400, Tom Rini wrote: > > > On Wed, Aug 23, 2017 at 05:29:33PM +0300, Andy Shevchenko wrote: > > > > > > > On Tue, 2017-08-22 at 21:51 -04

Re: [RFC PATCH 1/4] mm: madvise: read loop's step size beforehand in madvise_inject_error(), prepare for THP support.

2017-08-24 Thread Zi Yan
On 24 Aug 2017, at 0:26, Naoya Horiguchi wrote: > On Wed, Aug 23, 2017 at 10:20:02AM -0400, Zi Yan wrote: >> On 23 Aug 2017, at 3:49, Naoya Horiguchi wrote: >> >>> On Mon, Aug 14, 2017 at 09:52:13PM -0400, Zi Yan wrote: From: Zi Yan The loop in madvise_inject_error() reads its step

Re: [GIT PULL] workqueue fixes for v4.13-rc3

2017-08-24 Thread Tejun Heo
Hello, On Thu, Aug 24, 2017 at 03:32:04PM +0200, Geert Uytterhoeven wrote: > > Ah, okay, so it has multiple nodes but not NUMA. The generic numa > > topology code assumes that there's only one node if !NUMA and reports > > all online cpus regardless of the node number, which makes the same > > CP

[PATCH] m68knommu: remove dead code

2017-08-24 Thread Alexandre Belloni
As CONFIG_RTC_DRV_M5441x doesn't exist because the driver never made it upstream, there is no device to register. Remove code that is never compiled and init_BSP() as it doesn't do anything. Signed-off-by: Alexandre Belloni --- arch/m68k/coldfire/m5441x.c | 37 ---

Re: [PATCH v2] x86: enable RCU based table free

2017-08-24 Thread Peter Zijlstra
On Thu, Aug 24, 2017 at 11:22:58AM +0200, Vitaly Kuznetsov wrote: > diff --git a/arch/x86/include/asm/tlb.h b/arch/x86/include/asm/tlb.h > index c7797307fc2b..d43a7fcafee9 100644 > --- a/arch/x86/include/asm/tlb.h > +++ b/arch/x86/include/asm/tlb.h > @@ -15,4 +15,9 @@ > > #include > > +stati

Re: [RFC GIT PULL rcu/next] RCU/hotplug fix

2017-08-24 Thread Paul E. McKenney
On Thu, Aug 24, 2017 at 09:53:20AM +0200, Ingo Molnar wrote: > > * Jeffrey Hugo wrote: > > > > > This commit has been exposed to 0day test robot and -next testing > > > > and is available in the git repository at: > > > > > > > >git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rc

Re: [PATCH] rtc: sun6i: Add support for the external oscillator gate

2017-08-24 Thread Alexandre Belloni
Hi, On 24/08/2017 at 14:18:54 +0200, Maxime Ripard wrote: > The RTC can output its 32kHz clock outside of the SoC, for example to clock > a WiFi chip. > > Create a new clock that other devices will be able to retrieve, while > maintaining the DT stability by providing a default name for that cloc

Re: [PATCH 2/2] compat_hdio_ioctl: Fix a declaration

2017-08-24 Thread Jens Axboe
On 08/23/2017 04:29 PM, Bart Van Assche wrote: > This patch avoids that sparse reports the following warning messages: > > block/compat_ioctl.c:85:11: warning: incorrect type in assignment (different > address spaces) > block/compat_ioctl.c:85:11:expected unsigned long *[noderef] p > block/co

[PATCH] cpuset: Allow cpuset controller in default hierarchy

2017-08-24 Thread Waiman Long
Given the fact that thread mode is now queued for 4.14, it is now time to enable cpuset to be used in the default hierarchy (cgroup v2) as it is clearly threaded. Signed-off-by: Waiman Long --- kernel/cgroup/cpuset.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/cgroup/cpuset.c b/

Re: [alsa-devel] [PATCH] ASoC: rt5677: Reintroduce I2C device IDs

2017-08-24 Thread Tom Rini
On Thu, Aug 24, 2017 at 04:31:25PM +0200, Takashi Iwai wrote: > On Thu, 24 Aug 2017 16:28:29 +0200, > Takashi Iwai wrote: > > > > On Thu, 24 Aug 2017 02:05:25 +0200, > > Tom Rini wrote: > > > > > > On Wed, Aug 23, 2017 at 01:39:12PM -0400, Tom Rini wrote: > > > > On Wed, Aug 23, 2017 at 05:29:33P

Re: [PATCH] cpuset: Allow cpuset controller in default hierarchy

2017-08-24 Thread Tejun Heo
Hello, Waiman. On Thu, Aug 24, 2017 at 10:40:11AM -0400, Waiman Long wrote: > Given the fact that thread mode is now queued for 4.14, it is now > time to enable cpuset to be used in the default hierarchy (cgroup v2) > as it is clearly threaded. I'm not sure we want things like exclusive settings

[PATCH] input: misc: don't build m68kspkr when mach_beep is undefined

2017-08-24 Thread Alexandre Belloni
mach_beep is defined arch/m68k/kernel/setup_mm.c which is compiled only when MMU is selected. To avoid linking errors, make INPUT_M68K_BEEP depend on MMU. Signed-off-by: Alexandre Belloni --- drivers/input/misc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/

Re: [PATCH 1/4] KVM: VMX: cache secondary exec controls

2017-08-24 Thread Jim Mattson
On Thu, Aug 24, 2017 at 6:37 AM, Paolo Bonzini wrote: > Currently, secondary execution controls are divided in three groups: > > - static, depending mostly on the module arguments or the processor > (vmx_secondary_exec_control) > > - static, depending on CPUID (vmx_cpuid_update) There should al

Re: [RFC GIT PULL rcu/next] RCU/hotplug fix

2017-08-24 Thread Jeffrey Hugo
On 8/24/2017 8:35 AM, Paul E. McKenney wrote: On Thu, Aug 24, 2017 at 09:53:20AM +0200, Ingo Molnar wrote: * Jeffrey Hugo wrote: This commit has been exposed to 0day test robot and -next testing and is available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/pau

Re: [PATCH 4/4] kvm: vmx: Raise #UD on unsupported XSAVES/XRSTORS

2017-08-24 Thread Jim Mattson
On Thu, Aug 24, 2017 at 6:37 AM, Paolo Bonzini wrote: > A guest may not be configured to support XSAVES/XRSTORS, even when the host > does. If the guest does not support XSAVES/XRSTORS, clear the secondary > execution control so that the processor will raise #UD. > > Also clear the "allowed-1" bit

Re: [PATCH] cpuset: Allow cpuset controller in default hierarchy

2017-08-24 Thread Waiman Long
On 08/24/2017 10:43 AM, Tejun Heo wrote: > Hello, Waiman. > > On Thu, Aug 24, 2017 at 10:40:11AM -0400, Waiman Long wrote: >> Given the fact that thread mode is now queued for 4.14, it is now >> time to enable cpuset to be used in the default hierarchy (cgroup v2) >> as it is clearly threaded. > I'

Re: [PATCH net-next 09/13] net: mvpp2: dynamic reconfiguration of the PHY mode

2017-08-24 Thread Andrew Lunn
On Thu, Aug 24, 2017 at 10:38:19AM +0200, Antoine Tenart wrote: > This patch adds logic to reconfigure the comphy/gop when the link status > change at runtime. This is very useful on boards such as the mcbin which > have SFP and Ethernet ports connected to the same MAC port: depending on > what the

Re: [PATCH v2 5/8] KVM: arm/arm64: vgic: Handle mapped level sensitive SPIs

2017-08-24 Thread Christoffer Dall
On Tue, Aug 22, 2017 at 04:35:26PM +0200, Auger Eric wrote: > Hi, > > On 25/07/2017 17:41, Marc Zyngier wrote: > > On 25/07/17 15:48, Christoffer Dall wrote: > >> On Tue, Jul 25, 2017 at 02:47:55PM +0100, Marc Zyngier wrote: > >>> On 21/07/17 14:03, Christoffer Dall wrote: > On Fri, Jul 07, 2

Re: [v6 2/4] mm, oom: cgroup-aware OOM killer

2017-08-24 Thread Roman Gushchin
On Thu, Aug 24, 2017 at 04:13:37PM +0200, Michal Hocko wrote: > On Thu 24-08-17 14:58:42, Roman Gushchin wrote: > > On Thu, Aug 24, 2017 at 02:58:11PM +0200, Michal Hocko wrote: > > > On Thu 24-08-17 13:28:46, Roman Gushchin wrote: > > > > Hi Michal! > > > > > > > There is nothing like a "better v

Re: [PATCH] cpuset: Allow cpuset controller in default hierarchy

2017-08-24 Thread Tejun Heo
Hello, On Thu, Aug 24, 2017 at 10:56:21AM -0400, Waiman Long wrote: > The main reason for sending out this patch is to figure out what exactly > is in your mind before enabling cpuset in v2. > > From my point of view, the exclusive setting makes cpuset behave more > like a resource domain that a

Re: [PATCH] fork: fix incorrect fput of ->exe_file causing use-after-free

2017-08-24 Thread Mark Rutland
On Wed, Aug 23, 2017 at 02:14:08PM -0700, Eric Biggers wrote: > From: Eric Biggers > > Commit 7c051267931a ("mm, fork: make dup_mmap wait for mmap_sem for > write killable") made it possible to kill a forking task while it is > waiting to acquire its ->mmap_sem for write, in dup_mmap(). However,

Re: [PATCH] perf stat: Fix path to PMU formats in documentation

2017-08-24 Thread Arnaldo Carvalho de Melo
Em Thu, Aug 24, 2017 at 03:20:22PM +0200, Jack Henschel escreveu: > As defined in tools/perf/util/pmu.c, the EVENT_SOURCE_DEVICE_PATH > is /sys/bus/event_source/devices/ (no traling 's' in event_source) > > This patch corrects the path in the perf stat documentation Good catch, thanks, applied.

Re: [PATCH net-next] net-next/hinic: Fix MTU limitation

2017-08-24 Thread Andrew Lunn
On Thu, Aug 24, 2017 at 09:21:25PM +0800, Aviad Krawczyk wrote: > Fix the hw MTU limitation by setting min/max_mtu > > Signed-off-by: Aviad Krawczyk > Signed-off-by: Zhao Chen > --- > drivers/net/ethernet/huawei/hinic/hinic_main.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/dri

Re: Kernels v4.9+ cause short reads of block devices

2017-08-24 Thread Dave Kleikamp
On 08/24/2017 05:20 AM, Doug Nazar wrote: > On 8/23/17 5:01 PM, Andreas Dilger wrote: >> Doug, >> I noticed while checking for other implications of changing >> MAX_LFS_FILESIZE >> that fs/jfs/super.c is also working around this limit.  If you are going >> to submit a patch for this, it also makes

[GIT PULL] Btrfs fix for rc7

2017-08-24 Thread David Sterba
Hi, we have one more fixup that stems from the blk_status_t conversion that did not quite cover everything. The normal cases were not affected because the code is 0, but any error and retries could mix up new and old values. Please pull, thanks. --

Re: [PATCH 1/4] KVM: VMX: cache secondary exec controls

2017-08-24 Thread Paolo Bonzini
On 24/08/2017 16:47, Jim Mattson wrote: >> Currently, secondary execution controls are divided in three groups: >> >> - static, depending mostly on the module arguments or the processor >> (vmx_secondary_exec_control) >> >> - static, depending on CPUID (vmx_cpuid_update) > There should also be: >

Re: [PATCH] scsi: lpfc: remove useless code in lpfc_sli4_bsg_link_diag_test

2017-08-24 Thread Gustavo A. R. Silva
Hi Martin, On 08/23/2017 09:45 PM, Martin K. Petersen wrote: Gustavo, Remove variable assignments. The value stored in local variable _rc_ is overwritten at line 2448:rc = lpfc_sli4_bsg_set_link_diag_state(phba, 0); before it can be used. Applied to 4.14/scsi-queue. Thank you! Glad to he

Re: [PATCH v2] x86: enable RCU based table free

2017-08-24 Thread Vitaly Kuznetsov
Peter Zijlstra writes: > On Thu, Aug 24, 2017 at 11:22:58AM +0200, Vitaly Kuznetsov wrote: > >> diff --git a/arch/x86/include/asm/tlb.h b/arch/x86/include/asm/tlb.h >> index c7797307fc2b..d43a7fcafee9 100644 >> --- a/arch/x86/include/asm/tlb.h >> +++ b/arch/x86/include/asm/tlb.h >> @@ -15,4 +15,9

Re: [PATCH] cpuset: Allow cpuset controller in default hierarchy

2017-08-24 Thread Waiman Long
On 08/24/2017 11:02 AM, Tejun Heo wrote: > Hello, > > On Thu, Aug 24, 2017 at 10:56:21AM -0400, Waiman Long wrote: >> The main reason for sending out this patch is to figure out what exactly >> is in your mind before enabling cpuset in v2. >> >> From my point of view, the exclusive setting makes cp

Temperature limitation heat pipes, to solve the overheating solar system

2017-08-24 Thread a...@a.gmyx.org
New Products-Solar heating 1). SHC series CPC reflectors heat pipe collectors: biggest aperture area, highest power output, overheating solution 2). A9 series integrated pressure solar water heaters, EN12976 approved. 3). PVT, hybrid photovoltaic+solar thermal panels. …… Please contact with me

Re: [PATCH 1/3] livepatch: Add klp_object and klp_func iterators

2017-08-24 Thread Jason Baron
Hi Petr, On 08/24/2017 10:25 AM, Petr Mladek wrote: > On Wed 2017-07-19 13:18:05, Jason Baron wrote: >> In preparation to introducing atomic replace, introduce iterators for >> klp_func >> and klp_object, such that objects and functions can be dynmically allocated >> (needed for atomic replace).

Re: [PATCH 1/4] KVM: VMX: cache secondary exec controls

2017-08-24 Thread Jim Mattson
Userspace can establish the value of the virtualized IA32_VMX_PROCBASED_CTLS2 MSR via the KVM_SET_MSRS ioctl, which goes through vms_set_vmx_msr. But maybe that's not important, since features can only be disabled on that path. On Thu, Aug 24, 2017 at 8:25 AM, Paolo Bonzini wrote: > On 24/08/2017

Re: [alsa-devel] [PATCH] ASoC: rt5677: Reintroduce I2C device IDs

2017-08-24 Thread Takashi Iwai
On Thu, 24 Aug 2017 16:41:52 +0200, Tom Rini wrote: > > On Thu, Aug 24, 2017 at 04:31:25PM +0200, Takashi Iwai wrote: > > On Thu, 24 Aug 2017 16:28:29 +0200, > > Takashi Iwai wrote: > > > > > > On Thu, 24 Aug 2017 02:05:25 +0200, > > > Tom Rini wrote: > > > > > > > > On Wed, Aug 23, 2017 at 01:3

[PATCH] IB/core: replace memcpy with ether_addr_copy

2017-08-24 Thread Himanshu Jha
Use ether_addr_copy to copy an ethernet address of size ETH_ALEN instead of memcpy. Signed-off-by: Himanshu Jha --- drivers/infiniband/core/addr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/infiniband/core/addr.c b/drivers/infiniband/core/addr.c index 437522c

[PATCH] Staging: Android: fix code style in ion_cma_heap.c

2017-08-24 Thread Abishek V Ashok
This is a patch to the ion_cma_heap.c file in /drivers/staging/andrioid/ion that fixes a blank line and kmalloc size warning found by the checkpatch.pl tool. Signed-off-by: Abhishek V Ashok --- drivers/staging/android/ion/ion_cma_heap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) di

Re: [PATCH v3 2/5] KVM: MMU: check guest CR3 reserved bits based on its physical address width.

2017-08-24 Thread Yu Zhang
On 8/24/2017 9:40 PM, Paolo Bonzini wrote: On 24/08/2017 14:27, Yu Zhang wrote: diff --git a/arch/x86/kvm/mmu.h b/arch/x86/kvm/mmu.h index 3ed6192..67e7ec2 100644 --- a/arch/x86/kvm/mmu.h +++ b/arch/x86/kvm/mmu.h @@ -48,6 +48,9 @@ static inline u64 rsvd_bits(int s, int e) { + if

Re: [kernel-hardening] [PATCH v5 04/10] arm64: Add __flush_tlb_one()

2017-08-24 Thread Mark Rutland
On Wed, Aug 23, 2017 at 11:13:02AM -0600, Tycho Andersen wrote: > On Wed, Aug 23, 2017 at 06:04:43PM +0100, Mark Rutland wrote: > > On Wed, Aug 23, 2017 at 10:58:42AM -0600, Tycho Andersen wrote: > > > Hi Mark, > > > > > > On Mon, Aug 14, 2017 at 05:50:47PM +0100, Mark Rutland wrote: > > > > That

Re: [PATCH 1/4] KVM: VMX: cache secondary exec controls

2017-08-24 Thread Paolo Bonzini
On 24/08/2017 17:41, Jim Mattson wrote: > Userspace can establish the value of the virtualized > IA32_VMX_PROCBASED_CTLS2 MSR via the KVM_SET_MSRS ioctl, which goes > through vms_set_vmx_msr. But maybe that's not important, since > features can only be disabled on that path. Yeah, I was only think

Re: [PATCH v3 2/5] KVM: MMU: check guest CR3 reserved bits based on its physical address width.

2017-08-24 Thread Paolo Bonzini
On 24/08/2017 17:23, Yu Zhang wrote: >>> >>> static inline u64 rsvd_bits(int s, int e) >>> { >>> +if (e < s) >>> +return 0; >>> + >>> return ((1ULL << (e - s + 1)) - 1) << s; >>> } >> e = s - 1 is already supported; why do you need e <= s - 2? > > Sorry? I do not quite un

Re: [PATCH 0/1] devpts: use dynamic_dname() to generate proc name

2017-08-24 Thread Eric W. Biederman
Linus Torvalds writes: > On Wed, Aug 23, 2017 at 8:11 PM, Eric W. Biederman > wrote: >> -static int pty_get_peer(struct tty_struct *tty, int flags) >> +int ptm_open_peer(struct file *master, struct tty_struct *tty, int flags) >> { >> int fd = -1; >> struct file *filp = NULL; >>

Re: [alsa-devel] [PATCH] ASoC: rt5677: Reintroduce I2C device IDs

2017-08-24 Thread Mark Brown
On Thu, Aug 24, 2017 at 05:42:11PM +0200, Takashi Iwai wrote: > OK, so the fix for 4.13 would be either to cherry-pick this commit, or > just to re-add "RT5677CE:00" to i2c_id temporarily as a quick band-aid > fix (and remove again in 4.14). > The former is cleaner, but it's bigger, while the lat

Re: [PATCH net-next 09/13] net: mvpp2: dynamic reconfiguration of the PHY mode

2017-08-24 Thread Antoine Tenart
Hi Andrew, On Thu, Aug 24, 2017 at 04:56:09PM +0200, Andrew Lunn wrote: > On Thu, Aug 24, 2017 at 10:38:19AM +0200, Antoine Tenart wrote: > > This patch adds logic to reconfigure the comphy/gop when the link status > > change at runtime. This is very useful on boards such as the mcbin which > > ha

Re: [PATCH net-next 3/3] hv_sock: implements Hyper-V transport for Virtual Sockets (AF_VSOCK)

2017-08-24 Thread Stefan Hajnoczi
On Tue, Aug 22, 2017 at 09:40:01PM +, Dexuan Cui wrote: > > From: Stefan Hajnoczi [mailto:stefa...@redhat.com] > > On Fri, Aug 18, 2017 at 10:23:54PM +, Dexuan Cui wrote: > > > > > +static bool hvs_stream_allow(u32 cid, u32 port) > > > > > +{ > > > > > + static const u32 valid_cids[] =

Re: [alsa-devel] [PATCH] ASoC: rt5677: Reintroduce I2C device IDs

2017-08-24 Thread Takashi Iwai
On Thu, 24 Aug 2017 17:52:35 +0200, Mark Brown wrote: > > On Thu, Aug 24, 2017 at 05:42:11PM +0200, Takashi Iwai wrote: > > > OK, so the fix for 4.13 would be either to cherry-pick this commit, or > > just to re-add "RT5677CE:00" to i2c_id temporarily as a quick band-aid > > fix (and remove again

Re: [PATCH] kbuild: update comments of Makefile.asm-generic

2017-08-24 Thread Masahiro Yamada
2017-08-22 22:09 GMT+09:00 Cao jin : > Signed-off-by: Cao jin > --- Applied to linux-kbuild/fixes. Thanks. -- Best Regards Masahiro Yamada

Re: [alsa-devel] [PATCH] ASoC: rt5677: Reintroduce I2C device IDs

2017-08-24 Thread Tom Rini
On Thu, Aug 24, 2017 at 04:52:35PM +0100, Mark Brown wrote: > On Thu, Aug 24, 2017 at 05:42:11PM +0200, Takashi Iwai wrote: > > > OK, so the fix for 4.13 would be either to cherry-pick this commit, or > > just to re-add "RT5677CE:00" to i2c_id temporarily as a quick band-aid > > fix (and remove ag

Re: [PATCH 0/1] devpts: use dynamic_dname() to generate proc name

2017-08-24 Thread Eric W. Biederman
Stefan Lippers-Hollmann writes: > Hi > > On 2017-08-23, Eric W. Biederman wrote: >> Linus Torvalds writes: >> > On Wed, Aug 23, 2017 at 6:49 PM, Linus Torvalds >> > wrote: > [...] >> This is so far untested (except for compiling) but I think this will >> work. >> >> I factor out devpts_ptmx

Re: [PATCH] Staging: Android: fix code style in ion_cma_heap.c

2017-08-24 Thread Laura Abbott
On 08/24/2017 08:40 AM, Abishek V Ashok wrote: > This is a patch to the ion_cma_heap.c file in > /drivers/staging/andrioid/ion that fixes a blank line and > kmalloc size warning found by the checkpatch.pl tool. > You've done two things in this patch, please stick to a single change per patch. >

[PATCH] KVM: MMU: speedup update_permission_bitmask

2017-08-24 Thread Paolo Bonzini
update_permission_bitmask currently does a 128-iteration loop to, essentially, compute a constant array. Computing the 8 bits in parallel reduces it to 16 iterations, and is enough to speed it up substantially because many boolean operations in the inner loop become constants or simplify noticeabl

Re: [PATCH v3 2/5] KVM: MMU: check guest CR3 reserved bits based on its physical address width.

2017-08-24 Thread Yu Zhang
On 8/24/2017 11:50 PM, Paolo Bonzini wrote: On 24/08/2017 17:23, Yu Zhang wrote: static inline u64 rsvd_bits(int s, int e) { +if (e < s) +return 0; + return ((1ULL << (e - s + 1)) - 1) << s; } e = s - 1 is already supported; why do you need e <= s - 2? Sorry? I

Re: [PATCH net-next 09/13] net: mvpp2: dynamic reconfiguration of the PHY mode

2017-08-24 Thread Andrew Lunn
On Thu, Aug 24, 2017 at 05:52:41PM +0200, Antoine Tenart wrote: > Hi Andrew, > > On Thu, Aug 24, 2017 at 04:56:09PM +0200, Andrew Lunn wrote: > > On Thu, Aug 24, 2017 at 10:38:19AM +0200, Antoine Tenart wrote: > > > This patch adds logic to reconfigure the comphy/gop when the link status > > > cha

Re: [PATCH 1/4] KVM: VMX: cache secondary exec controls

2017-08-24 Thread Jim Mattson
On the subject of complexity, why do we clear CPUID.(EAX=07H,ECX=0):EBX.INVPCID[bit 10] when CPUID.01H:ECX.PCID[bit 17] is clear? Sure, it would be odd to support the INVPCID instruction without also supporting PCIDs, but why single out this one check? Isn't it equally bizarre to support SSE2 witho

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