Re: [PATCH v2] drivers/block/xen-blkback: preq.dev is used without initialized

2013-04-03 Thread Jan Beulich
>>> On 03.04.13 at 15:25, William Dauchy wrote: > On Wed, Apr 3, 2013 at 3:01 PM, Jan Beulich wrote: >> Iirc we requested the earlier commit to be removed from stable >> trees, and I think Greg also did so. > > I'm sorry but I'm unable to find a revert of 01c681d in stable tree. ChangeLog-3.8.3

Re: [PATCHv5 0/7] arm: vt8500: Add support for pinctrl/gpio module

2013-04-03 Thread Linus Walleij
On Wed, Apr 3, 2013 at 8:24 AM, Tony Prisk wrote: > v5 changes: > Changed as requested by Rob Herring: > Added of_find_property_value_of_size() to drivers/of/base.c to remove some > code that was being duplicated. > > Changed as requested by Stephen Warren: > Redid the kfree(maps) code as devm_kz

[PATCH Resend v5] sched: fix init NOHZ_IDLE flag

2013-04-03 Thread Vincent Guittot
On my smp platform which is made of 5 cores in 2 clusters, I have the nr_busy_cpu field of sched_group_power struct that is not null when the platform is fully idle. The root cause is: During the boot sequence, some CPUs reach the idle loop and set their NOHZ_IDLE flag while waiting for others CPUs

[PATCH v2] aio: convert the ioctx list to radix tree

2013-04-03 Thread Octavian Purdila
When using a large number of threads performing AIO operations the IOCTX list may get a significant number of entries which will cause significant overhead. For example, when running this fio script: rw=randrw; size=256k ;directory=/mnt/fio; ioengine=libaio; iodepth=1 blocksize=1024; numjobs=512;

Re: [RFC] Add implicit barriers to irqsave/restore class of functions

2013-04-03 Thread Vineet Gupta
Hi Christian, On 04/03/2013 06:40 PM, Christian Ruppert wrote: > This patch adds implicit memory barriers to irqsave/restore functions of > the ARC architecture port in line with what is done in other architectures. > > It seems to fix several seemingly unrelated issues in our platform but for > t

Re: [PATCH 0/3] gpio: remove GENERIC_GPIO completely

2013-04-03 Thread Linus Walleij
On Fri, Mar 29, 2013 at 2:11 PM, Alexandre Courbot wrote: > Since I have received no death threat from architecture maintainers I'd like > to > proceed with the remainder of this work so that it doesn't go half-baked into > 3.10. These three patches finish the removal of the GENERIC_GPIO config

Re: [PATCH v2] drivers/block/xen-blkback: preq.dev is used without initialized

2013-04-03 Thread William Dauchy
Hello Jan, On Wed, Apr 3, 2013 at 3:01 PM, Jan Beulich wrote: > Iirc we requested the earlier commit to be removed from stable > trees, and I think Greg also did so. I'm sorry but I'm unable to find a revert of 01c681d in stable tree. Regards, -- William -- To unsubscribe from this list: send t

Re: [PATCH 2/2] mm/x86: Patch out arch_flush_lazy_mmu_mode() when running on bare metal

2013-04-03 Thread Boris Ostrovsky
On 03/23/2013 09:36 AM, Konrad Rzeszutek Wilk wrote: From: Boris Ostrovsky Invoking arch_flush_lazy_mmu_mode() results in calls to preempt_enable()/disable() which may have performance impact. Since lazy MMU is not used on bare metal we can patch away arch_flush_lazy_mmu_mode() so that it is n

Re: [PATCH 2/2] ARM: remove mach .init_irq for irqchip_init users

2013-04-03 Thread Jamie Iles
On Thu, Mar 28, 2013 at 09:46:45PM +0100, Maxime Ripard wrote: > Now that the arm core code calls irqchip_init, we can remove it from all > the machines that were using it. > > Signed-off-by: Maxime Ripard > Acked-by: Simon Horman Acked-by: Jamie Iles Thanks Maxime! -- To unsubscribe from thi

Re: [PATCH 3/4] x86, kdump: Retore crashkernel= to allocate low

2013-04-03 Thread Vivek Goyal
On Tue, Apr 02, 2013 at 01:36:02PM -0700, Yinghai Lu wrote: [..] > > You are just describing what your code does. There is no theme or > > justification behind this behavior. There is no uniformity. A user can > > question that so far you used to honor last crashkernel= parameter and > > suddenly

[PATCH] Add non-zero module sections to sysfs

2013-04-03 Thread Sebastian Wankerl
Add non-zero module sections to sysfs on architectures unequal to PARISC. KGDB needs all module sections for proper module debugging. Therefore, commit 35dead4235e2b67da7275b4122fed37099c2f462 is revoked except for PARISC architecture. Signed-off-by: Sebastian Wankerl Signed-off-by: Philip Kranz

Re: [PATCH v3 01/11] usb: phy: Add APIs for runtime power management

2013-04-03 Thread Vivek Gautam
Hi Felipe, On Wed, Apr 3, 2013 at 1:45 PM, Felipe Balbi wrote: > Hi, > > On Wed, Apr 03, 2013 at 11:48:39AM +0530, Vivek Gautam wrote: >> >> Adding APIs to handle runtime power management on PHY >> >> devices. PHY consumers may need to wake-up/suspend PHYs >> >> when they work across autosuspen

[RFC] Add implicit barriers to irqsave/restore class of functions

