Re: [PATCH] include/linux: fix checkpatch issues

2015-03-16 Thread Rafael J. Wysocki
On Saturday, March 14, 2015 02:59:04 AM Valentina-Camelia Bojan wrote: > Fix checkpatch issues of the following type: > * ERROR: "foo * bar" should be "foo *bar" > * WARNING: space prohibited between function name and open parenthesis > '(' > > Signed-off-by: Valentina-Camelia Bojan

Re: [PATCH 06/13] VFS/namei: new flag to support RCU symlinks: LOOKUP_LINK_RCU.

2015-03-16 Thread Al Viro
On Mon, Mar 16, 2015 at 03:43:20PM +1100, NeilBrown wrote: > When we support ->follow_link in RCU-walk we will not want to > take a reference to the 'struct path *link' passed to follow_link, > and correspondingly will not want to drop that reference. > > As link_path_walk will complete_walk() in

Re: [PATCH v6 1/2] DT: hwspinlock: Add binding documentation for Qualcomm hwmutex

2015-03-16 Thread Jeffrey Hugo
On 2/27/2015 3:30 PM, Bjorn Andersson wrote: Add binding documentation for the Qualcomm Hardware Mutex. Signed-off-by: Bjorn Andersson --- Reviewed-by: Jeffrey Hugo -- Jeffrey Hugo Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a

Re: [PATCH RFC 0/2] x86/fpu: avoid "xstate_fault" in xsave_user/xrestore_user

2015-03-16 Thread Quentin Casasnovas
On Sun, Mar 15, 2015 at 05:49:48PM +0100, Oleg Nesterov wrote: > Hello. > > Another a bit off-topic change, but I'd like to finish the discussion > with Quentin. > > And almost cosmetic. But I added the RFC tag to make it clear that this > needs a review from someone who understands gcc-asm better

Re: [PATCH v2 0/7] CLONE_FD: Task exit notification via file descriptor

2015-03-16 Thread Kees Cook
On Mon, Mar 16, 2015 at 3:14 PM, Thiago Macieira wrote: > On Monday 16 March 2015 14:44:20 Kees Cook wrote: >> > O_CLOEXEC >> > Set the close-on-exec flag on the new file >> >descriptor. See the description of the O_CLOEXEC flag in open(2) for >> >reasons why

Re: [PATCH v2] HID: wacom: ask for a in-prox report when it was missed

2015-03-16 Thread Jason Gerecke
On 3/16/2015 2:04 PM, Benjamin Tissoires wrote: On Mar 16 2015 or thereabouts, Jason Gerecke wrote: On 3/16/2015 12:27 PM, Benjamin Tissoires wrote: On Mar 16 2015 or thereabouts, Jason Gerecke wrote: On 3/16/2015 7:50 AM, Jiri Kosina wrote: On Thu, 5 Mar 2015, Benjamin Tissoires wrote: If

Re: [PATCH v2] HID: wacom: ask for a in-prox report when it was missed

2015-03-16 Thread Jason Gerecke
On 3/16/2015 2:04 PM, Benjamin Tissoires wrote: On Mar 16 2015 or thereabouts, Jason Gerecke wrote: On 3/16/2015 12:27 PM, Benjamin Tissoires wrote: On Mar 16 2015 or thereabouts, Jason Gerecke wrote: On 3/16/2015 7:50 AM, Jiri Kosina wrote: On Thu, 5 Mar 2015, Benjamin Tissoires wrote: If

Re: [PATCH 0/2] Move away from non-failing small allocations

2015-03-16 Thread Andrew Morton
On Wed, 11 Mar 2015 16:54:52 -0400 Michal Hocko wrote: > as per discussion at LSF/MM summit few days back it seems there is a > general agreement on moving away from "small allocations do not fail" > concept. Such a change affects basically every part of the kernel and every kernel developer. I

Re: [PATCH v6 2/2] hwspinlock: qcom: Add support for Qualcomm HW Mutex block

2015-03-16 Thread Jeffrey Hugo
On 2/27/2015 3:30 PM, Bjorn Andersson wrote: Add driver for Qualcomm Hardware Mutex block found in many Qualcomm SoCs. Based on initial effort by Kumar Gala Signed-off-by: Bjorn Andersson --- Reviewed-by: Jeffrey Hugo I don't see any reason to hold up this patch. We can come to a conclu

Re: [PATCH 12/13] XFS: allow follow_link to often succeed in RCU-walk.

