[PATCH 29/48] x86: Replace __get_cpu_var uses

2014-02-14 Thread Christoph Lameter
[Patch depends on another patch in this series that introduces raw_cpu_ops] __get_cpu_var() is used for multiple purposes in the kernel source. One of them is address calculation via the form &__get_cpu_var(x). This calculates the address for the instance of the percpu variable of the current

Re: [PATCH v2] Setting the IORESOURCE_ROM_SHADOW flag on a VGA card other than the primary prevents it from reading it's own rom. It will get the content of the shadowrom at C000 instead, which is of

2014-02-14 Thread Bjorn Helgaas
On Thu, Feb 13, 2014 at 10:48:24AM +0100, Sander Eikelenboom wrote: > Hi Bjorn, > > I have given it another email and another week, but without gaining any > reviewed or acked-by's. > It seems the only way forward is to shovel it in linux-next earlier, give it > a good soak and see if > anyone

[PATCH 33/48] MIPS: Replace __get_cpu_var uses in FPU emulator.

2014-02-14 Thread Christoph Lameter
From: David Daney The use of __this_cpu_inc() requires a fundamental integer type, so change the type of all the counters to unsigned long, which is the same width they were before, but not wrapped in local_t. Signed-off-by: David Daney Signed-off-by: Christoph Lameter ---

[PATCH 31/48] uv: Replace __get_cpu_var

2014-02-14 Thread Christoph Lameter
Use __this_cpu_read instead. Cc: Hedi Berriche Cc: Mike Travis Cc: Dimitri Sivanich Signed-off-by: Christoph Lameter Index: linux/arch/x86/include/asm/uv/uv_hub.h === --- linux.orig/arch/x86/include/asm/uv/uv_hub.h 2014-02-03

[PATCH 30/48] x86: Change __get_cpu_var calls introduced in 3.14

2014-02-14 Thread Christoph Lameter
More were added recently. Cc: Thomas Gleixner Cc: x...@kernel.org Cc: H. Peter Anvin Cc: Ingo Molnar Signed-off-by: Christoph Lameter Index: linux/arch/x86/kernel/cpu/perf_event_intel_rapl.c === ---

[PATCH 35/48] s390: rename __this_cpu_ptr to raw_cpu_ptr

2014-02-14 Thread Christoph Lameter
[Patch depends on another patch in this series that introduces raw_cpu_ops] Use raw_cpu_ptr instead. Signed-off-by: Christoph Lameter Index: linux/arch/s390/include/asm/percpu.h === --- linux.orig/arch/s390/include/asm/percpu.h

[PATCH 37/48] s390: Handle new __get_cpu_var calls added in 3.14

2014-02-14 Thread Christoph Lameter
Signed-off-by: Christoph Lameter Index: linux/arch/s390/kernel/perf_cpum_sf.c === --- linux.orig/arch/s390/kernel/perf_cpum_sf.c 2014-01-20 16:18:06.634974387 -0600 +++ linux/arch/s390/kernel/perf_cpum_sf.c 2014-02-03

[PATCH 36/48] s390: Replace __get_cpu_var uses

2014-02-14 Thread Christoph Lameter
__get_cpu_var() is used for multiple purposes in the kernel source. One of them is address calculation via the form &__get_cpu_var(x). This calculates the address for the instance of the percpu variable of the current processor based on an offset. Other use cases are for storing and retrieving

Re: [PATCH RT] arm/unwind: fail on unwind in irq disabled regions

2014-02-14 Thread Sebastian Andrzej Siewior
* Thomas Gleixner | 2014-02-13 23:57:45 [+0100]: >If we really end up with unwinding then the few cycles to follow the >stack are not that important anymore. We really want that output. Here you go. diff --git a/arch/arm/kernel/unwind.c b/arch/arm/kernel/unwind.c index 2af232d..bbafc67 100644

[PATCH] audit: add arch field to seccomp event log

2014-02-14 Thread Richard Guy Briggs
The AUDIT_SECCOMP record looks something like this: type=SECCOMP msg=audit(1373478171.953:32775): auid=4325 uid=4325 gid=4325 ses=1 subj=unconfined_u:unconfined_r:unconfined_t:s0 pid=12381 comm="test" sig=31 syscall=231 compat=0 ip=0x39ea8bca89 code=0x0 In order to determine what syscall 231

[PATCH 40/48] powerpc: Handle new __get_cpu_var calls in 3.14

2014-02-14 Thread Christoph Lameter
Signed-off-by: Christoph Lameter Index: linux/arch/powerpc/kernel/irq.c === --- linux.orig/arch/powerpc/kernel/irq.c2014-02-03 14:16:29.028411561 -0600 +++ linux/arch/powerpc/kernel/irq.c 2014-02-03 14:27:59.283978219

[PATCH 38/48] ia64: Replace __get_cpu_var uses

2014-02-14 Thread Christoph Lameter
__get_cpu_var() is used for multiple purposes in the kernel source. One of them is address calculation via the form &__get_cpu_var(x). This calculates the address for the instance of the percpu variable of the current processor based on an offset. Other use cases are for storing and retrieving

[PATCH 34/48] mips: Replace __get_cpu_var uses

2014-02-14 Thread Christoph Lameter
__get_cpu_var() is used for multiple purposes in the kernel source. One of them is address calculation via the form &__get_cpu_var(x). This calculates the address for the instance of the percpu variable of the current processor based on an offset. Other use cases are for storing and retrieving

