[PATCH 3/5] ARM: sun4i: Add muxing options for the ethernet controller

2013-03-15 Thread Maxime Ripard
Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun4i-a10.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi b/arch/arm/boot/dts/sun4i-a10.dtsi index f3c2158..fc4ce45 100644 --- a/arch/arm/boot/dts/sun4i-a10.dtsi +++ b/arch/arm/boot/dts/sun

[PATCH 1/5] net: Add davicom wemac ethernet driver found on Allwinner A10 SoC's

2013-03-15 Thread Maxime Ripard
From: Stefan Roese The Allwinner A10 has an ethernet controller that is advertised as coming from Davicom. The exact feature set of this controller is unknown, since there is no public documentation for this IP, and this driver is mostly the one published by Allwinner that has been heavily clean

Re: Serial port initialization broken on Armada 370/XP due to "serial: 8250_dw: Don't use UPF_FIXED_TYPE"

2013-03-15 Thread Greg Kroah-Hartman
On Fri, Mar 15, 2013 at 04:32:51PM -0400, Jason Cooper wrote: > On Fri, Mar 15, 2013 at 01:24:52PM -0700, Greg Kroah-Hartman wrote: > > On Thu, Feb 28, 2013 at 02:34:21PM +0200, Heikki Krogerus wrote: > > > Hi, > > > > > > On Thu, Feb 28, 2013 at 12:42:06PM +0100, Gregory CLEMENT wrote: > > > > >>

RE: [PATCH] acpi: remove length check for large registers

2013-03-15 Thread Moore, Robert
Linn, Can you explain in a bit more detail what brings this up? I'm aware of the limitation of the generic address structure, but we are forced by the (current) ACPI specification to use it if it is present for a given register. Thanks, Bob > -Original Message- > From: Linn Crosetto

[PATCH 5/5] ARM: hackberry: dt: Add Ethernet controller to the Hackberry device tree

2013-03-15 Thread Maxime Ripard
Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun4i-a10-hackberry.dts | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/sun4i-a10-hackberry.dts b/arch/arm/boot/dts/sun4i-a10-hackberry.dts index f84549a..3808c1a 100644 --- a/arch/arm/boot/dts/sun4i-

[PATCH 4/5] ARM: cubieboard: Enable ethernet (WEMAC) support in dts

2013-03-15 Thread Maxime Ripard
From: Stefan Roese Signed-off-by: Stefan Roese --- arch/arm/boot/dts/sun4i-a10-cubieboard.dts |6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/sun4i-a10-cubieboard.dts b/arch/arm/boot/dts/sun4i-a10-cubieboard.dts index 88e2dc1..7a3872d 100644 --- a/arch/arm/boot/d

Re: [PATCH] perf,x86: fix kernel crash with PEBS/BTS after suspend/resume

2013-03-15 Thread Thomas Gleixner
On Fri, 15 Mar 2013, Linus Torvalds wrote: > On Fri, Mar 15, 2013 at 6:26 AM, Stephane Eranian wrote: > > > > This patch fixes a kernel crash when using precise sampling (PEBS) > > after a suspend/resume. > > Yup, works. Applied. > > Can we please get rid of the crazy CPU notifier crap from the

Re: [PATCH] perf,x86: fix kernel crash with PEBS/BTS after suspend/resume

2013-03-15 Thread Stephane Eranian
On Fri, Mar 15, 2013 at 9:31 PM, Greg KH wrote: > > On Fri, Mar 15, 2013 at 02:26:07PM +0100, Stephane Eranian wrote: > > > > This patch fixes a kernel crash when using precise sampling (PEBS) > > after a suspend/resume. Turns out the CPU notifier code is not invoked > > on CPU0 (BP). Therefore, t

Re: [PATCH RFC 1/3] seccomp: add generic code for jitted seccomp filters.

2013-03-15 Thread Eric Paris
On Fri, 2013-03-15 at 11:45 -0700, Kees Cook wrote: > On Fri, Mar 15, 2013 at 11:28 AM, Nicolas Schichan > wrote: > > diff --git a/include/linux/seccomp.h b/include/linux/seccomp.h > > index 6f19cfd..af27494 100644 > > --- a/include/linux/seccomp.h > > +++ b/include/linux/seccomp.h > > @@ -6,6 +

Re: [PATCH] cifs: Rename cERROR and cFYI to cifs_dbg

2013-03-15 Thread Joe Perches
On Fri, 2013-03-15 at 15:16 -0500, Steve French wrote: > I would like to merge the three we have (one still has to be put in > for-next - the one from Jeff) for for-next in the next three or fouir > days - but I can create another temporary branch for the ones for 3.10 > - but ... I would like to

[PATCH 1/4] integrity: Identify asymmetric digital signature using new type

2013-03-15 Thread Vivek Goyal
Currently there seem to be two types of digital signatures. Old one and that is RSA and new one which is being called asymmetric. Right now they both fall in the categorty of EVM_IMA_XATTR_DIGSIG and one differentiates between two using signature version. Version 1 is old type and version 2 is new

[PATCH v11 1/3] tracing: Add DEFINE_EVENT_FN() macro

