Re: [PATCH 06/20] perf tools: Consolidate output field handling to hpp format routines

2014-05-16 Thread Namhyung Kim
On Thu, 15 May 2014 14:07:04 +0200, Jiri Olsa wrote: On Mon, May 12, 2014 at 03:28:39PM +0900, Namhyung Kim wrote: SNIP -} - if (symbol_conf.use_callchain sort__has_sym) { if (callchain_param.mode == CHAIN_GRAPH_REL)

Re: [PATCH 06/20] perf tools: Consolidate output field handling to hpp format routines

2014-05-16 Thread Namhyung Kim
On Thu, 15 May 2014 14:11:52 +0200, Jiri Olsa wrote: On Mon, May 12, 2014 at 03:28:39PM +0900, Namhyung Kim wrote: SNIP diff --git a/tools/perf/ui/stdio/hist.c b/tools/perf/ui/stdio/hist.c index 9eccf7f4f367..e6920d124c60 100644 --- a/tools/perf/ui/stdio/hist.c +++

Re: [PATCH v3 00/15] PCI/iommu: Fix DMA alias problems

2014-05-16 Thread colin
Alex Williamson wrote: Wow, I didn't think that kind of broken was possible. Maybe instead of a bitmap of function aliases we could have a single devfn alias for a device. That means we'd only be able to support a single alias for a device, but since I don't think we've seen devices that use

Re: [PATCH 08/20] perf tools: Allow hpp fields to be sort keys

2014-05-16 Thread Namhyung Kim
On Thu, 15 May 2014 15:07:28 +0200, Jiri Olsa wrote: On Mon, May 12, 2014 at 03:28:41PM +0900, Namhyung Kim wrote: Add overhead{,_sys,_us,_guest_sys,_guest_us}, sample and period sort keys so that they can be selected with --sort/-s option. $ perf report -s period,comm --stdio ... #

Re: [PATCH 08/20] perf tools: Allow hpp fields to be sort keys

2014-05-16 Thread Namhyung Kim
On Thu, 15 May 2014 14:51:32 +0200, Jiri Olsa wrote: On Mon, May 12, 2014 at 03:28:41PM +0900, Namhyung Kim wrote: SNIP +static struct hpp_dimension hpp_sort_dimensions[] = { +DIM(PERF_HPP__OVERHEAD, overhead), +DIM(PERF_HPP__OVERHEAD_SYS, overhead_sys), +

Re: [PATCH v6] mm: support madvise(MADV_FREE)

2014-05-16 Thread Minchan Kim
Hey, Hannes, Please take a rest during holidays but really thanksful to you! On Thu, May 15, 2014 at 11:46:58AM -0400, Johannes Weiner wrote: Hi Minchan, On Mon, May 12, 2014 at 10:26:28AM +0900, Minchan Kim wrote: Linux doesn't have an ability to free pages lazy while other OS already

Re: [PATCH 11/20] perf report: Add -F option to specify output fields

2014-05-16 Thread Namhyung Kim
On Thu, 15 May 2014 15:17:17 +0200, Jiri Olsa wrote: On Mon, May 12, 2014 at 03:28:44PM +0900, Namhyung Kim wrote: SNIP + +int setup_output_field(void) +{ +char *tmp, *tok, *str; +int ret = 0; + +if (field_order == NULL) +goto out; + +reset_dimensions();

[PATCH] perf_tools/sched: cleanup, remove unused variables in map_switch_event().

2014-05-16 Thread Dongsheng Yang
In map_switch_event(), we don't care the previous process currently, this patch remove the infomation we get but not used. Signed-off-by: Dongsheng Yang yangds.f...@cn.fujitsu.com --- tools/perf/builtin-sched.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git

Re: [PATCH 12/20] perf tools: Add -sort() member to struct sort_entry

2014-05-16 Thread Namhyung Kim
On Thu, 15 May 2014 15:43:10 +0200, Jiri Olsa wrote: On Mon, May 12, 2014 at 03:28:45PM +0900, Namhyung Kim wrote: SNIP +static int64_t +sort__sym_sort(struct hist_entry *left, struct hist_entry *right) +{ +if (!left-ms.sym || !right-ms.sym) +return cmp_null(left-ms.sym,

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

2014-05-16 Thread Namhyung Kim
On Thu, 15 May 2014 15:54:57 +0200, Jiri Olsa wrote: On Mon, May 12, 2014 at 03:28:33PM +0900, Namhyung Kim wrote: SNIP $ perf report -F sym,sample -s overhead ... # Symbol Samples Overhead # .. #

Re: [PATCH v2] zram: remove global tb_lock with fine grain lock

2014-05-16 Thread Minchan Kim
Hello Andrew, On Thu, May 15, 2014 at 02:38:56PM -0700, Andrew Morton wrote: On Thu, 15 May 2014 16:00:47 +0800 Weijie Yang weijie.y...@samsung.com wrote: Currently, we use a rwlock tb_lock to protect concurrent access to the whole zram meta table. However, according to the actual access

[PATCH] bnx2x: Convert return 0 to return rc

2014-05-16 Thread Joe Perches
These return 0; uses seem wrong as there are rc variables where error return values are set but unused. Signed-off-by: Joe Perches j...@perches.com --- Hey Ariel/Dmitry I've no idea what's right here, but the current code seems wrong. (or at least under-commented) It seems Dmitry changed

Re: [PATCHv2 0/4] ACPI / LPSS: Solution for two issues seen on Asus T100

2014-05-16 Thread Andy Shevchenko
On Fri, 2014-05-16 at 07:29 +0800, Li, Aubrey wrote: On 2014/5/16 0:11, Mika Westerberg wrote: On Thu, May 15, 2014 at 11:59:46PM +0800, Li, Aubrey wrote: On 2014/5/15 22:53, Andy Shevchenko wrote: On Thu, 2014-05-15 at 22:35 +0800, Li, Aubrey wrote: On 2014/5/15 21:40, Heikki Krogerus

Re: [RFC 2/2] perf: add AUX area to ring buffer for raw data streams

2014-05-16 Thread Alexander Shishkin
Robert Richter r...@kernel.org writes: On 15.05.14 18:08:30, Alexander Shishkin wrote: From: Peter Zijlstra pet...@infradead.org This patch introduces AUX space in the perf mmap buffer, intended for exporting high bandwidth data streams to userspace, such as instruction flow traces. AUX

Who is the linux bnx2x maintainer?

2014-05-16 Thread Joe Perches
Hello. I just got email bounces for Ariel Elior and how Dmitry Kravkov @broadcom. Ariel is listed in the MAINTAINERS file as the BNX2X maintainer. I doubt this is correct. Anyone know who or if anyone should be listed as the BNX2X maintainer? Forwarded Message From: Ariel

Re: [RFD] sched/deadline: EDF dynamic quota design

2014-05-16 Thread Henrik Austad
On Thu, May 15, 2014 at 02:31:32PM +0200, Juri Lelli wrote: Hi, Hi all, [Cc-ed lkml again to include Luca's reply] and thanks to Luca for his reply! Indeed! and several great references. My backlog just got 3 more items pushed :) On Thu, 15 May 2014 19:21:25 +0800 xiaofeng.yan

Re: [PATCH] tools lib traceevent: Added support for __get_bitmask() macro

2014-05-16 Thread Jiri Olsa
On Thu, May 15, 2014 at 06:18:52PM -0400, Steven Rostedt wrote: Coming in v3.16, trace events will be able to save bitmasks in raw format in the ring buffer and output it with the __get_bitmask() macro. In order for userspace tools to parse this, it must be able to handle the

RE: [PATCHv2] ARM: ioremap: Fix static vm area boundary checking.

2014-05-16 Thread li.xi...@freescale.com
Subject: Re: [PATCHv2] ARM: ioremap: Fix static vm area boundary checking. On Fri, May 16, 2014 at 1:28 AM, Nicolas Pitre nicolas.pi...@linaro.org wrote: On Thu, 15 May 2014, Richard Lee wrote: Static vm area boundary check: paddr1 ---| | | |

linux-next: Tree for May 16

2014-05-16 Thread Stephen Rothwell
Hi all, Changes since 20140515: My fixes tree contains: powerpc/ppc64: Allow allmodconfig to build (finally !) The gpio tree still had its build failure for which I reverted 2 commits. The net-next tree gained a conflict against the net tree. Non-merge commits (relative to Linus'

Re: [PATCH 3/4] staging/wlan-ng: code refactoring

2014-05-16 Thread Tobias Klauser
On 2014-05-12 at 17:22:46 +0200, Denis Pithon denis.pit...@gmail.com wrote: Extract new static function from p80211netdev_rx_bh() to fix coding style issue (too many leading tabs). Signed-off-by: Denis Pithon denis.pit...@gmail.com --- drivers/staging/wlan-ng/p80211netdev.c | 74

[PATCH net] bridge: notify user space of fdb port change

2014-05-16 Thread Jon Maxwell
From: Jon Maxwell jmaxwel...@gmail.com There has been a number incidents recently where customers running KVM have reported that VM hosts on different Hypervisors are unreachable. Based on pcap traces we found that the bridge was broadcasting the ARP request out onto the network. However some

Re: [RFC PATCH 0/2] drm/panel: add simple-panel description using DT

2014-05-16 Thread Boris BREZILLON
On 13/05/2014 09:51, Thierry Reding wrote: On Fri, May 09, 2014 at 04:16:40PM +0200, Boris BREZILLON wrote: Hello Thierry, I noticed you're describing each new panel with a new entry in the of_platform_match table and a new compatible string. I guess you have a good reason to do it this

[PATCH] remove duplicate checking code

2014-05-16 Thread Vaughan Cao
amd_iommu_rlookup_table[devid] != NULL is already guaranteed by check_device called before, it's fine to attach device at this point. Signed-off-by: Vaughan Cao vaughan@oracle.com --- drivers/iommu/amd_iommu.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/iommu/amd_iommu.c

Re: [PATCHv2] ARM: ioremap: Fix static vm area boundary checking.

2014-05-16 Thread Richard Lee
On Fri, May 16, 2014 at 3:17 PM, li.xi...@freescale.com li.xi...@freescale.com wrote: Subject: Re: [PATCHv2] ARM: ioremap: Fix static vm area boundary checking. On Fri, May 16, 2014 at 1:28 AM, Nicolas Pitre nicolas.pi...@linaro.org wrote: On Thu, 15 May 2014, Richard Lee wrote: Static

Re: perfevents: irq loop stuck!

2014-05-16 Thread Peter Zijlstra
On Fri, May 16, 2014 at 12:25:28AM -0400, Vince Weaver wrote: anyway I'm not sure if it's worth tracking this more if it's possible to mostly fix the case by fixing the sample_period bounds. Right, so lets start with that, if it triggers again, we'll have another look. FWIW I ran with the

Re: [ISSUE] sched/cgroup: Does cpu-cgroup still works fine nowadays?

2014-05-16 Thread Peter Zijlstra
On Fri, May 16, 2014 at 10:23:11AM +0800, Michael wang wrote: On 05/15/2014 07:57 PM, Peter Zijlstra wrote: [snip] It's like: /cgroup/cpu/l1/l2/l3/l4/l5/l6/A about level 7, the issue can not be solved any more. That's pretty retarded and yeah, that's way past the point where

Re: [PATCH 00/25] Change time_t and clock_t to 64 bit

2014-05-16 Thread Christoph Hellwig
On Thu, May 15, 2014 at 10:07:17PM +0100, One Thousand Gnomes wrote: True sort of for the kernel (except you've got problems with file system compatibility and I believe stuff like NFS and that fact some file systems just break). modern filesystems including NFS don't use anything that

Re: [rfc]pwm: add xilinx pwm driver

2014-05-16 Thread Michal Simek
On 05/15/2014 06:30 PM, Arnd Bergmann wrote: On Thursday 15 May 2014 15:56:03 Michal Simek wrote: IP is configurable as is normal for us. You can select IP with just one timer. It means register locations for specific timer are fixed.

Re: [ISSUE] sched/cgroup: Does cpu-cgroup still works fine nowadays?

2014-05-16 Thread Peter Zijlstra
On Fri, May 16, 2014 at 12:24:35PM +0800, Michael wang wrote: Hey, Mike :) On 05/16/2014 10:51 AM, Mike Galbraith wrote: On Fri, 2014-05-16 at 10:23 +0800, Michael wang wrote: But we found that one difference when group get deeper is the tasks of that group become to gathered on CPU

Re: [PATCHv5 1/3] dts: socfpga: Add bindings for Altera SoC SDRAM controller

2014-05-16 Thread Steffen Trumtrar
Hi! On Thu, May 15, 2014 at 11:04:49AM -0500, ttha...@altera.com wrote: From: Thor Thayer ttha...@altera.com Addition of the Altera SDRAM controller bindings and device tree changes to the Altera SoC project. v2: Changes to SoC SDRAM EDAC code. v3: Implement code suggestions for SDRAM

Re: [lxc-devel] [RFC PATCH 00/11] Add support for devtmpfs in user namespaces

2014-05-16 Thread Richard Weinberger
On Fri, May 16, 2014 at 3:42 AM, Michael H. Warfield m...@wittsend.com wrote: On Thu, 2014-05-15 at 15:15 -0700, Greg Kroah-Hartman wrote: On Thu, May 15, 2014 at 05:42:54PM +, Serge Hallyn wrote: What exactly defines 'normal use case for a container'? Well, I'd say acting like a virtual

Re: [PATCH] mm, hugetlb: move the error handle logic out of normal code path

2014-05-16 Thread Michal Hocko
On Thu 15-05-14 15:36:20, Andrew Morton wrote: On Thu, 15 May 2014 11:01:42 +0200 Michal Hocko mho...@suse.cz wrote: On Wed 14-05-14 15:10:59, Jianyu Zhan wrote: alloc_huge_page() now mixes normal code path with error handle logic. This patches move out the error handle logic, to make

[RFC][PATCH] CMA: drivers/base/Kconfig: restrict CMA size to non-zero value

2014-05-16 Thread Gioh Kim
Hi, I've been trying to apply CMA into my platform. USB host driver generated kernel panic like below when USB mouse is connected, because I turned on CMA and set the CMA_SIZE_MBYTES value into zero by mistake. I think the panic is cuased by atomic_pool in arch/arm/mm/dma-mapping.c. Zero

[RFC Patch Part1 V1 01/30] genirq, trivial: improve documentation to match current implementation

2014-05-16 Thread Jiang Liu
Signed-off-by: Jiang Liu jiang@linux.intel.com --- Documentation/IRQ-domain.txt |3 +-- kernel/irq/internals.h |2 +- kernel/irq/irqdomain.c |6 +++--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Documentation/IRQ-domain.txt

[RFC Patch Part1 V1 00/30] use irqdomain to dynamically allocate IRQ for IOAPIC pin

2014-05-16 Thread Jiang Liu
On x86 platforms, IRQ number are statically allocated to IOAPIC pins at boot. There are two issues with this design. First it causes trouble to IOAPIC hotplug because we need to allocate a block of IRQ numbers for each IOAPIC. Second it may waste IRQ nubmers even if some IOAPIC pins are not used

[RFC Patch Part1 V1 02/30] x86, mpparse: use pr_lvl() helper utilities to replace printk(KERN_LVL)

2014-05-16 Thread Jiang Liu
Use pr_lvl() helper utilities to replace printk(KERN_LVL) for readability, no function changes. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/mpparse.c | 84 + 1 file changed, 39 insertions(+), 45 deletions(-) diff --git

Re: [PATCH] sched: fix exec_start/task_hot on migrated tasks

2014-05-16 Thread Peter Zijlstra
On Thu, May 15, 2014 at 03:59:20PM -0700, Ben Segall wrote: task_hot checks exec_start on any runnable task, but if it has been migrated since the it last ran, then exec_start is a clock_task from another cpu. If the old cpu's clock_task was sufficiently far ahead of this cpu's then the task

[PATCH v6 5/6] exynos: cpuidle: do not allow cpuidle registration for Exynos5420

2014-05-16 Thread Chander Kashyap
Exynos5420 is big.Little Soc. It uses cpuidle-big-litle generic cpuidle driver. Hence do not allow exynos cpuidle driver registration for Exynos5420. Signed-off-by: Chander Kashyap chander.kash...@linaro.org Signed-off-by: Chander Kashyap k.chan...@samsung.com Acked-by: Daniel Lezcano

[RFC Patch Part1 V1 03/30] x86, mpparse: simplify arch/x86/include/asm/mpspec.h

2014-05-16 Thread Jiang Liu
Simplify arch/x86/include/asm/mpspec.h by 1) Change max_physical_apicid to static as it's only used in apic.c. 2) Kill declaration of mpc_default_type, it's never defined. 3) Delete default_acpi_madt_oem_check(), it has already been declared in apic.h. 4) Change mp_override_legacy_irq(),

[RFC Patch Part1 V1 12/30] x86, ioapic: kill static variable nr_irqs_gsi

2014-05-16 Thread Jiang Liu
Static variable nr_irqs_gsi is used to maintain the lowest dynamic allocatable IRQ number. It may cause trouble when enabling dynamic IRQ allocation for IOAPIC, so use arch_dynirq_lower_bound() to avoid directly accessing nr_irqs_gsi and kill nr_irqs_gsi. Signed-off-by: Jiang Liu

[RFC Patch Part1 V1 13/30] x86, ioapic: introduce helper utilities to walk ioapics and pins

2014-05-16 Thread Jiang Liu
Introduce helper utilities for_each_ioapic(), for_each_ioapic_reverse(), for_each_pin() and for_each_ioapic_pin() to walk ioapics and pins. They will be rewritten e will rewrite later to support IOAPIC hotplug. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/apic/io_apic.c

[RFC Patch Part1 V1 16/30] x86, irq: reorganize IO_APIC_get_PCI_irq_vector() to prepare for irqdomain

2014-05-16 Thread Jiang Liu
Reorganize function IO_APIC_get_PCI_irq_vector() a bit to better support coming irqdomain. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/apic/io_apic.c | 62 ++-- 1 file changed, 34 insertions(+), 28 deletions(-) diff --git

[RFC Patch Part1 V1 18/30] x86, ACPI, irq: consolidate algorithm of mapping (ioapic, pin) to IRQ number

2014-05-16 Thread Jiang Liu
Currently ACPI and ioapic both implement algorithms to map (ioapic, pin) to IRQ number. So consolidate the common part into one place, which is also preparing for irqdomain support. It introduces mp_map_pin_to_irq(), which will be used to allocate IRQ number IOAPIC pins when irqdomain is enabled.

[RFC Patch Part1 V1 20/30] x86, irq: enhance mp_register_ioapic() to support irqdomain

2014-05-16 Thread Jiang Liu
Add extra arguments to function mp_register_ioapic() to support irqdomain. When registering IOAPIC, caller may provide a callback and corresponding argument to create irqdomain for this IOAPIC. The callback will be called later when initializing IOAPIC subsystem. We also provide a common

[RFC Patch Part1 V1 22/30] x86, mpparse, irq: provide basic irqdomain support

2014-05-16 Thread Jiang Liu
Enhance mpparse to provide basic support of irqdomain with identity mapping between GSIs and IRQs. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/mpparse.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/arch/x86/kernel/mpparse.c

[RFC Patch Part1 V1 17/30] x86, irq: introduce some helper utilities to improve readability

2014-05-16 Thread Jiang Liu
Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/apic/io_apic.c | 41 +--- 1 file changed, 30 insertions(+), 11 deletions(-) diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c index dd81b58cce95..faed9b62977d

[RFC Patch Part1 V1 23/30] x86, devicetree, irq: use common mechanism to support irqdomain

2014-05-16 Thread Jiang Liu
Now the ioapic driver provides a common interface to create irqdomain, so replace the private implementation. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/include/asm/prom.h |2 -- arch/x86/kernel/devicetree.c | 80 --

[RFC Patch Part1 V1 26/30] x86, irq, ACPI: use common irqdomain map interface to program IOAPIC pins

2014-05-16 Thread Jiang Liu
Refine ACPI to use common irqdomain map interface to program IOAPIC pins, so we can unify the callsite to progam IOAPIC pins. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/acpi/boot.c | 48 --- 1 file changed, 18 insertions(+),

[RFC Patch Part1 V1 27/30] x86, irq, mpparse: use common irqdomain map interface to program IOAPIC pins

2014-05-16 Thread Jiang Liu
Refine mpparse to use common irqdomain map interface to program IOAPIC pins, so we can unify the callsite to progam IOAPIC pins. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/mpparse.c |4 +++- arch/x86/pci/irq.c|2 -- 2 files changed, 3 insertions(+), 3

[RFC Patch Part1 V1 25/30] x86, irq: introduce two helper functions to support irqdomain map operation

2014-05-16 Thread Jiang Liu
Currently there are multiple entries to program IOAPIC pins, such as io_apic_setup_irq_pin_once(), io_apic_set_pci_routing() and setup_IO_APIC_irq_extra() etc. This patch introduces two functions to help consolidate the code to program IOAPIC pins. Function mp_set_pin_attr() is used to optionally

[RFC Patch Part1 V1 30/30] x86, irq: clean up unused IOAPIC interface

2014-05-16 Thread Jiang Liu
Now we have converted all x86 platforms to use the common irqdomain map interface, and there are only two callers of io_apic_setup_irq_pin(): mp_irqdomain_map() and pre_init_apic_IRQ0(). There's no caller of io_apic_set_pci_routing(), setup_IO_APIC_irq_extra() and io_apic_setup_irq_pin_once(), so

[PATCH] staging: ozwpan: remove redundant NULL check for devs

2014-05-16 Thread Daeseok Youn
From 1cebea7a40490d0d0b122eb444a105d424af42e6 Mon Sep 17 00:00:00 2001 From: Daeseok Youn daeseok.y...@gmail.com Date: Fri, 16 May 2014 17:02:04 +0900 Subject: [PATCH] staging: ozwpan: remove redundant NULL check for devs The devs is a pointer to g_net_dev in ozmain.c. g_net_dev has a default

[PATCH net] bridge: notify user space of fdb port change

2014-05-16 Thread Jon Maxwell
From: Jon Maxwell jmaxwel...@gmail.com There has been a number incidents recently where customers running KVM have reported that VM hosts on different Hypervisors are unreachable. Based on pcap traces we found that the bridge was broadcasting the ARP request out onto the network. However some

[RFC Patch Part1 V1 29/30] x86, irq, devicetree: use common irqdomain map interface to program IOAPIC pins

2014-05-16 Thread Jiang Liu
Refine devicetree to use common irqdomain map interface to program IOAPIC pins, so we can unify the callsite to progam IOAPIC pins. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/devicetree.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git

[RFC Patch Part1 V1 28/30] x86, irq, SFI: use common irqdomain map interface to program IOAPIC pins

2014-05-16 Thread Jiang Liu
Refine SFI to use common irqdomain map interface to program IOAPIC pins, so we can unify the callsite to progam IOAPIC pins. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/pci/intel_mid_pci.c | 17 +++-- arch/x86/platform/intel-mid/sfi.c | 18

[RFC Patch Part1 V1 24/30] x86, SFI, irq: provide basic irqdomain support

2014-05-16 Thread Jiang Liu
Enhance SFI to provide basic support of irqdomain with identity mapping between GSIs and IRQs. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/platform/sfi/sfi.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/x86/platform/sfi/sfi.c

Re: [PATCH net] bridge: notify user space of fdb port change

2014-05-16 Thread Jon Maxwell
Please use this patch. My bad, the previous one incorrectly did the notify before fdb-added_by_user = 1. - Original Message - From: Jon Maxwell jmaxwel...@gmail.com To: step...@networkplumber.org Cc: da...@davemloft.net, makita toshiaki makita.toshi...@lab.ntt.co.jp,

[RFC Patch Part1 V1 21/30] x86, ACPI, irq: provide basic irqdomain support

2014-05-16 Thread Jiang Liu
Enhance ACPI driver to provide basic irqdomain support for IOAPIC. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/acpi/boot.c | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/arch/x86/kernel/acpi/boot.c

[PATCH v2] PM / OPP: discard duplicate OPP additions

2014-05-16 Thread Chander Kashyap
From: Chander Kashyap k.chan...@samsung.com It may be possible to unregister and re-register the cpufreq driver. One such example is arm big-little IKS cpufreq driver. While re-registering the driver, same OPPs may get added again. This patch detects the duplicacy and discards them.

Re: [ISSUE] sched/cgroup: Does cpu-cgroup still works fine nowadays?

2014-05-16 Thread Michael wang
On 05/16/2014 03:54 PM, Peter Zijlstra wrote: [snip] Right. I played a little (sane groups), saw load balancing as well. Yeah, now we found that even l2 groups will face the same issue, allow me to re-list the details here: Hmm, that _should_ more or less work and does indeed suggest

[RFC Patch Part1 V1 19/30] x86, irq: introduce mechanisms to support dynamically allocate IRQ for IOAPIC

2014-05-16 Thread Jiang Liu
Currently x86 support identity mapping between GSI(IOAPIC pin) and IRQ number, so continous IRQs at low end are statically allocated to IOAPICs at boot time. This design causes trouble to support IOAPIC hotplug. This patch implements basic mechanism to dynamically allocate IRQ on demand for

Re: [RESEND][PATCH] cpuidle: governor: menu: move repeated correction factor check to init

2014-05-16 Thread Chander Kashyap
On 22 April 2014 18:08, Chander Kashyap chander.kash...@linaro.org wrote: In menu_select function we check for correction factor every time. If it is zero we are initializing to unity. Hence move it to init function and initialise by unity, hence avoid repeated comparisons. Signed-off-by:

Machine freeze on latest Linus kernel, seems related to nouveau

2014-05-16 Thread Damien Wyart
Hi, I am running the latest kernel from Linus. Once yesterday and once today, I got a freeze of my machine. The first time, I could reboot with sysrq, but not the second one (completely unresponsive). The first time,, there was nothng in the logs, but today, I got some traces which I attach to

[RFC Patch Part1 V1 15/30] x86, irq: update high address field when updating affinity for MSI IRQ

2014-05-16 Thread Jiang Liu
If x2apic is enabled, the MSI high address field should also be aslo updated when setting affinity for MSI IRQ, otherwise the MSI IRQ may target wrong APIC IDs. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/apic/io_apic.c |4 1 file changed, 4 insertions(+)

Re: [PATCH] ARM: at91: remove ISI code for AT91SAM9263

2014-05-16 Thread Jean-Christophe PLAGNIOL-VILLARD
On May 15, 2014, at 4:34 PM, Paul Bolle pebo...@tiscali.nl wrote: In v2.6.25 code was added for an Image Sensor Interface (ISI) for AT91SAM9263. That code depended on the Kconfig macro CONFIG_VIDEO_AT91_ISI and its MODULE variant. The related Kconfig symbol has never been added to the

[RFC Patch Part1 V1 14/30] x86, ioapic: use irq_cfg() instead of irq_get_chip_data() for better readability

2014-05-16 Thread Jiang Liu
Use defined helper function irq_cfg() instead of irq_get_chip_data() for better readability. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/apic/io_apic.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git

[RFC Patch Part1 V1 11/30] x86, ioapic: replace get_nr_irqs_gsi() with arch_dynirq_lower_bound(0)

2014-05-16 Thread Jiang Liu
Currently all callers use get_nr_irqs_gsi() to get the lowest dynamic allocatable IRQ number, and arch_dynirq_lower_bound(0) achieves the same goal with a better name. So replace get_nr_irqs_gsi() with arch_dynirq_lower_bound(0). It will also help to support dynamic IRQ allocation for IOAPIC by

[RFC Patch Part1 V1 08/30] x86, ACPI, irq: fix possible eror in GSI to IRQ mapping for legacy IRQ

2014-05-16 Thread Jiang Liu
A default identity mapping between GSI and IRQ is built for legacy IRQs. So when overriding the default identity mapping for legacy IRQs, we should also invalidate isa_irq_to_gsi[gsi] when setting isa_irq_to_gsi[irq] = gsi. Otherwise there may be two entries with the same GSI in the

[RFC Patch Part1 V1 10/30] x86, ioapic: kill unused global variable timer_through_8259

2014-05-16 Thread Jiang Liu
Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/include/asm/io_apic.h |4 arch/x86/kernel/apic/io_apic.c |3 --- 2 files changed, 7 deletions(-) diff --git a/arch/x86/include/asm/io_apic.h b/arch/x86/include/asm/io_apic.h index 8f472daea221..0c448ac14abf 100644 ---

[RFC Patch Part1 V1 09/30] x86, irq, trivial: minor improvements of IRQ related code

2014-05-16 Thread Jiang Liu
1) Kill unused MAX_HARDIRQS_PER_CPU. 2) Improve function prototype declararions. 3) simple typo fix, change gsit to gsi. 4) use macro VECTOR_UNDEFINED instead of hard-coded -1. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/include/asm/hardirq.h |3 ---

