[PATCH] tracing: store entry->next_cpu to trace records in trace_ctxwake_bin()

2013-08-22 Thread Jiang Liu
From: Jiang Liu Function trace_ctxwake_bin() misses ctx_switch_entry->next_cpu field, so user will get stale value for "next_cpu". Signed-off-by: Jiang Liu Cc: Steven Rostedt Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: linux-kernel@vger.kernel.org --- kernel/trace/trace_output.c | 1 + 1 fi

Re: [PATCH] mm, fs: avoid page allocation beyond i_size on read

2013-08-22 Thread Kirill A. Shutemov
Steven Whitehouse wrote: > Hi, > > On Wed, 2013-08-21 at 13:58 -0700, Andrew Morton wrote: > > On Wed, 21 Aug 2013 17:42:12 +0100 Steven Whitehouse > > wrote: > > > > > > I don't think the change is harmful. The worst case scenario is race > > > > with > > > > write or truncate, but it's valid

Re: There is strange packets dropping on new kernels

2013-08-22 Thread Alexey Vlasov
On Thu, Aug 22, 2013 at 12:51:24PM +0200, Paul Rolland wrote: > > Looks like you are not using the same tcpdump... Could it be a bug related > to that application ? You are right. Then problem is in new version of tcpdump. Thanks. -- BRGDS. Alexey Vlasov. -- To unsubscribe from this list: send

Re: [PATCH v1 3/4] spi/xilinx: Simplify irq allocation

2013-08-22 Thread Mark Brown
On Fri, Jul 12, 2013 at 04:00:24PM +0200, Michal Simek wrote: > Just a follow up on this. Sorry, this one fell through the cracks - apologies for the delay. > Which function free private structures registered by spi_alloc_master > function? > Is it in spi_master_put()? Yes, or spi_master_unreg

Re: Regression: x86/mm: new _PTE_SWP_SOFT_DIRTY bit conflicts with existing use

2013-08-22 Thread Cyrill Gorcunov
On Thu, Aug 22, 2013 at 03:37:33PM +0900, Minchan Kim wrote: > > > > Look, good thing is that 7th bit also available on the 4level pages > > (ie x86-64) without additional code modification, that's why I picked > > it in first place. I prepared the patch locally which doesn't use > > pse bit for t

Re: Re: [PATCH] [BUGFIX] crash/ioapic: Prevent crash_kexec() from deadlocking of ioapic_lock

2013-08-22 Thread Don Zickus
On Thu, Aug 22, 2013 at 05:38:07PM +0900, Yoshihiro YUNOMAE wrote: > >So, I agree with Eric, let's remove the disable_IO_APIC() stuff and keep > >the code simpler. > > Thank you for commenting about my patch. > I didn't know you already have submitted the patches for this deadlock > problem. > >

Re: [RFC PATCH] phylib: mdio: handle register/unregister/register sequence

2013-08-22 Thread Florian Fainelli
2013/8/22 boris brezillon : > Hello Florian, > > Thanks for your answer. > > > On 22/08/2013 14:43, Florian Fainelli wrote: >> >> Hello Boris, >> >> 2013/8/22 Boris BREZILLON : >>> >>> Hello, >>> >>> This patch is a proposal to support the register/unregister/register >>> sequence on a given mdio b

Build failure in drivers/pinctrl/pictrl-imx.c

2013-08-22 Thread Tushar Behera
Hi Linus, With 'allyesconfig' on next-20130822, we are getting a build failure here. I am not sure about the fix, hence only reporting the issue here. drivers/pinctrl/pinctrl-imx.c: In function ‘imx_pinctrl_parse_groups’: drivers/pinctrl/pinctrl-imx.c:35:5: error: incompatible

Re: [PATCH 4/4] pinctrl: mvebu: add missing iounmap

2013-08-22 Thread Ezequiel Garcia
Hi Jisheng, On Thu, Aug 22, 2013 at 08:46:51PM +0800, Jisheng Zhang wrote: > Add missing iounmap to prove error path and remove path > > Signed-off-by: Jisheng Zhang > --- > drivers/pinctrl/mvebu/pinctrl-mvebu.c | 24 +--- > 1 file changed, 17 insertions(+), 7 deletions(-)

Re: [RFC PATCH] phylib: mdio: handle register/unregister/register sequence

2013-08-22 Thread boris brezillon
Hello Florian, Thanks for your answer. On 22/08/2013 14:43, Florian Fainelli wrote: Hello Boris, 2013/8/22 Boris BREZILLON : Hello, This patch is a proposal to support the register/unregister/register sequence on a given mdio bus. I use the register/unregister/register sequence to add a fal

Re: [RFC PATCH] phylib: mdio: handle register/unregister/register sequence

2013-08-22 Thread boris brezillon
On 22/08/2013 15:15, Florian Fainelli wrote: 2013/8/22 boris brezillon : Hello Florian, Thanks for your answer. On 22/08/2013 14:43, Florian Fainelli wrote: Hello Boris, 2013/8/22 Boris BREZILLON : Hello, This patch is a proposal to support the register/unregister/register sequence on a g

[PATCH] iommu: No need to pass '0x' when '%pa' is used

2013-08-22 Thread Fabio Estevam
Commit 6197ca82 (iommu: Use %pa and %zx instead of casting) introduced the usage of '%pa', but still kept the '0x', which leads to printing '0x0x'. Remove the '0x' when '%pa' is used. Signed-off-by: Fabio Estevam --- drivers/iommu/iommu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletion

Re: [PATCH RFC v2 1/2] qspinlock: Introducing a 4-byte queue spinlock implementation

