Re: [PATCH 2/5] kbuild: LLVMLinux: Adapt warnings for compilation with clang

2014-02-25 Thread Behan Webster
On 02/25/14 17:17, Dave Jones wrote: On Tue, Feb 25, 2014 at 05:08:40PM -0800, beh...@converseincode.com wrote: > When compiling kernel with clang, disable warnings which are too noisy, and > add the clang flag catch-undefined-behavior. > > +# Clang > +warning-1 += $(call

Re: 3.14-rc4 blocks on LVM init

2014-02-25 Thread Michael Mueller
Hi Mike, you wrote: You need these two 3.14-rc fixes that are staged in linux-next (via linux-dm.git's 'for-next' branch): Thanks for the fast reply. Did pull in the whole branch 'linux-next' from the repo now. It is back to working. Michael -- To unsubscribe from this list: send the

RE: [PATCH 2/6] usb: gadget: mv_udc: disable HW zlt for ep0

2014-02-25 Thread Peter Chen
> > > > easy to be found. > > > > > > > > > > Chipidea bug too? Does it follow ch 8.5.3.2 Variable-length Data > > > Stage, USB > > 2.0 spec? > > > > wait, this is a chipidea core ? Why aren't you guys using the chipidea > > driver yet ? You need to switch over to that driver dude, we can't > >

Re: sched: hang in migrate_swap

2014-02-25 Thread Michael wang
On 02/25/2014 06:49 PM, Peter Zijlstra wrote: > On Tue, Feb 25, 2014 at 12:47:01PM +0800, Michael wang wrote: >> On 02/24/2014 09:10 PM, Peter Zijlstra wrote: >>> On Mon, Feb 24, 2014 at 01:12:18PM +0100, Peter Zijlstra wrote: + if (p) { + if (unlikely(p ==

[PATCH] clk: samsung: remove parentheses from return statements

2014-02-25 Thread Pankaj Dubey
fixed following checkpatch warning message "return is not a function, parentheses are not required" Signed-off-by: Pankaj Dubey --- drivers/clk/samsung/clk-pll.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/clk/samsung/clk-pll.c

[PATCH] clk: samsung: fixed compiler warning [-Wpointer-to-int-cast]

2014-02-25 Thread Pankaj Dubey
When compiled using ARM64 cross compiler, gcc complains as drivers/clk/samsung/clk.c:293:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] Signed-off-by: Pankaj Dubey --- drivers/clk/samsung/clk.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [PATCH] ktest: Set CLOSE_CONSOLE_SIGNAL in the kvm.conf

2014-02-25 Thread MUNEDA Takahiro
On Mon, 24 Feb 2014 09:30:39 -0500, Steven Rostedt wrote: On Sun, 23 Feb 2014 10:19:28 +0900 Satoru Takeuchi wrote: From: Satoru Takeuchi As mentioned at commit 5a5d8e48449, we can't terminate 'virsh console' with the default signal(INT). So it's better to set CLOSE_CONSOLE_SIGNAL in the

Re: [PATCH 3/3] regulator: 88pm8607: fix indent code style

2014-02-25 Thread Haojian Zhuang
On Wed, Feb 26, 2014 at 9:22 AM, Jingoo Han wrote: > Fix indent code style in order to fix the following checkpatch > issues. > > ERROR: code indent should use tabs where possible > WARNING: please, no space before tabs > WARNING: please, no spaces at the start of a line > > Signed-off-by:

Re: [PATCH v2] mm: per-thread vma caching

2014-02-25 Thread Michel Lespinasse
On Tue, Feb 25, 2014 at 10:16 AM, Davidlohr Bueso wrote: > This patch is a continuation of efforts trying to optimize find_vma(), > avoiding potentially expensive rbtree walks to locate a vma upon faults. > The original approach (https://lkml.org/lkml/2013/11/1/410), where the > largest vma was

Re: [PATCH v2 1/1] arm64: make a single hook to syscall_trace() for all syscall features

2014-02-25 Thread AKASHI Takahiro
On 02/26/2014 12:00 AM, Will Deacon wrote: On Tue, Feb 25, 2014 at 09:14:43AM +, AKASHI Takahiro wrote: Currently syscall_trace() is called only for ptrace. With additional TIF_xx flags defined, it is now called in all the cases of audit, ftrace and seccomp in addition to ptrace.

Re: [PATCH v5 1/10] fs: Add new flag(FALLOC_FL_COLLAPSE_RANGE) for fallocate

2014-02-25 Thread Dave Chinner
On Tue, Feb 25, 2014 at 03:41:20PM -0800, Hugh Dickins wrote: > On Mon, 24 Feb 2014, Dave Chinner wrote: > > On Sat, Feb 22, 2014 at 09:06:25AM -0500, Theodore Ts'o wrote: > > > On Wed, Feb 19, 2014 at 01:37:43AM +0900, Namjae Jeon wrote: > > > > + /* > > > > +* There is no need to

Re: [PATCH 02/11] sched: remove rq->cpu_load[load_idx] array

2014-02-25 Thread Alex Shi
On 02/26/2014 12:22 AM, Srikar Dronamraju wrote: >> >> -/** >> - * get_sd_load_idx - Obtain the load index for a given sched domain. >> - * @sd: The sched_domain whose load_idx is to be obtained. >> - * @idle: The idle status of the CPU for whose sd load_idx is obtained. >> - * >> - * Return:

Re: [PATCH v5 0/10] fs: Introduce new flag(FALLOC_FL_COLLAPSE_RANGE) for fallocate

2014-02-25 Thread Andrew Morton
On Wed, 26 Feb 2014 12:34:26 +1100 Dave Chinner wrote: > On Tue, Feb 25, 2014 at 03:41:28PM -0800, Andrew Morton wrote: > > On Tue, 25 Feb 2014 15:23:35 -0800 (PST) Hugh Dickins > > wrote: > > > On Tue, 25 Feb 2014, Dave Chinner wrote: > > > > On Tue, Feb 25, 2014 at 02:16:01PM +1100, Stephen

Re: [PATCH] cpufreq: Set policy to non-NULL only after all hotplug online work is done

2014-02-25 Thread Saravana Kannan
On 02/25/2014 02:41 PM, Rafael J. Wysocki wrote: On Tuesday, February 25, 2014 01:11:27 PM Saravana Kannan wrote: On 02/25/2014 05:04 AM, Rafael J. Wysocki wrote: On Tuesday, February 25, 2014 02:20:57 PM Viresh Kumar wrote: On 25 February 2014 01:53, Saravana Kannan wrote: I was

RE: [PATCH 2/6] usb: gadget: mv_udc: disable HW zlt for ep0

2014-02-25 Thread Neil Zhang
> -Original Message- > From: Felipe Balbi [mailto:ba...@ti.com] > Sent: 2014年2月26日 2:13 > To: Peter Chen > Cc: Neil Zhang; ba...@ti.com; gre...@linuxfoundation.org; > linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; Alexander Shishkin > Subject: Re: [PATCH 2/6] usb: gadget:

Re: [RFC][PATCH 0/5] arch: atomic rework

2014-02-25 Thread Linus Torvalds
On Mon, Feb 24, 2014 at 10:00 PM, Paul E. McKenney wrote: > > So let me see if I understand your reasoning. My best guess is that it > goes something like this: > > 1. The Linux kernel contains code that passes pointers from > rcu_dereference() through external functions. No,

linux-next: manual merge of the mvebu tree with the arm-soc tree

2014-02-25 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the mvebu tree got a conflict in arch/arm/boot/dts/Makefile between commit 8fc1b0f87d9f ("ARM: qcom: Split Qualcomm support into legacy and multiplatform") from the arm-soc tree and commit a02dd0271d01 ("ARM: mvebu: select dtbs from MACH_ARMADA_*") from the

Re: [PATCH] kconfig: Make allnoconfig disable options behind EMBEDDED and EXPERT

2014-02-25 Thread Josh Triplett
On Tue, Feb 25, 2014 at 01:09:25PM -0800, Andrew Morton wrote: > On Sun, 23 Feb 2014 18:20:26 -0800 Josh Triplett > wrote: > > "make allnoconfig" exists to ease testing of minimal configurations. > > Documentation/SubmitChecklist includes a note to test with allnoconfig. > > This helps catch

Re: [PATCH 5/5] x86 kbuild: LLVMLinux: More cc-options added for clang

2014-02-25 Thread Behan Webster
On 02/25/14 17:32, H. Peter Anvin wrote: On 02/25/2014 05:08 PM, beh...@converseincode.com wrote: +# enforce no-sse for clang +ifneq ($(COMPILER),clang) +KBUILD_CFLAGS += $(call cc-option,-mno-sse) +KBUILD_CFLAGS += $(call cc-option,-mpreferred-stack-boundary=3) +endif + I'm

[PATCH] gpio: clamp returned values to the boolean range

2014-02-25 Thread Alexandre Courbot
Nothing prevents GPIO drivers from returning values outside the boolean range, and as it turns out a few drivers are actually doing so. These values were passed as-is to unsuspecting consumers and created confusion. This patch makes the internal _gpiod_get_raw_value() function return a bool,

Re: [PATCH 2/5] kbuild: LLVMLinux: Adapt warnings for compilation with clang

2014-02-25 Thread H. Peter Anvin
On 02/25/2014 05:31 PM, Behan Webster wrote: > > This are primarily off due to the amount of noise these warnings produce > at this time (clang produces a LOT of warnings straight out of the box). > I'd love to eventually turn some of these back on again. > It would also be nice if someone

Re: [PATCH 5/5] x86 kbuild: LLVMLinux: More cc-options added for clang

2014-02-25 Thread H. Peter Anvin
On 02/25/2014 05:08 PM, beh...@converseincode.com wrote: > > +# enforce no-sse for clang > +ifneq ($(COMPILER),clang) > +KBUILD_CFLAGS += $(call cc-option,-mno-sse) > +KBUILD_CFLAGS += $(call cc-option,-mpreferred-stack-boundary=3) > +endif > + I'm *very* confused. You're doing

Re: [PATCH v5 0/10] fs: Introduce new flag(FALLOC_FL_COLLAPSE_RANGE) for fallocate

2014-02-25 Thread Dave Chinner
On Tue, Feb 25, 2014 at 03:41:28PM -0800, Andrew Morton wrote: > On Tue, 25 Feb 2014 15:23:35 -0800 (PST) Hugh Dickins > wrote: > > On Tue, 25 Feb 2014, Dave Chinner wrote: > > > On Tue, Feb 25, 2014 at 02:16:01PM +1100, Stephen Rothwell wrote: > > > > On Mon, 24 Feb 2014 11:57:10 +1100 Dave

Re: [PATCH 2/5] kbuild: LLVMLinux: Adapt warnings for compilation with clang

2014-02-25 Thread Behan Webster
On 02/25/14 17:17, Dave Jones wrote: On Tue, Feb 25, 2014 at 05:08:40PM -0800, beh...@converseincode.com wrote: > +warning-1 += $(call cc-disable-warning, self-assign) Do you have a pointer to an example log-file from before this change ? I'm curious for eg, which self-assign warnings are

Re: [RFC v2 2/4] net: enables interface option to skip IP

2014-02-25 Thread Hannes Frederic Sowa
On Tue, Feb 25, 2014 at 04:18:17PM -0500, David Miller wrote: > From: Dan Williams > Date: Tue, 25 Feb 2014 15:07:00 -0600 > > > Also, disable_ipv4 signals *intent*, which is distinct from current > > state. > > > > Does an interface without an IPv4 address mean that the user wished it > > not

[PATCH 3/3] regulator: 88pm8607: fix indent code style

2014-02-25 Thread Jingoo Han
Fix indent code style in order to fix the following checkpatch issues. ERROR: code indent should use tabs where possible WARNING: please, no space before tabs WARNING: please, no spaces at the start of a line Signed-off-by: Jingoo Han --- drivers/regulator/88pm8607.c |6 +++--- 1

[PATCH 2/3] regulator: dbx500: use seq_puts() instead of seq_printf()

2014-02-25 Thread Jingoo Han
For a constant format without additional arguments, use seq_puts() instead of seq_printf(). Also, it fixes the following checkpatch warning. WARNING: Prefer seq_puts to seq_printf Signed-off-by: Jingoo Han --- drivers/regulator/dbx500-prcmu.c | 10 +- 1 file changed, 5

Re: [RFC 0/6] vhost/scsi: Add T10 PI SGL passthrough support

2014-02-25 Thread Martin K. Petersen
> "nab" == Nicholas A Bellinger writes: nab> Mmm, at least for PI I don't think a residual field is necessary. nab> Any time the metadata is not fully read on outgoing WRITEs, or nab> written on incoming READs the next hop performing a VERIFY nab> operation will end up failing with a GUARD

[PATCH 1/3] regulator: tps80031: remove unnecessary parentheses

2014-02-25 Thread Jingoo Han
Remove unnecessary parentheses in order to fix the following checkpatch error. ERROR: return is not a function, parentheses are not required Signed-off-by: Jingoo Han --- drivers/regulator/tps80031-regulator.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH 2/5] kbuild: LLVMLinux: Adapt warnings for compilation with clang

2014-02-25 Thread Dave Jones
On Tue, Feb 25, 2014 at 05:08:40PM -0800, beh...@converseincode.com wrote: > When compiling kernel with clang, disable warnings which are too noisy, and > add the clang flag catch-undefined-behavior. > > +# Clang > +warning-1 += $(call cc-disable-warning, initializer-overrides) >

[PATCH v2 1/2] net: kdoc struct net_device flags and priv_flags

2014-02-25 Thread Luis R. Rodriguez
From: "Luis R. Rodriguez" We have documentation for these flags but they're scattered all over the place. #defines don't allow documentation to be written easily so to help to start bringing some documentation together use the enums kdoc practice but keep the defines to allow userspace to be

[PATCH v2 2/2] net: move net_device priv_flags out from UAPI

2014-02-25 Thread Luis R. Rodriguez
From: "Luis R. Rodriguez" These are private to userspace, and they're unstable anyway and can be shuffled at will (see 080e4130b1fb) so any userspace application relying on them is on crack. Test compiled with allyesconfig. mcgrof@drvbp1 /pub/mem/mcgrof/net-next (git::master)$ make

Re: [PATCH v3] sysfs: fix namespace refcnt leak

2014-02-25 Thread Li Zefan
On 2014/2/25 23:17, Tejun Heo wrote: > On Tue, Feb 25, 2014 at 07:19:55AM -0800, Greg Kroah-Hartman wrote: >> On Tue, Feb 25, 2014 at 09:42:56AM -0500, Tejun Heo wrote: >>> On Tue, Feb 25, 2014 at 07:28:44PM +0800, Li Zefan wrote: As mount() and kill_sb() is not a one-to-one match, we

[PATCH v2 0/2] net: start kdoc'ifying net_device

2014-02-25 Thread Luis R. Rodriguez
While working on extending some functionality I felt restricted with the amount of documentation I can add. Part of this is that the existing style on the header files don't let me be verbose. This starts addressing that by using kdoc for the net_device flags, and as Ben noted, the priv_flags can

Re: [PATCH] ACPI/Processor: Rework processor throttling with work_on_cpu()

2014-02-25 Thread Lan Tianyu
On 2014年02月26日 09:23, Rafael J. Wysocki wrote: > On Friday, February 21, 2014 01:35:45 PM Lan Tianyu wrote: >> acpi_processor_set_throttling() uses set_cpus_allowed_ptr() to make >> sure struct acpi_processor->acpi_processor_set_throttling() callback >> run on associated cpu. But the function

Re: [PATCH v5 0/10] fs: Introduce new flag(FALLOC_FL_COLLAPSE_RANGE) for fallocate

2014-02-25 Thread Dave Chinner
On Tue, Feb 25, 2014 at 03:23:35PM -0800, Hugh Dickins wrote: > On Tue, 25 Feb 2014, Dave Chinner wrote: > > On Tue, Feb 25, 2014 at 02:16:01PM +1100, Stephen Rothwell wrote: > > > On Mon, 24 Feb 2014 11:57:10 +1100 Dave Chinner > > > wrote: > > > > > > > > > Namjae Jeon (10): > > > > > fs:

[PATCH 4/5] LLVMLinux: Add support for clang to compiler.h and new compiler-clang.h

2014-02-25 Thread behanw
From: Mark Charlebois Add a compiler-clang.h file to add specific macros needed for compiling the kernel with clang. Initially the only override required is the macro for silencing the compiler for a purposefully uninintialized variable. Author: Mark Charlebois Signed-off-by: Mark Charlebois

[PATCH 5/5] x86 kbuild: LLVMLinux: More cc-options added for clang

2014-02-25 Thread behanw
From: Jan-Simon Möller Protect more options for x86 with cc-option so that we don't get errors when using clang instead of gcc. Add more or different options when using clang as well. Also need to enforce that SSE is off for clang and the stack is 8-byte aligned. Signed-off-by: Jan-Simon

[PATCH 3/5] kbuild: LLVMLinux: Fix LINUX_COMPILER definition script for compilation with clang

2014-02-25 Thread behanw
From: Jan-Simon Möller When building the LINUX_COMPILER definition, instead of merely taking the last line from "$(CC) -v", grep for ' version ' in the output. This supports both gcc and clang. Signed-off-by: Jan-Simon Möller Signed-off-by: Behan Webster Signed-off-by: Mark Charlebois Cc:

[tip:x86/kaslr] x86, kaslr: randomize module base load address

2014-02-25 Thread tip-bot for Kees Cook
Commit-ID: e2b32e6785138d92d2a40e0d0473575c8c7310a2 Gitweb: http://git.kernel.org/tip/e2b32e6785138d92d2a40e0d0473575c8c7310a2 Author: Kees Cook AuthorDate: Tue, 25 Feb 2014 16:59:17 -0800 Committer: H. Peter Anvin CommitDate: Tue, 25 Feb 2014 17:07:26 -0800 x86, kaslr: randomize

[PATCH 1/5] kbuild: LLVMLinux: Add Kbuild support for building kernel with Clang

2014-02-25 Thread behanw
From: Behan Webster Add support to toplevel Makefile for compiling with clang, both for HOSTCC and CC. Use cc-option to prevent gcc option from breaking clang, and from clang options from breaking gcc. Clang 3.4 semantics are the same as gcc semantics for unsupported flags. For unsupported

[PATCH 2/5] kbuild: LLVMLinux: Adapt warnings for compilation with clang

2014-02-25 Thread behanw
From: Jan-Simon Möller When compiling kernel with clang, disable warnings which are too noisy, and add the clang flag catch-undefined-behavior. Signed-off-by: Jan-Simon Möller Signed-off-by: Behan Webster Signed-off-by: Mark Charlebois Cc: PaX Team --- scripts/Makefile.build | 13

[PATCH 0/5] kbuild: LLVMLinux: Initial updates to kbuild to enable the kernel to be compiled with clang/LLVM

2014-02-25 Thread behanw
From: Behan Webster These patches add initial support for compiling the x86 kernel with clang. More patches to the kernel code are required to actually compile the kernel with clang. The intent of these patches are just to get things started with kbuild. The LLVMLinux project aims to fully

Re: [PATCH] ACPI/Processor: Rework processor throttling with work_on_cpu()

2014-02-25 Thread Rafael J. Wysocki
On Friday, February 21, 2014 01:35:45 PM Lan Tianyu wrote: > acpi_processor_set_throttling() uses set_cpus_allowed_ptr() to make > sure struct acpi_processor->acpi_processor_set_throttling() callback > run on associated cpu. But the function maybe called in a worker which > has been bound to a

[tip:x86/urgent] x86, kaslr: add missed "static" declarations

2014-02-25 Thread tip-bot for Kees Cook
Commit-ID: e290e8c59dbc2a15088d868170d799f763202fef Gitweb: http://git.kernel.org/tip/e290e8c59dbc2a15088d868170d799f763202fef Author: Kees Cook AuthorDate: Sun, 9 Feb 2014 13:56:44 -0800 Committer: H. Peter Anvin CommitDate: Tue, 25 Feb 2014 16:59:29 -0800 x86, kaslr: add missed

[tip:x86/urgent] x86, kaslr: export offset in VMCOREINFO ELF notes

2014-02-25 Thread tip-bot for Eugene Surovegin
Commit-ID: b6085a865762236bb84934161273cdac6dd11c2d Gitweb: http://git.kernel.org/tip/b6085a865762236bb84934161273cdac6dd11c2d Author: Eugene Surovegin AuthorDate: Thu, 23 Jan 2014 09:31:20 -0800 Committer: H. Peter Anvin CommitDate: Tue, 25 Feb 2014 16:57:47 -0800 x86, kaslr: export

Re: [PATCH] ksm: Expose configuration via sysctl

2014-02-25 Thread Hugh Dickins
On Tue, 25 Feb 2014, Johannes Weiner wrote: > On Tue, Feb 25, 2014 at 12:28:04AM +0100, Alexander Graf wrote: > > Configuration of tunables and Linux virtual memory settings has > > traditionally > > happened via sysctl. Thanks to that there are well established ways to make > > sysctl

[PATCH v3] x86, kaslr: randomize module base load address

2014-02-25 Thread Kees Cook
Randomize the load address of modules in the kernel to make kASLR effective for modules. Modules can only be loaded within a particular range of virtual address space. This patch adds 10 bits of entropy to the load address by adding 1-1024 * PAGE_SIZE to the beginning range where modules are

Re: [PATCH 6/8] security: smack: Use a more current logging style

2014-02-25 Thread Joe Perches
On Tue, 2014-02-25 at 18:53 -0600, Kodiak Furr wrote: > Chghf11 Sorry, I can't read this. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [RFC][PATCH] tracing: Warn and notify if tracepoints are not loaded due to module taint

2014-02-25 Thread Steven Rostedt
On Wed, 26 Feb 2014 00:39:01 + (UTC) Mathieu Desnoyers wrote: > - Original Message - > > From: "Steven Rostedt" > > To: "LKML" > > Cc: "Ingo Molnar" , "Mathieu Desnoyers" > > , "Rusty Russell" > > , "Frederic Weisbecker" , > > "Andrew Morton" , > > "Peter Zijlstra" > > Sent:

[PATCHv1 1/2] rx51_battery: convert to iio consumer

2014-02-25 Thread Sebastian Reichel
Update rx51-battery driver to use the new IIO API of twl4030-madc and add DT support. Signed-off-by: Sebastian Reichel --- drivers/power/rx51_battery.c | 68 +--- 1 file changed, 45 insertions(+), 23 deletions(-) diff --git a/drivers/power/rx51_battery.c

[PATCHv1 0/2] Convert rx51-battery to IIO API and add DT support

2014-02-25 Thread Sebastian Reichel
Hi, This is PATCHv1 for converting rx51-battery to the IIO API and adding DT support. The patchset compiles and has been tested on my Nokia N900. It depends on another patchset converting twl4030-madc to the IIO API: https://lkml.org/lkml/2014/2/25/627 -- Sebastian Sebastian Reichel (2):

[PATCHv1 2/2] Documentation: DT: Document rx51-battery binding

2014-02-25 Thread Sebastian Reichel
Add devicetree binding documentation for rx51-battery, which is a simple A/D converter consumer. Signed-off-by: Sebastian Reichel --- .../devicetree/bindings/power/rx51-battery.txt | 25 ++ 1 file changed, 25 insertions(+) create mode 100644

Re: [PATCH v2] x86, kaslr: randomize module base load address

2014-02-25 Thread H. Peter Anvin
On 02/25/2014 04:34 PM, Kees Cook wrote: > Randomize the load address of modules in the kernel to make kASLR > effective for modules. Modules can only be loaded within a particular > range of virtual address space. This patch adds 10 bits of entropy to > the load address by adding 1-1024 *

Re: [RFC][PATCH] tracing: Warn and notify if tracepoints are not loaded due to module taint

2014-02-25 Thread Mathieu Desnoyers
- Original Message - > From: "Steven Rostedt" > To: "LKML" > Cc: "Ingo Molnar" , "Mathieu Desnoyers" > , "Rusty Russell" > , "Frederic Weisbecker" , "Andrew > Morton" , > "Peter Zijlstra" > Sent: Tuesday, February 25, 2014 7:15:05 PM > Subject: [RFC][PATCH] tracing: Warn and notify if

Re: 3.14-rc4 blocks on LVM init

2014-02-25 Thread Mike Snitzer
On Tue, Feb 25 2014 at 7:12pm -0500, Michael Mueller wrote: > Hi, > > with 3.14-rc4 my box does not finish initializing the LVM array. It > hangs within the call to rw_header() on line 632 of dm-log.c. See > backtrace at end. Please excuse typos within - had to type it from a > screen shot. >

[PATCH v2] x86, kaslr: randomize module base load address

2014-02-25 Thread Kees Cook
Randomize the load address of modules in the kernel to make kASLR effective for modules. Modules can only be loaded within a particular range of virtual address space. This patch adds 10 bits of entropy to the load address by adding 1-1024 * PAGE_SIZE to the beginning range where modules are

Re: [PATCH v3] spi: core: Validate length of the transfers in message

2014-02-25 Thread Mark Brown
On Tue, Feb 25, 2014 at 10:55:28PM +0900, Atsushi Nemoto wrote: > Is xfer->len == 0 invalid? > Long time ago I have fixed atmel spi driver to support zero length > transfer (commit 06719814 atmel_spi: support zero length transfer). > According to Documentation/spi/spi-summary, zeto length

Re: [PATCH 0/7] Cpuidle: Minor fixes

2014-02-25 Thread Rafael J. Wysocki
On Monday, February 24, 2014 08:29:30 AM Tuukka Tikkanen wrote: > This set of patches makes some minor changes to menu governor and the poll > idle state. > > Patch 1 is simply a rename of a variable to make the name better represent > the contained information. > > Patch 2 fixes calculating

[RFC][PATCH] tracing: Warn and notify if tracepoints are not loaded due to module taint

2014-02-25 Thread Steven Rostedt
[ Posting this as an RFC, but I plan on pushing it as soon as I finish testing it ] If a module is loaded that is tainted with anything but OOT or CRAP, then it will not create the traceoint infrastructure for the module. There should be a big warning when this happens instead of exiting

[PATCH] [media] rtl28xxu: add USB ID for Genius TVGo DVB-T03

2014-02-25 Thread Jan Vcelak
0458:707f KYE Systems Corp. (Mouse Systems) TVGo DVB-T03 [RTL2832] The USB dongle uses RTL2832U demodulator and FC0012 tuner. Signed-off-by: Jan Vcelak --- The patch adds support for the Genius TVGo DVB-T03 USB dongle. drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 2 ++ 1 file changed, 2

3.14-rc4 blocks on LVM init

2014-02-25 Thread Michael Mueller
Hi, with 3.14-rc4 my box does not finish initializing the LVM array. It hangs within the call to rw_header() on line 632 of dm-log.c. See backtrace at end. Please excuse typos within - had to type it from a screen shot. The problem seems to be introduced by the commit

[RFCv3 4/7] mfd: twl-core: Add twl_i2c_read/write_u16

2014-02-25 Thread Sebastian Reichel
Add a simple twl_i2c_read/write_u16 wrapper over the twl_i2c_read/write, which is similar to the twl_i2c_read/write_u8 wrapper. Signed-off-by: Sebastian Reichel --- include/linux/i2c/twl.h | 12 1 file changed, 12 insertions(+) diff --git a/include/linux/i2c/twl.h

[RFCv3 5/7] mfd: twl4030-madc: Use twl_i2c_read/write_u16 for 16 bit registers

2014-02-25 Thread Sebastian Reichel
Simplify reading and writing of 16 bit TWL registers in the driver by using twl_i2c_read_u16 and twl_i2c_write_u16. Signed-off-by: Sebastian Reichel --- drivers/mfd/twl4030-madc.c | 39 --- 1 file changed, 8 insertions(+), 31 deletions(-) diff --git

[RFCv3 7/7] mfd: twl4030-madc: Move driver to drivers/iio/adc

2014-02-25 Thread Sebastian Reichel
This is a driver for an A/D converter, which belongs into drivers/iio/adc. Signed-off-by: Sebastian Reichel Acked-by: Lee Jones --- drivers/iio/adc/Kconfig | 10 ++ drivers/iio/adc/Makefile| 1 + drivers/{mfd => iio/adc}/twl4030-madc.c | 0

[RFCv3 6/7] Documentation: DT: Document twl4030-madc binding

2014-02-25 Thread Sebastian Reichel
Add devicetree binding documentation for twl4030-madc analog digital converter. Signed-off-by: Sebastian Reichel --- .../devicetree/bindings/iio/adc/twl4030-madc.txt | 24 ++ 1 file changed, 24 insertions(+) create mode 100644

[RFCv3 1/7] mfd: twl4030-madc: Use managed resources

2014-02-25 Thread Sebastian Reichel
Update twl4030-madc driver to use managed resources. Signed-off-by: Sebastian Reichel Acked-by: Lee Jones --- drivers/mfd/twl4030-madc.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/drivers/mfd/twl4030-madc.c b/drivers/mfd/twl4030-madc.c index

[RFCv3 3/7] mfd: twl4030-madc: Cleanup driver

2014-02-25 Thread Sebastian Reichel
Some style fixes in twl4030-madc driver. Reported-by: Jonathan Cameron Signed-off-by: Sebastian Reichel --- drivers/mfd/twl4030-madc.c | 108 ++- include/linux/i2c/twl4030-madc.h | 2 +- 2 files changed, 51 insertions(+), 59 deletions(-) diff --git

[RFCv3 2/7] mfd: twl4030-madc: Add DT support and convert to IIO framework

2014-02-25 Thread Sebastian Reichel
This converts twl4030-madc module to use the Industrial IO ADC framework and adds device tree support. Signed-off-by: Sebastian Reichel --- drivers/mfd/twl4030-madc.c | 122 ++--- 1 file changed, 115 insertions(+), 7 deletions(-) diff --git

[RFCv3 0/7] Convert twl4030-madc to IIO API and add DT support

2014-02-25 Thread Sebastian Reichel
Hi, This is RFCv3 for converting twl4030-madc to the IIO API and adding DT support. The patchset compiles and has been tested on my Nokia N900. Changes since RFCv2: * Use "--find-renames" for the move from mfd/ to iio/adc/ ;) * Added Acked-by from Lee Jones (MFD subsystem maintainer) * Fixed

Re: [PATCH] intel_pstate: Change busy calculation to use fixed point math.

2014-02-25 Thread Rafael J. Wysocki
On Tuesday, February 25, 2014 10:35:37 AM dirk.brande...@gmail.com wrote: > From: Dirk Brandewie > > Commit fcb6a15c2e Take core C0 time into account for core busy calculation. > > Introduced a regression on some processor SKUs supported by > intel_pstate. This was caused by the truncation

Re: [PATCH v3 1/3] Fix hibernation restore hang in freeze_processes

2014-02-25 Thread Rafael J. Wysocki
On Tuesday, February 25, 2014 04:01:58 PM Sebastian Capella wrote: > During restore, pm_notifier chain are called with > PM_RESTORE_PREPARE. The firmware_class driver handler > fw_pm_notify does not have a handler for this. As a result, > it keeps a reader on the kmod.c umhelper_sem. During >

[PATCH v2 01/12] clk: bcm281xx: warn if ccu_wait_bit() fails

2014-02-25 Thread Alex Elder
Don't let a failure of ccu_wait_bit() go unnoticed. Signed-off-by: Alex Elder --- drivers/clk/bcm/clk-kona.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/clk/bcm/clk-kona.c b/drivers/clk/bcm/clk-kona.c index e3d339e..c01d810 100644 --- a/drivers/clk/bcm/clk-kona.c +++

[PATCH v2 06/12] clk: bcm281xx: add clock policy support

2014-02-25 Thread Alex Elder
Add support for CCU policy engine control, and also for setting the mask bits for bus clocks that require a policy change to get activated. This includes adding validity checking framework for CCUs, to validate the policy fields if defined. Signed-off-by: Alex Elder ---

[PATCH v2 00/12] clk: bcm281xx: updates for 3.15

2014-02-25 Thread Alex Elder
This series includes updates for the bcm281xx clock code for 3.15. I had held off posting this until the code on which this is based was queued for 3.14, and it now has been: https://github.com/broadcom/mach-bcm/ Branch armsoc/for-3.15/drivers clk: bcm281xx: don't disable unused

[PATCH v2 03/12] clk: bcm281xx: change some symbol names

2014-02-25 Thread Alex Elder
As I developed the bcm281xx clock code I understood there were restrictions on device tree "compatible" strings names, and as a result "bcm11351" was used in places despite the part family being more properly called "bcm281xx". This can be a little confusing. In some cases I went to far and

[PATCH v2 05/12] clk: bcm281xx: define CCU clock data statically

2014-02-25 Thread Alex Elder
Rather than "manually" setting up each CCU's clock entries at run time, define a flexible array of generic Kona clock structures within the CCU structure itself. Each of these entries contains generic kona clock information (like its CCU pointer and clock framework initialization data). Each

[PATCH v2 11/12] clk: bcm281xx: define a bus clock

2014-02-25 Thread Alex Elder
Define the bus clock "bsc3_apb". This bus clock has to be managed using the CCU policy mechanism, so add the definitions required for that to the clock and its CCU. This one bus clock in particular is defined because it is needed by peripheral clock "bsc3". Our boot loader does not properly

[PATCH v2 04/12] clk: bcm281xx: initialize CCU structures statically

2014-02-25 Thread Alex Elder
We know up front how many CCU's we'll support, so there's no need to allocate their data structures dynamically. Define a macro KONA_CCU_COMMON() to simplify the initialization of many of the fields in a ccu_data structure. Pass the address of a statically defined CCU structure to

[PATCH v2 10/12] clk: bcm281xx: add bus clock support

2014-02-25 Thread Alex Elder
Add bus clock support. A bus clock has a subset of the components present in a peripheral clock (again, all optional): a gate; CCU policy management bits; and if needed, bits to control hysteresis. Signed-off-by: Alex Elder --- drivers/clk/bcm/clk-kona-setup.c | 96

[PATCH v2 12/12] ARM: dts: add bus clock bsc3_apb for bcm281xx

2014-02-25 Thread Alex Elder
Add the bus clock named "bsc3_apb" to the list of those provided by the slave CCU. Signed-off-by: Alex Elder --- arch/arm/boot/dts/bcm11351.dtsi |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/bcm11351.dtsi b/arch/arm/boot/dts/bcm11351.dtsi index

[PATCH v2 09/12] clk: bcm281xx: implement prerequisite clocks

2014-02-25 Thread Alex Elder
Allow a clock to specify a "prerequisite" clock. The prerequisite clock must be initialized before the clock that depends on it. A prerequisite clock is defined initially by its name; as that clock gets initialized the name gets replaced with a pointer to its clock structure pointer. In order

[PATCH v2 08/12] clk: bcm281xx: add an initialized flag

2014-02-25 Thread Alex Elder
Add a flag that tracks whether a clock has already been initialized. This will be used by the next patch to avoid initializing a clock more than once when it's listed as a prerequisite. Signed-off-by: Alex Elder --- drivers/clk/bcm/clk-kona.c | 16 ++-- drivers/clk/bcm/clk-kona.h

[PATCH v2 07/12] clk: bcm281xx: add clock hysteresis support

2014-02-25 Thread Alex Elder
Add support for clock gate hysteresis control. For now, if it's defined for a clock, it's enabled. Signed-off-by: Alex Elder --- drivers/clk/bcm/clk-kona-setup.c | 30 ++ drivers/clk/bcm/clk-kona.c | 33 +

Re: [RFC][PATCH 0/5] arch: atomic rework

2014-02-25 Thread Paul E. McKenney
On Mon, Feb 24, 2014 at 10:05:52PM -0800, Linus Torvalds wrote: > On Mon, Feb 24, 2014 at 3:35 PM, Linus Torvalds > wrote: > > > > Litmus test 1: > > > > p = atomic_read(pp, consume); > > if (p == ) > > return p->val; > > > >is *NOT* ordered > > Btw, don't get me wrong. I

[PATCH v2 02/12] clk: bcm281xx: use init_data.name for clock name

2014-02-25 Thread Alex Elder
Use the init_data.name field to hold the name of a Kona clock rather than duplicating it. Signed-off-by: Alex Elder --- drivers/clk/bcm/clk-kona-setup.c |6 +++--- drivers/clk/bcm/clk-kona.c | 17 ++--- drivers/clk/bcm/clk-kona.h |3 +-- 3 files changed, 14

Re: [RFC PATCH for-next 1/4] epoll: struct epoll userspace definiton

2014-02-25 Thread Nathaniel Yazdani
On Tue, 2014-02-25 at 10:15 +, Eric Wong wrote: > (Did you intend to Cc LKML on your original reply?) > > Nathaniel Yazdani wrote: > > On Sun, Feb 23, 2014 at 9:29 PM, Eric Wong wrote: > > > Nathaniel Yazdani wrote: > > >> +++ b/include/uapi/linux/eventpoll.h > > >> @@ -61,6 +61,12 @@

Re: [PATCH] ksm: Expose configuration via sysctl

2014-02-25 Thread Dave Hansen
On 02/25/2014 03:09 PM, Alexander Graf wrote: >> Couldn't we also (maybe in parallel) just teach the sysctl userspace >> about sysfs? This way we don't have to do parallel sysctls and sysfs >> for *EVERYTHING* in the kernel: >> >>sysfs.kernel.mm.transparent_hugepage.enabled=enabled > > It's

Re: [PATCH 00/10] pinctrl: mvebu: remove hard-coded addresses from Dove pinctrl

2014-02-25 Thread Jason Cooper
Linus, On Tue, Feb 25, 2014 at 10:36:54AM +0100, Linus Walleij wrote: > On Mon, Feb 24, 2014 at 7:10 PM, Jason Cooper wrote: > > > Sebastian, Linus, > > > > I've now created mvebu/pinctrl-dove for this series. It's based on > > v3.14-rc1, and depends on mvebu/pinctrl (which depends on > >

[PATCH v3 1/3] Fix hibernation restore hang in freeze_processes

2014-02-25 Thread Sebastian Capella
During restore, pm_notifier chain are called with PM_RESTORE_PREPARE. The firmware_class driver handler fw_pm_notify does not have a handler for this. As a result, it keeps a reader on the kmod.c umhelper_sem. During freeze_processes, the call to __usermodehelper_disable tries to take a write

Re: [PATCH] ksm: Expose configuration via sysctl

2014-02-25 Thread Kay Sievers
On Tue, Feb 25, 2014 at 6:34 PM, Dave Hansen wrote: > On 02/24/2014 03:28 PM, Alexander Graf wrote: >> Configuration of tunables and Linux virtual memory settings has traditionally >> happened via sysctl. Thanks to that there are well established ways to make >> sysctl configuration bits

[PATCH v3 0/3] hibernation support on ARM

2014-02-25 Thread Sebastian Capella
Patches adding support for hibernation on ARM - ARM hibernation / suspend-to-disk - Fix hang in freeze_processes during hibernation - Change soft_restart to use non-tracing raw_local_irq_disable Patches based on v3.13 tag, verified hibernation on beaglebone black on a branch based on 3.13

[PATCH v3 2/3] ARM: avoid tracers in soft_restart

2014-02-25 Thread Sebastian Capella
Use of tracers in local_irq_disable is causes abort loops when called with irqs disabled using a temporary stack. Replace local_irq_disable with raw_local_irq_disable instead to avoid tracers. Signed-off-by: Sebastian Capella Cc: Russell King Cc: Andrew Morton Cc: Thomas Gleixner Cc: Will

[PATCH v3 3/3] ARM hibernation / suspend-to-disk

2014-02-25 Thread Sebastian Capella
From: Russ Dill Enable hibernation for ARM architectures and provide ARM architecture specific calls used during hibernation. The swsusp hibernation framework depends on the platform first having functional suspend/resume. Then, in order to enable hibernation on a given platform, a

Re: [PATCH 1/4] regmap: Mark reg_defaults in regmap_multi_reg_write as const

2014-02-25 Thread Mark Brown
On Tue, Feb 25, 2014 at 01:45:49PM +, Charles Keepax wrote: > There should be no need for the writes supplied to this function to be > edited by it so mark them as const. Applied all, thanks. signature.asc Description: Digital signature

Re: [PATCH 1/2] regulator: dummy: Should be always-on

2014-02-25 Thread Mark Brown
On Tue, Feb 25, 2014 at 11:03:46AM +0100, Markus Pargmann wrote: > Regulator dummy does not have any enable operations. So it is always_on. Applied, thanks. signature.asc Description: Digital signature

Re: [PATCH] ASoC: fsl-sai: fix Freescale SAI DAI format setting.

2014-02-25 Thread Mark Brown
On Tue, Feb 25, 2014 at 05:54:51PM +0800, Xiubo Li wrote: > o Fix some bugs of fsl_sai_set_dai_fmt_tr(). > o Add SND_SOC_DAIFMT_LEFT_J support. > o Add SND_SOC_DAIFMT_CBS_CFM support. > o Add SND_SOC_DAIFMT_CBM_CFS support. > o And SND_SOC_DAIFMT_RIGHT_J need to be done in the future. Applied,

Re: [PATCH] ksm: Expose configuration via sysctl

2014-02-25 Thread Kay Sievers
On Wed, Feb 26, 2014 at 12:16 AM, Alexander Graf wrote: > > >>> Am 26.02.2014 um 01:19 schrieb Peter Zijlstra : >>> On Tue, Feb 25, 2014 at 12:15:28PM -0500, Johannes Weiner wrote: On Tue, Feb 25, 2014 at 12:28:04AM +0100, Alexander Graf wrote: Configuration of tunables and Linux

Re: [RFC PATCH for-next 4/4] epoll: epoll() syscall definition

2014-02-25 Thread Nathaniel Yazdani
On Tue, 2014-02-25 at 10:21 +, Eric Wong wrote: > Nathaniel Yazdani wrote: > > + * stores triggered eventpoll entries in the 'out' array. The input array > > is > > + * _not_ read-only, because the resulting event mask gets written back to > > each > > + * entry's ->ep_events field. When

Re: [RFC PATCH for-next 2/4] epoll: epoll() syscall declaration

2014-02-25 Thread Nathaniel Yazdani
On Tue, 2014-02-25 at 10:30 +, Eric Wong wrote: > Nathaniel Yazdani wrote: > > On Sun, Feb 23, 2014 at 9:32 PM, Eric Wong wrote: > > > Nathaniel Yazdani wrote: > > >> +asmlinkage long sys_epoll(int ep, struct epoll __user *in, > > >> + unsigned int inc, struct epoll

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