2015-03-16 Thread Al Viro
On Mon, Mar 16, 2015 at 03:43:20PM +1100, NeilBrown wrote: > - xfs_ilock(ip, XFS_ILOCK_SHARED); > + if (rcu) { > + if (xfs_ilock_nowait(ip, XFS_ILOCK_SHARED) == 0) > + return -ECHILD; Umm... Is that guaranteed to be safe for inode that is currently going t

Re: [PATCH RFC 2/2] x86/fpu: change xsave_user() and xrestore_user() to use __user_insn()

2015-03-16 Thread Quentin Casasnovas
On Sun, Mar 15, 2015 at 05:50:36PM +0100, Oleg Nesterov wrote: > Change xsave_user() and xrestore_user() to avoid the (imho) horrible > and should-die xstate_fault helper, they both can use __user_insn(). > > This also removes the "memory" clobber but I think it was never needed. > xrestore_user()

[PATCH] can: gs_usb: check for kzalloc allocation failure

2015-03-16 Thread Colin King
From: Colin Ian King smatch detected the following issue: drivers/net/can/usb/gs_usb.c:904 gs_usb_probe() error: potential null dereference 'dev'. (kzalloc returns null) Add a check for null return from kzalloc and return -ENOMEM Signed-off-by: Colin Ian King --- drivers/net/can/usb/gs_us

Re: [PATCH 09/13] VFS/namei: enable RCU-walk when following symlinks.

2015-03-16 Thread Al Viro
On Mon, Mar 16, 2015 at 03:43:20PM +1100, NeilBrown wrote: > if (should_follow_link(path->dentry, follow)) { > - if (nd->flags & LOOKUP_RCU) { > - if (unlikely(unlazy_walk(nd, path->dentry))) { > - err = -ECHILD; > -

[PATCH 01/10] ARM: at91/pm: move the standby functions to pm.c

2015-03-16 Thread Alexandre Belloni
The standby functions are now only used in pm.c, move them there. Also, they are not inlined as a pointer to those functions is passed to the cpuidle driver. Signed-off-by: Alexandre Belloni --- arch/arm/mach-at91/pm.c | 89 +++ arch/arm/mach-at91/pm.

[PATCH 09/10] ARM: at91: remove mach/at91_ramc.h and mach/at91rm9200_mc.h

2015-03-16 Thread Alexandre Belloni
mach/at91_ramc.h and mach/at91rm9200_mc.h are necessary anymore, remove them. Signed-off-by: Alexandre Belloni --- arch/arm/mach-at91/Makefile | 3 - arch/arm/mach-at91/include/mach/at91_ramc.h | 28 -- arch/arm/mach-at91/include/mach/at91rm9200_mc.h | 116

[PATCH 08/10] ARM: at91/pm: use the atmel-mc syscon defines

2015-03-16 Thread Alexandre Belloni
Use the defines from atmel-mc.h instead of at91rm9200_sdramc.h Signed-off-by: Alexandre Belloni --- arch/arm/mach-at91/include/mach/at91_ramc.h | 2 +- arch/arm/mach-at91/pm.c | 8 arch/arm/mach-at91/pm_suspend.S | 2 +- 3 files changed, 6 insertions(+),

Re: Trusted kernel patchset

2015-03-16 Thread Matthew Garrett
On Mon, 2015-03-16 at 13:35 -0700, David Lang wrote: > On Mon, 16 Mar 2015, Matthew Garrett wrote: > > That's one implementation. Another is the kernel being stored on > > non-volatile media. > > Anything that encourages deploying systems that can't be upgraded to fix bugs > that are discovered i

[PATCH 07/10] pcmcia: at91_cf: Use syscon to configure the MC/smc

2015-03-16 Thread Alexandre Belloni
Use syscon/regmap to configure the smc part of the memory controller. This allows to avoid using mach/at91rm9200_mc.h and mach/at91_ramc.h and to compile the driver in a multiplatform configuration. Signed-off-by: Alexandre Belloni --- drivers/pcmcia/Kconfig | 1 - drivers/pcmcia/at91_cf.c |

[PATCH 02/10] ARM: at91/pm: move AT91_MEMCTRL_* to pm.h

2015-03-16 Thread Alexandre Belloni
the AT91_MEMCTRL_* defines are only used by the pm code, move them to pm.h Signed-off-by: Alexandre Belloni --- arch/arm/mach-at91/include/mach/at91_ramc.h | 4 arch/arm/mach-at91/pm.h | 4 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach

[PATCH 06/10] ARM: at91: declare the at91rm9200 memory controller as a syscon

2015-03-16 Thread Alexandre Belloni
The at91rm9200 memory controller is not simply an SDRAM controller. It also controls the EBI (External Bus Interface), the SMC (Static Memory Controller)and the Burst Flash Controller. Signed-off-by: Alexandre Belloni --- Documentation/devicetree/bindings/arm/atmel-at91.txt | 2 +- arch/arm/boot

[PATCH 03/10] ata: at91: use syscon to configure the smc

2015-03-16 Thread Alexandre Belloni
Use syscon/regmap to configure the smc. This allows to avoid using at91sam9_smc.h and to compile the driver in a multiplatform configuration. The driver will still not probe until the proper DT bindings are added. Signed-off-by: Alexandre Belloni --- drivers/ata/Kconfig | 1 - drivers/ata/

[PATCH 00/10] ARM: at91 cleanups for 4.1 #2

2015-03-16 Thread Alexandre Belloni
Hi, This patch set finishes the clean up of the mach-at91 directory. It fixed the remaining two drivers (at91_cf and pata_at91) so that they compile in a multiplatform configuration. Then it removes the uneeded headers. Alexandre Belloni (9): ARM: at91/pm: move the standby functions to pm.c

[PATCH 04/10] ARM: at91: drop sam9_smc.c

2015-03-16 Thread Alexandre Belloni
sam9_smc.c has no users anymore, remove it along with both sam9_smc.h and mach/at91sam9_smc.h Signed-off-by: Alexandre Belloni --- arch/arm/mach-at91/Makefile| 2 - arch/arm/mach-at91/include/mach/at91sam9_smc.h | 98 -- arch/arm/mach-at91/sam9_smc.c

[PATCH 05/10] mfd: syscon: Add Atmel MC (Memory Controller) registers definition

2015-03-16 Thread Alexandre Belloni
From: Boris Brezillon The at91rm9200 SoC embeds a Memory Controller block which is used to configure several aspects of the platform: - AHB/APB Bus behavior - SDRAM Controller - EBI (External Bus Interface) and SMC (Static Memory Controller) config Those registers might be accessed by different

[PATCH 10/10] ARM: at91: remove at91rm9200_sdramc.h

2015-03-16 Thread Alexandre Belloni
include/soc/at91/at91rm9200_sdramc.h is replaced by include/linux/mfd/syscon/atmel-smc.h as this is actually a syscon device. Signed-off-by: Alexandre Belloni --- include/soc/at91/at91rm9200_sdramc.h | 63 1 file changed, 63 deletions(-) delete mode 100644 i

Re: [PATCH 10/13] VFS/namei: handle LOOKUP_RCU in page_follow_link_light.

2015-03-16 Thread Al Viro
On Mon, Mar 16, 2015 at 03:43:20PM +1100, NeilBrown wrote: > + char *kaddr; > + struct page *page; > + struct address_space *mapping = dentry->d_inode->i_mapping; Who said that dentry->d_inode hasn't gone NULL by that point? > + nd_terminate_link(kaddr, dentry->d_inode->i_size, PA

Re: [PATCH v2 0/7] CLONE_FD: Task exit notification via file descriptor

2015-03-16 Thread Thiago Macieira
On Monday 16 March 2015 15:36:16 Kees Cook wrote: > And just so I understand the races here, what happens in CLONE_FD > (without CLONE_AUTOREAP) case where the child dies, but the parent > never reads from the CLONE_FD fd, and closes it (or dies)? Will the > modes switch that late in the child's li

Re: randconfig build error with next-20150316, in samples/kdbus/kdbus-workers

2015-03-16 Thread Michael Ellerman
On Mon, 2015-03-16 at 23:27 +0100, David Herrmann wrote: > Hi > > On Mon, Mar 16, 2015 at 10:12 PM, Michael Ellerman > wrote: > > On Mon, 2015-03-16 at 17:31 +0100, David Herrmann wrote: > >> Hi > >> > >> On Mon, Mar 16, 2015 at 5:22 PM, Jim Davis wrote: > >> > Building with the attached random

Re: [update][PATCH v10 06/21] ACPI / sleep: Introduce CONFIG_ACPI_GENERIC_SLEEP

2015-03-16 Thread Rafael J. Wysocki
On Monday, March 16, 2015 08:14:52 PM Hanjun Guo wrote: > On 2015年03月14日 05:49, Rafael J. Wysocki wrote: > > On Friday, March 13, 2015 04:14:29 PM Hanjun Guo wrote: > >> From: Graeme Gregory > >> > >> ACPI 5.1 does not currently support S states for ARM64 hardware but > >> ACPI code will call acpi

Re: [PATCH] i8042 / PM: Allow PC keyboard to wake up from suspend-to-idle

2015-03-16 Thread Rafael J. Wysocki
On Monday, March 16, 2015 10:11:08 PM Pavel Machek wrote: > On Tue 2015-03-10 00:08:43, Rafael J. Wysocki wrote: > > On Monday, March 09, 2015 11:41:12 PM Rafael J. Wysocki wrote: > > > On Monday, March 09, 2015 11:00:04 AM Dmitry Torokhov wrote: > > > > Hi Rafael, > > > > > > > > On Mon, Mar 09,

Re: [PATCH] fstests: generic test for preadv2 behavior on linux

2015-03-16 Thread Dave Chinner
On Mon, Mar 16, 2015 at 06:11:19PM -0400, Milosz Tanski wrote: > On Mon, Mar 16, 2015 at 6:02 PM, Dave Chinner wrote: > > On Mon, Mar 16, 2015 at 02:34:22PM -0400, Milosz Tanski wrote: > >> preadv2 is a new syscall introduced that is like preadv2 but with flag > >> argument. The first use case of

Re: [PATCH v4 3/5] staging: rtl8192e: fix coding style errors (macros in parentheses)

2015-03-16 Thread Mateusz Kulikowski
On 16.03.2015 05:51, Joe Perches wrote: > On Sun, 2015-03-15 at 21:39 +0100, Mateusz Kulikowski wrote: >> Fix checkpatch.pl errors 'Macros with complex values should be enclosed in >> parentheses'. > [] >> diff --git a/drivers/staging/rtl8192e/rtl819x_HT.h >> b/drivers/staging/rtl8192e/rtl819x_HT

Re: randconfig build error with next-20150316, in samples/kdbus/kdbus-workers

2015-03-16 Thread David Herrmann
Hi On Mon, Mar 16, 2015 at 11:51 PM, Michael Ellerman wrote: > On Mon, 2015-03-16 at 23:27 +0100, David Herrmann wrote: >> The uapi-include only causes the warning, not the build failure. > > I don't know how you came to that conclusion? > > It fails looking for linux/compiler.h, which is only in

[PATCH v5 00/11] staging: rtl8192e: fix coding style issues

2015-03-16 Thread Mateusz Kulikowski
Various coding style fixes for rtl8192e driver. This series of patches includes v4, was rebased on staging-testing branch (9a836c0a) Changes in v5: - Suggestions by Joe Perches (Thanks!): + Remove unused macros (8/11) + Refactored CURRENT_RATE (11/11) - Removed unused header -rtllib_endianfree

[PATCH v5 04/11] staging: rtl8192e: rtllib_wx: remove duplicate messages

2015-03-16 Thread Mateusz Kulikowski
Some messages were reported with netdev_* macros and internal driver-specific macro. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtllib_wx.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/staging/rtl8192e/rtllib_wx.c b/drivers/staging/rtl8192e/rtllib_wx.c ind

[PATCH v5 01/11] staging: rtl8192e: fix coding style issues (merge broken strings)

2015-03-16 Thread Mateusz Kulikowski
Fix checkpatch.pl warnings: - 'WARNING: quoted string split across lines' - 'WARNING: break quoted strings at a space character' Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl8192e/r8190P_rtl8256.c | 51 +++--- drivers/staging/rtl8192e/rtl8192e/r8192E_cmdpkt.c | 28 +-- dr

[PATCH v5 11/11] staging: rtl8192e: remove CURRENT_RATE macro

2015-03-16 Thread Mateusz Kulikowski
CURRENT_RATE macro is used only once in driver. This patch removes it and adds rtllib_current_rate() static function in file using that macro Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl819x_HT.h | 10 -- drivers/staging/rtl8192e/rtllib_tx.c | 14 -- 2

[PATCH v5 10/11] drivers: staging: rtl8192e: remove eqMacAddr macro

2015-03-16 Thread Mateusz Kulikowski
Remove eqMacAddr macro and replace it with ether_addr_equal_unaligned() Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/dot11d.h | 3 ++- drivers/staging/rtl8192e/rtllib.h | 5 - 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rtl8192e/dot11d.h

[PATCH v5 09/11] staging: rtl8192e: rtllib.h: remove duplicated container_of

2015-03-16 Thread Mateusz Kulikowski
This macro is already defined in kernel.h - there is no need to redefine it. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtllib.h | 14 -- 1 file changed, 14 deletions(-) diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/rtllib.h index 2f0

[PATCH v5 06/11] staging: rtl8192e: remove rtllib_endianfree.h

2015-03-16 Thread Mateusz Kulikowski
rtllib_endianfree.h was not used (only included) Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl819x_Qos.h | 2 - drivers/staging/rtl8192e/rtllib_endianfree.h | 122 --- 2 files changed, 124 deletions(-) delete mode 100644 drivers/staging/rtl81

[PATCH v5 02/11] staging: rtl8192e: fix coding style issues (spaces before semicolon)

2015-03-16 Thread Mateusz Kulikowski
Fix checkpatch.pl warning 'space prohibited before semicolon'. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl8192e/r8192E_cmdpkt.c | 2 +- drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.c | 2 +- drivers/staging/rtl8192e/rtl8192e/r8192E_hwimg.h| 14 +++---

[PATCH v5 03/11] staging: rtl8192e: fix coding style errors (macros in parentheses)

2015-03-16 Thread Mateusz Kulikowski
Fix checkpatch.pl errors 'Macros with complex values should be enclosed in parentheses'. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl819x_HT.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl819x_HT.h b/drivers/staging

[PATCH v5 05/11] staging: rtl8192e: fix coding style warnings (printk -> netdev_*)

2015-03-16 Thread Mateusz Kulikowski
Use netdev_*, dev_* or pr_* instead of printk where possible. KERN_DEBUG messages are left intact as pr_dbg has different behaviour. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c | 4 +- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 54 +- dri

[PATCH v5 08/11] staging: rtl8192e: remove unused macros

2015-03-16 Thread Mateusz Kulikowski
Several (unused) macros were removed from driver. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/dot11d.h| 6 -- drivers/staging/rtl8192e/rtl8192e/rtl_core.h | 4 drivers/staging/rtl8192e/rtl8192e/rtl_dm.h | 8 drivers/staging/rtl8192e/rtl819x_H

Re: [RFC PATCH 2/7] block: convert bio_vec.bv_page to bv_pfn

2015-03-16 Thread Al Viro
> diff --git a/mm/iov_iter.c b/mm/iov_iter.c > index 827732047da1..be9a7c5b8703 100644 > --- a/mm/iov_iter.c > +++ b/mm/iov_iter.c > @@ -61,7 +61,7 @@ > __p = i->bvec; \ > __v.bv_len = min_t(size_t, n, __p->bv_len - skip); \ > if (likely(__v.b

[PATCH v5 07/11] staging: rtl8192e: remove dead code

2015-03-16 Thread Mateusz Kulikowski
Remove commented-out unions and enum. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl819x_HT.h | 34 -- drivers/staging/rtl8192e/rtllib.h | 12 2 files changed, 46 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl819x_HT.h

Re: [PATCH 2/3] Documentation: devicetree: add binding doc for Broadcom NAND controller

2015-03-16 Thread Scott Branden
Hi Brian, On 15-03-06 05:18 PM, Brian Norris wrote: Signed-off-by: Brian Norris --- .../devicetree/bindings/mtd/brcmstb_nand.txt | 109 + 1 file changed, 109 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/brcmstb_nand.txt diff --git a/Doc

Re: [PATCH] ARM: OMAP1: PM: fix some build warnings on 1510-only Kconfigs

2015-03-16 Thread Tony Lindgren
* Jon Hunter [150212 04:37]: > > On 02/12/2015 11:26 AM, Jon Hunter wrote: > > > > On 02/11/2015 09:14 PM, Tony Lindgren wrote: > >> * Paul Walmsley [150211 13:03]: > >>> On Wed, 11 Feb 2015, Tony Lindgren wrote: > >>> > * Paul Walmsley [150210 18:28]: > > On Tue, 10 Feb 2015, Jon Hun

Re: [PATCH RESEND v10] sched/deadline: support dl task migration during cpu hotplug

2015-03-16 Thread Wanpeng Li
Hi Ingo, On Mon, Mar 16, 2015 at 04:01:02PM +0100, Ingo Molnar wrote: >> + >> +/* >> + * If cannot preempt any rq, fallback to pick any >> + * online cpu. > >s/If cannot/If we cannot >s/fallback/fall back Will do. > >> +

Re: [PATCH] ACPI: Adjust the return value of _REV on x86

2015-03-16 Thread Jason Ekstrand
On Sat, Mar 14, 2015 at 12:58 PM, Jason Ekstrand wrote: > From: Jason Ekstrand > > On Wed, 11 Mar 2015 22:50:47, Matthew Garrett wrote: >> The ACPI spec describes _REV as: >> >> "This predefined object evaluates to the revision of the ACPI Specification >> that the specified \_OS implements" >>

Re: linux panic on 4.0.0-rc4

2015-03-16 Thread Michael Ellerman
On Mon, 2015-03-16 at 09:30 -0400, Pranith Kumar wrote: > On Mon, Mar 16, 2015 at 4:16 AM, Michael Ellerman wrote: > > On Mon, 2015-03-16 at 01:34 -0400, Pranith Kumar wrote: > >> On Mon, Mar 16, 2015 at 1:11 AM, Pranith Kumar > >> wrote: > >> > Hello, > >> > > >> > I have a power mac mini 32-bi

Re: [PATCHv3 xfstests 2/3] generic: test openat and new O_BENEATH flag

2015-03-16 Thread Dave Chinner
On Mon, Mar 09, 2015 at 02:00:11PM +, David Drysdale wrote: > Test basic openat(2) behaviour. > > Test that if O_BENEATH flag is set, openat() will only > open paths that have no .. component and do not start > with /. Symlinks are also checked for the same restrictions. > > Signed-off-by: D

[PATCH] x86, mce, severities: Add AMD severities function

2015-03-16 Thread Aravind Gopalakrishnan
Add a severities function that caters to AMD processors. This allows us to do some vendor specific work within the function if necessary. Also, introduce a vendor flag bitfield which contains vendor specific flags. The severities code uses this to define error scope based on the prescence of the f

Re: [PATCH v2 0/7] CLONE_FD: Task exit notification via file descriptor

2015-03-16 Thread josh
On Mon, Mar 16, 2015 at 02:44:20PM -0700, Kees Cook wrote: > On Sun, Mar 15, 2015 at 12:59 AM, Josh Triplett wrote: > > - Make poll on a CLONE_FD for an exited task also return POLLHUP, for > > compatibility with FreeBSD's pdfork. Thanks to David Drysdale for calling > > attention to pdfork.

Re: [PATCH v3] f2fs: add fast symlink support

2015-03-16 Thread Wanpeng Li
Ping Jaegeuk, On Fri, Mar 13, 2015 at 02:33:39PM +0800, Wanpeng Li wrote: >This patch introduces the improvement fast symlinks to allow storage of >the target path within inode, thus symlinks with short target paths are >more accessed quickly. It will fall back to using the original slow >symlink i

Re: [PATCH v2 0/7] CLONE_FD: Task exit notification via file descriptor

2015-03-16 Thread Kees Cook
On Mon, Mar 16, 2015 at 3:50 PM, Thiago Macieira wrote: > On Monday 16 March 2015 15:36:16 Kees Cook wrote: >> And just so I understand the races here, what happens in CLONE_FD >> (without CLONE_AUTOREAP) case where the child dies, but the parent >> never reads from the CLONE_FD fd, and closes it

Re: [PATCH v3] f2fs: add fast symlink support

2015-03-16 Thread Wanpeng Li
Hi Chao, On Mon, Mar 16, 2015 at 09:03:30PM +0800, Chao Yu wrote: >Hi Wanpeng, Jaegeuk, > >> -Original Message- >> From: Wanpeng Li [mailto:wanpeng...@linux.intel.com] >> Sent: Friday, March 13, 2015 2:34 PM >> To: Jaegeuk Kim >> Cc: Changman Lee; Chao Yu; linux-f2fs-de...@lists.sourceforge

[GIT PULL] KVM fixes for 4.0-rc4

2015-03-16 Thread Marcelo Tosatti
Linus, Please pull from git://git.kernel.org/pub/scm/virt/kvm/kvm.git master To receive the following KVM bug fixes (ARM and x86). Christoffer Dall (1): arm/arm64: KVM: Keep elrsr/aisr in sync with software model Marc Zyngier (3): arm64: KVM: Fix stage-2 PGD allocation to have pe

Re: [PATCH v2 0/7] CLONE_FD: Task exit notification via file descriptor

2015-03-16 Thread josh
On Mon, Mar 16, 2015 at 03:14:14PM -0700, Thiago Macieira wrote: > On Monday 16 March 2015 14:44:20 Kees Cook wrote: > > > O_CLOEXEC > > > Set the close-on-exec flag on the new file > > >descriptor. See the description of the O_CLOEXEC flag in open(2) for > >

Re: [PATCH] ARM: mm: Do not invoke OOM for higher order IOMMU DMA allocations

2015-03-16 Thread David Rientjes
On Mon, 16 Mar 2015, Tomasz Figa wrote: > diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c > index 83cd5ac..f081e9e 100644 > --- a/arch/arm/mm/dma-mapping.c > +++ b/arch/arm/mm/dma-mapping.c > @@ -1145,18 +1145,31 @@ static struct page **__iommu_alloc_buffer(struct > device *dev

Re: [PATCH REGRESSION FIX] x86 idle: restore mwait_idle()

2015-03-16 Thread Ian Malone
On 15 March 2015 at 04:53, Mike Galbraith wrote: > On Sat, 2015-03-14 at 23:44 +, Ian Malone wrote: >> On 18 January 2014 at 16:14, Mike Galbraith wrote: >> > On Sat, 2014-01-18 at 10:33 +0100, Mike Galbraith wrote: >> >> On Fri, 2014-01-17 at 05:20 +0100, Mike Galbraith wrote: >> >> > Signed

Re: [PATCH] ARM: OMAP4: remove dead kconfig option OMAP4_ERRATA_I688

2015-03-16 Thread Tony Lindgren
* Stefan Hengelein [150225 10:48]: > The Kconfig-Option OMAP4_ERRATA_I688 is never visible due to a > contradiction in it's dependencies. > The option requires ARCH_MULTIPLATFORM to be 'disabled'. However, an > enclosing menu requires either ARCH_MULTI_V6 or ARCH_MULTI_V7 to be > enabled. These op

Re: [PATCH] seccomp.2: Explain arch checking, value (non-)truncation, expand example

2015-03-16 Thread Jann Horn
On Mon, Mar 16, 2015 at 03:25:56PM -0700, Kees Cook wrote: > On Mon, Mar 16, 2015 at 11:01 AM, Jann Horn wrote: > > Document some more-or-less surprising things about seccomp. > > I'm not sure whether changing the example code like that is a > > good idea - maybe that part of the patch should be l

Re: [PATCH v2 0/7] CLONE_FD: Task exit notification via file descriptor

2015-03-16 Thread josh
On Mon, Mar 16, 2015 at 03:36:16PM -0700, Kees Cook wrote: > On Mon, Mar 16, 2015 at 3:14 PM, Thiago Macieira > wrote: > > On Monday 16 March 2015 14:44:20 Kees Cook wrote: > >> > O_CLOEXEC > >> > Set the close-on-exec flag on the new file > >> >descriptor. Se

Re: [PATCH 2/3] Documentation: devicetree: add binding doc for Broadcom NAND controller

2015-03-16 Thread Brian Norris
On Mon, Mar 16, 2015 at 04:07:51PM -0700, Scott Branden wrote: > On 15-03-06 05:18 PM, Brian Norris wrote: > >Signed-off-by: Brian Norris > >--- > > .../devicetree/bindings/mtd/brcmstb_nand.txt | 109 > > + > > 1 file changed, 109 insertions(+) > > create mode 100644 D

Re: [PATCH 2/3] Documentation: devicetree: add binding doc for Broadcom NAND controller

2015-03-16 Thread Scott Branden
On 15-03-16 04:37 PM, Brian Norris wrote: On Mon, Mar 16, 2015 at 04:07:51PM -0700, Scott Branden wrote: On 15-03-06 05:18 PM, Brian Norris wrote: Signed-off-by: Brian Norris --- .../devicetree/bindings/mtd/brcmstb_nand.txt | 109 + 1 file changed, 109 insertions(

[PATCH vfio] vfio: virqfd_lock can be static

2015-03-16 Thread kbuild test robot
Signed-off-by: Fengguang Wu --- virqfd.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/vfio/virqfd.c b/drivers/vfio/virqfd.c index 5967899..3d19aaf 100644 --- a/drivers/vfio/virqfd.c +++ b/drivers/vfio/virqfd.c @@ -16,7 +16,7 @@ #include static struct workqu

[vfio:next 19/21] drivers/vfio/virqfd.c:19:1: sparse: symbol 'virqfd_lock' was not declared. Should it be static?

2015-03-16 Thread kbuild test robot
tree: git://github.com/awilliam/linux-vfio.git next head: 2f51bf4be99386f49841b6365a85a5cabc148565 commit: 42ac9bd18d4fc28c36c7927847f0f6e90ecd7710 [19/21] vfio: initialize the virqfd workqueue in VFIO generic code reproduce: # apt-get install sparse git checkout 42ac9bd18d4fc28c36c7927847

Re: [PATCH 0/3] mtd: nand: add Broadcom NAND controller support

2015-03-16 Thread Brian Norris
(Your HTML mail will likely get blocked by a lot of filters) Hi Anatol, On Mon, Mar 16, 2015 at 04:24:20PM -0700, Anatol Pomazau wrote: > Hi Brian > > Thanks for the patch series. I am going to test it on a Broadcom dev board. > > Do you plan to add a patch for bcm-cygnus.dtsi similar to what i

Re: [PATCH 2/3] Documentation: devicetree: add binding doc for Broadcom NAND controller

2015-03-16 Thread Brian Norris
On Mon, Mar 16, 2015 at 04:40:13PM -0700, Scott Branden wrote: > > On 15-03-16 04:37 PM, Brian Norris wrote: > >On Mon, Mar 16, 2015 at 04:07:51PM -0700, Scott Branden wrote: > >>On 15-03-06 05:18 PM, Brian Norris wrote: > >>>Signed-off-by: Brian Norris > >>>--- > >>> .../devicetree/bindings/mtd

RE: [PATCH 0/3] scsi: storvsc: Increase the tablesize based on host's capabilities

2015-03-16 Thread KY Srinivasan
> -Original Message- > From: K. Y. Srinivasan [mailto:k...@microsoft.com] > Sent: Monday, March 9, 2015 8:42 PM > To: gre...@linuxfoundation.org; linux-kernel@vger.kernel.org; > de...@linuxdriverproject.org; oher...@suse.com; > jbottom...@parallels.com; h...@infradead.org; linux-s...@vger

Re: [PATCH v4 1/5] mm: cma: add trace events to debug physically-contiguous memory allocations

2015-03-16 Thread Steven Rostedt
On Mon, 16 Mar 2015 23:49:01 +0300 Stefan Strogin wrote: > Oops... forgot to cc tracing maintainers. Sorry! Thanks, > > On 16/03/15 19:06, Stefan Strogin wrote: > > Add trace events for cma_alloc() and cma_release(). > > > > Signed-off-by: Stefan Strogin > > --- > > include/trace/events/cma

Re: [PATCH 2/3] Documentation: devicetree: add binding doc for Broadcom NAND controller

2015-03-16 Thread Scott Branden
Hi Brian, On 15-03-16 04:46 PM, Brian Norris wrote: On Mon, Mar 16, 2015 at 04:40:13PM -0700, Scott Branden wrote: On 15-03-16 04:37 PM, Brian Norris wrote: On Mon, Mar 16, 2015 at 04:07:51PM -0700, Scott Branden wrote: So, what's the standard? Company prefix? Long name? Commas? Hyphens? T

[PATCH V2 0/4] hugetlbfs: add min_size filesystem mount option

2015-03-16 Thread Mike Kravetz
hugetlbfs allocates huge pages from the global pool as needed. Even if the global pool contains a sufficient number pages for the filesystem size at mount time, those global pages could be grabbed for some other use. As a result, filesystem huge page allocations may fail due to lack of pages. Ap

[PATCH V2 2/4] hugetlbfs: add minimum size accounting to subpools

2015-03-16 Thread Mike Kravetz
The same routines that perform subpool maximum size accounting hugepage_subpool_get/put_pages() are modified to also perform minimum size accounting. When a delta value is passed to these routines, calculate how global reservations must be adjusted to maintain the subpool minimum size. The routin

[PATCH V2 3/4] hugetlbfs: accept subpool min_size mount option and setup accordingly

2015-03-16 Thread Mike Kravetz
Make 'min_size=' be an option when mounting a hugetlbfs. This option takes the same value as the 'size' option. min_size can be specified with specifying size. If both are specified, min_size must be less that or equal to size else the mount will fail. If min_size is specified, then at mount ti

[PATCH V2 4/4] hugetlbfs: document min_size mount option

2015-03-16 Thread Mike Kravetz
Update documentation for the hugetlbfs min_size mount option. Signed-off-by: Mike Kravetz --- Documentation/vm/hugetlbpage.txt | 21 ++--- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/Documentation/vm/hugetlbpage.txt b/Documentation/vm/hugetlbpage.txt index f2d3

[PATCH V2 1/4] hugetlbfs: add minimum size tracking fields to subpool structure

2015-03-16 Thread Mike Kravetz
Add a field to the subpool structure to indicate the minimimum number of huge pages to always be used by this subpool. This minimum count includes allocated pages as well as reserved pages. If the minimum number of pages for the subpool have not been allocated, pages are reserved up to this minimu

Re: [2/9] powerpc/hv24x7: Remove unnecessary parameter

2015-03-16 Thread Michael Ellerman
On Tue, 2015-17-02 at 22:00:27 UTC, Sukadev Bhattiprolu wrote: > Use pr_notice_ratelimited() to log error messages and remove > the 'success_expected' parameter. I don't understand how this is equivalent? The current code uses success_expected to indicate that once it's done the request once and

Re: [PATCH v3 1/6] staging: rtl8192e: fix coding style issues (merge broken strings)

2015-03-16 Thread Joe Perches
On Mon, 2015-03-16 at 22:57 +0100, Mateusz Kulikowski wrote: > On 13.03.2015 01:27, Joe Perches wrote: > > > > Another thing you might consider is to change these > > embedded function names in another patch to use > > "%s: ", __func__ > > > > RT_TRACE(COMP_ERR, >

Re: kexec fails if OF_UNITTEST=y (was: Re: [PATCH v2] Removes OF_UNITTEST dependency on OF_DYNAMIC config symbol)

2015-03-16 Thread Rob Herring
On Mon, Mar 16, 2015 at 5:58 AM, Geert Uytterhoeven wrote: > On Fri, Jan 23, 2015 at 2:03 PM, Geert Uytterhoeven > wrote: >> On Sun, Jan 11, 2015 at 8:19 AM, Gaurav Minocha >> wrote: >>> This patch intends to remove the unittests dependency on >>> the functions defined in dynamic.c. So, rather t

[PATCH] phy: samsung_usb2: Fixup samsung_usb2_phy_power_on/off paths

2015-03-16 Thread Axel Lin
Ensure we have balanced clk_prepare_enable/clk_disable_unprepare calls if .power_on or .power_off callbacks return error. Signed-off-by: Axel Lin --- drivers/phy/phy-samsung-usb2.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/phy/phy-samsung-usb2.c b/dri

Re: [PATCH] Add a quirk for the Dell XPS 13 (2015) when in PS/2 mode.

2015-03-16 Thread Mario Limonciello
On 03/16/2015 04:07 PM, Benjamin Tissoires wrote: On Mon, Mar 16, 2015 at 4:57 PM, Jason Ekstrand wrote: Yes, that's the gist of it. Mario, you might not have seen the problem because you are not running wayland and/or libinput. The xorg synaptics driver is much more relaxed concerning what it

[LKP] [pci] 38ada4d7c6b: general protection fault: 0000 [#1] SMP

2015-03-16 Thread Huang Ying
FYI, we noticed the below changes on git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git vhost-next commit 38ada4d7c6b416b2c41e67b721ebcfeec89e4751 ("pci: disable msi/msix at probe time") +--+++ |

Re: [PATCH] phy: qcom-ufs: Catch devm_phy_create failure in ufs_qcom_phy_generic_probe

2015-03-16 Thread Axel Lin
2015-03-03 9:05 GMT+08:00 Axel Lin : > Current code does NULL test against return value of > ufs_qcom_phy_generic_probe. > However, in the case of devm_phy_create() failure, ufs_qcom_phy_generic_probe > does not return NULL. Fix it. Hi Kishon, Seems this patch is missed. Should I resend it? Thanks

Re: [RFC, PATCH] pagemap: do not leak physical addresses to non-privileged userspace

2015-03-16 Thread Mark Seaborn
On 16 March 2015 at 14:11, Pavel Machek wrote: > On Mon 2015-03-09 23:11:12, Kirill A. Shutemov wrote: > > From: "Kirill A. Shutemov" > > > > As pointed by recent post[1] on exploiting DRAM physical imperfection, > > /proc/PID/pagemap exposes sensitive information which can be used to do > > atta

Re: [PATCH v2 0/7] CLONE_FD: Task exit notification via file descriptor

2015-03-16 Thread Thiago Macieira
On Monday 16 March 2015 16:29:49 j...@joshtriplett.org wrote: > > A child without CLONE_AUTOREAP should be wait()able. If it gets wait()ed > > before the clonefd is read, the clonefd() will return a 0 read. If it > > gets > > read before wait, then wait() reaps another child or returns -ECHILD. >

Re: [PATCH] mfd: stw481x: Remove unused fields from struct stw481x

2015-03-16 Thread Axel Lin
2015-02-16 19:51 GMT+08:00 Lee Jones : > On Fri, 13 Feb 2015, Axel Lin wrote: > >> The mutex lock is not used at all, remove it. >> The *vmmc_regulator is not necessary, use a local variable in >> stw481x_vmmc_regulator_probe() instead. >> >> Signed-off-by: Axel Lin >> --- >> drivers/regulator/st

Re: [PATCH 06/13] VFS/namei: new flag to support RCU symlinks: LOOKUP_LINK_RCU.

2015-03-16 Thread Al Viro
On Mon, Mar 16, 2015 at 10:33:45PM +, Al Viro wrote: > On Mon, Mar 16, 2015 at 03:43:20PM +1100, NeilBrown wrote: > > When we support ->follow_link in RCU-walk we will not want to > > take a reference to the 'struct path *link' passed to follow_link, > > and correspondingly will not want to dro

Re: [PATCH kernel v6 29/29] vfio: powerpc/spapr: Support Dynamic DMA windows

2015-03-16 Thread Alexey Kardashevskiy
On 03/17/2015 06:38 AM, Alex Williamson wrote: On Fri, 2015-03-13 at 19:07 +1100, Alexey Kardashevskiy wrote: This adds create/remove window ioctls to create and remove DMA windows. sPAPR defines a Dynamic DMA windows capability which allows para-virtualized guests to create additional DMA windo

Re: [PATCH] mm/slub: fix lockups on PREEMPT && !SMP kernels

2015-03-16 Thread Joonsoo Kim
Hello, On Fri, Mar 13, 2015 at 03:47:12PM +, Mark Rutland wrote: > Commit 9aabf810a67cd97e ("mm/slub: optimize alloc/free fastpath by > removing preemption on/off") introduced an occasional hang for kernels > built with CONFIG_PREEMPT && !CONFIG_SMP. > > The problem is the following loop the

Re: [update][PATCH v10 06/21] ACPI / sleep: Introduce CONFIG_ACPI_GENERIC_SLEEP

2015-03-16 Thread Hanjun Guo
On 2015/3/17 7:15, Rafael J. Wysocki wrote: > On Monday, March 16, 2015 08:14:52 PM Hanjun Guo wrote: >> On 2015年03月14日 05:49, Rafael J. Wysocki wrote: >>> On Friday, March 13, 2015 04:14:29 PM Hanjun Guo wrote: [...] diff --git a/arch/ia64/Kconfig b/arch/ia64/Kconfig index 074e52b..

Re: [PATCH 30/35 linux-next] devfreq: constify of_device_id array

2015-03-16 Thread MyungJoo Ham
> of_device_id is always used as const. > (See driver.of_match_table and open firmware functions) > > Signed-off-by: Fabian Frederick Acked-by: MyungJoo Ham > --- > drivers/devfreq/event/exynos-ppmu.c | 2 +- > drivers/devfreq/tegra-devfreq.c | 2 +- > 2 files changed, 2 insertions(+), 2

[PATCH] zsmalloc: zsmalloc documentation

2015-03-16 Thread Minchan Kim
On Wed, Mar 04, 2015 at 04:56:10PM -0800, Andrew Morton wrote: > On Thu, 5 Mar 2015 09:43:31 +0900 Minchan Kim wrote: > > > Hello Andrew, > > > > On Wed, Mar 04, 2015 at 02:02:02PM -0800, Andrew Morton wrote: > > > On Wed, 4 Mar 2015 14:01:32 +0900 Minchan Kim wrote: > > > > > > > +static int

Re: [PATCH] ARM: mm: Do not invoke OOM for higher order IOMMU DMA allocations

2015-03-16 Thread Tomasz Figa
Hi David, On Tue, Mar 17, 2015 at 8:32 AM, David Rientjes wrote: > On Mon, 16 Mar 2015, Tomasz Figa wrote: > >> diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c >> index 83cd5ac..f081e9e 100644 >> --- a/arch/arm/mm/dma-mapping.c >> +++ b/arch/arm/mm/dma-mapping.c >> @@ -1145,18

Re: [PATCH] ARM: dts: am437x-gp-evm: add DT nodes for ov2659 sensor

2015-03-16 Thread Lad, Prabhakar
Hi Tony, On Mon, Mar 16, 2015 at 10:17 PM, Tony Lindgren wrote: > * Lad Prabhakar [150312 16:38]: >> From: "Lad, Prabhakar" >> >> this patch does the following: >> 1: adds DT node for fixed oscillator. >> 2: adds DT node entries for ov2659 sensor >> 3: adds remote-endpoint entry for VPFE. >> >>

[RFC PATCH v2 1/5] new helper: iov_iter_rw()

2015-03-16 Thread Omar Sandoval
Get either READ or WRITE out of iter->type. Signed-off-by: Omar Sandoval --- Thanks, Al, this is much better. Anything else you'd like me to address for this series? include/linux/uio.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/linux/uio.h b/include/linux/uio.h index 718

[PATCH v2 0/3] staging: lustre: Fix checkpatch.pl warnings.

2015-03-16 Thread Alberto Pires de Oliveira Neto
Changes since v1: - Put '}' in the next line instead of just insert a space for lproc_fld.c. Alberto Pires de Oliveira Neto (3): staging: lustre: space prohibited between function name and open parenthesis '(' staging: lustre: void function return statements are not generally useful. stagi

Re: [RFC, PATCH] pagemap: do not leak physical addresses to non-privileged userspace

2015-03-16 Thread Andy Lutomirski
On Mon, Mar 16, 2015 at 5:49 PM, Mark Seaborn wrote: > On 16 March 2015 at 14:11, Pavel Machek wrote: >> On Mon 2015-03-09 23:11:12, Kirill A. Shutemov wrote: >> > From: "Kirill A. Shutemov" >> > >> > As pointed by recent post[1] on exploiting DRAM physical imperfection, >> > /proc/PID/pagemap e

[PATCH v2 3/3] staging: lustre: space required after that close brace '}'

2015-03-16 Thread Alberto Pires de Oliveira Neto
This patch fixes checkpatch.pl warning. WARNING: space required after that close brace '}' Signed-off-by: Alberto Pires de Oliveira Neto --- drivers/staging/lustre/lustre/fld/lproc_fld.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/lustre/lustre/fld/lproc

  1   2   3   4   5   6   7   8   9   10   >