[PATCH v6 6/6] mcpm: exynos: populate suspend and powered_up callbacks

2014-05-16 Thread Chander Kashyap
In order to support cpuidle through mcpm, suspend and powered-up callbacks are required in mcpm platform code. Hence populate the same callbacks. Signed-off-by: Chander Kashyap chander.kash...@linaro.org Signed-off-by: Chander Kashyap k.chan...@samsung.com --- Changes in v6: None Changes in v5:

Re: [GIT PULL] cpuidle: new driver for Cirrus Logic for 3.16

2014-05-16 Thread Daniel Lezcano
Hi Rafael, just a head up in case you missed it. Thanks -- Daniel On 04/30/2014 12:24 PM, Daniel Lezcano wrote: Hi Rafael, this pull request is based on top 3.15-rc3 * Alexander Shiyan added a new driver for the Cirrus Logic clps711x Thanks -- Daniel The following changes since

[RFC Patch Part1 V1 07/30] x86, ACPI, irq: enhance error handling in function acpi_register_gsi()

2014-05-16 Thread Jiang Liu
Function mp_register_gsi() may return invalid GSI if error happens, so enhance acpi_register_gsi() to handle possible error cases. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/acpi/boot.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git

Re: [PATCH v2] PM / OPP: discard duplicate OPP additions

