Re: [PATCH v3] ASoC: cs42888: Add codec driver support

2014-03-18 Thread Mark Brown
On Tue, Mar 18, 2014 at 12:08:02PM -0500, Paul Handrigan wrote: > On Tue, 18 Mar 2014, Brian Austin wrote: > >Driver looks good to me. I think we should name it the cs42xx8 since this > >actually covers CS42448 and CS42888. The CS42888 is derived from the > >CS42448. > V3 looks good. As Brian

Re: [PATCH] drm/i915: Do not dereference pointers from ring buffer in evict event

2014-03-18 Thread Daniel Vetter
On Tue, Mar 18, 2014 at 11:31:36AM -0400, Steven Rostedt wrote: > On Tue, 18 Mar 2014 11:27:37 -0400 > Steven Rostedt wrote: > > > The TP_printk() should never dereference any pointers, because the ring > > buffer can be read at some unknown time in the future. If a device no > > longer exists,

Re: [PATCHv10 0/4] Add Freescale FTM PWM support

2014-03-18 Thread Thierry Reding
On Thu, Feb 27, 2014 at 05:39:48PM +0800, Xiubo Li wrote: > Changed in V10: > Fix some bugs and adjust the code from Thierry's comments. > > > Xiubo Li (4): > pwm: Add Freescale FTM PWM driver support > ARM: dts: vf610: Add Freescale FTM PWM node. > ARM: dts: vf610-twr: Enables FTM PWM

Re: [PATCH v2 2/2] intel_pstate: Set core to min P state during core offline

