Re: [PATCH 1/4] PM / Wakeirq: Add minimal device wakeirq helper functions

2015-03-06 Thread Tony Lindgren
* Alan Stern st...@rowland.harvard.edu [150306 11:05]: On Fri, 6 Mar 2015, Tony Lindgren wrote: + struct wakeirq_source *wirq = _wirq; + irqreturn_t ret = IRQ_NONE; + + /* We don't want RPM_ASYNC or RPM_NOWAIT here */ + if

Re: [PATCH] bgmac: ratelimit warning messages

2015-03-06 Thread Rafał Miłecki
On 6 March 2015 at 19:17, Peter Senna Tschudin peter.se...@gmail.com wrote: On my test environment the troughput of a file transfer drops from 4.4Mbps to 116Kbps due the number of repeated warning messages. Adding printk_ratelimit() solves the issue without removing the warning message.

[PATCH v2] clk: qcom: Properly change rates for ahbix clock

2015-03-06 Thread Stephen Boyd
The ahbix clock can never be turned off in practice. To change the rates we need to switch the mux off the M/N counter to an always on source (XO), reprogram the M/N counter to get the rate we want and finally switch back to the M/N counter. Add a new ops structure for this type of clock so that

[PATCH] RFT: HID: i2c-hid: Fix suspend/resume when already runtime suspended

2015-03-06 Thread Doug Anderson
If the i2c-hid device was runtime suspended and then the system suspended itself we'd end up disabling interrupts twice (in i2c_hid_runtime_suspend and i2c_hid_suspend) and not reenabling them until later when the i2c-hid device was runtime resumed. Unfortunately the i2c_hid_resume() calls

Re: [REGRESSION in 3.18][PPC] PA Semi fails to boot after: of/base: Fix PowerPC address parsing hack

2015-03-06 Thread Olof Johansson
On Fri, Mar 6, 2015 at 2:56 PM, Benjamin Herrenschmidt b...@kernel.crashing.org wrote: On Fri, 2015-03-06 at 10:00 -0500, Steven Rostedt wrote: On Fri, 06 Mar 2015 15:18:42 +1100 Benjamin Herrenschmidt b...@kernel.crashing.org wrote: Can you shoot me the DT (/proc/device-tree in a tarball)

Re: [x86/asm/entry] BUG: unable to handle kernel paging request

2015-03-06 Thread Andy Lutomirski
On Fri, Mar 6, 2015 at 3:30 PM, Fengguang Wu fengguang...@intel.com wrote: Greetings, 0day kernel testing robot got the below dmesg and the first bad commit is git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/asm commit 75182b1632a89f12540baa1806a7c5c180db620c Author: Andy

Re: [PATCH v2 01/15] x86, kaslr: Use init_size instead of run_size

2015-03-06 Thread Yinghai Lu
On Fri, Mar 6, 2015 at 11:56 AM, Kees Cook keesc...@chromium.org wrote: On Fri, Mar 6, 2015 at 11:28 AM, Yinghai Lu ying...@kernel.org wrote: Okay, I've proven this to myself now. :) I think it would be valuable to call out that brk and bss are included in the _end calculation. For others: ...

[PATCH 0/3] mtd: nand: add Broadcom NAND controller support

2015-03-06 Thread Brian Norris
Hi, This adds (long in coming) support for the Broadcom BCM7xxx Set-Top Box NAND controller. This controller has been used in a variety of Broadcom SoCs. There are a few more features I'd like add in the near future, mostly to support more SoCs, but this is the base set, which should only need

[PATCH 1/3] mtd: nand: add common DT init code

2015-03-06 Thread Brian Norris
These are already-documented common bindings for NAND chips. Let's handle them in nand_base. If NAND controller drivers need to act on this data before bringing up the NAND chip (e.g., fill out ECC callback functions, change HW modes, etc.), then they can do so between calling nand_scan_ident()

[PATCH 3/3] mtd: nand: add NAND driver for Broadcom STB NAND controller

2015-03-06 Thread Brian Norris
This core originated in Set-Top Box chips (BCM7xxx) but is used in a variety of other Broadcom chips, including some BCM63xxx, BCM33xx, and iProc/Cygnus. It's been used only on ARM and MIPS SoCs, so restrict it to those architectures. There are multiple revisions of this core throughout the

Re: softlockups in multi_cpu_stop

2015-03-06 Thread Jason Low
On Fri, 2015-03-06 at 14:15 -0800, Davidlohr Bueso wrote: On Fri, 2015-03-06 at 13:12 -0800, Jason Low wrote: In owner_running() there are 2 conditions that would make it return false: if the owner changed or if the owner is not running. However, that patch continues spinning if there is a

Re: softlockups in multi_cpu_stop

2015-03-06 Thread Ming Lei
On Fri, 06 Mar 2015 14:15:37 -0800 Davidlohr Bueso d...@stgolabs.net wrote: On Fri, 2015-03-06 at 13:12 -0800, Jason Low wrote: In owner_running() there are 2 conditions that would make it return false: if the owner changed or if the owner is not running. However, that patch continues

Rcceiving a generic netlink multicast - should be restricted to the root user?

2015-03-06 Thread Craig Davison
I wrote a kernel module that sends generic Netlink multicasts, and wrote a userland client using libmnl that receives them. That all works fine, but my client works even when it's not the root user. man 7 netlink says: Only processes with an effective UID of 0 or the CAP_NET_ADMIN capability

Re: softlockups in multi_cpu_stop