2013-03-15 Thread Seiji Aguchi
Each TRACE_EVENT() adds several helper functions. If two or more trace events share the same structure and print format, they can also share most of these helper functions and save a lot of space from duplicate code. This is why the DECLARE_EVENT_CLASS() and DEFINE_EVENT() were created. Some event

[PATCH v11 0/3]trace,x86: irq vector tracepoint support

2013-03-15 Thread Seiji Aguchi
Change log v10 -> v11 - Rebase to 3.9-rc2 - Add a modification for hyperv_callback vector. (patch 2/3) - Change a way to switch idt to check the table in use instead of saving/restoring it, because saving/restoring functions will break if we have to add another one. (patch 2/3) v9 -> v10

[PATCH v11 2/3] trace,x86: add x86 irq vector tracepoints

2013-03-15 Thread Seiji Aguchi
[Purpose of this patch] As Vaibhav explained in the thread below, tracepoints for irq vectors are useful. http://www.spinics.net/lists/mm-commits/msg85707.html The current interrupt traces from irq_handler_entry and irq_handler_exit provide when an interrupt is handled. They provide good data

[PATCH v11 3/3] trace,x86: code-sharing between non-trace and trace irq handlers

2013-03-15 Thread Seiji Aguchi
[Issue] Currently, irq vector handlers for tracing are just copied non-trace handlers by simply inserting tracepoints. It is difficult to manage the codes. [Solution] This patch shares common codes between non-trace and trace handlers as follows to make them manageable and readable. Non-trace

[PATCH 3/4] capability: Create a new capability CAP_SIGNED

2013-03-15 Thread Vivek Goyal
Create a new capability CAP_SIGNED which can be given to signed executables. Signed-off-by: Vivek Goyal --- include/uapi/linux/capability.h | 12 +++- kernel/cred.c |7 +++ security/commoncap.c|2 ++ 3 files changed, 20 insertions(+), 1 deletio

[RFC PATCH 0/4] IMA: Export functions for file integrity verification

2013-03-15 Thread Vivek Goyal
Hi, This is just a proof of concept RFC to export some functions from IMA for file integrity verification. And there is a patch which modified binfmt_elf.c to show how a IMA subsystem user can call into IMA to verify integrity of a file. This patch set is far from being done. I am just throwing i

[PATCH 2/4] ima: export new IMA functions for signature verification

2013-03-15 Thread Vivek Goyal
Export IMA functions so that other subsystems can use IMA for file signature verification. Signed-off-by: Vivek Goyal --- include/linux/ima.h | 24 +++- include/linux/integrity.h |7 ++ security/integrity/ima/ima_api.c | 16 +

[PATCH 4/4] binfmt_elf: Elf executable signature verification

2013-03-15 Thread Vivek Goyal
Do elf executable signature verification (if one is present). If signature is present, it should be valid. Validly signed files are given a capability CAP_SIGNED. If file is unsigned, it can execute but it does not get the capability CAP_SIGNED. This is work in progress. This patch is just an RFC

Re: Serial port initialization broken on Armada 370/XP due to "serial: 8250_dw: Don't use UPF_FIXED_TYPE"

2013-03-15 Thread Jason Cooper
On Fri, Mar 15, 2013 at 01:24:52PM -0700, Greg Kroah-Hartman wrote: > On Thu, Feb 28, 2013 at 02:34:21PM +0200, Heikki Krogerus wrote: > > Hi, > > > > On Thu, Feb 28, 2013 at 12:42:06PM +0100, Gregory CLEMENT wrote: > > > >> Would you agree with this kind of patch to fix the issue? > > > >> > > >

Re: [PATCH] perf,x86: fix kernel crash with PEBS/BTS after suspend/resume

2013-03-15 Thread Greg KH
On Fri, Mar 15, 2013 at 02:26:07PM +0100, Stephane Eranian wrote: > > This patch fixes a kernel crash when using precise sampling (PEBS) > after a suspend/resume. Turns out the CPU notifier code is not invoked > on CPU0 (BP). Therefore, the DS_AREA (used by PEBS) is not restored properly > by the

Re: [PATCH] tty/serial: Fix uninitialized variable warning

2013-03-15 Thread Greg Kroah-Hartman
On Mon, Mar 04, 2013 at 09:35:07AM +0800, Grant Likely wrote: > drivers/tty/serial/8250/8250.c: In function 'serial_unlink_irq_chain': > drivers/tty/serial/8250/8250.c:1676:19: warning: 'i' may be used > uninitialized in this function > > There isn't an actual bug here since the function tests th

Re: [PATCH 0/9] overlay filesystem: request for inclusion (v17)

2013-03-15 Thread Al Viro
On Sat, Mar 16, 2013 at 03:57:18AM +0900, J. R. Okajima wrote: > > Al Viro: > > The trouble with such mechanisms is that they tend to end up depending on > > fairly non-trivial properties of underlying fs. Try aufs one on btrfs, > > see how soon you spot the problem. It's nice when a method turn

Re: Serial port initialization broken on Armada 370/XP due to "serial: 8250_dw: Don't use UPF_FIXED_TYPE"

