[GIT PULL] FRV fixes

2012-11-02 Thread David Howells
) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-frv.git tags/frv-fixes-20121102 for you to fetch changes up to 1d72d9f83df057e71c7951def41138a0230bf737: frv: fix the broken preempt (2012-11-02 12:08:25 -0400

Re: [RFC] Second attempt at kernel secure boot support

2012-11-02 Thread Vivek Goyal
On Thu, Nov 01, 2012 at 01:50:08PM -0400, Eric Paris wrote: [..] > I've talked with and > worked with a public cloud operator who wants to prevent even a > malicious root user from being able to run code in ring 0 inside their > VM. The hope in that case was that in doing so they can indirectly

Re: setting up CDB filters in udev (was Re: [PATCH v2 0/3] block: add queue-private command filter, editable via sysfs)

2012-11-02 Thread Tejun Heo
Hey, Alan. On Fri, Nov 02, 2012 at 05:21:45PM +, Alan Cox wrote: > That also means that a normal app running as superuser for some reason > would set its user filter and any accidentally inherited descriptors will > be less dangerous as the are today. It also means a CAP_SYS_RAWIO capable >

Re: [PATCH 3/3, v2] x86/xor: make virtualization friendly

2012-11-02 Thread H. Peter Anvin
Aren't we actually talking just about PV here? If so the test is wrong. Jan Beulich wrote: >In virtualized environments, the CR0.TS management needed here can be a >lot slower than anticipated by the original authors of this code, which >particularly means that in such cases forcing the use of

[PATCH V3 2/4] mfd: tps65910: use regmap irq framework for interrupt support

2012-11-02 Thread Laxman Dewangan
Implement irq support of tps65910 with regmap irq framework in place of implementing locally. This reduces the code size significantly and easy to maintain. Signed-off-by: Laxman Dewangan Reviewed-by: Mark Brown --- No change from V1, just rearrange this patch. It was already reviwed by Mark

[PATCH V3 3/4] mfd: tps65910: move interrupt implementation code to mfd file

2012-11-02 Thread Laxman Dewangan
In place of implementing the irq support in separate file, moving implementation to main mfd file. The irq files only contains the table and init steps only and does not need extra file to have this only for this purpose. Signed-off-by: Laxman Dewangan Reviewed-by: Mark Brown --- No change from

[PATCH V3 0/4] mfd: tps65910: use regmap irq framework for interrupt

2012-11-02 Thread Laxman Dewangan
This patch series has following change: - Use regmap irq framework for interrupt registration. Corrected the register bit definition for interrupts. - Move the irq table to tps65910.c and get rid of tps65910-irq.c. - Raarrange the init sequence of different sub moduled of tps65910 like irq,

[PATCH V3 1/4] mfd: tps65910: Initialize mfd devices after all initialization done

2012-11-02 Thread Laxman Dewangan
Add sub devices of tps65910 after all initialization like interrupt, clock etc. is done. This will make sure that require data gets initialized properly before sub devices probe's get called. Signed-off-by: Laxman Dewangan Reviewed-by: Mark Brown --- Changes from V: - Rearrange patches so that

[PATCH V3 4/4] mfd: tps65910: pass irq_domain when adding mfd sub devices

2012-11-02 Thread Laxman Dewangan
When adding the sub device "tps65910-rtc", is it passed the IO resource IRQ for the interrupt number. This interrupt needs to map in the device irq domain. Pass the irq domain of device in mfd_add_devices() so that proper irq mapping can be done when adding the sub device RTC. Signed-off-by:

[PATCH 0/2] irq_work: A couple fixes v2

2012-11-02 Thread Frederic Weisbecker
Hey, After some discussion with Steve, this is a respin with changelogs and comments sanitized. The code itself hasn't changed. Thanks. Frederic Weisbecker (2): irq_work: Fix racy IRQ_WORK_BUSY flag setting irq_work: Fix racy check on work pending flag kernel/irq_work.c | 21

[PATCH 1/2] irq_work: Fix racy IRQ_WORK_BUSY flag setting

2012-11-02 Thread Frederic Weisbecker
The IRQ_WORK_BUSY flag is set right before we execute the work. Once this flag value is set, the work enters a claimable state again. So if we have specific data to compute in our work, we ensure it's either handled by another CPU or locally by enqueuing the work again. This state machine is

[PATCH 2/2] irq_work: Fix racy check on work pending flag

2012-11-02 Thread Frederic Weisbecker
Work claiming wants to be SMP-safe. And by the time we try to claim a work, if it is already executing concurrently on another CPU, we want to succeed the claiming and queue the work again because the other CPU may have missed the data we wanted to handle in our work if it's about to complete

Re: [PATCH v2 1/9] net: core: use this_cpu_ptr per-cpu helper

2012-11-02 Thread Christoph Lameter
On Sat, 3 Nov 2012, Shan Wei wrote: > +++ b/net/core/flow.c > @@ -327,11 +327,9 @@ static void flow_cache_flush_tasklet(unsigned long data) > static void flow_cache_flush_per_cpu(void *data) > { > struct flow_flush_info *info = data; > - int cpu; > struct tasklet_struct *tasklet;

[PATCH REPOST 1/3] mfd: Convert tps6586x to irq_domain

2012-11-02 Thread Laxman Dewangan
Allocate the irq base if it base is not porvided i.e. in case of device tree invocation of this driver. Convert the tps6586x driver to irq domain, using a legacy IRQ mapping if an irq_base is specified in platform data or dynamically allocated and otherwise using a linear mapping. Signed-off-by:

[PATCH v3] staging: ste_rmi4: Convert to Type-B support

2012-11-02 Thread Alexandra Chin
Hi Henrik and all, This patch converts to MT-B because Synaptics touch devices are capable of tracking identifiable fingers This patch was tested on pandaboard, except input_mt_sync_frame(), which is a quite new function. I changed to use sylpheed as my mail client. Please let me know if there

Re: [PATCH v2 5/9] kernel: padata : use this_cpu_read per-cpu helper

2012-11-02 Thread Christoph Lameter
On Sat, 3 Nov 2012, Shan Wei wrote: > - queue = per_cpu_ptr(pd->pqueue, smp_processor_id()); > - if (queue->cpu_index == next_queue->cpu_index) { > + if (this_cpu_read(pd->pqueue->cpu_index) == next_queue->cpu_index) { > padata = ERR_PTR(-ENODATA); Reviewed-by:

[PATCH REPOST 2/3] mfd: tps6586x: add irq io-resource for rtc sub driver

2012-11-02 Thread Laxman Dewangan
Add IRQ IORESOURCE for rtc sub driver of this device. The rtc driver can get the irq by calling platform_get_irq(). Signed-off-by: Laxman Dewangan Reviewed-by: Mark Brown --- Reposting in case of patch missed. Also added Reviewed by Mark as he already reviewed the patches.

[PATCH 3/3] mfd: tps6586x: implement gpio_to_irq

2012-11-02 Thread Laxman Dewangan
The TPS6586x adds the interrupt of this device using linear mapping on irq domain. Hence, implement gpio_to_irq to get the irq number corresponding to TPS6586x GPIOs which is created dynamically. Signed-off-by: Laxman Dewangan Reviewed-by: Mark Brown Acked-by: Linus Walleij --- Reposting in

Re: [PATCH 4/9] net: openvswitch: use this_cpu_ptr per-cpu helper

2012-11-02 Thread Christoph Lameter
On Sat, 3 Nov 2012, Shan Wei wrote: > +++ b/net/openvswitch/datapath.c > @@ -208,7 +208,7 @@ void ovs_dp_process_received_packet(struct vport *p, > struct sk_buff *skb) > int error; > int key_len; > > - stats = per_cpu_ptr(dp->stats_percpu, smp_processor_id()); > + stats =

Re: [PATCH v2 6/9] rcu: use __this_cpu_read helper instead of per_cpu_ptr(p, raw_smp_processor_id())

2012-11-02 Thread Christoph Lameter
On Sat, 3 Nov 2012, Shan Wei wrote: > > /* Funnel through hierarchy to reduce memory contention. */ > - rnp = per_cpu_ptr(rsp->rda, raw_smp_processor_id())->mynode; > + rnp = __this_cpu_read(rsp->rda->mynode); > for (; rnp != NULL; rnp = rnp->parent) { Reviewed-by: Christoph

Re: [PATCH v2 7/9] trace: use this_cpu_ptr per-cpu helper

2012-11-02 Thread Christoph Lameter
On Sat, 3 Nov 2012, Shan Wei wrote: > diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c > index 31e4f55..81ae35b 100644 > --- a/kernel/trace/trace.c > +++ b/kernel/trace/trace.c > @@ -1513,7 +1513,7 @@ static char *get_trace_buf(void) > if (!percpu_buffer) > return

[PATCH REPOST 0/3] mfd: tps6586x: Convert to irq domain

2012-11-02 Thread Laxman Dewangan
This patch series convert the irq implementation to use the irq domain. Accordingly, gpio driver and rtc registration is updated. Reposting the series and adding the reviwed by Mark and acked by Linus W for the respective patches. Laxman Dewangan (3): mfd: Convert tps6586x to irq_domain mfd:

Re: [PATCH v2 9/9] net: batman-adv: use per_cpu_add helper

2012-11-02 Thread Christoph Lameter
On Sat, 3 Nov 2012, Shan Wei wrote: > diff --git a/net/batman-adv/main.h b/net/batman-adv/main.h > index 897ba6a..3aef5b2 100644 > --- a/net/batman-adv/main.h > +++ b/net/batman-adv/main.h > @@ -263,9 +263,7 @@ static inline bool batadv_has_timed_out(unsigned long > timestamp, > static inline

Re: [RFC] Second attempt at kernel secure boot support

2012-11-02 Thread James Bottomley
On Fri, 2012-11-02 at 16:54 +, Matthew Garrett wrote: > On Fri, Nov 02, 2012 at 04:52:44PM +, James Bottomley wrote: > > > The first question is how many compromises do you need. Without > > co-operation from windows, you don't get to install something in the > > boot system, so if

Re: [PATCH 0/9 v2] use efficient this_cpu_* helper

2012-11-02 Thread Christoph Lameter
On Sat, 3 Nov 2012, Shan Wei wrote: > this_cpu_ptr is faster than per_cpu_ptr(p, smp_processor_id()) > and can reduce memory accesses. > The latter helper needs to find the offset for current cpu, > and needs more assembler instructions which objdump shows in following. > > per_cpu_ptr(p,

Re: setting up CDB filters in udev (was Re: [PATCH v2 0/3] block: add queue-private command filter, editable via sysfs)

2012-11-02 Thread Paolo Bonzini
Il 02/11/2012 17:51, Tejun Heo ha scritto: >>> > > What disturbs me is that it's a completely new interface to userland >>> > > and at the same a very limited one at that. So, yeah, it's >>> > > bothersome. I personally would prefer SCM_RIGHTS behavior change + >>> > > hard coded filters per

Re: [PATCH] xfs: silence GCC warning

2012-11-02 Thread Paul Bolle
On Fri, 2012-11-02 at 09:07 -0400, Christoph Hellwig wrote: > Looks good, Dave has actually sent it a tidbit earlier as part > of his series with fixes for 3.7-rc I see, thanks. Paul Bolle -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [PATCH] of/address: sparc: Declare of_address_to_resource() as an extern function for sparc again

2012-11-02 Thread Sam Ravnborg
Hi Andreas. On Fri, Nov 02, 2012 at 12:03:56PM +0100, Andreas Larsson wrote: > This bug-fix makes sure that of_address_to_resource is defined extern for > sparc > so that the sparc-specific implementation of of_address_to_resource() is once > again used when including include/linux/of_address.h

Re: [PATCH 8/9] trace: use this_cpu_ptr per-cpu helper

2012-11-02 Thread Christoph Lameter
On Fri, 2 Nov 2012, Shan Wei wrote: > Christoph Lameter said, at 2012/11/1 1:50: > >> > >> - buffer = per_cpu_ptr(percpu_buffer, smp_processor_id()); > >> + buffer = this_cpu_ptr(percpu_buffer); > >> > >>return buffer->buffer; > > > > > > Just do a > > > > return

Re: setting up CDB filters in udev (was Re: [PATCH v2 0/3] block: add queue-private command filter, editable via sysfs)

2012-11-02 Thread Tejun Heo
Hello, Paolo. On Fri, Nov 02, 2012 at 06:49:43PM +0100, Paolo Bonzini wrote: > > No rule is really absolute. To me, it seems the suggested in-kernel > > per-device command code filter is both too big for the given problem > > Is it? 150 lines of code? The per-class filters would share the

Re: [RFC] Second attempt at kernel secure boot support

2012-11-02 Thread Matthew Garrett
On Fri, Nov 02, 2012 at 05:48:31PM +, James Bottomley wrote: > On Fri, 2012-11-02 at 16:54 +, Matthew Garrett wrote: > > On Fri, Nov 02, 2012 at 04:52:44PM +, James Bottomley wrote: > > > > > The first question is how many compromises do you need. Without > > > co-operation from

Re: [RFC] Second attempt at kernel secure boot support

2012-11-02 Thread James Bottomley
On Fri, 2012-11-02 at 17:54 +, Matthew Garrett wrote: > On Fri, Nov 02, 2012 at 05:48:31PM +, James Bottomley wrote: > > On Fri, 2012-11-02 at 16:54 +, Matthew Garrett wrote: > > > On Fri, Nov 02, 2012 at 04:52:44PM +, James Bottomley wrote: > > > > > > > The first question is how

Re: [B.A.T.M.A.N.] [PATCH v2 9/9] net: batman-adv: use per_cpu_add helper

2012-11-02 Thread Sven Eckelmann
On Saturday 03 November 2012 00:02:06 Shan Wei wrote: > From: Shan Wei > > As Christoph Lameter said: > > In addition, following usage of per_cpu_ptr can be replaced by > > this_cpu_read. > > > > cpu=get_cpu() > > > > *per_cpu_ptr(p,cpu) > > > > > > put_cpu() > > Right. > >

Re: [RFC] Second attempt at kernel secure boot support

2012-11-02 Thread Matthew Garrett
On Fri, Nov 02, 2012 at 05:57:38PM +, James Bottomley wrote: > On Fri, 2012-11-02 at 17:54 +, Matthew Garrett wrote: > > ? That's the message generated by the Windows access control mechanism > > when you run a binary that requests elevated privileges. > > So that's a windows attack

[PATCH v2 1/1] percpu_rw_semaphore: reimplement to not block the readers unnecessarily

2012-11-02 Thread Oleg Nesterov
Currently the writer does msleep() plus synchronize_sched() 3 times to acquire/release the semaphore, and during this time the readers are blocked completely. Even if the "write" section was not actually started or if it was already finished. With this patch down_write/up_write does

[PATCH v2 0/1] percpu_rw_semaphore: reimplement to not block the readers unnecessarily

2012-11-02 Thread Oleg Nesterov
On 11/01, Linus Torvalds wrote: > > On Wed, Oct 31, 2012 at 12:41 PM, Oleg Nesterov wrote: > > > > With this patch down_read/up_read does synchronize_sched() twice and > > down_read/up_read are still possible during this time, just they use > > the slow path. > > The changelog is wrong (it's the

Re: [PATCH v2 6/9] rcu: use __this_cpu_read helper instead of per_cpu_ptr(p, raw_smp_processor_id())

2012-11-02 Thread Paul E. McKenney
On Sat, Nov 03, 2012 at 12:01:47AM +0800, Shan Wei wrote: > From: Shan Wei > > Signed-off-by: Shan Wei > --- > kernel/rcutree.c |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/kernel/rcutree.c b/kernel/rcutree.c > index 74df86b..441b945 100644 > ---

[PATCH 16/19] tracing: Make tracing_enabled be equal to tracing_on

2012-11-02 Thread Steven Rostedt
From: Steven Rostedt The tracing_enabled file has been deprecated as it never was able to serve its purpose well. The tracing_on file has taken over. Instead of having code to keep tracing_enabled, have the tracing_enabled file just set tracing_on, and remove the tracing_enabled variable. This

[PATCH 15/19] tracing: Remove unused function unregister_tracer()

2012-11-02 Thread Steven Rostedt
From: Steven Rostedt The function register_tracer() is only used by kernel core code, that never needs to remove the tracer. As trace_events have become the main way to add new tracing to the kernel, the need to unregister a tracer has diminished. Remove the unused function unregister_tracer().

[PATCH 01/19] tracing: Replace strict_strto* with kstrto*

2012-11-02 Thread Steven Rostedt
From: Daniel Walter * remove old string conversions with kstrto* Link: http://lkml.kernel.org/r/20120926200838.gc1...@0x90.at Signed-off-by: Daniel Walter Signed-off-by: Steven Rostedt --- kernel/trace/ftrace.c |2 +- kernel/trace/trace.c |2 +-

[PATCH 18/19] tracing: Use irq_work for wake ups and remove *_nowake_*() functions

2012-11-02 Thread Steven Rostedt
From: Steven Rostedt Have the ring buffer commit function use the irq_work infrastructure to wake up any waiters waiting on the ring buffer for new data. The irq_work was created for such a purpose, where doing the actual wake up at the time of adding data is too dangerous, as an event or

[PATCH 17/19] tracing: Remove deprecated tracing_enabled file

2012-11-02 Thread Steven Rostedt
From: Steven Rostedt The tracing_enabled file was used as a quick way to stop tracers, and try to bring down overhead for things like the latency tracers (irqsoff, wakeup, etc). But it didn't work that well. The tracing_on file was created as a really fast way to stop recording into the ftrace

[PATCH 11/19] linux/kernel.h: Remove duplicate trace_printk declaration

2012-11-02 Thread Steven Rostedt
From: Michal Hocko !CONFIG_TRACING both declares and defines (empty) trace_printk. The first one is not redundant so it can be removed. Link: http://lkml.kernel.org/r/1351172511-18125-1-git-send-email-mho...@suse.cz Signed-off-by: Michal Hocko Signed-off-by: Steven Rostedt ---

[PATCH 14/19] tracing: Separate open function from set_event and available_events

2012-11-02 Thread Steven Rostedt
From: Steven Rostedt The open function used by available_events is the same as set_event even though it uses different seq functions. This causes a side effect of writing into available_events clearing all events, even though available_events is suppose to be read only. There's no reason to

[PATCH 00/19] [GIT PULL][3.8] tracing: updates (v2)

2012-11-02 Thread Steven Rostedt
Ingo, I removed the few problem patches (and their dependencies) and retested the result. Please pull the latest tip/perf/core-2 tree, which can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git tip/perf/core-2 Head SHA1:

[PATCH 12/19] tracing: Reset ring buffer when changing trace_clocks

2012-11-02 Thread Steven Rostedt
From: David Sharp Because the "tsc" clock isn't in nanoseconds, the ring buffer must be reset when changing clocks so that incomparable timestamps don't end up in the same trace. Tested: Confirmed switching clocks resets the trace buffer. Google-Bug-Id: 6980623 Link:

[PATCH 13/19] ring-buffer: Change unsigned long type of ring_buffer_oldest_event_ts() to u64

2012-11-02 Thread Steven Rostedt
From: Yoshihiro YUNOMAE ring_buffer_oldest_event_ts() should return a value of u64 type, because ring_buffer_per_cpu->buffer_page->buffer_data_page->time_stamp is u64 type. Link: http://lkml.kernel.org/r/1349998076-15495-5-git-send-email-dhsh...@google.com Cc: Frederic Weisbecker Cc: Vaibhav

[PATCH 19/19] tracing: Add trace_options kernel command line parameter

2012-11-02 Thread Steven Rostedt
From: Steven Rostedt Add trace_options to the kernel command line parameter to be able to set options at early boot. For example, to enable stack dumps of events, add the following: trace_options=stacktrace This along with the trace_event option, you can get not only traces of the events but

[PATCH 07/19] tracing: Have tracing_sched_wakeup_trace() use standard unlock_commit

2012-11-02 Thread Steven Rostedt
From: Steven Rostedt The functon tracing_sched_wakeup_trace() does an open coded unlock commit and save stack. This is what the trace_nowake_buffer_unlock_commit() is for. Signed-off-by: Steven Rostedt --- kernel/trace/trace_sched_switch.c |4 +--- 1 file changed, 1 insertion(+), 3

[PATCH 08/19] tracing: Cache comms only after an event occurred

2012-11-02 Thread Steven Rostedt
From: Steven Rostedt Whenever an event is registered, the comm of tasks are saved at every task switch instead of saving them at every event. But if an event isn't executed much, the comm cache will be filled up by tasks that did not record the event and you lose out on the comms that did.

[PATCH 03/19] tracing: Change tracers integer flags to bool

2012-11-02 Thread Steven Rostedt
From: Hiraku Toyooka print_max and use_max_tr in struct tracer are "int" variables and used like flags. This is wasteful, so change the type to "bool". Link: http://lkml.kernel.org/r/20121002082710.9807.86393.stgit@falsita Signed-off-by: Hiraku Toyooka Signed-off-by: Steven Rostedt ---

[PATCH 09/19] tracing: Trivial cleanup

2012-11-02 Thread Steven Rostedt
From: David Sharp Remove ftrace_format_syscall() declaration; it is neither defined nor used. Also update a comment and formatting. Link: http://lkml.kernel.org/r/1339112785-21806-1-git-send-email-vnagarn...@google.com Signed-off-by: David Sharp Signed-off-by: Vaibhav Nagarnaik

[PATCH 06/19] tracing: Enable comm recording if trace_printk() is used

2012-11-02 Thread Steven Rostedt
From: Steven Rostedt If comm recording is not enabled when trace_printk() is used then you just get this type of output: [ adding trace_printk("hello! %d", irq); in do_IRQ ] <...>-2843 [001] d.h.80.812300: do_IRQ: hello! 14 <...>-2734 [002] d.h280.824664:

[PATCH 10/19] tracing: Cleanup unnecessary function declarations

2012-11-02 Thread Steven Rostedt
From: Vaibhav Nagarnaik The functions defined in include/trace/syscalls.h are not used directly since struct ftrace_event_class was introduced. Remove them from the header file and rearrange the ftrace_event_class declarations in trace_syscalls.c. Link:

[PATCH 04/19] ring-buffer: Add a dropped events counter

2012-11-02 Thread Steven Rostedt
From: Slava Pestov The existing 'overrun' counter is incremented when the ring buffer wraps around, with overflow on (the default). We wanted a way to count requests lost from the buffer filling up with overflow off, too. I decided to add a new counter instead of retro-fitting the existing one

[PATCH 05/19] tracing: Expand ring buffer when trace_printk() is used

2012-11-02 Thread Steven Rostedt
From: Steven Rostedt Since tracing is not used by 99% of Linux users, even though tracing may be configured in, it does not make sense to allocate 1.4 Megs per CPU for the ring buffers if they are not used. Thus, on boot up the ring buffers are set to a minimal size until something needs the and

[PATCH 02/19] tracing: Allow tracers to start at core initcall

2012-11-02 Thread Steven Rostedt
From: Steven Rostedt There's times during debugging that it is helpful to see traces of early boot functions. But the tracers are initialized at device_initcall() which is quite late during the boot process. Setting the kernel command line parameter ftrace=function will not show anything until

Re: [PATCH 2/5] mm: frontswap: lazy initialization to allow tmem backends to build/run as modules

2012-11-02 Thread Konrad Rzeszutek Wilk
> > > + frontswap_enabled = 1; > > > > If frontswap_enabled is going to be on all the time, then what point > > does it serve? By extension, can all of the static inline wrappers in > > frontswap.h be done away with? Hm, or the frontswap_enabled can be converted to a "frontswap_flag" which has:

Re: [PATCHv2] Input: omap4-keypad: Add pinctrl support

2012-11-02 Thread Mark Brown
On Tue, Oct 30, 2012 at 10:51:11PM +0100, Linus Walleij wrote: > On Tue, Oct 30, 2012 at 7:37 PM, Mark Brown > > More seriously the amount of time we seem to have been spending recently > > on changes which end up requiring us to go through essentially every > > driver and add code to them (often

Re: [PATCH 2/5] mm: frontswap: lazy initialization to allow tmem backends to build/run as modules

2012-11-02 Thread Konrad Rzeszutek Wilk
On Wed, Oct 31, 2012 at 12:05:32PM -0500, Seth Jennings wrote: > On 10/31/2012 10:07 AM, Dan Magenheimer wrote: > > With the goal of allowing tmem backends (zcache, ramster, Xen tmem) to be > > built/loaded as modules rather than built-in and enabled by a boot > > parameter, > > this patch

Re: [PATCH] Staging: Android: logger: module_exit implementationg

2012-11-02 Thread Greg Kroah-Hartman
On Thu, Nov 01, 2012 at 11:15:52PM -0700, Luca Clementi wrote: > Created the module_exit for the android logger so that > it can be loaded and unloaded as a module. Fixed > module_init and some other minor issues. That's doing more than one thing here at once, care to break it up? Yeah, I know it

Re: [RFC] Second attempt at kernel secure boot support

2012-11-02 Thread Vivek Goyal
On Fri, Nov 02, 2012 at 05:22:41PM +0100, Jiri Kosina wrote: > On Fri, 2 Nov 2012, Vivek Goyal wrote: > > > > > "crash" utility has module which allows reading kernel memory. So > > > > leaking > > > > this private key will be easier then you are thinking it to be. > > > > > > That's not

Re: [PATCH 1/5] mm: cleancache: lazy initialization to allow tmem backends to build/run as modules

2012-11-02 Thread Konrad Rzeszutek Wilk
On Wed, Oct 31, 2012 at 08:07:50AM -0700, Dan Magenheimer wrote: > With the goal of allowing tmem backends (zcache, ramster, Xen tmem) to be > built/loaded as modules rather than built-in and enabled by a boot parameter, > this patch provides "lazy initialization", allowing backends to register to

Re: [PATCH 00/32] [RFC] nohz/cpuset: Start discussions on nohz CPUs

2012-11-02 Thread Paul E. McKenney
On Fri, Nov 02, 2012 at 03:03:01PM +, Christoph Lameter wrote: > On Fri, 2 Nov 2012, Steven Rostedt wrote: > > > > also it would be best to sync this conceptually with the processors > > > enabled for rcu processing. > > > > Processors can be disabled for rcu processing? Or are you talking

Re: [PATCH 3/5] staging: zcache2+ramster: enable zcache2 to be built/loaded as a module

2012-11-02 Thread Konrad Rzeszutek Wilk
On Wed, Oct 31, 2012 at 08:07:52AM -0700, Dan Magenheimer wrote: > Allow zcache2 to be built/loaded as a module. Note runtime dependency > disallows loading if cleancache/frontswap lazy initialization patches > are not present. Zsmalloc support has not yet been merged into zcache2 > but, once

Re: [PATCH tip/core/rcu 1/2] rcu: Add callback-free CPUs

2012-11-02 Thread Paul E. McKenney
On Wed, Oct 31, 2012 at 03:10:04PM +0100, Frederic Weisbecker wrote: > 2012/10/31 Paul E. McKenney : > > +/* > > + * Per-rcu_data kthread, but only for no-CBs CPUs. Each kthread invokes > > + * callbacks queued by the corresponding no-CBs CPU. > > + */ > > +static int rcu_nocb_kthread(void *arg)

Re: [PATCH v3 0/7] Improve swiotlb performance by using physical addresses

2012-11-02 Thread Alexander Duyck
On 11/02/2012 09:21 AM, Konrad Rzeszutek Wilk wrote: > On Mon, Oct 29, 2012 at 03:05:56PM -0400, Konrad Rzeszutek Wilk wrote: >> On Mon, Oct 29, 2012 at 11:18:09AM -0700, Alexander Duyck wrote: >>> On Mon, Oct 15, 2012 at 10:19 AM, Alexander Duyck >>> wrote: While working on 10Gb/s routing

Re: [PATCH V3 4/4] mfd: tps65910: pass irq_domain when adding mfd sub devices

2012-11-02 Thread Mark Brown
On Fri, Nov 02, 2012 at 10:59:58PM +0530, Laxman Dewangan wrote: > When adding the sub device "tps65910-rtc", is it passed the > IO resource IRQ for the interrupt number. This interrupt needs > to map in the device irq domain. Pass the irq domain of device > in mfd_add_devices() so that proper irq

[PATCH 4/6 v2] arm highbank: add support for pl320 IPC

2012-11-02 Thread Mark Langsdorf
From: Rob Herring The pl320 IPC allows for interprocessor communication between the highbank A9 and the EnergyCore Management Engine. The pl320 implements a straightforward mailbox protocol. Signed-off-by: Mark Langsdorf Signed-off-by: Rob Herring Changes from v1: Removed erroneous

[PATCH 0/6 v2] cpufreq: add support for Calxeda ECX-1000 (highbank)

2012-11-02 Thread Mark Langsdorf
This patch series adds cpufreq support for the Calxeda ECX-1000 (highbank) SoCs. The driver is based on the cpufreq-cpu0 driver. Because of the unique way that highbank uses the EnergyCore Management Engine to manage voltages, it was not possible to use the cpufreq-cpu0 driver. --Mark Langsdorf

[PATCH 5/6 v2] power: export opp cpufreq functions

2012-11-02 Thread Mark Langsdorf
These functions are needed to make the cpufreq-core0 and highbank-cpufreq drivers loadable as modules. Signed-off-by: Mark Langsdorf Acked-by: Nishanth Menon Cc: linux...@vger.kernel.org Changes from v1: Added Nishanth Menon's ack. Clarified the purpose of the change in the

[PATCH 6/6 v2] cpufreq, highbank: add support for highbank cpufreq

2012-11-02 Thread Mark Langsdorf
Highbank processors depend on the external ECME to perform voltage management based on a requested frequency. Communication between the highbank and ECME cores happens over the pl320 IPC channel. Signed-off-by: Mark Langsdorf Cc: devicetree-disc...@lists.ozlabs.org Cc: Rafael J. Wysocki

[PATCH 2/6 v2] clk, highbank: remove non-bypass reset mode

2012-11-02 Thread Mark Langsdorf
The highbank clock will glitch if the clock rate is reset without relocking the PLL. Remove the option to attempt reseting without relocking. Signed-off-by: Mark Langsdorf Signed-off-by: Rob Herring Cc: mturque...@linaro.org Changes from v2: Removed erroneous reformating. ---

[PATCH 3/6 v2] cpufreq: tolerate inexact values when collecting stats

2012-11-02 Thread Mark Langsdorf
When collecting stats, if a frequency doesn't match the table, go through the table again with both the search frequency and table values shifted left by 10 bits. Signed-off-by: Mark Langsdorf Cc: MyungJoo Ham Changes from v1: Implemented a simple round-up algorithm instead of the

[PATCH 1/6 v2] arm: use devicetree to get smp_twd clock

2012-11-02 Thread Mark Langsdorf
From: Rob Herring Signed-off-by: Rob Herring Cc: Russell King Cc: linux-arm-ker...@lists.infradead.org Changes from v1 None. --- arch/arm/kernel/smp_twd.c | 23 ++- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/arch/arm/kernel/smp_twd.c

Re: [RFC PATCH 1/2] memory: davinci - add aemif controller platform driver

2012-11-02 Thread Stephen Warren
On 11/02/2012 10:21 AM, Murali Karicheri wrote: > This is a platform driver for asynchronous external memory interface > available on TI SoCs. This driver was previously located inside the > mach-davinci folder. As this DaVinci IP is re-used across multiple > family of devices such as c6x,

Re: linux-next: build failures after merge of the final tree (usb tree related)

2012-11-02 Thread Greg KH
On Fri, Nov 02, 2012 at 05:04:59PM +1100, Stephen Rothwell wrote: > Hi , > > After merging the final tree, today's linux-next build (powerpc > allyesconfig) failed like this: > > In file included from drivers/usb/host/ehci-platform.c:28:0: > drivers/usb/host/ehci.h: In function 'ehci_readl': >

Re: [PATCH v2 4/5] mm, highmem: makes flush_all_zero_pkmaps() return index of first flushed entry

2012-11-02 Thread JoonSoo Kim
Hello, Minchan. 2012/11/1 Minchan Kim : > On Thu, Nov 01, 2012 at 01:56:36AM +0900, Joonsoo Kim wrote: >> In current code, after flush_all_zero_pkmaps() is invoked, >> then re-iterate all pkmaps. It can be optimized if flush_all_zero_pkmaps() >> return index of first flushed entry. With this

Re: [PATCH RFT RESEND linux-next] c6x: dma-mapping: support debug_dma_mapping_error

2012-11-02 Thread Mark Salter
On Fri, 2012-11-02 at 10:44 -0600, Shuah Khan wrote: > On Fri, 2012-10-26 at 09:40 -0600, Shuah Khan wrote: > > Add support for debug_dma_mapping_error() call to avoid warning from > > debug_dma_unmap() interface when it checks for mapping error checked > > status. Without this patch, device

Re: [RFC] Second attempt at kernel secure boot support

2012-11-02 Thread Eric Paris
I know I started it, but Windows really isn't necessary to see value, even if it is what pushed the timing. A user installs a package as root. Absent any flaws in the Linux kernel (cough) that should be all it can do in a Secure Boot world. But if you can drop a small trusted Linux system in

[PATCH] bq2415x charger driver

2012-11-02 Thread Pali Rohár
Hello, I'm sending new version of bq2415x charger driver which is needed for example on Nokia N900 for charging battery. Driver is part of open source project to replace proprietary battery management. Driver is based on old RFC version which I sent months ago. power_supply: Add bq2415x charger

[PATCH][GIT PULL][3.8] x86: Don't clobber top of pt_regs in nested NMI

2012-11-02 Thread Steven Rostedt
Ingo, Please pull the latest tip/x86/asm tree, which can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git tip/x86/asm Head SHA1: 28696f434fef0efa97534b59986ad33b9c4df7f8 Salman Qazi (1): x86: Don't clobber top of pt_regs in nested NMI

[PATCH v5 0/6] Move rest of omap-iommu to live in drivers/iommu

2012-11-02 Thread Tony Lindgren
Hi all, Resending again, now using the updated email address for Joerg. We need to move the iommu code to live under drivers for arm common zImage support. Regards, Tony --- Ido Yariv (3): ARM: OMAP: Merge iommu2.h into iommu.h ARM: OMAP2+: Move iopgtable header to drivers/iommu/

[PATCH 1/6] ARM: OMAP: Merge iommu2.h into iommu.h

2012-11-02 Thread Tony Lindgren
From: Ido Yariv Since iommu is not supported on OMAP1 and will not likely to ever be supported, merge plat/iommu2.h into iommu.h so only one file would have to move to platform_data/ as part of the single zImage effort. Cc: Joerg Roedel Cc: Ohad Ben-Cohen Cc: Laurent Pinchart Cc: Mauro

[PATCH 3/6] ARM: OMAP2+: Move plat/iovmm.h to include/linux/omap-iommu.h

2012-11-02 Thread Tony Lindgren
Looks like the iommu framework does not have generic functions exported for all the needs yet. The hardware specific functions are defined in files like intel-iommu.h and amd-iommu.h. Follow the same standard for omap-iommu.h. This is needed because we are removing plat and mach includes for ARM

[PATCH 4/6] ARM: OMAP2+: Move iommu2 to drivers/iommu/omap-iommu2.c

2012-11-02 Thread Tony Lindgren
This file should not be in arch/arm. Move it to drivers/iommu to allow making most of the header local to drivers/iommu. This is needed as we are removing plat and mach includes from drivers for ARM common zImage support. Cc: Joerg Roedel Cc: Ohad Ben-Cohen Cc: Ido Yariv Cc: Laurent Pinchart

[PATCH 6/6] ARM: OMAP2+: Move iommu/iovmm headers to platform_data

2012-11-02 Thread Tony Lindgren
Move iommu/iovmm headers from plat/ to platform_data/ as part of the single zImage work. Partially based on an earlier version by Ido Yariv . Cc: Joerg Roedel Cc: Ohad Ben-Cohen Cc: Ido Yariv Cc: Laurent Pinchart Cc: Omar Ramirez Luna Acked-by: Mauro Carvalho Chehab Signed-off-by: Tony

[PATCH 5/6] ARM: OMAP2+: Make some definitions local

2012-11-02 Thread Tony Lindgren
From: Ido Yariv Move some of the definitions in omap-iommu.h that can be made local to either drivers/iommu. Cc: Joerg Roedel Cc: Ohad Ben-Cohen Cc: Laurent Pinchart Cc: Mauro Carvalho Chehab Cc: Omar Ramirez Luna Signed-off-by: Ido Yariv [t...@atomide.com: updated for header changes in

[PATCH 2/6] ARM: OMAP2+: Move iopgtable header to drivers/iommu/

2012-11-02 Thread Tony Lindgren
From: Ido Yariv The iopgtable header file is only used by the iommu & iovmm drivers, so move it to drivers/iommu/, as part of the single zImage effort. Cc: Joerg Roedel Cc: Ohad Ben-Cohen Cc: Laurent Pinchart Cc: Mauro Carvalho Chehab Cc: Omar Ramirez Luna Signed-off-by: Ido Yariv

Re: [PATCH v6 00/29] kmem controller for memcg.

2012-11-02 Thread JoonSoo Kim
Hello, Glauber. 2012/11/2 Glauber Costa : > On 11/02/2012 04:04 AM, Andrew Morton wrote: >> On Thu, 1 Nov 2012 16:07:16 +0400 >> Glauber Costa wrote: >> >>> Hi, >>> >>> This work introduces the kernel memory controller for memcg. Unlike previous >>> submissions, this includes the whole

[tip:x86/asm] x86: Don't clobber top of pt_regs in nested NMI

2012-11-02 Thread tip-bot for Salman Qazi
Commit-ID: 28696f434fef0efa97534b59986ad33b9c4df7f8 Gitweb: http://git.kernel.org/tip/28696f434fef0efa97534b59986ad33b9c4df7f8 Author: Salman Qazi AuthorDate: Mon, 1 Oct 2012 17:29:25 -0700 Committer: Steven Rostedt CommitDate: Fri, 2 Nov 2012 11:29:36 -0400 x86: Don't clobber top of

Re: kswapd0: excessive CPU usage

2012-11-02 Thread Jiri Slaby
On 11/02/2012 11:53 AM, Jiri Slaby wrote: > On 11/02/2012 11:44 AM, Zdenek Kabelac wrote: Yes, applying this instead of the revert fixes the issue as well. >> >> I've applied this patch on 3.7.0-rc3 kernel - and I still see excessive >> CPU usage - mainly after suspend/resume >> >> Here is

Re: [PATCH RFT RESEND linux-next] c6x: dma-mapping: support debug_dma_mapping_error

2012-11-02 Thread Shuah Khan
On Fri, 2012-11-02 at 15:10 -0400, Mark Salter wrote: > On Fri, 2012-11-02 at 10:44 -0600, Shuah Khan wrote: > > On Fri, 2012-10-26 at 09:40 -0600, Shuah Khan wrote: > > > Add support for debug_dma_mapping_error() call to avoid warning from > > > debug_dma_unmap() interface when it checks for

Re: urandom is too slow

2012-11-02 Thread Theodore Ts'o
On Fri, Nov 02, 2012 at 03:10:05AM +0200, Lasse Kärkkäinen wrote: > Thank you for your answers, they should be very helpful for someone > who is actually blanking or shredding their disks. However, I am > just genuinely interested on why is no better CSPRNG algorithm used > in the kernel (is it

Re: [PATCH] acpi: add missing newline to printk

2012-11-02 Thread Rafael J. Wysocki
On Friday, November 02, 2012 02:51:18 PM Cesar Eduardo Barros wrote: > The missing newline causes messages like this on dmesg: > > [2.578212] ACPI: Invalid Power Resource to register!<5>[2.578456] ... > > Cc: Lin Ming > Cc: Len Brown > Signed-off-by: Cesar Eduardo Barros An equivalent

Re: [PATCH 2/2 v5] block/throttle: Add IO submitted information in blkio.throttle

2012-11-02 Thread Vivek Goyal
On Fri, Nov 02, 2012 at 05:31:37PM +0800, Robin Dong wrote: > From: Robin Dong > > Currently, if the IO is throttled by io-throttle, the system admin has no idea > of the situation and can't report it to the real application user about that > he/she has to do something. > > So this patch adds a

[GIT PULL] hwmon patches for 3.7-rc4

2012-11-02 Thread Guenter Roeck
Hi Linus, Please pull hwmon patches for Linux 3.7-rc4 from signed tag: git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-for-linus Thanks, Guenter -- The following changes since commit 8f0d8163b50e01f398b14bcd4dc039ac5ab18d64: Linux 3.7-rc3 (2012-10-28

Re: [PATCH 0/2] xen-pciback: parsing improvements

2012-11-02 Thread Konrad Rzeszutek Wilk
On Fri, Nov 02, 2012 at 02:35:40PM +, Jan Beulich wrote: > 1: simplify and tighten parsing of device IDs > 2: reject out of range inputs applied for v3.8. Thanks! > > Signed-off-by: Jan Beulich > > -- > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body

Re: [GIT PULL REQUEST] UniCore32 update for v3.7-rc3

2012-11-02 Thread Linus Torvalds
On Fri, Nov 2, 2012 at 2:32 AM, guanxuetao wrote: > > git://github.com/gxt/linux.git unicore32 Can you please use your gpg signature to make a signed *tag* and ask me to pull that, instead of signing your email? Email signing is largely useless, because no email client that I have ever wanted

Re: setting up CDB filters in udev (was Re: [PATCH v2 0/3] block: add queue-private command filter, editable via sysfs)

2012-11-02 Thread Alan Cox
> * Devices are given standard filter matching the device class. Any >!CAP_SYS_RAWIO user can only issue commands allowed by the filter. > > * CAP_SYS_RAWIO can issue an ioctl to disable the filter all >accessors of the fd and transfer it. > > That should be enough, no? No a -

<    5   6   7   8   9   10   11   12   >