2015-03-06 Thread Davidlohr Bueso
On Sat, 2015-03-07 at 09:55 +0800, Ming Lei wrote: On Fri, 06 Mar 2015 14:15:37 -0800 Davidlohr Bueso d...@stgolabs.net wrote: On Fri, 2015-03-06 at 13:12 -0800, Jason Low wrote: In owner_running() there are 2 conditions that would make it return false: if the owner changed or if the

[PATCH] perf, tools, script: Always print raw IP

2015-03-06 Thread Andi Kleen
From: Andi Kleen a...@linux.intel.com Fix regression caused by 85c116a6cb We did not print the IP anymore for perf script -o ip, but instead symbol+offset, and if there was no symbol only +offset. Print the raw IP correctly again in this case. Reported-by: Yuanfang Chen cyf...@gmail.com Cc:

€950,000.00 euro

2015-03-06 Thread Qatar Foundation
Liebe Begünstigte, Sie wurden ausgewählt, um (€ 950.000,00 EURO) als Charity-Spenden / Hilfe der Qatar Foundation erhalten. Kontaktieren Sie uns über E-Mail für weitere Informationen; Mit freundlichen Grüßen, Ingenieur Saad Al Muhannadi. Kontakt e-mail: qatarfoundationinternatio...@gmail.com

Re: [PATCH] i2c: imx: add required clocks property to binding

2015-03-06 Thread Wolfram Sang
On Tue, Mar 03, 2015 at 11:57:08AM -0500, Matt Porter wrote: A clock specifier is required for i.MX I2C and is provided in all DTS implementations. Add this to the list of required properties in the binding. Signed-off-by: Matt Porter mpor...@konsulko.com Applied to for-current, thanks!

Re: [PATCH] i2c: designware: Suppress error message if platform_get_irq() returns -EPROBE_DEFER

2015-03-06 Thread Wolfram Sang
Presented like this I wonder if this merits being a dev_err at all. Wouldn't dev_dbg be more adequate? This might remove the need for the condition and also avoid bothering everyone if something in the platform device structures or device tree is not right. return irq; /*

[PATCH] crypto: powerpc - move files to fix build error

2015-03-06 Thread Kim Phillips
The current cryptodev-2.6 tree commits: d9850fc529ef (crypto: powerpc/sha1 - kernel config) 50ba29aaa7b0 (crypto: powerpc/sha1 - glue) failed to properly place files under arch/powerpc/crypto, which leads to build errors: make[1]: *** No rule to make target 'arch/powerpc/crypto/sha1-spe-asm.o',

Re: [RFC 0/8] pmem: Submission of the Persistent memory block device

2015-03-06 Thread Christoph Hellwig
On Fri, Mar 06, 2015 at 11:37:45AM -0700, Ross Zwisler wrote: Regarding the PMEM series, my group has been working on an updated version of this driver for the past 6 months or so since I initially posted the beginnings of this series: https://lkml.org/lkml/2014/8/27/674 That new version

[PATCH 1/2] i2c_imc: New driver for Intel's iMC, found on LGA2011 chips

2015-03-06 Thread Andy Lutomirski
Sandy Bridge Xeon and Extreme chips have integrated memory controllers with (rather limited) onboard SMBUS masters. This driver gives access to the bus. There are various groups working on standardizing a way to arbitrate access to the bus between the OS, SMM firmware, a BMC, hardware thermal

[PATCH 12/12] clocksource: Add some debug info about clocksources being registered

2015-03-06 Thread John Stultz
Print the mask, max_cycles, and max_idle_ns values for clocksources being registered. Cc: Dave Jones da...@codemonkey.org.uk Cc: Linus Torvalds torva...@linux-foundation.org Cc: Thomas Gleixner t...@linutronix.de Cc: Richard Cochran richardcoch...@gmail.com Cc: Prarit Bhargava pra...@redhat.com

[PATCH 02/12] clocksource: Simplify logic around clocksource wrapping saftey margins

2015-03-06 Thread John Stultz
The clocksource logic has a number of places where we try to include a safety margin. Most of these are 12% safety margins, but they are inconsistently applied and sometimes are applied on top of each other. Additionally, in the previous patch, we corrected an issue where we unintentionally in

[PATCH 2/2] i2c, i2c_imc: Add DIMM bus code

2015-03-06 Thread Andy Lutomirski
Add i2c_scan_dimm_bus to declare that a particular i2c_adapter contains DIMMs. This will probe (and autoload modules!) for useful SMBUS devices that live on DIMMs. i2c_imc calls it. As more SMBUS-addressable DIMM components become supported, this code can be extended to probe for them.

[PATCH 10/12] clocksource: Mostly kill clocksource_register()

2015-03-06 Thread John Stultz
A long running project has been to cleanup remaining uses of clocksource_register(), replacing it with the simpler clocksource_register_khz/hz(). However, there are a few cases where we need to self-define our mult/shift values, so switch the function to a more obviously internal

[PATCH 05/12] time: Add debugging checks to warn if we see delays

2015-03-06 Thread John Stultz
Recently there's been some request for better sanity checking in the time code, so that its more clear when something is going wrong since timekeeping issues could manifest in a large number of strange ways with various subsystems. Thus, this patch adds some extra infrastructure to add a check

[PATCH 11/12] sparc: Convert to using clocksource_register_hz()

2015-03-06 Thread John Stultz
While cleaning up some clocksource code, I noticed the time_32 impelementation uses the hz2mult helper, but doesn't use the clocksource_register_hz() method. I don't believe the sparc clocksource is a default clocksource, so we shouldn't need to self-define the mult/shift pair. So convert the

