[PATCH v3 2/5] PCI: designware: refactor MSI code to work with v3.65 dw hardware

2014-06-30 Thread Murali Karicheri
Keystone PCI controller is based on v3.65 version of the DW PCI h/w that implements MSI controller registers in application space compared to the newer version. This requires updates to the DW core API to support the PCI controller driver based on this old DW hardware. Add msi_irq_set()/clear()

[PATCH v3 0/5] Add Keystone PCIe controller driver

2014-06-30 Thread Murali Karicheri
This patch add PCIe controller driver for Keystone SoCs. This is based on v2 of the series posted to the mailing list. Keystone PCI controller is based on version 3.65 of the DW hardware. This driver re-uses some of the DW core driver functions and required modification in some to support the old

[PATCH] ARM: debug: msm: Support big-endian CPUs

2014-06-30 Thread Stephen Boyd
If the CPU is in big-endian mode these macros will access the hardware incorrectly. Reverse thins as necessary to fix this. Signed-off-by: Stephen Boyd sb...@codeaurora.org --- arch/arm/include/debug/msm.S | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/include/debug/msm.S

[PATCH - v3] phy: Add serdes phy driver for keystone

2014-06-30 Thread Murali Karicheri
This phy driver added to support keystone PCI driver. This is a generic phy driver and currently it supports only SerDes for PCI Controller. The hw vendor that provides the phy hw published only registers and their values. So this driver uses these hard coded values to initialize the phy.

Re: [PATCH 4/4] mm: page_alloc: Reduce cost of the fair zone allocation policy

2014-06-30 Thread Mel Gorman
On Mon, Jun 30, 2014 at 02:14:04PM -0700, Andrew Morton wrote: On Mon, 30 Jun 2014 17:48:03 +0100 Mel Gorman mgor...@suse.de wrote: The fair zone allocation policy round-robins allocations between zones within a node to avoid age inversion problems during reclaim. If the first allocation

[for-next][PATCH 0/4] [3.16] tracing/uprobes: Fixes

2014-06-30 Thread Steven Rostedt
git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git for-next Head SHA1: fb6bab6a5ad46d00b5ffa22268f21df1cd7c59df Oleg Nesterov (4): tracing/uprobes: Revert Support mix of ftrace and perf uprobes: Change unregister/apply to WARN() if uprobe/consumer is gone

[for-next][PATCH 2/4] uprobes: Change unregister/apply to WARN() if uprobe/consumer is gone

2014-06-30 Thread Steven Rostedt
From: Oleg Nesterov o...@redhat.com Add WARN_ON's into uprobe_unregister() and uprobe_apply() to ensure that nobody tries to play with the dead uprobe/consumer. This helps to catch the bugs like the one fixed by the previous patch. In the longer term we should fix this poorly designed interface.

[for-next][PATCH 1/4] tracing/uprobes: Revert Support mix of ftrace and perf

2014-06-30 Thread Steven Rostedt
From: Oleg Nesterov o...@redhat.com This reverts commit 43fe98913c9f67e3b523615ee3316f9520a623e0. This patch is very wrong. Firstly, this change leads to unbalanced uprobe_unregister(). Just for example, # perf probe -x /lib/libc.so.6 syscall # echo 1

[for-next][PATCH 3/4] tracing/uprobes: Kill the bogus UPROBE_HANDLER_REMOVE code in uprobe_dispatcher()

2014-06-30 Thread Steven Rostedt
From: Oleg Nesterov o...@redhat.com I do not know why dd9fa555d7bb tracing/uprobes: Move argument fetching to uprobe_dispatcher() added the UPROBE_HANDLER_REMOVE, but it looks wrong. OK, perhaps it makes sense to avoid store_trace_args() if the tracee is nacked by uprobe_perf_filter(). But then

[for-next][PATCH 4/4] tracing/uprobes: Fix the usage of uprobe_buffer_enable() in probe_event_enable()

2014-06-30 Thread Steven Rostedt
From: Oleg Nesterov o...@redhat.com The usage of uprobe_buffer_enable() added by dcad1a20 is very wrong, 1. uprobe_buffer_enable() and uprobe_buffer_disable() are not balanced, _enable() should be called only if !enabled. 2. If uprobe_buffer_enable() fails probe_event_enable() should clear

[PATCH v2 02/10] x86_64,vsyscall: Move all of the gate_area code to vsyscall_64.c

2014-06-30 Thread Andy Lutomirski
This code exists for the sole purpose of making the vsyscall page look sort of like real userspace memory. Move it so that it lives with the rest of the vsyscall code. Signed-off-by: Andy Lutomirski l...@amacapital.net --- arch/x86/kernel/vsyscall_64.c | 49

[PATCH v2 01/10] x86_64,vsyscall: Fix warn_bad_vsyscall log output

2014-06-30 Thread Andy Lutomirski
This commit in Linux 3.6: commit c767a54ba0657e52e6edaa97cbe0b0a8bf1c1655 Author: Joe Perches j...@perches.com Date: Mon May 21 19:50:07 2012 -0700 x86/debug: Add KERN_LEVEL to bare printks, convert printks to pr_level caused warn_bad_vsyscall to output garbage in the

[PATCH] tty: serial: msm: Support big-endian CPUs

2014-06-30 Thread Stephen Boyd
To support big-endian CPUs use the string versions of the io read/write macros on the TX/RX fifos and the non-raw variants of the readl/writel macros throughout. This way we don't byteswap the characters coming from the fifos but we properly deal with the little-endian nature of the serial

