[PATCHv7 01/12] of: introduce of_property_for_each_phandle_with_args()

2013-12-11 Thread Hiroshi Doyu
Iterating over a property containing a list of phandles with arguments is a common operation for device drivers. This patch adds a new of_property_for_each_phandle_with_args() macro to make the iteration simpler. Signed-off-by: Hiroshi Doyu Cc: Rob Herring Cc: Grant Likely --- v7: Fixed some mi

[PATCHv7 00/12] Unifying SMMU driver among Tegra SoCs

2013-12-11 Thread Hiroshi Doyu
Hi, This series provide: (0) IOMMU standard DT binding("iommus") (1) Unified IOMMU(SMMU) driver among Tegra SoCs (2) Multiple Address Space support(MASID) in IOMMU(SMMMU) (3) Tegra IOMMU'able devices, most of platform devices are IOMMU'able. There's been some discussion[1] about device populatio

[PATCH v11] PPC: POWERNV: move iommu_add_device earlier

2013-12-11 Thread Alexey Kardashevskiy
The current implementation of IOMMU on sPAPR does not use iommu_ops and therefore does not call IOMMU API's bus_set_iommu() which 1) sets iommu_ops for a bus 2) registers a bus notifier Instead, PCI devices are added to IOMMU groups from subsys_initcall_sync(tce_iommu_init) which does basically the

[PATCH 3/6] perf tools: Fix perf list --raw-dump option bug.

2013-12-11 Thread Dongsheng Yang
Perf completion will use perf list --raw-dump to get the events available for '-e'. But currently, it does not work well. Example: # perf stat -e kvmm[TAB] Error: unknown option `raw-dump' usage: perf list [hw|sw|cache|tracepoint|pmu|event_glob] Because perf-completion.sh use '

[PATCH 6/6] perf tools: Enhancement for perf list for unexpected input.

2013-12-11 Thread Dongsheng Yang
Example: # perf list test List of pre-defined events (to be used in -e): # echo $? 0 Verification: # perf list test Error: No event for test. Usage: perf list [hw|sw|cache|tracepoint|pmu|event_glob] # echo $?

[PATCH 2/6] perf tools: Introduce an OPT_BOOLEAN_HIDEN in to parse-options.h.

2013-12-11 Thread Dongsheng Yang
Signed-off-by: Dongsheng Yang --- tools/perf/util/parse-options.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/perf/util/parse-options.h b/tools/perf/util/parse-options.h index cbf0149..f395a21a 100644 --- a/tools/perf/util/parse-options.h +++ b/tools/perf/util/par

[PATCH 1/6] perf tools: Add long_name for call-graph option.

2013-12-11 Thread Dongsheng Yang
I am not sure why the -g option in record and top has no long_name for it. Example: # perf record --[TAB] --all-cpus --count --freq --no-delay --period--realtime --uid --branch-any--cpu -

[PATCH 4/6] perf tools: Fix bug in 'perf list event_glob'.

2013-12-11 Thread Dongsheng Yang
Example: # perf list kvmmmu List of pre-defined events (to be used in -e): Verification: # perf list kvmmmu List of pre-defined events (to be used in -e): kvmmmu:kvm_mmu_pagetable_walk [Tracepoint event] kvmmmu:kvm_mmu_pagi

Re: [PATCH] MAINTAINERS: Add DesignWare, i.MX6, Armada, R-Car PCI host maintainers

2013-12-11 Thread Gregory CLEMENT
Hi Bjorn, , On 11/12/2013 19:32, Bjorn Helgaas wrote: > If this looks reasonable, I'll merge it via the PCI tree for v3.13. > > Bjorn > > > MAINTAINERS: Add DesignWare, i.MX6, Armada, R-Car PCI host maintainers > > Add entries for PCI host controller drivers in drivers/pci/host/. > > Signed-o

[PATCHSET 00/14] tools lib traceevent: Get rid of *die() calls from parse-filter.c (v2)

2013-12-11 Thread Namhyung Kim
Hello, This patchset tries to remove all die() calls in event filter parsing code. I changed two main functions of pevent_filter_add_filter_str() and pevent_filter_match() to return a proper error code (pevent_errno). The actual error message might be saved in a static buffer in pevent_ filter a

[PATCH 03/14] tools lib traceevent: Get rid of malloc_or_die() allocate_arg()

2013-12-11 Thread Namhyung Kim
Also check return value and handle it. Signed-off-by: Namhyung Kim --- tools/lib/traceevent/parse-filter.c | 48 ++--- 1 file changed, 40 insertions(+), 8 deletions(-) diff --git a/tools/lib/traceevent/parse-filter.c b/tools/lib/traceevent/parse-filter.c index 7

[PATCH 14/14] tools lib traceevent: Introduce pevent_filter_strerror()

2013-12-11 Thread Namhyung Kim
From: Namhyung Kim The pevent_filter_strerror() function is for receiving actual error message from pevent_errno value. To do that, add a static buffer to event_filter for saving internal error message If a failed function saved other information in the static buffer returns the information, ot

[PATCH 13/14] tools lib traceevent: Get rid of die() in some string conversion funcitons

2013-12-11 Thread Namhyung Kim
Those functions are for stringify filter arguments. As caller of those functions handles NULL string properly, it seems that it's enough to return NULL rather than calling die(). Signed-off-by: Namhyung Kim --- tools/lib/traceevent/parse-filter.c | 58 +++-- 1 fi

[PATCH 02/14] tools lib traceevent: Get rid of die in add_filter_type()

