Re: [PATCH 0/6] ARM: cpuidle: Unify the ARM64/ARM DT approach

2015-03-13 Thread Daniel Lezcano
On 03/13/2015 07:29 PM, Catalin Marinas wrote: On Thu, Mar 12, 2015 at 03:25:34PM +0100, Daniel Lezcano wrote: do you agree with this patchset ? In principle yes, apart from some function naming and I'm waiting for Lorenzo's ack as well. Do you plan to upstream this directly via your tree? If

Re: [PATCH] Lock 7 is cpuidle specific, use non-generic value for locking

2015-03-13 Thread Lina Iyer
On Fri, Mar 13 2015 at 14:02 -0600, Andy Gross wrote: On Thu, Mar 12, 2015 at 04:16:00PM -0600, Lina Iyer wrote: >It looks like the remote side unlocks it too? It doesn't seem like this >will work with the framework very well. The framework has a kernel >spinlock attached to the hwspinlock so

Re: [PATCH 0/6] kbuild: mergeconfig: fix bugs, improve readability, and add generic entry point

2015-03-13 Thread Darren Hart
On 3/13/15, 1:27 AM, "Josh Triplett" wrote: >On Fri, Mar 13, 2015 at 03:21:37PM +0900, Masahiro Yamada wrote: >> >> This series is related to mergeconfig (scripts/kconfig/merge_config.sh): >> >> 1/6 and 2/6 fix bugs related to the parallel build. (-j option). >> 3/6 thru 5/6 are minor clean-ups

Re: [PATCH 0/6] ARM: cpuidle: Unify the ARM64/ARM DT approach

2015-03-13 Thread Daniel Lezcano
On 03/13/2015 09:51 PM, Rob Herring wrote: On Thu, Mar 12, 2015 at 9:25 AM, Daniel Lezcano wrote: Catalin, Rob, do you agree with this patchset ? There's very little to do with DT, but looks fine to me. Shall I consider as a acked-by for the entire patchset or only the DT part ? Thanks f

Re: [PATCH v4 4/9] selftests: Add install target

2015-03-13 Thread Shuah Khan
On 03/13/2015 11:20 AM, Shuah Khan wrote: > On 03/10/2015 10:06 PM, Michael Ellerman wrote: >> This adds make install support to selftests. The basic usage is: >> >> $ cd tools/testing/selftests >> $ make install >> >> That installs into tools/testing/selftests/install, which can then be >> copied

Re: [PATCH 12/12] crypto/sha-mb/sha1_mb.c : Syntax error

2015-03-13 Thread Tim Chen
On Fri, 2015-03-13 at 23:13 +0200, Ameen Ali wrote: > fixing a syntax-error . > > Signed-off-by : Ameen Ali > --- > arch/x86/crypto/sha-mb/sha1_mb.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/x86/crypto/sha-mb/sha1_mb.c > b/arch/x86/crypto/sha-mb/sha1_mb.c >

Re: [GIT PULL] cpuidle: 4.0-rc3 fixes

2015-03-13 Thread Rafael J. Wysocki
On Friday, March 13, 2015 06:42:30 PM Daniel Lezcano wrote: > > Hi Rafael, > > this pull request contains a couple of fixes: > > - Fix the cpu_pm_enter/exit symmetry in the mvebu driver (Gregory Clement) > > - Fix the mvebu drivers latency/residency values to reach an > acceptable tradeoff

[PATCH v3 0/5] mtrr, mm, x86: Enhance MTRR checks for huge I/O mapping

2015-03-13 Thread Toshi Kani
This patchset enhances MTRR checks for the kernel huge I/O mapping, which was enabled by the patchset below: https://lkml.org/lkml/2015/3/3/589 The following functional changes are made in patch 5/5. - Allow pud_set_huge() and pmd_set_huge() to create a huge page mapping to a range covered b

[PATCH v3 3/5] mtrr, x86: Fix MTRR state checks in mtrr_type_lookup()

2015-03-13 Thread Toshi Kani
'mtrr_state.enabled' contains FE (fixed MTRRs enabled) and E (MTRRs enabled) flags in MSR_MTRRdefType. Intel SDM, section 11.11.2.1, defines these flags as follows: - All MTRRs are disabled when the E flag is clear. The FE flag has no affect when the E flag is clear. - The default type is ena

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

2015-03-13 Thread Andy Lutomirski
On Fri, Mar 13, 2015 at 12:42 PM, Josh Triplett wrote: > On Fri, Mar 13, 2015 at 04:05:29PM +, David Drysdale wrote: >> On Fri, Mar 13, 2015 at 1:40 AM, Josh Triplett wrote: >> > This patch series introduces a new clone flag, CLONE_FD, which lets the >> > caller >> > handle child process exi

[PATCH v3 2/5] mtrr, x86: Fix MTRR lookup to handle inclusive entry

2015-03-13 Thread Toshi Kani
When an MTRR entry is inclusive to a requested range, i.e. the start and end of the request are not within the MTRR entry range but the range contains the MTRR entry entirely, __mtrr_type_lookup() ignores such a case because both start_state and end_state are set to zero. This patch fixes the issu

[PATCH v3 5/5] mtrr, mm, x86: Enhance MTRR checks for KVA huge page mapping

2015-03-13 Thread Toshi Kani
This patch adds an additional argument, 'uniform', to mtrr_type_lookup(), which returns 1 when a given range is covered uniformly by MTRRs, i.e. the range is fully covered by a single MTRR entry or the default type. pud_set_huge() and pmd_set_huge() are changed to check the new 'uniform' flag to s

Re: [PATCH 6/6] clone4: Introduce new CLONE_FD flag to get task exit notification via fd