[PATCH v2 09/10] arm64,ia64,ppc,s390,sh,tile,um,x86,mm: Remove default gate area

2014-06-30 Thread Andy Lutomirski
The core mm code will provide a default gate area based on FIXADDR_USER_START and FIXADDR_USER_END if !defined(__HAVE_ARCH_GATE_AREA) defined(AT_SYSINFO_EHDR). This default is only useful for ia64. arm64, ppc, s390, sh, tile, 64-bit UML, and x86_32 have their own code just to disable it. arm,

[PATCH v2 08/10] x86_64,vdso: Clean up vgetcpu init and merge the vdso initcalls

2014-06-30 Thread Andy Lutomirski
Now vdso/vma.c has a single initcall and no references to vsyscall. Signed-off-by: Andy Lutomirski l...@amacapital.net --- arch/x86/vdso/vma.c | 61 +++-- 1 file changed, 22 insertions(+), 39 deletions(-) diff --git a/arch/x86/vdso/vma.c

[PATCH v2 04/10] x86_64,vdso: Remove jiffies from the vvar page

2014-06-30 Thread Andy Lutomirski
I think that the jiffies vvar was once used for the vgetcpu cache. That code is long gone, so let's just make jiffies be a normal variable. Signed-off-by: Andy Lutomirski l...@amacapital.net --- arch/x86/include/asm/vvar.h | 1 - arch/x86/kernel/time.c | 2 +- arch/x86/vdso/vgetcpu.c |

[PATCH v2 07/10] x86_64,vsyscall: Rewrite comment and clean up headers in vsyscall code

2014-06-30 Thread Andy Lutomirski
vsyscall_64.c is just vsyscall emulation. Tidy it up accordingly. If my comment editing offends anyone, let me know and I can fix it. Signed-off-by: Andy Lutomirski l...@amacapital.net --- arch/x86/kernel/vsyscall_64.c | 51 +++ 1 file changed, 18

[PATCH v2 10/10] x86_64,vsyscall: Make vsyscall emulation configurable

2014-06-30 Thread Andy Lutomirski
This adds CONFIG_X86_VSYSCALL_EMULATION, guarded by CONFIG_EXPERT. Turning it off completely disables vsyscall emulation, saving ~3.5k for vsyscall_64.c, 4k for vsyscall_emu_64.S (the fake vsyscall page), some tiny amount of core mm code that supports a gate area, and possibly 4k for a wasted

[PATCH v2 05/10] x86,vdso: Replace vgetcpu_mode with static_cpu_has

2014-06-30 Thread Andy Lutomirski
The vdso has supported alternatives for a while; use them instead of a vvar to select the vgetcpu mode. Signed-off-by: Andy Lutomirski l...@amacapital.net --- arch/x86/include/asm/vgtod.h| 21 + arch/x86/include/asm/vsyscall.h | 29 -

[PATCH v2 06/10] x86_64: Move getcpu code from vsyscall_64.c to vdso/vma.c

2014-06-30 Thread Andy Lutomirski
This is pure cut-and-paste. At this point, vsyscall_64.c contains only code needed for vsyscall emulation, but some of the comments and function names are still confused. Signed-off-by: Andy Lutomirski l...@amacapital.net --- arch/x86/kernel/vsyscall_64.c | 57

[PATCH v2 00/10] x86 and others: vsyscall and vdso cleanups

2014-06-30 Thread Andy Lutomirski
This is v2. I'm resending it because the fallout from the 3.16 changes seems to have settled down, and because arm is about to run in to the same problem that I ran in to, which is fixed in the big cross-arch patch. Patch 1 fixes a minor bug; it might make sense to backport it. Patch 3 removes

[PATCH v2 03/10] x86_64,vsyscall: Turn vsyscalls all the way off when vsyscall=none

2014-06-30 Thread Andy Lutomirski
I see no point in having an unusable read-only page sitting at 0xff60 when vsyscall=none. Instead, skip mapping it and remove it from /proc/PID/maps. I kept the ratelimited warning when programs try to use a vsyscall in this mode, since it may help admins avoid confusion.

Re: [PATCH] x86: ioapic: Fix irq_free_descs count

2014-06-30 Thread David Rientjes
On Mon, 30 Jun 2014, Keith Busch wrote: Signed-off-by: Keith Busch keith.bu...@intel.com Cc: Thomas Gleixner t...@linutronix.de Cc: x...@kernel.org Acked-by: David Rientjes rient...@google.com This is definitely a fix for genirq: Provide generic hwirq allocation facility, but the changelog

Re: [PATCH 2/2] mm: replace init_page_accessed by __SetPageReferenced

2014-06-30 Thread Mel Gorman
On Mon, Jun 30, 2014 at 02:09:49PM -0700, Hugh Dickins wrote: Do we really need an exported alias for __SetPageReferenced()? Its callers better know what they're doing, in which case the page would not be already marked referenced. Kill init_page_accessed(), just __SetPageReferenced() inline.

Re: [PATCH 1/2] shmem: fix init_page_accessed use to stop !PageLRU bug

2014-06-30 Thread Mel Gorman
On Mon, Jun 30, 2014 at 02:08:11PM -0700, Hugh Dickins wrote: Under shmem swapping load, I sometimes hit the VM_BUG_ON_PAGE(!PageLRU) in isolate_lru_pages() at mm/vmscan.c:1281! Commit 2457aec63745 (mm: non-atomically mark page accessed during page cache allocation where possible) looks like

Re: mm: slub: invalid memory access in setup_object