2013-12-11 Thread Namhyung Kim
The realloc() should check return value and not to overwrite previous pointer in case of error. Reviewed-by: Steven Rostedt Signed-off-by: Namhyung Kim --- tools/lib/traceevent/parse-filter.c | 21 - 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/tools/lib/tr

[PATCH 10/14] tools lib traceevent: Refactor process_filter()

2013-12-11 Thread Namhyung Kim
From: Namhyung Kim So that it can return a proper pevent_errno value. Signed-off-by: Namhyung Kim --- tools/lib/traceevent/event-parse.h | 6 +++- tools/lib/traceevent/parse-filter.c | 64 + 2 files changed, 42 insertions(+), 28 deletions(-) diff --git a/

[PATCH 04/14] tools lib traceevent: Get rid of malloc_or_die() in read_token()

2013-12-11 Thread Namhyung Kim
Reviewed-by: Steven Rostedt Signed-off-by: Namhyung Kim --- tools/lib/traceevent/parse-filter.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/lib/traceevent/parse-filter.c b/tools/lib/traceevent/parse-filter.c index ab9cefe320b4..246ee81e1f93 100644 --- a/tool

[PATCH 01/14] tools lib traceevent: Get rid of malloc_or_die() in show_error()

2013-12-11 Thread Namhyung Kim
Signed-off-by: Namhyung Kim --- tools/lib/traceevent/parse-filter.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/tools/lib/traceevent/parse-filter.c b/tools/lib/traceevent/parse-filter.c index ab402fb2dcf7..d4b0bac80dc8 100644 --- a/tools/lib/traceevent/pa

[PATCH 06/14] tools lib traceevent: Get rid of die() in add_right()

2013-12-11 Thread Namhyung Kim
Refactor it to return appropriate pevent_errno value. Reviewed-by: Steven Rostedt Signed-off-by: Namhyung Kim --- tools/lib/traceevent/event-parse.h | 8 +++- tools/lib/traceevent/parse-filter.c | 34 +++--- 2 files changed, 26 insertions(+), 16 deletions(-) d

[PATCH 08/14] tools lib traceevent: Get rid of die() in reparent_op_arg()

2013-12-11 Thread Namhyung Kim
To do that, make the function returns the error code. Also pass error_str so that it can set proper error message when error occurred. Reviewed-by: Steven Rostedt Signed-off-by: Namhyung Kim --- tools/lib/traceevent/event-parse.h | 5 +- tools/lib/traceevent/parse-filter.c | 94 +

[PATCH 12/14] tools lib traceevent: Refactor pevent_filter_match() to get rid of die()

2013-12-11 Thread Namhyung Kim
The test_filter() function is for testing given filter is matched to a given record. However it doesn't handle error cases properly so add a new argument err to save error info during the test and also pass it to internal test functions. The return value of pevent_filter_match() also converted to

[PATCH 11/14] tools lib traceevent: Make pevent_filter_add_filter_str() return pevent_errno

2013-12-11 Thread Namhyung Kim
From: Namhyung Kim Refactor the pevent_filter_add_filter_str() to return a proper error code and get rid of the third error_str argument. Signed-off-by: Namhyung Kim --- tools/lib/traceevent/event-parse.h | 8 ++-- tools/lib/traceevent/parse-filter.c | 78 +++-

[PATCH 09/14] tools lib traceevent: Refactor create_arg_item()

2013-12-11 Thread Namhyung Kim
From: Namhyung Kim So that it can return a proper pevent_errno value. Signed-off-by: Namhyung Kim --- tools/lib/traceevent/event-parse.h | 3 ++- tools/lib/traceevent/parse-filter.c | 20 ++-- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/tools/lib/traceeve

[PATCH 05/14] tools lib traceevent: Get rid of malloc_or_die() in find_event()

2013-12-11 Thread Namhyung Kim
Make it return pevent_errno to distinguish malloc allocation failure. Since it'll be returned to user later, add more error code. Reviewed-by: Steven Rostedt Signed-off-by: Namhyung Kim --- tools/lib/traceevent/event-parse.h | 4 +++- tools/lib/traceevent/parse-filter.c | 27 +

[PATCH 07/14] tools lib traceevent: Make add_left() return pevent_errno

2013-12-11 Thread Namhyung Kim
From: Namhyung Kim So that it can propagate error properly. Signed-off-by: Namhyung Kim --- tools/lib/traceevent/parse-filter.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/lib/traceevent/parse-filter.c b/tools/lib/traceevent/parse-filter.c index c08ce594cab

Re: [PATCH] perf list: fix --raw-dump

2013-12-11 Thread Ramkumar Ramachandra
David Ahern wrote: > Why not make raw_dump a proper argument? Sure, that'd work too. I was thinking of a minimal way to fix the problem myself. > diff --git a/tools/perf/builtin-list.c b/tools/perf/builtin-list.c > index 011195e38f21..b553d0c4ca82 100644 > --- a/tools/perf/builtin-list.c > +++ b/

Re: [PATCH 04/10] net: stmmac: sunxi platfrom extensions for GMAC in Allwinner A20 SoC's

2013-12-11 Thread Chen-Yu Tsai
Hi, On Wed, Dec 11, 2013 at 10:45 PM, srinivas kandagatla wrote: > Hi Chen, > > On 11/12/13 12:17, Chen-Yu Tsai wrote: > >>> >>> I would be good to get actual picture of this hw setup, On ST the >>> additional glue logic which sits on top of the GMAC is to resposible for >>> selecting the correct

[PATCH v8 3/4] sched/numa: use wrapper function task_faults_idx to calculate index in group_faults