2014-05-16 Thread Viresh Kumar
On 16 May 2014 13:43, Chander Kashyap chander.kash...@linaro.org wrote: From: Chander Kashyap k.chan...@samsung.com It may be possible to unregister and re-register the cpufreq driver. One such example is arm big-little IKS cpufreq driver. While re-registering the driver, same OPPs may get

[PATCH v6 4/6] driver: cpuidle: cpuidle-big-little: init driver for Exynos5420

2014-05-16 Thread Chander Kashyap
Add samsung,exynos5420 compatible string to initialize generic big-little cpuidle driver for Exynos5420. Signed-off-by: Chander Kashyap chander.kash...@linaro.org Signed-off-by: Chander Kashyap k.chan...@samsung.com Acked-by: Daniel Lezcano daniel.lezc...@linaro.org --- Changes in v5: None

[PATCH v6 1/6] driver: cpuidle-big-little: add of_device_id structure

2014-05-16 Thread Chander Kashyap
This driver will be used by many big.Little Soc's. As of now it does string matching of hardcoded compatible string to init the driver. This comparison list will keep on growing with addition of new SoC's. Hence add of_device_id structure to collect the compatible strings of SoC's using this

[RFC Patch Part1 V1 04/30] x86, PCI, ACPI: use kmalloc_node() to optimize for performance