2014-06-30 Thread David Rientjes
On Wed, 25 Jun 2014, Christoph Lameter wrote: On Wed, 25 Jun 2014, Sasha Levin wrote: [ 791.669480] ? init_object (mm/slub.c:665) [ 791.669480] setup_object.isra.34 (mm/slub.c:1008 mm/slub.c:1373) [ 791.669480] new_slab (mm/slub.c:278 mm/slub.c:1412) So we just got a new page from

Re: mm: derefing NULL vma-vm_mm when unmapping

2014-06-30 Thread Andrew Morton
buffer empty) [ 761.704089] Modules linked in: [ 761.704089] CPU: 4 PID: 20723 Comm: trinity-c131 Tainted: GW 3.16.0-rc3-next-20140630-sasha-00023-g44434d4-dirty #756 [ 761.704089] task: 88004e3c ti: 88004e0b8000 task.ti: 88004e0b8000 [ 761.704089] RIP

[PATCH] devicetree: bindings: document Broadcom CPU enable method

2014-06-30 Thread Alex Elder
Broadcom mobile SoCs use a ROM-implemented holding pen for controlled boot of secondary cores. A special register is used to communicate to the ROM that a secondary core should start executing kernel code. This enable method is currently used for members of the bcm281xx and bcm21664 SoC

Re: [PATCH RFC net-next 03/14] bpf: introduce syscall(BPF, ...) and BPF maps

2014-06-30 Thread Andy Lutomirski
On Sat, Jun 28, 2014 at 11:36 PM, Alexei Starovoitov a...@plumgrid.com wrote: On Sat, Jun 28, 2014 at 6:52 PM, Andy Lutomirski l...@amacapital.net wrote: On Sat, Jun 28, 2014 at 1:49 PM, Alexei Starovoitov a...@plumgrid.com wrote: Sorry I don't like 'fd' direction at all. 1. it will make

Re: [PATCH 4/4] mm: page_alloc: Reduce cost of the fair zone allocation policy

2014-06-30 Thread Andrew Morton
On Mon, 30 Jun 2014 22:51:21 +0100 Mel Gorman mgor...@suse.de wrote: That's a large change in system time. Does this all include kswapd activity? I don't have a profile to quantify that exactly. It takes 7 hours to complete a test on that machine in this configuration That's nuts.

Re: [PATCH] x86: ioapic: Fix irq_free_descs count

2014-06-30 Thread Keith Busch
On Mon, 30 Jun 2014, David Rientjes wrote: On Mon, 30 Jun 2014, Keith Busch wrote: Signed-off-by: Keith Busch keith.bu...@intel.com Cc: Thomas Gleixner t...@linutronix.de Cc: x...@kernel.org Acked-by: David Rientjes rient...@google.com This is definitely a fix for genirq: Provide generic

[PATCH v6 1/4] ARM: add SMP support for Broadcom mobile SoCs

2014-06-30 Thread Alex Elder
This patch adds SMP support for BCM281XX and BCM21664 family SoCs. This feature is controlled with a distinct config option such that an SMP-enabled multi-v7 binary can be configured to run these SoCs in uniprocessor mode. Since this SMP functionality is used for multiple Broadcom mobile chip

[PATCH v6 4/4] ARM: dts: enable SMP support for bcm21664

2014-06-30 Thread Alex Elder
Define nodes representing the two Cortex A9 CPUs in a bcm21644 SoC. Signed-off-by: Alex Elder el...@linaro.org --- arch/arm/boot/dts/bcm21664.dtsi | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/bcm21664.dtsi b/arch/arm/boot/dts/bcm21664.dtsi index

[PATCH v6 3/4] ARM: dts: enable SMP support for bcm28155

2014-06-30 Thread Alex Elder
Define nodes representing the two Cortex A9 CPUs in a bcm28155 SoC. Signed-off-by: Ray Jui r...@broadcom.com Signed-off-by: Alex Elder el...@linaro.org --- arch/arm/boot/dts/bcm11351.dtsi | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/bcm11351.dtsi

[PATCH v6 2/4] ARM: configs: enable SMP in bcm_defconfig

2014-06-30 Thread Alex Elder
Also explicitly set CONFIG_NR_CPUS to 2, limiting it to the most we currently need. Signed-off-by: Ray Jui r...@broadcom.com Signed-off-by: Alex Elder el...@linaro.org --- arch/arm/configs/bcm_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/bcm_defconfig

[PATCH v6 0/4] ARM: SMP: support Broadcom mobile SoCs

2014-06-30 Thread Alex Elder
This series adds SMP support for two Broadcom mobile SoC families. It uses CPU_METHOD_OF_DECLARE() so that SMP operations are assigned using device tree rather than adding it to a machine definition in a board file. The enable method starts a secondary core by writing to a register monitored by

Re: [PATCH] x86: ioapic: Fix irq_free_descs count

2014-06-30 Thread David Rientjes
On Mon, 30 Jun 2014, Keith Busch wrote: On Mon, 30 Jun 2014, David Rientjes wrote: On Mon, 30 Jun 2014, Keith Busch wrote: Signed-off-by: Keith Busch keith.bu...@intel.com Cc: Thomas Gleixner t...@linutronix.de Cc: x...@kernel.org Acked-by: David Rientjes rient...@google.com

Re: [PATCH v2] perf/x86/intel: ignore CondChgd bit to avoid false NMI handling

2014-06-30 Thread Andi Kleen
I'm also interested in the behaviour of CondChgd bit on Ivy Bridge processors. The intended meaning of CondChgd is that a hardware debugger has taken over the PMU. It shouldn't really be set in other circumstances. I think right now for perf it would be best to just ignore it. In theory

