[PATCH 4/8] cgroup: cgroup namespace setns support

2016-01-04 Thread serge . hallyn
From: Aditya Kali setns on a cgroup namespace is allowed only if task has CAP_SYS_ADMIN in its current user-namespace and over the user-namespace associated with target cgroupns. No implicit cgroup changes happen with attaching to another cgroupns. It is expected that the somone moves the attachi

[PATCH 3/8] cgroup: introduce cgroup namespaces

2016-01-04 Thread serge . hallyn
From: Aditya Kali Introduce the ability to create new cgroup namespace. The newly created cgroup namespace remembers the cgroup of the process at the point of creation of the cgroup namespace (referred as cgroupns-root). The main purpose of cgroup namespace is to virtualize the contents of /proc/

[PATCH 5/8] kernfs: define kernfs_node_dentry

2016-01-04 Thread serge . hallyn
From: Aditya Kali Add a new kernfs api is added to lookup the dentry for a particular kernfs path. Signed-off-by: Aditya Kali Signed-off-by: Serge E. Hallyn Acked-by: Greg Kroah-Hartman --- Changelog: 20151116 - Don't allow user namespaces to bind new subsystems 20151118 - pos

[PATCH 6/8] cgroup: mount cgroupns-root when inside non-init cgroupns

2016-01-04 Thread serge . hallyn
patch, until we can convince ourselves it is safe. 20151207 - Switch to walking up the kernfs path from kn root. - Group initialized variables - Explain the capable(CAP_SYS_ADMIN) check - Style fixes 201

[PATCH 8/8] Add FS_USERNS_FLAG to cgroup fs

2016-01-04 Thread serge . hallyn
From: Serge Hallyn allowing root in a non-init user namespace to mount it. This should now be safe, because 1. non-init-root cannot mount a previously unbound subsystem 2. the task doing the mount must be privileged with respect to the user namespace owning the cgroup namespace 3. the mounte

[PATCH 7/8] cgroup: Add documentation for cgroup namespaces

2016-01-04 Thread serge . hallyn
From: Serge Hallyn Signed-off-by: Aditya Kali Signed-off-by: Serge Hallyn Signed-off-by: Tejun Heo --- Changelog (2015-12-08): Merge into Documentation/cgroup.txt Changelog (2015-12-22): Reformat to try to follow the style of the rest of the cgroup.txt file. Changelog (2015-12-22): tj:

[PATCH 1/8] kernfs: Add API to generate relative kernfs path

2016-01-04 Thread serge . hallyn
From: Aditya Kali The new function kernfs_path_from_node() generates and returns kernfs path of a given kernfs_node relative to a given parent kernfs_node. Signed-off-by: Aditya Kali Signed-off-by: Serge E. Hallyn Acked-by: Greg Kroah-Hartman --- Changelog 20151125: - Fully-wing multilineco

CGroup Namespaces (v9)

2016-01-04 Thread serge . hallyn
Hi, following is a revised set of the CGroup Namespace patchset which Aditya Kali has previously sent. The code can also be found in the cgroupns.v9 branch of https://git.kernel.org/cgit/linux/kernel/git/sergeh/linux-security.git/ To summarize the semantics: 1. CLONE_NEWCGROUP re-uses 0x02

Re: [PATCH v4 3/5] mfd: hi655x: Add hi665x pmic driver

2016-01-04 Thread kbuild test robot
Hi Chen, [auto build test WARNING on v4.4-rc8] [also build test WARNING on next-20160104] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Chen-Feng/Add-Support-for-Hi6220-PMIC-Hi6553-MFD-Core

Re: [PATCH v2] thinkpad_acpi: Add support for keyboard backlight

2016-01-04 Thread Darren Hart
On Wed, Dec 30, 2015 at 11:27:41PM +0100, Pali Rohár wrote: > This patch adds support for controlling keyboard backlight via standard > linux led class interface (::kbd_backlight). It uses ACPI HKEY device with > MLCG and MLCS methods. > Which laptops is this intended to support? Henrique, I'm h

Re: [PATCH] gpio: Add driver for TI TPIC2810