2013-08-22 Thread Alexander Fyodorov
22.08.2013, 05:04, "Waiman Long" : > On 08/21/2013 11:51 AM, Alexander Fyodorov wrote: > In this case, we should have smp_wmb() before freeing the lock. The > question is whether we need to do a full mb() instead. The x86 ticket > spinlock unlock code is just a regular add instruction except for so

Re: [PATCH v4 03/19] powerpc: refactor of_get_cpu_node to support other architectures

2013-08-22 Thread Sudeep KarkadaNagesha
On 22/08/13 07:15, Benjamin Herrenschmidt wrote: > On Tue, 2013-08-20 at 10:30 +0100, Sudeep KarkadaNagesha wrote: >> From: Sudeep KarkadaNagesha >> >> Currently different drivers requiring to access cpu device node are >> parsing the device tree themselves. Since the ordering in the DT need >> no

Re: [PATCH v4 28/28] PCI, x86, ACPI: get ioapic address from acpi device

2013-08-22 Thread rui wang
On 8/11/13, Yinghai Lu wrote: > Some ioapic controllers do not show up on pci config space, > or pci device is there but no bar is used and is set by firmware in > other non standard registers. > > We can get ioapic address from ACPI0009's _CRS. > > Signed-off-by: Yinghai Lu > --- > drivers/pci/

Re: [PATCH] mm, fs: avoid page allocation beyond i_size on read

2013-08-22 Thread Steven Whitehouse
Hi, On Thu, 2013-08-22 at 16:05 +0300, Kirill A. Shutemov wrote: > Steven Whitehouse wrote: > > Hi, > > > > On Wed, 2013-08-21 at 13:58 -0700, Andrew Morton wrote: > > > On Wed, 21 Aug 2013 17:42:12 +0100 Steven Whitehouse > > > wrote: > > > > > > > > I don't think the change is harmful. The w

Re: [PATCH 09/33] ARM: ux500: Supply the I2C clocks lookup to the DBX500 DT

2013-08-22 Thread Mark Rutland
On Tue, Aug 20, 2013 at 10:30:34AM +0100, Sascha Hauer wrote: > On Tue, Aug 20, 2013 at 11:11:19AM +0200, Linus Walleij wrote: > > On Thu, Jun 6, 2013 at 2:16 PM, Lee Jones wrote: > > > > > +++ b/arch/arm/boot/dts/dbx5x0.dtsi > > > @@ -572,6 +572,8 @@ > > > v-i2c-supply =

Re: [RFC PATCH] phylib: mdio: handle register/unregister/register sequence

2013-08-22 Thread boris brezillon
On 22/08/2013 14:33, Boris BREZILLON wrote: Hello, This patch is a proposal to support the register/unregister/register sequence on a given mdio bus. I forgot to ask, if this limitation was made on purpose ? In other terms: no one should ever try to register, unregister and register again a

Re: [PATCH] iommu: No need to pass '0x' when '%pa' is used

2013-08-22 Thread Joe Perches
On Thu, 2013-08-22 at 10:25 -0300, Fabio Estevam wrote: > Commit 6197ca82 (iommu: Use %pa and %zx instead of casting) introduced the > usage of '%pa', but still kept the '0x', which leads to printing '0x0x'. > Remove the '0x' when '%pa' is used. And there are no other uses of "0x%pa" in current o

Re: [PATCH v2] gpio: interrupt consistency check for OF GPIO IRQs