2014-05-16 Thread Jiang Liu
Use kmalloc_node() instead of kmalloc() when possible to optimize for performance on NUMA platforms. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/pci/acpi.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/pci/acpi.c b/arch/x86/pci/acpi.c

[RFC Patch Part1 V1 06/30] x86, ACPI, trivial: minor improvements to arch/x86/kernel/acpi/boot.c

2014-05-16 Thread Jiang Liu
1) Remove out-of-date comment 2) Kill unused function acpi_set_irq_model_pic() 3) Use NR_IRQS_LEGACY instead of hard-coded 16 4) Trivial syntax improvements Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/acpi/boot.c | 50 ++- 1

[PATCH v6 0/6] add cpuidle support for Exynos5420

2014-05-16 Thread Chander Kashyap
Exynos5420 is a big-little Soc from Samsung. It has 4 A15 and 4 A7 cores. This patchset adds cpuidle support for Exynos5420 SoC based on generic big.little cpuidle driver. Tested on SMDK5420. This patch set depends on: 1. [PATCH 0/5] MCPM backend for Exynos5420

[PATCH v6 3/6] cpuidle: config: Add ARCH_EXYNOS entry to select cpuidle-big-little driver

2014-05-16 Thread Chander Kashyap
Add support to select generic big-little cpuidle driver for Samsung Exynos series SoC's. This is required for Exynos big-llittle SoC's eg, Exynos5420. Signed-off-by: Chander Kashyap chander.kash...@linaro.org Signed-off-by: Chander Kashyap k.chan...@samsung.com --- Changes in v4: 1. Typo