2013-04-03 Thread Christian Ruppert
This patch adds implicit memory barriers to irqsave/restore functions of the ARC architecture port in line with what is done in other architectures. It seems to fix several seemingly unrelated issues in our platform but for the moment it is insufficiently tested (and might even be incomplete). Ple

Re: [PATCH 2/2] efi: Distinguish between "remaining space" and actually used space

2013-04-03 Thread Matt Fleming
On 01/04/13 16:14, Matthew Garrett wrote: > @@ -452,8 +462,33 @@ check_var_size_locked(struct efivars *efivars, u32 > attributes, > if (status != EFI_SUCCESS) > return status; > > - if (!storage_size || size > remaining_size || size > max_size || > - (remaining_si

Re: [PATCH 1/2] efi: Determine how much space is used by boot services-only variables

2013-04-03 Thread Matt Fleming
On 01/04/13 16:13, Matthew Garrett wrote: > EFI variables can be flagged as being accessible only within boot services. > This makes it awkward for us to figure out how much space they use at > runtime. In theory we could figure this out by simply comparing the results > from QueryVariableInfo() to

[PATCH -next] mxs/spi: fix error return code in mxs_spi_probe()

2013-04-03 Thread Wei Yongjun
From: Wei Yongjun Fix to return a negative error code from the error handling case instead of 0, as returned elsewhere in this function. Signed-off-by: Wei Yongjun --- drivers/spi/spi-mxs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/spi-mxs.c b/drivers/spi/spi-mxs.c index

Re: [PATCH] timer: Fix possible issues with non serialized timer_pending( )

2013-04-03 Thread Christian Ruppert
Hello Vineet, In the following a patch for a seemingly unrelated problem (RB-trees in hrtimer implementation) which seems to fix the original problem at the same time. For the moment, this patch is insufficiently tested but I am posting it here (preliminarily) since it seems to be in line with Tho

Re: [RFC][PATCH 2/7] memcg: don't use mem_cgroup_get() when creating a kmemcg cache

2013-04-03 Thread Glauber Costa
On 04/03/2013 01:12 PM, Li Zefan wrote: > Use css_get()/css_put() instead of mem_cgroup_get()/mem_cgroup_put(). > > Signed-off-by: Li Zefan > --- > mm/memcontrol.c | 10 +- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git a/mm/memcontrol.c b/mm/memcontrol.c > index 43ca9

Re: [Suggestion] ARM64:kernel: compiling issue for early_console.

2013-04-03 Thread Chen Gang
On 2013年04月03日 19:39, Christopher Covington wrote: > Maybe somebody else does have a fix, but Catalin mentioned he was going on > vacation for two weeks on March 28th in "[GIT PULL] Preparatory GIC patches > for arm64 support". > ok, I can wait. >> > if really no one fix it within this week,

Re: [PATCH v2] drivers/block/xen-blkback: preq.dev is used without initialized

2013-04-03 Thread Jan Beulich
>>> On 03.04.13 at 14:56, William Dauchy wrote: > On Thu, Feb 28, 2013 at 3:34 AM, Chen Gang wrote: >> additional information: >> before commit 01c681d4c70d64cb72142a2823f27c4146a02e63, the value printed >> here was bogus, as it was the guest provided value from req->u.rw.handle >> rather t

Re: [RFC][PATCH 1/7] memcg: use css_get in sock_update_memcg()

2013-04-03 Thread Glauber Costa
On 04/03/2013 01:11 PM, Li Zefan wrote: > Use css_get/css_put instead of mem_cgroup_get/put. > > Note, if at the same time someone is moving @current to a different > cgroup and removing the old cgroup, css_tryget() may return false, > and sock->sk_cgrp won't be initialized. > > Signed-off-by: Li

[PATCH v5 2/6] usb: phy: omap-usb2: use the new generic PHY framework

2013-04-03 Thread Kishon Vijay Abraham I
Used the generic PHY framework API to create the PHY. omap_usb2_suspend is split into omap_usb_suspend and omap_usb_resume in order to align with the new framework. However using the old USB PHY library cannot be completely removed because OTG is intertwined with PHY and moving to the new framewor

Re: [PATCH v2] drivers/block/xen-blkback: preq.dev is used without initialized

2013-04-03 Thread William Dauchy
Hello, On Thu, Feb 28, 2013 at 3:34 AM, Chen Gang wrote: > additional information: > before commit 01c681d4c70d64cb72142a2823f27c4146a02e63, the value printed > here was bogus, as it was the guest provided value from req->u.rw.handle > rather than the actual device. > > Signed-off-by: Chen

[PATCH v5 6/6] usb: musb: omap2430: use the new generic PHY framework

2013-04-03 Thread Kishon Vijay Abraham I
Use the generic PHY framework API to get the PHY. The usb_phy_set_suspend and usb_phy_set_resume is replaced with phy_suspend and phy_resume to align with the new PHY framework. musb->xceiv can't be removed as of now because musb core uses xceiv.state and xceiv.otg. Once there is a separate state

[PATCH v5 3/6] usb: otg: twl4030: use the new generic PHY framework

2013-04-03 Thread Kishon Vijay Abraham I
Used the generic PHY framework API to create the PHY. twl4030_usb_suspend and twl4030_usb_resume is added to phy_ops in order to align with the new framework. However using the old USB PHY library cannot be completely removed because OTG is intertwined with PHY and moving to the new framework comp

[PATCH v5 4/6] ARM: OMAP: USB: Add phy binding information

2013-04-03 Thread Kishon Vijay Abraham I
In order for controllers to get PHY in case of non dt boot, the phy binding information should be added in the platform specific initialization code using phy_bind. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/mach-omap2/usb-musb.c |7 ++- 1 file changed, 6 insertions(+), 1 deletio

[PATCH v5 0/6] Generic PHY Framework

2013-04-03 Thread Kishon Vijay Abraham I
Added a generic PHY framework that provides a set of APIs for the PHY drivers to create/destroy a PHY and APIs for the PHY users to obtain a reference to the PHY with or without using phandle. To obtain a reference to the PHY without using phandle, the platform specfic intialization code (say from

[PATCH v5 1/6] drivers: phy: add generic PHY framework

2013-04-03 Thread Kishon Vijay Abraham I
The PHY framework provides a set of APIs for the PHY drivers to create/destroy a PHY and APIs for the PHY users to obtain a reference to the PHY with or without using phandle. To obtain a reference to the PHY without using phandle, the platform specfic intialization code (say from board file) shoul

[PATCH v5 5/6] ARM: dts: omap: update usb_otg_hs data

2013-04-03 Thread Kishon Vijay Abraham I
Updated the usb_otg_hs dt data to include the *phy* and *phy-names* binding in order for the driver to use the new generic PHY framework. Also updated the Documentation to include the binding information. The PHY binding information can be found at Documentation/devicetree/bindings/phy/phy-bindings

Re: systemtap broken by removal of register_timer_hook

2013-04-03 Thread Frederic Weisbecker
2013/4/3 Frank Ch. Eigler : > Frederic Weisbecker writes: > >> [...] >> Sometimes I don't mind keeping around code in the kernel for out of >> tree users, depending on the case. But in this specific matter we have >> more standard ways to do this kind of hook: kprobes, static >> tracepoints. A tra

[PATCH 3/4] nohz: Pack nohz Kconfig option in a menu of choices

2013-04-03 Thread Frederic Weisbecker
Now the user has the choice between three implementations of the timer tick: * Static periodic tick * Idle dynticks * Full dynticks At least for now, these are mutually exclusive choices, so let's rely on the proper Kconfig feature to display these to the user. A new entry CONFIG_NO_HZ_IDLE is c

[RFC GIT PULL] nohz: Kconfig layout improvements

2013-04-03 Thread Frederic Weisbecker
Ingo, This set addresses your review concerning the Kconfig layout. Please note two things here that derive from what we agreed on due to technical limitations: * Now the full dynticks Kconfig is not hidden anymore behind its high level dependencies. (ie: passive dependencies are now active). The

[PATCH 1/4] nohz: Unhide full dynticks feature from its dependencies

2013-04-03 Thread Frederic Weisbecker
The full dynticks feature only shows up when all its Kconfig dependencies are met (RCU nocbs, RCU user mode, ...) This is far from being user friendly as those who want to activate this feature need to look into the Kconfig files and iterate through each dependency then activate these by hand in o

[PATCH 4/4] nohz: Print final full dynticks CPUs range on boot

2013-04-03 Thread Frederic Weisbecker
Given that we apply a few restrictions on the full dynticks CPUs range (keep an online timekeeper oustide the range, then in the future have the range be an RCU nocb CPUs subset), let's print the final resulting range of full dynticks CPUs to the user so that he knows what's really going to run. S

[PATCH 2/4] nohz: Rename CONFIG_NO_HZ to CONFIG_NO_HZ_COMMON

2013-04-03 Thread Frederic Weisbecker
We are planning to convert the dynticks Kconfig options layout into a choice menu. The user must be able to easily pick any of the following implementations: constant periodic tick, idle dynticks, full dynticks. As this implies a mutual exclusion, the two dynticks implementions need to converge on

Re: [PATCH 2/2] pinctrl: simplify the re-enable old state code in pinctrl_select_state

2013-04-03 Thread Linus Walleij
On Fri, Mar 29, 2013 at 10:03 AM, Richard Genoud wrote: > Instead of just enabling the settings that were disabled in the 1st > loop, it's simpler to recall pinctrl_select_state with the old state. > > Signed-off-by: Richard Genoud Patch applied with Stephen's review tag. Thanks, Linus Walleij

Re: [PATCH 1/2] pinctrl: select_state: don't call pinctrl_free_setting on error

2013-04-03 Thread Linus Walleij
On Fri, Mar 29, 2013 at 10:03 AM, Richard Genoud wrote: > As Stephen Warren pointed out, pinctrl_free_setting() was called instead > of pinmux_disable_setting() on error. > In this error code, we want to call pinmux_disable_setting() where > pinmux_enable_setting() was called. > And when pinconf_

Re: [PATCH 3/4] pinctrl: disable and free setting in select_state in case of error

2013-04-03 Thread Richard Genoud
2013/4/3 Linus Walleij : > On Thu, Mar 28, 2013 at 4:47 PM, Richard Genoud > wrote: >> 2013/3/28 Stephen Warren : > >>> Again, pinconf_free_setting() is all about freeing any dynamically >>> allocated storage required to represent the setting itself; it's not >>> about (un-)programming HW. >>> >>

Re: [PATCH] timer: Fix possible issues with non serialized timer_pending( )

2013-04-03 Thread Thomas Gleixner
Vineet, On Fri, 29 Mar 2013, Vineet Gupta wrote: > When stress testing ARC Linux from 3.9-rc3, we've hit a serialization > issue when mod_timer() races with itself. This is on a FPGA board and > kernel .config among others has !SMP and !PREEMPT_COUNT. > > The issue happens in mod_timer( ) becaus

Re: [PATCH 2/2] ARM: remove mach .init_irq for irqchip_init users

2013-04-03 Thread Linus Walleij
On Thu, Mar 28, 2013 at 9:46 PM, Maxime Ripard wrote: > Now that the arm core code calls irqchip_init, we can remove it from all > the machines that were using it. > > Signed-off-by: Maxime Ripard > Acked-by: Simon Horman Acked-by: Linus Walleij For Nomadik. Yours, Linus Walleij -- To unsub

Re: [patch] mm, memcg: give exiting processes access to memory reserves

2013-04-03 Thread Johannes Weiner
On Wed, Mar 27, 2013 at 06:22:10PM -0700, David Rientjes wrote: > A memcg may livelock when oom if the process that grabs the hierarchy's > oom lock is never the first process with PF_EXITING set in the memcg's > task iteration. > > The oom killer, both global and memcg, will defer if it finds an

Re: [RFC] rootmpfs

2013-04-03 Thread Rob Landley
On 04/03/2013 07:30:08 AM, Rob Landley wrote: Attached is my quick and dirty hack to make rootfs be tmpfs when CONFIG_TMPFS is enabled. For a somewhat quantum definition of "attached". Robdiff --git a/fs/ramfs/inode.c b/fs/ramfs/inode.c index c24f1e1..f875bf2 100644 --- a/fs/ramfs/inode.c ++

Re: [PATCH] pinctrl: coh901: Fix error checking in u300_gpio_to_irq

2013-04-03 Thread Linus Walleij
On Thu, Mar 28, 2013 at 5:18 PM, Axel Lin wrote: > The pointer "port" is always not NULL if gpio->port_list is not empty. > > Signed-off-by: Axel Lin Excellent catch Axel, thanks!! Patch applied. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" i

Re: [PATCH 3/4] pinctrl: disable and free setting in select_state in case of error

2013-04-03 Thread Linus Walleij
On Thu, Mar 28, 2013 at 4:47 PM, Richard Genoud wrote: > 2013/3/28 Stephen Warren : >> Again, pinconf_free_setting() is all about freeing any dynamically >> allocated storage required to represent the setting itself; it's not >> about (un-)programming HW. >> > got it. > I'll change that I guess

Re: systemtap broken by removal of register_timer_hook

2013-04-03 Thread Frank Ch. Eigler
Frederic Weisbecker writes: > [...] > Sometimes I don't mind keeping around code in the kernel for out of > tree users, depending on the case. But in this specific matter we have > more standard ways to do this kind of hook: kprobes, static > tracepoints. A tracepoint on the timer tick would be u

[RFC] rootmpfs

2013-04-03 Thread Rob Landley
Attached is my quick and dirty hack to make rootfs be tmpfs when CONFIG_TMPFS is enabled. It can't be this easy or somebody would have done it in the _eight_years_ since https://lkml.org/lkml/2006/7/31/145 Yes, it's got an #ifdef and out of place prototypes. Yes, it manually calls a module

[PATCH] mfd: vexpress: Give the "leds-gpio" device a real parent

2013-04-03 Thread Pawel Moll
The registration of the "leds-gpio" device was using "vexpress_sysreg_dev" as a parent before it was actually set to something different than NULL. Trivial fix by reordering the code. Reported-by: Lorenzo Pieralisi Signed-off-by: Pawel Moll --- drivers/mfd/vexpress-sysreg.c |4 ++-- 1 file

Re: [PATCH] ext4: fix a big-endian bug when an extent is zeroed out

2013-04-03 Thread Dmitry Monakhov
On Wed, 3 Apr 2013 08:20:58 -0400, Theodore Ts'o wrote: > On Wed, Apr 03, 2013 at 06:22:04PM +0800, Zheng Liu wrote: > > Subject: [PATCH] ext4: fix a big-endian bug when an extent is zeroed out > > > > From: Zheng Liu > > > > When an extent was zeroed out, we forgot to do convert from cpu to le

[PATCH 05/10] perf sort: Update documentation for sort keys

2013-04-03 Thread Namhyung Kim
From: Namhyung Kim Update and add missing description of new sort keys. Cc: Stephane Eranian Signed-off-by: Namhyung Kim --- tools/perf/Documentation/perf-diff.txt | 2 +- tools/perf/Documentation/perf-report.txt | 5 - tools/perf/Documentation/perf-top.txt| 2 +- tools/perf/builtin

[PATCH 04/10] perf sort: Add 'addr_to/from' sort key

2013-04-03 Thread Namhyung Kim
From: Namhyung Kim New addr_{to,from} sort keys provide a way to sort the entries by the source/target symbol addresses. Cc: Stephane Eranian Signed-off-by: Namhyung Kim --- tools/perf/util/hist.c | 2 ++ tools/perf/util/hist.h | 2 ++ tools/perf/util/sort.c | 50 +++

[PATCH 02/10] perf sort: Separate out memory-specific sort keys

2013-04-03 Thread Namhyung Kim
From: Namhyung Kim Since they're used only for perf mem, separate out them to a different dimension so that normal user cannot access them by any chance. For global/local weights, I'm not entirely sure to place them into the memory dimension. But it's the only user at this time. Cc: Andi Kleen

Re: [PATCH 3/3] pinctrl: pinctrl_select_state: set the old_state back on error

2013-04-03 Thread Linus Walleij
On Thu, Mar 28, 2013 at 12:55 PM, Richard Genoud wrote: > In unapply_new_state, the old state is re-applied, but p->state is not > set back as it should. > > Signed-off-by: Richard Genoud > --- > This one can be squshed with commit: > 50cf7c8ab324de348990bb028ad9ed10872d527a > pinctrl: re-enable

[PATCH 06/10] perf hists: Move column length setting code

2013-04-03 Thread Namhyung Kim
From: Namhyung Kim They are set to constant length so no need to update every time. Cc: Stephane Eranian Signed-off-by: Namhyung Kim --- tools/perf/util/hist.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/tools/perf/util/hist.c b/tools/perf/util/hist.c ind

[PATCH 07/10] perf sort: Cleanup sort__has_sym setting

2013-04-03 Thread Namhyung Kim
From: Namhyung Kim The sort__has_sym variable is set only if a symbol-related sort key was added. Since branch stack and memory sort dimensions are separated, it doesn't need to be checked from common dimension. Signed-off-by: Namhyung Kim --- tools/perf/util/sort.c | 5 + 1 file changed,

[PATCH 01/10] perf sort: Factor out common code in sort_dimension__add()

2013-04-03 Thread Namhyung Kim
From: Namhyung Kim Let's remove duplicate code. Suggested-by: Jiri Olsa Cc: Stephane Eranian Cc: Andi Kleen Signed-off-by: Namhyung Kim --- tools/perf/util/sort.c | 41 + 1 file changed, 17 insertions(+), 24 deletions(-) diff --git a/tools/perf/util/

[PATCH 09/10] perf hist browser: Use sort__has_sym

2013-04-03 Thread Namhyung Kim
From: Namhyung Kim The TUI hist browser had a similar variable has_symbols for the same purpose. Let's get rid of the duplication. Signed-off-by: Namhyung Kim --- tools/perf/ui/browsers/hists.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tools/perf/ui/browsers

[PATCH 08/10] perf top: Use sort__has_sym

2013-04-03 Thread Namhyung Kim
From: Namhyung Kim perf top had a similar variable sort_has_symbols for the same purpose. Signed-off-by: Namhyung Kim --- tools/perf/builtin-top.c | 12 +++- tools/perf/util/top.h| 1 - 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/tools/perf/builtin-top.c b/tool

[PATCH 03/10] perf sort: Add 'addr' sort key

2013-04-03 Thread Namhyung Kim
From: Namhyung Kim New addr sort key provides a way to sort the entries by the symbol addresses. It can be helpful to figure out symbol resolution problem when a dso cannot do it properly as well as finding hotpath in a dso and/or a function. Suggested-by: Arnaldo Carvalho de Melo Buglink: htt

[PATCH 10/10] perf sort: Consolidate sort_entry__setup_elide()

2013-04-03 Thread Namhyung Kim
From: Namhyung Kim The same code was duplicate to places, factor them out to common sort__setup_elide(). Signed-off-by: Namhyung Kim --- tools/perf/builtin-diff.c | 4 +--- tools/perf/builtin-report.c | 20 +--- tools/perf/builtin-top.c| 4 +--- tools/perf/util/sort.c

Re: [PATCH 2/3] pinctrl: remove superfluous optimization in pinctrl_select_state_locked

2013-04-03 Thread Linus Walleij
On Thu, Mar 28, 2013 at 12:55 PM, Richard Genoud wrote: > As Stephen Warren suggested, checking first if the setting->node entry > is the first in the list or not is superfluous, as it is checked again > in the list_for_each_entry bellow. > So, remove it, the code will be simpler and lighter ! >

[PATCHSET 00/10] perf tools: Cleanup for sort keys (v2)

2013-04-03 Thread Namhyung Kim
Hello, This is a second version of my sort key cleanup series. I Added helper function for adding sort key and used unmap_ip() function for printing symbol address as Jiri commented. But didn't change name of the sort keys to 'ip'. If you really think I should change, I'm okay to do it though.

[PATCH v6 1/2] perf: use hrtimer for event multiplexing

2013-04-03 Thread Stephane Eranian
The current scheme of using the timer tick was fine for per-thread events. However, it was causing bias issues in system-wide mode (including for uncore PMUs). Event groups would not get their fair share of runtime on the PMU. With tickless kernels, if a core is idle there is no timer tick, and thu

[PATCH v6 0/2] perf: use hrtimer for event multiplexing

2013-04-03 Thread Stephane Eranian
The current scheme of using the timer tick was fine for per-thread events. However, it was causing bias issues in system-wide mode (including for uncore PMUs). Event groups would not get their fair share of runtime on the PMU. With tickless kernels, if a core is idle there is no timer tick, and thu

[PATCH v6 2/2] perf: add sysfs entry to adjust multiplexing interval per PMU

2013-04-03 Thread Stephane Eranian
This patch adds /sys/device/xxx/perf_event_mux_interval_ms to ajust the multiplexing interval per PMU. The unit is milliseconds. Value has to be >= 1. In the 4th version, we renamed the sysfs file to be more consistent with the other /proc/sys/kernel entries for perf_events. In the 5th version, w

Re: [PATCH 1/5 v2] USB: regroup all depends on USB within an if USB block

2013-04-03 Thread Felipe Balbi
On Wed, Apr 03, 2013 at 02:18:20PM +0200, Florian Fainelli wrote: > Le 04/03/13 14:15, Felipe Balbi a écrit : > >On Wed, Apr 03, 2013 at 02:11:13PM +0200, Florian Fainelli wrote: > >>Le 04/02/13 20:06, Alan Stern a écrit : > >>>On Tue, 2 Apr 2013, Florian Fainelli wrote: > >>> > This patch remo

Re: [PATCH 1/3] pinctrl: use dev_info instead of pr_info in pinctrl_select_state_locked

2013-04-03 Thread Linus Walleij
On Thu, Mar 28, 2013 at 12:55 PM, Richard Genoud wrote: > And remove superfluous brackets. > > Signed-off-by: Richard Genoud > --- > If it's not too late, it can be squashed with commit: > 3102a76cfbf9ac4ae0cf54c7452f7ba4292a4760 > "pinctrl: disable and free setting in select_state in case of er

Re: [PATCH] ext4: fix a big-endian bug when an extent is zeroed out

2013-04-03 Thread Theodore Ts'o
On Wed, Apr 03, 2013 at 06:22:04PM +0800, Zheng Liu wrote: > Subject: [PATCH] ext4: fix a big-endian bug when an extent is zeroed out > > From: Zheng Liu > > When an extent was zeroed out, we forgot to do convert from cpu to le16. > It could make us hit a BUG_ON when we try to write dirty pages

Re: [PATCH 3/9] cris: cpufreq: move cpufreq driver to drivers/cpufreq

2013-04-03 Thread Jesper Nilsson
On Mon, Mar 25, 2013 at 05:54:39PM +0100, Viresh Kumar wrote: > This patch moves cpufreq drivers of CRIS architecture to drivers/cpufreq. > > Cc: Jesper Nilsson > Cc: Mikael Starvik > Cc: linux-cris-ker...@axis.com > Signed-off-by: Viresh Kumar Ah, sorry for not responding earlier, looks good!

[PATCH v8 4/5] ab8500: power: export abx500_res_to_temp tables for hwmon

2013-04-03 Thread Hongbo Zhang
This patch exports the thermistor resistance-to-temperature tables, so that the hwmon driver can access them, and also adds the corresponding table size variables. Signed-off-by: Hongbo Zhang --- drivers/power/ab8500_bmdata.c | 20 ++-- include/linux/power/ab8500.h | 16

[PATCH v8 5/5] hwmon: add ST-Ericsson ABX500 hwmon driver

2013-04-03 Thread Hongbo Zhang
Each of ST-Ericsson X500 chip set series consists of both ABX500 and DBX500 chips. This is ABX500 hwmon driver, where the abx500.c is a common layer for all ABX500s, and the ab8500.c is specific for AB8500 chip. Under this designed structure, other chip specific files can be added simply using the

[PATCH v8 3/5] ab8500: power: add const attributes to some data arrays

2013-04-03 Thread Hongbo Zhang
This patch adds const attributes to AB8500 power and temperature related read-only data arrays. Signed-off-by: Hongbo Zhang --- drivers/power/ab8500_bmdata.c | 20 ++-- drivers/power/ab8500_fg.c | 4 ++-- include/linux/mfd/abx500.h| 6 +++--- 3 files changed, 15 inserti

[PATCH v8 2/5] ab8500: power: eliminate CamelCase warning of some variables

2013-04-03 Thread Hongbo Zhang
Some AB8500 power related variable names don't comply with kernel coding rules, any new patch using these variables will result in CamelCase warnings from checkpatch.pl, this patch re-name these variables. Signed-off-by: Hongbo Zhang --- drivers/power/ab8500_bmdata.c | 24 ---

[PATCH v8 1/5] ab8500_btemp: make ab8500_btemp_get* interfaces public

2013-04-03 Thread Hongbo Zhang
Make ab8500_btemp_get_temp interface public, export it and also export the ab8500_btemp_get, ab8500_btemp_get_batctrl_temp interfaces, so that the ab8500 hwmon driver can use them. Signed-off-by: Hongbo Zhang --- drivers/power/ab8500_btemp.c | 5 - include/linux/mfd/abx500/ab8500-bm.

[PATCH v8 0/5] Add ST-Ericsson AB8500 HWMON driver

2013-04-03 Thread Hongbo Zhang
Guenter and Anton, As suggested by Anton, I rebased these patches to his latest battery-2.6 tree. Thanks. v7 -> v8 changes: - rebase these patches to Anton's latest battery-2.6 tree. v6 -> v7 changes: - move exporting symbols from [5/5] to [4/5], which was a mistake. v5 -> v6 changes: - add depe

Re: [PATCH 1/5 v2] USB: regroup all depends on USB within an if USB block

2013-04-03 Thread Florian Fainelli
Le 04/03/13 14:15, Felipe Balbi a écrit : On Wed, Apr 03, 2013 at 02:11:13PM +0200, Florian Fainelli wrote: Le 04/02/13 20:06, Alan Stern a écrit : On Tue, 2 Apr 2013, Florian Fainelli wrote: This patch removes the depends on USB from all config symbols in drivers/usb/host/Kconfig and replace

Re: [PATCH 1/5 v2] USB: regroup all depends on USB within an if USB block

2013-04-03 Thread Felipe Balbi
On Wed, Apr 03, 2013 at 02:11:13PM +0200, Florian Fainelli wrote: > Le 04/02/13 20:06, Alan Stern a écrit : > >On Tue, 2 Apr 2013, Florian Fainelli wrote: > > > >>This patch removes the depends on USB from all config symbols in > >>drivers/usb/host/Kconfig and replace that with an if USB / endif bl

Re: [PATCH] pinctrl: bcm2835: make use of of_property_read_u32_index()

2013-04-03 Thread Linus Walleij
On Thu, Mar 28, 2013 at 7:18 AM, Tony Prisk wrote: > On Wed, 2013-03-27 at 23:09 -0600, Stephen Warren wrote: >> Use the new standard API of_property_read_u32_index() instead of open- >> coding it. >> >> Signed-off-by: Stephen Warren >> --- >> Note: This depends on the proposed patch "of: Add sup

Re: [PATCH 1/5 v2] USB: regroup all depends on USB within an if USB block

2013-04-03 Thread Florian Fainelli
Le 04/02/13 20:06, Alan Stern a écrit : On Tue, 2 Apr 2013, Florian Fainelli wrote: This patch removes the depends on USB from all config symbols in drivers/usb/host/Kconfig and replace that with an if USB / endif block as suggested by Alan Stern. Some source ... Kconfig lines have been shuffle

Re: Excessive stall times on ext4 in 3.9-rc2

2013-04-03 Thread Theodore Ts'o
On Wed, Apr 03, 2013 at 11:19:25AM +0100, Mel Gorman wrote: > > I'm running with -rc5 now. I have not noticed much interactivity problems > as such but the stall detection script reported that mutt stalled for > 20 seconds opening an inbox and imapd blocked for 59 seconds doing path > lookups, ima

Re: [PATCH] xen: Don't call arch_trigger_all_cpu_backtrace in dom0(pvm)

2013-04-03 Thread Zhenzhong Duan
On 2013-04-01 20:41, Konrad Rzeszutek Wilk wrote: On Mon, Apr 01, 2013 at 01:26:34PM +0800, Zhenzhong Duan wrote: On 2013-03-29 21:46, Konrad Rzeszutek Wilk wrote: On Fri, Mar 29, 2013 at 03:22:38PM +0800, Zhenzhong Duan wrote: The problem is even without overwrite, like xapic system, xen_sen

Re: [RFC v2] dmaengine: omap-dma: Start DMA without delay for cyclic channels

2013-04-03 Thread Santosh Shilimkar
On Wednesday 03 April 2013 05:22 PM, Peter Ujfalusi wrote: > On 04/03/2013 01:24 PM, Santosh Shilimkar wrote: >> On Wednesday 03 April 2013 04:47 PM, Peter Ujfalusi wrote: >>> cyclic DMA is only used by audio which needs DMA to be started without a >>> delay. >>> If the DMA for audio is started usi

Re: [PATCH 1/5 v2] USB: regroup all depends on USB within an if USB block

2013-04-03 Thread Florian Fainelli
Le 04/02/13 20:19, ba...@ti.com a écrit : Hi, On Tue, Apr 02, 2013 at 07:10:22PM +0200, Florian Fainelli wrote: diff --git a/drivers/usb/musb/Kconfig b/drivers/usb/musb/Kconfig index 05e5143..ab5a3b9 100644 --- a/drivers/usb/musb/Kconfig +++ b/drivers/usb/musb/Kconfig @@ -6,7 +6,6 @@ # (M)HDR

Re: [RFC v2] dmaengine: omap-dma: Start DMA without delay for cyclic channels

2013-04-03 Thread Peter Ujfalusi
On 04/03/2013 01:24 PM, Santosh Shilimkar wrote: > On Wednesday 03 April 2013 04:47 PM, Peter Ujfalusi wrote: >> cyclic DMA is only used by audio which needs DMA to be started without a >> delay. >> If the DMA for audio is started using the tasklet we experience random >> channel switch (to be more

Re: [RFC] kbuild: fix ld-option function

2013-04-03 Thread Rob Landley
On 04/02/2013 12:13:42 PM, Antony Pavlov wrote: The kbuild's ld-option function is broken because the command $(CC) /dev/null -c -o "$$TMPO" does not create object file! Could you glue the doc fix to this one and submit then as one patch to the kbuild guys, please? Thanks, Rob-- To unsub

Re: [PATCH resend] pinctrl: core: add dependence of GPIOLIB

2013-04-03 Thread Linus Walleij
On Thu, Mar 28, 2013 at 12:34 AM, Haojian Zhuang wrote: > In file included from drivers/pinctrl/core.c:30:0: > include/asm-generic/gpio.h: In function 'gpio_get_value_cansleep': > include/asm-generic/gpio.h:270:2: error: implicit declaration of > function '__gpio_get_value' [-Werror=implicit-func

Re: [PATCH V3 2/5] spi: s3c64xx: added support for polling mode

2013-04-03 Thread Mark Brown
On Wed, Apr 03, 2013 at 05:00:04PM +0530, Girish KS wrote: > On Mon, Apr 1, 2013 at 6:42 PM, Mark Brown > >> - if (!sdd->pdev->dev.of_node) { > >> + if (!sdd->pdev->dev.of_node && !is_polling(sdd)) { > >> res = platform_get_resource(pdev, IORESOURCE_DMA, 0); > >>

Re: 3.7.10 kernel crash

2013-04-03 Thread Peter Hurley
On Tue, 2013-04-02 at 11:16 +0200, Fabio Coatti wrote: > Ok, I'll try to get better oopes. However, this is going to be tricky, as the > machine is remotely administered (via HP iLO) and uses all network interfaces > (BTW, I'm not even sure to be able to get a network driver related crash > usin

Re: [GIT PULL] writeback: convert writeback to unbound workqueue

2013-04-03 Thread Jens Axboe
On Tue, Apr 02 2013, Tejun Heo wrote: > Hello, Jens. > > On Tue, Apr 2, 2013 at 2:53 AM, Jens Axboe wrote: > > Thanks, pulled in for testing. We'll need the debug change in before > > sending this upstream, though. I agree with Jan/Dave that this is > > required functionality, for debugging purpo

Re: [PATCH v9 0/9] DMA Engine support for AM33XX

2013-04-03 Thread Sekhar Nori
Hi Matt, On 3/6/2013 9:45 PM, Matt Porter wrote: > This series adds DMA Engine support for AM33xx, which uses > an EDMA DMAC. The EDMA DMAC has been previously supported by only > a private API implementation (much like the situation with OMAP > DMA) found on the DaVinci family of SoCs. > Matt P

Re: [ 105/124] af_unix: dont send SCM_CREDENTIAL when dest socket is NULL

2013-04-03 Thread Sven Joachim
On 2013-04-03 00:11 +0200, Greg Kroah-Hartman wrote: > 3.8-stable review patch. If anyone has any objections, please let me know. I'm seeing several complaints from udevd at boot in both 3.8.6-rc1 and 3.9-rc5: "udevd[56]: sender uid=65534, message ignored". Reverting the patch below on top of 3

Re: Loopback device hung [was Re: xfs deadlock on 3.9-rc5 running xfstests case #78]

2013-04-03 Thread Jens Axboe
On Tue, Apr 02 2013, Jens Axboe wrote: > On Tue, Apr 02 2013, CAI Qian wrote: > > > > > > - Original Message - > > > From: "Jens Axboe" > > > To: "CAI Qian" > > > Cc: "Dave Chinner" , x...@oss.sgi.com, "LKML" > > > > > > Sent: Tuesday, April 2, 2013 5:00:47 PM > > > Subject: Re: Loopb

Re: [Suggestion] ARM64:kernel: compiling issue for early_console.

2013-04-03 Thread Christopher Covington
Hi Chen, On 04/03/2013 04:13 AM, Chen Gang wrote: > Hello Maintainers: > > it seems, this issue still exists in next-20130402. > > have you already fixed it in another tree ? Maybe somebody else does have a fix, but Catalin mentioned he was going on vacation for two weeks on March 28th in "

Re: linux-next: build failure after merge of the final tree (nfsd tree related)

2013-04-03 Thread Jeff Layton
On Wed, 3 Apr 2013 07:33:01 -0400 "J. Bruce Fields" wrote: > On Wed, Apr 03, 2013 at 07:10:54AM -0400, Jeff Layton wrote: > > On Wed, 3 Apr 2013 17:42:19 +1100 > > Stephen Rothwell wrote: > > > > > Hi all, > > > > > > After merging the final tree, today's linux-next build (arm defconfig) > > >

Re: linux-next: build failure after merge of the final tree (nfsd tree related)

2013-04-03 Thread J. Bruce Fields
On Wed, Apr 03, 2013 at 07:10:54AM -0400, Jeff Layton wrote: > On Wed, 3 Apr 2013 17:42:19 +1100 > Stephen Rothwell wrote: > > > Hi all, > > > > After merging the final tree, today's linux-next build (arm defconfig) > > failed like this: > > > > fs/built-in.o: In function `nfsd_reply_cache_stat

Re: [PATCH V3 2/5] spi: s3c64xx: added support for polling mode

2013-04-03 Thread Girish KS
On Mon, Apr 1, 2013 at 6:42 PM, Mark Brown wrote: > On Wed, Mar 13, 2013 at 12:13:31PM +0530, Girish K S wrote: > >> Some SoC's that adopt this controller might not have have dma >> interface. This patch adds support for complete polling mode >> and gives flexibity for the user to select poll/dma

Re: [PATCH v5 1/3] arm: introduce psci_smp_ops

2013-04-03 Thread Stefano Stabellini
On Tue, 2 Apr 2013, Nicolas Pitre wrote: > On Tue, 2 Apr 2013, Stefano Stabellini wrote: > > > Rename virt_smp_ops to psci_smp_ops and move them to > > arch/arm/kernel/psci_smp.c. > > Remove mach-virt/platsmp.c, now unused. > > Compile psci_smp if CONFIG_ARM_PSCI and CONFIG_SMP. > > > > Add a cp

Re: [PATCH v5 3/3] xen/arm: introduce xen_early_init, use PSCI on xen

2013-04-03 Thread Stefano Stabellini
On Tue, 2 Apr 2013, Nicolas Pitre wrote: > On Tue, 2 Apr 2013, Stefano Stabellini wrote: > > > Split xen_guest_init in two functions, one of them (xen_early_init) is > > going to be called very early from setup_arch. > > > > Change machine_desc->smp_init to xen_smp_init if Xen is present on the >

Re: [RFC v2] dmaengine: omap-dma: Start DMA without delay for cyclic channels

2013-04-03 Thread Santosh Shilimkar
On Wednesday 03 April 2013 04:47 PM, Peter Ujfalusi wrote: > cyclic DMA is only used by audio which needs DMA to be started without a > delay. > If the DMA for audio is started using the tasklet we experience random > channel switch (to be more precise: channel shift). > > Reported-by: Peter Meerw

[RFC v2] dmaengine: omap-dma: Start DMA without delay for cyclic channels

2013-04-03 Thread Peter Ujfalusi
cyclic DMA is only used by audio which needs DMA to be started without a delay. If the DMA for audio is started using the tasklet we experience random channel switch (to be more precise: channel shift). Reported-by: Peter Meerwald Signed-off-by: Peter Ujfalusi --- Hi Russell, Instead of removin

Re: [patch v3 0/8] sched: use runnable avg in load balance

2013-04-03 Thread Alex Shi
On 04/03/2013 05:37 PM, Michael Wang wrote: >> > >> > Michael: >> > I changed the threshold to 0.1ms it has same effect on aim7. >> > So could you try the following on pgbench? > Hi, Alex > > I've done some rough test and the change point should in 6~12, Sounds good. > I'm currently runn

<    1   2   3   4   5   6   7   8   >