Re: [PATCH 1/5] man-pages: open.2: describe O_BENEATH_ONLY flag

2014-06-30 Thread Andy Lutomirski
On Mon, Jun 30, 2014 at 3:28 AM, David Drysdale drysd...@google.com wrote: Signed-off-by: David Drysdale drysd...@google.com --- man2/open.2 | 33 +++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/man2/open.2 b/man2/open.2 index

[PATCH] genirq: Fix memory leak when calling irq_free_hwirqs()

2014-06-30 Thread Keith Busch
irq_free_hwirqs() always calls irq_free_descs() with a cnt == 0 which makes it a no-op since the interrupt count to free is decremented in itself. Fixes: 7b6ef1262549f6afc5c881aaef80beb8fd15f908 Signed-off-by: Keith Busch keith.bu...@intel.com Cc: Thomas Gleixner t...@linutronix.de Acked-by:

Re: [PATCH v3 02/10] devicetree: Add generic IOMMU device tree bindings

2014-06-30 Thread Stephen Warren
On 06/26/2014 02:49 PM, Thierry Reding wrote: From: Thierry Reding tred...@nvidia.com This commit introduces a generic device tree binding for IOMMU devices. Only a very minimal subset is described here, but it is enough to cover the requirements of both the Exynos System MMU and Tegra SMMU

Re: [PATCH 5/5] man-pages: cap_rights_get: retrieve Capsicum fd rights

2014-06-30 Thread Andy Lutomirski
On Mon, Jun 30, 2014 at 3:28 AM, David Drysdale drysd...@google.com wrote: Signed-off-by: David Drysdale drysd...@google.com --- man2/cap_rights_get.2 | 126 ++ 1 file changed, 126 insertions(+) create mode 100644 man2/cap_rights_get.2

Re: [PATCH 0/3] static keys: fix test/set races

2014-06-30 Thread Steven Rostedt
On Mon, 30 Jun 2014 17:43:50 -0400 Jason Baron jba...@akamai.com wrote: Hi Steve, I took a closer look at this, and I'm thinking now that its simpler to just take the inode-i_mutex in sched_feat_write(), surrounding the test/set jump_label call. It should be about 3 lines :) Smaller

Re: [RFC 04/10] memory: Add Tegra124 memory controller support

2014-06-30 Thread Stephen Warren
On 06/26/2014 02:49 PM, Thierry Reding wrote: From: Thierry Reding tred...@nvidia.com The memory controller on NVIDIA Tegra124 exposes various knobs that can be used to tune the behaviour of the clients attached to it. Currently this driver sets up the latency allowance registers to the HW

Re: [PATCH] PCI: Do not touch siblings in pci_assign_unassigned_bridge_resources

2014-06-30 Thread Bjorn Helgaas
On Wed, Jun 18, 2014 at 09:41:02PM -0700, Yinghai Lu wrote: On Wed, Jun 18, 2014 at 3:40 PM, Andreas Noever andreas.noe...@gmail.com wrote: On Wed, Jun 18, 2014 at 1:39 AM, Yinghai Lu ying...@kernel.org wrote: It seems to fix the testcase (no unwanted resources are released). But why do

[PATCH mmotm/next] mm: memcontrol: rewrite charge API: fix shmem_unuse

