Re: [PATCH v2 3/4] thermal: Added Bang-bang thermal governor

2014-04-29 Thread Peter Feuerer
Javi Merino writes: On Tue, Apr 29, 2014 at 10:17:56AM +0100, Peter Feuerer wrote: The bang-bang thermal governor uses a hysteresis to switch abruptly on or off a cooling device. It is intended to control fans, which can not be throttled but just switched on or off. Bang-bang cannot be set

Re: [RESEND PATCH v3 2/5] charger: tps65090: Allow charger module to be used when no irq

2014-04-29 Thread Doug Anderson
Anton, On Wed, Apr 23, 2014 at 8:56 AM, Doug Anderson diand...@chromium.org wrote: On the ARM Chromebook tps65090 has two masters: the AP (the main processor running linux) and the EC (the embedded controller). The AP is allowed to mess with FETs but the EC is in charge of charge control.

Re: [PATCH v2 4/4] acerhdf: Use bang-bang thermal governor

2014-04-29 Thread Peter Feuerer
Javi Merino writes: On Tue, Apr 29, 2014 at 10:17:57AM +0100, Peter Feuerer wrote: acerhdf has been doing an on-off fan control using hysteresis by post-manipulating the outcome of thermal subsystem trip point handling. This patch enables acerhdf to use the bang-bang governor, which is

Re: [PATCH 0/3] Emulate VMXON region correctly

2014-04-29 Thread Bandan Das
Jan Kiszka jan.kis...@siemens.com writes: On 2014-04-28 07:00, Bandan Das wrote: Reference: https://bugzilla.kernel.org/show_bug.cgi?id=54521 The vmxon region is unused by nvmx, but adding these checks are probably harmless and may detect buggy L1 hypervisors in the future! Nice and

Re: 64bit x86: NMI nesting still buggy?

2014-04-29 Thread Jiri Kosina
On Tue, 29 Apr 2014, Steven Rostedt wrote: You keep saying 38.4, but I don't see any 38.4. Perhaps you meant 34.8? Yeah, sorry for the typo. Which BTW is this: 34.8 NMI HANDLING WHILE IN SMM [ ... snip ... ] Read the first paragraph. That sounds like normal operation. The

Re: [PATCH 2/3] KVM: nVMX: additional checks on vmxon region

2014-04-29 Thread Bandan Das
Jan Kiszka jan.kis...@siemens.com writes: On 2014-04-28 07:00, Bandan Das wrote: Currently, the vmxon region isn't used in the nested case. However, according to the spec, the vmxon instruction performs additional sanity checks on this region and the associated pointer. Modify emulated vmxon

Re: [PATCH 5/5] devfreq: exynos5: Use devm_devfreq_* function using device resource management

2014-04-29 Thread Sachin Kamat
Hi Chanwoo, On 25 April 2014 14:38, Chanwoo Choi cw00.c...@samsung.com wrote: This patch uses devm_devfreq_add_device()/devm_devfreq_register_opp_notifier() to control automatically the resource of devfreq. Signed-off-by: Chanwoo Choi cw00.c...@samsung.com Cc: Kukjin Kim

[PATCH] staging: android: fix missing a blank line after declarations

2014-04-29 Thread Seunghun Lee
This patch fixes Missing a blank line after declarations warnings. Signed-off-by: Seunghun Lee way...@gmail.com --- drivers/staging/android/alarm-dev.c |1 + drivers/staging/android/binder.c | 37 + drivers/staging/android/ion/ion.c

[PATCH v3 1/1] Driver for Beckhoff CX5020 EtherCAT master module.

2014-04-29 Thread Darek Marcinkiewicz
Changes since v2: * removed all checkpatch warnings * driver makes use of device rx fifo Changes since v1: * added endianess annotation to descriptors' structures * killed checkpath warnings about string literals being split into multiple lines

Re: [PATCH RESEND] mmc: core: Improve support for deferred regulators

