Re: [PATCH v2 2/6] x86/mm/pat: Add pat_disable() interface

2016-03-22 Thread Borislav Petkov
On Wed, Mar 16, 2016 at 06:46:55PM -0600, Toshi Kani wrote: > In preparation to fix a regression caused by 'commit 9cd25aac1f44 > ("x86/mm/pat: Emulate PAT when it is disabled")', PAT needs to > provide an interface that disables the OS to initialize PAT MSR. prevents the O

Re: [PATCH v2 3/6] x86/mtrr: Fix Xorg crashes in Qemu sessions

2016-03-22 Thread Borislav Petkov
On Wed, Mar 16, 2016 at 06:46:56PM -0600, Toshi Kani wrote: > A Xorg failure on qemu32 was reported as a regression caused > by 'commit 9cd25aac1f44 ("x86/mm/pat: Emulate PAT when it is > disabled")'. [1] This patch fixes the regression. I hope so. > Negative effects of this regression were two

Re: [PATCH v2 4/6] x86/mtrr: Fix PAT init handling when MTRR MSR is disabled

2016-03-22 Thread Borislav Petkov
Subject: [PATCH v2 4/6] x86/mtrr: Fix PAT init handling when MTRR MSR is disabled s/ MSR// On Wed, Mar 16, 2016 at 06:46:57PM -0600, Toshi Kani wrote: > get_mtrr_state() calls pat_init() on BSP even if MTRR is disabled > by its MSR. s/by its MSR// > This causes pat_init() to be called on BSP o

Re: [PATCH v2 5/6] x86/xen,pat: Remove PAT table init code from Xen

2016-03-22 Thread Borislav Petkov
On Wed, Mar 16, 2016 at 06:46:58PM -0600, Toshi Kani wrote: > Xen supports PAT without MTRR for its guests. In order to > enable WC attribute, it was necessary for xen_start_kernel() > to call pat_init_cache_modes() to update PAT table before > starting guest kernel. > > Now that the kernel initi

Re: [PATCH v2 6/6] x86/pat: Document PAT initializations

2016-03-22 Thread Borislav Petkov
On Wed, Mar 16, 2016 at 06:46:59PM -0600, Toshi Kani wrote: > Update PAT documentation to describe how PAT is initialized under > various configurations. > > Signed-off-by: Toshi Kani > Cc: Borislav Petkov > Cc: Luis R. Rodriguez > Cc: Juergen Gross > Cc: Ingo Molnar > Cc: H. Peter Anvin > C

Re: [PATCH v4] iio: potentiometer: add driver for Microchip MCP413X/414X/415X/416X/423X/424X/425X/426X

2016-03-22 Thread Slawomir Stepien
On Mar 22, 2016 17:10, Joachim Eastwood wrote: > Hi Slawomir, > > On 22 March 2016 at 16:44, Slawomir Stepien wrote: > > The following functionalities are supported: > > - write, read from volatile memory > > > > Datasheet: http://ww1.microchip.com/downloads/en/DeviceDoc/22060b.pdf > > > > Signe

Re: [PATCH v5 3/6] ACPI: parse SPCR and enable matching console

2016-03-22 Thread Aleksey Makarov
On 03/22/2016 07:07 PM, Peter Hurley wrote: > On 03/22/2016 04:09 AM, Andy Shevchenko wrote: >> On Tue, Mar 22, 2016 at 12:46 PM, Aleksey Makarov >> wrote: >>> + sprintf(opts, "%s,%s,0x%llx,%d", uart, iotype, >>> + table->serial_port.address, baud_rate); >> >> You may use sn

[PATCH] TTY: n_gsm, fix false positive WARN_ON

2016-03-22 Thread Jiri Slaby
Dmitry reported, that the current cleanup code in n_gsm can trigger a warning: WARNING: CPU: 2 PID: 24238 at drivers/tty/n_gsm.c:2048 gsm_cleanup_mux+0x166/0x6b0() ... Call Trace: ... [] warn_slowpath_null+0x29/0x30 kernel/panic.c:490 [] gsm_cleanup_mux+0x166/0x6b0 drivers/tty/n_gsm.c:2048 [] g

Re: [PATCH v5 3/6] ACPI: parse SPCR and enable matching console

2016-03-22 Thread Aleksey Makarov
On 03/22/2016 07:51 PM, Yury Norov wrote: > On Tue, Mar 22, 2016 at 07:57:04AM -0700, Peter Hurley wrote: > > [...] > +static bool init_earlycon; + +void __init init_spcr_earlycon(void) +{ + init_earlycon = true; +} + >>> >>> 1. I see you keep in mind multipl

Re: [PATCH v5 6/6] serial: pl011: add EARLYCON_DECLARE

2016-03-22 Thread Aleksey Makarov
On 03/22/2016 07:15 PM, Peter Hurley wrote: > On 03/22/2016 03:46 AM, Aleksey Makarov wrote: >> This patch adds definition of early console data for pl011. >> It allows setting up an early console with a string passed in >> command line or compiled by the ACPI SPCR table handler. > > This shouldn

RE: [PATCH 3/5] Drivers: hv: vmbus: Fix a bug in hv_need_to_signal_on_read()

2016-03-22 Thread KY Srinivasan
> -Original Message- > From: KY Srinivasan > Sent: Tuesday, March 22, 2016 7:37 AM > To: 'Vitaly Kuznetsov' > Cc: gre...@linuxfoundation.org; linux-kernel@vger.kernel.org; > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; > jasow...@redhat.com; sta...@vger.kernel.org >