[PATCH 41/48] sparc: Replace __get_cpu_var uses

2014-02-14 Thread Christoph Lameter
__get_cpu_var() is used for multiple purposes in the kernel source. One of them is address calculation via the form &__get_cpu_var(x). This calculates the address for the instance of the percpu variable of the current processor based on an offset. Other use cases are for storing and retrieving

Re: [PATCH V5 0/7] cpufreq: suspend early/resume late: dpm_{suspend|resume}()

2014-02-14 Thread Stephen Warren
On 02/14/2014 12:42 PM, Stephen Warren wrote: > On 02/12/2014 11:50 PM, Viresh Kumar wrote: >> This patchset creates/calls cpufreq suspend/resume callbacks from >> dpm_{suspend|resume}() >> for handling suspend/resume of cpufreq governors and core. BTW, I also happened to test these on a

[PATCH 43/48] blackfin: Replace __get_cpu_var uses

2014-02-14 Thread Christoph Lameter
[Patch depends on another patch in this series that introduces raw_cpu_ops] __get_cpu_var() is used for multiple purposes in the kernel source. One of them is address calculation via the form &__get_cpu_var(x). This calculates the address for the instance of the percpu variable of the current

[PATCH 39/48] powerpc: Replace __get_cpu_var uses

2014-02-14 Thread Christoph Lameter
__get_cpu_var() is used for multiple purposes in the kernel source. One of them is address calculation via the form &__get_cpu_var(x). This calculates the address for the instance of the percpu variable of the current processor based on an offset. Other use cases are for storing and retrieving

[PATCH 47/48] Remove __get_cpu_var and __raw_get_cpu_var macros [only in 3.16]

2014-02-14 Thread Christoph Lameter
No user is left in the kernel source tree. Therefore we can drop the definitions. [Patch should not be merged until all the replacement patches have been merged. Probably this means hold until the 3.16 merge window] Signed-off-by: Christoph Lameter Index: linux/include/asm-generic/percpu.h

[PATCH 45/48] alpha: Replace __get_cpu_var

2014-02-14 Thread Christoph Lameter
__get_cpu_var() is used for multiple purposes in the kernel source. One of them is address calculation via the form &__get_cpu_var(x). This calculates the address for the instance of the percpu variable of the current processor based on an offset. Other use cases are for storing and retrieving

[PATCH 46/48] sh: Replace __get_cpu_var uses

2014-02-14 Thread Christoph Lameter
__get_cpu_var() is used for multiple purposes in the kernel source. One of them is address calculation via the form &__get_cpu_var(x). This calculates the address for the instance of the percpu variable of the current processor based on an offset. Other use cases are for storing and retrieving

[PATCH 48/48] percpu: Remove __this_cpu_ptr

2014-02-14 Thread Christoph Lameter
The __this_cpu_ptr macro is no longer in use so drop it. Signed-off-by: Christoph Lameter Index: linux/include/asm-generic/percpu.h === --- linux.orig/include/asm-generic/percpu.h 2013-12-18 13:41:37.359646058 -0600 +++

[PATCH 44/48] avr32: Replace __get_cpu_var with __this_cpu_write

2014-02-14 Thread Christoph Lameter
Replace the single use of __get_cpu_var in avr32 with __this_cpu_write. Cc: Haavard Skinnemoen Acked-by: Hans-Christian Egtvedt Signed-off-by: Christoph Lameter Index: linux/arch/avr32/kernel/kprobes.c === ---

[PATCH 42/48] tile: Replace __get_cpu_var uses

2014-02-14 Thread Christoph Lameter
[Patch depends on another patch in this series that introduces raw_cpu_ops] __get_cpu_var() is used for multiple purposes in the kernel source. One of them is address calculation via the form &__get_cpu_var(x). This calculates the address for the instance of the percpu variable of the current

[PATCH 15/48] parisc: Replace __get_cpu_var uses for address calculation

2014-02-14 Thread Christoph Lameter
Convert to the use of this_cpu_ptr(). Cc: "James E.J. Bottomley" Cc: Helge Deller Cc: linux-par...@vger.kernel.org Signed-off-by: Christoph Lameter Index: linux/arch/parisc/lib/memcpy.c === --- linux.orig/arch/parisc/lib/memcpy.c

[PATCH 14/48] drivers/clocksource: Replace __get_cpu_var used for address calculation

2014-02-14 Thread Christoph Lameter
Replace __get_cpu_var used for address calculation with this_cpu_ptr. Acked-by: James Hogan Signed-off-by: Christoph Lameter Index: linux/drivers/clocksource/metag_generic.c === --- linux.orig/drivers/clocksource/metag_generic.c

[PATCH 27/48] md: Replace __this_cpu_ptr with raw_cpu_ptr

2014-02-14 Thread Christoph Lameter
[Patch depends on another patch in this series that introduces raw_cpu_ops] __this_cpu_ptr is being phased out. Signed-off-by: Christoph Lameter Index: linux/drivers/md/dm-stats.c === --- linux.orig/drivers/md/dm-stats.c

[PATCH 17/48] drivers/net/ethernet/tile: Replace __get_cpu_var uses for address calculation

2014-02-14 Thread Christoph Lameter
Replace with this_cpu_ptr. Acked-by: Chris Metcalf Signed-off-by: Christoph Lameter Index: linux/drivers/net/ethernet/tile/tilegx.c === --- linux.orig/drivers/net/ethernet/tile/tilegx.c 2014-02-03 13:55:50.504361347 -0600