2015-03-13 Thread Andy Lutomirski
On Fri, Mar 13, 2015 at 12:57 PM, wrote: > On Fri, Mar 13, 2015 at 05:21:13PM +0100, Oleg Nesterov wrote: >> Josh, >> >> I'll certainly try to read this series, but not before next week. > > Thanks for looking at it. > >> but a couple of nits right now. >> >> On 03/12, Josh Triplett wrote: >> > >

Re: [PATCH] audit: Remove condition which always evaluates to false

2015-03-13 Thread Paul Moore
On Wed, Mar 11, 2015 at 2:08 PM, Pranith Kumar wrote: > After commit 3e1d0bb6224f019893d1c498cc3327559d183674 ("audit: Convert int > limit > uses to u32"), by converting an int to u32, few conditions will always > evaluate > to false. > > These warnings were emitted during compilation: > > kerne

Re: [PATCH 4/8] fbdev: ssd1307fb: Use vmalloc to allocate video memory.

2015-03-13 Thread Thomas Niederprüm
Am Tue, 10 Mar 2015 13:28:25 +0200 schrieb Tomi Valkeinen : > On 14/02/15 16:22, Thomas Niederprüm wrote: > > Am Thu, 12 Feb 2015 16:11:21 +0100 > > schrieb Maxime Ripard : > > > >> On Sat, Feb 07, 2015 at 04:35:41PM +0100, Thomas Niederprüm wrote: > >>> Am Sat, 7 Feb 2015 12:18:21 +0100 > >>> sc

[PATCH v3 1/5] mm, x86: Document return values of mapping funcs

2015-03-13 Thread Toshi Kani
Document the return values of KVA mapping functions, pud_set_huge(), pmd_set_huge, pud_clear_huge() and pmd_clear_huge(). Simplify the conditions to select HAVE_ARCH_HUGE_VMAP in the Kconfig, since X86_PAE depends on X86_32. There is no functional change in this patch. Signed-off-by: Toshi Kani

Re: [PATCH 5/8] fbdev: ssd1307fb: Add module parameter bitsperpixel.

2015-03-13 Thread Thomas Niederprüm
Am Tue, 10 Mar 2015 12:45:49 +0200 schrieb Tomi Valkeinen : > On 14/02/15 17:54, Maxime Ripard wrote: > > On Sat, Feb 07, 2015 at 05:05:03PM +0100, Thomas Niederprüm wrote: > >> Am Sat, 7 Feb 2015 12:20:43 +0100 > >> schrieb Maxime Ripard : > >> > >>> On Fri, Feb 06, 2015 at 11:28:11PM +0100, nied

[PATCH v3 4/5] mtrr, x86: Clean up mtrr_type_lookup()

2015-03-13 Thread Toshi Kani
MTRRs contain fixed and variable entries. mtrr_type_lookup() may repeatedly call __mtrr_type_lookup() to handle a request that overlaps with variable entries. However, __mtrr_type_lookup() also handles the fixed entries, which do not have to be repeated. Therefore, this patch creates separate fu

Re: [PATCH 7/8] fbdev: ssd1307fb: Add sysfs handles to expose contrast and dim setting to userspace.