2014-04-29 Thread Tim Kryger
On Fri, Apr 25, 2014 at 2:33 PM, Andrew Bresticker abres...@chromium.org wrote: - if (IS_ERR(supply)) - return PTR_ERR(supply); + if (IS_ERR(mmc-supply.vmmc)) { + if (PTR_ERR(mmc-supply.vmmc) == -EPROBE_DEFER) + return

Re: [PATCH v2 1/1] Driver for Beckhoff CX5020 EtherCAT master module.

2014-04-29 Thread Darek Marcinkiewicz
On Sun, Apr 27, 2014 at 06:21:41PM -0400, David Miller wrote: Please do not post new versions of patches as replies to existing email threads. Instead, post the new version as a fresh list posting. Ok, thank you for the info. I've sent it in a new thread. I've also have just sent updated

Re: [PATCH v4 6/7] arm64: mm: Implement 4 levels of translation tables

2014-04-29 Thread Catalin Marinas
On Tue, Apr 29, 2014 at 05:59:33AM +0100, Jungseok Lee wrote: diff --git a/arch/arm64/kernel/head.S b/arch/arm64/kernel/head.S index 0fd5650..03ec424 100644 --- a/arch/arm64/kernel/head.S +++ b/arch/arm64/kernel/head.S @@ -37,8 +37,9 @@ /* * swapper_pg_dir is the virtual address of the

Re: [GIT PULL v2] regulator: First pull of MFD - Regulator IB (v3.16)

2014-04-29 Thread Mark Brown
On Mon, Apr 28, 2014 at 10:12:28AM +0100, Lee Jones wrote: With the Regulator patch removed this time - as requested. The following changes since commit a798c10faf62a505d24e5f6213fbaf904a39623f: Linux 3.15-rc2 (2014-04-20 11:08:50 -0700) are available in the git repository at:

Re: [PATCH] usb: xhci: Correct last context entry calculation for Configure Endpoint

2014-04-29 Thread Mathias Nyman
On 04/29/2014 06:11 AM, Julius Werner wrote: *bump* Sarah, Mathias, can we decide how to proceed with this? I think the section Alan quoted is a pretty good argument in favor of my interpretation (although of course this would not be the first time that two sections of a spec contradict each

Re: [RESEND PATCH v3 5/5] regulator: tps65090: Make FETs more reliable by adding retries

2014-04-29 Thread Mark Brown
On Wed, Apr 23, 2014 at 08:56:05AM -0700, Doug Anderson wrote: An issue was discovered with tps65090 where sometimes the FETs wouldn't actually turn on when requested (they would report overcurrent). The most problematic FET was the one used for the LCD Applied, thanks. signature.asc

RE: [PATCH] serial: uart: add hw flow control support configuration

2014-04-29 Thread Karicheri, Muralidharan
-Original Message- From: Greg Kroah-Hartman [mailto:gre...@linuxfoundation.org] Sent: Thursday, April 24, 2014 7:31 PM To: Karicheri, Muralidharan Cc: devicet...@vger.kernel.org; linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; linux-ser...@vger.kernel.org; Balbi, Felipe; Rob

Re: 64bit x86: NMI nesting still buggy?

2014-04-29 Thread Steven Rostedt
On Tue, 29 Apr 2014 18:51:13 +0200 (CEST) Jiri Kosina jkos...@suse.cz wrote: Just to be clear here -- I don't have a box that can reproduce this; I whole-heartedly believe that even if there are boxes with this behavior (and I assume there are, otherwise Intel wouldn't be mentioning it in

Re: [PATCH] usb: xhci: Correct last context entry calculation for Configure Endpoint

2014-04-29 Thread Julius Werner
Okay, thanks, sounds good. I personally don't care that much about the stable backport. Let me respin this with a fixed commit message and the type change Felipe suggested. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to

Re: [PATCH v2 2/5] x86/PCI: Support additional MMIO range capabilities

2014-04-29 Thread Robert Richter
In addition to Boris I have the following: On 18.04.14 20:53:23, Myron Stowe wrote: +#define AMD_PCIE_CF8(bus, dev, fn, reg) \ + (0x8000 | \ + ((reg 0xF00) 16) | \ + ((bus 0xF) 16) | \ + ((dev 0x1F) 11)

[PATCH 1/1] fs/configs/item.c: kernel-doc fixes + clean-up

2014-04-29 Thread Fabian Frederick
-Fix function parameter documentation -EXPORT_SYMBOLS moved after corresponding functions -Small coding style and checkpatch warning fixes Cc: Joel Becker jl...@evilplan.org Cc: Andrew Morton a...@linux-foundation.org Signed-off-by: Fabian Frederick f...@skynet.be --- fs/configfs/item.c | 58

Re: [PATCH v2] timer: prevent overflow in apply_slack

2014-04-29 Thread Thomas Gleixner
On Tue, 29 Apr 2014, Jiri Bohac wrote: Thomas, does this make sense now, with the new description? Yep, except On Fri, Apr 18, 2014 at 05:23:11PM +0200, Jiri Bohac wrote: On architectures with sizeof(int) sizeof (long), the computation of mask inside apply_slack() can be undefined if

[PATCH v1] serial: uart: add hw flow control support configuration

2014-04-29 Thread Murali Karicheri
8250 uart driver currently supports only software assisted hw flow control. The software assisted hw flow control maintains a hw_stopped flag in the tty structure to stop and start transmission and use modem status interrupt for the event to drive the handshake signals. This is not needed if hw

Re: [PATCH 1/5] ARM: defconfigs: add MTD_SPI_NOR (new dependency for M25P80)

2014-04-29 Thread Ezequiel Garcia
On Apr 25, Stephen Warren wrote: On 04/17/2014 01:21 AM, Brian Norris wrote: These defconfigs contain the CONFIG_M25P80 symbol, which is now dependent on the MTD_SPI_NOR symbol. Add CONFIG_MTD_SPI_NOR to the relevant defconfigs. At the same time, drop the now-nonexistent

[PATCH 1/2] mm/slub.c: convert printk to pr_foo()

2014-04-29 Thread Fabian Frederick
-All printk(KERN_foo converted to pr_foo() -Default printk converted to pr_warn() -Coalesce format fragments Cc: Christoph Lameter c...@linux-foundation.org Cc: Joe Perches j...@perches.com Cc: Andrew Morton a...@linux-foundation.org Signed-off-by: Fabian Frederick f...@skynet.be --- mm/slub.c |

Re: [GIT PULL] irqchip: mvebu: fixes for v3.15

2014-04-29 Thread Thomas Gleixner
On Tue, 29 Apr 2014, Jason Cooper wrote: Thomas Petazzoni (2): irqchip: armada-370-xp: fix invalid cast of signed value into unsigned variable irqchip: armada-370-xp: implement the -check_device() msi_chip operation Please make sure next time, that the sentence starts with an

Re: [PATCHSET 00/17] perf report: Add -F option for specifying output fields (v4)

2014-04-29 Thread Don Zickus
On Tue, Apr 29, 2014 at 10:13:35AM +0900, Namhyung Kim wrote: Our orignal concept for the c2c tool was to sort hist entries into cachelines, filter in only the HITMs and stores and re-sort based on cachelines with the most weight. So using today's perf with a new search called

Re: [PATCH] staging: line6: fix possible overrun

2014-04-29 Thread Dan Carpenter
We have two options: 1) Do we risk introducing new truncation bugs. 2) Do we risk breaking the driver because we didn't catch every truncation bug. Truncation bugs here are very low impact and probably no one would even notice. That's how not worried I am about truncation bugs in this

[PATCH 2/2] mm/slub.c: convert vnsprintf-static to va_format

2014-04-29 Thread Fabian Frederick
Inspired by Joe Perches suggestion in ntfs logging clean-up. Cc: Christoph Lameter c...@linux-foundation.org Cc: Joe Perches j...@perches.com Cc: Andrew Morton a...@linux-foundation.org Signed-off-by: Fabian Frederick f...@skynet.be --- mm/slub.c | 16 +--- 1 file changed, 9

[PATCH] i2c: mux: Add more warnings to i2c-arb-gpio-challenge docs

2014-04-29 Thread Doug Anderson
This adds some more warnings to the i2c-arb-gpio-challenge docs to help encourage people not to use it in their designs unless they have no choice. Signed-off-by: Doug Anderson diand...@chromium.org --- Documentation/devicetree/bindings/i2c/i2c-arb-gpio-challenge.txt | 6 ++ 1 file changed,

Re: mmotm 2014-04-24-13-07 uploaded

2014-04-29 Thread Rik van Riel
On 04/29/2014 12:36 PM, Paul E. McKenney wrote: On Tue, Apr 29, 2014 at 08:07:24AM -0400, Rik van Riel wrote: On 04/28/2014 05:15 PM, Paul E. McKenney wrote: On Mon, Apr 28, 2014 at 01:32:38PM -0700, Randy Dunlap wrote: On 04/28/14 13:06, Paul E. McKenney wrote: Please see below for a patch

Re: [PATCH] staging: android: fix missing a blank line after declarations

2014-04-29 Thread Dan Carpenter
On Wed, Apr 30, 2014 at 01:59:12AM +0900, Seunghun Lee wrote: This patch fixes Missing a blank line after declarations warnings. Signed-off-by: Seunghun Lee way...@gmail.com Quite a few of these are false checkpatch.pl false positives. Just ignore the false positives. regards, dan carpenter

[PATCH] net: via-rhine: fix compiler warning

2014-04-29 Thread Jan Moskyto Matejka
Fixed different size cast warning: drivers/net/ethernet/via/via-rhine.c: In function ‘rhine_init_one_platform’: drivers/net/ethernet/via/via-rhine.c:1132:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] revision = (u32)match-data;

Re: [PATCH RESEND] mmc: core: Improve support for deferred regulators

2014-04-29 Thread Andrew Bresticker
On Tue, Apr 29, 2014 at 10:00 AM, Tim Kryger tim.kry...@linaro.org wrote: On Fri, Apr 25, 2014 at 2:33 PM, Andrew Bresticker abres...@chromium.org wrote: - if (IS_ERR(supply)) - return PTR_ERR(supply); + if (IS_ERR(mmc-supply.vmmc)) { + if

Re: [GIT PULL] irqchip: mvebu: fixes for v3.15

2014-04-29 Thread Jason Cooper
On Tue, Apr 29, 2014 at 07:26:01PM +0200, Thomas Gleixner wrote: On Tue, 29 Apr 2014, Jason Cooper wrote: Thomas Petazzoni (2): irqchip: armada-370-xp: fix invalid cast of signed value into unsigned variable irqchip: armada-370-xp: implement the -check_device() msi_chip

Re: dcache shrink list corruption?

2014-04-29 Thread Linus Torvalds
On Tue, Apr 29, 2014 at 9:01 AM, Miklos Szeredi mik...@szeredi.hu wrote: This was reported by IBM for 3.12, but if my analysis is right, it affects current kernel as well as older ones. So the question is: does anything protect the shrink list from concurrent modification by one or more

Re: mmotm 2014-04-24-13-07 uploaded

2014-04-29 Thread Paul E. McKenney
On Tue, Apr 29, 2014 at 01:31:07PM -0400, Rik van Riel wrote: On 04/29/2014 12:36 PM, Paul E. McKenney wrote: On Tue, Apr 29, 2014 at 08:07:24AM -0400, Rik van Riel wrote: On 04/28/2014 05:15 PM, Paul E. McKenney wrote: On Mon, Apr 28, 2014 at 01:32:38PM -0700, Randy Dunlap wrote: On

[PATCH v2] usb: xhci: Correct last context entry calculation for Configure Endpoint

2014-04-29 Thread Julius Werner
The current XHCI driver recalculates the Context Entries field in the Slot Context on every add_endpoint() and drop_endpoint() call. In the case of drop_endpoint(), it seems to assume that the add_flags will always contain every endpoint for the new configuration, which is not necessarily correct

[PATCH] cpufreq: intel_pstate: Disable interrupts during MSRs reading

2014-04-29 Thread Stratos Karafotis
According to Intel 64 and IA-32 Architectures SDM, Volume 3, Chapter 14.2, Software needs to exercise care to avoid delays between the two RDMSRs (for example interrupts). So, disable interrupts during reading MSRs IA32_APERF and IA32_MPERF. Since the TSC is also takes place in the calculation

Re: [PATCH 1/5] ARM: defconfigs: add MTD_SPI_NOR (new dependency for M25P80)

2014-04-29 Thread Jason Cooper
On Tue, Apr 29, 2014 at 02:22:27PM -0300, Ezequiel Garcia wrote: On Apr 25, Stephen Warren wrote: On 04/17/2014 01:21 AM, Brian Norris wrote: These defconfigs contain the CONFIG_M25P80 symbol, which is now dependent on the MTD_SPI_NOR symbol. Add CONFIG_MTD_SPI_NOR to the relevant

Re: [PATCH] random: Add initialized variable to proc

2014-04-29 Thread Florian Weimer
On 04/28/2014 11:41 PM, Theodore Ts'o wrote: On Mon, Apr 28, 2014 at 09:52:11PM +0200, Florian Weimer wrote: Before this change, you had to check kernel log messages to see if the non-blocking pool had been properly initialized. With this change, you can consult the file

[PATCH] cpufreq: intel_pstate: Remove sample parameter in intel_pstate_calc_busy

2014-04-29 Thread Stratos Karafotis
Since commit d37e2b7644 (intel_pstate: remove unneeded sample buffers) we use only one sample. So, there is no need to pass the sample pointer to intel_pstate_calc_busy. Instead, get the pointer from cpudata. Also, remove the unused SAMPLE_COUNT macro. While at it, reformat the first line in this

[RFC PATCH RT] netconsole: enable netconsole on PREEMPT_RT

2014-04-29 Thread Daniel Bristot de Oliveira
Dear RT Folks, This patch enables the netconsole on PREEMPT_RT_FULL, netconsole was disabled on commit: cb7cb77 kconfig-disable-a-few-options-rt.patch I tested the netconsole on three machines: - Intel Core i5 (4 cpus) - Local network - Intel Xeon (32 cpus) - Remote network - KVM VM (on a

Re: dcache shrink list corruption?

2014-04-29 Thread Al Viro
On Tue, Apr 29, 2014 at 06:01:39PM +0200, Miklos Szeredi wrote: Attached patch is just a starting point (untested). Not sure how to minimize contention without adding too much complexity. Contention isn't the worst problem here - I'd expect the cacheline ping-pong to hurt more... I agree

Re: PROBLEM: Pulseaudio hung at schedule in 3.15-rc1

2014-04-29 Thread Bryan Quigley
I pastebined the full boots syslog here: http://pastebin.ubuntu.com/7360925/ The only kernel error I get is that pulseaudio hangs.. Nothing more specific as to why. I can also get a hang if I just run: sudo lsusb -v. It displays Bus 002 Device 002: ID 046d:0825 Logitech, Inc. Webcam C270

[PATCH 0/2] fixed sysrq rcu patches

2014-04-29 Thread riel
Andrew, these patches contain all the fixes from the threads. They seem to compile on normal x86 and UML now. Thanks to Paul, Randy, and everybody else. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo

[PATCH 2/2] sysrq,rcu: suppress RCU stall warnings while sysrq runs

2014-04-29 Thread riel
From: Rik van Riel r...@redhat.com Some sysrq handlers can run for a long time, because they dump a lot of data onto a serial console. Having RCU stall warnings pop up in the middle of them only makes the problem worse. This patch temporarily disables RCU stall warnings while a sysrq request is

[PATCH] RFT: pinctrl: msm: switch to using generic GPIO irqchip helpers

2014-04-29 Thread Linus Walleij
This switches the Qualcomm MSM pin control driver over to using the generic GPIO irqchip helpers. Cc: Bjorn Andersson bjorn.anders...@sonymobile.com Cc: Stephen Boyd sb...@codeaurora.org Cc: Josh Cartwright jo...@codeaurora.org Signed-off-by: Linus Walleij linus.wall...@linaro.org --- Stephen:

[PATCH 1/2] sysrq: rcu-ify __handle_sysrq

2014-04-29 Thread riel
From: Rik van Riel r...@redhat.com Echoing values into /proc/sysrq-trigger seems to be a popular way to get information out of the kernel. However, dumping information about thousands of processes, or hundreds of CPUs to serial console can result in IRQs being blocked for minutes, resulting in

Re: [perf] more perf_fuzzer memory corruption

2014-04-29 Thread Vince Weaver
On Tue, 29 Apr 2014, Peter Zijlstra wrote: On Mon, Apr 28, 2014 at 10:21:34AM -0400, Vince Weaver wrote: so it's looking more and more like this issue is with a PERF_COUNT_SW_TASK_CLOCK event. But they don't actually use the hlist thing.. yes. This turns out into another issue

Re: [PATCH] net: via-rhine: fix compiler warning

2014-04-29 Thread Alexey Charkov
2014-04-29 21:36 GMT+04:00 Jan Moskyto Matejka m...@suse.cz: Fixed different size cast warning: drivers/net/ethernet/via/via-rhine.c: In function ‘rhine_init_one_platform’: drivers/net/ethernet/via/via-rhine.c:1132:13: warning: cast from pointer to integer of different size

Re: dcache shrink list corruption?

2014-04-29 Thread Al Viro
On Tue, Apr 29, 2014 at 08:03:24PM +0200, Miklos Szeredi wrote: Introducing a new per-sb lock should be OK. Another idea, which could have subtler effects, is simply not to kill a dentry that is on the shrink list (indicated by DCACHE_SHRINK_LIST), since it's bound to get killed anyway.

Re: dcache shrink list corruption?

2014-04-29 Thread Linus Torvalds
On Tue, Apr 29, 2014 at 11:03 AM, Miklos Szeredi mik...@szeredi.hu wrote: Because we no longer have that. It now uses the list_lru thing, with a per-node lock, whatever that one is. Oh, yes. Right you are. I just started looking at that and went ugh. The lru lists are all distributed now

Re: [perf] more perf_fuzzer memory corruption

2014-04-29 Thread Vince Weaver
On Tue, 29 Apr 2014, Peter Zijlstra wrote: Event #16 is a SW event created and running in the parent on CPU0. A regular software one, right? Not a timer one. Maybe. From traces I have it looks like it's a regular one (i.e. calls perf_swevent_add() ) but who knows at this point. When I

Re: [PATCH 4/7] x86: Add support for rd/wr fs/gs base

2014-04-29 Thread Andy Lutomirski
On 04/28/2014 03:12 PM, Andi Kleen wrote: From: Andi Kleen a...@linux.intel.com IvyBridge added new instructions to directly write the fs and gs 64bit base registers. Previously this had to be done with a system call to write to MSRs. The main use case is fast user space threading and

Re: [PATCH v2 3/7] tty/serial: convert 8250 to generic earlycon

2014-04-29 Thread Yinghai Lu
On Tue, Apr 29, 2014 at 8:16 AM, Rob Herring robherri...@gmail.com wrote: On Mon, Apr 28, 2014 at 9:56 PM, Yinghai Lu ying...@kernel.org wrote: On Mon, Apr 28, 2014 at 4:24 PM, Rob Herring robherri...@gmail.com wrote: On Sat, Apr 26, 2014 at 1:29 AM, Yinghai Lu ying...@kernel.org wrote:

Re: dcache shrink list corruption?

2014-04-29 Thread Miklos Szeredi
On Tue, Apr 29, 2014 at 7:43 PM, Linus Torvalds torva...@linux-foundation.org wrote: On Tue, Apr 29, 2014 at 9:01 AM, Miklos Szeredi mik...@szeredi.hu wrote: This was reported by IBM for 3.12, but if my analysis is right, it affects current kernel as well as older ones. So the question is:

Re: [PATCH] random: Add initialized variable to proc

2014-04-29 Thread Theodore Ts'o
On Tue, Apr 29, 2014 at 07:51:08PM +0200, Florian Weimer wrote: I've got a (physical) machine where it happens after ten seconds, or much longer if there is no activity. I've seen cases where on the first boot of virtual machines, the SSH key was generated before the printk with the

Re: [PATCH 1/5] ARM: defconfigs: add MTD_SPI_NOR (new dependency for M25P80)

2014-04-29 Thread Ezequiel Garcia
On Apr 29, Jason Cooper wrote: On Tue, Apr 29, 2014 at 02:22:27PM -0300, Ezequiel Garcia wrote: On Apr 25, Stephen Warren wrote: On 04/17/2014 01:21 AM, Brian Norris wrote: These defconfigs contain the CONFIG_M25P80 symbol, which is now dependent on the MTD_SPI_NOR symbol. Add

Re: [PATCH] ARM: OMAP5: Switch to THUMB mode if needed on secondary CPU

2014-04-29 Thread Dave Martin
On Tue, Apr 29, 2014 at 05:36:30PM +0100, Joel Fernandes wrote: [...] Sorry what I meant is, say its of Type function. What tells the firmware to switch to THUMB? What's typically done is a boot address register is written by the kernel, and the firmware jumps to it after WFE.

Re: ioctl CAP_LINUX_IMMUTABLE is checked in the wrong namespace

2014-04-29 Thread Theodore Ts'o
On Tue, Apr 29, 2014 at 04:49:14PM +0300, Marian Marinov wrote: I'm proposing a fix to this, by replacing the capable(CAP_LINUX_IMMUTABLE) check with ns_capable(current_cred()-user_ns, CAP_LINUX_IMMUTABLE). Um, wouldn't it be better to simply fix the capable() function? /** * capable -

[PATCH] rfcomm: Convert spinlocks into mutexes

2014-04-29 Thread Libor Pechacek
Enabling CONFIG_DEBUG_ATOMIC_SLEEP has shown that some rfcomm functions acquiring spinlocks call sleeping locks further in the chain. Converting the offending spinlocks into mutexes makes sleeping safe. Signed-off-by: Libor Pechacek lpecha...@suse.cz --- include/net/bluetooth/rfcomm.h | 6

RE: [PATCH] serial: uart: add hw flow control support configuration

2014-04-29 Thread Karicheri, Muralidharan
-Original Message- From: Greg Kroah-Hartman [mailto:gre...@linuxfoundation.org] Sent: Thursday, April 24, 2014 7:31 PM To: Karicheri, Muralidharan Cc: devicet...@vger.kernel.org; linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; linux-ser...@vger.kernel.org; Balbi, Felipe; Rob

Re: [PATCH] spi: Force the registration of the spidev devices

2014-04-29 Thread Mark Brown
On Mon, Apr 28, 2014 at 10:22:54AM -0700, Maxime Ripard wrote: spidev device registration has always been a controversial subject since the move to DT. Why can we not handle this by using sysfs to bind spidev to the device? signature.asc Description: Digital signature

[PATCH 0/1] aio: change exit_aio() to load mm-ioctx_table once and avoid rcu_read_lock()

2014-04-29 Thread Oleg Nesterov
Completely untested and I know nothing about aio, thus needs an ack from maintainers or should be ignored. But exit_aio() looks obviously unnecessarily overcomplicated, I was really puzzled when I looked at this code by accident. Kent, could you also explain kioctx-dead is atomic_t? This looks

Re: [PATCH 0/1] aio: change exit_aio() to load mm-ioctx_table once and avoid rcu_read_lock()

2014-04-29 Thread Oleg Nesterov
1. We can read -ioctx_table only once and we do not read rcu_read_lock() or even rcu_dereference(). This mm has no users, nobody else can play with -ioctx_table. Otherwise the code is buggy anyway, if we need rcu_read_lock() in a loop because -ioctx_table can be updated then

Re: [PATCH 1/2] mm/slub.c: convert printk to pr_foo()

2014-04-29 Thread Christoph Lameter
On Tue, 29 Apr 2014, Fabian Frederick wrote: -All printk(KERN_foo converted to pr_foo() -Default printk converted to pr_warn() -Coalesce format fragments Acked-by: Christoph Lameter c...@linux.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a

Re: 64bit x86: NMI nesting still buggy?

2014-04-29 Thread Jiri Kosina
On Tue, 29 Apr 2014, Steven Rostedt wrote: Just to be clear here -- I don't have a box that can reproduce this; I whole-heartedly believe that even if there are boxes with this behavior (and I assume there are, otherwise Intel wouldn't be mentioning it in the docs), it'd be hard to

[PATCH man-pages v1] fcntl.2: update manpage with verbiage about open file description locks

2014-04-29 Thread Jeff Layton
Signed-off-by: Jeff Layton jlay...@poochiereds.net --- man2/fcntl.2 | 112 +-- 1 file changed, 109 insertions(+), 3 deletions(-) diff --git a/man2/fcntl.2 b/man2/fcntl.2 index d0154a6d9f42..8d119dfec24c 100644 --- a/man2/fcntl.2 +++

Re: [PATCH 2/2] mm/slub.c: convert vnsprintf-static to va_format

2014-04-29 Thread Christoph Lameter
On Tue, 29 Apr 2014, Fabian Frederick wrote: Inspired by Joe Perches suggestion in ntfs logging clean-up. Looks interesting. Hope it works. Acked-by: Christoph Lameter c...@linux.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to

Re: ioctl CAP_LINUX_IMMUTABLE is checked in the wrong namespace

2014-04-29 Thread Serge Hallyn
Quoting Theodore Ts'o (ty...@mit.edu): On Tue, Apr 29, 2014 at 04:49:14PM +0300, Marian Marinov wrote: I'm proposing a fix to this, by replacing the capable(CAP_LINUX_IMMUTABLE) check with ns_capable(current_cred()-user_ns, CAP_LINUX_IMMUTABLE). Um, wouldn't it be better to simply fix

Re: [PATCH 1/5] ARM: defconfigs: add MTD_SPI_NOR (new dependency for M25P80)

2014-04-29 Thread Jason Cooper
On Tue, Apr 29, 2014 at 03:28:15PM -0300, Ezequiel Garcia wrote: On Apr 29, Jason Cooper wrote: On Tue, Apr 29, 2014 at 02:22:27PM -0300, Ezequiel Garcia wrote: On Apr 25, Stephen Warren wrote: On 04/17/2014 01:21 AM, Brian Norris wrote: These defconfigs contain the CONFIG_M25P80

Re: [PATCH] staging: comedi: remove duplicate pointer assignments in attach functions

2014-04-29 Thread Christian Engelmayer
On Mon, 28 Apr 2014 22:36:13 +, Hartley Sweeten hartl...@visionengravers.com wrote: Technically, these drivers are fine as-is. They are. The proposed change falls under minor code maintenance only. They are all legacy comedi drivers and use the manual attach mechanism. The dev-board

Re: [perf] more perf_fuzzer memory corruption

2014-04-29 Thread Peter Zijlstra
On Tue, Apr 29, 2014 at 02:21:56PM -0400, Vince Weaver wrote: On Tue, 29 Apr 2014, Peter Zijlstra wrote: Event #16 is a SW event created and running in the parent on CPU0. A regular software one, right? Not a timer one. Maybe. From traces I have it looks like it's a regular one

Re: [PATCH v6 3/5] devicetree: bindings: Document Krait cache error interrupts

2014-04-29 Thread Borislav Petkov
On Tue, Apr 29, 2014 at 11:34:00AM +0100, Lorenzo Pieralisi wrote: Sorry for the delay in replying. Those cache bindings need an ACK to get merged, and were introduced so that idle states can retrieve power domain information for caches. I am going to revive the idle bindings thread to see

Re: [PATCH 2/5] netfilter: Fix format string mismatch in mangle_content_len()

2014-04-29 Thread Pablo Neira Ayuso
On Tue, Apr 29, 2014 at 03:21:21PM +0100, Patrick McHardy wrote: On Tue, Apr 01, 2014 at 12:43:36AM +0900, Masanari Iida wrote: Fix format string mismatch in mangle_connect_len() All these patches seem like pointless noise to me. In none of these cases can the value legitimately be

Re: [RFC PATCH 2/2 with seqcount v3] reservation: add suppport for read-only access using rcu

2014-04-29 Thread Thomas Hellstrom
On 04/29/2014 04:32 PM, Maarten Lankhorst wrote: op 23-04-14 13:15, Maarten Lankhorst schreef: This adds 4 more functions to deal with rcu. reservation_object_get_fences_rcu() will obtain the list of shared and exclusive fences without obtaining the ww_mutex.

Re: [PATCH 1/5] ARM: defconfigs: add MTD_SPI_NOR (new dependency for M25P80)

2014-04-29 Thread Brian Norris
Hi Stephen, On Fri, Apr 25, 2014 at 10:39:37AM -0600, Stephen Warren wrote: On 04/17/2014 01:21 AM, Brian Norris wrote: These defconfigs contain the CONFIG_M25P80 symbol, which is now dependent on the MTD_SPI_NOR symbol. Add CONFIG_MTD_SPI_NOR to the relevant defconfigs. At the same

Re: [PATCH v3] uprobes: simplify rip-relative handling

2014-04-29 Thread Oleg Nesterov
This version looks fine to me. Masami, Jim, Srikar, can you ack the change in riprel_analyze() ? On 04/28, Denys Vlasenko wrote: It is possible to replace rip-relative addressing mode with addressing mode of the same length: (reg+disp32). This eliminates the need to fix up immediate and

Re: [PATCH V3] ASoC: samsung: Add sound card driver for Snow board

2014-04-29 Thread Mark Brown
On Mon, Apr 28, 2014 at 10:14:39AM +0530, Tushar Behera wrote: Added machine driver to instantiate I2S based sound card on Snow board. It has MAX98095 audio codec on board. Applied, thanks. signature.asc Description: Digital signature

Re: dcache shrink list corruption?

2014-04-29 Thread Al Viro
On Tue, Apr 29, 2014 at 07:16:10PM +0100, Al Viro wrote: On Tue, Apr 29, 2014 at 08:03:24PM +0200, Miklos Szeredi wrote: Introducing a new per-sb lock should be OK. Another idea, which could have subtler effects, is simply not to kill a dentry that is on the shrink list (indicated by

Re: [PATCH v2 2/5] x86/PCI: Support additional MMIO range capabilities

2014-04-29 Thread Borislav Petkov
On Tue, Apr 29, 2014 at 10:16:57AM -0500, Suravee Suthikulanit wrote: In the new code, the IO ECS was needed to retrieve the AMD_NB_F1_MMIO_BASE_LIMIT_HI_REG (offset 0x180) during the early initialization as part of (2) logic. However, this register exists only on the newer systems. However,

Re: [PATCH v2 4/5] ACPI/PCI: Warn if we have to guess host bridge node information

2014-04-29 Thread Borislav Petkov
On Mon, Apr 28, 2014 at 03:24:39PM -0600, Myron Stowe wrote: @@ -489,8 +489,12 @@ struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root) } node = acpi_get_node(device-handle); - if (node == NUMA_NO_NODE) + if (node == NUMA_NO_NODE) { node

Re: 64bit x86: NMI nesting still buggy?

2014-04-29 Thread Steven Rostedt
On Tue, 29 Apr 2014 20:48:34 +0200 (CEST) Jiri Kosina jkos...@suse.cz wrote: On Tue, 29 Apr 2014, Steven Rostedt wrote: Just to be clear here -- I don't have a box that can reproduce this; I whole-heartedly believe that even if there are boxes with this behavior (and I assume there

tracing: Replace __get_cpu_var uses with this_cpu_ptr

2014-04-29 Thread Christoph Lameter
Replace uses of __get_cpu_var for address calculation with this_cpu_ptr. Acked-by: Masami Hiramatsu masami.hiramatsu...@hitachi.com Signed-off-by: Christoph Lameter c...@linux.com Index: linux/include/linux/kprobes.h === ---

RE: [PATCH 41/47] staging/lustre/llite: remove dead code

2014-04-29 Thread Hammond, John
-Original Message- From: Dan Carpenter [mailto:dan.carpen...@oracle.com] Sent: Tuesday, April 29, 2014 6:03 AM To: Oleg Drokin Cc: Greg Kroah-Hartman; linux-kernel@vger.kernel.org; de...@driverdev.osuosl.org; Drokin, Oleg; Hammond, John Subject: Re: [PATCH 41/47]

[PATCH 1/1] aio: change exit_aio() to load mm-ioctx_table once and avoid rcu_read_lock()

2014-04-29 Thread Oleg Nesterov
1. We can read -ioctx_table only once and we do not read rcu_read_lock() or even rcu_dereference(). This mm has no users, nobody else can play with -ioctx_table. Otherwise the code is buggy anyway, if we need rcu_read_lock() in a loop because -ioctx_table can be updated then

[PATCH] mm,writeback: fix divide by zero in pos_ratio_polynom

2014-04-29 Thread Rik van Riel
It is possible for limit - setpoint + 1 to equal zero, leading to a divide by zero error. Blindly adding 1 to limit - setpoint is not working, so we need to actually test the divisor before calling div64. Signed-off-by: Rik van Riel r...@redhat.com Cc: sta...@vger.kernel.org ---

Re: [perf] more perf_fuzzer memory corruption

2014-04-29 Thread Steven Rostedt
On Tue, 29 Apr 2014 14:11:09 -0400 (EDT) Vince Weaver vincent.wea...@maine.edu wrote: I've actually given up on source code inspection to figure out what's going on in kernel/events/core.c. What I do now is write simple test cases and do an ftrace function trace. The results are often

Re: [PATCH 1/5] ARM: defconfigs: add MTD_SPI_NOR (new dependency for M25P80)

2014-04-29 Thread Ezequiel Garcia
On Apr 29, Brian Norris wrote: Hi Stephen, On Fri, Apr 25, 2014 at 10:39:37AM -0600, Stephen Warren wrote: On 04/17/2014 01:21 AM, Brian Norris wrote: These defconfigs contain the CONFIG_M25P80 symbol, which is now dependent on the MTD_SPI_NOR symbol. Add CONFIG_MTD_SPI_NOR to the

Re: [perf] more perf_fuzzer memory corruption

2014-04-29 Thread Steven Rostedt
On Tue, 29 Apr 2014 14:21:56 -0400 (EDT) Vince Weaver vincent.wea...@maine.edu wrote: Also trace-cmd is a pain to use. Any suggested events I should trace beyond the obvious? Part of the problem is that despite what the documentation says it doesn't look like you can combine the -P pid

Re: [PATCH v2 5/5] PCI: Remove redundant 'quirk_amd_nb_node'

2014-04-29 Thread Bjorn Helgaas
On Mon, Apr 28, 2014 at 8:02 PM, Suravee Suthikulanit suravee.suthikulpa...@amd.com wrote: Sorry for late reply. My concern is that removing the quirk_amd_nb_node() will affect the value of numa_node of the host bridge devices (i.e. X:00.[18|19|1a|1b|1c|1d|1e|1f].X). I am not sure if any

[PATCH 1/1] Revert affs: use -kill_sb() to simplify -put_super() and failure exits of -mount()

2014-04-29 Thread Fabian Frederick
This reverts commit 842a859db26b70 due to permanent crash issues. Sample scenario: dd if=/dev/zero of=f1 bs=1M count=1 losetup -f f1 mount -t affs -o unknownoption /dev/loop0 mnt1 - crash With patch revert: mount: wrong fs type, bad option, bad superblock on /dev/loop0 Cc: Alexander Viro

Re: [PATCH 0/1] aio: change exit_aio() to load mm-ioctx_table once and avoid rcu_read_lock()

2014-04-29 Thread Benjamin LaHaise
On Tue, Apr 29, 2014 at 08:39:15PM +0200, Oleg Nesterov wrote: Completely untested and I know nothing about aio, thus needs an ack from maintainers or should be ignored. But exit_aio() looks obviously unnecessarily overcomplicated, I was really puzzled when I looked at this code by accident.

[PATCH -v2] mm,numa: remove BUG_ON in __handle_mm_fault

2014-04-29 Thread Rik van Riel
Peter pointed out we can do this slightly simpler, since we already have a test for pmd_trans_huge(*pmd) below... ---8--- Changing PTEs and PMDs to pte_numa pmd_numa is done with the mmap_sem held for reading, which means a pmd can be instantiated and turned into a numa one while

Re: [PATCH 1/5] ARM: defconfigs: add MTD_SPI_NOR (new dependency for M25P80)

2014-04-29 Thread Stephen Warren
On 04/29/2014 01:06 PM, Brian Norris wrote: Hi Stephen, On Fri, Apr 25, 2014 at 10:39:37AM -0600, Stephen Warren wrote: On 04/17/2014 01:21 AM, Brian Norris wrote: These defconfigs contain the CONFIG_M25P80 symbol, which is now dependent on the MTD_SPI_NOR symbol. Add CONFIG_MTD_SPI_NOR to

[PATCH] pinctrl: vt8500: Ensure value reg is updated when setting direction

2014-04-29 Thread Alexey Charkov
Current code only touches the direction register when setting direction to output, which breaks logic like echo high /sys/class/gpio/gpio0/direction which is expected to also set the value. This patch also adds a call to update the value register when setting direction to output.

RE: [PATCH] mm,writeback: fix divide by zero in pos_ratio_polynom

2014-04-29 Thread Motohiro Kosaki
-Original Message- From: Rik van Riel [mailto:r...@redhat.com] Sent: Tuesday, April 29, 2014 3:19 PM To: linux-kernel@vger.kernel.org Cc: linux...@kvack.org; sand...@redhat.com; a...@linux-foundation.org; jwei...@redhat.com; Motohiro Kosaki JP; mho...@suse.cz;

Re: [PATCH v2 1/1] Driver for Beckhoff CX5020 EtherCAT master module.

2014-04-29 Thread David Miller
From: Darek Marcinkiewicz rek...@newterm.pl Date: Mon, 28 Apr 2014 07:36:58 +0200 +void *ec_bh_alloc_dma_mem(struct bh_priv *priv, + int channel, + u8 **buf, + dma_addr_t *phys, + dma_addr_t

Re: [PATCH] net: via-rhine: fix compiler warning

2014-04-29 Thread Jan Moskyto Matejka
On Tue, Apr 29, 2014 at 10:09:01PM +0400, Alexey Charkov wrote: 2014-04-29 21:36 GMT+04:00 Jan Moskyto Matejka m...@suse.cz: Fixed different size cast warning: drivers/net/ethernet/via/via-rhine.c: In function ‘rhine_init_one_platform’:

Re: [PATCH 0/1] aio: change exit_aio() to load mm-ioctx_table once and avoid rcu_read_lock()

2014-04-29 Thread Oleg Nesterov
On 04/29, Benjamin LaHaise wrote: On Tue, Apr 29, 2014 at 08:39:15PM +0200, Oleg Nesterov wrote: Kent, could you also explain kioctx-dead is atomic_t? This looks pointless? afaics atomic_ buys nothing in this case. If it wasn't atomic, it would need to be volatile. Then ACCESS_ONCE() in

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