[PATCH 19/48] tilegx: Another case of get_cpu_var

2014-02-14 Thread Christoph Lameter
Seems to have been introduced in 3.14-rc1. Signed-off-by: Christoph Lameter Index: linux/drivers/net/ethernet/tile/tilegx.c === --- linux.orig/drivers/net/ethernet/tile/tilegx.c 2014-02-03 14:00:01.159103055 -0600 +++

[PATCH 08/48] percpu: Replace __get_cpu_var with this_cpu_ptr

2014-02-14 Thread Christoph Lameter
One case of using __get_cpu_var in the get_cpu_var macro for address calculation. Signed-off-by: Christoph Lameter Index: linux/include/linux/percpu.h === --- linux.orig/include/linux/percpu.h 2014-01-30 14:40:02.667473594 -0600

[PATCH 00/48] percpu: Consistent per cpu operations V4

2014-02-14 Thread Christoph Lameter
Can we please get this merged? The first patch alone would at least define the functions required to enable the merging of the rest in any order and through any tree. There is a git tree that can be pulled at https://git.kernel.org/cgit/linux/kernel/git/christoph/percpu.git/ It has the

Re: [CRIU] [PATCH 1/3] prctl: reduce permissions to change boundaries of data, brk and stack

2014-02-14 Thread Eric W. Biederman
Cyrill Gorcunov writes: > On Fri, Feb 14, 2014 at 11:47:13PM +0400, Pavel Emelyanov wrote: >> >> Maybe we could improve this api and provide argument as a pointer >> >> to a structure, which would have all the fields we're going to >> >> modify, which in turn would allow us to verify that all

Re: [RFC PATCH v2 tip 0/7] 64-bit BPF insn set and tracing filters

2014-02-14 Thread Alexei Starovoitov
On Fri, Feb 14, 2014 at 9:27 AM, Daniel Borkmann wrote: > On 02/14/2014 05:47 AM, Alexei Starovoitov wrote: > ... >>> >>> Do you see a possibility to integrate your work step by step? That is, >> >> >> Sure. let's see how we can do it. >> >>> to first integrate the interpreter part only; meaning,

Re: [PATCH v16 0/10] Add 32 bit VDSO time function support

2014-02-14 Thread Andi Kleen
This version looks good to me from a quick read. -Andi -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at

Re: [RFC] sched: Add a new lockless wake-from-idle implementation

2014-02-14 Thread Andy Lutomirski
On Fri, Feb 14, 2014 at 12:01 PM, Andy Lutomirski wrote: > On Thu, Feb 13, 2014 at 6:50 AM, Peter Zijlstra wrote: >> On Wed, Feb 12, 2014 at 05:40:12PM -0800, Andy Lutomirski wrote: >>> This is a strawman proposal to simplify the idle implementation, eliminate >>> a race >>> >>> Benefits over

Re: [RFC 1/6] mailbox: add core framework

2014-02-14 Thread Courtney Cavin
On Fri, Feb 14, 2014 at 08:48:25PM +0100, Arnd Bergmann wrote: > On Wednesday 12 February 2014, Courtney Cavin wrote: > > On Tue, Feb 11, 2014 at 09:35:01AM +0100, Arnd Bergmann wrote: > > > On Monday 10 February 2014 16:23:48 Courtney Cavin wrote: > > > Then again, I think that the context

Re: [PATCH v7 1/1] watchdog: Add tegra watchdog

2014-02-14 Thread Guenter Roeck
Hi Andrew, On Fri, Feb 14, 2014 at 12:03:05PM -0800, Andrew Chew wrote: > Add a driver for the hardware watchdogs in NVIDIA Tegra SoCs (Tegra30 and > later). This driver will configure one watchdog timer that will reset the > system in the case of a watchdog timeout. > > This driver binds to

Re: [CRIU] [PATCH 1/3] prctl: reduce permissions to change boundaries of data, brk and stack

2014-02-14 Thread Eric W. Biederman
Pavel Emelyanov writes: > On 02/14/2014 11:16 PM, Eric W. Biederman wrote: >> Cyrill Gorcunov writes: >> >>> On Fri, Feb 14, 2014 at 09:43:14PM +0400, Andrew Vagin wrote: > My brain hurts just looking at this patch and how you are justifying it. > > For the resources you are

Re: Lenovo X240 (haswell) suspend-to-ram hangs on 3-14.0-rc2

2014-02-14 Thread Takashi Iwai
At Sat, 15 Feb 2014 03:01:24 +0800, Jeff Chua wrote: > > On Fri, Feb 14, 2014 at 9:57 PM, Takashi Iwai wrote: > > The other possible change in hda_intel.c is the enablement of runtime > > PM for Panther Point. But it's been working for other chips, so > > wondering why it hits anything. In

Re: [CRIU] [PATCH 1/3] prctl: reduce permissions to change boundaries of data, brk and stack

2014-02-14 Thread Cyrill Gorcunov
On Fri, Feb 14, 2014 at 11:47:13PM +0400, Pavel Emelyanov wrote: > >> Maybe we could improve this api and provide argument as a pointer > >> to a structure, which would have all the fields we're going to > >> modify, which in turn would allow us to verify that all new values > >> are sane and fit

Re: AW: AW: [PATCH] x86: HPET force enable for Soekris net6501