2016-01-04 Thread Javier Martinez Canillas
Hello Andrew, [snip] > >>> +static const struct i2c_device_id tpic2810_id_table[] = { >>> + { "tpic2810", }, >>> + { /* sentinel */ } >>> +}; >>> +MODULE_DEVICE_TABLE(i2c, tpic2810_id_table); >>> + >>> +static struct i2c_driver tpic2810_driver = { >>> + .driver = { >>> +

[PATCH 09/17] usb: host: ehci-dbg: fix up function definitions

2016-01-04 Thread Geyslan G. Bem
Functions must have the opening brace at the beginning of the next line and body conforming indentation. This patch also reduces qh_lines() header definition to two lines. Signed-off-by: Geyslan G. Bem --- drivers/usb/host/ehci-dbg.c | 44 +--- 1 file cha

[PATCH 00/17] usb: host: ehci-dbg: cleanup and refactoring

2016-01-04 Thread Geyslan G. Bem
This patchset removes all errors reported by checkpatch in addition to some refactoring. Geyslan G. Bem (17): usb: host: ehci-dbg: remove space before open parenthesis usb: host: ehci-dbg: remove space before open square bracket usb: host: ehci-dbg: use C89-style comments usb: host: ehci-d

Re: [PATCH v3] surface pro 4: Add support for Surface Pro 4 Buttons

2016-01-04 Thread Darren Hart
On Sun, Dec 27, 2015 at 11:21:20AM -0800, Weng Xuetian wrote: > Surface Pro 4 buttons are managed by a device with _HID "MSHW0040" > different from Surface Pro 3. > > This commit adds MSHW0040 to id list to support the Surface Pro 4, and > renames the driver to surfacepro_button accordingly. > >

Re: [tpmdd-devel] [PATCH] tpm: remove unneeded include of actbl2.h

2016-01-04 Thread Jerry Snitselaar
On Mon Jan 04 16, Jerry Snitselaar wrote: tpm_tis.c already gets actbl2.h via linux/acpi.h -> acpi/acpi.h -> acpi/actbl.h -> acpi/actbl2.h, so the direct include in tpm_tis.c is not needed. Signed-off-by: Jerry Snitselaar --- Jarrko, this is a trivial thing I noticed while doing some work. Not

Re: [PATCH 1/1] first line in booting the kernel

2016-01-04 Thread Pavel Machek
On Thu 2015-12-24 09:55:14, Alexandru GOIA wrote: > > What it does : first line of booting kernel, as seen in dmesg(1), will be the > Linux kernel signature > (version, compiler, compiler hostname). > > What it solves : it appers ahead of cgroup messages at booting. Acked-by: Pavel Machek (An

[PATCH 04/17] usb: host: ehci-dbg: move trailing statements to next line

2016-01-04 Thread Geyslan G. Bem
This patch fixes coding style issues reported by checkpatch concerning to switch case statements. There are few additional changes made to fix other coding styles issues. These additional changes are: - The compound statement "({...})" on line 474 is pulled out from snprintf parameters. - O

Re: [PATCH v3 0/4] um: Add seccomp support

2016-01-04 Thread Kees Cook
On Tue, Dec 29, 2015 at 12:35 PM, Mickaël Salaün wrote: > This series add seccomp support to User-mode Linux (i386 and x86_64 > subarchitectures) and fix ptrace issues. This apply on v4.4-rc7 and pass all > the 48 tests from selftest/seccomp plus the UML ptsc test. > > Changes since v2: > * remove

Re: [PATCH v2 17/32] arm: define __smp_xxx

2016-01-04 Thread Michael S. Tsirkin
On Mon, Jan 04, 2016 at 02:36:58PM +0100, Peter Zijlstra wrote: > On Sun, Jan 03, 2016 at 11:12:44AM +0200, Michael S. Tsirkin wrote: > > On Sat, Jan 02, 2016 at 11:24:38AM +, Russell King - ARM Linux wrote: > > > > My only concern is that it gives people an additional handle onto a > > > "new

[PATCH 17/17] usb: host: ehci-dbg: refactor fill_periodic_buffer function

2016-01-04 Thread Geyslan G. Bem
This patch fixes a coding style issue reported by checkpatch related to many leading tabs, removing a 'do while' loop and making use of goto tag instead. Others changes in this patch are: - Some multiline statements are reduced (718, 729, 780, 786, 790). - A constant is moved to right on line 7

[PATCH 10/17] usb: host: ehci-dbg: use a blank line after struct declarations

2016-01-04 Thread Geyslan G. Bem
This patch fixes coding style issues reported by checkpatch concerning to missing line after struct declarations. Signed-off-by: Geyslan G. Bem --- drivers/usb/host/ehci-dbg.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/host/ehci-dbg.c b/drivers/usb/host/ehci-dbg.c index a

Re: [PATCH] thinkpad_acpi: Add support for keyboard backlight

2016-01-04 Thread Pavel Machek
Hi1 > This patch adds support for controlling keyboard backlight via standard > linux led class interface (::kbd_backlight). It uses ACPI HKEY device with > MLCG and MLCS methods. > > Signed-off-by: Pali Rohár > Tested-by: Fabio D'Urso On my thinkpad, keyboard light is controlled by /sys/clas

Re: Suspend To RAM failure in >= 4.1 - bissected to "drm/i915: Track GEN6 page table usage"

2016-01-04 Thread Pavel Machek
Hi! > > I then ran a git bissect between v4.0 and v4.1 from Linus's tree and > > found the "guilty" commit was > > > > commit 317b4e903636305cfe702ab3e5b3d68547a69e72 > > Author: Ben Widawsky > > Date: Mon Mar 16 16:00:55 2015 + > > > > drm/i915: Extract context switch skip and add pd l

[PATCH 15/17] usb: host: ehci-dbg: enclose conditional blocks with braces

2016-01-04 Thread Geyslan G. Bem
This patch fixes coding style issues reported by checkpatch concerning to conditional blocks without braces. Signed-off-by: Geyslan G. Bem --- drivers/usb/host/ehci-dbg.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/usb/host/ehci-dbg.c b/drivers/usb/host/e

[PATCH 14/17] usb: host: ehci-dbg: replace sizeof operand

2016-01-04 Thread Geyslan G. Bem
This patch fixes a coding style issue reported by checkpatch concerning to usage of sizeof operand as a variable instead the type. Signed-off-by: Geyslan G. Bem --- drivers/usb/host/ehci-dbg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/ehci-dbg.c b/drive

[PATCH 16/17] usb: host: ehci-dbg: prefer kmalloc_array over kmalloc times size

2016-01-04 Thread Geyslan G. Bem
This patch fixes a coding style issue reported by checkpatch related to kmalloc_array usage. On same line the sizeof operand was enclosed by parenthesis. Signed-off-by: Geyslan G. Bem --- drivers/usb/host/ehci-dbg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb

[PATCH 13/17] usb: host: ehci-dbg: remove blank line before close brace

2016-01-04 Thread Geyslan G. Bem
This patch fixes coding style issue reported by checkpatch concerning to an unnecessary line before close brace. Signed-off-by: Geyslan G. Bem --- drivers/usb/host/ehci-dbg.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/host/ehci-dbg.c b/drivers/usb/host/ehci-dbg.c index a42b05

[PATCH 11/17] usb: host: ehci-dbg: convert macro to inline function

2016-01-04 Thread Geyslan G. Bem
This patch converts macros into inline functions since the usage of second is encouraged by Coding Style instead of the first. Macros converted to functions: - dbg_status - dbg_cmd - dbg_port - speed_char The size after changes remains the same. Before: text data bss dec hex filename 369

Re: [PATCH v2 0/2] Introduce the bulk IV mode for improving the crypto engine efficiency

2016-01-04 Thread Mark Brown
On Sat, Jan 02, 2016 at 11:46:08PM +0100, Milan Broz wrote: > Anyway, I think that you should optimize driver, not add strange hw-dependent > crypto modes to dmcrypt. This is not the first crypto accelerator that is > just not > suited for this kind of use. > (If it can process batch of chunks o

[PATCH 12/17] usb: host: ehci-dbg: add blank line after declarations

2016-01-04 Thread Geyslan G. Bem
This patch fixes coding style issues reported by checkpatch concerning to missing line after variable declarations. Signed-off-by: Geyslan G. Bem --- drivers/usb/host/ehci-dbg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/host/ehci-dbg.c b/drivers/usb/host/ehci-dbg.c index db

[PATCH 01/17] usb: host: ehci-dbg: remove space before open parenthesis

2016-01-04 Thread Geyslan G. Bem
This patch fixes coding style issues reported by checkpatch. The vast majority of changes in this patch are removing spaces before opening parenthesis, but in some cases, a few additional changes are made to fix other coding style issues. These additional changes are: - Spaces around >> on line

[PATCH 05/17] usb: host: ehci-dbg: fix up closing parenthesis

2016-01-04 Thread Geyslan G. Bem
This patch puts the closing parenthesis at the statement end removing unnecessary "new line". Signed-off-by: Geyslan G. Bem --- drivers/usb/host/ehci-dbg.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/usb/host/ehci-dbg.c b/drivers/usb/host/ehci-dbg.c i

[PATCH 03/17] usb: host: ehci-dbg: use C89-style comments

2016-01-04 Thread Geyslan G. Bem
This patch fixes coding style issues reported by checkpatch. Coding style demands usage of C89-style comments and a specific format when it's multiline. This also removes the Free Software Foundation address because FSF can change it again. Signed-off-by: Geyslan G. Bem --- drivers/usb/host/eh

[PATCH 06/17] usb: host: ehci-dbg: put spaces around operators

2016-01-04 Thread Geyslan G. Bem
This patch fixes coding style issues reported by checkpatch concerning to missing spaces around operators. There is an additional change on line 49 that removes unnecessary parenthesis around ternary operands. Signed-off-by: Geyslan G. Bem --- Notes: Tested by compilation only. drivers/us

[PATCH 07/17] usb: host: ehci-dbg: fix unsigned comparison

2016-01-04 Thread Geyslan G. Bem
This patch fixes an unsigned comparison to less than 0. Signed-off-by: Geyslan G. Bem --- Notes: I'm not sure about that comparison because in qh_lines() temp receives the snprintf() return and thereafter occurs this comparison: if (size < temp) temp = size;

[PATCH 02/17] usb: host: ehci-dbg: remove space before open square bracket

2016-01-04 Thread Geyslan G. Bem
This patch fixes coding style issues reported by checkpatch. The only change in this patch that isn't just removing spaces before opening square brackets is at line 213 where the initialization of fls_strings[] is placed in same line. Signed-off-by: Geyslan G. Bem --- Notes: Before this patc

Re: [PATCH v2 22/32] s390: define __smp_xxx

2016-01-04 Thread Michael S. Tsirkin
On Mon, Jan 04, 2016 at 02:45:25PM +0100, Peter Zijlstra wrote: > On Thu, Dec 31, 2015 at 09:08:38PM +0200, Michael S. Tsirkin wrote: > > This defines __smp_xxx barriers for s390, > > for use by virtualization. > > > > Some smp_xxx barriers are removed as they are > > defined correctly by asm-gene

Re: [PATCH 3/8] cgroup: introduce cgroup namespaces

2016-01-04 Thread Serge E. Hallyn
On Mon, Jan 04, 2016 at 01:54:48PM -0600, serge.hal...@ubuntu.com wrote: > From: Aditya Kali > > Introduce the ability to create new cgroup namespace. The newly created > cgroup namespace remembers the cgroup of the process at the point > of creation of the cgroup namespace (referred as cgroupns-

Re: [PATCH] PCI: provide of_pci_get_host_bridge_resources helper

2016-01-04 Thread Simon Horman
On Fri, Dec 18, 2015 at 04:02:41PM +0100, Arnd Bergmann wrote: > The pcie-rcar driver can be built for any ARM platform (for COMPILE_TEST) > including those without CONFIG_OF enabled, and that results in a compile-time > error: > > drivers/pci/host/pcie-rcar.c: In function > 'rcar_pcie_parse_requ

v4.4-rc8: compile warning in scripts/recordmcount.c

2016-01-04 Thread Petri Gynther
vmlinux: scripts/recordmcount.c: In function ‘main’: vmlinux: scripts/recordmcount.c:589:4: warning: format not a string literal and no format arguments [-Wformat-security] vmlinux: sprintf("%s: failed\n", file); Introduced by commit: commit a50bd43935586420fb75f4558369eb08566fac5e Author: Ste

Re: [PATCH] thinkpad_acpi: Add support for keyboard backlight

2016-01-04 Thread Pali Rohár
On Monday 04 January 2016 21:12:31 Pavel Machek wrote: > Hi1 > > > This patch adds support for controlling keyboard backlight via > > standard linux led class interface (::kbd_backlight). It uses ACPI > > HKEY device with MLCG and MLCS methods. > > > > Signed-off-by: Pali Rohár > > Tested-by: Fa

Re: [PATCHv7] EDAC, altera: Add Altera L2 Cache and OCRAM EDAC Support

2016-01-04 Thread Dinh Nguyen
On 01/04/2016 01:46 PM, Borislav Petkov wrote: > On Mon, Jan 04, 2016 at 11:17:29AM -0600, Dinh Nguyen wrote: >> We tried to jam the L2 and OCRAM EDAC functionality in the same >> altr_edac.c file. It looks like it might be clean if we split out the L2 >> and OCRAM functions into their appropriate

[PATCH 08/17] usb: host: ehci-dbg: remove unnecessary space after cast

2016-01-04 Thread Geyslan G. Bem
This patch fixes coding style issues reported by checkpatch concerning to unnecessary space after a cast. Signed-off-by: Geyslan G. Bem --- drivers/usb/host/ehci-dbg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/host/ehci-dbg.c b/drivers/usb/host/ehci-dbg.

Re: [PATCH v2] thinkpad_acpi: Add support for keyboard backlight

2016-01-04 Thread Pali Rohár
On Monday 04 January 2016 21:04:25 Darren Hart wrote: > On Wed, Dec 30, 2015 at 11:27:41PM +0100, Pali Rohár wrote: > > This patch adds support for controlling keyboard backlight via > > standard linux led class interface (::kbd_backlight). It uses ACPI > > HKEY device with MLCG and MLCS methods. >

Re: [PATCH 1/8] mm: Add optional support for PUD-sized transparent hugepages

2016-01-04 Thread Kirill A. Shutemov
On Sat, Jan 02, 2016 at 12:06:38PM -0500, Matthew Wilcox wrote: > On Mon, Dec 28, 2015 at 12:05:51PM +0200, Kirill A. Shutemov wrote: > > On Thu, Dec 24, 2015 at 11:20:30AM -0500, Matthew Wilcox wrote: > > > diff --git a/include/linux/mm.h b/include/linux/mm.h > > > index 4bf3811..e14634f 100644 >

Re: [PATCH for-4.4] mtd: nand: assign reasonable default name for NAND drivers

2016-01-04 Thread Boris Brezillon
Hi Brian, On Mon, 4 Jan 2016 11:11:03 -0800 Brian Norris wrote: > Commits such as commit 853f1c58c4b2 ("mtd: nand: omap2: show parent > device structure in sysfs") attempt to rely on the core MTD code to set > the MTD name based on the parent device. However, nand_base tries to set > a differen

Re: [linux-sunxi] [RFC PATCH] drivers: pinctrl: add driver for Allwinner A64 SoC

2016-01-04 Thread Maxime Ripard
Hi Andre, On Mon, Jan 04, 2016 at 10:29:06AM +, Andre Przywara wrote: > >> diff --git a/drivers/pinctrl/sunxi/Makefile > >> b/drivers/pinctrl/sunxi/Makefile > >> index e080290..130e7bc 100644 > >> --- a/drivers/pinctrl/sunxi/Makefile > >> +++ b/drivers/pinctrl/sunxi/Makefile > >> @@ -12,5 +12

Re: [PATCHv7] EDAC, altera: Add Altera L2 Cache and OCRAM EDAC Support

2016-01-04 Thread Borislav Petkov
On Mon, Jan 04, 2016 at 02:04:08PM -0600, Dinh Nguyen wrote: > altr_edac.c originally added support for SDRAM. Now we're adding support > for L2 and OCRAM into the same file by using #ifdef > CONFIG_EDAC_ALTERA_OCRAM and CONFIG_EDAC_ALTERA_L2C. So "clean" was to > move the l2 and ocram implementati

Re: [PATCH v3 5/5] firmware: add an extensible system data helpers

2016-01-04 Thread Kees Cook
On Wed, Dec 23, 2015 at 1:34 PM, Luis R. Rodriguez wrote: > From: "Luis R. Rodriguez" > > The firmware API has evolved over the years slowly, as it > grows we extend it by adding new routines or at times we extend > existing routines with more or less arguments. This doesn't scale > well, when ne

Re: [PATCH v6 2/4] x86: Cleanup and add a new exception class

2016-01-04 Thread Borislav Petkov
On Mon, Jan 04, 2016 at 05:00:04PM +, Luck, Tony wrote: > > So you're touching those again in patch 2. Why not add those defines to > > patch 1 directly and diminish the churn? > > To preserve authorship. Andy did patch 1 (the clever part). Patch 2 is just > syntactic > sugar on top of it. T

Re: [PATCH v9 08/13] arch/arm64: adopt prepare_exit_to_usermode() model from x86

2016-01-04 Thread Mark Rutland
Hi, On Mon, Jan 04, 2016 at 02:34:46PM -0500, Chris Metcalf wrote: > This change is a prerequisite change for TASK_ISOLATION but also > stands on its own for readability and maintainability. I have also been looking into converting the userspace return path from assembly to C [1], for the latter

Re: [PATCH] usb: f_fs: avoid race condition with ffs_epfile_io_complete

2016-01-04 Thread Michal Nazarewicz
On Tue, Dec 29 2015, changbin...@intel.com wrote: > From: "Du, Changbin" > > ffs_epfile_io and ffs_epfile_io_complete runs in different context, but > there is no synchronization between them. > > consider the following scenario: > 1) ffs_epfile_io interrupted by sigal while > wait_for_completion_

Re: [PATCH v2 06/32] s390: reuse asm-generic/barrier.h

2016-01-04 Thread Michael S. Tsirkin
On Mon, Jan 04, 2016 at 02:20:42PM +0100, Peter Zijlstra wrote: > On Thu, Dec 31, 2015 at 09:06:30PM +0200, Michael S. Tsirkin wrote: > > On s390 read_barrier_depends, smp_read_barrier_depends > > smp_store_mb(), smp_mb__before_atomic and smp_mb__after_atomic match the > > asm-generic variants exac

Re: [PATCH v2] ARM: mm: flip priority of CONFIG_DEBUG_RODATA

2016-01-04 Thread Kees Cook
On Wed, Dec 23, 2015 at 4:34 PM, Russell King - ARM Linux wrote: > On Wed, Dec 23, 2015 at 04:11:22PM -0800, Tony Lindgren wrote: >> * Nicolas Pitre [151223 13:45]: >> > We fixed a bunch of similar issues where code was located in the .data >> > section for ease of use from assembly code. See co

Re: Suspend To RAM failure in >= 4.1 - bissected to "drm/i915: Track GEN6 page table usage"

2016-01-04 Thread Ben Widawsky
On Mon, Jan 04, 2016 at 09:12:11PM +0100, Pavel Machek wrote: > Hi! > > > > I then ran a git bissect between v4.0 and v4.1 from Linus's tree and > > > found the "guilty" commit was > > > > > > commit 317b4e903636305cfe702ab3e5b3d68547a69e72 > > > Author: Ben Widawsky > > > Date: Mon Mar 16 16:0

Re: [PATCH v3] surface pro 4: Add support for Surface Pro 4 Buttons

2016-01-04 Thread Darren Hart
On Sun, Dec 27, 2015 at 10:58:06PM +0200, Andy Shevchenko wrote: > On Sun, Dec 27, 2015 at 9:21 PM, Weng Xuetian wrote: > > Surface Pro 4 buttons are managed by a device with _HID "MSHW0040" > > different from Surface Pro 3. > > > > This commit adds MSHW0040 to id list to support the Surface Pro 4

Re: [PATCH] thinkpad_acpi: Add support for keyboard backlight

2016-01-04 Thread Pali Rohár
On Monday 04 January 2016 21:23:52 Pali Rohár wrote: > Looks like userspace already uses /sys/class/leds/*::kbd_backlight > for keyboard backlight (light under the keyboard). At least other > drivers uses this name and my KDE desktop recognized > "dell::kbd_backlight" (from dell-laptop.ko) and > "t

Re: [PATCH v2 17/32] arm: define __smp_xxx

2016-01-04 Thread Michael S. Tsirkin
On Mon, Jan 04, 2016 at 02:54:20PM +0100, Peter Zijlstra wrote: > On Mon, Jan 04, 2016 at 02:36:58PM +0100, Peter Zijlstra wrote: > > On Sun, Jan 03, 2016 at 11:12:44AM +0200, Michael S. Tsirkin wrote: > > > On Sat, Jan 02, 2016 at 11:24:38AM +, Russell King - ARM Linux wrote: > > > > > > My o

Re: [dm-devel] WANTED new maintainer for Linux/md (and mdadm)

2016-01-04 Thread Brassow Jonathan
Many thanks Neil for all the work you’ve done and the help you gave me while working on the DM/MD interactions bits. I’m happy you are sticking around for the raid1-cluster and raid5-journal bits and I’m interested to see what comes out of those. I know there are a number of folks around Red H

Re: [PATCH v2] thinkpad_acpi: Add support for keyboard backlight

2016-01-04 Thread Darren Hart
On Mon, Jan 04, 2016 at 09:26:19PM +0100, Pali Rohár wrote: > On Monday 04 January 2016 21:04:25 Darren Hart wrote: > > On Wed, Dec 30, 2015 at 11:27:41PM +0100, Pali Rohár wrote: > > > This patch adds support for controlling keyboard backlight via > > > standard linux led class interface (::kbd_ba

Re: [PATCH v3 1/5] firmware: generalize "firmware" as "system data" helpers

2016-01-04 Thread Kees Cook
On Wed, Dec 23, 2015 at 1:34 PM, Luis R. Rodriguez wrote: > From: "Luis R. Rodriguez" > > Historically firmware_class code was added to help > get device driver firmware binaries but these days > request_firmware*() helpers are being repurposed for > general system data needed by the kernel. > >

Re: [PATCH RFC 2/3] x86/xen/time: setup vcpu 0 time info page

2016-01-04 Thread Joao Martins
On 01/04/2016 04:07 PM, Boris Ostrovsky wrote: > On 12/28/2015 04:52 PM, Joao Martins wrote: >> + >> +static int xen_setup_vsyscall_time_info(int cpu) >> +{ >> +struct pvclock_vsyscall_time_info *ti; >> +struct vcpu_register_time_memory_area t; >> +struct pvclock_vcpu_time_info *pvti;

Re: [Xen-devel] [PATCH RFC 3/3] xen/Kconfig: add XEN_TIME_VSYSCALL option

2016-01-04 Thread Joao Martins
On 01/04/2016 04:15 PM, Boris Ostrovsky wrote: > On 01/04/2016 11:12 AM, David Vrabel wrote: >> On 28/12/15 21:52, Joao Martins wrote: >>> This option enables support for pvclock vsyscall/vdso >>> support on Xen. Default is off, since Xen doesn't >>> expose yet the PVCLOCK_TSC_STABLE_BIT flag. >>

Re: [PATCH 7/8] xfs: Support for transparent PUD pages

2016-01-04 Thread Kirill A. Shutemov
On Mon, Jan 04, 2016 at 07:33:56AM +1100, Dave Chinner wrote: > On Sat, Jan 02, 2016 at 11:43:09AM -0500, Matthew Wilcox wrote: > > On Thu, Dec 31, 2015 at 10:30:27AM +1100, Dave Chinner wrote: > > > > @@ -1637,6 +1669,7 @@ xfs_filemap_pfn_mkwrite( > > > > static const struct vm_operations_struct

Re: [PATCH v2 06/32] s390: reuse asm-generic/barrier.h

2016-01-04 Thread Michael S. Tsirkin
On Mon, Jan 04, 2016 at 04:03:39PM +0100, Martin Schwidefsky wrote: > On Mon, 4 Jan 2016 14:20:42 +0100 > Peter Zijlstra wrote: > > > On Thu, Dec 31, 2015 at 09:06:30PM +0200, Michael S. Tsirkin wrote: > > > On s390 read_barrier_depends, smp_read_barrier_depends > > > smp_store_mb(), smp_mb__befo

Re: [PATCH] drivers/tty/serial: delete unused MODULE_DEVICE_TABLE from atmel_serial.c

2016-01-04 Thread Paul Gortmaker
[Re: [PATCH] drivers/tty/serial: delete unused MODULE_DEVICE_TABLE from atmel_serial.c] On 02/01/2016 (Sat 13:17) Sudip Mukherjee wrote: > On Thu, Dec 17, 2015 at 10:05:46AM -0500, Paul Gortmaker wrote: > > In commit c39dfebc7798956fd2140ae6321786ff35da30c3 ("drivers/tty/serial: > > make serial/a

[patch] drm/amdgpu/cgs: cleanup some indenting

2016-01-04 Thread Dan Carpenter
This code is indented too far. Also we normally use spaces to align if statement conditions. Signed-off-by: Dan Carpenter diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c index 6fa0fea..59485d0 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c +

Re: [PATCH v3 2/5] firmware: move completing fw into a helper

2016-01-04 Thread Josh Boyer
On Wed, Dec 23, 2015 at 4:34 PM, Luis R. Rodriguez wrote: > From: "Luis R. Rodriguez" > > This will be re-used later through a new extensible interface. > > Signed-off-by: Luis R. Rodriguez Reviewed-by: Josh Boyer josh > --- > drivers/base/firmware_class.c | 14 ++ > 1 file chan

Re: [PATCH 1/3] checkpatch.pl: add missing memory barriers

2016-01-04 Thread Michael S. Tsirkin
On Mon, Jan 04, 2016 at 08:07:40AM -0800, Joe Perches wrote: > On Mon, 2016-01-04 at 13:36 +0200, Michael S. Tsirkin wrote: > > SMP-only barriers were missing in checkpatch.pl > > > > Refactor code slightly to make adding more variants easier. > > > > Signed-off-by: Michael S. Tsirkin > > --- >

Re: a configfs update for 4.5, and the configfs tree question

2016-01-04 Thread Stephen Rothwell
Hi Christoph, On Mon, 4 Jan 2016 12:51:01 +0100 Christoph Hellwig wrote: > > Stephen, can you add > > git://git.infradead.org/users/hch/configfs.git for-next > > to for-next? It's currently emptry but will contain the two commits > from the pending branch as soon as I get the signoff fro

Re: [RFC PATCH v2 1/3] PCI: Add support for enforcing all MMIO BARs to be page aligned

2016-01-04 Thread Alex Williamson
On Thu, 2015-12-31 at 16:50 +0800, Yongji Xie wrote: > When vfio passthrough a PCI device of which MMIO BARs > are smaller than PAGE_SIZE, guest will not handle the > mmio accesses to the BARs which leads to mmio emulations > in host. > > This is because vfio will not allow to passthrough one > BA

Re: [PATCH 0/2] Fixes for dell-wmi

2016-01-04 Thread Darren Hart
On Thu, Dec 24, 2015 at 10:18:44PM +0100, Pali Rohár wrote: > This patch series adds check if Dell WMI descriptor structure is valid and > fixes processing WMI events on devices with WMI interface version 0. Given the discussion here, I'm dropping this one and waiting for v2. -- Darren Hart Inte

Re: [PATCH v3 3/5] firmware: fold successful fw read early

2016-01-04 Thread Josh Boyer
On Wed, Dec 23, 2015 at 4:34 PM, Luis R. Rodriguez wrote: > From: David Howells > > We'll be folding in some more checks on fw_read_file_contents(), > this will make the success case easier to follow. > > Signed-off-by: David Howells > Signed-off-by: Luis R. Rodriguez Reviewed-by: Josh Boyer

Re: [PATCH v2 1/4] x86, vdso, pvclock: Simplify and speed up the vdso pvclock reader

2016-01-04 Thread Marcelo Tosatti
On Sun, Dec 20, 2015 at 03:05:41AM -0800, Andy Lutomirski wrote: > From: Andy Lutomirski > > The pvclock vdso code was too abstracted to understand easily and > excessively paranoid. Simplify it for a huge speedup. > > This opens the door for additional simplifications, as the vdso no > longer

Re: [PATCH 07/17] usb: host: ehci-dbg: fix unsigned comparison

2016-01-04 Thread Alan Stern
On Mon, 4 Jan 2016, Geyslan G. Bem wrote: > This patch fixes an unsigned comparison to less than 0. No, it doesn't. It changes an unsigned comparison for less than or equal to 0, which is very different from less than 0. > Signed-off-by: Geyslan G. Bem > --- > > Notes: > I'm not sure abo

Re: [PATCH v2] thinkpad_acpi: Add support for keyboard backlight

2016-01-04 Thread Pali Rohár
On Monday 04 January 2016 21:40:20 Darren Hart wrote: > On Mon, Jan 04, 2016 at 09:26:19PM +0100, Pali Rohár wrote: > > On Monday 04 January 2016 21:04:25 Darren Hart wrote: > > > On Wed, Dec 30, 2015 at 11:27:41PM +0100, Pali Rohár wrote: > > > > This patch adds support for controlling keyboard ba

Re: v4.4-rc8: compile warning in scripts/recordmcount.c

2016-01-04 Thread Steven Rostedt
On Mon, 4 Jan 2016 12:22:58 -0800 Petri Gynther wrote: > vmlinux: scripts/recordmcount.c: In function ‘main’: > vmlinux: scripts/recordmcount.c:589:4: warning: format not a string > literal and no format arguments [-Wformat-security] > vmlinux: sprintf("%s: failed\n", file); > > Introduced b

Re: [PATCHv7] EDAC, altera: Add Altera L2 Cache and OCRAM EDAC Support

2016-01-04 Thread Dinh Nguyen
On 01/04/2016 02:30 PM, Borislav Petkov wrote: > On Mon, Jan 04, 2016 at 02:04:08PM -0600, Dinh Nguyen wrote: >> altr_edac.c originally added support for SDRAM. Now we're adding support >> for L2 and OCRAM into the same file by using #ifdef >> CONFIG_EDAC_ALTERA_OCRAM and CONFIG_EDAC_ALTERA_L2C. So

Re: [PATCHv7] EDAC, altera: Add Altera L2 Cache and OCRAM EDAC Support

2016-01-04 Thread Borislav Petkov
On Mon, Jan 04, 2016 at 02:46:26PM -0600, Dinh Nguyen wrote: > I don't see a way for the xgene to manually build for each configuration > using Kconfig? For SoCFGPA, we would like to keep the option to build > for each type of ECC. xgene builds everything in and unconditionally. -- Regards/Gruss

Re: [PATCH 08/17] usb: host: ehci-dbg: remove unnecessary space after cast

2016-01-04 Thread Alan Stern
On Mon, 4 Jan 2016, Geyslan G. Bem wrote: > This patch fixes coding style issues reported by checkpatch concerning > to unnecessary space after a cast. This is a case where checkpatch is wrong, IMO. Casts should always be followed by a space. I will not accept this patch. This must be somethi

Re: [PATCH 09/17] usb: host: ehci-dbg: fix up function definitions

2016-01-04 Thread Alan Stern
On Mon, 4 Jan 2016, Geyslan G. Bem wrote: > Functions must have the opening brace at the beginning of the next line > and body conforming indentation. This isn't necessary if the function is an empty static inline void routine. Alan Stern > This patch also reduces qh_lines() header definition

Re: [PATCH 17/17] usb: host: ehci-dbg: refactor fill_periodic_buffer function

2016-01-04 Thread Alan Stern
On Mon, 4 Jan 2016, Geyslan G. Bem wrote: > This patch fixes a coding style issue reported by checkpatch related to > many leading tabs, removing a 'do while' loop and making use of goto tag > instead. This is highly questionable. It's a big amount of code churn, nearly impossible to verify vi

Re: [PATCH v9 08/13] arch/arm64: adopt prepare_exit_to_usermode() model from x86

2016-01-04 Thread Chris Metcalf
On 01/04/2016 03:33 PM, Mark Rutland wrote: Hi, On Mon, Jan 04, 2016 at 02:34:46PM -0500, Chris Metcalf wrote: This change is a prerequisite change for TASK_ISOLATION but also stands on its own for readability and maintainability. I have also been looking into converting the userspace return p

[PATCH] staging: wilc1000: make some variables static

2016-01-04 Thread Hugo Camboulive
terminated_handle is used only in host_interface.c wilc1000_spi_driver is exported by module_spi_driver() This fixes a few Sparse warnings. Signed-off-by: Hugo Camboulive --- drivers/staging/wilc1000/host_interface.c | 2 +- drivers/staging/wilc1000/wilc_spi.c | 2 +- 2 files changed, 2 i

Re: [PATCH v6 1/4] x86: Clean up extable entry format (and free up a bit)

2016-01-04 Thread Borislav Petkov
On Mon, Jan 04, 2016 at 10:08:43AM -0800, Andy Lutomirski wrote: > All of that's correct, including the part where it's confusing. The > comments aren't the best. > > How about adding a comment like: > > - begin comment - > > The offset to the fixup is signed, and we're trying to use th

[PATCH v9bis 07/13] arch/x86: enable task isolation functionality

2016-01-04 Thread Chris Metcalf
In prepare_exit_to_usermode(), call task_isolation_ready() when we are checking the thread-info flags, and after we've handled the other work, call task_isolation_enter() unconditionally. In syscall_trace_enter_phase1(), we add the necessary support for strict-mode detection of syscalls. We add s

Re: [PATCH 0/5] tools build: Make FEATURE_DUMP include makefile

2016-01-04 Thread Arnaldo Carvalho de Melo
Em Sun, Dec 27, 2015 at 12:58:06PM +0100, Jiri Olsa escreveu: > On Thu, Dec 24, 2015 at 10:52:18AM +0800, Wangnan (F) wrote: > > > > > > On 2015/12/24 1:58, Jiri Olsa wrote: > > >hi, > > >Changing the contents of the FEATURE-DUMP file, > > >so it looks like: > > > feature-backtrace=1 > > > fe

Re: [PATCHv7] EDAC, altera: Add Altera L2 Cache and OCRAM EDAC Support

2016-01-04 Thread Borislav Petkov
On Mon, Jan 04, 2016 at 02:55:43PM -0600, Dinh Nguyen wrote: > Right. So for us, if we build in SDRAM ECC unconditionally, there is a > requirement with the bootloader to turn on ECC and scrub the memory. Huh, how does a built-in piece of code cause the bootloader to do something?!? And how would

Re: [PATCH 6/6] tilepro: use to_delayed_work

2016-01-04 Thread David Miller
From: Geliang Tang Date: Fri, 1 Jan 2016 23:48:57 +0800 > Use to_delayed_work() instead of open-coding it. > > Signed-off-by: Geliang Tang Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More maj

Re: [RFC PATCH v2 3/3] vfio-pci: Allow to mmap MSI-X table if EEH is supported

2016-01-04 Thread Alex Williamson
On Thu, 2015-12-31 at 16:50 +0800, Yongji Xie wrote: > Current vfio-pci implementation disallows to mmap MSI-X > table in case that user get to touch this directly. > > However, EEH mechanism can ensure that a given pci device > can only shoot the MSIs assigned for its PE. So we think > it's safe

Re: [PATCH 1/6] extable: add support for relative extables to search and sort routines

2016-01-04 Thread Helge Deller
On 03.01.2016 17:05, Ard Biesheuvel wrote: > This adds support to the generic search_extable() and sort_extable() > implementations for dealing with exception table entries whose fields > contain relative offsets rather than absolute addresses. > > Signed-off-by: Ard Biesheuvel I tested the gene

Re: [PATCH 3/3] checkpatch: add virt barriers

2016-01-04 Thread Michael S. Tsirkin
On Mon, Jan 04, 2016 at 08:47:53AM -0800, Joe Perches wrote: > On Mon, 2016-01-04 at 13:37 +0200, Michael S. Tsirkin wrote: > > Add virt_ barriers to list of barriers to check for > > presence of a comment. > > Are these virt_ barriers used anywhere? > > I see some virtio_ barrier like uses. The

drm/vc4: v3d: called object '0u' is not a function (next-20160104)

2016-01-04 Thread Stefan Wahren
Hi Eric, i tried to build Linux next-20160104, but vc4 failed with the following messages: ... CC drivers/gpu/drm/vc4/vc4_v3d.o drivers/gpu/drm/vc4/vc4_v3d.c: In function 'vc4_v3d_set_power': drivers/gpu/drm/vc4/vc4_v3d.c:157:29: error: called object '0u' is not a func

Re: [PATCH v3 1/4] mtd: spi-nor: fsl-quadspi: add big-endian support

2016-01-04 Thread Han Xu
On Thu, Dec 24, 2015 at 07:00:18PM +0800, Yuan Yao wrote: > Add R/W functions for big- or little-endian registers: > The qSPI controller's endian is independent of the CPU core's endian. > So far, the qSPI have two versions for big-endian and little-endian. > > Signed-off-by: Yuan Yao > --- > Cha

Re: [PATCH] arm64: fix add kasan bug

2016-01-04 Thread Andrew Morton
On Thu, 31 Dec 2015 18:09:09 +0800 zhongjiang wrote: > From: zhong jiang > > In general, each process have 16kb stack space to use, but > stack need extra space to store red_zone when kasan enable. > the patch fix above question. Thanks. I grabbed this, but would prefer that the arm64 people

Re: [PATCH v2 4/4] mtd: spi-nor: fsl-quadspi: extend support for some special requerment.

2016-01-04 Thread Han Xu
On Thu, Dec 24, 2015 at 07:00:21PM +0800, Yuan Yao wrote: > Add extra info in LUT table to support some special requerments. > Spansion S25FS-S family flash need some special operations. What's the special requirement, detail it. > > Signed-off-by: Yuan Yao > --- > Changed in v2: > Update my em

Re: [PATCHv7] EDAC, altera: Add Altera L2 Cache and OCRAM EDAC Support

2016-01-04 Thread Dinh Nguyen
On 01/04/2016 02:59 PM, Borislav Petkov wrote: > On Mon, Jan 04, 2016 at 02:46:26PM -0600, Dinh Nguyen wrote: >> I don't see a way for the xgene to manually build for each configuration >> using Kconfig? For SoCFGPA, we would like to keep the option to build >> for each type of ECC. > > xgene buil

Re: [PATCHSET 00/10] perf tools: Support dynamic sort keys for tracepoints (v3)

2016-01-04 Thread Arnaldo Carvalho de Melo
Em Mon, Dec 21, 2015 at 11:26:43PM +0900, Namhyung Kim escreveu: > Hello, > > This is an attempt to improve perf to deal with tracepoint events > better. The perf tools can handle tracepoint events but perf report > on them is less useful since they're always sampled in a fixed > location and not

Re: [PATCH 2/2] devicetree: Add DTS file to support the Nexus7 2013 (flo) device.

2016-01-04 Thread John Stultz
On Fri, Dec 11, 2015 at 5:22 PM, John Stultz wrote: > This patch adds a dts file to support the Nexus7 2013 > device. Its based off of the qcom-apq8064-ifc6410.dts > which is similar hardware. > > Also includes some comments and context folded in > from Vinay Simha BN Happy new years, all! Just

Re: RCU stall and the system boot hang with nfsroot

2016-01-04 Thread Paul E. McKenney
On Mon, Jan 04, 2016 at 06:01:37PM +0800, Aaron Ma wrote: > On Fri, Jan 1, 2016 at 3:49 AM, Paul E. McKenney > wrote: > > On Wed, Dec 30, 2015 at 09:41:45AM -0800, Paul E. McKenney wrote: > >> On Wed, Dec 30, 2015 at 03:03:33PM +0800, Aaron Ma wrote: > >> > On Wed, Dec 30, 2015 at 7:42 AM, Paul E.

<    1   2   3   4   5   6   7   8   9   >