2015-03-13 Thread Thomas Niederprüm
Am Tue, 10 Mar 2015 12:49:19 +0200 schrieb Tomi Valkeinen : > On 09/02/15 10:52, Maxime Ripard wrote: > > On Sat, Feb 07, 2015 at 05:42:44PM +0100, Thomas Niederprüm wrote: > +static struct device_attribute device_attrs[] = { > +__ATTR(contrast, S_IRUGO|S_IWUSR, show_contrast, >

[PATCH 12/12] crypto/sha-mb/sha1_mb.c : Syntax error

2015-03-13 Thread Ameen Ali
fixing a syntax-error . Signed-off-by : Ameen Ali --- arch/x86/crypto/sha-mb/sha1_mb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/crypto/sha-mb/sha1_mb.c b/arch/x86/crypto/sha-mb/sha1_mb.c index fd9f6b0..ec0b989 100644 --- a/arch/x86/crypto/sha-mb/sha1_mb.c +++

[PATCH 04/12] x86: Lock down IO port access when trusted_kernel is true

2015-03-13 Thread Matthew Garrett
IO port access would permit users to gain access to PCI configuration registers, which in turn (on a lot of hardware) give access to MMIO register space. This would potentially permit root to trigger arbitrary DMA, so lock it down when trusted_kernel is true Signed-off-by: Matthew Garrett --- ar

Trusted kernel patchset

2015-03-13 Thread Matthew Garrett
This is a slightly cleaned up version of the patchset posted last year (https://lkml.org/lkml/2014/2/26/554). I've made a couple of minor changes based on feedback, but otherwise this is pretty much the same. Some things I *haven't* done: 1) Disabled CAP_SYS_RAWIO Disabling CAP_SYS_RAWIO has the

[PATCH 01/12] Add support for indicating that the booted kernel is externally trusted

2015-03-13 Thread Matthew Garrett
Provide a boolean runtime configuration option for restricting userspace's ability to modify the running kernel. This can be used when some external validation of the kernel's state has been performed. Signed-off-by: Matthew Garrett --- Documentation/kernel-parameters.txt | 6 ++ Documen

Re: [GIT PULL] cpuidle: 4.0-rc3 fixes

2015-03-13 Thread Daniel Lezcano
On 03/13/2015 10:56 PM, Rafael J. Wysocki wrote: On Friday, March 13, 2015 06:42:30 PM Daniel Lezcano wrote: Hi Rafael, this pull request contains a couple of fixes: - Fix the cpu_pm_enter/exit symmetry in the mvebu driver (Gregory Clement) - Fix the mvebu drivers latency/residency val

[PATCH 08/12] kexec: Disable loading of unverified images

2015-03-13 Thread Matthew Garrett
kexec permits the loading and execution of arbitrary code in ring 0, which permits the modification of the running kernel. Restrict it such that only images which have been verified may be loaded when trusted_kernel is true. Signed-off-by: Matthew Garrett --- kernel/kexec.c | 18

[PATCH 05/12] Restrict /dev/mem and /dev/kmem when trusted_kernel is true

2015-03-13 Thread Matthew Garrett
Allowing users to write to address space provides mechanisms that may permit modification of the kernel at runtime. Prevent this if trusted_kernel is true. Signed-off-by: Matthew Garrett --- drivers/char/mem.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/char/mem.c b/drivers

[PATCH 06/12] acpi: Limit access to custom_method if trusted_kernel is true

2015-03-13 Thread Matthew Garrett
custom_method effectively allows arbitrary access to system memory, making it possible for an attacker to modify the kernel at runtime. Prevent this if trusted_kernel is true. Signed-off-by: Matthew Garrett --- drivers/acpi/custom_method.c | 4 1 file changed, 4 insertions(+) diff --git a/

[PATCH 09/12] uswsusp: Disable when trusted_kernel is true

2015-03-13 Thread Matthew Garrett
uswsusp allows a user process to dump and then restore kernel state, which makes it possible to modify the running kernel. Disable this if trusted_kernel is true. Signed-off-by: Matthew Garrett --- kernel/power/user.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/p

[PATCH 07/12] acpi: Ignore acpi_rsdp kernel parameter when trusted_kernel is true.

2015-03-13 Thread Matthew Garrett
From: Josh Boyer This option allows userspace to pass the RSDP address to the kernel, which makes it possible for a user to execute arbitrary code in the kernel. Disable this when trusted_kernel is true. Signed-off-by: Josh Boyer --- drivers/acpi/osl.c | 3 ++- 1 file changed, 2 insertions(+),

[PATCH 03/12] PCI: Lock down register access when trusted_kernel is true

2015-03-13 Thread Matthew Garrett
Any hardware that can potentially generate DMA has to be locked down from userspace in order to avoid it being possible for an attacker to modify kernel code. This should be prevented if trusted_kernel has been set, so this patch disables userspace access to PCI regions and config access. In future

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

2015-03-13 Thread josh
On Fri, Mar 13, 2015 at 02:16:07PM -0700, Thiago Macieira wrote: > On Friday 13 March 2015 12:42:52 Josh Triplett wrote: > > > Hi Josh, > > > > > > From the overall description (i.e. I haven't looked at the code yet) > > > this looks very interesting. However, it seems to cover a lot of the > > >

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

2015-03-13 Thread josh
On Fri, Mar 13, 2015 at 02:33:44PM -0700, Andy Lutomirski wrote: > On Fri, Mar 13, 2015 at 12:42 PM, Josh Triplett wrote: > > On Fri, Mar 13, 2015 at 04:05:29PM +, David Drysdale wrote: > >> On Fri, Mar 13, 2015 at 1:40 AM, Josh Triplett > >> wrote: > >> > This patch series introduces a new

Re: [PATCH] parisc: fix pmd accounting with 3-level page tables

2015-03-13 Thread Graham Gower
This fixes the problem on my C8000. Tested-by: graham.go...@gmail.com On 13 March 2015 at 21:00, Kirill A. Shutemov wrote: > There's hack in pgd_alloc() on parisc to initialize one pmd, which is > not accounted. It leads to underflow on exit. > > Let's adjust nr_pmds on pgd_alloc() to get accoun

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

2015-03-13 Thread Andy Lutomirski
On Fri, Mar 13, 2015 at 2:45 PM, wrote: > On Fri, Mar 13, 2015 at 02:33:44PM -0700, Andy Lutomirski wrote: >> On Fri, Mar 13, 2015 at 12:42 PM, Josh Triplett >> wrote: >> > On Fri, Mar 13, 2015 at 04:05:29PM +, David Drysdale wrote: >> >> On Fri, Mar 13, 2015 at 1:40 AM, Josh Triplett >>

[PATCH 10/12] x86: Restrict MSR access when trusted_kernel is true

2015-03-13 Thread Matthew Garrett
Permitting write access to MSRs allows userspace to modify the running kernel. Prevent this if trusted_kernel is true. Based on a patch by Kees Cook. Cc: Kees Cook Signed-off-by: Matthew Garrett --- arch/x86/kernel/msr.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/x86/kerne

[PATCH 11/12] asus-wmi: Restrict debugfs interface when trusted_kernel is true

2015-03-13 Thread Matthew Garrett
We have no way of validating what all of the Asus WMI methods do on a given machine, and there's a risk that some will allow hardware state to be manipulated in such a way that arbitrary code can be executed in the kernel. Prevent that if trusted_kernel is true. Signed-off-by: Matthew Garrett ---

[PATCH 12/12] Add option to automatically set trusted_kernel when in Secure Boot mode

2015-03-13 Thread Matthew Garrett
UEFI Secure Boot provides a mechanism for ensuring that the firmware will only load signed bootloaders and kernels. Certain use cases may also require that the kernel prevent userspace from inserting untrusted kernel code at runtime. Add a configuration option that enforces this automatically when

[PATCH v3 3/7] ARM: at91: remove unused headers

2015-03-13 Thread Alexandre Belloni
Following the switch to multiplatform, uncompress.h is not used anymore. Remove it. at91_dbgu.h is also not used anymore Signed-off-by: Alexandre Belloni --- arch/arm/mach-at91/include/mach/at91_dbgu.h | 63 arch/arm/mach-at91/include/mach/uncompress.h | 218 --

[PATCH v3 0/7] Switch mach-at91 to multiplatform

2015-03-13 Thread Alexandre Belloni
AT91 is now ready to switch to multiplatform. Do it and clean the remaining mach includes. Changes in v3: - use a menu structure as asked by Arnd - remove useless selects as pointed by Rob - drop a patch that has already been applied - add a patch to remove AT91_TIMER_HZ Changes in v2: - mov

[PATCH v3 1/7] ARM: at91: switch to multiplatform

2015-03-13 Thread Alexandre Belloni
Switch AT91 to multiplatform as all SoCs are properly handled. Signed-off-by: Alexandre Belloni --- arch/arm/Kconfig| 13 - arch/arm/mach-at91/Kconfig | 119 +++- arch/arm/mach-at91/Makefile | 2 + 3 files changed, 52 insertions(+), 82

[PATCH v3 2/7] ARM: at91: switch at91_dt_defconfig to multiplatform

2015-03-13 Thread Alexandre Belloni
Signed-off-by: Alexandre Belloni --- arch/arm/configs/at91_dt_defconfig | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm/configs/at91_dt_defconfig b/arch/arm/configs/at91_dt_defconfig index 811e72bbe642..bcef49a21801 100644 --- a/arch/arm/configs/at91_dt_defconfig

[PATCH v3 6/7] ARM: at91: remove hardware.h

2015-03-13 Thread Alexandre Belloni
hardware.h is now mostyl unused, move the remaining declarations to pm.c and remove it. Signed-off-by: Alexandre Belloni --- arch/arm/mach-at91/include/mach/hardware.h | 123 - arch/arm/mach-at91/pm.c| 11 ++- arch/arm/mach-at91/pm_suspend.S

[PATCH v3 5/7] ARM: at91: remove SoC headers

2015-03-13 Thread Alexandre Belloni
Remove the now useless SoC headers. Signed-off-by: Alexandre Belloni --- arch/arm/mach-at91/include/mach/at91rm9200.h | 103 --- arch/arm/mach-at91/include/mach/at91sam9260.h | 129 --- arch/arm/mach-at91/include/mach/at91sam9261.h | 99 -- a

[PATCH v3 4/7] ARM: at91: remove useless mach/cpu.h

2015-03-13 Thread Alexandre Belloni
mach/cpu.h is not used anymore, remove it. Signed-off-by: Alexandre Belloni --- arch/arm/mach-at91/include/mach/at91sam9_smc.h | 2 - arch/arm/mach-at91/include/mach/cpu.h | 216 - arch/arm/mach-at91/pm.c| 1 - 3 files changed, 219 del

[PATCH v3 7/7] ARM: at91: drop AT91_TIMER_HZ

2015-03-13 Thread Alexandre Belloni
Drop AT91_TIMER_HZ as this can be handled using HZ_FIXED. Initial help message was: On AT91rm9200 chips where you're using a system clock derived from the 32768 Hz hardware clock, this tick rate should divide it exactly: use a power-of-two value, such as 128 or 256, to reduce timing errors caused

Re: [GIT PULL] at91: cleanup for 4.1 #2

2015-03-13 Thread Alexandre Belloni
On 13/03/2015 at 18:12:29 +0100, Nicolas Ferre wrote : > Another cleanup series on top of the previous one that I sent you this > afternoon ;-) I think it is the last time that we can remove a whole bunch of > files and legacy code... We were getting used to it! Actually, the switch to multiplatfo

Re: [PATCH 2/6] x86: Opt into HAVE_COPY_THREAD_TLS, for both 32-bit and 64-bit

2015-03-13 Thread Andy Lutomirski
On Thu, Mar 12, 2015 at 6:40 PM, Josh Triplett wrote: > For 32-bit userspace on a 64-bit kernel, this requires modifying > stub32_clone to actually swap the appropriate arguments to match > CONFIG_CLONE_BACKWARDS, rather than just leaving the C argument for tls > broken. > > Signed-off-by: Josh Tr

Re: [Patch v4 2/2] dmaengine: Add ADM driver

2015-03-13 Thread Andy Gross
On Fri, Mar 13, 2015 at 02:27:45PM +0530, Vinod Koul wrote: > On Wed, Feb 11, 2015 at 11:46:05PM -0600, Andy Gross wrote: > > +++ b/drivers/dma/qcom_adm.c > > @@ -0,0 +1,901 @@ > > +/* > > + * Copyright (c) 2013-2014, The Linux Foundation. All rights reserved. > shouldn't this be 15 :) yeah, need

Re: [PATCH v3 0/7] Switch mach-at91 to multiplatform

2015-03-13 Thread Alexandre Belloni
Nicolas, On 13/03/2015 at 22:57:17 +0100, Alexandre Belloni wrote : > AT91 is now ready to switch to multiplatform. Do it and clean the remaining > mach > includes. > > Changes in v3: > - use a menu structure as asked by Arnd > - remove useless selects as pointed by Rob > - drop a patch that

[PATCH 02/12] Enforce module signatures when trusted kernel is enabled

2015-03-13 Thread Matthew Garrett
If trusted_kernel is true, require that all modules have valid signatures. Signed-off-by: Matthew Garrett --- include/linux/module.h| 6 ++ kernel/module.c | 6 ++ security/trusted_kernel.c | 6 +- 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/include/l

Re: [PATCH 6/6] clone4: Introduce new CLONE_FD flag to get task exit notification via fd

2015-03-13 Thread josh
On Fri, Mar 13, 2015 at 02:34:58PM -0700, Andy Lutomirski wrote: > On Fri, Mar 13, 2015 at 12:57 PM, wrote: > > A process launching a new process with CLONE_FD is explicitly requesting > > that the process be automatically reaped without any other process > > having to wait on it. The task needs

Re: [PATCH v2] powercap/rapl: handle domain energy unit

2015-03-13 Thread Rafael J. Wysocki
On Friday, March 13, 2015 03:48:56 AM Jacob Pan wrote: > The current driver assumes all RAPL domains within a CPU package > have the same energy unit. This is no longer true for HSW server > CPUs since DRAM domain has is own fixed energy unit which can be > different than the package energy unit en

Re: [PATCH v2] mce: use safe MSR accesses

2015-03-13 Thread Borislav Petkov
On Fri, Mar 13, 2015 at 11:03:39AM -0500, jesse.lar...@amd.com wrote: > From: Jesse Larrew > > Certain MSRs are only relevant to a kernel in host mode, and kvm had > chosen not to implement these MSRs at all for guests. If a guest kernel > ever tried to access these MSRs, the result was a general

[PATCH 13/13] builtin-sched.c %ld in format string %ld in format string requires 'long' but the argument type is 'unsigned long'.

2015-03-13 Thread Ameen Ali
Signed-off-by: Ameen Ali --- tools/perf/builtin-sched.c | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c index 891c393..dbc417a 100644 --- a/tools/perf/builtin-sched.c +++ b/tools/perf/builtin-

Re: [PATCH 6/6] clone4: Introduce new CLONE_FD flag to get task exit notification via fd

2015-03-13 Thread Andy Lutomirski
On Fri, Mar 13, 2015 at 3:20 PM, wrote: > On Fri, Mar 13, 2015 at 02:34:58PM -0700, Andy Lutomirski wrote: >> On Fri, Mar 13, 2015 at 12:57 PM, wrote: >> > A process launching a new process with CLONE_FD is explicitly requesting >> > that the process be automatically reaped without any other pr

Re: [PATCH 2/6] x86: Opt into HAVE_COPY_THREAD_TLS, for both 32-bit and 64-bit

2015-03-13 Thread josh
On Fri, Mar 13, 2015 at 03:01:16PM -0700, Andy Lutomirski wrote: > On Thu, Mar 12, 2015 at 6:40 PM, Josh Triplett wrote: > > For 32-bit userspace on a 64-bit kernel, this requires modifying > > stub32_clone to actually swap the appropriate arguments to match > > CONFIG_CLONE_BACKWARDS, rather than

Re: [PATCH 6/6] clone4: Introduce new CLONE_FD flag to get task exit notification via fd

2015-03-13 Thread josh
On Fri, Mar 13, 2015 at 03:28:26PM -0700, Andy Lutomirski wrote: > On Fri, Mar 13, 2015 at 3:20 PM, wrote: > > On Fri, Mar 13, 2015 at 02:34:58PM -0700, Andy Lutomirski wrote: > >> On Fri, Mar 13, 2015 at 12:57 PM, wrote: > >> > A process launching a new process with CLONE_FD is explicitly requ

[PATCH] staging: vt6656: don't return zero on failure path in vt6656_probe()

2015-03-13 Thread Alexey Khoroshilov
If ieee80211_alloc_hw() fails in vt6656_probe(), it breaks off initialization, but returns zero. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/staging/vt6656/main_usb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/sta

Re: [PATCH 2/6] x86: Opt into HAVE_COPY_THREAD_TLS, for both 32-bit and 64-bit

2015-03-13 Thread Andy Lutomirski
On Fri, Mar 13, 2015 at 3:31 PM, wrote: > On Fri, Mar 13, 2015 at 03:01:16PM -0700, Andy Lutomirski wrote: >> On Thu, Mar 12, 2015 at 6:40 PM, Josh Triplett wrote: >> > For 32-bit userspace on a 64-bit kernel, this requires modifying >> > stub32_clone to actually swap the appropriate arguments t

Re: [PATCH 6/6] clone4: Introduce new CLONE_FD flag to get task exit notification via fd

2015-03-13 Thread Andy Lutomirski
On Fri, Mar 13, 2015 at 3:34 PM, wrote: > On Fri, Mar 13, 2015 at 03:28:26PM -0700, Andy Lutomirski wrote: >> On Fri, Mar 13, 2015 at 3:20 PM, wrote: >> > On Fri, Mar 13, 2015 at 02:34:58PM -0700, Andy Lutomirski wrote: >> >> On Fri, Mar 13, 2015 at 12:57 PM, wrote: >> >> > A process launchin

Re: [PATCH 2/6] x86: Opt into HAVE_COPY_THREAD_TLS, for both 32-bit and 64-bit

2015-03-13 Thread josh
On Fri, Mar 13, 2015 at 03:38:31PM -0700, Andy Lutomirski wrote: > On Fri, Mar 13, 2015 at 3:31 PM, wrote: > > On Fri, Mar 13, 2015 at 03:01:16PM -0700, Andy Lutomirski wrote: > >> On Thu, Mar 12, 2015 at 6:40 PM, Josh Triplett > >> wrote: > >> > For 32-bit userspace on a 64-bit kernel, this re

Re: [PATCH 2/6] x86: Opt into HAVE_COPY_THREAD_TLS, for both 32-bit and 64-bit

2015-03-13 Thread Andy Lutomirski
On Fri, Mar 13, 2015 at 3:43 PM, wrote: > On Fri, Mar 13, 2015 at 03:38:31PM -0700, Andy Lutomirski wrote: >> On Fri, Mar 13, 2015 at 3:31 PM, wrote: >> > On Fri, Mar 13, 2015 at 03:01:16PM -0700, Andy Lutomirski wrote: >> >> On Thu, Mar 12, 2015 at 6:40 PM, Josh Triplett >> >> wrote: >> >> >

Re: [RFCv3 PATCH 33/48] sched: Energy-aware wake-up task placement

2015-03-13 Thread Sai Gurrappadi
On 02/04/2015 10:31 AM, Morten Rasmussen wrote: > Let available compute capacity and estimated energy impact select > wake-up target cpu when energy-aware scheduling is enabled. > energy_aware_wake_cpu() attempts to find group of cpus with sufficient > compute capacity to accommodate the task and f

[PATCH V2 0/5] MIPS: Initial IMG Pistachio SoC support

2015-03-13 Thread Andrew Bresticker
This series adds basic support for the Imagination Technologies Pistachio SoC. Pistachio will boot using device-tree only. v4.0-rc1 already includes support for several of the peripherals on Pistachio, including MMC, SPI, I2C, DMA, watchdog timer, PWM, and IR. Clock and pinctrl support for Pista

[PATCH V2 4/5] MIPS: Add support for the IMG Pistachio SoC

2015-03-13 Thread Andrew Bresticker
Add initial support for boards based on the Imagination Pistachio SoC. Pistachio is based on a dual-core MIPS interAptiv CPU and will boot using device-tree. Signed-off-by: James Hartley Signed-off-by: Andrew Bresticker --- Changes from v1: - switched to MIPS UHI hand-off protocol --- arch/mip

[PATCH V2 5/5] MIPS: pistachio: Add an initial defconfig

2015-03-13 Thread Andrew Bresticker
From: Govindraj Raja Add a defconfig for Pistachio which enables drivers for all the currently supported peripherals on the SoC. Signed-off-by: Govindraj Raja Signed-off-by: Andrew Bresticker --- No changes from v1. --- arch/mips/configs/pistachio_defconfig | 336 +

[PATCH V2 3/5] MIPS: Document Pistachio boot protocol and device-tree bindings

2015-03-13 Thread Andrew Bresticker
The Pistachio SoC boots only with device-tree. Document the required properties and nodes as well as the boot protocol between the bootlaoder and the kernel. Signed-off-by: Andrew Bresticker Cc: Rob Herring Cc: Pawel Moll Cc: Mark Rutland Cc: Ian Campbell Cc: Kumar Gala --- Changes from v1:

[PATCH V2 1/5] MIPS: Create a common

2015-03-13 Thread Andrew Bresticker
From: Kevin Cernekee 11 platforms require at least one of these workarounds to be enabled; 22 platforms do not. In the latter case we can fall back to a generic version. Note that this also deletes an orphaned reference to RM9000_CDEX_SMP_WAR. Suggested-by: Arnd Bergmann Signed-off-by: Kevin

[PATCH V2 2/5] MIPS: Allow platforms to specify the decompressor load address

2015-03-13 Thread Andrew Bresticker
Platforms which use raw zboot images may need to link the image at a fixed address if there is no other way to communicate the load address to the bootloader. Allow the per-platform Kbuild files to specify an optional zboot image load address (zload-y) and fall back to calc_vmlinuz_load_addr if un

[PATCH 0/2] Changes to timers Maefile to use shared logic for run_tests and install

2015-03-13 Thread Shuah Khan
This patch set: adds ability to run and emit script for tests args to lib.mk. lib.mk provides a way to override the default RUN_TESTS and EMIT_TESTS, however in the cases where a test has several executables that don't require any special args and/or handling and some that do, overrding will be cu

[PATCH 1/2] selftests: add ability to run and emit script for tests args to lib.mk

2015-03-13 Thread Shuah Khan
Add ability to run, emit, install tests take arguments to the shared logic in lib.mk. lib.mk provides a way to override the default RUN_TESTS and EMIT_TESTS, however in the cases where a test has several executables that don't require any special args and/or handling and some that do, overrding wil

[PATCH 2/2] selftests/timers: change to use shared logic to run and install tests

2015-03-13 Thread Shuah Khan
Change the timers Makefile to make use of shared run and install logic in lib.mk. Destructive tests are installed. Regular tests are emited to run_kselftest script to match the run_tests behavior. Signed-off-by: Shuah Khan --- tools/testing/selftests/timers/Makefile | 20 +++- 1

[PATCH 0/4] CLK: TI: Timer clock alias fixes

2015-03-13 Thread Suman Anna
Hi Tero, Please find couple of cleanup/fixes on the DT clock aliases for the GPTimers. Patches are based on 4.0-rc1 and following is the summary of the changes, 1. Patch 1 is a cleanup for OMAP4 2. Patch 2 fixes the failures for OMAP5 if omap_dm_timer_set_source() API is called to set the pare

[PATCH 3/4] CLK: TI: DRA7: Correct timer_sys_ck clock aliases for Timers

2015-03-13 Thread Suman Anna
The OMAP DMTimer API, omap_dm_timer_set_source(), can set the parent of a timer node using 3 different values that use fixed parent names for the clocks. The parent name, timer_sys_ck, is used for setting the parent when used with the source index OMAP_TIMER_SRC_SYS_CLK. This should point to the TI

[PATCH 1/4] CLK: TI: OMAP4: Remove the legacy timer DT clock aliases

2015-03-13 Thread Suman Anna
The DT clock aliases for timers using the legacy OMAP timer device names have been cleaned up. These device names reflect the names used in legacy boot, and are no longer applicable as OMAP4 is DT boot only now. Signed-off-by: Suman Anna --- drivers/clk/ti/clk-44xx.c | 11 --- 1 file cha

[PATCH 4/4] CLK: TI: DRA7: Add timer_sys_ck aliases for Timers 13 through 16

2015-03-13 Thread Suman Anna
The OMAP DMTimer API, omap_dm_timer_set_source(), uses the clock name timer_sys_ck for setting a timer's clock source for the source index OMAP_TIMER_SRC_SYS_CLK. There is currently no clock alias data for the Timers 13 through 16 for this clock name, so add the same. Signed-off-by: Suman Anna --

[PATCH 2/4] CLK: TI: OMAP5: Correct the DT clock aliases for timers

2015-03-13 Thread Suman Anna
The DT clock aliases for Timers use the legacy (non-DT) device names and a source clock named sys_ck. OMAP5 is DT-boot only, so correct the DT clock aliases to use the DT device names instead. Also, the source clock name is corrected from 'sys_ck' to 'timer_sys_ck', the name used by the OMAP dmtime

Re: [RFCv3 PATCH 30/48] sched: Calculate energy consumption of sched_group

2015-03-13 Thread Sai Gurrappadi
On 02/04/2015 10:31 AM, Morten Rasmussen wrote: > For energy-aware load-balancing decisions it is necessary to know the > energy consumption estimates of groups of cpus. This patch introduces a > basic function, sched_group_energy(), which estimates the energy > consumption of the cpus in the group

Re: [PATCH 2/6] x86: Opt into HAVE_COPY_THREAD_TLS, for both 32-bit and 64-bit

2015-03-13 Thread josh
On Fri, Mar 13, 2015 at 03:45:16PM -0700, Andy Lutomirski wrote: > On Fri, Mar 13, 2015 at 3:43 PM, wrote: > > On Fri, Mar 13, 2015 at 03:38:31PM -0700, Andy Lutomirski wrote: > >> On Fri, Mar 13, 2015 at 3:31 PM, wrote: > >> > On Fri, Mar 13, 2015 at 03:01:16PM -0700, Andy Lutomirski wrote: >

Re: [PATCH 01/32] do_fork(): Rename 'stack_size' argument to reflect actual use

2015-03-13 Thread josh
On Fri, Mar 13, 2015 at 08:04:16PM +0200, Alex Dowad wrote: > The 'stack_size' argument is never used to pass a stack size. It's only used > when > forking a kernel thread, in which case it is an argument which should be > passed > to the 'main' function which the kernel thread executes. Hence, r

[PATCH v3] led/led-class: Handle LEDs with the same name

2015-03-13 Thread Ricardo Ribalda Delgado
The current code expected that every LED had an unique name. This is a legit expectation when the device tree can no be modified or extended. But with device tree overlays this requirement can be easily broken. This patch finds out if the name is already in use and adds the suffix _1, _2... if not

[PATCH] radeon: Update Kaveri MEC firmware to #396

2015-03-13 Thread Oded Gabbay
This patch updates the Kaveri MEC firmware to #396 (from #391). The MEC firmware is mainly used for amdkfd - AMD's HSA Linux kernel driver. Signed-off-by: Oded Gabbay --- radeon/kaveri_mec.bin | Bin 17024 -> 17024 bytes radeon/kaveri_mec2.bin | Bin 17024 -> 17024 bytes 2 files changed, 0 inse

Re: [PATCH v4 4/9] selftests: Add install target

2015-03-13 Thread Shuah Khan
On 03/13/2015 03:32 PM, Shuah Khan wrote: > On 03/13/2015 11:20 AM, Shuah Khan wrote: >> On 03/10/2015 10:06 PM, Michael Ellerman wrote: >>> This adds make install support to selftests. The basic usage is: >>> >>> $ cd tools/testing/selftests >>> $ make install >>> >>> That installs into tools/test

Re: [BUG] n_tty: 4.0-rc3+: Unable to handle kernel paging request at virtual address 000044d0

2015-03-13 Thread Ming Lei
On Fri, Mar 13, 2015 at 8:59 PM, Peter Hurley wrote: > [ +cc Will Deacon, linux-arm ] > > Hi Ming, > > On 03/13/2015 02:02 AM, Ming Lei wrote: >> Hi Guys, >> >> Just found the following oops during kernel booting when I >> test the latest linus tree on one arm64 VM booted from uefi >> plus grub2:

Re: [PATCH V5] Allow compaction of unevictable pages

2015-03-13 Thread David Rientjes
On Fri, 13 Mar 2015, Eric B Munson wrote: > > > --- a/mm/compaction.c > > > +++ b/mm/compaction.c > > > @@ -1046,6 +1046,8 @@ typedef enum { > > > ISOLATE_SUCCESS,/* Pages isolated, migrate */ > > > } isolate_migrate_t; > > > > > > +int sysctl_compact_unevictable; > > > + > > > /* >

Re: [PATCH 01/32] do_fork(): Rename 'stack_size' argument to reflect actual use

2015-03-13 Thread David Rientjes
On Fri, 13 Mar 2015, j...@joshtriplett.org wrote: > On Fri, Mar 13, 2015 at 08:04:16PM +0200, Alex Dowad wrote: > > The 'stack_size' argument is never used to pass a stack size. It's only > > used when > > forking a kernel thread, in which case it is an argument which should be > > passed > > to

[PATCH] rnndb: Update DSI core and PHY registers for 8084

2015-03-13 Thread Hai Li
DSI core registers in DSI6G are compatible with the old versions. The offsets are 4-byte shift down because of the addition of a HW_VERSION register. This difference will be handled in source code. DSI PHY registers are incompatible. This change adds a new domain for 28nm PHY and PHY regulator, wh

[PATCH 0/4] drm/msm: Initial add DSI support

2015-03-13 Thread Hai Li
DSI is supported by both mdp4 and mdp5. This patch series adds the common DSI controller driver and also enable it in mdp5. Hai Li (4): drm/msm/dsi: Update generated DSI header file drm/msm: Add split display interface drm/msm: Initial add DSI connector support drm/msm/mdp5: Enable DSI con

Re: [patch 1/2] block, drbd: fix drbd_req_new() initialization

2015-03-13 Thread David Rientjes
On Sat, 7 Mar 2015, David Rientjes wrote: > > >>> mempool_alloc() does not support __GFP_ZERO since elements may come from > > >>> memory that has already been released by mempool_free(). > > >>> > > >>> Remove __GFP_ZERO from mempool_alloc() in drbd_req_new() and properly > > >>> initialize it to

[PATCH 2/4] drm/msm: Add split display interface

2015-03-13 Thread Hai Li
This change is to add an interface to MDP for connector devices setting split display information. Signed-off-by: Hai Li --- drivers/gpu/drm/msm/msm_kms.h | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/msm/msm_kms.h b/drivers/gpu/drm/msm/msm_kms.h index 3a78cb4..a9f17bd

[PATCH 1/4] drm/msm/dsi: Update generated DSI header file

2015-03-13 Thread Hai Li
Prepare for initial DSI implementation Signed-off-by: Hai Li --- drivers/gpu/drm/msm/dsi/dsi.xml.h | 418 ++ 1 file changed, 376 insertions(+), 42 deletions(-) diff --git a/drivers/gpu/drm/msm/dsi/dsi.xml.h b/drivers/gpu/drm/msm/dsi/dsi.xml.h index abf1bba..

[PATCH 4/4] drm/msm/mdp5: Enable DSI connector in msm drm driver

2015-03-13 Thread Hai Li
This change adds the support in mdp5 kms driver for single and dual DSI. Dual DSI case depends on the framework API and sequence change to support dual data path. Signed-off-by: Hai Li --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.c | 4 + drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c| 11 +-

[PATCH 3/4] drm/msm: Initial add DSI connector support

2015-03-13 Thread Hai Li
This change adds the DSI connector support in msm drm driver. Signed-off-by: Hai Li --- drivers/gpu/drm/msm/Kconfig | 11 + drivers/gpu/drm/msm/Makefile |4 + drivers/gpu/drm/msm/dsi/dsi.c | 203 drivers/gpu/drm/msm/dsi/dsi.h | 115 ++ drivers/gpu/

[PATCH v2] staging: panel: change struct bits to a bit array

2015-03-13 Thread Isaac Lleida
This path implements a bit array representing the LCD signal states instead of the old "struct bits", which used char to represent a single bit. This will reduce the memory usage. Signed-off-by: Isaac Lleida >= 1; @@ -814,7 +826,7 @@ static void lcd_backlight(int on) /* The backlight i

Re: [PATCH v3 1/2] remoteproc: use a flag to detect the presence of IOMMU

2015-03-13 Thread Suman Anna
On 03/12/2015 04:04 AM, Ohad Ben-Cohen wrote: > On Fri, Jan 9, 2015 at 11:21 PM, Suman Anna wrote: >> The remoteproc driver core currently relies on iommu_present() on >> the bus the device is on, to perform MMU management. However, this >> logic doesn't scale for multi-arch, especially for proces

[PATCH] checkpatch: match more world writable permissions

2015-03-13 Thread Joe Perches
Currently checkpatch will fuss if one uses world writable settings in debugfs files and DEVICE_ATTR uses by testing S_IWUGO but not testing S_IWOTH, S_IRWXUGO or S_IALLUGO. Extend the check to catch all cases exporting world writable permissions including octal values. Original-patch-by: Nicholas

Re: [PATCH V5] Allow compaction of unevictable pages

2015-03-13 Thread Rik van Riel
On 03/13/2015 07:18 PM, David Rientjes wrote: > On Fri, 13 Mar 2015, Eric B Munson wrote: > --- a/mm/compaction.c +++ b/mm/compaction.c @@ -1046,6 +1046,8 @@ typedef enum { ISOLATE_SUCCESS,/* Pages isolated, migrate */ } isolate_migrate_t; +int sysc

Re: [PATCH] fs/pstore/ram.c: Fix the ramoops module parameters update

2015-03-13 Thread Kees Cook
On Mon, Mar 9, 2015 at 12:39 AM, Wang Long wrote: > In the function ramoops_probe, the console_size, pmsg_size, > ftrace_size may be update because the value is not the power > of two. We should update the module parameter variables > as well so they are visible through /sys/module/ramoops/paramet

Re: [PATCH 3/4] workqueue: Create low-level unbound workqueues cpumask

2015-03-13 Thread Kevin Hilman
Lai Jiangshan writes: > From: Frederic Weisbecker > > Create a cpumask that limit the affinity of all unbound workqueues. > This cpumask is controlled though a file at the root of the workqueue > sysfs directory. > > It works on a lower-level than the per WQ_SYSFS workqueues cpumask files > such

Re: + lib-vsprintfc-even-faster-decimal-conversion.patch added to -mm tree

2015-03-13 Thread Rasmus Villemoes
On Fri, Mar 13 2015, Alexey Dobriyan wrote: > On Thu, Mar 12, 2015 at 12:54 AM, wrote: >> Subject: lib/vsprintf.c: even faster binary to decimal conversion > > I spent some time to microbenchmark changes in userspace (audience: fool!). > Results are below. > > Legend is "number avg+-1sigma min-

<    3   4   5   6   7   8   9   >