2014-02-14 Thread H. Peter Anvin
On 02/14/2014 11:59 AM, Thomas Gleixner wrote: > On Fri, 14 Feb 2014, H. Peter Anvin wrote: >> On 02/14/2014 11:15 AM, Thomas Gleixner wrote: >>> I'm fine with ACPI tables if we can provide simple means for embedded >>> users to load one via grub or just attach it to the kernel image. >> >> That

[PATCH v7 1/1] watchdog: Add tegra watchdog

2014-02-14 Thread Andrew Chew
Add a driver for the hardware watchdogs in NVIDIA Tegra SoCs (Tegra30 and later). This driver will configure one watchdog timer that will reset the system in the case of a watchdog timeout. This driver binds to the nvidia,tegra30-timer device node and gets its register base from there.

Re: [RFC][PATCH 0/5] arch: atomic rework

2014-02-14 Thread Linus Torvalds
On Fri, Feb 14, 2014 at 11:50 AM, Linus Torvalds wrote: > > Why are we still discussing this idiocy? It's irrelevant. If the > standard really allows random store speculation, the standard doesn't > matter, and sane people shouldn't waste their time arguing about it. Btw, the other part of this

Re: [RFC] sched: Add a new lockless wake-from-idle implementation

2014-02-14 Thread Andy Lutomirski
On Thu, Feb 13, 2014 at 6:50 AM, Peter Zijlstra wrote: > On Wed, Feb 12, 2014 at 05:40:12PM -0800, Andy Lutomirski wrote: >> This is a strawman proposal to simplify the idle implementation, eliminate >> a race >> >> Benefits over current code: >> - ttwu_queue_remote doesn't use an IPI unless

Re: AW: AW: [PATCH] x86: HPET force enable for Soekris net6501

2014-02-14 Thread Thomas Gleixner
On Fri, 14 Feb 2014, H. Peter Anvin wrote: > On 02/14/2014 11:15 AM, Thomas Gleixner wrote: > > I'm fine with ACPI tables if we can provide simple means for embedded > > users to load one via grub or just attach it to the kernel image. > > That already exists, see

Re: [RFC 1/6] mailbox: add core framework

2014-02-14 Thread Arnd Bergmann
On Wednesday 12 February 2014, Courtney Cavin wrote: > On Tue, Feb 11, 2014 at 09:35:01AM +0100, Arnd Bergmann wrote: > > On Monday 10 February 2014 16:23:48 Courtney Cavin wrote: > Then again, I think that the context management stuff is the exception as > well, > and I think that can/should

Re: [RFC][PATCH 0/5] arch: atomic rework

2014-02-14 Thread Linus Torvalds
On Fri, Feb 14, 2014 at 9:29 AM, Paul E. McKenney wrote: > > Linus, Peter, any objections to marking places where we are relying on > ordering from control dependencies against later stores? This approach > seems to me to have significant documentation benefits. Quite frankly, I think it's

Re: [CRIU] [PATCH 1/3] prctl: reduce permissions to change boundaries of data, brk and stack

2014-02-14 Thread Pavel Emelyanov
On 02/14/2014 11:16 PM, Eric W. Biederman wrote: > Cyrill Gorcunov writes: > >> On Fri, Feb 14, 2014 at 09:43:14PM +0400, Andrew Vagin wrote: My brain hurts just looking at this patch and how you are justifying it. For the resources you are mucking with below all you have to do is

Re: [Regression 3.14-rc2] drm/i915: Brightness adjustment is broken in 945GM

2014-02-14 Thread Luis Ortega
> On Fri, Feb 14, 2014 at 09:09:52AM +0200, Jani Nikula wrote: > > It seems that it will be better to track this in bugzilla rather than > the mailing lists. Please file a bug on DRM/Intel component at > https://bugs.freedesktop.org/enter_bug.cgi?product=DRI. Attach these > files. Done. We can

Re: [PATCH V5 0/7] cpufreq: suspend early/resume late: dpm_{suspend|resume}()

2014-02-14 Thread Stephen Warren
On 02/12/2014 11:50 PM, Viresh Kumar wrote: > This patchset creates/calls cpufreq suspend/resume callbacks from > dpm_{suspend|resume}() > for handling suspend/resume of cpufreq governors and core. Are these patches for 3.14 or 3.15? I ask because I just tested Linus's master from a few days

[PATCH] ARM64: unwind: Fix PC calculation

2014-02-14 Thread Olof Johansson
The frame PC value in the unwind code used to just take the saved LR value and use that. That's incorrect as a stack trace, since it shows the return path stack, not the call path stack. In particular, it shows faulty information in case the bl is done as the very last instruction of one label,

Re: [PATCH v3] ARM: mm: report both sections from PMD

2014-02-14 Thread Kees Cook
On Fri, Feb 14, 2014 at 11:23 AM, Russell King - ARM Linux wrote: >> https://lkml.org/lkml/2014/2/12/662 > > It's not that simple, because APX in section descriptors doesn't exist > on pre-v6 ARMs. This needs to be conditional upon the CPU arch. Ah! Okay, do we need a single #define to describe

Re: AW: AW: [PATCH] x86: HPET force enable for Soekris net6501

2014-02-14 Thread H. Peter Anvin
On 02/14/2014 11:15 AM, Thomas Gleixner wrote: > > > On Fri, 14 Feb 2014, H. Peter Anvin wrote: > >> We could also just add an ACPI table... same concept. Still need to find it. > > I'm fine with ACPI tables if we can provide simple means for embedded > users to load one via grub or just