[PATCH 07/12] time: Try to catch clocksource delta underflows

2015-03-06 Thread John Stultz
In the case where there is a broken clocksource where there are multiple actual clocks that aren't perfectly aligned, we may see small negative deltas when we subtract now from cycle_last. The values are actually negative with respect to the clocksource mask value, not necessarily negative if

[PATCH 3/6] Drivers: hv: hv_balloon: keep locks balanced on add_memory() failure

2015-03-06 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov vkuzn...@redhat.com When add_memory() fails the following BUG is observed: [ 743.646107] hv_balloon: hot_add memory failed error is -17 [ 743.679973] [ 743.680930] = [ 743.680930] [ BUG: bad unlock balance detected! ] [ 743.680930]

[PATCH 1/6] Drivers: hv: vmbus: Export the vmbus_sendpacket_pagebuffer_ctl()

2015-03-06 Thread K. Y. Srinivasan
Export the vmbus_sendpacket_pagebuffer_ctl() interface. Signed-off-by: K. Y. Srinivasan k...@microsoft.com --- drivers/hv/channel.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/hv/channel.c b/drivers/hv/channel.c index da53180..e58cdb7 100644 ---

[PATCH 6/6] hv: vmbus: missing curly braces in vmbus_process_offer()

2015-03-06 Thread K. Y. Srinivasan
From: Dan Carpenter dan.carpen...@oracle.com The indenting makes it clear that there were curly braces intended here. Fixes: 2dd37cb81580 ('Drivers: hv: vmbus: Handle both rescind and offer messages in the same context') Signed-off-by: Dan Carpenter dan.carpen...@oracle.com Signed-off-by: K. Y.

Re: [patch] perf_event_open.2: 3.19 PERF_SAMPLE_REGS_INTR support