[PATCH v3 2/4] nmi_backtrace: do a local dump_stack() instead of a self-NMI

2016-03-22 Thread Chris Metcalf
Currently on arm there is code that checks whether it should call dump_stack() explicitly, to avoid trying to raise an NMI when the current context is not preemptible by the backtrace IPI. Similarly, the forthcoming arch/tile support uses an IPI mechanism that does not support generating an NMI to

[PATCH v3 3/4] arch/tile: adopt the new nmi_backtrace framework

2016-03-22 Thread Chris Metcalf
Previously tile was rolling its own method of capturing backtrace data in the NMI handlers, but it was relying on running printk() from the NMI handler, which is not always safe. So adopt the nmi_backtrace model (with the new cpumask extension) instead. So we can call the nmi_backtrace code direc

Re: [PATCH v5 3/6] ACPI: parse SPCR and enable matching console

2016-03-22 Thread Peter Hurley
On 03/22/2016 10:04 AM, Aleksey Makarov wrote: > > > On 03/22/2016 07:07 PM, Peter Hurley wrote: >> On 03/22/2016 04:09 AM, Andy Shevchenko wrote: >>> On Tue, Mar 22, 2016 at 12:46 PM, Aleksey Makarov >>> wrote: > + sprintf(opts, "%s,%s,0x%llx,%d", uart, iotype, +

Re: [PATCH v3 4/4] nmi_backtrace: generate one-line reports for idle cpus

2016-03-22 Thread Peter Zijlstra
On Tue, Mar 22, 2016 at 01:19:39PM -0400, Chris Metcalf wrote: > When doing an nmi backtrace of many cores, most of which are idle, > the output is a little overwhelming and very uninformative. Suppress > messages for cpus that are idling when they are interrupted and just > emit one line, "NMI ba

Re: [PATCH] sound/usb: fix to release stream resources from media_snd_device_delete()

2016-03-22 Thread Shuah Khan
On 03/22/2016 07:03 AM, Shuah Khan wrote: > On 03/21/2016 10:01 PM, Shuah Khan wrote: >> On 03/19/2016 07:31 AM, Shuah Khan wrote: >>> On 03/19/2016 06:10 AM, Mauro Carvalho Chehab wrote: Em Fri, 18 Mar 2016 20:50:31 -0600 Shuah Khan escreveu: > Fix to release stream resources f

Re: [PATCH v5 3/6] ACPI: parse SPCR and enable matching console

2016-03-22 Thread Peter Hurley
On 03/22/2016 09:51 AM, Yury Norov wrote: > On Tue, Mar 22, 2016 at 07:57:04AM -0700, Peter Hurley wrote: > > [...] > +static bool init_earlycon; + +void __init init_spcr_earlycon(void) +{ + init_earlycon = true; +} + >>> >>> 1. I see you keep in mind multiple

[PATCH v3 1/4] nmi_backtrace: add more trigger_*_cpu_backtrace() methods

2016-03-22 Thread Chris Metcalf
Currently you can only request a backtrace of either all cpus, or all cpus but yourself. It can also be helpful to request a remote backtrace of a single cpu, and since we want that, the logical extension is to support a cpumask as the underlying primitive. This change modifies the existing lib/n

[PATCH v3 4/4] nmi_backtrace: generate one-line reports for idle cpus

2016-03-22 Thread Chris Metcalf
When doing an nmi backtrace of many cores, most of which are idle, the output is a little overwhelming and very uninformative. Suppress messages for cpus that are idling when they are interrupted and just emit one line, "NMI backtrace for N skipped: idling at pc 0xNNN". We do this by grouping all

[PATCH v3 0/4] improvements to the nmi_backtrace code

2016-03-22 Thread Chris Metcalf
>From the version 1 cover letter: This patch series modifies the trigger_xxx_backtrace() NMI-based remote backtracing code to make it more flexible, and makes a few small improvements along the way. The motivation comes from the task isolation code, where there are scenarios where we wa

[PATCH] dlm: config: Fix ENOMEM failures in make_cluster()

2016-03-22 Thread Andrew Price
Commit 1ae1602de0 "configfs: switch ->default groups to a linked list" left the NULL gps pointer behind after removing the kcalloc() call which made it non-NULL. It also left the !gps check in place so make_cluster() now fails with ENOMEM. Remove the remaining uses of the gps variable to fix that.

Re: [PATCH] ath9k: fix checkpatch.pl identation and sapce errors.

2016-03-22 Thread Joe Perches
On Tue, 2016-03-22 at 12:23 +0530, Ashwini Singh wrote: > Signed-off-by: Ashwini Singh It might be better to break this into a few different patches. o Remove trailing whitespace o Fix vertical line / brace location o Multi-line statement parenthesis alignment o Space to tab conversions o Whites

Re: [PATCH] sound/usb: fix to release stream resources from media_snd_device_delete()

2016-03-22 Thread Mauro Carvalho Chehab
Em Tue, 22 Mar 2016 11:29:34 -0600 Shuah Khan escreveu: > On 03/22/2016 07:03 AM, Shuah Khan wrote: > > On 03/21/2016 10:01 PM, Shuah Khan wrote: > >> On 03/19/2016 07:31 AM, Shuah Khan wrote: > >>> On 03/19/2016 06:10 AM, Mauro Carvalho Chehab wrote: > Em Fri, 18 Mar 2016 20:50:31 -06

Re: [PATCH] arm64/dma-mapping: Add DMA_ATTR_ALLOC_SINGLE_PAGES support

2016-03-22 Thread Doug Anderson
Will, On Mon, Mar 21, 2016 at 11:01 AM, Will Deacon wrote: > On Thu, Mar 03, 2016 at 02:54:26AM +0800, Yong Wu wrote: >> Sometimes it is not worth for the iommu allocating big chunks. >> Here we enable DMA_ATTR_ALLOC_SINGLE_PAGES which could help avoid to >> allocate big chunks while iommu alloca

Re: rcu_preempt self-detected stall on CPU from 4.5-rc3, since 3.17

2016-03-22 Thread Paul E. McKenney
On Tue, Mar 22, 2016 at 04:35:32PM +, Chatre, Reinette wrote: > Hi Paul, Hello, Reinette! > On 2016-03-21, Paul E. McKenney wrote: > > On Mon, Mar 21, 2016 at 09:22:30AM -0700, Jacob Pan wrote: > >> On Fri, 18 Mar 2016 16:56:41 -0700 > >> "Paul E. McKenney" wrote: > >>> On Fri, Mar 18, 2016

Re: [PATCH v5 6/6] serial: pl011: add EARLYCON_DECLARE

2016-03-22 Thread Peter Hurley
On 03/22/2016 10:09 AM, Aleksey Makarov wrote: > > On 03/22/2016 07:15 PM, Peter Hurley wrote: >> On 03/22/2016 03:46 AM, Aleksey Makarov wrote: >>> This patch adds definition of early console data for pl011. >>> It allows setting up an early console with a string passed in >>> command line or com

[PATCH v2] Drivers: hv: vmbus: handle various crash scenarios

2016-03-22 Thread Vitaly Kuznetsov
Kdump keeps biting. Turns out CHANNELMSG_UNLOAD_RESPONSE is always delivered to the CPU which was used for initial contact or to CPU0 depending on host version. vmbus_wait_for_unload() doesn't account for the fact that in case we're crashing on some other CPU we won't get the CHANNELMSG_UNLOAD_RESP

[PATCH v3 3/3] locking/mutex: Avoid missed wakeup of mutex waiter

2016-03-22 Thread Waiman Long
The current mutex code sets count to -1 and then sets the task state. This is the same sequence that the mutex unlock path is checking count and task state. That could lead to a missed wakeup even though the problem will be cleared when a new waiter enters the waiting queue. This patch reverses th

Re: [PATCH] crypto: sun4i-ss: use spin_lock_irq{save|restore}

2016-03-22 Thread Corentin LABBE
Le 22/03/2016 17:04, LABBE Corentin a écrit : > The current sun4i-ss driver is subject to data corruption when > ciphering/deciphering. > It occurs randomly on end of handled data. > No root cause have been found and the only way to remove it is to replace > all spin_lock_bh by they irq counterpart

[PATCH v3 1/3] locking/mutex: Add waiter parameter to mutex_optimistic_spin()

2016-03-22 Thread Waiman Long
This patch adds a new waiter parameter to the mutex_optimistic_spin() function to prepare it to be used by a waiter-spinner that doesn't need to go into the OSQ as there can only be one waiter-spinner which is the head of the waiting queue. Signed-off-by: Waiman Long --- kernel/locking/mutex.c |

[PATCH v3 2/3] locking/mutex: Enable optimistic spinning of woken task in wait queue

2016-03-22 Thread Waiman Long
Ding Tianhong reported a live-lock situation where a constant stream of incoming optimistic spinners blocked a task in the wait list from getting the mutex. This patch attempts to fix this live-lock condition by enabling the woken task in the wait queue to enter into an optimistic spinning loop it

[PATCH v3 0/3] locking/mutex: Enable optimistic spinning of lock waiter

2016-03-22 Thread Waiman Long
v2->v3: - Remove patch 4 as it is not useful. - Allow need_resched() check for waiter & add more comments about changes to address issues raised by PeterZ. v1->v2: - Set task state to running before doing optimistic spinning. - Add 2 more patches to handle possible missed wakeups and wastef

Re: [PATCH v13 2/2] drm/bridge: Add I2C based driver for ps8640 bridge

2016-03-22 Thread Daniel Kurtz
Hi Jitao, This patch looks really good now. Just saw small nits below. Other than these small items, for the series: Reviewed-by: Daniel Kurtz On Thu, Mar 17, 2016 at 9:15 AM, Jitao Shi wrote: > This patch adds drm_bridge driver for parade DSI to eDP bridge chip. > > Signed-off-by: Jitao Shi

[PATCH 1/6] block: ensure we don't truncate top bits of the request command flags

2016-03-22 Thread Jens Axboe
Some of the flags that we want to use from the make_request_fn path are now larger than 32-bit, so change the functions involved to accept an u64 instead of an unsigned int. Signed-off-by: Jens Axboe --- block/blk-core.c | 7 --- block/cfq-iosched.c | 2 +- block/elevator.c

[PATCH 5/6] NVMe: inform block layer of write cache state

2016-03-22 Thread Jens Axboe
This isn't quite correct, since the VWC merely states if a potential write back cache is volatile or not. But for the purpose of write absortion, it's good enough. Signed-off-by: Jens Axboe --- drivers/nvme/host/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/nvme/host/core.c

[PATCH 2/6] writeback: wb_start_writeback() should use WB_SYNC_ALL for WB_REASON_SYNC

2016-03-22 Thread Jens Axboe
If you call sync, the initial call to wakeup_flusher_threads() ends up calling wb_start_writeback() with reason=WB_REASON_SYNC, but wb_start_writeback() always uses WB_SYNC_NONE as the writeback mode. Ensure that we use WB_SYNC_ALL for a sync operation. Signed-off-by: Jens Axboe --- fs/fs-writeb

[PATCH 3/6] block: add ability to flag write back caching on a device

2016-03-22 Thread Jens Axboe
Add an internal helper and flag for setting whether a queue has write back caching, or write through (or none). Add a sysfs file to show this as well, and make it changeable from user space. Signed-off-by: Jens Axboe --- block/blk-settings.c | 11 +++ block/blk-sysfs.c | 40 ++

[PATCH 4/6] sd: inform block layer of write cache state

2016-03-22 Thread Jens Axboe
Signed-off-by: Jens Axboe --- drivers/scsi/sd.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index 5a5457ac9cdb..049f424fb4ad 100644 --- a/drivers/scsi/sd.c +++ b/drivers/scsi/sd.c @@ -192,6 +192,7 @@ cache_type_store(struct device

Re: [PATCH 1/2] of: Implement iterator for phandles

2016-03-22 Thread Joerg Roedel
Hi Rob, On Fri, Mar 18, 2016 at 10:54:57AM -0500, Rob Herring wrote: > This mostly looks fine to me, but it is kind of a lot of functions > just for this one thing. For example, I think the caller can track the > index themselves if they care about it. I'd also like to see a more > standard style

[PATCH 6/6] writeback: throttle buffered writeback

2016-03-22 Thread Jens Axboe
Test patch that throttles buffered writeback to make it a lot more smooth, and has way less impact on other system activity. Background writeback should be, by definition, background activity. The fact that we flush huge bundles of it at the time means that it potentially has heavy impacts on foreg

[PATCHSET][RFC] Make background writeback not suck

2016-03-22 Thread Jens Axboe
This patchset isn't as much a final solution, as it's demonstration of what I believe is a huge issue. Since the dawn of time, our background buffered writeback has sucked. When we do background buffered writeback, it should have little impact on foreground activity. That's the definition of backgr

Re: module: preserve Elf information for livepatch modules

2016-03-22 Thread Jessica Yu
+++ Josh Poimboeuf [21/03/16 09:06 -0500]: On Wed, Mar 16, 2016 at 03:47:04PM -0400, Jessica Yu wrote: For livepatch modules, copy Elf section, symbol, and string information from the load_info struct in the module loader. Persist copies of the original symbol table and string table. Livepatch

Re: [PATCH 1/9] sched: add schedule_timeout_idle()

2016-03-22 Thread Johannes Weiner
On Tue, Mar 22, 2016 at 02:22:49PM +0100, Peter Zijlstra wrote: > On Tue, Mar 22, 2016 at 02:08:23PM +0100, Michal Hocko wrote: > > On Tue 22-03-16 13:51:13, Peter Zijlstra wrote: > > If that sounds like a more appropriate plan I won't object. I can simply > > change my patch to do __set_current_st

[PATCH 4/6] of: Introduce of_for_each_phandle() helper macro

2016-03-22 Thread Joerg Roedel
From: Joerg Roedel With this macro any user can easily iterate over a list of phandles. The patch also converts __of_parse_phandle_with_args() to make use of the macro. The of_count_phandle_with_args() function is not converted, because the macro hides the return value of of_phandle_iterator_ini

[PATCH 0/6] of: Implement iterator for phandles

2016-03-22 Thread Joerg Roedel
Hi, here is an implementation of the iterator over phandles concept which Rob Herring suggested to me some time ago. My approach is a little bit different from what the diff showed back then, but it gets rid of the allocation and 'struct 'struct of_phandle_args' misuse. I also converted the arm-s

[PATCH 3/6] of: Remove counting special case from __of_parse_phandle_with_args()

2016-03-22 Thread Joerg Roedel
From: Joerg Roedel The index = -1 case in __of_parse_phandle_with_args() is used to just return the number of phandles. That special case needs extra handling, so move it to the place where it is needed: of_count_phandle_with_args(). This allows to further simplify __of_parse_phandle_with_args()

[PATCH 5/6] of: Introduce of_phandle_iterator_args()

2016-03-22 Thread Joerg Roedel
From: Joerg Roedel This helper function can be used to copy the arguments of a phandle to an array. Signed-off-by: Joerg Roedel --- drivers/of/base.c | 29 +++-- include/linux/of.h | 10 ++ 2 files changed, 33 insertions(+), 6 deletions(-) diff --git a/drivers

[PATCH 1/6] of: Introduce struct of_phandle_iterator

2016-03-22 Thread Joerg Roedel
From: Joerg Roedel This struct carrys all necessary information to iterate over a list of phandles and extract the arguments. Add an init-function for the iterator and make use of it in __of_parse_phandle_with_args(). Signed-off-by: Joerg Roedel --- drivers/of/base.c | 99

[PATCH 6/6] iommu/arm-smmu: Make use of phandle iterators in device-tree parsing

2016-03-22 Thread Joerg Roedel
From: Joerg Roedel Remove the usage of of_parse_phandle_with_args() and replace it by the phandle-iterator implementation so that we can parse out all of the potentially present 128 stream-ids. Signed-off-by: Joerg Roedel --- drivers/iommu/arm-smmu.c | 28 ++-- 1 file c

[PATCH 2/6] of: Move phandle walking to of_phandle_iterator_next()

2016-03-22 Thread Joerg Roedel
From: Joerg Roedel Move the code to walk over the phandles out of the loop in __of_parse_phandle_with_args() to a separate function that just works with the iterator handle: of_phandle_iterator_next(). Signed-off-by: Joerg Roedel --- drivers/of/base.c | 130 ++-

[GIT PULL] xen: features and fixes for 4.6-rc0

2016-03-22 Thread David Vrabel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Linus, Please git pull the following tag: git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git for-linus-4.6-rc0-tag xen: features and fixes for 4.6-rc0 - - Make earlyprintk=xen work for HVM guests. - - Remove module support for things neve

[PATCH 1/2] perf, tools: Document event specifications better

2016-03-22 Thread Andi Kleen
From: Andi Kleen Document some undocumented features for specifying events in the perf list manpage: - Event groups - Leader sampling - How to specify raw PMU events in the new syntax - Global versus per process PMUs. - Access restrictions - Fix Intel SDM URL v2: Lots of new content. address re

[GIT PULL] target updates for v4.6-rc1

2016-03-22 Thread Nicholas A. Bellinger
Hello Linus, Here are the target updates for v4.6-rc1 code. Please go ahead and pull from: git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending.git for-next The highlights this round include: - Add target_alloc_session() w/ callback helper for doing se_session allocation +

[PATCH 2/2] perf, tools: Fix documentation of :ppp in perf list

2016-03-22 Thread Andi Kleen
From: Andi Kleen Correctly document what is implemented for :ppp on Intel CPUs in recent kernels. Acked-by: Jiri Olsa Signed-off-by: Andi Kleen --- tools/perf/Documentation/perf-list.txt | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/perf/Documentation/perf-li

Re: [PATCH v2 1/6] x86/mm/pat: Change PAT to support non-default PAT MSR

2016-03-22 Thread Toshi Kani
On Tue, 2016-03-22 at 17:57 +0100, Borislav Petkov wrote: > $Subject is misleading - there's no non-default PAT MSR - the setting is > non-default. Right.  Will change to "Add support of non-default PAT MSR setting at handoff". > On Wed, Mar 16, 2016 at 06:44:57PM -0600, Toshi Kani wrote: > > In

[PULL REQUEST] i2c for 4.6

2016-03-22 Thread Wolfram Sang
Linus, here is the pull request for I2C. Mostly usual driver updates and improvements. The changelog should give an idea. Standing out is the i2c-qup driver with lots of new capabilities and we also have now an i2c-demuxer. I'd especially like to welcome Peter Rosin as the i2c-mux maintainer. He

Re: [PATCH] tools lib api: respect CROSS_COMPILE for the linker

2016-03-22 Thread David Sharp
On Tue, Mar 22, 2016 at 7:42 AM, Arnaldo Carvalho de Melo wrote: > Em Tue, Mar 22, 2016 at 08:50:42AM -0400, Steven Rostedt escreveu: >> On Tue, 22 Mar 2016 08:10:10 +0100 >> Jiri Olsa wrote: >> >> > On Mon, Mar 21, 2016 at 05:40:30PM -0300, Arnaldo Carvalho de Melo wrote: >> > > Em Mon, Mar 21,

Re: [PATCH] dlm: config: Fix ENOMEM failures in make_cluster()

2016-03-22 Thread Christoph Hellwig
On Tue, Mar 22, 2016 at 05:36:34PM +, Andrew Price wrote: > Commit 1ae1602de0 "configfs: switch ->default groups to a linked list" > left the NULL gps pointer behind after removing the kcalloc() call which > made it non-NULL. It also left the !gps check in place so make_cluster() > now fails wi

[GIT PULL] Please pull NFS client changes for Linux 4.6

2016-03-22 Thread Trond Myklebust
Hi Linus, The following changes since commit fc77dbd34c5c99bce46d40a2491937c3bcbd10af:   Linux 4.5-rc6 (2016-02-28 08:41:20 -0800) are available in the git repository at:   git://git.linux-nfs.org/projects/trondmy/linux-nfs.git tags/nfs-for-4.6-1 for you to fetch changes up to f35592a97460f57d

Re: [PATCH 6/6] iommu/arm-smmu: Make use of phandle iterators in device-tree parsing

2016-03-22 Thread Rob Herring
On Tue, Mar 22, 2016 at 12:58 PM, Joerg Roedel wrote: > From: Joerg Roedel > > Remove the usage of of_parse_phandle_with_args() and replace > it by the phandle-iterator implementation so that we can > parse out all of the potentially present 128 stream-ids. > > Signed-off-by: Joerg Roedel > ---

Re: [PATCH 1/2] kexec: Introduce a protection mechanism for the crashkernel reserved memory

2016-03-22 Thread Andrew Morton
On Wed, 23 Dec 2015 19:12:25 +0800 Xunlei Pang wrote: > For the cases that some kernel (module) path stamps the crash > reserved memory(already mapped by the kernel) where has been > loaded the second kernel data, the kdump kernel will probably > fail to boot when panic happens (or even not happe

Re: [PATCH] tools lib api: respect CROSS_COMPILE for the linker

2016-03-22 Thread David Sharp
BTW: s/env/command line/ is true as well, i.e. running: `make CROSS_COMPILE=cross-` On Tue, Mar 22, 2016 at 11:22 AM, David Sharp wrote: > So, note that without allow-override: > - The set default of "gcc" is not respected. > - Setting CC from the env does work. > - Setting CROSS_COMPILE from the

Re: [PATCH 0/6] of: Implement iterator for phandles

2016-03-22 Thread Rob Herring
On Tue, Mar 22, 2016 at 12:58 PM, Joerg Roedel wrote: > Hi, > > here is an implementation of the iterator over phandles > concept which Rob Herring suggested to me some time ago. My > approach is a little bit different from what the diff showed > back then, but it gets rid of the allocation and 's

Re: [PATCH v15 0/6] arm64, numa: Add numa support for arm64 platforms

2016-03-22 Thread Jon Masters
On 03/08/2016 06:59 PM, David Daney wrote: > From: David Daney > > v15: > > - Make the distance-map node optional (again), if it is not in > the device tree, default values are used. > > - Minor cleanups to of_numa.c as suggested by Rob Harring. Hi David, all, Wondering

Re: [PATCH 6/6] iommu/arm-smmu: Make use of phandle iterators in device-tree parsing

2016-03-22 Thread Robin Murphy
Hi Joerg, On 22/03/16 17:58, Joerg Roedel wrote: From: Joerg Roedel Remove the usage of of_parse_phandle_with_args() and replace it by the phandle-iterator implementation so that we can parse out all of the potentially present 128 stream-ids. In a stream-matching implementation, a device may

Re: [PATCH v4 2/3] IB/hns: Add HiSilicon RoCE driver support

2016-03-22 Thread Christoph Hellwig
> drivers/infiniband/Kconfig |1 + > drivers/infiniband/hw/Makefile |1 + > drivers/infiniband/hw/hisilicon/hns/Kconfig| 10 + To fit in with the other drivers drop the hisilicon level of the directory hierarchy. Haven't had time to lo

Re: [PATCH 3/6] block: add ability to flag write back caching on a device

2016-03-22 Thread Christoph Hellwig
On Tue, Mar 22, 2016 at 11:55:17AM -0600, Jens Axboe wrote: > Add an internal helper and flag for setting whether a queue has > write back caching, or write through (or none). Add a sysfs file > to show this as well, and make it changeable from user space. We do this by passing the REQ_FLUSH flag

Re: [PATCH 1/6] block: ensure we don't truncate top bits of the request command flags

2016-03-22 Thread Christoph Hellwig
On Tue, Mar 22, 2016 at 11:55:15AM -0600, Jens Axboe wrote: > Some of the flags that we want to use from the make_request_fn path > are now larger than 32-bit, so change the functions involved to > accept an u64 instead of an unsigned int. When did we start doing that? We really should merge Mike

Re: livepatch: reuse module loader code to write relocations

2016-03-22 Thread Jessica Yu
+++ Jiri Kosina [21/03/16 23:02 +0100]: On Mon, 21 Mar 2016, Josh Poimboeuf wrote: According to my test that still results in the literal value of "(64 - 8)". Alright. But we should be able to special-case it with a two #if checks on the __SIZEOF_LONG__ value and BUILD_BUG_ON() when __SIZEOF_

Re: [PATCH 3/6] block: add ability to flag write back caching on a device

2016-03-22 Thread Jens Axboe
On 03/22/2016 12:57 PM, Christoph Hellwig wrote: On Tue, Mar 22, 2016 at 11:55:17AM -0600, Jens Axboe wrote: Add an internal helper and flag for setting whether a queue has write back caching, or write through (or none). Add a sysfs file to show this as well, and make it changeable from user spa

Re: vhost threading model

2016-03-22 Thread Bandan Das
"Michael Rapoport" writes: ... > > Well, Elvis is a _theoretical_ example that showed that I/O scheduling in > the vhost improves performance. > I'm not saying we should take Evlis and try to squeeze it into the vhost, > I just want to say that we cannot switch vhost to use workqueues if it > c

Re: [PATCH 1/6] block: ensure we don't truncate top bits of the request command flags

2016-03-22 Thread Jens Axboe
On 03/22/2016 12:59 PM, Christoph Hellwig wrote: On Tue, Mar 22, 2016 at 11:55:15AM -0600, Jens Axboe wrote: Some of the flags that we want to use from the make_request_fn path are now larger than 32-bit, so change the functions involved to accept an u64 instead of an unsigned int. When did we

Re: module: preserve Elf information for livepatch modules

2016-03-22 Thread Josh Poimboeuf
On Tue, Mar 22, 2016 at 01:57:01PM -0400, Jessica Yu wrote: > +++ Josh Poimboeuf [21/03/16 09:06 -0500]: > >On Wed, Mar 16, 2016 at 03:47:04PM -0400, Jessica Yu wrote: > >>For livepatch modules, copy Elf section, symbol, and string information > >>from the load_info struct in the module loader. Per

Re: [RFC 1/4] perf kvm: Enable 'record' on powerpc

2016-03-22 Thread Arnaldo Carvalho de Melo
Em Wed, Feb 24, 2016 at 02:37:42PM +0530, Ravi Bangoria escreveu: > 'perf kvm record' is not available on powerpc because 'perf' relies on > the 'cycles' event (a PMU event) to profile the guest. However, for > powerpc, this can't be used from the host because the PMUs are controlled > by the guest

Re: [PATCH v2 1/6] x86/mm/pat: Change PAT to support non-default PAT MSR

2016-03-22 Thread Thomas Gleixner
On Tue, 22 Mar 2016, Borislav Petkov wrote: > > +static void pat_keep_handoff_state(void) > > Static function, no need for "pat_" prefix. Also, no need for the > kernel-doc comment. I have to disagree. kernel-doc comments are not limited to global functions. I realy prefer kernel-doc style for s

Re: [PATCH v14 0/17] Add Analogix Core Display Port Driver

2016-03-22 Thread Javier Martinez Canillas
Hello, On 03/18/2016 07:53 PM, Doug Anderson wrote: > Hi, > > On Thu, Mar 17, 2016 at 11:41 PM, Caesar Wang > wrote: >> Hi all, >> >> I pick this series up and test on C101PA chromebook, after Heiko update the >> 3 patches. >> >> [v14.1,09/17] drm: rockchip: dp: add rockchip platform dp driver

Re: [PATCH v4 2/2] mm, thp: avoid unnecessary swapin in khugepaged

2016-03-22 Thread Rik van Riel
On Mon, 2016-03-21 at 16:36 +0100, Michal Hocko wrote: > On Sun 20-03-16 20:07:39, Ebru Akagunduz wrote: > > > > Currently khugepaged makes swapin readahead to improve > > THP collapse rate. This patch checks vm statistics > > to avoid workload of swapin, if unnecessary. So that > > when system un

Re: [PATCH 2/2] ARM: dts: exynos: Enable SSS on Trats2

2016-03-22 Thread Tobias Jakobi
Hello Krzysztof, you can also add the node to the exynos4412-odroid-common dtsi. I have checked that it works properly on an X2. Thanks for patches and fixing that alignment issue! With best wishes, Tobias Krzysztof Kozlowski wrote: > Enable the Security SubSystem (SSS) on Trats2 (Exynos4412)

Re: [RFT PATCH 2/2] Revert "usb: dwc2: Fix probe problem on bcm2835"

2016-03-22 Thread John Youn
On 3/18/2016 10:21 PM, Doug Anderson wrote: > Hi, > > On Wed, Mar 16, 2016 at 11:28 AM, John Youn wrote: >> On 3/10/2016 11:14 AM, John Youn wrote: >>> On 3/9/2016 11:06 AM, Doug Anderson wrote: Stefan, On Wed, Mar 9, 2016 at 11:01 AM, Stefan Wahren wrote: > >> Doug

Re: [PATCH 0/3] ARM: OMAP3: Fix McBSP2/3 hwmod setup for sidetone

2016-03-22 Thread Tony Lindgren
* Peter Ujfalusi [160322 01:54]: > Tony, > > On 03/21/16 22:21, Tony Lindgren wrote: > > Hi, > > > > * Peter Ujfalusi [160321 01:39]: > >> > >> This is also interesting: > >> McBSP2 sidetone is in region 39 and 40 (module and L4 interconnect) which > >> is > >> unique in case of OMAP34xx and O

[PATCH v3 0/3] scsi: reduce CONFIG_SCSI_CONSTANTS=y impact by 8k

2016-03-22 Thread Rasmus Villemoes
This is mostly identical to v2 sent in November, rebased (cleanly) to current mainline. The only change is that I've this time also updated the Kconfig help text in 3/3, since the 75 KB was a bit exaggerated. After these patches are applied, the impact of choosing CONFIG_SCSI_CONSTANTS=y is about 3

[PATCH v3 3/3] scsi: reduce CONFIG_SCSI_CONSTANTS=y impact by 8k

2016-03-22 Thread Rasmus Villemoes
On 64 bit, struct error_info has 6 bytes of padding, which amounts to over 4k of wasted space in the additional[] array. We could easily get rid of that by instead using separate arrays for the codes and the pointers. However, we can do even better than that and save an additional 6 bytes per entry

[PATCH v3 2/3] scsi: move Additional Sense Codes to separate file

2016-03-22 Thread Rasmus Villemoes
This is a purely mechanical move of the list of additional sense codes to a separate file, in preparation for reducing the impact of choosing CONFIG_SCSI_CONSTANTS=y by about 8k. Signed-off-by: Rasmus Villemoes Reviewed-by: Hannes Reinecke --- drivers/scsi/constants.c | 830 +-

[PATCH v3 1/3] scsi: make some Additional Sense strings more grep'able

2016-03-22 Thread Rasmus Villemoes
There's little point in breaking these strings over multiple lines. Signed-off-by: Rasmus Villemoes Reviewed-by: Hannes Reinecke --- drivers/scsi/constants.c | 27 +-- 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/drivers/scsi/constants.c b/drivers/scsi/

Re: [PATCH] net: phy: at803x: don't depend on GPIOLIB

2016-03-22 Thread Uwe Kleine-König
Hello Sebastian, On Tue, Mar 22, 2016 at 03:34:23PM +0100, Sebastian Frias wrote: > I think we are in a deadlock :-) > I'm going to reply inline below, but I will also send a different email > to Daniel with a small recap. > I think he should share the intent of the "reset" mechanism he > introduc

Re: [RFT PATCH 2/2] Revert "usb: dwc2: Fix probe problem on bcm2835"

2016-03-22 Thread Doug Anderson
John, On Tue, Mar 22, 2016 at 12:26 PM, John Youn wrote: > Thanks for the debug logs and everyones help. > > After reviewing with our hardware engineers, it seems this is likely > to do with the IDDIG debounce filtering when switching between > modes. You can see if this is enabled in your core b

Re: [PATCH 4/5] net: sxgbe: fix error paths in sxgbe_platform_probe()

2016-03-22 Thread Rasmus Villemoes
ping^2 On Tue, Mar 08 2016, Rasmus Villemoes wrote: > ping > > On Tue, Feb 09 2016, Rasmus Villemoes wrote: > >> We need to use post-decrement to ensure that irq_dispose_mapping is >> also called on priv->rxq[0]->irq_no; moreover, if one of the above for >> loops failed already at i==0 (so we r

Re: [PATCH V2 net 00/10] net: hns: bugs fixed for hns

2016-03-22 Thread David Miller
From: Yisen Zhuang Date: Tue, 22 Mar 2016 16:06:21 +0800 > This series includes some bug fixes and updates for hns driver. > >>from Daode, one fix about mss. > >>from Kejian, one fix about ping6 issue, one fix about mac address setting, > two fix for RSS setting, two fix about mtu setting. > >

[PATCH next 2/2] PCI: keystone: remove unnecessary goto statement

2016-03-22 Thread Murali Karicheri
Fix the misuse of goto statement in ks_pcie_get_irq_controller_info() as simple return is more appropriate for this function. While at it add an error log for absence of interrupt controller node. Signed-off-by: Murali Karicheri Cc: Rob Herring Cc: Pawel Moll Cc: Mark Rutland Cc: Ian Campbell

[PATCH next 1/2] PCI: keystone: add pci error irq handler

2016-03-22 Thread Murali Karicheri
Keystone PCI hardware generates error interrupts at RC using platform irq instead of standard msi/legacy irq. Add a simple error handler that logs the fatal interrupt status to the console. Signed-off-by: Murali Karicheri Cc: Rob Herring Cc: Pawel Moll Cc: Mark Rutland Cc: Ian Campbell Cc: Ku

Re: [PATCH v4 19/20] x86, kaslr: Allow random address to be below loaded address

2016-03-22 Thread Kees Cook
On Tue, Mar 22, 2016 at 12:32 AM, Baoquan He wrote: > From: Yinghai Lu > > Now new randomized output can only be chosen from regions above loaded > address. In this case, for bootloaders like kexec which always loads > kernel near the end of ram, it doesn't do randomization at all. Or kernel > is

RE: [PATCH 1/1] scsi: storvsc: Support manual scan of FC hosts on Hyper-V

2016-03-22 Thread KY Srinivasan
> -Original Message- > From: KY Srinivasan > Sent: Sunday, March 20, 2016 11:59 AM > To: 'James Bottomley' ; Martin > K. Petersen > Cc: Christoph Hellwig ; gre...@linuxfoundation.org; > linux-kernel@vger.kernel.org; de...@linuxdriverproject.org; > oher...@suse.com; jbottom...@parallels.c

Re: [PATCH 6/6] writeback: throttle buffered writeback

2016-03-22 Thread Jeff Moyer
Hi, Jens, Jens Axboe writes: > If the device has write back caching, 'wb_cache_delay' delays by > this amount of usecs when a write completes before allowing more. What's the reason behind that? Thanks! Jeff

Re: [PATCH 13/71] nvdimm: get rid of PAGE_CACHE_* and page_cache_{get,release} macros

2016-03-22 Thread Ross Zwisler
On Sun, Mar 20, 2016 at 09:40:20PM +0300, Kirill A. Shutemov wrote: > PAGE_CACHE_{SIZE,SHIFT,MASK,ALIGN} macros were introduced *long* time ago > with promise that one day it will be possible to implement page cache with > bigger chunks than PAGE_SIZE. > > This promise never materialized. And unli

[PATCH v2] drm/virtio: send vblank event after crtc updates

2016-03-22 Thread Gustavo Padovan
From: Gustavo Padovan virtio_gpu was failing to send vblank events when using the atomic IOCTL with the DRM_MODE_PAGE_FLIP_EVENT flag set. This patch fixes each and enables atomic pageflips updates. Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/virtio/virtgpu_display.c | 12

Re: [PATCH 2/2] [media] exynos4-is: FIMC port parse should fail if there's no endpoint

2016-03-22 Thread Javier Martinez Canillas
Hello Sylwester, On 03/11/2016 10:03 AM, Sylwester Nawrocki wrote: > On 03/04/2016 09:20 PM, Javier Martinez Canillas wrote: >> The fimc_md_parse_port_node() function return 0 if an endpoint node is >> not found but according to Documentation/devicetree/bindings/graph.txt, >> a port must always ha

Re: [PATCH 6/6] writeback: throttle buffered writeback

2016-03-22 Thread Jens Axboe
On 03/22/2016 02:12 PM, Jeff Moyer wrote: Hi, Jens, Jens Axboe writes: If the device has write back caching, 'wb_cache_delay' delays by this amount of usecs when a write completes before allowing more. What's the reason behind that? For classic write back caching, the cache can absorb a b

Re: [PATCH v3 0/2] AF_VSOCK: Shrink the area influenced by prepare_to_wait

2016-03-22 Thread David Miller
From: Claudio Imbrenda Date: Tue, 22 Mar 2016 17:05:50 +0100 > This patchset applies on net-next. > > I think I found a problem with the patch submitted by Laura Abbott > ( https://lkml.org/lkml/2016/2/4/711 ): we might miss wakeups. > Since the condition is not checked between the prepare_to_wa

OOPS in latest mainline tree null pointer dereference in usb audio probe

2016-03-22 Thread Jon Christopherson
Hello All, The latest mainline code from ~1 hour ago is giving me a oops in the usb audio path: [ 14.985811] BUG: unable to handle kernel NULL pointer dereference at 0014 [ 14.985814] IP: [] usb_audio_probe+0x2cc/0x9a0 [snd_usb_audio] [ 14.985821] PGD 83d6e3067 PUD 83

ERROR: "vring_del_virtqueue" [drivers/misc/mic/vop/vop.ko] undefined!

2016-03-22 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 968f3e374faf41e5e6049399eb7302777a09a1e8 commit: 8810df37762746657cfe84014a8f30758e8f366a misc: mic: Enable VOP debugfs and driver build date: 6 weeks ago config: x86_64-randconfig-x014-03230123 (attached

<    1   2   3   4   5   6   7   8   9   >