Re: [PATCH v3] ARM: mm: report both sections from PMD

2014-02-14 Thread Russell King - ARM Linux
On Fri, Feb 14, 2014 at 11:13:53AM -0800, Kees Cook wrote: > On Fri, Feb 14, 2014 at 2:17 AM, Catalin Marinas > wrote: > > On Thu, Feb 13, 2014 at 07:52:30PM +, Kees Cook wrote: > >> On 2-level page table systems, the PMD has 2 section entries. Report > >> these, otherwise ARM_PTDUMP will

Re: [RFC][PATCH 0/5] arch: atomic rework

2014-02-14 Thread Torvald Riegel
On Fri, 2014-02-14 at 09:29 -0800, Paul E. McKenney wrote: > On Thu, Feb 13, 2014 at 08:43:01PM -0800, Torvald Riegel wrote: > > On Thu, 2014-02-13 at 18:01 -0800, Paul E. McKenney wrote: > > [ . . . ] > > > > Another option would be to flag the conditional expression, prohibiting > > > the

Re: [RFC][PATCH 0/5] arch: atomic rework

2014-02-14 Thread Torvald Riegel
On Fri, 2014-02-14 at 10:50 +0100, Peter Zijlstra wrote: > On Thu, Feb 13, 2014 at 09:07:55PM -0800, Torvald Riegel wrote: > > That depends on what your goal is. First, I don't know why you quoted that, but without the context, quoting it doesn't make sense. Let me repeat the point. The

Re: [CRIU] [PATCH 1/3] prctl: reduce permissions to change boundaries of data, brk and stack

2014-02-14 Thread Eric W. Biederman
Cyrill Gorcunov writes: > On Fri, Feb 14, 2014 at 09:43:14PM +0400, Andrew Vagin wrote: >> > My brain hurts just looking at this patch and how you are justifying it. >> > >> > For the resources you are mucking with below all you have to do is to >> > verify that you are below the appropriate

Re: AW: AW: [PATCH] x86: HPET force enable for Soekris net6501

2014-02-14 Thread Thomas Gleixner
On Fri, 14 Feb 2014, H. Peter Anvin wrote: > We could also just add an ACPI table... same concept. Still need to find it. I'm fine with ACPI tables if we can provide simple means for embedded users to load one via grub or just attach it to the kernel image. Sure, the user needs to know how

Re: [PATCH v3] ARM: mm: report both sections from PMD

2014-02-14 Thread Kees Cook
On Fri, Feb 14, 2014 at 2:17 AM, Catalin Marinas wrote: > On Thu, Feb 13, 2014 at 07:52:30PM +, Kees Cook wrote: >> On 2-level page table systems, the PMD has 2 section entries. Report >> these, otherwise ARM_PTDUMP will miss reporting permission changes on >> odd section boundaries. >> >>

Re: [char-misc-next 3/4] mei: add mei_hbuf_acquire wrapper

2014-02-14 Thread Greg KH
On Wed, Feb 12, 2014 at 09:41:53PM +0200, Tomas Winkler wrote: > A client has to acquire host buffer > before writing, we add lock like wrapper > to replace the code snippet > > if (dev->hbuf_is_ready) > dev->hbuf_is_ready = false; > > Signed-off-by: Tomas Winkler > --- >

Re: pci-3.14 resource alloc

2014-02-14 Thread Yinghai Lu
On Fri, Feb 14, 2014 at 7:46 AM, Steven Newbury wrote: >> >> Oh, never mind! I didn't notice pref_bar has been renamed to >> assign_pref_bars. It's working now! :) > > There's no pci bridge/bus hotplug though. Docking doesn't reveal the > pci-e->pci bridge or the (radeon) devices on the other

Re: [PATCH 2/2] ARM: mm: keep rodata non-executable