2013-03-15 Thread Greg Kroah-Hartman
On Thu, Feb 28, 2013 at 02:34:21PM +0200, Heikki Krogerus wrote: > Hi, > > On Thu, Feb 28, 2013 at 12:42:06PM +0100, Gregory CLEMENT wrote: > > >> Would you agree with this kind of patch to fix the issue? > > >> > > >> diff --git a/drivers/tty/serial/8250/8250.c > > >> b/drivers/tty/serial/8250/8

Re: [PATCH 10/10] drivers: misc: use module_platform_driver_probe()

2013-03-15 Thread Arnd Bergmann
On Friday 15 March 2013, H Hartley Sweeten wrote: > Arnd, > > Ill look at converting the ep93xx pwm driver to the PWM subsystem. The only > issue is > the current driver exposes a sysfs interface that I think is not available in > that subsystem. You can probably keep providing that interface i

Re: + atomic-improve-atomic_inc_unless_negative-atomic_dec_unless_positive .patch added to -mm tree

2013-03-15 Thread Paul E. McKenney
On Fri, Mar 15, 2013 at 07:34:32PM +0100, Frederic Weisbecker wrote: > 2013/3/15 Oleg Nesterov : > > On 03/15, Frederic Weisbecker wrote: > >> > >> > The lack of the barrier? > >> > > >> > I thought about this, this should be fine? atomic_add_unless() has the > >> > same > >> > "problem", but this

Re: [PATCH] vfio: include for kmalloc

2013-03-15 Thread Alex Williamson
On Thu, 2013-03-14 at 22:56 +0100, Arnd Bergmann wrote: > The vfio drivers call kmalloc or kzalloc, but do not > include , which causes build errors on > ARM. > > Signed-off-by: Arnd Bergmann > Cc: Alex Williamson > Cc: k...@vger.kernel.org > --- > Please apply for 3.9 Applied, Thanks, Alex >

Re: [PATCH] staging: android: lowmemorykiller: well-marked debug print

2013-03-15 Thread Greg Kroah-Hartman
On Sat, Mar 16, 2013 at 12:00:42AM +0400, Dmitry Voytik wrote: > Add "lmk:" prefix to the debug print so it's easier to analyse LMK's > debug output: > dmesg | grep lmk Ick, no, please use the proper interface for this (i.e. pr_fmt). greg k-h -- To unsubscribe from this list: send the line "unsub

Re: [PATCH v3 3/3] leds: leds-pwm: Defer led_pwm_set() if PWM can sleep

2013-03-15 Thread Florian Vaussard
Hi, On 03/15/2013 07:59 PM, Thierry Reding wrote: Hi Florian and Thierry, Sorry, guys. My bad! I'm using GMAIL filtering my emails. This email goes into my arm-linux mail list archive and I totally missed it. I can merge this patch into my for-next branch, but it will be in 3.10 not 3.9-rcX.

[PATCH 1/6] serial: 8250_dw: add support for clk api

2013-03-15 Thread Maxime Ripard
From: Emilio López This commit implements support for using the clk api; this lets us use the "clocks" property with device tree, instead of having to use clock-frequency. Signed-off-by: Emilio López Signed-off-by: Maxime Ripard --- drivers/tty/serial/8250/8250_dw.c | 33 +++

[PATCH 5/6] ARM: sunxi: dt: Add A10 UARTs to the dtsi.

2013-03-15 Thread Maxime Ripard
The Allwinner A10 SoC has 8 available UARTs, which is 6 more than on the A13, so add the missing UARTs to the sun4i-a10 dtsi. Signed-off-by: Maxime Ripard Acked-by: Emilio López --- arch/arm/boot/dts/sun4i-a10.dtsi | 51 ++ 1 file changed, 51 insertions(+)

[PATCH 3/6] ARM: sunxi: dt: Move uart0 to sun4i-a10.dtsi

2013-03-15 Thread Maxime Ripard
The UART0 is only available on the Allwinner A10 SoCs, and not on the A13, so move the uart0 node to sun4i-a10.dtsi. Signed-off-by: Maxime Ripard Acked-by: Emilio López Tested-by: Emilio López --- arch/arm/boot/dts/sun4i-a10.dtsi | 10 ++ arch/arm/boot/dts/sunxi.dtsi | 10 -

[PATCH 2/6] ARM: sunxi: dt: Use clocks property instead of clock-frequency for the UARTs

2013-03-15 Thread Maxime Ripard
It will be especially useful when we will have the clock definitions in the device tree. Signed-off-by: Maxime Ripard Acked-by: Emilio López Tested-by: Emilio López --- arch/arm/boot/dts/sunxi.dtsi |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/sun

[PATCH 6/6] ARM: sunxi: hackberry: Add UART muxing

2013-03-15 Thread Maxime Ripard
We previously relied on the bootloader to do the muxing of the UART for the Hackberry. Don't rely on it anymore and use pinctrl. Signed-off-by: Maxime Ripard Acked-by: Emilio López --- arch/arm/boot/dts/sun4i-a10-hackberry.dts |2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/bo

[PATCH 4/6] ARM: sunxi: dt: Add uart3 dt node

2013-03-15 Thread Maxime Ripard
Both A10 and A13 Allwinner SoCs have a Synopsys APB uart3 device available, so add it to the sunxi.dtsi file Signed-off-by: Maxime Ripard Acked-by: Emilio López --- arch/arm/boot/dts/sunxi.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/sunxi.dtsi b/arch

