Re: [tip:x86/urgent] x86, trace: Fix CR2 corruption when tracing page faults

2014-03-05 Thread Peter Zijlstra
On Tue, Mar 04, 2014 at 04:03:25PM -0800, tip-bot for Jiri Olsa wrote: FWIW I also prefer this patch. @@ -1252,9 +1249,11 @@ dotraplinkage void __kprobes do_page_fault(struct pt_regs *regs, unsigned long error_code) { enum ctx_state prev_state; + /* Get the faulting address: */

Re: [PATCH 0/2] sched: Removed unused mc_capable() and smt_capable()

2014-03-05 Thread Peter Zijlstra
On Tue, Mar 04, 2014 at 02:07:31PM -0700, Bjorn Helgaas wrote: This is just cleanup of a couple unused interfaces and (for sparc64) a supporting variable. Thanks! -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org

[PATCH] watchdog: bcm281xx: Fix Kconfig dependency

2014-03-05 Thread Markus Mayer
Use more the applicable ARCH_BCM_MOBILE option instead of ARCH_BCM as dependency for bcm_kona_wdt.c. Signed-off-by: Markus Mayer markus.ma...@linaro.org --- drivers/watchdog/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/Kconfig

Re: [patch 2/5] mips: Validate online cpus in irq_set_affinity() callbacks

2014-03-05 Thread Peter Zijlstra
On Tue, Mar 04, 2014 at 08:43:39PM -, Thomas Gleixner wrote: + i = cpumask_first_and(mask cpu_online_mask); + i = cpumask_first_and(mask cpu_online_mask); s//,/ ? -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to

Re: [PATCH v7 0/4] phy: Add new Exynos USB 2.0 PHY driver

2014-03-05 Thread Kishon Vijay Abraham I
Hi, On Tuesday 04 March 2014 08:53 PM, Kamil Debski wrote: Hi, This is the seventh version of this patchset. First and most significant change is that this patchset includes only patches touching the Generic PHY Framework. Patches to the USB controllers were stripped as they require additional

[PATCH v2] gpio: davinci: fix gpio selection for OF

2014-03-05 Thread Alexander Holler
The driver missed an of_xlate function to translate gpio numbers as found in the DT to the correct chip and number. While there I've set #gpio_cells to a fixed value of 2. I've used gpio-pxa.c as template for those changes and tested my changes successfully on a da850 board using entries for

Re: [PATCH] clk: turn rate change failed warning into pr_debug

2014-03-05 Thread Sascha Hauer
Mike, Any objections to this patch? Sascha On Thu, Jan 16, 2014 at 04:12:55PM +0100, Sascha Hauer wrote: If a rate change failed it's the opportunity of the caller to handle this. Do not spam the log with a message. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de Cc: Mike Turquette

Re: [PATCH v6 0/8] Move device tree graph parsing helpers to drivers/of

2014-03-05 Thread Tomi Valkeinen
Hi, On 05/03/14 11:20, Philipp Zabel wrote: Hi, this version of the OF graph helper move series further addresses a few of Tomi's and Sylwester's comments. Changes since v5: - Fixed spelling errors and a wrong device node name in the link section - Added parentless previous endpoint's

Re: [PATCH v4 5/6] timerfd: Add support for deferrable timers

2014-03-05 Thread Thomas Gleixner
On Tue, 4 Mar 2014, Andy Lutomirski wrote: On Tue, Mar 4, 2014 at 4:10 PM, Thomas Gleixner t...@linutronix.de wrote: A slacked timer still gets enqueued into the main timer queue. It just relies on the fact that it gets batched with some other expiring timer. But thats completely different

Re: [PATCH v5 0/7] [RFC] Support for creating generic host_bridge from device tree

2014-03-05 Thread Liviu Dudau
On Wed, Mar 05, 2014 at 01:53:55AM +, Tanmay Inamdar wrote: Hello, Thanks for the patch set. On Tue, Mar 4, 2014 at 7:49 AM, Liviu Dudau liviu.du...@arm.com wrote: This is v5 of my attempt to add support for a generic pci_host_bridge controller created from a description passed

Loan Application

2014-03-05 Thread Loans
Loan Application at a low rate of 0.5% send your Name,Amount,Phone and country to standar...@56788.com Note: $5,000.00 USD minimum and $100,000,000 Maximum. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More

Re: [PATCH v2] ARM: dts: imx6qdl-sabresd.dtsi: Add red led

2014-03-05 Thread Shawn Guo
On Wed, Mar 05, 2014 at 09:16:23AM +0100, Vincent Stehlé wrote: Make the red gpio led available to the user. This can be toggled with the sysfs for example, or used as a heartbeat or mmc activity light by changing the trigger. Signed-off-by: Vincent Stehlé vincent.ste...@freescale.com Cc:

Re: [PATCH v2 01/11] base: power: Add generic OF-based power domain look-up

2014-03-05 Thread Tomasz Figa
Hi Ulf, On 05.03.2014 08:19, Ulf Hansson wrote: @@ -2177,3 +2181,297 @@ void pm_genpd_init(struct generic_pm_domain *genpd, list_add(genpd-gpd_list_node, gpd_list); mutex_unlock(gpd_list_lock); } + +#ifdef CONFIG_PM_GENERIC_DOMAINS_OF Do we need a new config for this?

[PATCH v6 0/3] [RFC] Add support for PCI in AArch64

2014-03-05 Thread Liviu Dudau
Hi, This patch adds support for PCI to AArch64. It is based on my v6 patch that adds support for creating generic host bridge structure from device tree. With that in place, I was able to boot a platform that has PCIe host bridge support and use a PCIe network card. Changes from v5: - Removed

[PATCH v6 0/6] [RFC] Support for creating generic host_bridge from device tree

2014-03-05 Thread Liviu Dudau
This is v6 of my attempt to add support for a generic pci_host_bridge controller created from a description passed in the device tree. Changes from v5: - Tested by Tanmay Inamdar, thanks Tanmay! - dropped v5 5/7 pci: Use parent domain number when allocating child busses. - Added weak

[PATCH v6 1/3] Fix ioport_map() for !CONFIG_GENERIC_IOMAP cases.

2014-03-05 Thread Liviu Dudau
The inline version of ioport_map() that gets used when !CONFIG_GENERIC_IOMAP is wrong. It returns a mapped (i.e. virtual) address that can start from zero and completely ignores the PCI_IOBASE and IO_SPACE_LIMIT that most architectures that use !CONFIG_GENERIC_MAP define. Signed-off-by: Liviu

[PATCH v6 2/3] arm64: Extend the PCI I/O space to 16MB

2014-03-05 Thread Liviu Dudau
From: Catalin Marinas catalin.mari...@arm.com The patch moves the PCI I/O space (currently at 64K) before the earlyprintk mapping and extends it to 16MB. Signed-off-by: Catalin Marinas catalin.mari...@arm.com --- Documentation/arm64/memory.txt | 16 ++-- arch/arm64/include/asm/io.h

[PATCH v6 3/3] arm64: Add architecture support for PCI

2014-03-05 Thread Liviu Dudau
Use the generic host bridge functions to provide support for PCI Express on arm64. There is no support for ISA memory. Signed-off-by: Liviu Dudau liviu.du...@arm.com Tested-by: Tanmay Inamdar tinam...@apm.com --- arch/arm64/Kconfig| 19 +++- arch/arm64/include/asm/Kbuild | 1 +

[PATCH v6 3/6] pci: Create pci_host_bridge before its associated bus in pci_create_root_bus.

2014-03-05 Thread Liviu Dudau
Before commit 7b5436635800 the pci_host_bridge was created before the root bus. As that commit has added a needless dependency on the bus for pci_alloc_host_bridge() the creation order has been changed for no good reason. Revert the order of creation as we are going to depend on the

[PATCH v6 4/6] pci: Introduce a domain number for pci_host_bridge.

2014-03-05 Thread Liviu Dudau
Make it easier to discover the domain number of a bus by storing the number in pci_host_bridge for the root bus. Several architectures have their own way of storing this information, so it makes sense to try to unify the code. While at this, add a new function that creates a root bus in a given

[PATCH v6 1/6] pci: Introduce pci_register_io_range() helper function.

2014-03-05 Thread Liviu Dudau
Some architectures do not share x86 simple view of the I/O space and instead use a range of addresses that map to external devices. For PCI, these ranges can be expressed by OF bindings in a device tree file. Introduce a pci_register_io_range() helper function that can be used by the architecture

[PATCH v6 5/6] pci: Export find_pci_host_bridge() function.

2014-03-05 Thread Liviu Dudau
This is a useful function and we should make it visible outside the generic PCI code. Export it as a GPL symbol. Signed-off-by: Liviu Dudau liviu.du...@arm.com Tested-by: Tanmay Inamdar tinam...@apm.com --- drivers/pci/host-bridge.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

[PATCH v6 6/6] pci: Add support for creating a generic host_bridge from device tree

2014-03-05 Thread Liviu Dudau
Several platforms use a rather generic version of parsing the device tree to find the host bridge ranges. Move the common code into the generic PCI code and use it to create a pci_host_bridge structure that can be used by arch code. Based on early attempts by Andrew Murray to unify the code. Used

[PATCH v6 2/6] pci: OF: Fix the conversion of IO ranges into IO resources.

2014-03-05 Thread Liviu Dudau
The ranges property for a host bridge controller in DT describes the mapping between the PCI bus address and the CPU physical address. The resources framework however expects that the IO resources start at a pseudo port address 0 (zero) and have a maximum size of IO_SPACE_LIMIT. The conversion

Re: [PATCH v2 01/11] base: power: Add generic OF-based power domain look-up

2014-03-05 Thread Tomasz Figa
On 04.03.2014 19:23, Stephen Boyd wrote: On 03/03, Tomasz Figa wrote: diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index dc127e5..006b455 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c @@ -3,12 +3,16 @@ * * Copyright (C) 2011 Rafael J.

Re: [PATCH 1/6] gpiolib: Allow GPIO chips to request their own GPIOs

2014-03-05 Thread Mika Westerberg
On Wed, Mar 05, 2014 at 10:49:41AM +0800, Linus Walleij wrote: On Tue, Feb 25, 2014 at 12:00 AM, Mika Westerberg mika.westerb...@linux.intel.com wrote: Sometimes it is useful to allow GPIO chips themselves to request GPIOs they own through gpiolib API. One usecase is ACPI ASL code that

[PATCH -tip v8 00/26] kprobes: introduce NOKPROBE_SYMBOL, bugfixes and scalbility efforts

2014-03-05 Thread Masami Hiramatsu
Hi, Here is the version 8 of NOKPROBE_SYMBOL series. This just updates the kprobe_table hash entry size enlargement to 512 from 4096. That also includes decoupling the hash size of kprobes one from kretprobes one, since both has different hash-bases. Changes === From this series, I update 1

[PATCH -tip v8 03/26] kprobes: Prohibit probing on .entry.text code

2014-03-05 Thread Masami Hiramatsu
.entry.text is a code area which is used for interrupt/syscall entries, and there are many sensitive codes. Thus, it is better to prohibit probing on all of such codes instead of a part of that. Since some symbols are already registered on kprobe blacklist, this also removes them from the

[PATCH -tip v8 01/26] [BUGFIX]kprobes/x86: Fix page-fault handling logic

2014-03-05 Thread Masami Hiramatsu
Current kprobes in-kernel page fault handler doesn't expect that its single-stepping can be interrupted by an NMI handler which may cause a page fault(e.g. perf with callback tracing). In that case, the page-fault handled by kprobes and it misunderstands the page-fault has been caused by the

[PATCH -tip v8 02/26] kprobes/x86: Allow to handle reentered kprobe on singlestepping

2014-03-05 Thread Masami Hiramatsu
Since the NMI handlers(e.g. perf) can interrupt in the single stepping (or preparing the single stepping, do_debug etc.), we should consider a kprobe is hit in the NMI handler. Even in that case, the kprobe is allowed to be reentered as same as the kprobes hit in kprobe handlers (KPROBE_HIT_ACTIVE

Re: [PATCH tip] sched/rt: Fix picking RT and DL tasks from empty queue

2014-03-05 Thread Peter Zijlstra
On Tue, Mar 04, 2014 at 07:25:46PM +0400, Kirill Tkhai wrote: The problems: 1)We check for rt_nr_running before call of put_prev_task(). If previous task is RT, its rt_rq may become throttled and dequeued after this call. In case of p is from rt-rq this just causes picking a task from

[PATCH -tip v8 11/26] kprobes: Allow probe on some kprobe functions

2014-03-05 Thread Masami Hiramatsu
There is no need to prohibit probing on the functions used for preparation, registeration, optimization, controll etc. Those are safely probed because those are not invoked from breakpoint/fault/debug handlers, there is no chance to cause recursive exceptions. Following functions are now removed

[PATCH -tip v8 04/26] kprobes: Introduce NOKPROBE_SYMBOL() macro for blacklist

2014-03-05 Thread Masami Hiramatsu
Introduce NOKPROBE_SYMBOL() macro which builds a kprobe blacklist in build time. The usage of this macro is similar to the EXPORT_SYMBOL, put the NOKPROBE_SYMBOL(function); just after the function definition. Since this macro will inhibit inlining of static/inline functions, this patch also

[PATCH -tip v8 07/26] [BUGFIX] x86: Prohibit probing on thunk functions and restore

2014-03-05 Thread Masami Hiramatsu
thunk/restore functions are also used for tracing irqoff etc. and those are involved in kprobe's exception handling. Prohibit probing on them to avoid kernel crash. Signed-off-by: Masami Hiramatsu masami.hiramatsu...@hitachi.com Cc: Thomas Gleixner t...@linutronix.de Cc: Ingo Molnar

[PATCH -tip v8 12/26] ftrace/*probes: Allow probing on some functions

2014-03-05 Thread Masami Hiramatsu
There is no need to prohibit probing on the functions used for preparation and uprobe only fetch functions. Those are safely probed because those are not invoked from kprobe's breakpoint/fault/debug handlers. So there is no chance to cause recursive exceptions. Following functions are now removed

[PATCH -tip v8 14/26] x86: Use NOKPROBE_SYMBOL() instead of __kprobes annotation

2014-03-05 Thread Masami Hiramatsu
Use NOKPROBE_SYMBOL macro for protecting functions from kprobes instead of __kprobes annotation under arch/x86. This applies nokprobe_inline annotation for some cases, because NOKPROBE_SYMBOL() will inhibit inlining by referring the symbol address. This just folds a bunch of previous

[PATCH -tip v8 24/26] kprobes: Enlarge hash table to 512 entries

2014-03-05 Thread Masami Hiramatsu
Currently, since the kprobes expects to be used with less than 100 probe points, its hash table just has 64 entries. This is too little to handle several thousands of probes. Enlarge the size of kprobe_table to 512 entries which just consumes 4KB (on 64bit arch) for better scalability. Note that

[PATCH -tip v8 21/26] kprobes: Use NOKPROBE_SYMBOL() in sample modules

2014-03-05 Thread Masami Hiramatsu
Use NOKPROBE_SYMBOL() to protect handlers from kprobes in sample modules. Signed-off-by: Masami Hiramatsu masami.hiramatsu...@hitachi.com Ananth N Mavinakayanahalli ana...@in.ibm.com --- samples/kprobes/jprobe_example.c|1 + samples/kprobes/kprobe_example.c|3 +++

[PATCH -tip v8 18/26] sched: Use NOKPROBE_SYMBOL macro in sched

2014-03-05 Thread Masami Hiramatsu
Use NOKPROBE_SYMBOL macro to protect functions from kprobes instead of __kprobes annotation in sched/core.c. Signed-off-by: Masami Hiramatsu masami.hiramatsu...@hitachi.com Cc: Ingo Molnar mi...@redhat.com Cc: Peter Zijlstra pet...@infradead.org --- kernel/sched/core.c |6 -- 1 file

[PATCH -tip v8 19/26] kprobes: Show blacklist entries via debugfs

2014-03-05 Thread Masami Hiramatsu
Show blacklist entries (function names with the address range) via /sys/kernel/debug/kprobes/blacklist. Signed-off-by: Masami Hiramatsu masami.hiramatsu...@hitachi.com Cc: Ananth N Mavinakayanahalli ana...@in.ibm.com Cc: David S. Miller da...@davemloft.net --- kernel/kprobes.c | 61

[PATCH -tip v8 23/26] kprobes/x86: Remove unneeded preempt_disable/enable in interrupt handlers

2014-03-05 Thread Masami Hiramatsu
Since the int3 itself disables the local_irq and kprobes keeps it disabled while the single step has done, the kernel preemption never happen while processing a kprobe. This means that we don't need to disable/enable preemption. Also, this changes kprobe_int3_handler to use goto-out style.

[PATCH -tip v8 22/26] kprobes/x86: Use kprobe_blacklist for .kprobes.text and .entry.text

2014-03-05 Thread Masami Hiramatsu
Use kprobe_blackpoint for blacklisting .entry.text and .kprobees.text instead of arch_within_kprobe_blacklist. This also makes them visible via (debugfs)/kprobes/blacklist. Signed-off-by: Masami Hiramatsu masami.hiramatsu...@hitachi.com Cc: Thomas Gleixner t...@linutronix.de Cc: Ingo Molnar

[PATCH -tip v8 25/26] kprobes: Introduce kprobe cache to reduce cache misshits

2014-03-05 Thread Masami Hiramatsu
Introduce kprobe cache to reduce cache misshits for massive multiple kprobes. For stress testing kprobes, we need to activate kprobes as many as possible. This situation causes cache miss hit storm on kprobe hash-list. kprobe hashlist is already enlarged to 4k entries and this is still small for

[PATCH -tip v8 20/26] kprobes: Support blacklist functions in module

2014-03-05 Thread Masami Hiramatsu
To blacklist the functions in a module (e.g. user-defined kprobe handler and the functions invoked from it), expand blacklist support for modules. With this change, users can use NOKPROBE_SYMBOL() macro in their own modules. Signed-off-by: Masami Hiramatsu masami.hiramatsu...@hitachi.com Cc:

[PATCH -tip v8 26/26] ftrace: Introduce FTRACE_OPS_FL_SELF_FILTER for ftrace-kprobe

2014-03-05 Thread Masami Hiramatsu
Since the kprobes itself owns a hash table to get a kprobe data structure corresponding to the given ip address, there is no need to test ftrace hash in ftrace side. To achive better performance on ftrace-based kprobe, FTRACE_OPS_FL_SELF_FILTER flag to ftrace_ops which means that ftrace skips

[PATCH -tip v8 16/26] ftrace/kprobes: Use NOKPROBE_SYMBOL macro in ftrace

2014-03-05 Thread Masami Hiramatsu
Use NOKPROBE_SYMBOL macro to protect functions from kprobes instead of __kprobes annotation in ftrace. This applies nokprobe_inline annotation for some cases, because NOKPROBE_SYMBOL() will inhibit inlining by referring the symbol address. Changes from previous: - Use nokprobe_inline for

[PATCH -tip v8 17/26] notifier: Use NOKPROBE_SYMBOL macro in notifier

2014-03-05 Thread Masami Hiramatsu
Use NOKPROBE_SYMBOL macro to protect functions from kprobes instead of __kprobes annotation in notifier. Signed-off-by: Masami Hiramatsu masami.hiramatsu...@hitachi.com --- kernel/notifier.c | 22 +- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git

[PATCH -tip v8 15/26] kprobes: Use NOKPROBE_SYMBOL macro instead of __kprobes

2014-03-05 Thread Masami Hiramatsu
Use NOKPROBE_SYMBOL macro to protect functions from kprobes instead of __kprobes annotation. Signed-off-by: Masami Hiramatsu masami.hiramatsu...@hitachi.com Cc: Ananth N Mavinakayanahalli ana...@in.ibm.com Cc: David S. Miller da...@davemloft.net --- kernel/kprobes.c | 67

[PATCH -tip v8 13/26] x86: Allow kprobes on text_poke/hw_breakpoint

2014-03-05 Thread Masami Hiramatsu
Allow kprobes on text_poke/hw_breakpoint because those are not related to the critical int3-debug recursive path of kprobes at this moment. Signed-off-by: Masami Hiramatsu masami.hiramatsu...@hitachi.com --- arch/x86/kernel/alternative.c |3 +-- arch/x86/kernel/hw_breakpoint.c |5 ++---

[PATCH -tip v8 10/26] kprobes/x86: Allow probe on some kprobe preparation functions

2014-03-05 Thread Masami Hiramatsu
There is no need to prohibit probing on the functions used in preparation phase. Those are safely probed because those are not invoked from breakpoint/fault/debug handlers, there is no chance to cause recursive exceptions. Following functions are now removed from the kprobes blacklist. can_boost

[PATCH -tip v8 08/26] kprobes/x86: Call exception handlers directly from do_int3/do_debug

2014-03-05 Thread Masami Hiramatsu
To avoid a kernel crash by probing on lockdep code, call kprobe_int3_handler and kprobe_debug_handler directly from do_int3 and do_debug. Since there is a locking code in notify_die, lockdep code can be invoked. And because the lockdep involves printk() related things, theoretically, we need to

[PATCH -tip v8 05/26] [BUGFIX] kprobes/x86: Prohibit probing on debug_stack_*

2014-03-05 Thread Masami Hiramatsu
Prohibit probing on debug_stack_reset and debug_stack_set_zero. Since the both functions are called from TRACE_IRQS_ON/OFF_DEBUG macros which run in int3 ist entry, probing it may cause a soft lockup. This happens when the kernel built with CONFIG_DYNAMIC_FTRACE=y and CONFIG_TRACE_IRQFLAGS=y.

[PATCH -tip v8 06/26] [BUGFIX] x86: Prohibit probing on native_set_debugreg/load_idt

2014-03-05 Thread Masami Hiramatsu
Prohibit probing on native_set_debugreg and native_load_idt. Since the kprobes uses do_debug for single stepping, functions called from do_debug before notify_die must not be probed. And also native_load_idt is called from paranoid_exit when returning int3, this also must not be probed.

[PATCH -tip v8 09/26] x86: Call exception_enter after kprobes handled

2014-03-05 Thread Masami Hiramatsu
Move exception_enter() call after kprobes handler is done. Since the exception_enter() involves many other functions (like printk), it can cause recursive int3/break loop when kprobes probe such functions. Signed-off-by: Masami Hiramatsu masami.hiramatsu...@hitachi.com ---

[PATCH] Revert Bluetooth: Use devname:vhci module alias for virtual HCI driver

2014-03-05 Thread Thomas Bächler
Adding the devname:vhci alias and thus adding a static /dev/vhci device node only works when assigning a fixed major/minor number. However, the code currently uses a dynamically assigned minor number. It is therefore impossible to create a static device and to autoload the module when accessing

Re: [PATCH v2 1/2] Staging: comedi: convert while loops to timeouts in s626.c

2014-03-05 Thread Ian Abbott
On 2014-03-04 08:43, Chase Southwood wrote: This patch changes a handful of while loops to timeouts to prevent infinite looping on hardware failure. A couple such loops are in a function (s626_debi_transfer()) which is called from critical sections, so comedi_timeout() is unusable for them, and

Re: [PATCH v2 2/2] Staging: comedi: propagate timeout errors in s626.c

2014-03-05 Thread Ian Abbott
On 2014-03-04 08:44, Chase Southwood wrote: This patch for s626.c propagates the errors from the newly introduced calls to comedi_timeout() as far as possible. Signed-off-by: Chase Southwood chase.southw...@yahoo.com --- Compile tested only. Looks good, but if you change patch 1 this one will

Re: [PATCH net-next v6 1/10] xen-netback: Use skb-cb for pending_idx

2014-03-05 Thread Wei Liu
On Tue, Mar 04, 2014 at 10:32:12PM +, Zoltan Kiss wrote: Storing the pending_idx at the first byte of the linear buffer never looked good, skb-cb is a more proper place for this. It also prevents the header to be directly grant copied there, and we don't have the pending_idx after we

Re: [PATCH] Staging: comedi: range: tidy up comedi_check_chanlist()

2014-03-05 Thread Ian Abbott
On 2014-03-05 08:11, Fred Akers wrote: Refactor this function to remove an extra indent level Signed-off-by: Fred Akers kni...@botops.net Reviewed-by: Ian Abbott abbo...@mev.co.uk -- -=( Ian Abbott @ MEV Ltd.E-mail: abbo...@mev.co.uk)=- -=( Tel: +44 (0)161 477 1898 FAX: +44

Re: [PATCH v2] gpio: davinci: fix gpio selection for OF

2014-03-05 Thread Grygorii Strashko
Hi Alexander, On 03/05/2014 01:21 PM, Alexander Holler wrote: The driver missed an of_xlate function to translate gpio numbers as found in the DT to the correct chip and number. While there I've set #gpio_cells to a fixed value of 2. I've used gpio-pxa.c as template for those changes and

Re: [tip:x86/urgent] x86, trace: Fix CR2 corruption when tracing page faults

2014-03-05 Thread Steven Rostedt
On Wed, 5 Mar 2014 12:14:15 +0100 Peter Zijlstra pet...@infradead.org wrote: On Tue, Mar 04, 2014 at 04:03:25PM -0800, tip-bot for Jiri Olsa wrote: FWIW I also prefer this patch. @@ -1252,9 +1249,11 @@ dotraplinkage void __kprobes do_page_fault(struct pt_regs *regs, unsigned long

Re: [PATCH 02/12] phy: omap-control: Update DT binding information

2014-03-05 Thread Roger Quadros
+ George Tony, On 03/04/2014 06:28 PM, Tony Lindgren wrote: * Roger Quadros rog...@ti.com [140304 01:17]: Hi Tony, On 03/03/2014 09:02 PM, Tony Lindgren wrote: * Roger Quadros rog...@ti.com [140303 07:10]: Move omap-control binding information to the right location. Signed-off-by: Roger

Re: [tip:x86/urgent] x86, trace: Fix CR2 corruption when tracing page faults

2014-03-05 Thread Peter Zijlstra
On Wed, Mar 05, 2014 at 07:20:22AM -0500, Steven Rostedt wrote: On Wed, 5 Mar 2014 12:14:15 +0100 Peter Zijlstra pet...@infradead.org wrote: Please no! I used tracing of the do_page_fault function all the time. It is very useful. Why do you trace do_page_fault and not the __do_page_fault()

Re: [PATCH net-next v6 4/10] xen-netback: Introduce TX grant mapping

2014-03-05 Thread Wei Liu
On Tue, Mar 04, 2014 at 10:32:15PM +, Zoltan Kiss wrote: This patch introduces grant mapping on netback TX path. It replaces grant copy operations, ditching grant copy coalescing along the way. Another solution for copy coalescing is introduced in patch #7, older guests and Windows can

Re: [tip:x86/urgent] x86, trace: Fix CR2 corruption when tracing page faults

2014-03-05 Thread Steven Rostedt
On Wed, 5 Mar 2014 13:25:35 +0100 Peter Zijlstra pet...@infradead.org wrote: On Wed, Mar 05, 2014 at 07:20:22AM -0500, Steven Rostedt wrote: On Wed, 5 Mar 2014 12:14:15 +0100 Peter Zijlstra pet...@infradead.org wrote: Please no! I used tracing of the do_page_fault function all the time.

[RFC V1 1/2] mfd: da9063: Upgrade of register definitions to support production silicon

2014-03-05 Thread Opensource [Steve Twiss]
variant of DA9063. Signed-off-by: Opensource [Steve Twiss] stwiss.opensou...@diasemi.com --- Checks performed with next-20140305/scripts/checkpatch.pl registers.h total: 0 errors, 0 warnings, 1032 lines checked A brief summary of the changes include: - Introduction of a new

[RFC V1 0/2] da9063: Support for RTC and register definition updates

2014-03-05 Thread Opensource [Steve Twiss]
From: Opensource [Steve Twiss] stwiss.opensou...@diasemi.com This patch series updates the register definitions for the DA9063 PMIC and adds support for the DA9063 RTC. - Changes to the DA9063 registers.h to support production silicon; - Add a new RTC driver which is applicable to this version

[RFC V1 2/2] rtc: da9063: RTC driver

2014-03-05 Thread Opensource [Steve Twiss]
From: Opensource [Steve Twiss] stwiss.opensou...@diasemi.com Add the RTC driver for DA9063. Signed-off-by: Opensource [Steve Twiss] stwiss.opensou...@diasemi.com --- Checks performed with next-20140305/scripts/checkpatch.pl Kconfig total: 0 errors, 21 warnings, 1344 lines

Re: [PATCH v5 10/14] usb: phy: msm: Use reset framework for LINK and PHY resets

2014-03-05 Thread Sergei Shtylyov
Hello. On 05-03-2014 14:13, Ivan T. Ivanov wrote: From: Ivan T. Ivanov iiva...@mm-sol.com Signed-off-by: Ivan T. Ivanov iiva...@mm-sol.com --- drivers/usb/phy/phy-msm-usb.c | 30 ++ include/linux/usb/msm_hsusb.h |3 +++ 2 files changed, 25

Re: [PATCH] Revert irqchip: irq-dove: Add PMU interrupt controller.

2014-03-05 Thread Carlo Caione
On Wed, Mar 5, 2014 at 1:41 AM, Russell King - ARM Linux li...@arm.linux.org.uk wrote: On Tue, Mar 04, 2014 at 05:32:40AM +, Jason Cooper wrote: Jason, Thomas, I've just been giving the above a whirl here with the RTC, and it doesn't seem to quite work as it should. Not your problem,

Re: [PATCH net-next v6 7/10] xen-netback: Handle guests with too many frags

2014-03-05 Thread Wei Liu
On Tue, Mar 04, 2014 at 10:32:18PM +, Zoltan Kiss wrote: Xen network protocol had implicit dependency on MAX_SKB_FRAGS. Netback has to handle guests sending up to XEN_NETBK_LEGACY_SLOTS_MAX slots. To achieve that: - create a new skb - map the leftover slots to its frags (no linear buffer

Re: [PATCH net-next v6 8/10] xen-netback: Add stat counters for frag_list skbs

2014-03-05 Thread Wei Liu
On Tue, Mar 04, 2014 at 10:32:19PM +, Zoltan Kiss wrote: These counters help determine how often the guest sends a packet with more than MAX_SKB_FRAGS frags. NOTE: if bisect brought you here, you should apply the series up until #9, otherwise malicious guests can block other guests by

Re: [tip:x86/urgent] x86, trace: Fix CR2 corruption when tracing page faults

2014-03-05 Thread Peter Zijlstra
On Wed, Mar 05, 2014 at 01:25:35PM +0100, Peter Zijlstra wrote: On Wed, Mar 05, 2014 at 07:20:22AM -0500, Steven Rostedt wrote: On Wed, 5 Mar 2014 12:14:15 +0100 Peter Zijlstra pet...@infradead.org wrote: Please no! I used tracing of the do_page_fault function all the time. It is very

[PATCH 2/3] sched: Use clamp() and clamp_val() to make it more readable.

2014-03-05 Thread Dongsheng Yang
As Kees suggested, I use clamp() function to replace the if and else branch, making it more readable and modular. Suggested-by: Kees Cook keesc...@chromium.org Signed-off-by: Dongsheng Yang yangds.f...@cn.fujitsu.com --- kernel/sched/core.c | 11 ++- 1 file changed, 2 insertions(+), 9

[PATCH 3/3] sched/prio: Replace hardcoding of 40 with NICE_WIDTH.

2014-03-05 Thread Dongsheng Yang
Signed-off-by: Dongsheng Yang yangds.f...@cn.fujitsu.com --- kernel/sched/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 5273037..7ed08ad 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -3070,7 +3070,7 @@

[PATCH 1/3] tracing: Use inline task_nice() to get rid of an open coded implementation of it.

2014-03-05 Thread Dongsheng Yang
Function task_nice() was reimplemented as inline function, we can use it here to replace the open coded implementation. Signed-off-by: Dongsheng Yang yangds.f...@cn.fujitsu.com cc: Steven Rostedt rost...@goodmis.org --- kernel/trace/trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [ACPI / hotplug / PCI] 1b360f44d00: -80.9% vm-scalability.stddev

2014-03-05 Thread Rafael J. Wysocki
On Wednesday, March 05, 2014 04:23:36 PM Fengguang Wu wrote: Hi Rafael, Hi, I don't know why but we are glad to find the below changes on commit Do I understand correcty that you mean you're seeing improvement? Either way, if the test below doesn't involve hotplug or device removal via

Re: [PATCH v5 6/6] arm/dts: added dt properties to adapt to the new phy framwork

2014-03-05 Thread Kishon Vijay Abraham I
Tony/Benoit, On Monday 03 March 2014 05:08 PM, Kishon Vijay Abraham I wrote: Added device tree bindings for dwc3, usb2 and usb3 PHYs. The documentation of these can be found at Documentation/devicetree/bindings/phy/phy-bindings.txt and Documentation/devicetree/bindings/phy/ti-phy.txt. Can

Re: [PATCH] fbdev: FB_OPENCORES should depend on HAS_DMA

2014-03-05 Thread Tomi Valkeinen
On 21/02/14 21:56, Geert Uytterhoeven wrote: If NO_DMA=y: drivers/built-in.o: In function `ocfb_remove': ocfb.c:(.text+0x27fee): undefined reference to `dma_free_coherent' drivers/built-in.o: In function `ocfb_probe': ocfb.c:(.text+0x28418): undefined reference to

Re: [PATCH v2 01/11] base: power: Add generic OF-based power domain look-up

2014-03-05 Thread Tomasz Figa
On 05.03.2014 12:47, Tomasz Figa wrote: Hi Ulf, On 05.03.2014 08:19, Ulf Hansson wrote: @@ -2177,3 +2181,297 @@ void pm_genpd_init(struct generic_pm_domain *genpd, list_add(genpd-gpd_list_node, gpd_list); mutex_unlock(gpd_list_lock); } + +#ifdef CONFIG_PM_GENERIC_DOMAINS_OF

Re: fs: gpf in simple_setattr

2014-03-05 Thread Jan Kara
On Tue 04-03-14 19:00:32, Sasha Levin wrote: On 03/03/2014 04:40 PM, Jan Kara wrote: On Sat 01-03-14 15:05:21, Sasha Levin wrote: ping again? I've been working on it, but don't see an obvious issue. It does look like an access to invalid memory easily doable from userspace, so it should

Re: [ACPI / hotplug / PCI] 1b360f44d00: -80.9% vm-scalability.stddev

2014-03-05 Thread Fengguang Wu
On Wed, Mar 05, 2014 at 01:58:54PM +0100, Rafael J. Wysocki wrote: On Wednesday, March 05, 2014 04:23:36 PM Fengguang Wu wrote: Hi Rafael, Hi, I don't know why but we are glad to find the below changes on commit Do I understand correcty that you mean you're seeing improvement? Yes -

Re: [PATCH 1/6] gpiolib: Allow GPIO chips to request their own GPIOs

2014-03-05 Thread Rafael J. Wysocki
On Wednesday, March 05, 2014 02:05:50 PM Mika Westerberg wrote: On Wed, Mar 05, 2014 at 10:49:41AM +0800, Linus Walleij wrote: On Tue, Feb 25, 2014 at 12:00 AM, Mika Westerberg mika.westerb...@linux.intel.com wrote: Sometimes it is useful to allow GPIO chips themselves to request GPIOs

Re: [tip:x86/urgent] x86, trace: Fix CR2 corruption when tracing page faults

2014-03-05 Thread Peter Zijlstra
On Wed, Mar 05, 2014 at 07:33:44AM -0500, Steven Rostedt wrote: Then we better make sure that __do_page_fault() is never inlined. Otherwise, it wont be available to trace. I'm fine with adding notrace to do_page_fault() and to trace_do_page_fault() as long as we also include a noinline to

Re: [tip:x86/urgent] x86, trace: Fix CR2 corruption when tracing page faults

2014-03-05 Thread Steven Rostedt
On Wed, 5 Mar 2014 13:36:35 +0100 Peter Zijlstra pet...@infradead.org wrote: On Wed, Mar 05, 2014 at 01:25:35PM +0100, Peter Zijlstra wrote: On Wed, Mar 05, 2014 at 07:20:22AM -0500, Steven Rostedt wrote: On Wed, 5 Mar 2014 12:14:15 +0100 Peter Zijlstra pet...@infradead.org wrote:

Re: [tip:x86/urgent] x86, trace: Fix CR2 corruption when tracing page faults

2014-03-05 Thread Peter Zijlstra
On Wed, Mar 05, 2014 at 01:54:21PM +0100, Peter Zijlstra wrote: On Wed, Mar 05, 2014 at 07:33:44AM -0500, Steven Rostedt wrote: Then we better make sure that __do_page_fault() is never inlined. Otherwise, it wont be available to trace. I'm fine with adding notrace to do_page_fault() and

Re: [PATCH] x86, apic, Fix missing replacement for VECTOR_UNDEFINED

2014-03-05 Thread Prarit Bhargava
On 03/04/2014 05:37 PM, David Rientjes wrote: On Tue, 4 Mar 2014, Prarit Bhargava wrote: linux.git commit 9345005f4eed805308193658d12e4e7e9c261e74 added a definition for VECTOR_UNDEFINED = -1. There is a missing replacement in the io_apic.c file. Found during debugging of another issue.

[PATCH 1/2] lustre/mdc_lib: fix possible null pointer dereference

2014-03-05 Thread Maxin B. John
From: Maxin B. John maxin.j...@enea.com cppcheck reported possible null pointer dereference in mdc_lib.c [lustre/lustre/mdc/mdc_lib.c:233]: (error) Possible null pointer dereference : op_data - otherwise it is redundant to check if op_data is null at line 226 Signed-off-by: Maxin B. John

[PATCH 2/2] lustre/lov_obd: fix possible null pointer dereference

2014-03-05 Thread Maxin B. John
From: Maxin B. John maxin.j...@enea.com osc_obd can be NULL. cppcheck reported this: [lustre/lustre/lov/lov_obd.c:283]: (error) Possible null pointer dereference: osc_obd - otherwise it is redundant to check if osc_obd is null at line 295 Signed-off-by: Maxin B. John maxin.j...@enea.com ---

Re: [tip:x86/urgent] x86, trace: Fix CR2 corruption when tracing page faults

2014-03-05 Thread Peter Zijlstra
On Wed, Mar 05, 2014 at 02:02:24PM +0100, Peter Zijlstra wrote: It also puts trace_page_fault_entries() and trace_do_page_fault() under CONFIG_TRACING. I could only find the entry_32.S user; I suppose the 64bit one is hidden by CPP goo somewhere? +trace_errorentry page_fault

[PATCH] mfd: max8997: use regmap to access registers

2014-03-05 Thread Robert Baldyga
This patch modifies max8997 driver and each associated function driver, to use regmap instead of operating directly on i2c bus. It will allow to simplify IRQ handling using regmap-irq. Signed-off-by: Robert Baldyga r.bald...@samsung.com --- drivers/extcon/extcon-max8997.c | 17 +++---

Re: [tip:x86/urgent] x86, trace: Fix CR2 corruption when tracing page faults

2014-03-05 Thread Peter Zijlstra
On Wed, Mar 05, 2014 at 08:00:18AM -0500, Steven Rostedt wrote: static void __kprobes Still requires the noinline above Trim trim trim trim your emails... also, you're like 3 version behind. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message

Re: [PATCH 3.13 000/172] 3.13.6-stable review

2014-03-05 Thread Satoru Takeuchi
At Tue, 4 Mar 2014 12:01:24 -0800, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 3.13.6 release. There are 172 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.

[PATCH 1/6] staging/lustre/lnet: remove kiblnd_debug_conn/rx/tx

2014-03-05 Thread Peng Tao
They are not called by anyone and cause gcc warning: drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c:609: warning: ‘kiblnd_debug_conn’ defined but not used drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c:589: warning: ‘kiblnd_debug_rx’ defined but not used

[PATCH 3/6] staging/lustre/libcfs_string.h: don't export internal functions

2014-03-05 Thread Peng Tao
cfs_expr_list_print is removed due to no callers. Other internal functions are held unexported. Cc: Andreas Dilger andreas.dil...@intel.com Cc: Oleg Drokin oleg.dro...@intel.com Signed-off-by: Peng Tao bergw...@gmail.com --- .../lustre/include/linux/libcfs/libcfs_string.h|3 ---

[PATCH 2/6] staging/lustre/libcfs: remove cfs_strncasecmp

2014-03-05 Thread Peng Tao
The only difference against generic strncasecmp() is that cfs_strncasecmp() check NULL pointers and zero length parameter, which all callers have already taken care of. Cc: Andreas Dilger andreas.dil...@intel.com Cc: Oleg Drokin oleg.dro...@intel.com Signed-off-by: Peng Tao bergw...@gmail.com ---

[PATCH 4/6] staging/lustre/libcfs: remove cfs_iswhite

2014-03-05 Thread Peng Tao
Kernel provides isspace(). Cc: Andreas Dilger andreas.dil...@intel.com Cc: Oleg Drokin oleg.dro...@intel.com Signed-off-by: Peng Tao bergw...@gmail.com --- .../lustre/include/linux/libcfs/libcfs_string.h| 15 --- drivers/staging/lustre/lnet/lnet/config.c | 12

Re: [PATCH 0/3] HID: multitouch cleanups and support for fancy devices

2014-03-05 Thread Jiri Kosina
On Fri, 28 Feb 2014, Benjamin Tissoires wrote: - the first patch is mainly a way for us to reduce the work load regarding hid-mt when device makers ask for an inclusion in the kernel. Also, I have been notified that a Quanta 3008 was not working, and it occurs that this particular

[PATCH 5/6] staging/lustre/libcfs: remove obsolete function declaration

2014-03-05 Thread Peng Tao
Cc: Andreas Dilger andreas.dil...@intel.com Cc: Oleg Drokin oleg.dro...@intel.com Signed-off-by: Peng Tao bergw...@gmail.com --- .../lustre/include/linux/libcfs/libcfs_string.h| 12 1 files changed, 0 insertions(+), 12 deletions(-) diff --git

[PATCH 6/6] staging/lustre/libcfs: remove NIDSTR_LOCK/UNLOCK

2014-03-05 Thread Peng Tao
Cc: Andreas Dilger andreas.dil...@intel.com Cc: Oleg Drokin oleg.dro...@intel.com Signed-off-by: Peng Tao bergw...@gmail.com --- drivers/staging/lustre/lustre/libcfs/nidstrings.c |7 ++- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git

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