2014-02-14 Thread Kees Cook
On Fri, Feb 14, 2014 at 8:22 AM, Dave Martin wrote: > On Thu, Feb 13, 2014 at 05:04:10PM -0800, Kees Cook wrote: >> Introduce "CONFIG_DEBUG_RODATA" to mostly match the x86 config, though >> the behavior is different: it depends on STRICT_KERNMEM_PERMS, which >> sets rodata read-only (but

Re: Lenovo X240 (haswell) suspend-to-ram hangs on 3-14.0-rc2

2014-02-14 Thread Steven Noonan
On Fri, Feb 14, 2014 at 11:01 AM, Jeff Chua wrote: > On Fri, Feb 14, 2014 at 9:57 PM, Takashi Iwai wrote: >> The other possible change in hda_intel.c is the enablement of runtime >> PM for Panther Point. But it's been working for other chips, so >> wondering why it hits anything. In anyway,

Re: [PATCH -mm v15 00/13] kmemcg shrinkers

2014-02-14 Thread Vladimir Davydov
On 02/14/2014 01:20 AM, Johannes Weiner wrote: > On Thu, Feb 13, 2014 at 09:33:32PM +0400, Vladimir Davydov wrote: >> On 02/13/2014 02:01 AM, Johannes Weiner wrote: >>> On Wed, Feb 12, 2014 at 10:05:43PM +0400, Vladimir Davydov wrote: On 02/12/2014 12:19 AM, Johannes Weiner wrote: > On

Re: Another preempt folding issue?

2014-02-14 Thread Stefan Bader
On 14.02.2014 19:23, Stefan Bader wrote: > On 14.02.2014 18:33, Borislav Petkov wrote: >> On Fri, Feb 14, 2014 at 06:02:32PM +0100, Stefan Bader wrote: >>> Okaaay, I think I did what you asked. So yes, there is sse2 in the cpu >>> info. And >>> there is a mfence in the disassembly: >> >> Btw, I

Re: [PATCH 7/8] locking: Introduce qrwlock

2014-02-14 Thread Waiman Long
On 02/13/2014 12:26 PM, Peter Zijlstra wrote: On Thu, Feb 13, 2014 at 05:35:46PM +0100, Peter Zijlstra wrote: On Tue, Feb 11, 2014 at 03:12:59PM -0500, Waiman Long wrote: Using the same locktest program to repetitively take a single rwlock with programmable number of threads and count their

Re: [PATCH 06/22] Add helper functions used by arm/arm64

2014-02-14 Thread Roy Franz
On Thu, Feb 13, 2014 at 3:26 AM, Matt Fleming wrote: > On Wed, 05 Feb, at 05:03:57PM, Leif Lindholm wrote: >> From: Roy Franz >> >> Add the get_dram_base() function and efi_call_physN() macros >> that are shared by arm/arm64. >> >> Signed-off-by: Roy Franz >> Signed-off-by: Leif Lindholm >>

Re: Lenovo X240 (haswell) suspend-to-ram hangs on 3-14.0-rc2

2014-02-14 Thread Jeff Chua
On Fri, Feb 14, 2014 at 9:57 PM, Takashi Iwai wrote: > The other possible change in hda_intel.c is the enablement of runtime > PM for Panther Point. But it's been working for other chips, so > wondering why it hits anything. In anyway, please give the full > Oops messages not only the stack

Re: [PATCH 26/27] ARM: shmobile: lager-reference: Enable CMT0 in device tree

2014-02-14 Thread Sergei Shtylyov
On 02/14/2014 07:26 PM, Laurent Pinchart wrote: Enable the CMT0 device and configure channel 0 as a clock event provider. Signed-off-by: Laurent Pinchart diff --git a/arch/arm/mach-shmobile/include/mach/r8a7790.h b/arch/arm/mach-shmobile/include/mach/r8a7790.h index 0b95bab..62b31f3

[RFCv1 2/4] mfd: twl4030-madc: Add DT support and convert to IIO framework

2014-02-14 Thread Sebastian Reichel
This converts twl4030-madc module to use the Industrial IO ADC framework and adds device tree support. Signed-off-by: Sebastian Reichel --- drivers/mfd/twl4030-madc.c | 121 ++--- 1 file changed, 114 insertions(+), 7 deletions(-) diff --git

Re: [PATCH 7/9] slab: use the lock on alien_cache, instead of the lock on array_cache

2014-02-14 Thread Christoph Lameter
On Fri, 14 Feb 2014, Joonsoo Kim wrote: > Now, we have separate alien_cache structure, so it'd be better to hold > the lock on alien_cache while manipulating alien_cache. After that, > we don't need the lock on array_cache, so remove it. Acked-by: Christoph Lameter -- To unsubscribe from this

[RFCv1 3/4] Documentation: DT: Document twl4030-madc binding

2014-02-14 Thread Sebastian Reichel
Add devicetree binding documentation for twl4030-madc analog digital converter. Signed-off-by: Sebastian Reichel --- .../devicetree/bindings/iio/adc/twl4030-madc.txt | 19 +++ 1 file changed, 19 insertions(+) create mode 100644

Re: [PATCH 6/9] slab: introduce alien_cache

2014-02-14 Thread Christoph Lameter
On Fri, 14 Feb 2014, Joonsoo Kim wrote: > Currently, we use array_cache for alien_cache. Although they are mostly > similar, there is one difference, that is, need for spinlock. > We don't need spinlock for array_cache itself, but to use array_cache for > alien_cache, array_cache structure should

[RFCv1 1/4] mfd: twl4030-madc: Use managed resources

2014-02-14 Thread Sebastian Reichel
Update twl4030-madc driver to use managed resources. Signed-off-by: Sebastian Reichel --- drivers/mfd/twl4030-madc.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/drivers/mfd/twl4030-madc.c b/drivers/mfd/twl4030-madc.c index 4c583e4..5458561 100644 ---

[RFCv1 4/4] mfd: twl4030-madc: Move driver to drivers/iio/adc

2014-02-14 Thread Sebastian Reichel
This is a driver for an A/D converter, which belongs into drivers/iio/adc. Signed-off-by: Sebastian Reichel --- drivers/iio/adc/Kconfig| 10 + drivers/iio/adc/Makefile | 1 + drivers/iio/adc/twl4030-madc.c | 922 + drivers/mfd/Kconfig

Re: [PATCH 8/9] slab: destroy a slab without holding any alien cache lock

2014-02-14 Thread Christoph Lameter
On Fri, 14 Feb 2014, Joonsoo Kim wrote: > I haven't heard that this alien cache lock is contended, but to reduce > chance of contention would be better generally. And with this change, > we can simplify complex lockdep annotation in slab code. > In the following patch, it will be implemented.

Re: 3.12.9-rt13: BUG: soft lockup

2014-02-14 Thread Fernando Lopez-Lezcano
On 02/14/2014 02:43 AM, Thomas Gleixner wrote: On Thu, 13 Feb 2014, Fernando Lopez-Lezcano wrote: On 02/13/2014 03:55 PM, Thomas Gleixner wrote: On Thu, 13 Feb 2014, Fernando Lopez-Lezcano wrote: On 02/13/2014 02:25 PM, Thomas Gleixner wrote: On Wed, 12 Feb 2014, Fernando Lopez-Lezcano

Re: [PATCH 9/9] slab: remove a useless lockdep annotation

2014-02-14 Thread Christoph Lameter
On Fri, 14 Feb 2014, Joonsoo Kim wrote: > @@ -921,7 +784,7 @@ static int transfer_objects(struct array_cache *to, > static inline struct alien_cache **alloc_alien_cache(int node, > int limit, gfp_t gfp) > { > - return (struct alien_cache

Re: [PATCH 7/8] locking: Introduce qrwlock

2014-02-14 Thread Waiman Long
On 02/13/2014 11:35 AM, Peter Zijlstra wrote: On Tue, Feb 11, 2014 at 03:12:59PM -0500, Waiman Long wrote: Using the same locktest program to repetitively take a single rwlock with programmable number of threads and count their execution times. Each thread takes the lock 5M times on a 4-socket

Re: [PATCH] mvebu : pcie: dt: potential issue in range parsing

2014-02-14 Thread Bjorn Helgaas
On Wed, Feb 05, 2014 at 12:21:07PM -0500, Jason Cooper wrote: > > + Bjorn, linux-pci > > Bjorn, > > It looks like this didn't get Cc'd to linux-pci. Here's a link: > > http://www.spinics.net/lists/arm-kernel/msg299721.html Thanks for the heads-up; I had indeed missed this (I mostly rely on

Re: Loseing my patience with libata and sata_nv

2014-02-14 Thread Randy Dunlap
On 02/14/2014 08:31 AM, Gene Heskett wrote: > Which is required for my $290 ASUS M2n-SLI Deluxe motherboard to boot. > > Not finding the option in any kernel tree that exists on my system, > except it appears its been replaced or something. > > This once in a lifetime boot, to 3.12.9, shows

Re: [PATCH 5/9] slab: factor out initialization of arracy cache

2014-02-14 Thread Christoph Lameter
On Fri, 14 Feb 2014, Joonsoo Kim wrote: > Factor out initialization of array cache to use it in following patch. Acked-by: Christoph Lameter -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: [PATCH 4/9] slab: defer slab_destroy in free_block()

2014-02-14 Thread Christoph Lameter
On Fri, 14 Feb 2014, Joonsoo Kim wrote: > In free_block(), if freeing object makes new free slab and number of > free_objects exceeds free_limit, we start to destroy this new free slab > with holding the kmem_cache node lock. Holding the lock is useless and, > generally, holding a lock as least

Re: AW: AW: [PATCH] x86: HPET force enable for Soekris net6501

2014-02-14 Thread H. Peter Anvin
We could also just add an ACPI table... same concept. Still need to find it. On February 14, 2014 10:38:24 AM PST, Thomas Gleixner wrote: >On Fri, 14 Feb 2014, H. Peter Anvin wrote: >> On 02/14/2014 10:21 AM, Thomas Gleixner wrote: >> > I wish we could just use devicetree for such cases and

[PATCH] ARM: Remove extraneous kcmp syscall ignore

2014-02-14 Thread Christopher Covington
The kcmp system call was ported to ARM in commit 3f7d1fe108dbaefd0c57a41753fc2c90b395f458 "ARM: 7665/1: Wire up kcmp syscall". Signed-off-by: Christopher Covington --- arch/arm/include/asm/unistd.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/include/asm/unistd.h

Re: AW: AW: [PATCH] x86: HPET force enable for Soekris net6501

2014-02-14 Thread Thomas Gleixner
On Fri, 14 Feb 2014, H. Peter Anvin wrote: > On 02/14/2014 10:21 AM, Thomas Gleixner wrote: > > I wish we could just use devicetree for such cases and fix the crud > > ourself. > > > > We'd have to identify the platform, which is the main problem. Right > now we support quirking for DMI or PCI,

Re: [PATCH v3 0/3] dp83640: Get pin and master/slave configuration from DT

2014-02-14 Thread David Miller
From: Richard Cochran Date: Fri, 14 Feb 2014 10:06:01 +0100 > People want to be able to configure the auxiliary functions on the > pins of their PTP devices. My preference for supporting this is: > > 1. additional ioctl on the PTP character device > 2. ethtool ioctl > 3. DT and/or ACPI > > The

[RFC][PATCH v2] mm/page_alloc: fix freeing of MIGRATE_RESERVE migratetype pages

2014-02-14 Thread Bartlomiej Zolnierkiewicz
Pages allocated from MIGRATE_RESERVE migratetype pageblocks are not freed back to MIGRATE_RESERVE migratetype free lists in free_pcppages_bulk()->__free_one_page() if we got to free_pcppages_bulk() through drain_[zone_]pages(). The freeing through free_hot_cold_page() is okay because freepage

Re: linux-next: Tree for Feb 14 (media/pci/ttpci/av7110_ir.c)

2014-02-14 Thread Randy Dunlap
On 02/13/2014 09:28 PM, Stephen Rothwell wrote: > Hi all, > > If you see failures in building this tree due to missing declarations of > k..alloc/free, then it may be caused by commit 2bd59d48ebfb ("cgroup: > convert to kernfs"). Please send Tejun Heo a patch > adding an inclusion of

Re: [PATCH 00/08] PCI: rcar: Recent driver patches from Ben Dooks and me

2014-02-14 Thread Bjorn Helgaas
On Thu, Feb 13, 2014 at 01:39:54PM +0900, Simon Horman wrote: > On Thu, Feb 13, 2014 at 12:03:02PM +0900, Magnus Damm wrote: > > PCI: rcar: Recent driver patches from Ben Dooks and me > > > > [PATCH 01/08] PCI: rcar: check platform_get_irq() return code > > [PATCH v2 02/08] PCI: rcar: add error

Re: [PATCH v2 52/52] net/iucv/iucv.c: Fix CPU hotplug callback registration

2014-02-14 Thread David Miller
From: "Srivatsa S. Bhat" Date: Fri, 14 Feb 2014 13:30:58 +0530 > Subsystems that want to register CPU hotplug callbacks, as well as perform > initialization for the CPUs that are already online, often do it as shown > below: ... > This is wrong, since it is prone to ABBA deadlocks involving the

Re: [PATCH v2 51/52] net/core/flow.c: Fix CPU hotplug callback registration

2014-02-14 Thread David Miller
From: "Srivatsa S. Bhat" Date: Fri, 14 Feb 2014 13:30:43 +0530 > Subsystems that want to register CPU hotplug callbacks, as well as perform > initialization for the CPUs that are already online, often do it as shown > below: ... > This is wrong, since it is prone to ABBA deadlocks involving the

Re: [PATCH v2 13/52] sparc, sysfs: Fix CPU hotplug callback registration

2014-02-14 Thread David Miller
From: "Srivatsa S. Bhat" Date: Fri, 14 Feb 2014 13:22:05 +0530 > Subsystems that want to register CPU hotplug callbacks, as well as perform > initialization for the CPUs that are already online, often do it as shown > below: ... > This is wrong, since it is prone to ABBA deadlocks involving the

[PATCH v2 3/3] ARM: dts: bcm281xx: define real clocks

2014-02-14 Thread Alex Elder
From: Alex Elder Replace the "fake" clocks defined in the "bcm11351.dtsi" device tree file with real definitions backed by the new BCM281xx clock driver. Signed-off-by: Alex Elder Reviewed-by: Matt Porter Reviewed-by: Tim Kryger --- arch/arm/boot/dts/bcm11351.dtsi | 192

[PATCH v2 2/3] clk: bcm281xx: don't disable unused peripheral clocks

2014-02-14 Thread Alex Elder
Add the CLK_IGNORE_UNUSED flag when setting up a peripheral clock. This prevents unused clocks from getting disabled, and by doing this we can use the common clock code even before we've resolved all the spots that need to get a reference to their clock. Signed-off-by: Alex Elder Reviewed-by:

AW: AW: AW: [PATCH] x86: HPET force enable for Soekris net6501

2014-02-14 Thread Conrad Kostecki
> On 02/14/2014 10:13 AM, Conrad Kostecki wrote: > >> > >> Does it have DMI? > > > > Unfortunately not. > > > > # dmidecode 2.12 > > # No SMBIOS nor DMI entry point found, sorry. > > > > Sigh. Does anyone have contacts at Soekris who can complain about this > stuff? I don't think, that Soekris

Re: [PATCH 2/9] slab: makes clear_obj_pfmemalloc() just return store masked value

2014-02-14 Thread Christoph Lameter
On Fri, 14 Feb 2014, Joonsoo Kim wrote: > clear_obj_pfmemalloc() takes the pointer to the object pointer as argument > to store masked value back into this address. > But this is useless, since we don't use this stored value anymore. > All we need is just masked value. So makes

Re: [PATCH v2] regulator: gpio-regulator: fix forgotten gpios-states reading

2014-02-14 Thread Mark Brown
On Thu, Feb 13, 2014 at 04:34:32PM +0100, Heiko Stübner wrote: > From: Heiko Stuebner > > Commit 934624d6e9f0 ("regulator: gpio-regulator: do not open-code counting > and access of dt array elements") forgot to convert the recently added > gpios-states property using the same pattern. Applied,

Re: [PATCH] spi: core: Validate lenght of the transfers in message

2014-02-14 Thread Mark Brown
On Fri, Feb 14, 2014 at 10:16:05AM +0200, Ivan T. Ivanov wrote: > "SPI transfer length should be multiple of SPI word size, where SPI > word size should be power-of-two multiple" Yes, that's clearer though you could in theory have a three byte word (I'm not sure that anyone would actually do

Re: [RFC V1] mfd: da9063: Add support for production silicon variant code

2014-02-14 Thread Mark Brown
On Fri, Feb 14, 2014 at 10:28:38AM +, Opensource [Steve Twiss] wrote: > The previous silicon was only sent out in sample form to selected customers > and will no longer be available. I have been informed that the new silicon > has been sent out, and everybody should have received the new

Re: [PATCH] spi: core: Validate lenght of the transfers in message

2014-02-14 Thread Mark Brown
On Thu, Feb 13, 2014 at 04:46:46PM +0200, Ivan T. Ivanov wrote: > + /* No partial transfers accepted */ > + if (!n_words || xfer->len & (w_size - 1)) > + return -EINVAL; Please write this using % rather than the & - it's a lot clearer what it's

<    1   2   3   4   5   6   7   8   9   10   >