2013-12-11 Thread Wanpeng Li
Use wrapper function task_faults_idx to calculate index in group_faults. Reviewed-by: Naoya Horiguchi Acked-by: Mel Gorman Acked-by: David Rientjes Signed-off-by: Wanpeng Li --- kernel/sched/fair.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/kernel/sched/fair.c

[PATCH v8 1/4] sched/numa: drop sysctl_numa_balancing_settle_count sysctl

2013-12-11 Thread Wanpeng Li
Changelog: v7 -> v8: * remove references to it in Documentation/sysctl/kernel.txt commit 887c290e (sched/numa: Decide whether to favour task or group weights based on swap candidate relationships) drop the check against sysctl_numa_balancing_settle_count, this patch remove the sysctl. Acked-b

[PATCH v8 4/4] sched/numa: fix period_slot recalculation

2013-12-11 Thread Wanpeng Li
Changelog: v3 -> v4: * remove period_slot recalculation The original code is as intended and was meant to scale the difference between the NUMA_PERIOD_THRESHOLD and local/remote ratio when adjusting the scan period. The period_slot recalculation can be dropped. Reviewed-by: Naoya Horiguchi Ac

[PATCH v8 2/4] sched/numa: use wrapper function task_node to get node which task is on

2013-12-11 Thread Wanpeng Li
Changelog: v2 -> v3: * tranlate cpu_to_node(task_cpu(p)) to task_node(p) in sched/debug.c Use wrapper function task_node to get node which task is on. Acked-by: Mel Gorman Reviewed-by: Naoya Horiguchi Reviewed-by: Rik van Riel Acked-by: David Rientjes Signed-off-by: Wanpeng Li --- kernel

Re: [Patch] Read CONFIG_RD_ variables for initramfs compression

2013-12-11 Thread P J P
Hello Simon, Andrew +-- On Wed, 11 Dec 2013, Simon Guinot wrote --+ | IIUC this patch, the INITRAMFS_COMPRESSION_* options are now | ignored/useless. Don't you think we should remove them from the | usr/Kconfig file ? -> https://lkml.org/lkml/2013/11/25/21 I'v pushed a patch from Mr Hristo t

Re: [PATCH v5 09/14] efi: passing kexec necessary efi data via setup_data

