Re: [PATCH V6 0/6] Intel memory b/w monitoring support

2016-03-11 Thread Peter Zijlstra
On Sat, Mar 12, 2016 at 01:56:13AM +, Luck, Tony wrote: > Some tracing printk() show that we are calling update_sample() with totally > bogus arguments. > > There are a few good calls, then I see rmid=-380863112 evt_type=-30689 first=0 > > That turns into a wild vrmid, and we fault accessing

Re: [linux-sunxi] Re: [PATCH v8 2/2] ASoc: sun4i-codec: Add FM, Line and Mic inputs

2016-03-11 Thread Danny Milosavljevic
Hi, does anyone know the answer to the questions below? > The other direction (making two controls which both do the same and update > each other's value) doesn't seem to be easily available. > Should I write a _put handler that does it manually? > (Or should that be handled by alsa-lib mixer

Re: [PATCH v10 06/59] PCI: Kill wrong quirk about M7101

2016-03-11 Thread Meelis Roos
> On Thu, Mar 10, 2016 at 9:40 AM, Bjorn Helgaas wrote: > > On Wed, Feb 24, 2016 at 06:11:57PM -0800, Yinghai Lu wrote: > >> Meelis reported that qla2000 driver does not get loaded on one sparc > >> system. > >> > >> schizo f00732d0: PCI host bridge to bus 0001:00 > >> pci_bus 0001:00: root bus r

Re: [PATCH] staging: xgifb: Fix comments style in vb_init.c

2016-03-11 Thread YU Bo
On Fri, Mar 11, 2016 at 01:41:40PM -0800, Kroah-Hartman wrote: On Tue, Feb 23, 2016 at 11:45:18PM -0500, YU Bo wrote: Fix comments to use trailing */ on separate lines. Signed-off-by: YU BO You sent me 2 patches that did different things yet had the same subject line :( Please fix up and re

e827091cb1 "block: merge: get the 1st and last bvec via helpers" broken

2016-03-11 Thread Kent Overstreet
I don't know exactly how it's broken, but with that patch segment counting is broken - I'm seeing blk_rq_map_sg() overrun the end of the sgtable. I suggest reverting it for 4.5...

Re: [PATCH 2/2] block: create ioctl to discard-or-zeroout a range of blocks

2016-03-11 Thread Theodore Ts'o
On Fri, Mar 11, 2016 at 04:44:16PM -0800, Linus Torvalds wrote: > On Fri, Mar 11, 2016 at 4:35 PM, Theodore Ts'o wrote: > > > > At the end of the day it's about whether you trust the userspace > > program or not. > > There's a big difference between "give the user rope", and "tie the > rope in a

Re: [PATCHSET RFC cgroup/for-4.6] cgroup, sched: implement resource group and PRIO_RGRP

2016-03-11 Thread Mike Galbraith
On Fri, 2016-03-11 at 10:41 -0500, Tejun Heo wrote: > Hello, > > This patchset extends cgroup v2 to support rgroup (resource group) for > in-process hierarchical resource control and implements PRIO_RGRP for > setpriority(2) on top to allow in-process hierarchical CPU cycle > control in a seamless

Re: [lustre-devel] [PATCH 07/10] staging: lustre: cleanup comment style for lnet selftest

2016-03-11 Thread Greg Kroah-Hartman
On Fri, Mar 11, 2016 at 10:25:32PM -0800, Greg Kroah-Hartman wrote: > On Fri, Mar 11, 2016 at 10:24:00PM -0800, Greg Kroah-Hartman wrote: > > On Sat, Mar 12, 2016 at 01:39:01AM +, Dilger, Andreas wrote: > > > On 2016/03/11, 18:29, "lustre-devel on behalf of James Simmons" > > > > > jsimm...@in

Re: [lustre-devel] [PATCH 07/10] staging: lustre: cleanup comment style for lnet selftest

2016-03-11 Thread Greg Kroah-Hartman
On Fri, Mar 11, 2016 at 10:24:00PM -0800, Greg Kroah-Hartman wrote: > On Sat, Mar 12, 2016 at 01:39:01AM +, Dilger, Andreas wrote: > > On 2016/03/11, 18:29, "lustre-devel on behalf of James Simmons" > > > jsimm...@infradead.org> wrote: > > > > >Apply a consistent style for comments in the lne

Re: [lustre-devel] [PATCH 07/10] staging: lustre: cleanup comment style for lnet selftest

2016-03-11 Thread Greg Kroah-Hartman
On Sat, Mar 12, 2016 at 01:39:01AM +, Dilger, Andreas wrote: > On 2016/03/11, 18:29, "lustre-devel on behalf of James Simmons" > jsimm...@infradead.org> wrote: > > >Apply a consistent style for comments in the lnet selftest > >code. > > > >Signed-off-by: James Simmons > >--- > > drivers/stag

Re: [PATCHv9 1/3] rdmacg: Added rdma cgroup controller

2016-03-11 Thread Parav Pandit
Hi Tejun, On Sat, Mar 5, 2016 at 10:50 PM, Parav Pandit wrote: > Hi Tejun, > > On Sat, Mar 5, 2016 at 6:22 PM, Tejun Heo wrote: >> Hello, Parav. >> >> On Sat, Mar 05, 2016 at 04:45:09PM +0530, Parav Pandit wrote: >>> Design that remains same from v6 to v10. >>> * spin lock is still fine graine

Re: [PATCH 4.4 34/74] arm64: vmemmap: use virtual projection of linear region

2016-03-11 Thread Greg Kroah-Hartman
On Sat, Mar 12, 2016 at 01:55:44PM +0800, Ard Biesheuvel wrote: > > > > On 12 mrt. 2016, at 13:50, Greg Kroah-Hartman > > wrote: > > > >> On Sat, Mar 12, 2016 at 08:51:26AM +0700, Ard Biesheuvel wrote: > >>> On 8 March 2016 at 20:45, Ard Biesheuvel > >>> wrote: > On 8 March 2016 at 20:4

[PATCH] PM / runtime: Document steps for device removal

2016-03-11 Thread Krzysztof Kozlowski
Put a reminder that during device removal drivers should revert all PM runtime changes from the probe. Also add a note that pm_runtime_disable() won't wait for pending suspend requests if autosuspend is not disabled before. Signed-off-by: Krzysztof Kozlowski --- Documentation/power/runtime_pm.tx

Re: [PATCH 4.4 34/74] arm64: vmemmap: use virtual projection of linear region

2016-03-11 Thread Ard Biesheuvel
> On 12 mrt. 2016, at 13:50, Greg Kroah-Hartman > wrote: > >> On Sat, Mar 12, 2016 at 08:51:26AM +0700, Ard Biesheuvel wrote: >>> On 8 March 2016 at 20:45, Ard Biesheuvel wrote: On 8 March 2016 at 20:44, Greg Kroah-Hartman wrote: > On Tue, Mar 08, 2016 at 05:40:14PM +0700, Ard

Re: [PATCH 4.4 34/74] arm64: vmemmap: use virtual projection of linear region

2016-03-11 Thread Greg Kroah-Hartman
On Sat, Mar 12, 2016 at 08:51:26AM +0700, Ard Biesheuvel wrote: > On 8 March 2016 at 20:45, Ard Biesheuvel wrote: > > On 8 March 2016 at 20:44, Greg Kroah-Hartman > > wrote: > >> On Tue, Mar 08, 2016 at 05:40:14PM +0700, Ard Biesheuvel wrote: > >>> On 8 March 2016 at 07:02, Greg Kroah-Hartman

Re: [PATCH 2/2] Staging: nvec: fix multiline comment style.

2016-03-11 Thread Greg KH
On Sat, Mar 12, 2016 at 10:32:49AM +0530, Neha Rani wrote: > But it was warned by checkpatch.pl and after modifying, no warning. How can it > be wrong? I'll turn it around and ask you how do you know it is correct? :) hint, it isn't, read Documentation/CodingStyle please. thanks, greg k-h

Re: [PATCH 5/5] hwrng: exynos - Disable runtime PM on driver unbind

2016-03-11 Thread Krzysztof Kozlowski
W dniu 11.03.2016 o 16:49, Krzysztof Kozlowski pisze: > Driver enabled runtime PM but did not revert this on removal. Re-binding > of a device triggered warning: > exynos-rng 10830400.rng: Unbalanced pm_runtime_enable! > > Fixes: b329669ea0b5 ("hwrng: exynos - Add support for Exynos random n

Re: [BUG] Device unbound in a resumed state

2016-03-11 Thread Krzysztof Kozlowski
2016-03-12 3:46 GMT+09:00 Alan Stern : > On Fri, 11 Mar 2016, Krzysztof Kozlowski wrote: > >> Hi, >> >> >> Could be related (the same?) with [0]. >> >> I have a driver (hwrng/exynos-rng) which in probe does: >> pm_runtime_set_autosuspend_delay(&pdev->dev, EXYNOS_AUTOSUSPEND_DELAY); >> pm_runtime_us

Re: [PATCH V3] net: ezchip: adapt driver to little endian architecture

2016-03-11 Thread Vineet Gupta
On Friday 04 March 2016 03:50 AM, David Miller wrote: > From: Lada Trimasova > Date: Thu, 3 Mar 2016 17:07:46 +0300 > >> Since ezchip network driver is written with big endian EZChip platform it >> is necessary to add support for little endian architecture. >> >> The first issue is that the orde

Re: [RFC][PATCH v2 1/2] printk: Make printk() completely async

2016-03-11 Thread Sergey Senozhatsky
Hello Tejun, On (03/11/16 12:22), Tejun Heo wrote: > On Tue, Mar 08, 2016 at 07:21:52PM +0900, Sergey Senozhatsky wrote: > > I'd personally prefer to go with the "less dependency" option -- a dedicated > > kthread, I think. mostly for the sake of simplicity. I agree with the point > > that console

Re: [PATCH 1/5] hwrng: exynos - Hide PM functions with __maybe_unused

2016-03-11 Thread Krzysztof Kozlowski
2016-03-11 16:49 GMT+09:00 Krzysztof Kozlowski : > Replace ifdef with __maybe_unused to silence compiler warning on when > SUSPEND=n and PM=y: > > drivers/char/hw_random/exynos-rng.c:166:12: warning: ‘exynos_rng_suspend’ > defined but not used [-Wunused-function] > static int exynos_rng_suspend(s

Re: [PATCH V2] proc-vmcore: wrong data type casting fix

2016-03-11 Thread Dave Young
Hi, Andrew On 03/11/16 at 12:27pm, Andrew Morton wrote: > On Fri, 11 Mar 2016 16:42:48 +0800 Dave Young wrote: > > > On i686 PAE enabled machine the contiguous physical area could be large > > and it can cause trimming down variables in below calculation in > > read_vmcore() and mmap_vmcore(): >

Re: [PATCH v3 01/13] pinctrl: sunxi: Add A83T R_PIO controller support

2016-03-11 Thread Vishnu Patekar
Hello Linus, On Wed, Mar 9, 2016 at 10:55 AM, Linus Walleij wrote: > On Sat, Mar 5, 2016 at 10:42 PM, Vishnu Patekar > wrote: > >> The A83T has R_PIO pin controller, it's same as A23, execpt A83T >> interrupt bit is 6th and A83T has one extra pin PL12. >> >> Signed-off-by: Vishnu Patekar >> Ac

Re: [PATCH] arc: use little endian accesses

2016-03-11 Thread Vineet Gupta
On Friday 11 March 2016 06:14 PM, Vineet Gupta wrote: > @Lada I will fix up the changelog to add some of the background behind this > change, and mark this for stable backport as well. This is what I'm planning to add. Noam please give this a spin - you might have to revert those native-endian DT

Re: [PATCH 0/3] OOM detection rework v4

2016-03-11 Thread Tetsuo Handa
Michal Hocko wrote: > OK, that would suggest that the oom rework patches are not really > related. They just moved from the livelock to a sleep which is good in > general IMHO. We even know that it is most probably the IO that is the > problem because we know that more than half of the reclaimable

Re: [PATCH v1 00/12] PCI: Rework shadow ROM handling

2016-03-11 Thread Alex Deucher
On Fri, Mar 11, 2016 at 8:09 PM, Linus Torvalds wrote: > On Fri, Mar 11, 2016 at 4:49 PM, Andy Lutomirski wrote: >> >> FWIW, if I disable all the checks in pci_get_rom_size, I learn that my >> video ROM consists entirely of 0xff bytes. Maybe there just isn't a >> ROM shadow on my laptop. > > I t

Re: [PATCH v11 6/9] arm64: kprobes instruction simulation support

2016-03-11 Thread Marc Zyngier
On Wed, 9 Mar 2016 00:32:20 -0500 David Long wrote: David, > From: Sandeepa Prabhu > > Kprobes needs simulation of instructions that cannot be stepped > from a different memory location, e.g.: those instructions > that uses PC-relative addressing. In simulation, the behaviour > of the instruc

[GIT PULL] target fixes for v4.5

2016-03-11 Thread Nicholas A. Bellinger
Hi Linus, Here is the outstanding target-core bug-fix for v4.5 code. Please go ahead and pull from: git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending.git master This patch addresses a recent Task Management (TMR) regression related to larger set of multi-port LUN_RESET bug-fixe

Re: [PATCH v4 2/6] hwmon: (fam15h_power) Add compute unit accumulated power

2016-03-11 Thread Guenter Roeck
On 03/10/2016 06:17 PM, Huang Rui wrote: This patch adds a member in fam15h_power_data which specifies the compute unit accumulated power. It adds do_read_registers_on_cu to do all the read to all MSRs and run it on one of the online cores on each compute unit with smp_call_function_many(). This

Re: [PATCH v1 13/19] zsmalloc: factor page chain functionality out

2016-03-11 Thread xuyiping
On 2016/3/11 15:30, Minchan Kim wrote: For migration, we need to create sub-page chain of zspage dynamically so this patch factors it out from alloc_zspage. As a minor refactoring, it makes OBJ_ALLOCATED_TAG assign more clear in obj_malloc(it could be another patch but it's trivial so I want t

[PATCH v7 01/10] tpm: Get rid of chip->pdev

2016-03-11 Thread Stefan Berger
From: Jason Gunthorpe This is a hold over from before the struct device conversion. - All prints should be using &chip->dev, which is the Linux standard. This changes prints to use tpm0 as the device name, not the PnP/etc ID. - The few places involving sysfs/modules that really do need the

[PATCH v7 03/10] tpm: Provide strong locking for device removal

2016-03-11 Thread Stefan Berger
From: Jason Gunthorpe Add a read/write semaphore around the ops function pointers so ops can be set to null when the driver un-registers. Previously the tpm core expected module locking to be enough to ensure that tpm_unregister could not be called during certain times, however that hasn't been

[PATCH v7 09/10] tpm: Initialize TPM and get durations and timeouts

2016-03-11 Thread Stefan Berger
Add the retrieval of TPM 1.2 durations and timeouts. Since this requires the startup of the TPM, do this for TPM 1.2 and TPM 2. Signed-off-by: Stefan Berger CC: linux-kernel@vger.kernel.org CC: linux-...@vger.kernel.org CC: linux-...@vger.kernel.org --- drivers/char/tpm/tpm_vtpm_proxy.c | 95 +++

[PATCH v7 10/10] tpm: Add documentation for the tpm_vtpm device driver

2016-03-11 Thread Stefan Berger
Add documentation for the tpm_vtpm device driver that implements support for providing TPM functionality to Linux containers. Parts of this documentation were recycled from the Xen vTPM device driver documentation. Update the documentation for the ioctl numbers. Signed-off-by: Stefan Berger CC:

[PATCH v7 08/10] tpm: Proxy driver for supporting multiple emulated TPMs

2016-03-11 Thread Stefan Berger
This patch implements a proxy driver for supporting multiple emulated TPMs in a system. The driver implements a device /dev/vtpmx that is used to created a client device pair /dev/tpmX (e.g., /dev/tpm10) and a server side that is accessed using a file descriptor returned by an ioctl. The device /d

[PATCH v7 00/10] Multi-instance vTPM proxy driver

2016-03-11 Thread Stefan Berger
The following series of patches implements a multi-instance vTPM proxy driver that can dynamically create TPM 'server' and client device pairs. Using an ioctl on the provided /dev/vtpmx, a client-side vTPM device and a server side file descriptor is created. The file descriptor must be passed to

[PATCH v7 06/10] tpm: Replace device number bitmap with IDR

2016-03-11 Thread Stefan Berger
Replace the device number bitmap with IDR. Extend the number of devices we can create to 64k. Since an IDR allows us to associate a pointer with an ID, we use this now to rewrite tpm_chip_find_get() to simply look up the chip pointer by the given device ID. Protect the IDR calls with a mutex. Sig

[PATCH v7 04/10] tpm: Get rid of module locking

2016-03-11 Thread Stefan Berger
Now that the tpm core has strong locking around 'ops' it is possible to remove a TPM driver, module and all, even while user space still has things like /dev/tpmX open. For consistency and simplicity, drop the module locking entirely. The module lock can be dropped since /dev/tpmX holds the reader

[PATCH v7 05/10] tpm: Split out the devm stuff from tpmm_chip_alloc

2016-03-11 Thread Stefan Berger
From: Jason Gunthorpe tpm_chip_alloc becomes a typical subsystem allocate call. Signed-off-by: Jason Gunthorpe Reviewed-by: Stefan Berger Tested-by: Stefan Berger Reviewed-by: Jarkko Sakkinen Tested-by: Jarkko Sakkinen Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm-chip.c | 49 ++

[PATCH v7 07/10] tpm: Introduce TPM_CHIP_FLAG_VIRTUAL

2016-03-11 Thread Stefan Berger
Introduce TPM_CHIP_FLAG_VIRTUAL to be used when the chip device has no parent device. Also adapt tpm_chip_alloc so that it can be called with parent device being NULL. Signed-off-by: Stefan Berger Reviewed-by: Jason Gunthorpe Reviewed-by: Jarkko Sakkinen Signed-off-by: Jarkko Sakkinen --- dri

[PATCH v7 02/10] tpm: Get rid of devname

2016-03-11 Thread Stefan Berger
From: Jason Gunthorpe Now that we have a proper struct device just use dev_name() to access this value instead of keeping two copies. Signed-off-by: Jason Gunthorpe Signed-off-by: Stefan Berger Reviewed-by: Jarkko Sakkinen Tested-by: Jarkko Sakkinen Signed-off-by: Jarkko Sakkinen --- drive

Re: [ANNOUNCE] v4.4.4-rt11

2016-03-11 Thread Jean-Denis Girard
Hi, Le 11/03/2016 07:14, Sebastian Andrzej Siewior a écrit : > This looks promising. Can you check if IRQ 16 is used by another > peripherals? While we need get rid fo the warning I am curious if it > works on boards which chare the timer with UART or something. Here are the interrupts, I hope th

[PATCH] cpufreq: Do not schedule policy update work in cpufreq_resume()

2016-03-11 Thread Rafael J. Wysocki
From: Rafael J. Wysocki cpufreq_resume() attempts to resync the current frequency with policy->cur for the first online CPU, but first it does that after restarting governors for all active policies (which means that this is racy with respect to whatever the governors do) and second it already is

Re: [v5] powerpc/mpc85xx: Add MDIO bus muxing support to the board device tree(s)

2016-03-11 Thread Scott Wood
On Mon, Aug 03, 2015 at 11:14:10AM +0300, Igal.Liberman wrote: > From: Igal Liberman > > Describe the PHY topology for all configurations supported by each board > > Based on prior work by Andy Fleming > > Signed-off-by: Shruti Kanetkar > Signed-off-by: Emil Medve > Signed-off-by: Igal Liber

RE: [PATCH V6 0/6] Intel memory b/w monitoring support

2016-03-11 Thread Luck, Tony
Some tracing printk() show that we are calling update_sample() with totally bogus arguments. There are a few good calls, then I see rmid=-380863112 evt_type=-30689 first=0 That turns into a wild vrmid, and we fault accessing mbm_current->prev_msr -Tony

Re: [PATCH 4.4 34/74] arm64: vmemmap: use virtual projection of linear region

2016-03-11 Thread Ard Biesheuvel
On 8 March 2016 at 20:45, Ard Biesheuvel wrote: > On 8 March 2016 at 20:44, Greg Kroah-Hartman > wrote: >> On Tue, Mar 08, 2016 at 05:40:14PM +0700, Ard Biesheuvel wrote: >>> On 8 March 2016 at 07:02, Greg Kroah-Hartman >>> wrote: >>> > 4.4-stable review patch. If anyone has any objections, p

Re: multipath: I/O hanging forever

2016-03-11 Thread Ming Lei
On Fri, 11 Mar 2016 15:24:33 -0700 Andrea Righi wrote: > On Sat, Mar 05, 2016 at 08:31:03PM -0900, Kent Overstreet wrote: > > On Fri, Mar 04, 2016 at 10:30:44AM -0700, Andrea Righi wrote: > > > On Sun, Feb 28, 2016 at 08:46:16PM -0700, Andrea Righi wrote: > > > > On Sun, Feb 28, 2016 at 06:53:33P

Re: [PATCH v1 09/19] zsmalloc: keep max_object in size_class

2016-03-11 Thread xuyiping
On 2016/3/11 15:30, Minchan Kim wrote: Every zspage in a size_class has same number of max objects so we could move it to a size_class. Signed-off-by: Minchan Kim --- mm/zsmalloc.c | 29 ++--- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/mm/zsmall

Re: [lustre-devel] [PATCH 07/10] staging: lustre: cleanup comment style for lnet selftest

2016-03-11 Thread Dilger, Andreas
On 2016/03/11, 18:29, "lustre-devel on behalf of James Simmons" wrote: >Apply a consistent style for comments in the lnet selftest >code. > >Signed-off-by: James Simmons >--- > drivers/staging/lustre/lnet/selftest/brw_test.c |8 ++-- > drivers/staging/lustre/lnet/selftest/conctl.c| 50

[PATCH 03/10] staging: lustre: fix spacing issues checkpatch reported in lnet selftest

2016-03-11 Thread James Simmons
Remove any extra spacing as reported by checkpatch. Signed-off-by: James Simmons --- drivers/staging/lustre/lnet/selftest/brw_test.c |6 +++--- drivers/staging/lustre/lnet/selftest/console.c |6 +++--- drivers/staging/lustre/lnet/selftest/selftest.h |2 +- drivers/staging/lustre/lne

[PATCH 01/10] staging: lustre: fix bogus lst errors for lnet selftest

2016-03-11 Thread James Simmons
From: Isaac Huang It should not be counted as errors if a test RPC has been stopped due to administrative actions, e.g. lst end_session from the remote test console. Signed-off-by: Isaac Huang Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4181 Reviewed-on: http://review.whamcloud.com/1327

[PATCH 05/10] staging: lustre: remove extra spacing when setting variable for lnet selftest

2016-03-11 Thread James Simmons
Remove any extra spacing for the lines of code setting variables to some value. Signed-off-by: James Simmons --- drivers/staging/lustre/lnet/selftest/brw_test.c | 40 ++-- drivers/staging/lustre/lnet/selftest/conrpc.c| 68 ++-- drivers/staging/lustre/lnet/selftes

[PATCH 02/10] staging: lustre: remove returns in void function for lnet selftest

2016-03-11 Thread James Simmons
No reason to have returns at end of void function. Signed-off-by: James Simmons --- drivers/staging/lustre/lnet/selftest/brw_test.c |9 +++-- drivers/staging/lustre/lnet/selftest/conrpc.c|6 -- drivers/staging/lustre/lnet/selftest/framework.c | 14 -- drivers/s

[PATCH 06/10] staging: lustre: filter remaining extra spacing for lnet selftest

2016-03-11 Thread James Simmons
This patch is a result of a filter applied to the lnet selftest code to remove the last bits of hidden white spaces. Signed-off-by: James Simmons --- drivers/staging/lustre/lnet/selftest/brw_test.c |6 +- drivers/staging/lustre/lnet/selftest/conctl.c| 10 +- drivers/staging/lustre/lne

[PATCH 09/10] staging: lustre: report minimum of two buffers for LNet selftest load test

2016-03-11 Thread James Simmons
The minimum number reserve buffer for lnet selftest load test is two not one. Signed-off-by: James Simmons --- drivers/staging/lustre/lnet/selftest/framework.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/staging/lustre/lnet/selftest/framework.c b/drivers/st

[PATCH 07/10] staging: lustre: cleanup comment style for lnet selftest

2016-03-11 Thread James Simmons
Apply a consistent style for comments in the lnet selftest code. Signed-off-by: James Simmons --- drivers/staging/lustre/lnet/selftest/brw_test.c |8 ++-- drivers/staging/lustre/lnet/selftest/conctl.c| 50 +++--- drivers/staging/lustre/lnet/selftest/conrpc.c| 23

[PATCH 08/10] staging: lustre: test for proper errno code in lstcon_rpc_trans_abort

2016-03-11 Thread James Simmons
The error value returned will be -ETIMEDOUT not ETIMEDOUT. This fixes a typo that prevents us from handling the error case. Signed-off-by: James Simmons --- drivers/staging/lustre/lnet/selftest/conrpc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/staging/lus

[PATCH 10/10] staging: lustre: fix aligments in lnet selftest

2016-03-11 Thread James Simmons
Some aligment issues were not caught by checkpatch. We address them here. Some of the alignment issues caused greater than 80 character checkpatch issues. Some changes were done to just make the code more readable and to match our production code. Signed-off-by: James Simmons --- drivers/staging

[PATCH 04/10] staging: lustre: remove extra spacing of variable declartions for lnet selftest

2016-03-11 Thread James Simmons
Remove any extra spacing such as "int rc" to "int rc" to match the proper kernel style Signed-off-by: James Simmons --- drivers/staging/lustre/lnet/selftest/brw_test.c | 28 drivers/staging/lustre/lnet/selftest/conctl.c| 36 ++-- drivers/staging/lustre

[PATCH 00/10] Cleanup and audit of lnet selftest code

2016-03-11 Thread James Simmons
With lnet selftest nearly in sync with the OpenSFS code base it was time to do a audit to see if anything was missed. One patch was missed a few errors unique to upstream needed to be addressed. Besides adding in fixes it was time to do more kernel style cleanups. In the process several more checkp

Re: Glibc recvmsg from kernel netlink socket hangs forever

2016-03-11 Thread Guenter Roeck
On 03/11/2016 04:13 PM, Cong Wang wrote: On Fri, Mar 11, 2016 at 3:50 PM, Guenter Roeck wrote: On Fri, Mar 11, 2016 at 11:33:17AM -0800, Jun Wang wrote: Guenter, Which additional netlink changes from 4.2 did you patch? We still see the problem with your test program with 4.1.12 which have the

[PATCH v3] cpu-= command line parmeter, SYS_cpuid sys call, kernel-adjusted CPUID

2016-03-11 Thread Piotr Henryk Dabrowski
Currently there is no way of disabling CPU features reported by the CPUID instruction. Which sometimes turn out to be broken [1] or undesired [2]. We can assume we will run into similar situations again sooner or later. The only way to fix this is to do a microcode update (if it is available), as t

Re: [PATCH v1 00/12] PCI: Rework shadow ROM handling

2016-03-11 Thread Linus Torvalds
On Fri, Mar 11, 2016 at 4:49 PM, Andy Lutomirski wrote: > > FWIW, if I disable all the checks in pci_get_rom_size, I learn that my > video ROM consists entirely of 0xff bytes. Maybe there just isn't a > ROM shadow on my laptop. I think most laptops end up having the graphics ROM be part of the r

Re: [PATCH v10 06/59] PCI: Kill wrong quirk about M7101

2016-03-11 Thread Linus Torvalds
On Fri, Mar 11, 2016 at 2:08 PM, Yinghai Lu wrote: > > Maybe Linus could have some hint about that quirk? > > commit 34f550135e349102bd065488ea217ab27f0d > Author: Linus Torvalds > Date: Fri Nov 23 15:32:20 2007 -0500 > > Import 2.3.49pre2 Gah. That's marked as 2007, but that's an impo

Re: [PATCH v1 00/12] PCI: Rework shadow ROM handling

2016-03-11 Thread Andy Lutomirski
On Fri, Mar 11, 2016 at 3:29 PM, Bjorn Helgaas wrote: > On Fri, Mar 11, 2016 at 01:16:09PM -0800, Andy Lutomirski wrote: >> On Tue, Mar 8, 2016 at 9:45 AM, Bjorn Helgaas wrote: >> > On Thu, Mar 03, 2016 at 10:53:50AM -0600, Bjorn Helgaas wrote: >> >> The purpose of this series is to: >> >> >> >>

Re: [PATCH 2/2] block: create ioctl to discard-or-zeroout a range of blocks

2016-03-11 Thread Linus Torvalds
On Fri, Mar 11, 2016 at 4:35 PM, Theodore Ts'o wrote: > > At the end of the day it's about whether you trust the userspace > program or not. There's a big difference between "give the user rope", and "tie the rope in a noose and put a banana peel so that the user might stumble into the rope and h

Re: [PATCH 2/2] block: create ioctl to discard-or-zeroout a range of blocks

2016-03-11 Thread Theodore Ts'o
On Sat, Mar 12, 2016 at 09:30:47AM +1100, Dave Chinner wrote: > It's all well and good to restrict access to the fallocate() call to > limit who can expose stale data, but it doesn't remove the fact it > is easy for stale data to unintentionally escape the privileged > group once it has been expose

Re: [PATCH 2/2] block: create ioctl to discard-or-zeroout a range of blocks

2016-03-11 Thread Linus Torvalds
On Fri, Mar 11, 2016 at 2:30 PM, Dave Chinner wrote: > On Fri, Mar 11, 2016 at 10:25:30AM -0800, Linus Torvalds wrote: >> >> So you'd have to explicitly say "my setup is ok with hole punching". > > Except it's not hole punching that is the problem. [..] > The problem here is > preallocation of unw

Re: [PATCH 2/2] x86/mtrr: Refactor PAT initialization code

2016-03-11 Thread Toshi Kani
On Fri, 2016-03-11 at 15:34 -0800, Luis R. Rodriguez wrote: > On Fri, Mar 11, 2016 at 3:56 PM, Toshi Kani wrote: > > On Fri, 2016-03-11 at 23:17 +0100, Luis R. Rodriguez wrote: > > > On Fri, Mar 11, 2016 at 11:57:12AM -0700, Toshi Kani wrote: > > > > On Fri, 2016-03-11 at 10:24 +0100, Borislav Pet

Re: [PATCH 01/18] irqchip: vf610-gpc: add Vybrid GPC IRQ controller

2016-03-11 Thread Marc Zyngier
On Fri, 11 Mar 2016 10:11:43 -0800 Stefan Agner wrote: > Hi Marc, > > On 2016-03-10 19:41, Marc Zyngier wrote: > > On Wed, 9 Mar 2016 18:16:42 -0800 > > Stefan Agner wrote: > > > > Hi Stefan, > > > >> This patch introduces a driver for Vybrids GPC (Global Power > >> Controller). Vybrids GPC

[PATCH 2/2] f2fs: avoid writepage lock when many threads call fsync

2016-03-11 Thread Jaegeuk Kim
If many threads try to write small number of data and fsync, we should avoid writepages lock contention. Signed-off-by: Jaegeuk Kim --- fs/f2fs/data.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index e5c762b..fb75699 100644 --- a/fs/f2fs

[PATCH 1/2] f2fs: submit node page write bios when really required

2016-03-11 Thread Jaegeuk Kim
If many threads calls fsync with data writes, we don't need to flush every bios having node page writes. The f2fs_wait_on_page_writeback will flush its bios when the page is really needed. Signed-off-by: Jaegeuk Kim --- fs/f2fs/node.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletio

Re: Glibc recvmsg from kernel netlink socket hangs forever

2016-03-11 Thread Cong Wang
On Fri, Mar 11, 2016 at 3:50 PM, Guenter Roeck wrote: > On Fri, Mar 11, 2016 at 11:33:17AM -0800, Jun Wang wrote: >> Guenter, >> >> Which additional netlink changes from 4.2 did you patch? We still see >> the problem with your test program with 4.1.12 which have the >> following two patches mentio

Re: [PATCH v2 0/3] net/phy: Improvements to Cavium Thunder MDIO code.

2016-03-11 Thread David Daney
I am going to send a new version of this set. David Daney On 03/11/2016 09:53 AM, David Daney wrote: From: David Daney Changes from v1: - In 1/3 Add back check for non-OF objects in bgx_init_of_phy(). It is probably not necessary, but better safe than sorry... The firmware on many C

[GIT PULL] Late MTD fix for v4.5

2016-03-11 Thread Brian Norris
g changes since commit 44248affb5d82d32cdb58a92a94ce191d4ddee60: MAINTAINERS: add maintainer entry for FREESCALE GPMI NAND driver (2016-02-25 11:22:37 -0800) are available in the git repository at: git://git.infradead.org/linux-mtd.git tags/for-linus-20160311 for you to fetc

Re: [PATCH v2] cpufreq: Make cpufreq_quick_get() safe to call.

2016-03-11 Thread Viresh Kumar
On 11-03-16, 09:43, Richard Cochran wrote: > The function, cpufreq_quick_get, accesses the global 'cpufreq_driver' and > its fields without taking the associated lock, cpufreq_driver_lock. > > Without the locking, nothing guarantees that 'cpufreq_driver' remains > consistent during the call. This

Re: Glibc recvmsg from kernel netlink socket hangs forever

2016-03-11 Thread Guenter Roeck
On Fri, Mar 11, 2016 at 11:33:17AM -0800, Jun Wang wrote: > > On 09/25/2015 08:55 AM, Herbert Xu wrote: > >> On Thu, Sep 24, 2015 at 10:34:10PM -0700, Guenter Roeck wrote: > >>> > >>> Any idea what may be needed for 4.1 ? > >>> I am currently trying https://patchwork.ozlabs.org/patch/473041/, > >>

[PATCH v2] dell-rbtn: Ignore ACPI notifications if device is suspended

2016-03-11 Thread Gabriele Mazzotta
Some BIOSes unconditionally send an ACPI notification to RBTN when the system is resuming from suspend. This makes dell-rbtn send an input event to userspace as if a function key was pressed. Prevent this by ignoring all the notifications received while the device is suspended. Link: https://bugzi

RE: [PATCH V6 0/6] Intel memory b/w monitoring support

2016-03-11 Thread Luck, Tony
> Please see if the branch below works for you: > > git://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git perf/core tragically no :-( The instant I started perf stat to trace some MBM events, I got a panic. But I think something went awry with the base version you applied these patche

Re: runtime regression with "x86/mm/pat: Emulate PAT when it is disabled"

2016-03-11 Thread Richard Purdie
On Fri, 2016-03-11 at 17:28 -0500, Bruce Ashfield wrote: > On 2016-03-11 5:16 PM, Borislav Petkov wrote: > > On Fri, Mar 11, 2016 at 08:18:23PM +0100, Paolo Bonzini wrote: > > > Somebody got it wrong 10-ish years ago, and nobody has ever > > > checked since. > > > > > > But, don't use qemu32 or qe

Re: [PATCH v2] tty: amba-pl011: Use 32-bit accesses for SBSA UART

2016-03-11 Thread Christopher Covington
On March 11, 2016 10:02:14 PM GMT+07:00, Peter Hurley wrote: >Hi Christopher, > >On 03/10/2016 10:35 PM, Christopher Covington wrote: >> Version 2 of the Server Base System Architecture (SBSAv2) describes >the >> Generic UART registers as 32 bits wide. At least one implementation, >found >> on

Re: [PATCH 2/2] x86/mtrr: Refactor PAT initialization code

2016-03-11 Thread Luis R. Rodriguez
On Fri, Mar 11, 2016 at 3:56 PM, Toshi Kani wrote: > On Fri, 2016-03-11 at 23:17 +0100, Luis R. Rodriguez wrote: >> On Fri, Mar 11, 2016 at 11:57:12AM -0700, Toshi Kani wrote: >> > On Fri, 2016-03-11 at 10:24 +0100, Borislav Petkov wrote: >> > > On Thu, Mar 10, 2016 at 09:45:46PM -0700, Toshi Kani

Re: [PATCH] PCI/keystone: check return value of devm_phy_get with EPROBE_DEFER

2016-03-11 Thread Bjorn Helgaas
On Fri, Mar 11, 2016 at 12:38:23PM -0600, Bjorn Helgaas wrote: > On Mon, Mar 07, 2016 at 12:32:21PM +0800, Shawn Lin wrote: > > If the return value of devm_phy_get is EPROBE_DEFER, we should > > defer probing the driver. > > > > Signed-off-by: Shawn Lin > > Applied to pci/host-keystone for v4.6

Re: ext4_file_open: Inconsistent encryption contexts (commit ff978b09f973) breaking Docker

2016-03-11 Thread Daniel Axtens
Hi Miklos, > Could you please try the following patch? > > It adds more sanity checks to unlink/rmdir/rename to prevent passing an > inappropriate dentry to the underlying filesystem, which could have caused the > corruption. I've tested with your patch. I'm still seeing similar errors but anecd

Re: [PATCH v1 00/12] PCI: Rework shadow ROM handling

2016-03-11 Thread Bjorn Helgaas
On Fri, Mar 11, 2016 at 01:16:09PM -0800, Andy Lutomirski wrote: > On Tue, Mar 8, 2016 at 9:45 AM, Bjorn Helgaas wrote: > > On Thu, Mar 03, 2016 at 10:53:50AM -0600, Bjorn Helgaas wrote: > >> The purpose of this series is to: > >> > >> - Fix the "BAR 6: [??? 0x flags 0x2] has bogus align

Re: [PATCH V6 0/6] Intel memory b/w monitoring support

2016-03-11 Thread Vikas Shivappa
Please see if the branch below works for you: git://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git perf/core You mean I test the mbm patches on top of this ? I see you applied the mbm patches here already Thanks, Vikas

Re: [PATCH V6 0/6] Intel memory b/w monitoring support

2016-03-11 Thread Vikas Shivappa
On Fri, 11 Mar 2016, Peter Zijlstra wrote: On Thu, Mar 10, 2016 at 03:32:06PM -0800, Vikas Shivappa wrote: The patch series has two preparatory patch for cqm and then 4 MBM patches. Patches are based on tip perf/core. They were not (or at least not a recent copy of it); all the files got mo

Re: [v8, 08/23] powerpc/8xx: Map IMMR area with 512k page at a fixed address

2016-03-11 Thread Scott Wood
On Tue, Feb 09, 2016 at 05:08:02PM +0100, Christophe Leroy wrote: > Once the linear memory space has been mapped with 8Mb pages, as > seen in the related commit, we get 11 millions DTLB missed during > the reference 600s period. 77% of the misses are on user addresses > and 23% are on kernel addres

Re: [PATCH] usb: gadget: f_midi: Fixed a bug when buflen was smaller than wMaxPacketSize

2016-03-11 Thread Michal Nazarewicz
On Wed, Mar 09 2016, Felipe F. Tonello wrote: > buflen by default (256) is smaller than wMaxPacketSize (512) in high-speed > devices. > > That caused the OUT endpoint to freeze if the host send any data packet of > length greater than 256 bytes. > > This is an example dump of what happended on that

[PATCHv4 08/25] thp: support file pages in zap_huge_pmd()

2016-03-11 Thread Kirill A. Shutemov
split_huge_pmd() for file mappings (and DAX too) is implemented by just clearing pmd entry as we can re-fill this area from page cache on pte level later. This means we don't need deposit page tables when file THP is mapped. Therefore we shouldn't try to withdraw a page table on zap_huge_pmd() fil

[PATCHv4 20/25] filemap: prepare find and delete operations for huge pages

2016-03-11 Thread Kirill A. Shutemov
For now, we would have HPAGE_PMD_NR entries in radix tree for every huge page. That's suboptimal and it will be changed to use Matthew's multi-order entries later. 'add' operation is not changed, because we don't need it to implement hugetmpfs: shmem uses its own implementation. Signed-off-by: Ki

[PATCHv4 04/25] rmap: support file thp

2016-03-11 Thread Kirill A. Shutemov
Naive approach: on mapping/unmapping the page as compound we update ->_mapcount on each 4k page. That's not efficient, but it's not obvious how we can optimize this. We can look into optimization later. PG_double_map optimization doesn't work for file pages since lifecycle of file pages is differe

[PATCHv4 01/25] mm: do not pass mm_struct into handle_mm_fault

2016-03-11 Thread Kirill A. Shutemov
We always have vma->vm_mm around. Signed-off-by: Kirill A. Shutemov --- arch/alpha/mm/fault.c | 2 +- arch/arc/mm/fault.c | 2 +- arch/arm/mm/fault.c | 2 +- arch/arm64/mm/fault.c | 2 +- arch/avr32/mm/fault.c | 2 +- arch/cris/mm/fault.c

[PATCHv4 02/25] mm: introduce fault_env

2016-03-11 Thread Kirill A. Shutemov
The idea borrowed from Peter's patch from patchset on speculative page faults[1]: Instead of passing around the endless list of function arguments, replace the lot with a single structure so we can change context without endless function signature changes. The changes are mostly mechanical with e

[PATCHv4 16/25] thp, mlock: do not mlock PTE-mapped file huge pages

2016-03-11 Thread Kirill A. Shutemov
As with anon THP, we only mlock file huge pages if we can prove that the page is not mapped with PTE. This way we can avoid mlock leak into non-mlocked vma on split. We rely on PageDoubleMap() under lock_page() to check if the the page may be PTE mapped. PG_double_map is set by page_add_file_rmap(

[PATCHv4 22/25] shmem: prepare huge= mount option and sysfs knob

2016-03-11 Thread Kirill A. Shutemov
This patch adds new mount option "huge=". It can have following values: - "always": Attempt to allocate huge pages every time we need a new page; - "never": Do not allocate huge pages; - "within_size": Only allocate huge page if it will be fully within i_size.

[PATCHv4 15/25] thp: file pages support for split_huge_page()

2016-03-11 Thread Kirill A. Shutemov
Basic scheme is the same as for anon THP. Main differences: - File pages are on radix-tree, so we have head->_count offset by HPAGE_PMD_NR. The count got distributed to small pages during split. - mapping->tree_lock prevents non-lockless access to pages under split over radix-tree;

Re: [PATCH 2/2] x86/mtrr: Refactor PAT initialization code

2016-03-11 Thread Toshi Kani
On Fri, 2016-03-11 at 23:17 +0100, Luis R. Rodriguez wrote: > On Fri, Mar 11, 2016 at 11:57:12AM -0700, Toshi Kani wrote: > > On Fri, 2016-03-11 at 10:24 +0100, Borislav Petkov wrote: > > > On Thu, Mar 10, 2016 at 09:45:46PM -0700, Toshi Kani wrote: > > > > MTRR manages PAT initialization as it imp

Re: [PATCH v18 00/22] Richacls (Core and Ext4)

2016-03-11 Thread Jeremy Allison
On Fri, Mar 11, 2016 at 02:05:16PM -0600, Steve French wrote: > Sounds like I need to quickly rework the SMB3 ACL helper functions > for cifs.ko > > Also do you know where is the current version of the corresponding > vfs_richacl for > Samba which works with the current RichACL format? I have a p

[PATCHv4 19/25] radix-tree: implement radix_tree_maybe_preload_order()

2016-03-11 Thread Kirill A. Shutemov
The new helper is similar to radix_tree_maybe_preload(), but tries to preload number of nodes required to insert (1 << order) continuous naturally-aligned elements. This is required to push huge pages into pagecache. Signed-off-by: Kirill A. Shutemov --- include/linux/radix-tree.h | 1 + lib/r

  1   2   3   4   5   6   7   8   >