[RFC Patch Part1 V1 05/30] x86, acpi, irq: kill static function irq_to_gsi()

2014-05-16 Thread Jiang Liu
Static function irq_to_gsi() is only called by acpi_isa_irq_to_gsi(), so kill function irq_to_gsi() and simplify acpi_isa_irq_to_gsi(). Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/acpi/boot.c | 26 ++ 1 file changed, 6 insertions(+), 20

[PATCH v6 2/6] arm: exynos: add generic function to calculate cpu number

2014-05-16 Thread Chander Kashyap
The address of cpu power registers in pmu is based on cpu number offsets. This function calculate the same. This is essentially required in case of multi-cluster SoC's e.g Exynos5420. Signed-off-by: Chander Kashyap chander.kash...@linaro.org Signed-off-by: Chander Kashyap k.chan...@samsung.com

[PATCH 3/5] dma-mapping: pci: Add devm_ interface for pci_map_single

2014-05-16 Thread Eli Billauer
Signed-off-by: Eli Billauer eli.billa...@gmail.com --- Documentation/driver-model/devres.txt |2 ++ include/asm-generic/pci-dma-compat.h | 17 + 2 files changed, 19 insertions(+), 0 deletions(-) diff --git a/Documentation/driver-model/devres.txt

[PATCH 0/5] devres: Add functions + migrate Xillybus driver