[PATCH] kconfig menu: move Virtualization drivers near other virtualization options

2013-03-15 Thread Randy Dunlap
From: Randy Dunlap Make virtualization drivers be logically grouped together (physically near each other) in the kconfig menu by moving "Virtualization drivers" to be near "Virtio drivers", Microsort Hyper-V, and Xen driver support. This is just a user-friendly, visual search change. Signed-off

[PATCH] staging: android: lowmemorykiller: well-marked debug print

2013-03-15 Thread Dmitry Voytik
Add "lmk:" prefix to the debug print so it's easier to analyse LMK's debug output: dmesg | grep lmk Signed-off-by: Dmitry Voytik --- drivers/staging/android/lowmemorykiller.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/android/lowmemorykiller.c b/drive

[PATCH] hpet, allow user controlled mmap for user processes

2013-03-15 Thread Prarit Bhargava
The CONFIG_HPET_MMAP Kconfig option exposes the memory map of the HPET registers to userspace. The Kconfig help points out that in some cases this can be a security risk as some systems may erroneously configure the map such that additional data is exposed to userspace. This is a problem for dist

Re: [GIT PULL] extcon fixes for 3.9-rc3

2013-03-15 Thread Greg KH
On Thu, Mar 14, 2013 at 08:26:29AM +0900, Chanwoo Choi wrote: > Hi Greg, > > This is extcon fixes for 3.9-rc3. > Please pull extcon with following updates. > > Best Regards, > Chanwoo Choi > > The following changes since commit > f6161aa153581da4a3867a2d1a7caf4be19b6ec9: > > Linux 3.9-rc2 (20

[PATCH] acpi: remove length check for large registers

2013-03-15 Thread Linn Crosetto
The legacy bit width field in the Generic Address Structure is 1 byte, limiting the reportable register width to 255 bits. Larger registers will cause a length mismatch warning to be printed in acpi_tb_validate_fadt(). To avoid the warning, disable the length mismatch check for registers larger th

[for-next][PATCH 02/20] tracing: Consolidate ftrace_trace_onoff_unreg() into callback

2013-03-15 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" The only thing ftrace_trace_onoff_unreg() does is to do a strcmp() against the cmd parameter to determine what op to unregister. But this compare is also done after the location that this function is called (and returns). By moving the check for '!' to unregister

[for-next][PATCH 00/20] tracing: function triggers, stack tracer fixes, clocks and documenation

2013-03-15 Thread Steven Rostedt
Here's another set of patches. Mostly I updated the function triggers. You know the kind: echo bad_area_nosemaphore:traceoff > set_ftrace_filter I cleaned up the code and also added a few more triggers. What we already had was just traceon and traceoff. These turn on and off tracing when a fun

[for-next][PATCH 01/20] tracing: Consolidate updating of count for traceon/off

2013-03-15 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" Remove some duplicate code and replace it with a helper function. This makes the code a it cleaner. Signed-off-by: Steven Rostedt --- kernel/trace/trace_functions.c | 33 - 1 file changed, 16 insertions(+), 17 deletions(-) dif

[for-next][PATCH 04/20] ftrace: Fix function probe to only enable needed functions

2013-03-15 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" Currently the function probe enables all functions and runs a "hash" against every function call to see if it should call a probe. This is extremely wasteful. Note, a probe is something like: echo schedule:traceoff > /debug/tracing/set_ftrace_filter When sche

[for-next][PATCH 12/20] tracing: Add skip argument to trace_dump_stack()

2013-03-15 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" Altough the trace_dump_stack() already skips three functions in the call to stack trace, which gets the stack trace to start at the caller of the function, the caller may want to skip some more too (as it may have helper functions). Add a skip argument to the tra

Re: [RFC v2 1/1] clk: Add notifier support in clk_prepare/clk_unprepare

2013-03-15 Thread Stephen Warren
On 03/15/2013 11:45 AM, Russell King - ARM Linux wrote: > On Thu, Mar 14, 2013 at 02:31:04AM -0700, Bill Huang wrote: >> Add the below two notifier events so drivers which are interested in >> knowing the clock status can act accordingly. This is extremely useful >> in some of the DVFS (Dynamic Vol

[for-next][PATCH 08/20] ftrace: Clean up function probe methods

2013-03-15 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" When a function probe is created, each function that the probe is attached to, a "callback" method is called. On release of the probe, each function entry calls the "free" method. First, "callback" is a confusing name and does not really match what it does. Callb

[for-next][PATCH 10/20] tracing: Add a way to soft disable trace events

2013-03-15 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" In order to let triggers enable or disable events, we need a 'soft' method for doing so. For example, if a function probe is added that lets a user enable or disable events when a function is called, that change must be done without taking locks or a mutex, and de

[for-next][PATCH 06/20] tracing: Add snapshot trigger to function probes

2013-03-15 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" echo 'schedule:snapshot:1' > /debug/tracing/set_ftrace_filter This will cause the scheduler to trigger a snapshot the next time it's called (you can use any function that's not called by NMI). Even though it triggers only once, you still need to remove it with:

[for-next][PATCH 14/20] tracing: Use stack of calling function for stack tracer

2013-03-15 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" Use the stack of stack_trace_call() instead of check_stack() as the test pointer for max stack size. It makes it a bit cleaner and a little more accurate. Adding stable, as a later fix depends on this patch. Cc: sta...@vger.kernel.org Signed-off-by: Steven Roste

[for-next][PATCH 13/20] tracing: Add function probe to trigger stack traces

2013-03-15 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" Add a function probe that will cause a stack trace to be traced in the ring buffer when the given function(s) are called. format is: :stacktrace[:] echo 'schedule:stacktrace' > /debug/tracing/set_ftrace_filter cat /debug/tracing/trace_pipe kworker/2:0-4

Re: [PATCH RFC 1/3] seccomp: add generic code for jitted seccomp filters.

2013-03-15 Thread Nicolas Schichan
On 03/15/2013 08:22 PM, Kees Cook wrote: On Fri, Mar 15, 2013 at 12:10 PM, Nicolas Schichan wrote: On 03/15/2013 07:45 PM, Kees Cook wrote: Yes, I did not realise that this header was exported to userspace. Do you know any place not exported to userspace where the structure definition would

[for-next][PATCH 15/20] tracing: Fix stack tracer with fentry use

2013-03-15 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" When gcc 4.6 on x86 is used, the function tracer will use the new option -mfentry which does a call to "fentry" at every function instead of "mcount". The significance of this is that fentry is called as the first operation of the function instead of the mcount us

[for-next][PATCH 16/20] tracing: Remove most or all of stack tracer stack size from stack_max_size

2013-03-15 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" Currently, the depth reported in the stack tracer stack_trace file does not match the stack_max_size file. This is because the stack_max_size includes the overhead of stack tracer itself while the depth does not. The first time a max is triggered, a calculation i

[for-next][PATCH 03/20] ftrace: Separate unlimited probes from count limited probes

2013-03-15 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" The function tracing probes that trigger traceon or traceoff can be set to unlimited, or given a count of # of times to execute. By separating these two types of probes, we can then use the dynamic ftrace function filtering directly, and remove the brute force "c

[for-next][PATCH 11/20] tracing: Add function probe triggers to enable/disable events

2013-03-15 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" Add triggers to function tracer that lets an event get enabled or disabled when a function is called: format is: :enable_event::[:] :disable_event::[:] echo 'schedule:enable_event:sched:sched_switch' > /debug/tracing/set_ftrace_filter Every time schedule i

[for-next][PATCH 18/20] tracing: Add "uptime" trace clock that uses jiffies

2013-03-15 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" Add a simple trace clock called "uptime" for those that are interested in the uptime of the trace. It uses jiffies as that's the safest method, as other uptime clocks grab seq locks, which could cause a deadlock if taken from an event or function tracer. Requeste

[for-next][PATCH 19/20] tracing: Add "perf" trace_clock

2013-03-15 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" The function trace_clock() calls "local_clock()" which is exactly the same clock that perf uses. I'm not sure why perf doesn't call trace_clock(), as trace_clock() doesn't have any users. But now it does. As trace_clock() calls local_clock() like perf does, I add

[for-next][PATCH 07/20] tracing: Fix comments for ftrace_event_file/call flags

2013-03-15 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" Most of the flags for the struct ftrace_event_file were moved over to the flags of the struct ftrace_event_call, but the comments were never updated. Signed-off-by: Steven Rostedt --- include/linux/ftrace_event.h | 17 ++--- 1 file changed, 10 ins

[for-next][PATCH 17/20] tracing: Add function-trace option to disable function tracing of latency tracers

2013-03-15 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" Currently, the only way to stop the latency tracers from doing function tracing is to fully disable the function tracer from the proc file system: echo 0 > /proc/sys/kernel/ftrace_enabled This is a big hammer approach as it disables function tracing for all us

[for-next][PATCH 09/20] ftrace: Use manual free after synchronize_sched() not call_rcu_sched()

2013-03-15 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" The entries to the probe hash must be freed after a synchronize_sched() after the entry has been removed from the hash. As the entries are registered with ops that may have their own callbacks, and these callbacks may sleep, we can not use call_rcu_sched() becaus

[for-next][PATCH 05/20] tracing: Add alloc/free_snapshot() to replace duplicate code

2013-03-15 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" Add alloc_snapshot() and free_snapshot() to allocate and free the snapshot buffer respectively, and use these to remove duplicate code. Signed-off-by: Steven Rostedt --- kernel/trace/trace.c | 79 +++--- 1 file chan

Re: [PATCH 1/6] serial: 8250_dw: add support for clocks property when using DeviceTree

2013-03-15 Thread Maxime Ripard
Hi Heikki Le 15/03/2013 13:56, Heikki Krogerus a écrit : >> @@ -137,8 +140,15 @@ static int dw8250_probe_of(struct uart_port *p) >> p->regshift = val; >> >> if (of_property_read_u32(np, "clock-frequency", &val)) { >> -dev_err(p->dev, "no clock-frequency property set

Re: [PATCH v3 0/6] TTY: port hangup and close fixes

2013-03-15 Thread Johan Hovold
On Fri, Mar 15, 2013 at 12:05:58PM -0700, Greg KH wrote: > On Thu, Mar 07, 2013 at 03:55:47PM +0100, Johan Hovold wrote: > > These patches against 3.9-rc1 fix a few issues with tty-port hangup and > > close. > > Are these for 3.9-final? I'd say it can wait for 3.10 as it fixes long-standing issue

Re: [PATCH 0/9] overlay filesystem: request for inclusion (v17)

2013-03-15 Thread Erez Zadok
I tend to agree with Al's and Linus's POV regarding whiteouts. There are three general techniques to implementing whiteouts: 1. namespace: special file names, hard/symlinks, or special "hidden" dot files. 2. extended attributes. 3. DT_WHT dirent flags. (there's actually a 4th method I've tried be

Re: [RFC 1/1] clk: Add notifier support in clk_prepare_enable/clk_disable_unprepare

2013-03-15 Thread Stephen Warren
On 03/15/2013 06:33 AM, Ulf Hansson wrote: > On 15 March 2013 13:06, Bill Huang wrote: >> On Fri, 2013-03-15 at 18:08 +0800, Ulf Hansson wrote: ... >>> Some prerequisites; I think am in favor of using the clk API to >>> trigger DVFS changes and then I agree on that clk_prepare|unprepare >>> needs

Re: [PATCH] i2c: tegra: check the clk_prepare_enable() return value

2013-03-15 Thread Stephen Warren
On 03/15/2013 09:34 AM, Laxman Dewangan wrote: > NVIDIA's Tegra SoC allows read/write of controller register only > if controller clock is enabled. System hangs if read/write happens > to registers without enabling clock. > > clk_prepare_enable() can be fail due to unknown reason and hence > addin

Re: [PATCH v2 0/2] AMD MCE fixes

2013-03-15 Thread Borislav Petkov
On Thu, Mar 14, 2013 at 05:10:39PM -0400, Boris Ostrovsky wrote: > > Boris, > > Here is the updated patch for determining number of regiter banks on > AMD plus a patch removing shared_bank array, as you suggested. > > Offline/online testing didn't show any issues. > > > > Boris Ostrovsky (2):

[Patch 01/02v2] block: IBM FlashSystem 70/80 EEH Support.

2013-03-15 Thread Philip J. Kelleher
From: Philip J Kelleher Adding in EEH support to the IBM FlashSystem 70/80 device driver. Signed-off-by: Philip J Kelleher --- Changes in v2 include: o Fixed spelling of guarantee. o Fixed potential memory leak if slot

Re: [PATCH 1/1] memory: tegra30: Fix build error w/o PM

2013-03-15 Thread Stephen Warren
On 03/14/2013 03:12 AM, Hiroshi Doyu wrote: > Make this depend on CONFIG_PM. Applied to Tegra's for-3.10/fixes branch. -- 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/maj

Re: [PATCH RFC 1/3] seccomp: add generic code for jitted seccomp filters.

2013-03-15 Thread Kees Cook
On Fri, Mar 15, 2013 at 12:10 PM, Nicolas Schichan wrote: > On 03/15/2013 07:45 PM, Kees Cook wrote: >> >> On Fri, Mar 15, 2013 at 11:28 AM, Nicolas Schichan >> wrote: >>> >>> +/** >>> + * struct seccomp_filter - container for seccomp BPF programs >>> + * >>> + * @usage: reference count to manage

Re: [PATCH] pm: print the name of failed suspend function for platform device

2013-03-15 Thread gre...@linuxfoundation.org
On Mon, Mar 11, 2013 at 01:41:28AM +, Liu, Chuansheng wrote: > Hi Greg, > > I just noticed some other cases need the more log also. > https://lkml.org/lkml/2013/3/8/71 > > Could you consider the below patch, thanks? Didn't I already consider it and respond? -- To unsubscribe from this list:

Re: [PATCH 3/8] FMC: add core bus driver

2013-03-15 Thread Greg KH
On Thu, Feb 21, 2013 at 07:14:01PM +0100, Alessandro Rubini wrote: > -/* Every device must have a release method: provide a default */ > +/* We really have nothing to release in here */ > static void __fmc_release(struct device *dev) { } Then your implementation is wrong, and as per the documenta

Re: [PATCH v4] ARM: tegra: expose chip ID and revision

2013-03-15 Thread Stephen Warren
On 03/13/2013 06:48 PM, Danny Huang wrote: > Expose Tegra chip ID and revision in /sys/devices/soc for user mode > usage Applied to Tegra's for-3.10/soc branch. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More maj

Re: [3.9-rc1] irq 16: nobody cared (was [3.9-rc1] very poor interrupt responses)

2013-03-15 Thread Yinghai Lu
On Fri, Mar 15, 2013 at 8:14 AM, Jiri Kosina wrote: > Just a datapoint -- I have put a trivial debugging patch in place, and it > reveals that "nobody cared" for irq 16 happens long after last > > I915_WRITE(GMBUS4 + reg_offset, 0); > > has been performed in gmbus_wait_hw_status(). On the

Re: [PATCH 0/9] overlay filesystem: request for inclusion (v17)

2013-03-15 Thread Linus Torvalds
On Thu, Mar 14, 2013 at 10:09 PM, J. R. Okajima wrote: > > "no inodes at all"? > Are you assuming the implementation in dcache only (with a new d_type > flag)? And it is up to the real fs (layer or branch) whether it consumes > inode or not? Yes. That would be lovely. And trivial for most filesys

Re: [PATCH RFC 1/3] seccomp: add generic code for jitted seccomp filters.

2013-03-15 Thread Nicolas Schichan
On 03/15/2013 07:45 PM, Kees Cook wrote: On Fri, Mar 15, 2013 at 11:28 AM, Nicolas Schichan wrote: +/** + * struct seccomp_filter - container for seccomp BPF programs + * + * @usage: reference count to manage the object lifetime. + * get/put helpers should be used when accessing an inst

Re: [PATCH v3 0/6] TTY: port hangup and close fixes

2013-03-15 Thread Greg Kroah-Hartman
On Thu, Mar 07, 2013 at 03:55:47PM +0100, Johan Hovold wrote: > These patches against 3.9-rc1 fix a few issues with tty-port hangup and > close. Are these for 3.9-final? thanks, greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord

Re: [PATCH V3 3/5] ARM: tegra:add aliases and DMA requestor for serial nodes of Tegra114

2013-03-15 Thread Laxman Dewangan
On Saturday 16 March 2013 12:28 AM, Stephen Warren wrote: On 03/15/2013 12:42 PM, Laxman Dewangan wrote: Simple uart driver use the uart clock divider and it is fine here. High speed uart driver uses the car register driver for better flexibility and better resolution. OK, so I see that Teg

Re: [PATCH] ARM: tegra: fix register address of slink controller

2013-03-15 Thread Stephen Warren
On 03/15/2013 12:55 PM, Laxman Dewangan wrote: > Fix typo on register address of slink3 controller where register > address is wrongly set as 0x7000d480 but it is 0x7000d800. Arnd, Olof, Can you please apply this as a fix for v3.9-rc, and Cc: stable too? Let me know if you need me to resend the p

Re: [PATCH] cifs: Rename cERROR and cFYI to cifs_dbg

2013-03-15 Thread Jeff Layton
On Thu, 14 Mar 2013 12:24:37 -0700 Joe Perches wrote: > It's not obvious from reading the macro names that these macros > are for debugging. Convert the names to a single more typical > kernel style cifs_dbg macro. > > cERROR(1, ...) -> cifs_dbg(VFS, ...) > cFYI(1, ...) -> cif

[PATCH V2 1/1] Drivers: hv: Add a new driver to support host initiated backup

2013-03-15 Thread K. Y. Srinivasan
This driver supports host initiated backup of the guest. On Windows guests, the host can generate application consistent backups using the Windows VSS framework. On Linux, we ensure that the backup will be file system consistent. This driver allows the host to initiate a "Freeze" operation on all

Re: [PATCH v3 3/3] leds: leds-pwm: Defer led_pwm_set() if PWM can sleep

2013-03-15 Thread Thierry Reding
On Fri, Mar 15, 2013 at 10:08:57AM -0700, Bryan Wu wrote: > On Tue, Mar 12, 2013 at 3:06 AM, Florian Vaussard > wrote: > > Hi Bryan, > > > > > > > > Bryan, I assume that you'll be taking this? It doesn't apply cleanly to > > my tree, probably because of Peter's recent changes that you

Re: [PATCH V3 3/5] ARM: tegra:add aliases and DMA requestor for serial nodes of Tegra114

2013-03-15 Thread Stephen Warren
On 03/15/2013 12:42 PM, Laxman Dewangan wrote: > On Friday 15 March 2013 11:56 PM, Stephen Warren wrote: >> On 03/13/2013 02:02 PM, Stephen Warren wrote: >>> On 03/13/2013 01:49 PM, Laxman Dewangan wrote: Add APB DMA requestor and serial aliases for serial controller. There will be two se

[PATCH 2/6] Drivers: hv: balloon: Execute balloon inflation in a separate context

2013-03-15 Thread K. Y. Srinivasan
Execute the balloon inflation operation in a separate work context. This allows us to decouple the pressure reporting activity from the ballooning activity. Testing has shown that this decoupling makes the guest more reponsive. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- driv

[PATCH 4/6] Drivers: hv: balloon: Make the balloon driver not unloadable

2013-03-15 Thread K. Y. Srinivasan
The balloon driver is stateful. For instance, it needs to keep track of pages that have been ballooned out to properly post pressure reports. This state cannot be re-constructed if the driver were to be unloaded and subsequently loaded. Furthermore, as we support memory hot-add as part of this dri

[PATCH] ARM: tegra: fix register address of slink controller

2013-03-15 Thread Laxman Dewangan
Fix typo on register address of slink3 controller where register address is wrongly set as 0x7000d480 but it is 0x7000d800. Signed-off-by: Laxman Dewangan --- arch/arm/boot/dts/tegra20.dtsi |2 +- arch/arm/boot/dts/tegra30.dtsi |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) dif

Re: Linux IPMI subsystem hang

2013-03-15 Thread Daniel Kahn Gillmor
On Tue 2013-03-12 22:23:37 -0400, Daniel Kahn Gillmor wrote: > I am working with a Lenovo ThinkCentre M78, model 4865-A14, and it seems > to have trouble with the IPMI subsystem. > > udev seems to hang for about 3 minutes at startup, ultimately failing > with the following messages: > > udevd[416]

Re: [PATCH 0/9] overlay filesystem: request for inclusion (v17)

2013-03-15 Thread J. R. Okajima
Al Viro: > The trouble with such mechanisms is that they tend to end up depending on > fairly non-trivial properties of underlying fs. Try aufs one on btrfs, > see how soon you spot the problem. It's nice when a method turns out > to be really redundant and implementable in uniform way via other

[PATCH V2 5/6] Drivers: hv: balloon: Implement hot-add functionality

2013-03-15 Thread K. Y. Srinivasan
Implement the memory hot-add functionality. With this, Linux guests can fully participate in the Dynamic Memory protocol implemented in the Windows hosts. In this version of the patch, based Olaf Herring's feedback, I have gotten rid of the module level dependency on MEMORY_HOTPLUG. Instead the co

Re: [PATCH] cifs: Rename cERROR and cFYI to cifs_dbg

2013-03-15 Thread Jeff Layton
On Thu, 14 Mar 2013 12:24:37 -0700 Joe Perches wrote: > It's not obvious from reading the macro names that these macros > are for debugging. Convert the names to a single more typical > kernel style cifs_dbg macro. > > cERROR(1, ...) -> cifs_dbg(VFS, ...) > cFYI(1, ...) -> cif

[PATCH 3/6] Drivers: hv: balloon: Execute hot-add code in a separate context

2013-03-15 Thread K. Y. Srinivasan
Execute the hot-add operation in a separate work context. This allows us to decouple the pressure reporting activity from the "hot-add" activity. Testing has shown that this makes the guest more responsive to hot add requests. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drive

[PATCH 6/6] Drivers: hv: vmbus: Handle channel rescind message correctly

2013-03-15 Thread K. Y. Srinivasan
Properly cleanup the channel state on receipt of the "offer rescind" message. Starting with ws2012, the host requires that the channel "relid" be properly cleaned up when the offer is rescinded. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/hv/channel_mgmt.c | 11

[PATCH 1/6] Drivers: hv: balloon: Do not request completion notification

2013-03-15 Thread K. Y. Srinivasan
There is no need to request completion notification; get rid of it. Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_balloon.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/hv/hv_balloon.c b/drivers/hv/hv_balloon.c index 3787321..7fb72dd 100644 --- a/driv

[PATCH 0/6] Drivers: hv

2013-03-15 Thread K. Y. Srinivasan
This patch set enhances the balloon driver functionality to add support for memory "hot-add". Windows hosts use a combination of ballooning and hot-add to dynamically balance the available memory across competing virtual machines. With this, Linux guests can fully participate in the Windows Dynamic

RE: [PATCH RESEND 0/6] Drivers: hv

2013-03-15 Thread KY Srinivasan
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Friday, March 15, 2013 2:21 PM > To: KY Srinivasan > Cc: linux-kernel@vger.kernel.org; de...@linuxdriverproject.org; > o...@aepfle.de; > a...@canonical.com; jasow...@redhat.com > Subject: Re: [PATCH RESEND 0

Re: [PATCH V3 5/5] ARM: tegra: add spi nodes to Tegra114 DT

2013-03-15 Thread Laxman Dewangan
On Saturday 16 March 2013 12:12 AM, Stephen Warren wrote: On 03/13/2013 01:49 PM, Laxman Dewangan wrote: NVIDIA's Tegra114 has 6 spi controllers. These controllers are redesign on T114 with different register interface. diff --git a/arch/arm/boot/dts/tegra114.dtsi b/arch/arm/boot/dts/tegra114.dt

Re: [PATCH V3 3/5] ARM: tegra:add aliases and DMA requestor for serial nodes of Tegra114

2013-03-15 Thread Laxman Dewangan
On Friday 15 March 2013 11:56 PM, Stephen Warren wrote: On 03/13/2013 02:02 PM, Stephen Warren wrote: On 03/13/2013 01:49 PM, Laxman Dewangan wrote: Add APB DMA requestor and serial aliases for serial controller. There will be two serial driver i.e. 8250 based simple serial driver and APB DMA b

Re: [PATCH RFC 1/3] seccomp: add generic code for jitted seccomp filters.

2013-03-15 Thread Kees Cook
On Fri, Mar 15, 2013 at 11:28 AM, Nicolas Schichan wrote: > Architecture must select HAVE_SECCOMP_FILTER_JIT and implement > seccomp_jit_compile() and seccomp_jit_free() if they intend to support > jitted seccomp filters. > > struct seccomp_filter has been moved to to make its > content available

Re: [RFC 1/1] clk: Add notifier support in clk_prepare_enable/clk_disable_unprepare

2013-03-15 Thread Nicolas Pitre
On Fri, 15 Mar 2013, Russell King - ARM Linux wrote: > On Tue, Mar 12, 2013 at 06:47:53PM -0700, Bill Huang wrote: > > On Tue, 2013-03-12 at 21:40 +0800, Russell King - ARM Linux wrote: > > > On Tue, Mar 12, 2013 at 05:37:41AM -0700, Bill Huang wrote: > > > > Add the below four notifier events so

<    1   2   3   4   5   6   7   >