2013-08-22 Thread Andreas Larsson
On 2013-08-21 15:38, Lars Poeschel wrote: +static void of_gpio_scan_irq_lines(const struct device_node *const node, + struct device_node *const gcn, + struct irq_domain *const irq_domain, + const u3

Re: [PATCH 1/3] misc: Add crossbar driver

2013-08-22 Thread Santosh Shilimkar
On Thursday 22 August 2013 07:33 AM, Sricharan R wrote: > Hi Linus, > > On Thursday 22 August 2013 02:40 AM, Linus Walleij wrote: >> On Thu, Aug 15, 2013 at 11:14 PM, Santosh Shilimkar >> wrote: >>> On Thursday 15 August 2013 04:51 PM, Linus Walleij wrote: >> (...) Sorry I don't understand w

Re: [PATCH 09/33] ARM: ux500: Supply the I2C clocks lookup to the DBX500 DT

2013-08-22 Thread Lee Jones
On Thu, 22 Aug 2013, Mark Rutland wrote: > On Tue, Aug 20, 2013 at 10:30:34AM +0100, Sascha Hauer wrote: > > On Tue, Aug 20, 2013 at 11:11:19AM +0200, Linus Walleij wrote: > > > On Thu, Jun 6, 2013 at 2:16 PM, Lee Jones wrote: > > > > > > > +++ b/arch/arm/boot/dts/dbx5x0.dtsi > > > > @@ -572,6 +

Dear Beneficiary

2013-08-22 Thread The Weir Foundation
Dear Beneficiary My Wife Christine and I are donating £550,000 to you.Contact us via my wife email at (funds.christineweir.fundat...@gmail.com) for further details. Best Regards, Colin & Christine Weir• Copyright ©2013• The Weir Foundation• All Rights Reserved• -- To unsubscribe from this list

[GIT PULL v2] DT/core: cpu_ofnode updates for v3.12

2013-08-22 Thread Sudeep KarkadaNagesha
Hi Rafael, Here is the v2 of the pull request for cpu of_node updates for v3.12 It includes ACK for all the new changes since v1(mainly from Ben for PPC). Currently there's trivial conflict with today's linux-next in 3 files. Let me know if you need me to rebase this on any particular branch if ne

Re: [RFC PATCH v2 3/4] powerpc: refactor of_get_cpu_node to support other architectures

2013-08-22 Thread Mark Rutland
On Mon, Aug 19, 2013 at 02:56:10PM +0100, Sudeep KarkadaNagesha wrote: > On 19/08/13 14:02, Rob Herring wrote: > > On 08/19/2013 05:19 AM, Mark Rutland wrote: > >> On Sat, Aug 17, 2013 at 11:09:36PM +0100, Benjamin Herrenschmidt wrote: > >>> On Sat, 2013-08-17 at 12:50 +0200, Tomasz Figa wrote: > >

[ANNOUNCE] kmod 15

2013-08-22 Thread Lucas De Marchi
ftp://ftp.kernel.org/pub/linux/utils/kernel/kmod/kmod-15.tar.xz ftp://ftp.kernel.org/pub/linux/utils/kernel/kmod/kmod-15.tar.sign Hey! kmod 15 is out. 2 important fixes: one to parse the kernel command line correctly when there are boolean values and another to static-nodes tool not fail if modu

[PATCH 1/3] Input: atkbd - add LED triggers for keyboard state

2013-08-22 Thread Jason A. Donenfeld
Many new laptop keyboards aren't shipping with LEDs in the keys for caps lock, num lock, and scroll lock. They do, however, ship with many LEDs for specialized functions that mostly go non-utilized by any current Linux drivers. Having a caps lock LED is very helpful in early boot full disk encrypti

[PATCH 3/3] thinkpad_acpi: Wire unused micmute LED to capslock

2013-08-22 Thread Jason A. Donenfeld
Thinkpads with a micmute LED do not have a capslock LED. The micmute LED is currently not used by any piece of Linux kernel land or user land. It seems reasonable to hook it up to caps lock, at least by default, so users can have some degree of functionality. Signed-off-by: Jason A. Donenfeld ---

[PATCH 2/3] thinkpad_acpi: Support micmute LED

2013-08-22 Thread Jason A. Donenfeld
The micmute LED is currently unused. This patch allows it to be hooked up to various LED triggers. Signed-off-by: Jason A. Donenfeld --- drivers/platform/x86/thinkpad_acpi.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/

[PATCH v3 05/12] perf: Add persistent events

2013-08-22 Thread Robert Richter
From: Robert Richter Add the needed pieces for persistent events which makes them process-agnostic. Also, make their buffers read-only when mmaping them from userspace. Add a barebones implementation for registering persistent events with perf. For that, we don't destroy the buffers when they're

[PATCH v3 00/12] perf, persistent: Add persistent events

2013-08-22 Thread Robert Richter
This patch set implements the necessary kernel changes for persistent events. Persistent events run standalone in the system without the need of a controlling process that holds an event's file descriptor. The events are always enabled and collect data samples in a ring buffer. Processes may conne

[PATCH v3 02/12] perf, mmap: Factor out try_get_event()/put_event()

2013-08-22 Thread Robert Richter
From: Robert Richter Implement try_get_event() as counter part to put_event(). Put both in internal.h to make it available to other perf files. Signed-off-by: Robert Richter Signed-off-by: Robert Richter --- kernel/events/core.c | 9 +++-- kernel/events/internal.h | 12

[PATCH v3 07/12] perf, persistent: Implementing a persistent pmu

2013-08-22 Thread Robert Richter
From: Robert Richter We want to use the kernel's pmu design to later expose persistent events via sysfs to userland. Initially implement a persistent pmu. The format syntax is introduced allowing to set bits anywhere in struct perf_event_attr. This is used in this case to set the persistent flag

[PATCH v3 10/12] perf, persistent: Implement reference counter for events

2013-08-22 Thread Robert Richter
From: Robert Richter We need this later for proper event removal. Signed-off-by: Robert Richter Signed-off-by: Robert Richter --- kernel/events/persistent.c | 27 +-- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/kernel/events/persistent.c b/kernel/ev

[PATCH v3 11/12] perf, persistent: Dynamically resize list of sysfs entries

2013-08-22 Thread Robert Richter
From: Robert Richter There was a limitation of the total number of persistent events to be registered in sysfs due to the lack of dynamically list allocation. This patch implements memory reallocation in case an event is added or removed from the list. While at this also implement pevent_sysfs_u

[PATCH v3 12/12] [RFC] perf, persistent: ioctl functions to control persistency

2013-08-22 Thread Robert Richter
From: Robert Richter Implementing ioctl functions to control persistent events. There are functions to detach or attach an event to or from a process. The PERF_EVENT_IOC_DETACH ioctl call makes an event persistent. After closing the event's fd it runs then in the background of the system without

[PATCH v3 09/12] perf, persistent: Use unique event ids

2013-08-22 Thread Robert Richter
From: Robert Richter Tracepoints have a unique attr.config value. But, this is not sufficient to support all event types. For this we need to generate unique event ids. Signed-off-by: Robert Richter Signed-off-by: Robert Richter --- kernel/events/persistent.c | 40

Re: [RFC][PATCH] Introduce page fault tracepoint

2013-08-22 Thread Steven Rostedt
On Tue, 30 Jul 2013 18:52:33 -0400 Seiji Aguchi wrote: /* IOAPIC */ > #define IO_APIC_IRQ(x) (((x) >= NR_IRQS_LEGACY) || ((1<<(x)) & io_apic_irqs)) > diff --git a/arch/x86/include/asm/trace/exceptions.h > b/arch/x86/include/asm/trace/exceptions.h > new file mode 100644 > index 000..660fcf1

[PATCH v3 06/12] mce, x86: Enable persistent events

2013-08-22 Thread Robert Richter
From: Borislav Petkov ... for MCEs collection. Signed-off-by: Borislav Petkov [ rric: Fix build error for no-tracepoints configs ] [ rric: Return proper error code. ] [ rric: No error message if perf is disabled. ] Signed-off-by: Robert Richter --- arch/x86/kernel/cpu/mcheck/mce.c | 19 ++

Re: ipvsadm: One-packet scheduling with UDP service is unstable

2013-08-22 Thread Julian Anastasov
Hello, On Thu, 22 Aug 2013, Drunkard Zhang wrote: > 2013/8/22 Julian Anastasov : > > > > No kernel options should be related to OPS. I assume > > you are not using the SH scheduler. Make sure the OPS mode > > is properly applied to the virtual service, check for "ops" > > in the

[PATCH v3 08/12] perf, persistent: Exposing persistent events using sysfs

2013-08-22 Thread Robert Richter
From: Robert Richter Expose persistent events in the system to userland using sysfs. Perf tools are able to read existing pmu events from sysfs. Now we use a persistent pmu as an event container containing all registered persistent events of the system. This patch adds dynamically registration of

[PATCH v3 01/12] perf, mmap: Factor out ring_buffer_detach_all()

2013-08-22 Thread Robert Richter
From: Robert Richter Factor out a function to detach all events from a ringbuffer. No functional changes. Signed-off-by: Robert Richter Signed-off-by: Robert Richter --- kernel/events/core.c | 82 1 file changed, 44 insertions(+), 38 deleti

[PATCH v3 04/12] perf, mmap: Factor out perf_get_fd()

2013-08-22 Thread Robert Richter
From: Robert Richter This new function creates a new fd for an event. We need this later to get a fd from a persistent event. Signed-off-by: Robert Richter Signed-off-by: Robert Richter --- kernel/events/core.c | 13 - kernel/events/internal.h | 1 + 2 files changed, 9 insert

[PATCH v3 03/12] perf, mmap: Factor out perf_alloc/free_rb()

2013-08-22 Thread Robert Richter
From: Robert Richter Factor out code to allocate and deallocate ringbuffers. We need this later to setup the sampling buffer for persistent events. While at this, replacing get_current_user() with get_uid(user). Signed-off-by: Robert Richter Signed-off-by: Robert Richter --- kernel/events/co

Re: [PATCH 09/33] ARM: ux500: Supply the I2C clocks lookup to the DBX500 DT

2013-08-22 Thread Lee Jones
On Thu, 22 Aug 2013, Mark Rutland wrote: > On Tue, Aug 20, 2013 at 10:30:34AM +0100, Sascha Hauer wrote: > > On Tue, Aug 20, 2013 at 11:11:19AM +0200, Linus Walleij wrote: > > > On Thu, Jun 6, 2013 at 2:16 PM, Lee Jones wrote: > > > > > > > +++ b/arch/arm/boot/dts/dbx5x0.dtsi > > > > @@ -572,6 +

Re: Linking failure on linux-next with arm allyesconfig

2013-08-22 Thread Russell King - ARM Linux
the breakage so you can target your reports a little better. Thanks. On Thu, Aug 22, 2013 at 07:38:15PM +0530, Tushar Behera wrote: > Hi, > > With ARCH=arm 'allyesconfig' on next-20130822, following linking error > is observed. > > arch/arm/kernel/built-in.o: In functi

Re: [PATCH] scsi: fix the build warning

2013-08-22 Thread James Bottomley
On Thu, 2013-08-22 at 21:42 +0900, Akinobu Mita wrote: > 2013/8/22 Martin K. Petersen : > >> "Joe" == Joe Perches writes: > > > > Joe> I don't get this build warning in the first place and I think the > > Joe> scsi_debug file is quite old and probably doesn't need to be > > Joe> changed at all

Re: [PATCH] mm, fs: avoid page allocation beyond i_size on read

2013-08-22 Thread Kirill A. Shutemov
Steven Whitehouse wrote: > Hi, > > On Thu, 2013-08-22 at 16:05 +0300, Kirill A. Shutemov wrote: > > Steven Whitehouse wrote: > > > Hi, > > > > > > On Wed, 2013-08-21 at 13:58 -0700, Andrew Morton wrote: > > > > On Wed, 21 Aug 2013 17:42:12 +0100 Steven Whitehouse > > > > wrote: > > > > > > > >

Re: [PATCH 5/8] rcu: eliminate deadlock for rcu read site

2013-08-22 Thread Steven Rostedt
On Thu, 22 Aug 2013 22:23:09 +0800 Lai Jiangshan wrote: > > By making it a irq-safe lock, we need to disable interrupts every time > > it is taken, which means the entire pi-chain walk in > > rt_mutex_adjust_prio_chain() will pretty much be with interrupts > > disabled. > > > I didn't catch yo

Re: [PATCH] mm: strictlimit feature -v4

2013-08-22 Thread Fengguang Wu
Hi Maxim, > >I think I'll apply it to -mm for now to get a bit of testing, but would > >very much like it if Fengguang could find time to review the > >implementation, please. > Great! Fengguang, please... I'm so sorry for the delays! I'd like to test the patches out and take a look at its runti

Re: [PATCH 5/8] rcu: eliminate deadlock for rcu read site

2013-08-22 Thread Steven Rostedt
On Thu, 22 Aug 2013 10:34:31 -0400 Steven Rostedt wrote: > On Thu, 22 Aug 2013 22:23:09 +0800 > Lai Jiangshan wrote: > > > > > By making it a irq-safe lock, we need to disable interrupts every time > > > it is taken, which means the entire pi-chain walk in > > > rt_mutex_adjust_prio_chain() wi

[PATCH resent 2/4] perf tools: Modify event parser to update event attribute by index

2013-08-22 Thread Robert Richter
From: Robert Richter In a later patch we want to introduce a syntax that allows updating attribute fields by an index pointing to a certain u64 entry of struct perf_event_attr. We need this to expose any event via sysfs that is available in the system where especially flag fields need to be set.

[PATCH resent 0/4] perf tools: Persistent events, changes for perf tool integration

2013-08-22 Thread Robert Richter
This patch set contains userland changes necessary for out-of-the-box support of persistent events. These patches are follow on patches of the kernel patches I sent out today: [PATCH 00/16] perf, persistent: Kernel updates for perf tool integration Persistent events are always enabled kernel eve

[PATCH resent 1/4] perf tools: Rename flex conditions to avoid name conflicts

2013-08-22 Thread Robert Richter
From: Robert Richter These define's may cause conflicts with other definitions: #define INITIAL 0 #define mem 1 #define config 2 #define event 3 Prefix them with cond_* to avoid this. Signed-off-by: Robert Richter Signed-off-by: Robert Richter --- tools/perf/util/parse-events.l | 24 +++

[PATCH resent 4/4] perf tools: Retry mapping buffers readonly on EACCES

2013-08-22 Thread Robert Richter
From: Robert Richter Persistent event buffers may only be mmapped readonly. Thus, retry mapping it readonly if mmap returns EACCES after trying to mmap writable. [ namhyung: Don't write to readonly mmap'ed buffers. ] Signed-off-by: Robert Richter Signed-off-by: Robert Richter --- tools/perf/b

[PATCH resent 3/4] perf tools: Add attr syntax to event parser

2013-08-22 Thread Robert Richter
From: Robert Richter The event parser is limited to update only a subset of all fields in struct perf_event_attr (config*, period, branch_type). We are not able to set other attr fields, esp. flags. Introducing a new syntax to set any field of the event attribute by using an index to the u64 val

RE: [RFC][PATCH] Introduce page fault tracepoint

2013-08-22 Thread Seiji Aguchi
> Printing the regs pointer is rather useless. This is specific for x86, > why not print the ip of where it happened and the faulting address > itself? Thank you for reviewing. I will change the regs pointer to ip. > Note, you only need to change the TP_printk() to do that. For > efficiency reaso

Re: [PATCH] scsi: fix the build warning

2013-08-22 Thread Akinobu Mita
2013/8/22 James Bottomley : > On Thu, 2013-08-22 at 21:42 +0900, Akinobu Mita wrote: >> 2013/8/22 Martin K. Petersen : >> >> "Joe" == Joe Perches writes: >> > >> > Joe> I don't get this build warning in the first place and I think the >> > Joe> scsi_debug file is quite old and probably doesn't

[PATCH 1/3] xtensa: don't use echo -e needlessly

2013-08-22 Thread Max Filippov
-e is not needed to output strings without escape sequences. This breaks big endian FSF build when the shell is dash, because its builtin echo doesn't understand '-e' switch and outputs it in the echoed string. Cc: Chris Zankel Cc: linux-xte...@linux-xtensa.org Reported-by: Guenter Roeck Signed-

[PATCH 3/3] raid6/test: replace echo -e with printf

2013-08-22 Thread Max Filippov
-e is a non-standard echo option, echo output is implementation-dependent when it is used. Replace echo -e with printf as suggested by POSIX echo manual. Cc: NeilBrown Cc: Jim Kukunas Cc: "H. Peter Anvin" Cc: Yuanhan Liu Signed-off-by: Max Filippov --- lib/raid6/test/Makefile |2 +- 1 fi

[PATCH 0/3] clean up echo -e usage

2013-08-22 Thread Max Filippov
This series cleans up non-portable 'echo -e' usage. I haven't replaced all instances of 'echo -e' though: - those under Documentation don't affect build; - those that invoke echo by full path (/bin/echo) probably know what they do; - those that output user help don't affect build. Max Filippov (3)

[PATCH 2/3] x86: don't use echo -e needlessly

2013-08-22 Thread Max Filippov
-e is not needed to output strings without escape sequences. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x...@kernel.org Signed-off-by: Max Filippov --- arch/x86/Makefile |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/x86/Makefile b/arch/x86/Ma

Re: [PATCH] mm, fs: avoid page allocation beyond i_size on read

2013-08-22 Thread Steven Whitehouse
Hi, On Thu, 2013-08-22 at 17:30 +0300, Kirill A. Shutemov wrote: [snip] > > Andrew's proposed solution makes sense to me, and is probably the > > easiest way to solve this. > > Move check to no_cached_page? Yes > I don't see how it makes any difference for > page cache miss case: we anyway exclu

Re: [PATCH] mm: strictlimit feature -v4

2013-08-22 Thread Maxim Patlasov
Hi, 08/22/2013 06:41 PM, Fengguang Wu пишет: Hi Maxim, I think I'll apply it to -mm for now to get a bit of testing, but would very much like it if Fengguang could find time to review the implementation, please. Great! Fengguang, please... I'm so sorry for the delays! I'd like to test the p

Kernel migration eat CPUs

2013-08-22 Thread Alexey Vlasov
Hi, Beginning from 3.7 including 3.10 kernel, I noticed that from time to time all CPUs turn out to be busy 100% and at the moment websites of my clients work slowly or don’t work at all. top screen: https://www.dropbox.com/s/psuk2cwn6exinyd/3.9.cpu_migration.jpg All CPUs are busy with kernel th

Re: [PATCH 3/3] raid6/test: replace echo -e with printf

2013-08-22 Thread H. Peter Anvin
Acked-by: H. Peter Anvin Max Filippov wrote: >-e is a non-standard echo option, echo output is >implementation-dependent when it is used. Replace echo -e with printf >as >suggested by POSIX echo manual. > >Cc: NeilBrown >Cc: Jim Kukunas >Cc: "H. Peter Anvin" >Cc: Yuanhan Liu >Signed-off-by:

Re: [PATCH 2/3] x86: don't use echo -e needlessly

2013-08-22 Thread H. Peter Anvin
Can we drop the /bin/? Max Filippov wrote: >-e is not needed to output strings without escape sequences. > >Cc: Thomas Gleixner >Cc: Ingo Molnar >Cc: "H. Peter Anvin" >Cc: x...@kernel.org >Signed-off-by: Max Filippov >--- > arch/x86/Makefile |2 +- > 1 files changed, 1 insertions(+), 1 del

Re: [PATCH] mm, fs: avoid page allocation beyond i_size on read

2013-08-22 Thread Kirill A. Shutemov
Steven Whitehouse wrote: > Hi, > > On Thu, 2013-08-22 at 17:30 +0300, Kirill A. Shutemov wrote: > [snip] > > > Andrew's proposed solution makes sense to me, and is probably the > > > easiest way to solve this. > > > > Move check to no_cached_page? > Yes > > > I don't see how it makes any differe

Re: [PATCH 09/33] ARM: ux500: Supply the I2C clocks lookup to the DBX500 DT

2013-08-22 Thread Mark Rutland
On Thu, Aug 22, 2013 at 03:19:00PM +0100, Lee Jones wrote: > On Thu, 22 Aug 2013, Mark Rutland wrote: > > > On Tue, Aug 20, 2013 at 10:30:34AM +0100, Sascha Hauer wrote: > > > On Tue, Aug 20, 2013 at 11:11:19AM +0200, Linus Walleij wrote: > > > > On Thu, Jun 6, 2013 at 2:16 PM, Lee Jones wrote: >

Re: [PATCH 2/3] x86: don't use echo -e needlessly

2013-08-22 Thread Max Filippov
On Thu, Aug 22, 2013 at 7:11 PM, H. Peter Anvin wrote: > Can we drop the /bin/? Sure. > Max Filippov wrote: >>-e is not needed to output strings without escape sequences. >> >>Cc: Thomas Gleixner >>Cc: Ingo Molnar >>Cc: "H. Peter Anvin" >>Cc: x...@kernel.org >>Signed-off-by: Max Filippov >>

Re: [RFC PATCH] phylib: mdio: handle register/unregister/register sequence

2013-08-22 Thread Greg Kroah-Hartman
On Thu, Aug 22, 2013 at 02:33:56PM +0200, Boris BREZILLON wrote: > Hello, > > This patch is a proposal to support the register/unregister/register > sequence on a given mdio bus. > > I use the register/unregister/register sequence to add a fallback when the > of_mdiobus_register (this function ca

Re: [PATCH 2/2] powerpc/iommu: check dev->iommu_group before remove a device from iommu_group

2013-08-22 Thread Alex Williamson
On Thu, 2013-08-22 at 15:52 +0800, Wei Yang wrote: > On Thu, Aug 22, 2013 at 05:23:34PM +1000, Alexey Kardashevskiy wrote: > >On 08/19/2013 11:55 AM, Wei Yang wrote: > >> On Mon, Aug 19, 2013 at 11:39:49AM +1000, Alexey Kardashevskiy wrote: > >>> On 08/19/2013 11:29 AM, Wei Yang wrote: > On Fr

Re: linux-next: build failure after merge of the driver-core tree

2013-08-22 Thread Greg KH
On Thu, Aug 22, 2013 at 03:39:42PM +1000, Stephen Rothwell wrote: > Hi Greg, > > After merging the driver-core tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > In file included from include/linux/kobject.h:21:0, > from include/linux/module.h:16, >

Re: [PATCH] mm, fs: avoid page allocation beyond i_size on read

2013-08-22 Thread Steven Whitehouse
Hi, On Thu, 2013-08-22 at 18:16 +0300, Kirill A. Shutemov wrote: > Steven Whitehouse wrote: > > Hi, > > > > On Thu, 2013-08-22 at 17:30 +0300, Kirill A. Shutemov wrote: > > [snip] > > > > Andrew's proposed solution makes sense to me, and is probably the > > > > easiest way to solve this. > > > >

Re: [PATCH 3/3] thinkpad_acpi: Wire unused micmute LED to capslock

2013-08-22 Thread Matthew Garrett
On Thu, Aug 22, 2013 at 04:02:12PM +0200, Jason A. Donenfeld wrote: > Thinkpads with a micmute LED do not have a capslock LED. The micmute LED > is currently not used by any piece of Linux kernel land or user land. It > seems reasonable to hook it up to caps lock, at least by default, so > users ca

Re: [PATCH 09/33] ARM: ux500: Supply the I2C clocks lookup to the DBX500 DT

2013-08-22 Thread Lee Jones
On Thu, 22 Aug 2013, Mark Rutland wrote: > On Thu, Aug 22, 2013 at 03:19:00PM +0100, Lee Jones wrote: > > On Thu, 22 Aug 2013, Mark Rutland wrote: > > > > > On Tue, Aug 20, 2013 at 10:30:34AM +0100, Sascha Hauer wrote: > > > > On Tue, Aug 20, 2013 at 11:11:19AM +0200, Linus Walleij wrote: > > > >

Re: [PATCH 2/2] powerpc/iommu: check dev->iommu_group before remove a device from iommu_group

2013-08-22 Thread Wei Yang
On Thu, Aug 22, 2013 at 09:28:23AM -0600, Alex Williamson wrote: >On Thu, 2013-08-22 at 15:52 +0800, Wei Yang wrote: >> On Thu, Aug 22, 2013 at 05:23:34PM +1000, Alexey Kardashevskiy wrote: >> >On 08/19/2013 11:55 AM, Wei Yang wrote: >> >> On Mon, Aug 19, 2013 at 11:39:49AM +1000, Alexey Kardashevs

Null pointer dereference in nl80211_set_reg

2013-08-22 Thread Udo Steinberg
Hi all, I'm running Linux 3.10.7 and have encountered the following NULL pointer dereference. So far it has only occurred once, so I cannot reproduce the circumstances that cause the problem. Please keep me on CC: as I'm not subscribed to LKML. Cheers, Udo cfg80211: Calling CRDA for country: DE

[PATCH RESEND 1/3] zfcp: fix lock imbalance by reworking request queue locking

2013-08-22 Thread Steffen Maier
From: Martin Peschke This patch adds wait_event_interruptible_lock_irq_timeout(), which is a straight-forward descendant of wait_event_interruptible_timeout() and wait_event_interruptible_lock_irq(). The zfcp driver used to call wait_event_interruptible_timeout() in combination with some intrica

Re: [PATCH 0/8] x86, acpi: Move acpi_initrd_override() earlier.

2013-08-22 Thread Toshi Kani
Hello Tejun, On Wed, 2013-08-21 at 23:32 -0400, Tejun Heo wrote: > On Wed, Aug 21, 2013 at 04:36:35PM -0600, Toshi Kani wrote: > > I agree that ACPI is rather complicated stuff. But in my experience, > > the majority complication comes from ACPI namespace and methods, not > > from ACPI tables. D

Re: [PATCH v2 05/10] vfio: use get_unused_fd_flags(0) instead of get_unused_fd()

2013-08-22 Thread Alex Williamson
On Thu, 2013-08-15 at 15:10 +0200, Yann Droneaud wrote: > Macro get_unused_fd() is used to allocate a file descriptor with > default flags. Those default flags (0) can be "unsafe": > O_CLOEXEC must be used by default to not leak file descriptor > across exec(). > > Instead of macro get_unused_fd()

Re: [PATCH 2/6] mm/hwpoison: don't need to hold compound lock for hugetlbfs page

2013-08-22 Thread Naoya Horiguchi
On Thu, Aug 22, 2013 at 05:48:23PM +0800, Wanpeng Li wrote: > compound lock is introduced by commit e9da73d67("thp: compound_lock."), > it is used to serialize put_page against __split_huge_page_refcount(). > In addition, transparent hugepages will be splitted in hwpoison handler > and just one

Re: [PATCH 1/6] mm/hwpoison: fix lose PG_dirty flag for errors on mlocked pages

2013-08-22 Thread Naoya Horiguchi
Hi Wanpeng, On Thu, Aug 22, 2013 at 05:48:22PM +0800, Wanpeng Li wrote: > memory_failure() store the page flag of the error page before doing unmap, > and (only) if the first check with page flags at the time decided the error > page is unknown, it do the second check with the stored page flag s

[PATCH v2 0/2] ext4: increase mbcache scalability

2013-08-22 Thread T Makphaibulchoke
The patch consists of two parts. The first part introduces higher degree of parallelism to the usages of the mb_cache and mb_cache_entries and impacts all ext filesystems. The second part of the patch further increases the scalablity of an ext4 filesystem by having each ext4 fielsystem allocate a

Re: [RFC PATCH] phylib: mdio: handle register/unregister/register sequence

2013-08-22 Thread boris brezillon
On 22/08/2013 17:27, Greg Kroah-Hartman wrote: On Thu, Aug 22, 2013 at 02:33:56PM +0200, Boris BREZILLON wrote: Hello, This patch is a proposal to support the register/unregister/register sequence on a given mdio bus. I use the register/unregister/register sequence to add a fallback when the o

[PATCH v2 2/2] ext4: each filesystem creates and uses its own mc_cache

2013-08-22 Thread T Makphaibulchoke
This patch adds new interfaces to create and destory cache, ext4_xattr_create_cache() and ext4_xattr_destroy_cache(), and remove the cache creation and destory calls from ex4_init_xattr() and ext4_exitxattr() in fs/ext4/xattr.c. fs/ext4/super.c has been changed so that when a filesystem is mounted

[PATCH v2 1/2] mbcache: decoupling the locking of local from global data

2013-08-22 Thread T Makphaibulchoke
The patch increases the parallelism of mb_cache_entry utilization by introducing new spinlocks to the mb_cache structure to protect the mb_cache local block and index hash chains, while the global mb_cache_lru_list and mb_cache_list continue to be protected by the global mb_cache_spinlock. Signed-

Re: [PATCH v2 1/2] perf: add attr->mmap2 attribute to an event

2013-08-22 Thread Arnaldo Carvalho de Melo
Em Wed, Aug 21, 2013 at 12:10:24PM +0200, Stephane Eranian escreveu: > Adds a new PERF_RECORD_MMAP2 record type. > > Used to request mmap records with more information about > the mapping, including device major, minor and the inode > number and generation for mappings associated with files > or s

[PATCH 2/2] ARM: at91/dt: define phy available on sama5d3 mother board

2013-08-22 Thread Boris BREZILLON
This patch describe the phy used on atmel sama5d3 mother board: - phy address - phy interrupt pin Signed-off-by: Boris BREZILLON --- arch/arm/boot/dts/sama5d3xmb.dtsi |8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/sama5d3xmb.dtsi b/arch/arm/boot/dts/sama5d3xm

Re: [PATCH 4/4] perf, tools: Add perf stat --transaction v5

2013-08-22 Thread Arnaldo Carvalho de Melo
Em Wed, Aug 21, 2013 at 04:47:26PM -0700, Andi Kleen escreveu: > From: Andi Kleen > > Add support to perf stat to print the basic transactional execution > statistics: > Total cycles, Cycles in Transaction, Cycles in aborted transsactions > using the in_tx and in_tx_checkpoint qualifiers. > Tran

[PATCH V3] i2c: move of helpers into the core

2013-08-22 Thread Wolfram Sang
I2C of helpers used to live in of_i2c.c but experience (from SPI) shows that it is much cleaner to have this in the core. This also removes a circular dependency between the helpers and the core, and so we can finally register child nodes in the core instead of doing this manually in each driver. S

Re: oops during boot with CONFIG_SND_DYNAMIC_MINORS not set

2013-08-22 Thread Stratos Karafotis
On 08/22/2013 10:59 AM, Takashi Iwai wrote: > At Thu, 22 Aug 2013 00:42:41 +0300, > Stratos Karafotis wrote: >> >> Hi, >> >> I get the following oops during boot when build with >> CONFIG_SND_DYNAMIC_MINORS >> not set (3.11-rc6). >> The issue is vanished building the kernel with CONFIG_SND_DYNAMIC

Re: Null pointer dereference in nl80211_set_reg

2013-08-22 Thread Ben Hutchings
On Thu, 2013-08-22 at 17:41 +0200, Udo Steinberg wrote: > Hi all, > > I'm running Linux 3.10.7 and have encountered the following NULL pointer > dereference. So far it has only occurred once, so I cannot reproduce the > circumstances that cause the problem. > > Please keep me on CC: as I'm not su

Re: [PATCH 09/33] ARM: ux500: Supply the I2C clocks lookup to the DBX500 DT

2013-08-22 Thread Mark Rutland
On Thu, Aug 22, 2013 at 04:41:16PM +0100, Lee Jones wrote: > On Thu, 22 Aug 2013, Mark Rutland wrote: > > > On Thu, Aug 22, 2013 at 03:19:00PM +0100, Lee Jones wrote: > > > On Thu, 22 Aug 2013, Mark Rutland wrote: > > > > > > > On Tue, Aug 20, 2013 at 10:30:34AM +0100, Sascha Hauer wrote: > > > >

[PATCH] samsung-laptop: fix config build error

2013-08-22 Thread Randy Dunlap
From: Randy Dunlap Fix build failure when ACPI_VIDEO=m and SAMSUNG_LAPTOP=y. The patch prevents that specific config combination. drivers/built-in.o: In function `samsung_init': samsung-laptop.c:(.init.text+0x128ff): undefined reference to `acpi_video_unregister' Signed-off-by: Randy Dunlap R

Re: [PATCH 1/2] net/cadence/macb: add support for dt phy definition

2013-08-22 Thread boris brezillon
Hello Florian, On 22/08/2013 17:57, Boris BREZILLON wrote: The macb driver only handle PHY description through platform_data (macb_platform_data). Thus, when using dt you cannot define phy properties like phy address or phy irq pin. This patch makes use of the of_mdiobus_register to add support

[PATCH 0/2] net/cadence/macb: add support for dt phy definition

2013-08-22 Thread Boris BREZILLON
Hello, This patch series adds support for ethernet phy definition using device tree. This may help in moving some at91 boards to dt (some of them define an interrupt pin). Tested on samad31ek. Best Regards, Boris Boris BREZILLON (2): net/cadence/macb: add support for dt phy definition ARM:

Re: [PATCH 1/1] ACPI / PNP: Fix incorrect placement of __initdata

2013-08-22 Thread Bjorn Helgaas
[+cc linux-kernel] On Thu, Aug 22, 2013 at 1:44 AM, Sachin Kamat wrote: > __initdata should be placed between the variable name and equal > sign for the variable to be placed in the intended section. I'm not sure this is true, or maybe there's some sort of toolchain issue. On my system, I see t

Re: [BUG] ARM64: Create 4K page size mmu memory map at init time will trigger exception.

2013-08-22 Thread Catalin Marinas
On Thu, Aug 22, 2013 at 04:35:29AM +0100, Leizhen (ThunderTown, Euler) wrote: > This problem is on ARM64. When CONFIG_ARM64_64K_PAGES is not opened, the > memory > map size can be 2M(section) and 4K(PAGE). First, OS will create map for pgd > (level 1 table) and level 2 table which in swapper_pg_di

[PATCH v6 1/3] mmc: dw_mmc: Add exynos resume_noirq callback to clear WAKEUP_INT

2013-08-22 Thread Doug Anderson
If the WAKEUP_INT is asserted at wakeup and not cleared, we'll end up looping around forever. This has been seen to happen on exynos5420 silicon despite the fact that we haven't enabled any wakeup events due to a silicon errata. It is safe to do on all exynos variants. Signed-off-by: Doug Anders

<    1   2   3   4   5   6   7   >