2014-05-16 Thread Eli Billauer
This patchset consists of new functions to the managed device resource API, followed by patches for the Xillybus driver that now relies on these. Rationale: While migrating the staging/xillybus driver to rely completely on managed resources, some functionalities were missing, and hence added: *

[PATCH 2/5] dma-mapping: Add devm_ interface for dma_map_single()

2014-05-16 Thread Eli Billauer
dmam_map_single() and dmam_unmap_single() are the managed counterparts for the respective dma_* functions. Note that dmam_map_single() returns zero on failure, and not a value to be handled by dma_mapping_error(): The error check is done by dmam_map_single() to avoid the registration of a mapping

[PATCH 5/5] staging: xillybus: Use devm_ API for memory allocation and DMA mapping

2014-05-16 Thread Eli Billauer
Managed device resource API replaces code that reinvents it for memory allocation, page allocation and DMA mapping. Suggested-by: Baruch Siach bar...@tkos.co.il Signed-off-by: Eli Billauer eli.billa...@gmail.com --- drivers/staging/xillybus/xillybus.h | 31 +--

[PATCH 4/5] staging: xillybus: Use devm_ API on probe and remove

2014-05-16 Thread Eli Billauer
Suggested-by: Baruch Siach bar...@tkos.co.il Signed-off-by: Eli Billauer eli.billa...@gmail.com --- drivers/staging/xillybus/xillybus.h |1 - drivers/staging/xillybus/xillybus_core.c |2 +- drivers/staging/xillybus/xillybus_of.c | 47 -