2014-03-18 Thread Dirk Brandewie
On 03/18/2014 11:52 AM, Srivatsa S. Bhat wrote: On 03/18/2014 08:31 PM, Dirk Brandewie wrote: On 03/17/2014 10:44 PM, Viresh Kumar wrote: On Sat, Mar 15, 2014 at 2:33 AM, wrote: + static int intel_pstate_cpu_init(struct cpufreq_policy *policy) { struct cpudata *cpu; @@

Re: [patch 03/12] can: c_can: Make it SMP safe

2014-03-18 Thread Thomas Gleixner
On Tue, 18 Mar 2014, Marc Kleine-Budde wrote: > On 03/18/2014 06:19 PM, Thomas Gleixner wrote: > > The hardware has two message control interfaces, but the code only > > uses the first one. So on SMP the following can be observed: > > > > CPU0CPU1 > > rx_poll() > > write IF1

Re: [PATCH v3] ASoC: cs42888: Add codec driver support

2014-03-18 Thread Paul Handrigan
On Tue, 18 Mar 2014, Brian Austin wrote: On Tue, 18 Mar 2014, Mark Brown wrote: On Tue, Mar 11, 2014 at 07:41:31PM +0800, Nicolin Chen wrote: This patch adds support for the Cirrus Logic CS42888 Audio CODEC that has four 24-bit A/D and eight 24-bit D/A converters. Brian, Paul - any review

Consistent kernel oops with 3.11.10 & 3.12.9 on Haswell CPUs...

2014-03-18 Thread dafreedm
First-time poster to LKML, though I've been a Linux user for the past 15+ years. Thanks to you all for your collective efforts at creating such a great (useful, stable, etc) kernel... Problem at hand: I'm getting consistent kernel oops (at times, hard-crashes) on two of my identical servers

[PATCH 1/5] x86/boot: undef memcmp before providing a new definition

2014-03-18 Thread Vivek Goyal
With CONFIG_X86_32=y, string_32.h gets pulled in compressed/string.c by "misch.h". string_32.h defines a macro to map memcmp to __builtin_memcmp(). And that macro in turn changes the name of memcmp() defined here and converts it to __builtin_memcmp(). I thought that's not the intention though. We

[PATCH 3/5] x86/boot: Move optmized memcpy() 32/64 bit versions to compressed/string.c

2014-03-18 Thread Vivek Goyal
Move optimzied versions of memcpy to compressed/string.c This will allow any other code to use these functions too if need be in future. Again trying to put definition in a common place instead of hiding it in misc.c Signed-off-by: Vivek Goyal --- arch/x86/boot/compressed/misc.c | 31

Re: [PATCH 0/3] x86: fix hang when AP bringup is too slow

2014-03-18 Thread Igor Mammedov
On Tue, 18 Mar 2014 08:21:19 -0400 Prarit Bhargava wrote: > > > On 03/13/2014 10:25 AM, Igor Mammedov wrote: > > Hang is observed on virtual machines during CPU hotplug, > > especially in big guests with many CPUs. (It happens more > > often if host is over-committed). > > > > Hey Igor, I

[PATCH 0/5] x86/boot: Some string function cleanup and consolidation

2014-03-18 Thread Vivek Goyal
Hi Peter, I have tried cleaning up a bit the usage of string functions in arch/x86/boot/. I have created x86/boot/string.h which all the callers can include and by default they get the built in definition of memcpy, memset and memcmp. Those who want to use optimized version of these functions,

[PATCH 4/5] x86/boot: Move memcmp() into string.h and string.c

2014-03-18 Thread Vivek Goyal
Try to treat memcmp() in same way as memcpy() and memset(). Provide a declaration in boot/string.h and by default user gets a memcmp() which maps to builtin function. Move optimized definition of memcmp() in boot/string.c. Now a user can do #undef memcmp and link against string.c to use optimzied

[PATCH 5/5] x86/boot: Move memset() definition in compressed/string.c

2014-03-18 Thread Vivek Goyal
Currently compressed/misc.c needs to link against memset(). I think one of the reasons of this need is inclusion of various header files which define static inline functions and use memset() inside these. For example, include/linux/bitmap.h I think trying to include "../string.h" and using

[PATCH 2/5] x86/boot: Create a separate string.h file to provide standard string functions

2014-03-18 Thread Vivek Goyal
Create a separate arch/x86/boot/string.h file to provide declaration of some of the common string functions. By default memcpy, memset and memcmp functions will default to gcc builtin functions. If code wants to use an optimized version of any of these functions, they need to #undef the

Re: [PATCH 0/6] perf tools: Share map groups within process

2014-03-18 Thread Don Zickus
On Tue, Mar 18, 2014 at 03:46:50PM +0100, Jiri Olsa wrote: > hi, > this patchset moves thread's map_groups to be dynamically > allocated and shared within process threads. > > The main benefit would be to be able to look up memory > map from any thread that belongs to the process. > > This

Re: [PATCH v3 0/2] Add stop callback to the cpufreq_driver interface.

2014-03-18 Thread Dirk Brandewie
On 03/18/2014 12:08 PM, Srivatsa S. Bhat wrote: On 03/18/2014 10:52 PM, dirk.brande...@gmail.com wrote: From: Dirk Brandewie I don't mean to nitpick, but generally its easier to deal with patchsets if you post the subsequent versions in fresh email threads. Otherwise it can get a bit

Re: rb tree hrtimer lockup bug (found by perf_fuzzer)

2014-03-18 Thread Vince Weaver
On Tue, 18 Mar 2014, Thomas Gleixner wrote: > On Tue, 18 Mar 2014, Vince Weaver wrote: > > > > > The perf_fuzzer can quickly cause a machine to lockup with an hrtimer > > related rb tree related oops. I've had a hard time debugging this in any > > useful manner, but I can trigger it on both

Re: [patch 08/12 V2] can: c_can: Makethe code readable

2014-03-18 Thread Joe Perches
On Tue, 2014-03-18 at 19:27 +0100, Thomas Gleixner wrote: > V2: Remove the pointless multiwhile. fyi, I didn't find another multiwhile in the kernel tree. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More

[PATCH] perf evsel: Update function names in debug messages

2014-03-18 Thread Ramkumar Ramachandra
perf_event_open() was renamed to sys_perf_event_open(); update the debug messages to reflect this. Cc: David Ahern Cc: Jiri Olsa Cc: Arnaldo Carvalho de Melo Signed-off-by: Ramkumar Ramachandra --- tools/perf/util/evsel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [PATCHv4 3/5] mailbox: pl320: Introduce common API driver

2014-03-18 Thread Rob Herring
On Tue, Mar 18, 2014 at 1:45 PM, Jassi Brar wrote: > Convert the PL320 controller driver to work with the common > mailbox API. Also convert the only user of PL320, highbank-cpufreq.c > to work with thee API. Drop the obsoleted driver pl320-ipc.c > > Signed-off-by: Jassi Brar > --- >

[PATCH] perf tools: Update some code references in design.txt

2014-03-18 Thread Ramkumar Ramachandra
Update the names of some functions and enums in design.txt. The document still has some stale information, but the motivation behind this patch is to allow a developer to quickly grep and learn about the associated structures. Cc: David Ahern Cc: Jiri Olsa Cc: Arnaldo Carvalho de Melo

Re: [PATCH] tracing: Fix array size mismatch in format string

2014-03-18 Thread Vaibhav Nagarnaik
On Wed, Mar 12, 2014 at 5:53 PM, Steven Rostedt wrote: > Your timing here isn't that great either, because I leave tomorrow for > another conference, and I'm currently trying to get everything ready > for that trip. Could you ping me again on Tuesday? Hey Steven It's your friendly reminder to

Re: [PATCH v3 0/2] Add stop callback to the cpufreq_driver interface.

2014-03-18 Thread Srivatsa S. Bhat
On 03/18/2014 10:52 PM, dirk.brande...@gmail.com wrote: > From: Dirk Brandewie > I don't mean to nitpick, but generally its easier to deal with patchsets if you post the subsequent versions in fresh email threads. Otherwise it can get a bit muddled along with too many other email discussions in

Re: [PATCH 2/2] intel_pstate: Set core to min P state during core offline

2014-03-18 Thread Srivatsa S. Bhat
On 03/18/2014 10:52 PM, dirk.brande...@gmail.com wrote: > From: Dirk Brandewie > > Change to use ->exit_prepare() callback to do clean up during CPU ->stop() > hotplug. The requested P state for an offline core will be used by the > hardware coordination function to select the package P state.

kswapd using __this_cpu_add() in preemptible code

2014-03-18 Thread Sergey Senozhatsky
Hello gentlemen, Commit 589a606f9539663f162e4a110d117527833b58a4 ("percpu: add preemption checks to __this_cpu ops") added preempt check to used in __count_vm_events() __this_cpu ops, causing the following kswapd warning: BUG: using __this_cpu_add() in preemptible [] code: kswapd0/56

Re: [PATCH v2 4/4] random: Add arch_has_random[_seed]()

2014-03-18 Thread H. Peter Anvin
On 03/17/2014 08:44 PM, Benjamin Herrenschmidt wrote: > On Mon, 2014-03-17 at 16:36 -0700, H. Peter Anvin wrote: >> Add predicate functions for having arch_get_random[_seed]*(). The >> only current use is to avoid the loop in arch_random_refill() when >> arch_get_random_seed_long() is

Re: [PATCH v2 2/2] intel_pstate: Set core to min P state during core offline

2014-03-18 Thread Srivatsa S. Bhat
On 03/18/2014 08:31 PM, Dirk Brandewie wrote: > On 03/17/2014 10:44 PM, Viresh Kumar wrote: >> On Sat, Mar 15, 2014 at 2:33 AM, wrote: >>> + >>> static int intel_pstate_cpu_init(struct cpufreq_policy *policy) >>> { >>> struct cpudata *cpu; >>> @@ -818,7 +824,7 @@ static struct

Re: [Xen-devel] [PATCHv1] x86: don't schedule when handling #NM exception

2014-03-18 Thread H. Peter Anvin
On 03/18/2014 11:17 AM, Sarah Newman wrote: > > Should or has there been a review of the current xen PVABI to look for any > other such deviations? > It would be a very good thing to do. First of all, the PVABI needs to be **documented** because without that there is no hope. I would like to

[PATCHv4 5/5] mailbox: Fix deleteing poll timer

2014-03-18 Thread Jassi Brar
From: LeyFoon Tan Try to delete the timer only if it was init/used. Signed-off-by: LeyFoon Tan Signed-off-by: Jassi Brar --- drivers/mailbox/mailbox.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mailbox/mailbox.c b/drivers/mailbox/mailbox.c index

[PATCHv4 1/5] mailbox: rename pl320-ipc specific mailbox.h

2014-03-18 Thread Jassi Brar
From: Suman Anna The patch 30058677 "ARM / highbank: add support for pl320 IPC" added a pl320 IPC specific header file as a generic mailbox.h. This file has been renamed appropriately to allow the introduction of the generic mailbox API framework. Acked-by: Mark Langsdorf Cc: Rafael J. Wysocki

Re: fs: pipe: memory corruption in inode_cache

2014-03-18 Thread Sasha Levin
Ping? this is still showing up in -next. On 03/02/2014 09:13 PM, Sasha Levin wrote: Hi all, While fuzzing with trinity inside a KVM tools guest running latest -next kernel I've stumbled on the following spew: [ 315.799264]

Re: [patch 03/12] can: c_can: Make it SMP safe

2014-03-18 Thread Marc Kleine-Budde
On 03/18/2014 06:19 PM, Thomas Gleixner wrote: > The hardware has two message control interfaces, but the code only > uses the first one. So on SMP the following can be observed: > > CPU0 CPU1 > rx_poll() > write IF1 xmit() > write IF1 > write IF1 >

[PATCHv4 2/5] mailbox: Introduce framework for mailbox

2014-03-18 Thread Jassi Brar
Introduce common framework for client/protocol drivers and controller drivers of Inter-Processor-Communication (IPC). Client driver developers should have a look at include/linux/mailbox_client.h to understand the part of the API exposed to client drivers. Similarly controller driver developers

[PATCHv4 3/5] mailbox: pl320: Introduce common API driver

2014-03-18 Thread Jassi Brar
Convert the PL320 controller driver to work with the common mailbox API. Also convert the only user of PL320, highbank-cpufreq.c to work with thee API. Drop the obsoleted driver pl320-ipc.c Signed-off-by: Jassi Brar --- drivers/cpufreq/highbank-cpufreq.c | 24 - drivers/mailbox/Makefile

[PATCHv4 4/5] mailbox: Fix TX completion init

2014-03-18 Thread Jassi Brar
From: LeyFoon Tan For fast TX the complete could be called before being initialized as follows mbox_send_message --> poll_txdone --> tx_tick --> complete(>tx_complete) Init the completion early enough to fix the race. Signed-off-by: LeyFoon Tan Signed-off-by: Jassi Brar ---

Re: [PATCH v2] documentation: docbook: document process of writing an musb glue layer

2014-03-18 Thread Apelete Seketeli
Hello Rob, On Mon, Feb-17-2014 at 01:45:52 AM +0100, Apelete Seketeli wrote: > Document the process of writing an musb glue layer by taking the > Ingenic JZ4740 glue layer as an example, as it seems more simple than > most glue layers due to the basic feature set of the JZ4740 USB device >

Re: [PATCH v6 20/22] ext4: Add DAX functionality

2014-03-18 Thread Ross Zwisler
On Tue, 25 Feb 2014, Matthew Wilcox wrote: > From: Ross Zwisler > > This is a port of the DAX functionality found in the current version of > ext2. > > Signed-off-by: Ross Zwisler > Reviewed-by: Andreas Dilger > [heavily tweaked] > Signed-off-by: Matthew Wilcox ... > diff --git

[PATCHv4 0/5] Common Mailbox Framework

2014-03-18 Thread Jassi Brar
Hi, Here is the next revision of Mailbox code. Changes since v3: o Change name of symbols from ipc to mbox o Return real types instead of void * o Align structures o Change some symbol names rxcb -> rx_callback txcb -> tx_done o Added kernel-doc for exported API o Dropped

Re: [patch 02/12] can: c_can: Fix hardware raminit function

2014-03-18 Thread Marc Kleine-Budde
On 03/18/2014 06:19 PM, Thomas Gleixner wrote: > The function is broken in several ways: > > - The function does not wait for the init to complete. > That can take quite some microseconds. > > - No protection against being called for two chips at the same > time. SMP is such

Re: [PATCH] zram: include linux/err.h

2014-03-18 Thread Sergey Senozhatsky
Hello Arnd, On (03/15/14 21:26), Arnd Bergmann wrote: > On Saturday 15 March 2014, Sergey Senozhatsky wrote: > > On (03/15/14 10:40), Arnd Bergmann wrote: > > > The zram driver uses the ERR_PTR macro defined in > > > and relies on this header to be included implicitly through > > > other

Re: [PATCH RFC] regulator: anatop: Remove checking control_reg in [set|get]_voltage_sel

2014-03-18 Thread Mark Brown
On Sat, Feb 22, 2014 at 12:53:18PM +0800, Axel Lin wrote: > Remove checking control_reg in [set|get]_voltage_sel and then convert to use > regulator_[set|get]_voltage_sel_regmap for [set|get]_voltage_sel callbacks. Applied, thanks - if there's a problem I guess doing this will shake it out!

Re: [PATCH v2 0/3] regulator: s2mps11: Add support for S2MPS14 regulators

2014-03-18 Thread Mark Brown
On Tue, Mar 18, 2014 at 06:34:12PM +0100, Krzysztof Kozlowski wrote: > Lee Jones in his pull request [1] put also my changes for S2MPS14 > support in MFD sec-core driver. They are needed by this patchset for adding > suppt for regulators on S2MPS14. > Do you have time to look at these patches

Re: [PATCH v2 11/15] arm64: add EFI stub

2014-03-18 Thread Catalin Marinas
On Tue, Mar 18, 2014 at 02:40:29PM +, Mark Salter wrote: > On Tue, 2014-03-18 at 12:09 +, Catalin Marinas wrote: > > On Thu, Mar 13, 2014 at 10:47:04PM +, Leif Lindholm wrote: > > > --- /dev/null > > > +++ b/arch/arm64/kernel/efi-entry.S > > > @@ -0,0 +1,93 @@ > > > +/* > > > + * EFI

[patch 08/12 V2] can: c_can: Makethe code readable

2014-03-18 Thread Thomas Gleixner
If every other line contains line breaks, that's a clear sign for indentation level madness. Split out the inner loop and move the code to a separate function. gcc creates slightly worse code for that, but we'll fix that in the next step. Signed-off-by: Thomas Gleixner --- V2: Remove the

Re: [RFC 3/6] mm: support madvise(MADV_FREE)

2014-03-18 Thread Johannes Weiner
On Fri, Mar 14, 2014 at 03:37:47PM +0900, Minchan Kim wrote: > Linux doesn't have an ability to free pages lazy while other OS > already have been supported that named by madvise(MADV_FREE). > > The gain is clear that kernel can evict freed pages rather than > swapping out or OOM if memory

Re: [patch 08/12] can: c_can: Makethe code readable

2014-03-18 Thread Thomas Gleixner
On Tue, 18 Mar 2014, Joe Perches wrote: > On Tue, 2014-03-18 at 17:19 +, Thomas Gleixner wrote: > > [patch] > > Hi > > The multi-while loop > > while ((obj = ffs(pend)) && quota > 0) { > ... > } while ((obj = ffs(pend)) && quota > 0); > > looks, umm, unusual.

Re: rb tree hrtimer lockup bug (found by perf_fuzzer)

2014-03-18 Thread Thomas Gleixner
On Tue, 18 Mar 2014, Vince Weaver wrote: > > The perf_fuzzer can quickly cause a machine to lockup with an hrtimer > related rb tree related oops. I've had a hard time debugging this in any > useful manner, but I can trigger it on both core2 and haswell test systems > on 3.14-rc7. > > This

Re: [patch 01/12] can: c_can: Wait for CONTROL_INIT to be cleared

2014-03-18 Thread Thomas Gleixner
On Tue, 18 Mar 2014, Marc Kleine-Budde wrote: > On 03/18/2014 06:19 PM, Thomas Gleixner wrote: > > According to the documentation the CPU must wait for CONTROL_INIT to > > be cleared before writing to the baudrate registers. > > Thanks for the catch. > > + return c_can_wait_for_ctrl_init(dev,

Re: [Xen-devel] [PATCHv1] x86: don't schedule when handling #NM exception

2014-03-18 Thread Sarah Newman
On 03/17/2014 10:14 AM, George Dunlap wrote: > On 03/17/2014 05:05 PM, Jan Beulich wrote: > On 17.03.14 at 17:55, "H. Peter Anvin" wrote: >>> So if this interface wasn't an accident it was active negligence and >>> incompetence. >> I don't think so - while it (as we now see) disallows certain

Re: [PATCH] perf-script : improves option passing mechansim

2014-03-18 Thread Arnaldo Carvalho de Melo
Em Tue, Mar 18, 2014 at 05:09:33PM +0100, Adrien BAK escreveu: > This pull request fixes the following issues : > * when passing custom arguments to a script, if those arguments are > not declared within perf, they prevent the execution of perf. > e.g. > > perf script -i path/to/perf.data -s

Re: [PATCH] tools, perf: Add asprintf replacement

2014-03-18 Thread Arnaldo Carvalho de Melo
Em Tue, Mar 18, 2014 at 08:05:33AM -0700, Andi Kleen escreveu: > > Humm, this unconditionally replaces it with an alternative that limits > > the buffer to a fixed size :-\ > > Better than corrupting memory. Yes, it is better than corrupting memory, use the less ugly, good point. > I guess you

Re: [patch 01/12] can: c_can: Wait for CONTROL_INIT to be cleared

2014-03-18 Thread Marc Kleine-Budde
On 03/18/2014 06:19 PM, Thomas Gleixner wrote: > According to the documentation the CPU must wait for CONTROL_INIT to > be cleared before writing to the baudrate registers. Thanks for the catch. > Signed-off-by: Benedikt Spranger > Signed-off-by: Thomas Gleixner > > --- >

Re: [PATCH 0/3] x86: fix hang when AP bringup is too slow

2014-03-18 Thread Prarit Bhargava
On 03/13/2014 10:25 AM, Igor Mammedov wrote: > Hang is observed on virtual machines during CPU hotplug, > especially in big guests with many CPUs. (It happens more > often if host is over-committed). > Hey Igor, I like this better than the previous version. Thanks for taking into account the

Re: [PATCH 0/3] Volatile Ranges (v11)

2014-03-18 Thread John Stultz
On Tue, Mar 18, 2014 at 8:11 AM, Minchan Kim wrote: > 1) SIGBUS > > It's one of the arguable issue because some user want to get a > SIGBUS(ex, Firefox) while other want a just zero page(ex, Google > address sanitizer) without signal so it should be option. > > int vrange(start, len,

[PATCH v2 2/7] sched: rework of sched_domain topology definition

2014-03-18 Thread Vincent Guittot
We replace the old way to configure the scheduler topology with a new method which enables a platform to declare additionnal level (if needed). We still have a default topology table definition that can be used by platform that don't want more level than the SMT, MC, CPU and NUMA ones. This table

[PATCH v2 4/7] sched: powerpc: create a dedicated topology table

2014-03-18 Thread Vincent Guittot
Create a dedicated topology table for handling asymetric feature of powerpc. Signed-off-by: Vincent Guittot --- arch/powerpc/kernel/smp.c | 31 +++ include/linux/sched.h | 2 -- kernel/sched/core.c | 6 -- 3 files changed, 23 insertions(+), 16

[PATCH] perf-script : improves option passing mechansim

2014-03-18 Thread Adrien BAK
This pull request fixes the following issues : * when passing custom arguments to a script, if those arguments are not declared within perf, they prevent the execution of perf. e.g. perf script -i path/to/perf.data -s my_script -arg1 arg_value perf will issue an error message and no processing

[PATCH v2 0/7] rework sched_domain topology description

2014-03-18 Thread Vincent Guittot
This patchset was previously part of the larger tasks packing patchset [1]. I have splitted the latter in 3 different patchsets (at least) to make the thing easier. -configuration of sched_domain topology (this patchset) -update and consolidation of cpu_power -tasks packing algorithm Based on

[PATCH v2 7/7] sched: powerpc: Add SD_SHARE_POWERDOMAIN for SMT level

2014-03-18 Thread Vincent Guittot
Set the power domain dependency at SMT level of Power8 but keep the flag clear at CPU level. The goal is to consolidate tasks on the threads of a core up to a level as decribed in the link below: https://lkml.org/lkml/2014/3/12/16 Signed-off-by: Vincent Guittot --- arch/powerpc/kernel/smp.c | 2

[PATCH v2 5/7] sched: add a new SD_SHARE_POWERDOMAIN for sched_domain

2014-03-18 Thread Vincent Guittot
A new flag SD_SHARE_POWERDOMAIN is created to reflect whether groups of CPUs in a sched_domain level can or not reach different power state. As an example, the flag should be cleared at CPU level if groups of cores can be power gated independently. This information can be used to add load

[PATCH v2 3/7] sched: s390: create a dedicated topology table

2014-03-18 Thread Vincent Guittot
BOOK level is only relevant for s390 so we create a dedicated topology table with BOOK level and remove it from default table. Signed-off-by: Vincent Guittot --- arch/s390/include/asm/topology.h | 11 +-- arch/s390/kernel/topology.c | 20 kernel/sched/core.c

[PATCH v2 1/7] sched: remove unused SCHED_INIT_NODE

2014-03-18 Thread Vincent Guittot
not used since new numa scheduler init sequence Signed-off-by: Vincent Guittot --- arch/metag/include/asm/topology.h | 27 --- 1 file changed, 27 deletions(-) diff --git a/arch/metag/include/asm/topology.h b/arch/metag/include/asm/topology.h index 8e9c0b3..e95f874

[PATCH v2 6/7] sched: ARM: create a dedicated scheduler topology table

2014-03-18 Thread Vincent Guittot
Create a dedicated topology table for ARM which will create new level to differentiate CPUs that can or not powergate independantly from others. The patch gives an example of how to add domain that will take advantage of SD_SHARE_POWERDOMAIN. Signed-off-by: Vincent Guittot ---

Re: [PATCH] audit: get comm using lock to avoid race in string printing

2014-03-18 Thread Stephen Smalley
On 03/15/2014 07:29 PM, Richard Guy Briggs wrote: > --- > kernel/audit.c |5 ++--- > kernel/auditsc.c |9 + > 2 files changed, 7 insertions(+), 7 deletions(-) Doesn't this also need to be fixed (twice) in security/lsm_audit.c? > diff --git a/kernel/audit.c b/kernel/audit.c >

Re: [RFC 0/6] mm: support madvise(MADV_FREE)

2014-03-18 Thread Andy Lutomirski
On 03/13/2014 11:37 PM, Minchan Kim wrote: > This patch is an attempt to support MADV_FREE for Linux. > > Rationale is following as. > > Allocators call munmap(2) when user call free(3) if ptr is > in mmaped area. But munmap isn't cheap because it have to clean up > all pte entries, unlinking a

Re: [PATCH] audit: get comm using lock to avoid race in string printing

2014-03-18 Thread Richard Guy Briggs
On 14/03/18, Stephen Smalley wrote: > On 03/15/2014 07:29 PM, Richard Guy Briggs wrote: > > --- > > kernel/audit.c |5 ++--- > > kernel/auditsc.c |9 + > > 2 files changed, 7 insertions(+), 7 deletions(-) > > Doesn't this also need to be fixed (twice) in security/lsm_audit.c?

Re: [PATCH 0/3] Volatile Ranges (v11)

2014-03-18 Thread John Stultz
On Tue, Mar 18, 2014 at 5:24 AM, Michal Hocko wrote: > On Fri 14-03-14 11:33:30, John Stultz wrote: > [...] >> Volatile ranges provides a method for userland to inform the kernel that >> a range of memory is safe to discard (ie: can be regenerated) but >> userspace may want to try access it in

Re: [v3.13][v3.14][Regression] kthread: make kthread_create() killable

2014-03-18 Thread Oleg Nesterov
On 03/17, One Thousand Gnomes wrote: > > > and b) permits userspace to produce surprising results in the kernel, > > which I suspect is what we're seeing here. > > There is enough information for kernel side code to decide whether a > signal came from kernel or userspace. Not really. SIGKILL can

Re: [PATCH v2 1/5] drivers: input: keyboard: st-keyscan: add keyscan driver

2014-03-18 Thread Mark Rutland
On Tue, Mar 18, 2014 at 03:00:02PM +, Gabriel FERNANDEZ wrote: > This patch adds ST Keyscan driver to use the keypad hw a subset > of ST boards provide. Specific board setup will be put in the > given dt. > > Signed-off-by: Gabriel Fernandez > Signed-off-by: Giuseppe Condorelli > --- >

[PATCH 1/1] MINIX: specific inode data access standardization

2014-03-18 Thread Fabian Frederick
minix_i uppercase conversion (like majority of other filesystems). Signed-off-by: Fabian Frederick --- fs/minix/bitmap.c | 2 +- fs/minix/inode.c| 10 +- fs/minix/itree_v1.c | 2 +- fs/minix/itree_v2.c | 2 +- fs/minix/minix.h| 2 +- 5 files changed, 9 insertions(+), 9

Re: [PATCH v2] net: netfilter: LLVMLinux: vlais-netfilter

2014-03-18 Thread Behan Webster
On 03/18/14 08:24, David Laight wrote: From: Behan Webster On 03/18/14 02:41, David Laight wrote: From: beh...@converseincode.com From: Mark Charlebois Replaced non-standard C use of Variable Length Arrays In Structs (VLAIS) in xt_repldata.h with a C99 compliant flexible array member and

Re: [v3.13][v3.14][Regression] kthread: make kthread_create() killable

2014-03-18 Thread Oleg Nesterov
On 03/17, Andrew Morton wrote: > > On Mon, 17 Mar 2014 21:19:19 +0100 Oleg Nesterov wrote: > > > > Root cause time: it's wrong for the oom-killer to use SIGKILL. > > > > Not sure... what else? > > If we really really have to use userspace IPC in the kernel then I > suppose we could add a new

Re: [PATCH 3/5] regulator: arizona-ldo1: Move setup processing from arizona-core

2014-03-18 Thread Mark Brown
On Tue, Mar 18, 2014 at 05:22:31PM +, Charles Keepax wrote: > - /* > - * LDO1 can only be used to supply DCVDD so if it has no > - * consumers then DCVDD is supplied externally. > - */ > - if (arizona->pdata.ldo1 && > - arizona->pdata.ldo1->num_consumer_supplies

Re: [PATCH v2 0/3] regulator: s2mps11: Add support for S2MPS14 regulators

2014-03-18 Thread Krzysztof Kozlowski
Hi Mark, Lee Jones in his pull request [1] put also my changes for S2MPS14 support in MFD sec-core driver. They are needed by this patchset for adding suppt for regulators on S2MPS14. Do you have time to look at these patches and apply them if they're OK (or ACK them)? Best regards, Krzysztof

Re: [PATCH v2 13/15] arm64: add EFI runtime services

2014-03-18 Thread Catalin Marinas
On Tue, Mar 18, 2014 at 02:16:49PM +, Mark Salter wrote: > On Tue, 2014-03-18 at 12:34 +, Catalin Marinas wrote: > > On Thu, Mar 13, 2014 at 10:47:06PM +, Leif Lindholm wrote: > > > --- /dev/null > > > +++ b/arch/arm64/kernel/efi.c > > [...] > > > +/* > > > + * Called from setup_arch

Re: [patch 08/12] can: c_can: Makethe code readable

2014-03-18 Thread Joe Perches
On Tue, 2014-03-18 at 17:19 +, Thomas Gleixner wrote: [patch] Hi The multi-while loop while ((obj = ffs(pend)) && quota > 0) { ... } while ((obj = ffs(pend)) && quota > 0); looks, umm, unusual. -- To unsubscribe from this list: send the line "unsubscribe

[PATCH 1/2] mfd: arizona: Add MICVDD to mapped regulators

2014-03-18 Thread Charles Keepax
Currently, MICVDD only binds because it is both the regulator name and the consumer name and we will always match against the regulator name regardless of the consumer device. If the regulator was renamed using the init_data ASoC will no longer be able to locate the supply, as it will be looking

[PATCH 2/2] mfd: wm8997: Add registers for high power mode

2014-03-18 Thread Charles Keepax
Some output configurations can require a 50Mhz SYSCLK which requires DCVDD to be 1.8V. This patch adds the registers necessary for supporting this operational mode. Signed-off-by: Charles Keepax --- drivers/mfd/wm8997-tables.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff

Re: [PATCH 1/3] spi: remove obsolete spi-ti-ssp driver

2014-03-18 Thread Mark Brown
On Tue, Mar 18, 2014 at 03:55:59PM +0100, Arnd Bergmann wrote: > The tnetv107x platform is getting removed, so this driver > will not be needed any more. Applied, thanks. signature.asc Description: Digital signature

[PATCH 3/5] regulator: arizona-ldo1: Move setup processing from arizona-core

2014-03-18 Thread Charles Keepax
It is more idiomatic to process things relating to the regulator in its driver. This patch moves both processing of device tree relating to the regulator and checking if the regulator is external from arizona-core into the regulator driver. Signed-off-by: Charles Keepax ---

[PATCH 5/5] regulator: arizona-micsupp: Add processing of init_data from device tree

2014-03-18 Thread Charles Keepax
Signed-off-by: Charles Keepax --- Documentation/devicetree/bindings/mfd/arizona.txt |6 ++- drivers/regulator/arizona-micsupp.c | 50 + 2 files changed, 54 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/mfd/arizona.txt

[PATCH 4/5] regulator: arizona-ldo1: Add processing of init_data from device tree

2014-03-18 Thread Charles Keepax
Signed-off-by: Charles Keepax --- Documentation/devicetree/bindings/mfd/arizona.txt |7 +++ drivers/regulator/arizona-ldo1.c | 46 +++- 2 files changed, 50 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/mfd/arizona.txt

[PATCH 1/5] arizona: Correct small errors in the DT binding documentation

2014-03-18 Thread Charles Keepax
This patch does not alter the binding at all it only brings the documentation up to date with the existing binding. Signed-off-by: Charles Keepax --- Documentation/devicetree/bindings/mfd/arizona.txt | 23 +++- 1 files changed, 13 insertions(+), 10 deletions(-) diff --git

[PATCH 0/5] Arizona regulator updates v2

2014-03-18 Thread Charles Keepax
Hi, This series of patches are small fixes/improvements to the Arizona regulators. The main thing added is proper device tree bindings for getting the regulator init_data. Changes Since v1: - Added of_node_put for nodes we take references to - I have removed the last two MFD patches from the

[PATCH 2/5] mfd: arizona: Fix and factor out read of device tree GPIOs

2014-03-18 Thread Charles Keepax
On non-DT systems with device tree built in the current device tree GPIO reads will overwrite the pdata with zero when they fail. This patch factors out the reading of GPIOs for the Arizona devices into a helper function, and ensures that the pdata version will be preserved if the device tree read

Re: [Lsf] [LSF/MM TOPIC] Testing Large-Memory Hardware

2014-03-18 Thread Christoph Lameter
On Tue, 18 Mar 2014, Peter Zijlstra wrote: > > My gut reaction was that we'd probably be better served by putting > > resources in to systems with higher core counts rather than lots of RAM. > > I have encountered the occasional boot bug on my 1TB system, but it's > > far from a frequent

[patch 05/12] can: c_can: Fix the lost message handling

2014-03-18 Thread Thomas Gleixner
The lost message handling is broken in several ways. 1) Clearing the message lost flag is done by writing 0 to the message control register of the object. #define IF_MCONT_CLR_MSGLST(0 << 14) That clears the object buffer configuration in the worst case, which results in a loss

[patch 06/12] can: c_can: Remove braindamaged EOB exit

2014-03-18 Thread Thomas Gleixner
The rx_poll code has the following gem: if (msg_ctrl_save & IF_MCONT_EOB) return num_rx_pkts; The EOB bit is the indicator for the hardware that this is the last configured FIFO object. But this object can contain valid data, if we manage to free up objects before the

[PATCH v2] fs/freevxfs/vxfs_lookup.c: Update function comment

2014-03-18 Thread Fabian Frederick
nameidata was replaced by flags in 00cd8dd3bf95f2 ("stop passing nameidata to ->lookup()") Signed-off-by: Fabian Frederick --- fs/freevxfs/vxfs_lookup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/freevxfs/vxfs_lookup.c b/fs/freevxfs/vxfs_lookup.c index

[PATCH 2/2] intel_pstate: Set core to min P state during core offline

2014-03-18 Thread dirk . brandewie
From: Dirk Brandewie Change to use ->exit_prepare() callback to do clean up during CPU hotplug. The requested P state for an offline core will be used by the hardware coordination function to select the package P state. If the core is under load when it is offlined it will fix the package P

[PATCH v3 0/2] Add stop callback to the cpufreq_driver interface.

2014-03-18 Thread dirk . brandewie
From: Dirk Brandewie Changes: v2->v3 Changed the calling of the ->stop() callback to be conditional on the core being the last core controlled by a given policy. v1->2 Change name of callback function added to cpufreq_driver interface. Some drivers (intel_pstate) need to modify state on a

[patch 08/12] can: c_can: Makethe code readable

2014-03-18 Thread Thomas Gleixner
If every other line contains line breaks, that's a clear sign for indentation level madness. Split out the inner loop and move the code to a separate function. gcc creates slightly worse code for that, but we'll fix that in the next step. Signed-off-by: Thomas Gleixner ---

[patch 10/12] can: c_can: Store dlc private

2014-03-18 Thread Thomas Gleixner
We can avoid the HW access in TX cleanup path for retrieving the DLC of the sent package if we store the DLC in a private array. Ideally this should be handled in the can_echo_skb functions, but I leave that exercise to the CAN folks. Signed-off-by: Thomas Gleixner ---

[patch 11/12] can: c_can: Simplify TX interrupt cleanup

2014-03-18 Thread Thomas Gleixner
The function loads the message object from the hardware to get the payload length. The previous patch stores that information in an array, so we can avoid the hardware access. Remove the hardware access and move the led toggle outside of the spinlocked region. Toggle the led only once when at

[PATCH 1/2] sysctl: fix incorrect write position handling

2014-03-18 Thread Kees Cook
When writing to a sysctl string, each write, regardless of VFS position, began writing the string from the start. This meant the contents of the last write to the sysctl controlled the string contents instead of the first: open("/proc/sys/kernel/modprobe", O_WRONLY) = 1 write(1,

[patch 03/12] can: c_can: Make it SMP safe

2014-03-18 Thread Thomas Gleixner
The hardware has two message control interfaces, but the code only uses the first one. So on SMP the following can be observed: CPU0CPU1 rx_poll() write IF1 xmit() write IF1 write IF1 That results in corrupted message object

[PATCH 0/2] sysctl: fix incorrect write position handling

2014-03-18 Thread Kees Cook
This creates a series of tests designed to examine the behavior of sysctl write behavior, and corrects some unexpected side-effects of the current file offset handling when writing sysctls. Namely, short appends don't work and multiple writes (with incremented file position) rewrite the sysctl

[PATCH 2/2] test: make sure sysctl writing works as expected

2014-03-18 Thread Kees Cook
This adds several behavioral tests to sysctl string and number writing to detect unexpected cases that didn't work correctly before the recent logic fixes: [ BEFORE ] root@localhost:~# make test_num == Testing sysctl behavior against /proc/sys/kernel/domainname == Writing test file ... ok

[patch 07/12] can: c_can: Provide protection in the xmit path

2014-03-18 Thread Thomas Gleixner
The network core does not serialize the access to the hardware. The xmit related code lets the following happen: CPU0 CPU1 interrupt() do_poll() c_can_do_tx() Fiddle with HW and xmit() internal data Fiddle with HW and

[PATCH 1/2] cpufreq: Add stop callback to cpufreq_driver interface

2014-03-18 Thread dirk . brandewie
From: Dirk Brandewie This callback allows the driver to do clean up before the CPU is completely down and its state cannot be modified. This is used by the intel_pstate driver to reduce the requested P state prior to the core going away. This is required because the requested P state of the

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