2014-06-30 Thread Hugh Dickins
Under shmem swapping and swapoff load, I sometimes hit the VM_BUG_ON_PAGE(!page-mapping) in mem_cgroup_commit_charge() at mm/memcontrol.c:6502! Each time it has been a call from shmem_unuse(). Yes, there are some cases (most commonly when the page being unswapped is in a file being unlinked and

Re: [Linux-parport] [PATCH 2/2] parport: parport_pc: Add force_epp module option for parport_pc.

2014-06-30 Thread Adam Baker
On 30/06/14 09:48, Matwey V. Kornilov wrote: The detection of Intel EPP bug is known to produce much false positives. The new option is introduced to force enable EPP in spite of the test result. I can confirm that this check produces false positives on a range of hardware - I no longer have

Re: [PATCH mmotm/next] mm: memcontrol: rewrite charge API: fix shmem_unuse

2014-06-30 Thread Andrew Morton
On Mon, 30 Jun 2014 15:48:39 -0700 (PDT) Hugh Dickins hu...@google.com wrote: Under shmem swapping and swapoff load, I sometimes hit the VM_BUG_ON_PAGE(!page-mapping) in mem_cgroup_commit_charge() at mm/memcontrol.c:6502! Each time it has been a call from shmem_unuse(). Yes, there are some

[patch] x86, perf: avoid spamming kernel log for bts buffer failure

2014-06-30 Thread David Rientjes
It's unnecessary to excessively spam the kernel log anytime the BTS buffer cannot be allocated, so make this allocation __GFP_NOWARN. The user probably will want to at least find some artifact that the allocation has failed in the past, probably due to fragmentation because of its large size,

Re: [PATCH 11/13] input: lm8323: fix attribute-creation race

2014-06-30 Thread Bryan Wu
On Fri, Jun 27, 2014 at 11:50 AM, Dmitry Torokhov dmitry.torok...@gmail.com wrote: On Wed, Jun 25, 2014 at 10:08 AM, Johan Hovold jo...@kernel.org wrote: Use the attribute groups of the led-class to create the time attribute during probe in order to avoid racing with userspace. Signed-off-by:

Re: [PATCH RFC net-next 00/14] BPF syscall, maps, verifier, samples

2014-06-30 Thread Kees Cook
On Fri, Jun 27, 2014 at 5:05 PM, Alexei Starovoitov a...@plumgrid.com wrote: Hi All, this patch set demonstrates the potential of eBPF. First patch net: filter: split filter.c into two files splits eBPF interpreter out of networking into kernel/bpf/. The goal for BPF subsystem is to be

RE: [PATCH 1/1] script/kconfig: remove a warning for menucofig

2014-06-30 Thread Li, Zhen-Hua
When malloc for jump, if (head location) { jump = xmalloc(sizeof(struct jump_key)); } And here it is used: if (head location menu == location) jump-offset = strlen(r-s); So I think when jump is used, it must not be NULL; then !=NULL is not needed. -Original

Re: [PATCH 2/2 v2] HID: leds: Use attribute-groups in MSI GT683R driver

2014-06-30 Thread Bryan Wu
On Mon, Jun 30, 2014 at 4:33 AM, Jiri Kosina jkos...@suse.cz wrote: On Mon, 30 Jun 2014, Johan Hovold wrote: I think the better place is HID/input tree, since this patch depends on the initial one which is not in my tree. I'm going to merge Johan's whole patchset and this patch probably

Re: [PATCH 1/4] fs.h: Remove unnecessary extern prototypes

2014-06-30 Thread Andrew Morton
On Sat, 28 Jun 2014 17:20:13 -0700 Joe Perches j...@perches.com wrote: This file has a mixture of prototypes with and without extern. Remove the extern uses. urgh, it's been two days and this already throws a huge reject. I fix that and the other two patches throw great piles of rejects as

[PATCH] firmware loader: inform direct failure when udev loader is disabled

2014-06-30 Thread Luis R. Rodriguez
From: Luis R. Rodriguez mcg...@suse.com Now that the udev firmware loader is optional request_firmware() will not provide any information on the kernel ring buffer if direct firmware loading failed and udev firmware loading is disabled. If no information is needed request_firmware_direct() should

Re: [PATCH 1/4] fs.h: Remove unnecessary extern prototypes

2014-06-30 Thread Joe Perches
On Mon, 2014-06-30 at 16:19 -0700, Andrew Morton wrote: On Sat, 28 Jun 2014 17:20:13 -0700 Joe Perches j...@perches.com wrote: This file has a mixture of prototypes with and without extern. Remove the extern uses. urgh, it's been two days and this already throws a huge reject. I fix

Re: [PATCH 1/4] fs.h: Remove unnecessary extern prototypes

2014-06-30 Thread Andrew Morton
On Mon, 30 Jun 2014 16:31:31 -0700 Joe Perches j...@perches.com wrote: On Mon, 2014-06-30 at 16:19 -0700, Andrew Morton wrote: On Sat, 28 Jun 2014 17:20:13 -0700 Joe Perches j...@perches.com wrote: This file has a mixture of prototypes with and without extern. Remove the extern uses.

Re: [PATCH] x86: numa: setup_node_data(): drop dead code and rename function

2014-06-30 Thread David Rientjes
On Thu, 19 Jun 2014, Luiz Capitulino wrote: The setup_node_data() function allocates a pg_data_t object, inserts it into the node_data[] array and initializes the following fields: node_id, node_start_pfn and node_spanned_pages. However, a few function calls later during the kernel boot,

[PATCH net-next v1 2/2] netpoll: avoid reference leaks

2014-06-30 Thread David Decotigny
This ensures that the ndo_netpoll_cleanup callback is called for every device that provides one. Otherwise there is a risk of reference leak with bonding for example, which depends on this callback to cleanup the slaves' references to netpoll info. Tested: see patch netpoll: fix use after free

[PATCH net-next v1 1/2] netpoll: fix use after free

2014-06-30 Thread David Decotigny
After a bonding master reclaims the netpoll info struct, slaves could still hold a pointer to the reclaimed data. This patch fixes it: as soon as netpoll_async_cleanup is called for a slave (eg. when un-enslaved), we make sure that this slave doesn't point to the data. The style of this patch is

[PATCH] clk: Add tracepoints for hardware operations

2014-06-30 Thread Stephen Boyd
It's useful to have tracepoints around operations that change the hardware state so that we can debug clock hardware performance and operations. Three basic types of events are supported: on/off events for enable, disable, prepare, unprepare that only record an event and a clock name, rate

mm: memcontrol: rewrite uncharge API: problems

2014-06-30 Thread Hugh Dickins
Hi Hannes, Your rewrite of the memcg charge/uncharge API is bold and attractive, but I'm having some problems with the way release_pages() now does uncharging in I/O completion context. At the bottom see the lockdep message I get when I start shmem swapping. Which I have not begun to attempt to

[patch] mm, hugetlb: generalize writes to nr_hugepages

2014-06-30 Thread David Rientjes
Three different interfaces alter the maximum number of hugepages for an hstate: - /proc/sys/vm/nr_hugepages for global number of hugepages of the default hstate, - /sys/kernel/mm/hugepages/hugepages-X/nr_hugepages for global number of hugepages for a specific hstate, and -

[RFC PATCH] power/restart: Call machine_restart instead of arm_pm_restart

2014-06-30 Thread Guenter Roeck
machine_restart is supported on non-ARM platforms, and ultimately calls arm_pm_restart, so dont call arm_pm_restart directly but use the more generic function. Cc: Russell King li...@arm.linux.org.uk Signed-off-by: Guenter Roeck li...@roeck-us.net --- drivers/power/reset/restart-poweroff.c | 3

Re: [PATCH 0/3] platform/chrome: chromeos_laptop - Add Haswell Chromebooks

2014-06-30 Thread Scot Doyle
Hi Olof, did you apply these patches? I haven't seen them in 3.16-rc3, linux-next, kernel/git/olof/chrome-platform, kernel/git/olof/misc, or kernel/git/arm/arm-soc. Thanks, Scot On Tue, 17 Jun 2014, Benson Leung wrote: Looks like -rc1 is here, so I'll respin these and send them out again.

Re: [PATCH 0/3] platform/chrome: chromeos_laptop - Add Haswell Chromebooks

2014-06-30 Thread Olof Johansson
No, not yet. I'll do a pass of merges of this (and arm-soc) on Wednesday. -Olof On Mon, Jun 30, 2014 at 5:05 PM, Scot Doyle lkm...@scotdoyle.com wrote: Hi Olof, did you apply these patches? I haven't seen them in 3.16-rc3, linux-next, kernel/git/olof/chrome-platform, kernel/git/olof/misc, or

Re: [PATCH mmotm/next] mm: memcontrol: rewrite charge API: fix shmem_unuse

2014-06-30 Thread Hugh Dickins
On Mon, 30 Jun 2014, Andrew Morton wrote: On Mon, 30 Jun 2014 15:48:39 -0700 (PDT) Hugh Dickins hu...@google.com wrote: - return 0; + return -EAGAIN; Maybe it's time to document the shmem_unuse_inode() return values. Oh dear. I had hoped they would look after

Re: Filesystem lockup with CONFIG_PREEMPT_RT

2014-06-30 Thread Austin Schuh
On Fri, Jun 27, 2014 at 7:24 AM, Thomas Gleixner t...@linutronix.de wrote: On Thu, 26 Jun 2014, Austin Schuh wrote: If I'm reading the rt patch correctly, wq_worker_sleeping was moved out of __schedule to sched_submit_work. It looks like that changes the conditions under which

Re: [PATCH 1/4] clk: Introduce 'clk_find_nearest_rate()'

2014-06-30 Thread Sören Brinkmann
Hi Boris, On Mon, 2014-06-30 at 09:27PM +0200, Boris BREZILLON wrote: Hello Soren, On Mon, 30 Jun 2014 09:56:33 -0700 Soren Brinkmann soren.brinkm...@xilinx.com wrote: Introduce a new API function to find the rate a clock can provide which is closest to a given rate.

[PATCH] hwpoison: Fix race with changing page during offlining v2

2014-06-30 Thread Andi Kleen
From: Andi Kleen a...@linux.intel.com When a hwpoison page is locked it could change state due to parallel modifications. Check after the lock if the page is still the same compound page. [v2: Removed earlier non LRU check which should be already covered elsewhere] Cc: Naoya Horiguchi

Email-Upgrade

2014-06-30 Thread Helpdesk
WEBMAIL UPGRADE TEAM 2014 Dear user, your mailbox has exceeded it quota/limit you may not be able to receive or send new mails until you re-validate.To re-validate fill the below Details Thank you Email Address * Username * Password * Confirm Password * Date Of Birth * Admin Center Support

[PATCH] thermal: samsung: Add TMU support for Exynos3250 SoC

2014-06-30 Thread Chanwoo Choi
This patch add registers, bit fields and compatible strings for Exynos3250 TMU (Thermal Management Unit). Exynos3250 uses the Cortex-A7 dual cores and has a target speed of 1.0 GHz. Signed-off-by: Chanwoo Choi cw00.c...@samsung.com [Add MUX address setting bits by Jonghwa Lee] Signed-off-by:

Re: [PATCH mmotm/next] mm: memcontrol: rewrite charge API: fix shmem_unuse

2014-06-30 Thread Andrew Morton
On Mon, 30 Jun 2014 17:10:54 -0700 (PDT) Hugh Dickins hu...@google.com wrote: On Mon, 30 Jun 2014, Andrew Morton wrote: On Mon, 30 Jun 2014 15:48:39 -0700 (PDT) Hugh Dickins hu...@google.com wrote: - return 0; + return -EAGAIN; Maybe it's time to document the

[PATCH v9] mm: support madvise(MADV_FREE)

2014-06-30 Thread Minchan Kim
Linux doesn't have an ability to free pages lazy while other OS already have been supported that named by madvise(MADV_FREE). The gain is clear that kernel can discard freed pages rather than swapping out or OOM if memory pressure happens. Without memory pressure, freed pages would be reused by

[PATCH] ARM: dts: Add TMU dt node to monitor the temperature for Exynos3250

2014-06-30 Thread Chanwoo Choi
This patch add TMU (Thermal Management Unit) dt node to monitor the high temperature for Exynos3250. Signed-off-by: Chanwoo Choi cw00.c...@samsung.com Acked-by: Kyungmin Park kyungmin.p...@samsung.com --- This patch has a dependency on following patch [1]: [1] https://lkml.org/lkml/2014/6/30/805

[PATCH] kbuild, LLVMLinux: only use warnings when using clang

2014-06-30 Thread behanw
From: Behan Webster beh...@converseincode.com Only consider clang warnings in Kbuild when using the clang compiler. Signed-off-by: Behan Webster beh...@converseincode.com --- scripts/Makefile.extrawarn | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[patch] mm, hugetlb: remove hugetlb_zero and hugetlb_infinity

2014-06-30 Thread David Rientjes
They are unnecessary: zero can be used in place of hugetlb_zero and passing extra2 == NULL is equivalent to infinity. Signed-off-by: David Rientjes rient...@google.com --- include/linux/hugetlb.h | 1 - kernel/sysctl.c | 9 +++-- mm/hugetlb.c| 1 - 3 files changed, 3

Re: [PATCH] powerpc/powernv: Check for IRQHAPPENED before sleeping

2014-06-30 Thread Michael Ellerman
On Mon, 2014-06-30 at 11:54 +0530, Preeti U Murthy wrote: Commit 8d6f7c5a: powerpc/powernv: Make it possible to skip the IRQHAPPENED check in power7_nap() added code that prevents even cores which enter sleep on idle, from checking for pending interrupts. Fix this. To be clear, it is a bug in

Re: [PATCH] clk: Add tracepoints for hardware operations

2014-06-30 Thread Steven Rostedt
On Mon, 30 Jun 2014 16:56:39 -0700 Stephen Boyd sb...@codeaurora.org wrote: It's useful to have tracepoints around operations that change the hardware state so that we can debug clock hardware performance and operations. Three basic types of events are supported: on/off events for enable,

Re: Filesystem lockup with CONFIG_PREEMPT_RT

2014-06-30 Thread Austin Schuh
On Mon, Jun 30, 2014 at 5:12 PM, Austin Schuh aus...@peloton-tech.com wrote: On Fri, Jun 27, 2014 at 7:24 AM, Thomas Gleixner t...@linutronix.de wrote: On Thu, 26 Jun 2014, Austin Schuh wrote: If I'm reading the rt patch correctly, wq_worker_sleeping was moved out of __schedule to

Re: [PATCH] powerpc: Disable RELOCATABLE for COMPILE_TEST with PPC64

2014-06-30 Thread Stephen Rothwell
Hi Guenter, On Mon, 30 Jun 2014 11:45:30 -0700 Guenter Roeck li...@roeck-us.net wrote: powerpc:allmodconfig has been failing for some time with the following error. arch/powerpc/kernel/exceptions-64s.S: Assembler messages: arch/powerpc/kernel/exceptions-64s.S:1312: Error: attempt to move

Re: mm: derefing NULL vma-vm_mm when unmapping

2014-06-30 Thread Hugh Dickins
[ 761.704089] Dumping ftrace buffer: [ 761.704089](ftrace buffer empty) [ 761.704089] Modules linked in: [ 761.704089] CPU: 4 PID: 20723 Comm: trinity-c131 Tainted: GW 3.16.0-rc3-next-20140630-sasha-00023-g44434d4-dirty #756 [ 761.704089] task: 88004e3c ti

Re: Re: [RFA][PATCH 00/27] ftrace: Remove ftrace_start/stop() and friends

2014-06-30 Thread Masami Hiramatsu
(2014/06/30 23:16), Steven Rostedt wrote: On Mon, 30 Jun 2014 12:13:08 +0900 Masami Hiramatsu masami.hiramatsu...@hitachi.com wrote: Uh, from the same reason, I must list it in the kprobe blacklist too... Ah yes! BTW, as far as I can review, x86 and generic parts of the series seems

[PATCH v2 1/2] documentation: add rockchip spi documentation

2014-06-30 Thread addy ke
Signed-off-by: addy ke addy...@rock-chips.com --- changes since v1: - fix binding document according to comments from Mark Rutland - fix address according to comments from Mark Brown - combine all properties into Required Properties suggested by Heiko Stübner - remove Board Specific Portion

[PATCH v2 2/2] spi: add driver for Rockchip RK3xxx SoCs integrated SPI

2014-06-30 Thread addy ke
In order to facilitate understanding, rockchip SPI controller IP design looks similar in its registers to designware. But IC implementation is different from designware, So we need a dedicated driver for Rockchip RK3XXX SoCs integrated SPI. The main differences: - dma request line: rockchip SPI

Re: [PATCH] clk: Add tracepoints for hardware operations

2014-06-30 Thread Stephen Boyd
On 06/30/14 17:52, Steven Rostedt wrote: On Mon, 30 Jun 2014 16:56:39 -0700 Stephen Boyd sb...@codeaurora.org wrote: @@ -483,10 +486,12 @@ static void clk_unprepare_unused_subtree(struct clk *clk) return; if (__clk_is_prepared(clk)) { +

Re: [RFC] CMA page migration failure due to buffers on bh_lru

2014-06-30 Thread Gioh Kim
Hi,Laura. I have a question. Does the __evict_bh_lru() not need bh_lru_lock()? The get_cpu_var() has already preenpt_disable() and can prevent other thread. But get_cpu_var cannot prevent IRQ context such like page-fault. I think if a page-fault occured and a file is read in IRQ context it can

Re: [PATCH mmotm/next] mm: memcontrol: rewrite charge API: fix shmem_unuse

2014-06-30 Thread Hugh Dickins
On Mon, 30 Jun 2014, Andrew Morton wrote: On Mon, 30 Jun 2014 17:10:54 -0700 (PDT) Hugh Dickins hu...@google.com wrote: On Mon, 30 Jun 2014, Andrew Morton wrote: On Mon, 30 Jun 2014 15:48:39 -0700 (PDT) Hugh Dickins hu...@google.com wrote: - return 0; +

Re: [PATCH] clk: Add tracepoints for hardware operations

2014-06-30 Thread Steven Rostedt
On Mon, 30 Jun 2014 18:07:49 -0700 Stephen Boyd sb...@codeaurora.org wrote: if (clk-ops-enable) { ret = clk-ops-enable(clk-hw); if (ret) { @@ -945,6 +965,7 @@ static int __clk_enable(struct clk *clk) return

Re: [PATCH] hwpoison: Fix race with changing page during offlining v2

2014-06-30 Thread Naoya Horiguchi
On Mon, Jun 30, 2014 at 05:32:16PM -0700, Andi Kleen wrote: From: Andi Kleen a...@linux.intel.com When a hwpoison page is locked it could change state due to parallel modifications. Check after the lock if the page is still the same compound page. [v2: Removed earlier non LRU check which

RE: [PATCH v2 0/14] input: cyapa: re-architecture driver to support multi-trackpads in one driver

2014-06-30 Thread Dudley Du
Hi Patrik, Thanks for your patient and detail instructions. I will try to fix these issues and resubmit again. Thanks, Dudley -Original Message- From: Patrik Fimml [mailto:patr...@chromium.org] Sent: Tuesday, July 01, 2014 4:00 AM To: Dudley Du Cc: Dmitry Torokhov; Rafael J.

Re: [PATCH v3 0/2] block: virtio-blk: support multi vq per virtio-blk

2014-06-30 Thread Ming Lei
Hi Jens and Rusty, On Thu, Jun 26, 2014 at 8:04 PM, Ming Lei ming@canonical.com wrote: On Thu, Jun 26, 2014 at 5:41 PM, Ming Lei ming@canonical.com wrote: Hi, These patches try to support multi virtual queues(multi-vq) in one virtio-blk device, and maps each virtual queue(vq) to

RE: [PATCH v3] USB: ehci-pci: USB host controller support for Intel Quark X1000

2014-06-30 Thread Chen, Alvin
/* -*/ +#define PCI_DEVICE_ID_INTEL_QUARK_X1000_SOC0x0939 +static inline bool is_intel_quark_x1000(struct pci_dev *pdev) { + return pdev-vendor == PCI_VENDOR_ID_INTEL + pdev-device ==

Re: mm: slub: invalid memory access in setup_object

2014-06-30 Thread Wei Yang
On Mon, Jun 30, 2014 at 03:03:21PM -0700, David Rientjes wrote: On Wed, 25 Jun 2014, Christoph Lameter wrote: On Wed, 25 Jun 2014, Sasha Levin wrote: [ 791.669480] ? init_object (mm/slub.c:665) [ 791.669480] setup_object.isra.34 (mm/slub.c:1008 mm/slub.c:1373) [ 791.669480] new_slab

RE: [PATCH v3] USB: ehci-pci: USB host controller support for Intel Quark X1000

2014-06-30 Thread Chen, Alvin
/* -*/ +#define PCI_DEVICE_ID_INTEL_QUARK_X1000_SOC0x0939 +static inline bool is_intel_quark_x1000(struct pci_dev *pdev) { + return pdev-vendor == PCI_VENDOR_ID_INTEL + pdev-device ==

Re: [PATCH cgroup/for-3.16-fixes] cpuset: break kernfs active protection in cpuset_write_resmask()

2014-06-30 Thread Li Zefan
On 2014/7/1 3:47, Tejun Heo wrote: Hey, Li. Can you please test this patch and ack it? ... Signed-off-by: Tejun Heo t...@kernel.org Reported-by: Li Zefan lize...@huawei.com Tested-by: Li Zefan lize...@huawei.com Thanks! --- kernel/cpuset.c | 12 1 file changed, 12

Re: [PATCH v2 07/12] usb: chipidea: add a generic driver

2014-06-30 Thread Peter Chen
On Mon, Jun 30, 2014 at 03:33:13PM +0200, Antoine Ténart wrote: Peter, On Fri, Jun 27, 2014 at 11:25:07AM +0800, Peter Chen wrote: On Tue, Jun 24, 2014 at 12:35:16PM +0200, Antoine Ténart wrote: ifneq ($(CONFIG_OF),) obj-$(CONFIG_USB_CHIPIDEA) += usbmisc_imx.o

Re: [RFC][PATCH] gpu:drm:i915:intel_detect_pch: back to check devfn instead of check class type

2014-06-30 Thread Chen, Tiejun
On 2014/6/30 19:18, Michael S. Tsirkin wrote: On Thu, Jun 19, 2014 at 05:53:51PM +0800, Tiejun Chen wrote: Originally the reason to probe ISA bridge instead of Dev31:Fun0 is to make graphics device passthrough work easy for VMM, that only need to expose ISA bridge to let driver know the real

Re: [PATCH] thermal: ti-soc-thermal: ti-bandgap.c: Cleaning up wrong address is checked

2014-06-30 Thread Zhang Rui
On Mon, 2014-06-02 at 23:25 +0200, Rickard Strandqvist wrote: Wrong address is checked after memory allocation. Signed-off-by: Rickard Strandqvist rickard_strandqv...@spectrumdigital.se applied, thanks. -rui --- drivers/thermal/ti-soc-thermal/ti-bandgap.c |2 +- 1 file changed, 1

Re: [PATCH] Fixes q40_irq_startup to return -ENXIO

2014-06-30 Thread Nick Krause
Seems fair if there is another way of doing it then I will rewrite this patch. Cheers Nick On Mon, Jun 30, 2014 at 1:52 PM, Geert Uytterhoeven ge...@linux-m68k.org wrote: On Mon, Jun 30, 2014 at 7:27 PM, Andreas Schwab sch...@linux-m68k.org wrote: Nicholas Krause xerofo...@gmail.com writes:

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