Re: [PATCH] sched: tg_set_cfs_bandwidth() causes rq-lock deadlock

2014-05-16 Thread Roman Gushchin
At Thu, 15 May 2014 10:43:14 -0700, bseg...@google.com wrote: Roman Gushchin kl...@yandex-team.ru writes: tg_set_cfs_bandwidth() sets cfs_b-timer_active to 0 to force the period timer restart. It's not safe, because can lead to deadlock, described in commit 927b54fccbf0:

[PATCH 1/5] devres: Add devm_get_free_pages API

2014-05-16 Thread Eli Billauer
devm_get_free_pages() and devm_free_pages() are the managed counterparts for __get_free_pages() and free_pages(). Signed-off-by: Eli Billauer eli.billa...@gmail.com --- Documentation/driver-model/devres.txt |2 + drivers/base/devres.c | 76 +

Re: [PATCH 1/1] fs/gfs2/file.c: kernel-doc warning fixes

2014-05-16 Thread Steven Whitehouse
Hi, I've added this patch, plus the one you sent yesterday to the GFS2 -nmw tree. Thanks, Steve. On 15/05/14 17:57, Fabian Frederick wrote: Related function is not gfs2_set_flags but do_gfs2_set_flags Cc: Steven Whitehouse swhit...@redhat.com Cc: Andrew Morton a...@linux-foundation.org