2015-03-06 Thread Andi Kleen
so if the sample_type has *both* PERF_SAMPLE_REGS_INTR and PERF_SAMPLE_REGS_USER set, then the PERF_SAMPLE_REGS_USER values will have the same register values as the PERF_SAMPLE_REGS_INTR values. It ultimatively calls this code: static void perf_sample_regs_user(struct perf_regs *regs_user,

Re: [PATCH 04/15] MIPS: Add sched_clock support

2015-03-06 Thread Deng-Cheng Zhu
On 03/06/2015 03:58 AM, Maciej W. Rozycki wrote: On Wed, 4 Mar 2015, Deng-Cheng Zhu wrote: This will provide sched_clock interface to implement individual read_sched_clock(). Not for CAVIUM_OCTEON_SOC as it defines its own sched_clock() directly (not using the sched_clock_register interface).

[PATCH] kernel/locking/locktorture: fix deadlock in 'rw_lock_irq' type

2015-03-06 Thread Alexey Kodanev
torture_rwlock_read_unlock_irq() must use read_unlock_irqrestore() instead of write_unlock_irqrestore(). Use read_unlock_irqrestore() instead of write_unlock_irqrestore(). Signed-off-by: Alexey Kodanev alexey.koda...@oracle.com --- kernel/locking/locktorture.c |2 +- 1 files changed, 1

Re: softlockups in multi_cpu_stop

2015-03-06 Thread Davidlohr Bueso
On Sat, 2015-03-07 at 10:10 +0800, Ming Lei wrote: On Sat, Mar 7, 2015 at 10:07 AM, Davidlohr Bueso d...@stgolabs.net wrote: On Sat, 2015-03-07 at 09:55 +0800, Ming Lei wrote: On Fri, 06 Mar 2015 14:15:37 -0800 Davidlohr Bueso d...@stgolabs.net wrote: On Fri, 2015-03-06 at 13:12 -0800,

[PATCH] rng: xgene-rng: add ACPI support for APM X-Gene RNG unit

2015-03-06 Thread Feng Kan
This adds ACPI support for APM X-Gene RNG unit. Signed-off-by: Feng Kan f...@apm.com --- drivers/char/hw_random/xgene-rng.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/char/hw_random/xgene-rng.c b/drivers/char/hw_random/xgene-rng.c index 23caa05..c37cf75 100644 ---

[x86/asm/entry] INFO: task swapper/0:1 blocked for more than 120 seconds.

2015-03-06 Thread Fengguang Wu
28855005be1d6a0a041de46fd2e61da2b796abff # 20:39153+ 0 Add linux-next specific files for 20150306 This script may reproduce the error. #!/bin/bash kernel=$1 kvm=( qemu-system-x86_64 -cpu kvm64 -enable-kvm

Re: [PATCH] firmware_class: Add firmware filename overrides

2015-03-06 Thread Marcel Holtmann
Hi Charles, Specifically this was motivated by a situation where we have one device with a dual-sourced touchscreen. Both use the same driver but have different hardware fw. Our FW updating software therefore, needs to be able to update with the correct FW and detect all this at runtime

[PATCHv2 net-next] net: stmmac: make reset control an optional requirement

2015-03-06 Thread dinguyen
From: Dinh Nguyen dingu...@opensource.altera.com Not having a reset control line to the ethernet controller should not be a hard failure. Instead, add support for deferred probing and just print out a debug statement. Signed-off-by: Dinh Nguyen dingu...@opensource.altera.com Cc: Vince Bridgers

Re: [PATCH] kernel/locking/locktorture: fix deadlock in 'rw_lock_irq' type

2015-03-06 Thread Paul E. McKenney
On Sat, Mar 07, 2015 at 03:06:53AM +0300, Alexey Kodanev wrote: torture_rwlock_read_unlock_irq() must use read_unlock_irqrestore() instead of write_unlock_irqrestore(). Use read_unlock_irqrestore() instead of write_unlock_irqrestore(). Signed-off-by: Alexey Kodanev

Re: [PATCH] [RFC] ARM: shmobile: R-Car Gen2: Add da9063/da9210 regulator quirk

2015-03-06 Thread Simon Horman
On Tue, Mar 03, 2015 at 09:44:06AM +, Mark Brown wrote: On Mon, Mar 02, 2015 at 06:28:43PM +0100, Geert Uytterhoeven wrote: The r8a7791/koelsch development board has da9063 and da9210 regulators. Both regulators have their interrupt request lines tied to the same interrupt pin (IRQ2) on

Re: [PATCH 1/4] PM / Wakeirq: Add minimal device wakeirq helper functions

2015-03-06 Thread Tony Lindgren
* Rafael J. Wysocki r...@rjwysocki.net [150306 16:19]: On Friday, March 06, 2015 03:05:40 PM Tony Lindgren wrote: Oh it naturally would not work in irq context, it's for the bottom half again. But I'll take a look if we can just call pm_request_resume() and disable_irq() on the wakeirq

Re: [PATCH] kernel/locking/locktorture: fix deadlock in 'rw_lock_irq' type

2015-03-06 Thread Paul E. McKenney
On Fri, Mar 06, 2015 at 05:03:00PM -0800, Davidlohr Bueso wrote: On Fri, 2015-03-06 at 16:37 -0800, Paul E. McKenney wrote: On Sat, Mar 07, 2015 at 03:06:53AM +0300, Alexey Kodanev wrote: torture_rwlock_read_unlock_irq() must use read_unlock_irqrestore() instead of

[PATCH 2/2] x86: Replace this_cpu_sp0 with current_top_of_stack and fix it on x86_32

2015-03-06 Thread Andy Lutomirski
I broke 32-bit kernels. The implementation of sp0 was correct as far as I can tell, but sp0 was much weirder on x86_32 than I realized. It has the following issues: - Init's sp0 is inconsistent with everything else's: non-init tasks are offset by 8 bytes. (I have no idea why, and the

[PATCH 0/2] x86: sp0 fixes

2015-03-06 Thread Andy Lutomirski
I broke x86_32 and I made an inadvertent change to both bitnesses. Undo the inadvertent change and fix x86_32. This isn't as pretty as I hoped. Sorry. Andy Lutomirski (2): x86: Delay loading sp0 slightly on task switch x86: Replace this_cpu_sp0 with current_top_of_stack and fix it on

[PATCH 1/2] x86: Delay loading sp0 slightly on task switch

2015-03-06 Thread Andy Lutomirski
The change: 75182b1632a8 x86/asm/entry: Switch all C consumers of kernel_stack to this_cpu_sp0() had the unintended side effect of changing the return value of current_thread_info() during part of the context switch process. Change it back. This has no effect as far as I can tell -- it's just

Re: softlockups in multi_cpu_stop

2015-03-06 Thread Davidlohr Bueso
On Fri, 2015-03-06 at 18:26 -0800, Davidlohr Bueso wrote: That's not what this is about. New lock _owners_ need to worry about ^^^ make that need not -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a

Re: softlockups in multi_cpu_stop

2015-03-06 Thread Jason Low
On Sat, 2015-03-07 at 11:08 +0800, Ming Lei wrote: On Sat, Mar 7, 2015 at 10:56 AM, Jason Low jason.l...@hp.com wrote: On Sat, 2015-03-07 at 10:10 +0800, Ming Lei wrote: On Sat, Mar 7, 2015 at 10:07 AM, Davidlohr Bueso d...@stgolabs.net wrote: On Sat, 2015-03-07 at 09:55 +0800, Ming Lei

Re: twl4030_charger: need changes to get probed?

2015-03-06 Thread Pavel Machek
On Sat 2015-03-07 00:12:07, Grazvydas Ignotas wrote: On Fri, Mar 6, 2015 at 11:57 PM, Pali Rohár pali.ro...@gmail.com wrote: On Friday 06 March 2015 22:24:17 Pavel Machek wrote: Hi! According to n900 dts, twl4030-bci (aka charger) should be included. AFAIK it is not present on

Re: [PATCH v5 1/6] clk: add of_clk_get_parent_rate function

2015-03-06 Thread Mike Turquette
Quoting Ray Jui (2015-03-06 12:07:13) Hi Mike, On 3/6/2015 11:55 AM, Mike Turquette wrote: Quoting Sascha Hauer (2015-02-26 00:43:19) On Wed, Feb 25, 2015 at 11:42:44PM -0800, Ray Jui wrote: On 2/25/2015 10:51 PM, Sascha Hauer wrote: On Wed, Feb 25, 2015 at 10:13:15PM -0800, Ray Jui

Re: [PATCH] kernel/locking/locktorture: fix deadlock in 'rw_lock_irq' type

2015-03-06 Thread Davidlohr Bueso
On Fri, 2015-03-06 at 16:37 -0800, Paul E. McKenney wrote: On Sat, Mar 07, 2015 at 03:06:53AM +0300, Alexey Kodanev wrote: torture_rwlock_read_unlock_irq() must use read_unlock_irqrestore() instead of write_unlock_irqrestore(). Use read_unlock_irqrestore() instead of

Re: [PATCH v5 tip 0/7] tracing: attach eBPF programs to kprobes

2015-03-06 Thread Steven Rostedt
On Wed, 4 Mar 2015 15:48:24 -0500 Steven Rostedt rost...@goodmis.org wrote: On Wed, 4 Mar 2015 21:33:16 +0100 Ingo Molnar mi...@kernel.org wrote: * Alexei Starovoitov a...@plumgrid.com wrote: On Sun, Mar 1, 2015 at 3:27 PM, Alexei Starovoitov a...@plumgrid.com wrote: Peter,

Re: softlockups in multi_cpu_stop

2015-03-06 Thread Jason Low
On Fri, 2015-03-06 at 13:24 -0800, Linus Torvalds wrote: On Fri, Mar 6, 2015 at 1:12 PM, Jason Low jason.l...@hp.com wrote: + while (true) { + if (sem-owner != owner) + break; That looks *really* odd. Why is this not while

[PATCH 09/12] clocksource: Improve clocksource watchdog reporting

2015-03-06 Thread John Stultz
The clocksource watchdog reporting has been less helpful then desired, as it just printed the delta between the two clocksources. This prevents any useful analysis of why the skew occurred. Thus this patch tries to improve the output when we mark a clocksource as unstable, printing out the cycle

[PATCH 08/12] time: Add warnings when overflows or underflows are observed

2015-03-06 Thread John Stultz
It was suggested that the underflow/overflow protection should probably throw some sort of warning out, rather then just silently fixing the issue. So this patch adds some warnings here. The flag variables used are not protected by locks, but since we can't print from the reading functions, just

[PATCH 01/12] clocksource: Simplify clocks_calc_max_nsecs logic

2015-03-06 Thread John Stultz
The previous clocks_calc_max_nsecs had some unecessarily complex bit logic to find the max interval that could cause multiplication overflows. Since this is not in the hot path, just do the divide to make it easier to read. The previous implementation also had a subtle issue that it avoided

[PATCH 03/12] clocksource: Remove clocksource_max_deferment()

2015-03-06 Thread John Stultz
clocksource_max_deferment() doesn't do anything useful anymore, so zap it. Cc: Dave Jones da...@codemonkey.org.uk Cc: Linus Torvalds torva...@linux-foundation.org Cc: Thomas Gleixner t...@linutronix.de Cc: Richard Cochran richardcoch...@gmail.com Cc: Prarit Bhargava pra...@redhat.com Cc: Stephen

[PATCH 0/2] i2c_imc: New driver, at long last

2015-03-06 Thread Andy Lutomirski
This adds i2c_imc, a driver for the SMBUS lines on DIMM slots on modern Intel server chips. Conceptually, I like it a lot -- it's a driver for a bus for which we know the exact topology a priori. That means that we can actually enumerate the things on the bus reasonably cleanly. This driver is

[PATCH 04/12] clocksource: Add max_cycles to clocksource structure

2015-03-06 Thread John Stultz
In order to facilitate some clocksource validation, add a max_cycles entry to the structure which will hold the maximum cycle value that can safely be multiplied without potentially causing an overflow. Cc: Dave Jones da...@codemonkey.org.uk Cc: Linus Torvalds torva...@linux-foundation.org Cc:

[PATCH 00/12] Increased clocksource validation and cleanups (v3)

2015-03-06 Thread John Stultz
So Ingo asked me to resend this series, which is the result of earlier discussions with Linus and his suggestions around improvements to clocksource validation in the hope we can more easily catch bad hardware. There's also a few cleanups Linus suggested as well as a few I've been meaning to get

[PATCH 06/12] time: Add infrastructure to cap clocksource reads to the max_cycles value

2015-03-06 Thread John Stultz
When calculating the current delta since the last tick, we currently have no hard protections to prevent a multiplciation overflow from ocurring. This patch introduces infrastructure to allow a capp that limits the read delta value to the max_cycles value, which is where an overflow would occur.

Re: [RFC PATCH 00/18] ARM: msm multiplatform support

2015-03-06 Thread dwalker
On Wed, Mar 04, 2015 at 08:32:54PM +0100, Arnd Bergmann wrote: This is my final piece of the puzzle for ARMv6/v7 multiplatform support. In combination with the other patches that are now at git://kernel.org/pub/scm/linux/kernel/git/arnd/playground.git multiplatform-4.0-rc2 and the at91 and

Re: softlockups in multi_cpu_stop

2015-03-06 Thread Davidlohr Bueso
On Sat, 2015-03-07 at 11:08 +0800, Ming Lei wrote: On Sat, Mar 7, 2015 at 10:56 AM, Jason Low jason.l...@hp.com wrote: On Sat, 2015-03-07 at 10:10 +0800, Ming Lei wrote: On Sat, Mar 7, 2015 at 10:07 AM, Davidlohr Bueso d...@stgolabs.net wrote: On Sat, 2015-03-07 at 09:55 +0800, Ming Lei

Re: twl4030_charger: need changes to get probed?

2015-03-06 Thread Pali Rohár
On Friday 06 March 2015 23:40:34 Pavel Machek wrote: On Sat 2015-03-07 00:12:07, Grazvydas Ignotas wrote: On Fri, Mar 6, 2015 at 11:57 PM, Pali Rohár pali.ro...@gmail.com wrote: On Friday 06 March 2015 22:24:17 Pavel Machek wrote: Hi! According to n900 dts, twl4030-bci (aka

[ANNOUNCE] Git v2.3.2

2015-03-06 Thread Junio C Hamano
The latest maintenance release Git v2.3.2 is now available at the usual places. The tarballs are found at: https://www.kernel.org/pub/software/scm/git/ The following public repositories all have a copy of the 'v2.3.2' tag and the 'maint' branch that the tag points at: url =

[PATCH] toshiba_acpi: Update events in toshiba_acpi_notify

2015-03-06 Thread Azael Avalos
This patch adds a few more events sent to TOS devices, some of them are already identified, while some others simply print a message informing the type of event received. Also, a netlink event is generated so that userspace apps, daemons, etc. act accordingly to these events. Signed-off-by:

[PATCH] MAINTAINERS: Add missing Toshiba devices and add myself as maintainer

2015-03-06 Thread Azael Avalos
Add the missing toshiba_bluetooth and toshiba_haps entries and add myself as their maintainer. Also add the Maintainers entry for toshiba_acpi driver and change its status to maintained. Signed-off-by: Azael Avalos coproscef...@gmail.com --- MAINTAINERS | 15 ++- 1 file changed, 14

Re: softlockups in multi_cpu_stop

2015-03-06 Thread Ming Lei
On Sat, Mar 7, 2015 at 10:07 AM, Davidlohr Bueso d...@stgolabs.net wrote: On Sat, 2015-03-07 at 09:55 +0800, Ming Lei wrote: On Fri, 06 Mar 2015 14:15:37 -0800 Davidlohr Bueso d...@stgolabs.net wrote: On Fri, 2015-03-06 at 13:12 -0800, Jason Low wrote: In owner_running() there are 2

Re: [RFC] With 8250 Designware UART, if writes to the LCR failed the kernel will hung up

2015-03-06 Thread Tim Kryger
You only hit the silicon bug if you bombard the uart with characters and simultaneously request a baud rate or framing change. I'm not sure why you would do either to the uart console. Is it possible your host machine is doing something weird? If you have the leverage, remind the SoC vendor to

Commemorative linux-1.0-3.19 compressed tarball

2015-03-06 Thread Con Kolivas
As I did prior to the linux-3.0 release, I've created a commemorative tarball of all stable point releases from linux 1.0 to linux 3.19 to commemorate the upcoming 4.0 release, excluding minor point releases. http://ck.kolivas.org/linux-1.0-3.19.tar.lrz This was a 29GB tarball compressed to

[PATCH 0/6] Drivers: hv: Miscellaneous fixes

2015-03-06 Thread K. Y. Srinivasan
This patch-set has miscellaneous fixes for both the VMBUS as well as the balloon driver. Dan Carpenter (1): hv: vmbus: missing curly braces in vmbus_process_offer() K. Y. Srinivasan (2): Drivers: hv: vmbus: Export the vmbus_sendpacket_pagebuffer_ctl() Drivers: hv: vmbus: Perform device

[PATCH 2/6] Drivers: hv: vmbus: Perform device register in the per-channel work element

2015-03-06 Thread K. Y. Srinivasan
This patch is a continuation of the rescind handling cleanup work. We cannot block in the global message handling work context especially if we are blocking waiting for the host to wake us up. I would like to thank Dexuan Cui de...@microsoft.com for observing this problem. Signed-off-by: K. Y.

[PATCH 4/6] Drivers: hv: hv_balloon: don't lose memory when onlining order is not natural

2015-03-06 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov vkuzn...@redhat.com Memory blocks can be onlined in random order. When this order is not natural some memory pages are not onlined because of the redundant check in hv_online_page(). Here is a real world scenario: 1) Host tries to hot-add the following (process_hot_add):

[PATCH 5/6] Correcting truncation error for constant HV_CRASH_CTL_CRASH_NOTIFY

2015-03-06 Thread K. Y. Srinivasan
From: Nick Meier nme...@microsoft.com HV_CRASH_CTL_CRASH_NOTIFY is a 64 bit number. Depending on the usage context, the value may be truncated. This patch is in response from the following email from Intel: [char-misc:char-misc-testing 25/45] drivers/hv/vmbus_drv.c:67:9: sparse:

[PATCH RESEND] block:bounce: fix call inc_|dec_zone_page_state on different pages confuse value of NR_BOUNCE

2015-03-06 Thread Wang YanQing
Commit d2c5e30c9a1420902262aa923794d2ae4e0bc391 ([PATCH] zoned vm counters: conversion of nr_bounce to per zone counter) convert statistic of nr_bounce to per zone and one global value in vm_stat, but it call call inc_|dec_zone_page_state on different pages, then different zones, and cause we get

Re: [PATCH 1/4] PM / Wakeirq: Add minimal device wakeirq helper functions

2015-03-06 Thread Rafael J. Wysocki
On Friday, March 06, 2015 03:05:40 PM Tony Lindgren wrote: * Alan Stern st...@rowland.harvard.edu [150306 11:05]: On Fri, 6 Mar 2015, Tony Lindgren wrote: + struct wakeirq_source *wirq = _wirq; + irqreturn_t ret = IRQ_NONE; + + /* We don't want RPM_ASYNC or

Re: [PATCH 2/7] soc/fman: Add the FMan FLIB

2015-03-06 Thread Scott Wood
On Wed, 2015-03-04 at 23:45 -0600, Emil Medve wrote: From: Igal Liberman igal.liber...@freescale.com Signed-off-by: Igal Liberman igal.liber...@freescale.com --- drivers/soc/Kconfig |1 + drivers/soc/Makefile |1 + drivers/soc/fsl/Kconfig |1 +

Re: [PATCH 2/2] crypto: caam_rng: fix rng_unmap_ctx's DMA_UNMAP size problem

2015-03-06 Thread Kim Phillips
On Fri, 6 Mar 2015 10:34:42 +0800 yanjiang@windriver.com wrote: From: Yanjiang Jin yanjiang@windriver.com Fix rng_unmap_ctx's DMA_UNMAP size problem for caam_rng, else system would report the below calltrace during cleanup caam_rng. Since rng_create_sh_desc() creates a fixed

Re: [PATCH 1/2] Input: add support for Semtech SX8654 I2C touchscreen controller

2015-03-06 Thread Dmitry Torokhov
On Fri, Mar 06, 2015 at 10:21:55AM -0800, Dmitry Torokhov wrote: On Fri, Mar 06, 2015 at 07:21:38PM +0100, Sébastien Szymanski wrote: Signed-off-by: Sébastien Szymanski sebastien.szyman...@armadeus.com --- drivers/input/touchscreen/Kconfig | 11 ++ drivers/input/touchscreen/Makefile |

Re: softlockups in multi_cpu_stop

2015-03-06 Thread Davidlohr Bueso
On Sat, 2015-03-07 at 10:55 +0800, Ming Lei wrote: On Sat, Mar 7, 2015 at 10:29 AM, Davidlohr Bueso d...@stgolabs.net wrote: On Fri, 2015-03-06 at 18:26 -0800, Davidlohr Bueso wrote: That's not what this is about. New lock _owners_ need to worry about

Re: [PATCH] firmware_class: Add firmware filename overrides

2015-03-06 Thread Charles Mooney
On Thu, Mar 5, 2015 at 5:27 PM, Ming Lei ming@canonical.com wrote: On Fri, Mar 6, 2015 at 6:36 AM, Dmitry Torokhov d...@chromium.org wrote: On Thu, Mar 5, 2015 at 2:12 PM, Marcel Holtmann mar...@holtmann.org wrote: Hi Dmitry, Specifically this was motivated by a situation where we have

Re: [Patch v2] apple-gmux: lock iGP IO to protect from vgaarb changes

2015-03-06 Thread Bruno Prémont
On Fri, 06 March 2015 Darren Hart dvh...@infradead.org wrote: On Thu, Mar 05, 2015 at 11:20:38PM +0100, Bruno Prémont wrote: As GMUX depends on IO for iGP to be enabled and active, lock the IO at vgaarb level. This should prevent GPU driver for dGPU to disable IO for iGP while it tries to

Re: [PATCH 1/2] crypto: caamhash: - fix uninitialized edesc-sec4_sg_bytes field

2015-03-06 Thread Kim Phillips
On Fri, 6 Mar 2015 10:34:41 +0800 yanjiang@windriver.com wrote: From: Yanjiang Jin yanjiang@windriver.com sec4_sg_bytes not being properly initialized causes ahash_done to try to free unallocated DMA memory: caam_jr ffe301000.jr: DMA-API: device driver tries to free DMA memory it

Re: softlockups in multi_cpu_stop

2015-03-06 Thread Ming Lei
On Sat, Mar 7, 2015 at 10:29 AM, Davidlohr Bueso d...@stgolabs.net wrote: On Fri, 2015-03-06 at 18:26 -0800, Davidlohr Bueso wrote: That's not what this is about. New lock _owners_ need to worry about ^^^ make that need not Sorry, could you

Re: softlockups in multi_cpu_stop

2015-03-06 Thread Jason Low
On Sat, 2015-03-07 at 10:10 +0800, Ming Lei wrote: On Sat, Mar 7, 2015 at 10:07 AM, Davidlohr Bueso d...@stgolabs.net wrote: On Sat, 2015-03-07 at 09:55 +0800, Ming Lei wrote: On Fri, 06 Mar 2015 14:15:37 -0800 Davidlohr Bueso d...@stgolabs.net wrote: On Fri, 2015-03-06 at 13:12 -0800,

Re: softlockups in multi_cpu_stop

2015-03-06 Thread Ming Lei
On Sat, Mar 7, 2015 at 10:56 AM, Jason Low jason.l...@hp.com wrote: On Sat, 2015-03-07 at 10:10 +0800, Ming Lei wrote: On Sat, Mar 7, 2015 at 10:07 AM, Davidlohr Bueso d...@stgolabs.net wrote: On Sat, 2015-03-07 at 09:55 +0800, Ming Lei wrote: On Fri, 06 Mar 2015 14:15:37 -0800 Davidlohr

Re: softlockups in multi_cpu_stop

2015-03-06 Thread Ming Lei
On Sat, Mar 7, 2015 at 11:10 AM, Davidlohr Bueso d...@stgolabs.net wrote: On Sat, 2015-03-07 at 10:55 +0800, Ming Lei wrote: On Sat, Mar 7, 2015 at 10:29 AM, Davidlohr Bueso d...@stgolabs.net wrote: On Fri, 2015-03-06 at 18:26 -0800, Davidlohr Bueso wrote: That's not what this is about. New

Re: [PATCH v3 5/9] mtd: pxa3xx_nand: add support for the Marvell Berlin nand controller

2015-03-06 Thread Ezequiel Garcia
Hi Antoine, On 03/05/2015 08:31 AM, Antoine Tenart wrote: [..] + +static struct pxa3xx_nand_flash berlin_builtin_flash_types[] = { +{ 4GiB 8-bit,0xd7ec, 128, 8192, 8, 8, 4096 }, +{ }, IMHO, supporting a specific flash shouldn't be part of this patch. In any case, why do you need

Re: softlockups in multi_cpu_stop

2015-03-06 Thread Davidlohr Bueso
On Sat, 2015-03-07 at 11:19 +0800, Ming Lei wrote: On Sat, Mar 7, 2015 at 11:10 AM, Davidlohr Bueso d...@stgolabs.net wrote: On Sat, 2015-03-07 at 10:55 +0800, Ming Lei wrote: On Sat, Mar 7, 2015 at 10:29 AM, Davidlohr Bueso d...@stgolabs.net wrote: On Fri, 2015-03-06 at 18:26 -0800,

Re: softlockups in multi_cpu_stop

2015-03-06 Thread Ming Lei
On Sat, Mar 7, 2015 at 11:17 AM, Jason Low jason.l...@hp.com wrote: On Sat, 2015-03-07 at 11:08 +0800, Ming Lei wrote: On Sat, Mar 7, 2015 at 10:56 AM, Jason Low jason.l...@hp.com wrote: On Sat, 2015-03-07 at 10:10 +0800, Ming Lei wrote: On Sat, Mar 7, 2015 at 10:07 AM, Davidlohr Bueso

[PATCH] NVMe: Fix error handling of class_create(nvme)

2015-03-06 Thread Alexey Khoroshilov
class_create() returns ERR_PTR on failure, so IS_ERR() should be used instead of check for NULL. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov khoroshi...@ispras.ru --- drivers/block/nvme-core.c | 4 +++- 1 file changed, 3 insertions(+), 1

Re: [PATCH] x86: clean up unnecessarily wide TEST insns

2015-03-06 Thread Linus Torvalds
On Fri, Mar 6, 2015 at 2:24 PM, Andi Kleen a...@firstfloor.org wrote: It also results in expensive LCP stalls. BS, Andi. That's only true for prefixed operations - ie 16-bit data or address overrides. There are no stalls from using 8-bit instruction forms. Now, changing from 64-bit or 32-bit

Re: [PATCH 1/4] PM / Wakeirq: Add minimal device wakeirq helper functions

2015-03-06 Thread Rafael J. Wysocki
On Friday, March 06, 2015 02:05:43 PM Alan Stern wrote: On Fri, 6 Mar 2015, Tony Lindgren wrote: + struct wakeirq_source *wirq = _wirq; + irqreturn_t ret = IRQ_NONE; + + /* We don't want RPM_ASYNC or RPM_NOWAIT here */ + if

Re: [REGRESSION in 3.18][PPC] PA Semi fails to boot after: of/base: Fix PowerPC address parsing hack

2015-03-06 Thread Steven Rostedt
On Sat, 07 Mar 2015 09:56:22 +1100 Benjamin Herrenschmidt b...@kernel.crashing.org wrote: In the meantime, try that patch: It boots for me. Tested-by: Steven Rostedt rost...@goodmis.org -- Steve -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a

[VFS] WARNING: CPU: 0 PID: 151 at fs/dcache.c:406 dput()

2015-03-06 Thread Fengguang Wu
-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip # extra tests on tree/branch next/master git bisect good 28855005be1d6a0a041de46fd2e61da2b796abff # 02:05 60+ 0 Add linux-next specific files for 20150306 This script may reproduce the error

RE: [PATCH] Drivers: hv: hv_balloon: keep locks balanced on add_memory() failure

2015-03-06 Thread KY Srinivasan
-Original Message- From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] Sent: Monday, March 2, 2015 2:34 AM To: KY Srinivasan Cc: de...@linuxdriverproject.org; Haiyang Zhang; linux- ker...@vger.kernel.org; Dexuan Cui Subject: Re: [PATCH] Drivers: hv: hv_balloon: keep locks balanced

[PATCH 2/3] Documentation: devicetree: add binding doc for Broadcom NAND controller

2015-03-06 Thread Brian Norris
Signed-off-by: Brian Norris computersforpe...@gmail.com --- .../devicetree/bindings/mtd/brcmstb_nand.txt | 109 + 1 file changed, 109 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/brcmstb_nand.txt diff --git

Re: [PATCH] x86: clean up unnecessarily wide TEST insns

2015-03-06 Thread Denys Vlasenko
On Fri, Mar 6, 2015 at 11:24 PM, Andi Kleen a...@firstfloor.org wrote: Denys Vlasenko dvlas...@redhat.com writes: By the nature of TEST operation, it is often possible to test a narrower part of the operand: testl $3, mem - testb $3, mem, testq $3, %rcx - testb $3, %cl This results

Re: [REGRESSION in 3.18][PPC] PA Semi fails to boot after: of/base: Fix PowerPC address parsing hack

2015-03-06 Thread Benjamin Herrenschmidt
On Fri, 2015-03-06 at 10:00 -0500, Steven Rostedt wrote: On Fri, 06 Mar 2015 15:18:42 +1100 Benjamin Herrenschmidt b...@kernel.crashing.org wrote: Can you shoot me the DT (/proc/device-tree in a tarball) ? Attached. This is indeed a bug in their DT. We might want to add quirks for

Re: [PATCH 2/6] pm: at91: move the copying the sram function to the sram initializationi phase

2015-03-06 Thread Sylvain Rochet
Hello Wenyou, On Thu, Feb 12, 2015 at 10:46:49AM +0800, Wenyou Yang wrote: To decrease the suspend time, move copying the sram function to the sram initialization phase, instead of every time go to suspend. In the meanwhile, substitute fncpy() for memcpy(). If there is no sram allocated

  1   2   3   4   5   6   7   8   9   10   >