2013-12-11 Thread Dave Young
> > > > > > +void __init parse_efi_setup(u64 phys_addr) > > > +{ > > > + struct setup_data *sd; > > > + > > > + if (!efi_enabled(EFI_64BIT)) { > > > + pr_warn("SETUP_EFI not supported on 32-bit\n"); > > > + return; > > > + } > > > > Shouldn't this function be in two versions in e

Re: [PATCH v5 08/14] efi: export efi runtime memory mapping to sysfs

2013-12-11 Thread Dave Young
> > > > > and the EFI_BOOT* tests can be done in save_runtime_map and also the > > error handling can happen there. This way efi_map_regions() won't > > need to know about anything. This way, you can later move the whole > > save_runtime_map() function to efi-kexec.c just by taking it without any

Re: [PATCH] USB: core: Add warm reset while reset-resuming SuperSpeed HUBs

2013-12-11 Thread Julius Werner
>> ...although, the spec says that it does not wait for the port resets >> to complete. As far as I can see re-issuing a warm reset and waiting >> is the only way to guarantee the core times the recovery. Presumably >> the portstatus debounce in hub_activate() mitigates this, but that >> 100ms is

Re: [PATCH] MAINTAINERS: Add DesignWare, i.MX6, Armada, R-Car PCI host maintainers

2013-12-11 Thread Shawn Guo
Hi Bjorn, On Wed, Dec 11, 2013 at 11:32:37AM -0700, Bjorn Helgaas wrote: > +PCI DRIVER FOR IMX6 > +M: Shawn Guo Thanks for the nomination. But I think a better person for this position would be Richard Zhu (copied). He knows the driver and controller much better than myself, and most import

Re: [PATCH v2 0/5] net: macb updates

2013-12-11 Thread Olof Johansson
Hi Soren, On Tue, Dec 10, 2013 at 4:07 PM, Soren Brinkmann wrote: > Soren Brinkmann (5): > net: macb: Adjust tx_clk when link speed changes This patch causes build issues on some at91 platforms, namely at91sam9263 that lacks programmable clocks. So it doesn't implement clk_set_rate() and clk_

Re: [PATCH v7 4/4] sched/numa: fix period_slot recalculation

2013-12-11 Thread David Rientjes
On Thu, 12 Dec 2013, Wanpeng Li wrote: > Changelog: > v3 -> v4: > * remove period_slot recalculation > > The original code is as intended and was meant to scale the difference > between the NUMA_PERIOD_THRESHOLD and local/remote ratio when adjusting > the scan period. The period_slot recalcula

Linux 3.12.5

2013-12-11 Thread Greg KH
I'm announcing the release of the 3.12.5 kernel. All users of the 3.12 kernel series must upgrade. The updated 3.12.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.12.y and can be browsed at the normal kernel.org git web browser:

Re: Linux 3.4.74

2013-12-11 Thread Greg KH
diff --git a/Documentation/i2c/busses/i2c-i801 b/Documentation/i2c/busses/i2c-i801 index 99d4e442b77d..8bb57d7c12ea 100644 --- a/Documentation/i2c/busses/i2c-i801 +++ b/Documentation/i2c/busses/i2c-i801 @@ -22,6 +22,7 @@ Supported adapters: * Intel Panther Point (PCH) * Intel Lynx Point (PC

Linux 3.10.24

2013-12-11 Thread Greg KH
I'm announcing the release of the 3.10.24 kernel. All users of the 3.10 kernel series must upgrade. The updated 3.10.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.10.y and can be browsed at the normal kernel.org git web browser:

Linux 3.4.74

2013-12-11 Thread Greg KH
I'm announcing the release of the 3.4.74 kernel. All users of the 3.4 kernel series must upgrade. The updated 3.4.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.4.y and can be browsed at the normal kernel.org git web browser:

Re: [PATCH v7 3/4] sched/numa: use wrapper function task_faults_idx to calculate index in group_faults

2013-12-11 Thread David Rientjes
On Thu, 12 Dec 2013, Wanpeng Li wrote: > Use wrapper function task_faults_idx to calculate index in group_faults. > > Reviewed-by: Naoya Horiguchi > Acked-by: Mel Gorman > Signed-off-by: Wanpeng Li Acked-by: David Rientjes The naming of task_faults_idx() is a little unfortunate since it is

Re: [PATCH v7 2/4] sched/numa: use wrapper function task_node to get node which task is on

2013-12-11 Thread David Rientjes
On Thu, 12 Dec 2013, Wanpeng Li wrote: > Changelog: > v2 -> v3: > * tranlate cpu_to_node(task_cpu(p)) to task_node(p) in sched/debug.c > > Use wrapper function task_node to get node which task is on. > > Acked-by: Mel Gorman > Reviewed-by: Naoya Horiguchi > Reviewed-by: Rik van Riel > Sign

Re: [PATCH] hfsplus: Remove hfsplus_file_lookup

2013-12-11 Thread Vyacheslav Dubeyko
On Wed, 2013-12-11 at 21:08 +, Anton Altaparmakov wrote: > Hi, > > On 11 Dec 2013, at 19:11, Al Viro wrote: > > On Wed, Dec 11, 2013 at 10:49:29PM +0300, Vyacheslav Dubeyko wrote: > >> This feature worked earlier under Linux. So, I suppose that some changes > >> in HFS+ driver > >> or in VFS

Re: [PATCH v7 1/4] sched/numa: drop sysctl_numa_balancing_settle_count sysctl

2013-12-11 Thread David Rientjes
On Thu, 12 Dec 2013, Wanpeng Li wrote: > commit 887c290e (sched/numa: Decide whether to favour task or group weights > based on swap candidate relationships) drop the check against > sysctl_numa_balancing_settle_count, this patch remove the sysctl. > What about the references to it in Documentat

Re: [PATCH 2/3] ARM: sunxi: Add an ahci-platform compatible AHCI driver for the Allwinner SUNXi series of SoCs

2013-12-11 Thread Shawn Guo
On Wed, Dec 11, 2013 at 03:51:51PM +0100, Olliver Schinagl wrote: > Working on this and studying the existing > ahci_platform/shci_platform drivers the last few days and was > figuring out why ahci_platform only supports 1 clock. IMX handles > this by having 3 clocks defined in the DT, the first on

Re: [PATCH V7 2/2] arm64: perf: add support for percpu pmu interrupt

2013-12-11 Thread Vinayak Kale
Hi Will, On Tue, Dec 10, 2013 at 1:00 PM, Vinayak Kale wrote: > Hi Will, > > > On Mon, Dec 9, 2013 at 10:20 PM, Will Deacon wrote: >> Hi Vinayak, >> >> On Wed, Dec 04, 2013 at 10:09:51AM +, Vinayak Kale wrote: >>> Add support for irq registration when pmu interrupt is percpu. >> >> Getting c

Re: [PATCH v5 09/14] efi: passing kexec necessary efi data via setup_data

2013-12-11 Thread Dave Young
> > > + */ > > > +static int __init map_regions_fixed(void) > > > +{ > > > + int i, s, ret = 0; > > > + u64 end, systab; > > > + unsigned long size; > > > + efi_memory_desc_t *md; > > > + struct efi_setup_data *data; > > > + > > > + s = sizeof(*data) + nr_efi_runtime_map * sizeof(data->map[0]); > >

Re: [PATCH V2 0/6] Memory compaction efficiency improvements

2013-12-11 Thread Joonsoo Kim
On Wed, Dec 11, 2013 at 11:24:31AM +0100, Vlastimil Babka wrote: > Changelog since V1 (thanks to the reviewers!) > o Included "trace compaction being and end" patch in the series (mgorman) > o Changed variable names and comments in patches 2 and 5(mgorman) > o More thorough measurem

linux-next: Tree for Dec 12

2013-12-11 Thread Stephen Rothwell
Hi all, Changes since 20131211: The powerpc tree still had its build failure for which I applied a supplied patch. The net-next tree gained a conflict against the net tree. The block tree gained a conflict against the f2fs tree. The usb-gadget tree still has its build failure so I used the

Re: 50 Watt idle power regression bisected to Linux-3.10

2013-12-11 Thread Mike Galbraith
On Thu, 2013-12-12 at 06:57 +0100, Mike Galbraith wrote: > On Wed, 2013-12-11 at 21:45 -0800, H. Peter Anvin wrote: > > As in it hangs at that point? > > Nope, it's still going. > > [1567.578340] pcc-cpufreq: (v1.10.00) driver loaded with frequency limits: > 1064 MHz, 2266 MHz > > Funny, cont

Re: [PATCH -tip v4 0/6] kprobes: introduce NOKPROBE_SYMBOL() and fixes crash bugs

2013-12-11 Thread Masami Hiramatsu
(2013/12/11 22:34), Ingo Molnar wrote: > > * Masami Hiramatsu wrote: > >>> So why are annotations needed at all? What can happen if an >>> annotation is missing and a piece of code is probed which is also >>> used by the kprobes code internally - do we crash, lock up, >>> misbehave or handle

Re: [PATCH] cgroup: fix fail path in cgroup_load_subsys()

2013-12-11 Thread Li Zefan
> @@ -4861,10 +4861,8 @@ int __init_or_module cgroup_load_subsys(struct > cgroup_subsys *ss) >*/ > css = ss->css_alloc(cgroup_css(cgroup_dummy_top, ss)); > if (IS_ERR(css)) { > - /* failure case - need to deassign the cgroup_subsys[] slot. */ > - cgroup_

Re: 50 Watt idle power regression bisected to Linux-3.10

2013-12-11 Thread Mike Galbraith
On Wed, 2013-12-11 at 21:45 -0800, H. Peter Anvin wrote: > As in it hangs at that point? Nope, it's still going. [1567.578340] pcc-cpufreq: (v1.10.00) driver loaded with frequency limits: 1064 MHz, 2266 MHz Funny, continents move faster :) Maybe missing a write or two. -Mike -- To unsubscri

Re: Re: [PATCH 16/17] uprobes: Allocate ->utask before handler_chain() for tracing handlers

2013-12-11 Thread Masami Hiramatsu
(2013/12/12 3:11), Oleg Nesterov wrote: > On 12/11, Masami Hiramatsu wrote: >> >> (2013/12/11 0:57), Oleg Nesterov wrote: >>> On 12/10, Masami Hiramatsu wrote: and isn't it better to increment miss-hit counter of the uprobe? >>> >>> What do you mean? This is not miss-hit and ->utask

RE: [PATCH v2 0/4] X86/KVM: enable Intel MPX for KVM

2013-12-11 Thread Liu, Jinsong
Paolo Bonzini wrote: > Il 11/12/2013 09:31, Liu, Jinsong ha scritto: >> Paolo, comments for version 2? > > I think I commented that it's fine, I'm just waiting for a rebase on > top of the generic patches. > > Paolo > Thanks! common MPX definiation patches have been checked in tip tree (both Q

Re: 50 Watt idle power regression bisected to Linux-3.10

2013-12-11 Thread H. Peter Anvin
As in it hangs at that point? Mike Galbraith wrote: >On Wed, 2013-12-11 at 20:49 -0800, H. Peter Anvin wrote: >> On 12/11/2013 08:25 PM, Mike Galbraith wrote: >> > arch/x86/include/asm/mwait.h |4 ++-- >> > arch/x86/kernel/cpu/common.c |7 --- >> > arch/x86/kernel/setup_percpu.c

Re: [patch 7/8] mm, memcg: allow processes handling oom notifications to access reserves

2013-12-11 Thread Tim Hockin
The immediate problem I see with setting aside reserves "off the top" is that we don't really know a priori how much memory the kernel itself is going to use, which could still land us in an overcommitted state. In other words, if I have your 128 MB machine, and I set aside 8 MB for OOM handling,

Re: 50 Watt idle power regression bisected to Linux-3.10

2013-12-11 Thread Mike Galbraith
On Wed, 2013-12-11 at 20:49 -0800, H. Peter Anvin wrote: > On 12/11/2013 08:25 PM, Mike Galbraith wrote: > > arch/x86/include/asm/mwait.h |4 ++-- > > arch/x86/kernel/cpu/common.c |7 --- > > arch/x86/kernel/setup_percpu.c |1 + > > 3 files changed, 7 insertions(+), 5 deletion

Re: process 'stuck' at exit.

2013-12-11 Thread Darren Hart
On Wed, 2013-12-11 at 23:26 -0500, Dave Jones wrote: > On Tue, Dec 10, 2013 at 02:48:52PM -0800, Linus Torvalds wrote: > > > Dave, can you re-create that trinity run and test that patch? I think > > we've got this > > 24 hours later, all is well. I think we can call this one done. > > Tested

[PATCH CFT] ARM:S5P64X0: Enable ARM_PATCH_PHYS_VIRT and AUTO_ZRELADDR by default

2013-12-11 Thread panchaxari
ARM_PATCH_PHYS_VIRT and AUTO_ZRELADDR have been enabled as default configs to S5P64X0 platforms. Introduction of PHYS_VIRT config as default would enable phy-to-virt and virt-to-phy translation function at boot and module loading time and enforce dynamic reallocation of memory. AUTO_ZRELADDR confi

[PATCH] tools/perf: Fix cross compilation

2013-12-11 Thread Michael Ellerman
Commit b6aa997 "Add feature check core code" added feature checking logic in config/feature-checks/Makefile but didn't use the CROSS_COMPILE value. Fix it by prefixing $(CC), as is done in Makefile.perf. Signed-off-by: Michael Ellerman --- tools/perf/config/feature-checks/Makefile | 2 +- 1 fil

RE: [PATCH] MAINTAINERS: Add DesignWare, i.MX6, Armada, R-Car PCI host maintainers

2013-12-11 Thread Mohit KUMAR DCG
> -Original Message- > From: Jingoo Han [mailto:jg1@samsung.com] > Sent: Thursday, December 12, 2013 3:55 AM > To: 'Bjorn Helgaas'; linux-...@vger.kernel.org > Cc: linux-kernel@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > linux-te...@vger.kernel.org; linux...@vger.kernel.org

Re: kernel BUG in munlock_vma_pages_range

2013-12-11 Thread Bob Liu
On 12/12/2013 11:16 AM, Sasha Levin wrote: > On 12/11/2013 05:59 PM, Vlastimil Babka wrote: >> On 12/09/2013 09:26 PM, Sasha Levin wrote: >>> On 12/09/2013 12:12 PM, Vlastimil Babka wrote: On 12/09/2013 06:05 PM, Sasha Levin wrote: > On 12/09/2013 04:34 AM, Vlastimil Babka wrote: >> H

Re: 50 Watt idle power regression bisected to Linux-3.10

2013-12-11 Thread Mike Galbraith
On Wed, 2013-12-11 at 20:49 -0800, H. Peter Anvin wrote: > On 12/11/2013 08:25 PM, Mike Galbraith wrote: > > arch/x86/include/asm/mwait.h |4 ++-- > > arch/x86/kernel/cpu/common.c |7 --- > > arch/x86/kernel/setup_percpu.c |1 + > > 3 files changed, 7 insertions(+), 5 deletion

[PATCH] Driver core: Fix device_add_attrs() error code path

2013-12-11 Thread Rafael J. Wysocki
From: Rafael J. Wysocki If the addition of dev_attr_online fails, device_add_attrs() should remove device attribute groups as well as type and class attribute groups before returning an error code. Make that happen. Signed-off-by: Rafael J. Wysocki --- drivers/base/core.c |4 +++- 1 file

Re: 50 Watt idle power regression bisected to Linux-3.10

2013-12-11 Thread H. Peter Anvin
On 12/11/2013 08:25 PM, Mike Galbraith wrote: > arch/x86/include/asm/mwait.h |4 ++-- > arch/x86/kernel/cpu/common.c |7 --- > arch/x86/kernel/setup_percpu.c |1 + > 3 files changed, 7 insertions(+), 5 deletions(-) > > Index: linux-2.6/arch/x86/kernel/cpu/common.c > ==

Re: [PATCH -tip v4 6/6] [RFC] kprobes/x86: Call exception handlers directly from do_int3/do_debug

2013-12-11 Thread Masami Hiramatsu
(2013/12/11 22:31), Jiri Kosina wrote: > On Tue, 3 Dec 2013, Steven Rostedt wrote: > >>> To avoid a kernel crash by probing on lockdep code, call >>> kprobe_int3_handler and kprobe_debug_handler directly >>> from do_int3 and do_debug. Since there is a locking code >>> in notify_die, lockdep code c

Re: [PATCH 01/10] net: stmmac: Enable stmmac main clock when probing hardware

2013-12-11 Thread Chen-Yu Tsai
Hi, On Wed, Dec 11, 2013 at 4:05 AM, Maxime Ripard wrote: > Hi, > > On Mon, Dec 09, 2013 at 10:43:29AM +0800, Chen-Yu Tsai wrote: >> >> @@ -2759,15 +2760,18 @@ struct stmmac_priv *stmmac_dvr_probe(struct >> >> device *device, >> >> } >> >> } >> >> >> >> + clk_disable_unpr

Re: process 'stuck' at exit.

2013-12-11 Thread Dave Jones
On Tue, Dec 10, 2013 at 02:48:52PM -0800, Linus Torvalds wrote: > Dave, can you re-create that trinity run and test that patch? I think > we've got this 24 hours later, all is well. I think we can call this one done. Tested-by: Dave Jones Dave -- To unsubscribe from this list: sen

Re: 50 Watt idle power regression bisected to Linux-3.10

2013-12-11 Thread Mike Galbraith
On Wed, 2013-12-11 at 16:52 -0800, H. Peter Anvin wrote: > On 12/11/2013 03:14 PM, Borislav Petkov wrote: > > On Wed, Dec 11, 2013 at 03:08:35PM -0800, H. Peter Anvin wrote: > >> So I would like to propose that we switch to using a percpu variable > >> which is a single cache line of nothing at al

Re: Re: [PATCH -tip v5.1 12/18] ftrace/kprobes: Use NOKPROBE_SYMBOL macro in ftrace

2013-12-11 Thread Masami Hiramatsu
(2013/12/12 10:34), Steven Rostedt wrote: > On Tue, 10 Dec 2013 09:57:14 + > Masami Hiramatsu wrote: > > >> --- a/kernel/trace/trace_kprobe.c >> +++ b/kernel/trace/trace_kprobe.c >> @@ -51,45 +51,45 @@ struct event_file_link { >> (sizeof(struct probe_arg) * (n))) >> >> >> -static __

Re: [PATCH v2 tip/core/rcu 0/4] Documentation changes for 3.14

2013-12-11 Thread Josh Triplett
On Wed, Dec 11, 2013 at 03:08:23PM -0800, Paul E. McKenney wrote: > Hello! > > This series once again attempts to improve rcu_assign_pointer()'s > relationship with sparse. > > 1.Add a comment indicating that despite appearances, > rcu_assign_pointer() really only evaluates its argument

[PATCH 2/2] drivers: net: cpsw: fix for cpsw crash when build as modules

2013-12-11 Thread Felipe Balbi
From: Mugunthan V N When CPSW and Davinci MDIO are build as modules, CPSW crashes when accessing CPSW registers in CPSW probe. The same is working in built-in as the CPSW clocks are enabled in Davindi MDIO probe, SO Enabling the clocks before accessing the version register and moving out the othe

[PATCH 1/2] drivers: net: cpsw: fix dt probe for one port ethernet

2013-12-11 Thread Felipe Balbi
From: Mugunthan V N When only one port of the two port is pinned out, then dt probe is failing because second port phy is not found. fixing this by checking the number of slaves and breaking the loop. Signed-off-by: Mugunthan V N Signed-off-by: Felipe Balbi --- both patches were taken from TI

Re: [PATCH tty-next 0/4] tty: Fix ^C echo

2013-12-11 Thread Peter Hurley
On 12/04/2013 07:13 PM, One Thousand Gnomes wrote: Not so much confused as simply merged. Input processing is inherently single-threaded; it makes sense to rely on that at the highest level possible. I would disagree entirely. You want to minimise the areas affected by a given lock. You also wa

[PATCH -next 1/2] seq_file: Rename static bool seq_overflow to public bool seq_is_buf_full

2013-12-11 Thread Joe Perches
The return values of seq_printf/puts/putc are frequently misused. Start down a path to remove all the return value uses of these functions. Make the static bool seq_overflow public along with a rename of the function to seq_is_buf_full. Rename the still static seq_set_overflow to seq_set_buf_ful

[PATCH -next 2/2] netfilter: Convert print_tuple functions to return void

2013-12-11 Thread Joe Perches
Since adding a new function to seq_file (seq_is_buf_full) there isn't any value for functions called from seq_show to return anything. Remove the int returns of the various print_tuple/_print_tuple functions. Signed-off-by: Joe Perches --- include/net/netfilter/nf_conntrack_core.h| 2 +-

[PATCH -next 0/2] seq_file/netfilter: Start removing returns from seq_

2013-12-11 Thread Joe Perches
The return value from seq_printf/puts/putc/etc are frequently misused. Start removing the uses of the return values. Joe Perches (2): seq_file: Rename static bool seq_overflow to public bool seq_is_buf_full netfilter: Convert print_tuple functions to return void Documentation/filesystems/seq

Re: [PATCH 3/3] rcu: use simple wait queues where possible in rcutree

2013-12-11 Thread Paul E. McKenney
On Wed, Dec 11, 2013 at 08:06:39PM -0500, Paul Gortmaker wrote: > From: Thomas Gleixner > > As of commit dae6e64d2bcfd4b06304ab864c7e3a4f6b5fedf4 ("rcu: Introduce > proper blocking to no-CBs kthreads GP waits") the rcu subsystem started > making use of wait queues. > > Here we convert all additi

Re: kernel BUG in munlock_vma_pages_range

2013-12-11 Thread Sasha Levin
On 12/11/2013 05:59 PM, Vlastimil Babka wrote: On 12/09/2013 09:26 PM, Sasha Levin wrote: On 12/09/2013 12:12 PM, Vlastimil Babka wrote: On 12/09/2013 06:05 PM, Sasha Levin wrote: On 12/09/2013 04:34 AM, Vlastimil Babka wrote: Hello, I will look at it, thanks. Do you have specific reproductio

Re: [PATCH v5 09/14] efi: passing kexec necessary efi data via setup_data

2013-12-11 Thread Dave Young
On 12/11/13 at 11:20pm, Borislav Petkov wrote: > On Mon, Dec 09, 2013 at 05:42:22PM +0800, Dave Young wrote: > > Add a new setup_data type SETUP_EFI for kexec use. > > Passing the saved fw_vendor, runtime, config tables and efi runtime > > mappings. > > > > When entering virtual mode, directly ma

linux-next: manual merge of the block tree with the f2fs tree

2013-12-11 Thread Stephen Rothwell
Hi Jens, Today's linux-next merge of the block tree got a conflict in fs/f2fs/data.c between commit 8758e549e105 ("f2fs: add unlikely() macro for compiler more aggressively") from the f2fs tree and commit 2c30c71bd653 ("block: Convert various code to bio_for_each_segment()") from the block tree.

Re: [RFC PATCH tip 0/5] tracing filters with BPF

2013-12-11 Thread Alexei Starovoitov
On Tue, Dec 10, 2013 at 7:35 PM, Masami Hiramatsu wrote: > (2013/12/11 11:32), Alexei Starovoitov wrote: >> On Tue, Dec 10, 2013 at 7:47 AM, Ingo Molnar wrote: >>> >>> * Alexei Starovoitov wrote: >>> > I'm fine if it becomes a requirement to have a vmlinux built with > DEBUG_INFO to use

[PATCH] perf symbols: symbol-minimal.c causes random fd to be closed

2013-12-11 Thread Anton Blanchard
I hit a cryptic failure when testing a recent version of perf: # perf report write failure on standard output: Bad file descriptor The issue is in commit b68e2f91 (perf symbols: Introduce symsrc structure). symsrc__destroy() does a close(ss->fd) but ss->fd is only initialised in the symbol-e

Re: [PATCH v5 08/14] efi: export efi runtime memory mapping to sysfs

2013-12-11 Thread Dave Young
> > +++ b/Documentation/ABI/testing/sysfs-firmware-efi-runtime-map > > @@ -0,0 +1,36 @@ > > +What: /sys/firmware/efi/runtime-map/ > > +Date: December 2013 > > +Contact: Dave Young > > +Description: > > This could start at the same line as Description Ok. [snip] > > +

Re: [PATCH v5 07/14] efi: export more efi table variable to sysfs

2013-12-11 Thread Dave Young
On 12/11/13 at 07:32pm, Borislav Petkov wrote: > On Mon, Dec 09, 2013 at 05:42:20PM +0800, Dave Young wrote: > > Export fw_vendor, runtime and config table physical addresses to > > /sys/firmware/efi/fw_vendor, /sys/firmware/efi/runtime and > > /sys/firmware/efi/config_table because kexec kernel wi

[PATCH 1/1] tty: Fix hang at ldsem_down_read()

2013-12-11 Thread Peter Hurley
When a controlling tty is being hung up and the hang up is waiting for a just-signalled tty reader or writer to exit, and a new tty reader/writer tries to acquire an ldisc reference concurrently with the ldisc reference release from the signalled reader/writer, the hangup can hang. The new reader/w

[PATCH 0/1] Fix hang report

2013-12-11 Thread Peter Hurley
Greg, I know it's late in the -rc cycle but I'd like to get this fix into 3.13. Although it's only likely to happen at shutdown/reboot, the hang frequency could be as often as 1 in 1. The patch fixes the count value returned when the cmpxchg() has successfully changed the count. Only one code

[PATCH] f2fs: introduce sysfs entry to control in-place-update policy

2013-12-11 Thread Jaegeuk Kim
This patch introduces new sysfs entries for users to control the policy of in-place-updates, namely IPU, in f2fs. Sometimes f2fs suffers from performance degradation due to its out-of-place update policy that produces many additional node block writes. If the storage performance is very dependant

Re: [PATCH v5 09/14] efi: passing kexec necessary efi data via setup_data

2013-12-11 Thread Dave Young
On 12/11/13 at 12:13pm, Matt Fleming wrote: > On Mon, 09 Dec, at 05:42:22PM, Dave Young wrote: > > Add a new setup_data type SETUP_EFI for kexec use. > > Passing the saved fw_vendor, runtime, config tables and efi runtime > > mappings. > > > > When entering virtual mode, directly mapping the efi

Re: [PATCH v5 09/14] efi: passing kexec necessary efi data via setup_data

2013-12-11 Thread Dave Young
On 12/11/13 at 03:05pm, Borislav Petkov wrote: > On Wed, Dec 11, 2013 at 12:13:52PM +, Matt Fleming wrote: > > > + for (i = 0, md = data->map; i < nr_efi_runtime_map; i++, md++) { > > > + efi_map_region_fixed(md); /* FIXME: add error handling */ > > > > Oops. Please fix this ;-) > > Y

Re: [RFC PATCH] drivers: char: Add a dynamic clock for the trace clock

2013-12-11 Thread Steven Rostedt
On Wed, 11 Dec 2013 18:06:06 -0800 Sonny Rao wrote: > > ftrace has several clocks that it uses: > > > > o local - basically sched_clock() > > o global - something like hpet that is monotonic across CPUs but slower > > o counter - a simple atomic counter (no time associated to it) > > o uptime -

Re: [PATCH 1/3] wait-simple: Introduce the simple waitqueue implementation

2013-12-11 Thread Steven Rostedt
> --- /dev/null > +++ b/kernel/swait.c > @@ -0,0 +1,118 @@ > +/* > + * Simple waitqueues without fancy flags and callbacks We should probably have a more detailed description of when to use simple wait queues verses normal wait queues. These are obviously much lighter wait, and should be the pref

Re: [PATCH v5 01/14] x86/mm: sparse warning fix for early_memremap

2013-12-11 Thread Dave Young
On 12/11/13 at 12:12pm, Borislav Petkov wrote: > On Wed, Dec 11, 2013 at 10:20:25AM +, Matt Fleming wrote: > > This needs reviewing by at least one of the x86 folks, but it > > certainly makes sense to me. > > Ingo told me yesterday, it makes sense too. I'd guess we can try it. > FWIW, all cal

Re: [RFC PATCH] drivers: char: Add a dynamic clock for the trace clock

2013-12-11 Thread Sonny Rao
On Wed, Dec 11, 2013 at 5:49 PM, Steven Rostedt wrote: > On Wed, 11 Dec 2013 17:17:30 -0800 > Sonny Rao wrote: > >> On Wed, Dec 11, 2013 at 11:30 AM, Stephane Eranian >> wrote: >> > Sonny, >> > >> > Your patch has a couple of problems for me: >> > - requires CONFIG_TRACING >> > >> > You should

Re: [PATCH v5 02/14] efi: use early_memremap and early_memunmap

2013-12-11 Thread Dave Young
On 12/11/13 at 10:39am, Matt Fleming wrote: > (Cc'ing Leif and Mark for the ARM-side of things) > > On Mon, 09 Dec, at 05:42:15PM, Dave Young wrote: > > In arch/x86/platform/efi/efi.c and drivers/firmware/efi/efi.c turn to use > > early_memremap/early_memunmap instead of early_ioremap/early_iounma

Re: [PATCH 1/3] wait-simple: Introduce the simple waitqueue implementation

2013-12-11 Thread Steven Rostedt
On Wed, 11 Dec 2013 20:06:37 -0500 Paul Gortmaker wrote: > From: Thomas Gleixner > > The wait_queue is a swiss army knife and in most of the cases the > full complexity is not needed. Here we provide a slim version, as > it lowers memory consumption and runtime overhead. > > The concept origi

Re: [PATCH] Staging: TIDSPBRIDGE: Use vm_iomap_memory for mmap-ing instead of remap_pfn_range

2013-12-11 Thread Greg KH
On Wed, Dec 11, 2013 at 01:27:17PM +0300, Dan Carpenter wrote: > On Wed, Dec 11, 2013 at 11:57:04AM +0200, Ivaylo Dimitrov wrote: > > On 11.12.2013 10:33, Dan Carpenter wrote: > > >On Wed, Dec 11, 2013 at 09:45:52AM +0200, Ivajlo Dimitrov wrote: > > >>I can pick your changes and re-send the origina

Re: [RFC PATCH] drivers: char: Add a dynamic clock for the trace clock

2013-12-11 Thread Steven Rostedt
On Wed, 11 Dec 2013 17:17:30 -0800 Sonny Rao wrote: > On Wed, Dec 11, 2013 at 11:30 AM, Stephane Eranian wrote: > > Sonny, > > > > Your patch has a couple of problems for me: > > - requires CONFIG_TRACING > > > > You should directly invoke getrawmonotonic() > > and inline the code from trace_c

  1   2   3   4   5   6   7   8   >