[PATCH 4/4] perf tools: Add libdw DWARF post unwind support for ARM

2014-05-16 Thread Jean Pihet
Adding libdw DWARF post unwind support, which is part of elfutils-devel/libdw-dev package from version 0.158. The new code is contained in unwin-libdw.c object, and implements unwind__get_entries unwind interface function. Signed-off-by: Jean Pihet jean.pi...@linaro.org Reviewed-by: Will Deacon

[PATCH 2/4] perf tests: Introduce perf_regs_load function on ARM

2014-05-16 Thread Jean Pihet
Introducing perf_regs_load function, which is going to be used for dwarf unwind test in following patches. It takes single argument as a pointer to the regs dump buffer and populates it with current registers values. Signed-off-by: Jean Pihet jean.pi...@linaro.org Reviewed-by: Will Deacon

Re: [PATCH v2] PM / OPP: discard duplicate OPP additions

2014-05-16 Thread Chander Kashyap
On 16 May 2014 13:54, Viresh Kumar viresh.ku...@linaro.org wrote: On 16 May 2014 13:43, Chander Kashyap chander.kash...@linaro.org wrote: From: Chander Kashyap k.chan...@samsung.com It may be possible to unregister and re-register the cpufreq driver. One such example is arm big-little IKS

[PATCH 1/4] tools: perf: consolidate types.h for ARM and ARM64

2014-05-16 Thread Jean Pihet
Prevents a build breakage since commit d944c4eebcf4c0d5e5d9728fec110cbf0047ad7f 'tools: Consolidate types.h' Signed-off-by: Jean Pihet jean.pi...@linaro.org --- tools/perf/arch/arm/include/perf_regs.h | 2 +- tools/perf/arch/arm64/include/perf_regs.h | 2 +- 2 files changed, 2 insertions(+), 2

[PATCH 3/4] perf tests: Add dwarf unwind test on ARM

2014-05-16 Thread Jean Pihet
Adding dwarf unwind test, that setups live machine data over the perf test thread and does the remote unwind. Need to use -fno-optimize-sibling-calls for test compilation, otherwise 'krava_*' function calls are optimized into jumps and ommited from the stack unwind. So far it was enabled only

Re: [rfc]pwm: add xilinx pwm driver

2014-05-16 Thread Michal Simek
On 05/15/2014 10:49 PM, Thierry Reding wrote: On Thu, May 15, 2014 at 06:30:13PM +0200, Arnd Bergmann wrote: On Thursday 15 May 2014 15:56:03 Michal Simek wrote: IP is configurable as is normal for us. You can select IP with just one timer. It means register locations for specific timer are

Re: [PATCH v2] PM / OPP: discard duplicate OPP additions

2014-05-16 Thread Viresh Kumar
On 16 May 2014 14:12, Chander Kashyap chander.kash...@linaro.org wrote: On 16 May 2014 13:54, Viresh Kumar viresh.ku...@linaro.org wrote: On 16 May 2014 13:43, Chander Kashyap chander.kash...@linaro.org wrote: From: Chander Kashyap k.chan...@samsung.com It may be possible to unregister and

Re: [PATCH net] bridge: notify user space of fdb port change

2014-05-16 Thread Jon Maxwell
- Original Message - From: Jon Maxwell jmaxw...@redhat.com To: step...@networkplumber.org Cc: da...@davemloft.net, makita toshiaki makita.toshi...@lab.ntt.co.jp, vyase...@redhat.com, bri...@lists.linux-foundation.org, net...@vger.kernel.org, linux-kernel@vger.kernel.org,

Re: [PATCH] video: omap: delete support for early fbmem allocation

2014-05-16 Thread Tomi Valkeinen
On 10/05/14 01:52, Aaro Koskinen wrote: Commit 1e434f9318efc3dddc0c0b8d2071712668154c2b (OMAPFB: remove early mem alloc from old omapfb) deleted the support for early fbmem allocation from the platform code, but some code still remains in the driver side. Delete this code now, as it repotedly

[PATCH] ARM: sa1100: remove unused header

2014-05-16 Thread Paul Bolle
SA-1101.h was included in the tree shortly before v2.4.0. The #include preprocessor directive that includes it has always depended on a preprocessor check for CONFIG_SA1101. But the related (Kconfig) symbol has never been part of the tree. Remove that preprocessor check and this unused header.

<    4   5   6   7   8   9   10   11   12   13   >