Re: [RFC PATCH 00/12] mm: mirrored memory support for page buddy allocations

2015-06-17 Thread Vlastimil Babka
On 18.6.2015 3:23, Xishi Qiu wrote: > On 2015/6/16 17:46, Vlastimil Babka wrote: > >> On 06/16/2015 10:17 AM, Xishi Qiu wrote: >>> On 2015/6/16 15:53, Vlastimil Babka wrote: >>> On 06/04/2015 02:54 PM, Xishi Qiu wrote: > > I think add a new migratetype is btter and easier than a new

Re: [PATCH v2 1/1] perf tools: Check access permission when reading /proc/kcore file.

2015-06-17 Thread Sukadev Bhattiprolu
Li Zhang [zhlci...@linux.vnet.ibm.com] wrote: | >For consistency with rest of the file, use pr_warning() or pr_err(). | | ui_warning can report the message to users directly when this | program is running. | But if we considered the consistency, pr_warning or pr_err should be better. | And users

Re: [PATCH 1/1] scsi: use kzalloc for allocating one thing

2015-06-17 Thread Hannes Reinecke
On 06/18/2015 06:36 AM, Maninder Singh wrote: > Use kzalloc rather than kcalloc(1,...) for allocating one thing > > Signed-off-by: Maninder Singh > Reviewed-by: Vaneet Narang > --- > drivers/scsi/mvsas/mv_init.c |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git

[PATCH] pinctrl: simplify of_pinctrl_get()

2015-06-17 Thread Masahiro Yamada
This commit does not change the logic at all. Signed-off-by: Masahiro Yamada --- drivers/pinctrl/devicetree.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/pinctrl/devicetree.c b/drivers/pinctrl/devicetree.c index 0bbf7d7..fe04e74 100644 ---

Re: Panic when cpu hot-remove

2015-06-17 Thread Jiang Liu
On 2015/6/17 22:36, Alex Williamson wrote: > On Wed, 2015-06-17 at 13:52 +0200, Joerg Roedeljoro wrote: >> On Wed, Jun 17, 2015 at 10:42:49AM +, 范冬冬 wrote: >>> Hi maintainer, >>> >>> We found a problem that a panic happen when cpu was hot-removed. We also >>> trace the problem according to

[PATCH] arm64: dts: mt8173: add clock_null

2015-06-17 Thread Eddie Huang
Add clk_null, which represents clocks that can not / need not controlled by software. There are many clocks' parent set to clk_null. Signed-off-by: James Liao Signed-off-by: Eddie Huang --- Base on 4.1-rc1 Change-Id: I4db9b40d07e28f54f7bae9b676316cbd6a962124 ---

Re: [PATCH v4 01/11] block: make generic_make_request handle arbitrarily sized bios

2015-06-17 Thread Ming Lin
On Wed, Jun 10, 2015 at 2:46 PM, Mike Snitzer wrote: > On Wed, Jun 10 2015 at 5:20pm -0400, > Ming Lin wrote: > >> On Mon, Jun 8, 2015 at 11:09 PM, Ming Lin wrote: >> > On Thu, 2015-06-04 at 17:06 -0400, Mike Snitzer wrote: >> >> We need to test on large HW raid setups like a Netapp filer (or

[RFC][PATCH] arm64:Modify the dump mem for 64 bit addresses

2015-06-17 Thread Maninder Singh
From: Rohit Thapliyal On 64bit kernel, the dump_mem gives 32 bit addresses on the stack dump. This gives unorganized information regarding the 64bit values on the stack. Hence, modified to get a complete 64bit memory dump. With patch: Process insmod (pid: 1587, stack limit = 0xffc976be4058)

Re: [PATCH] Fixes: 9697dffb098d ("drm: Turn off Legacy Context Functions")

2015-06-17 Thread Daniel Vetter
On Wed, Jun 17, 2015 at 02:03:47PM -0600, Eddie Kovsky wrote: > Commit 9697dffb098d ("drm: Turn off Legacy Context Functions") > added checks for legacy features to several functions in the > drm driver. It is now possible for the void functions changed by > this commit to return an int error

[PATCH] NVMe: Fixed race between nvme_thread & probe path.

2015-06-17 Thread Parav Pandit
Kernel thread nvme_thread and driver load process can be executing in parallel on different CPU. This leads to race condition whenever nvme_alloc_queue() instructions are executed out of order that can reflects incorrect value for nvme_thread. Memory barrier in nvme_alloc_queue() ensures that it

[PATCH] cgroup: add documentation for the PIDs controller

2015-06-17 Thread Aleksa Sarai
The attached patch adds documentation concerning the PIDs controller. This should be applied alongside the rest of this patchset[1] (I'm not entirely sure what the kernel policy is for new patches that should be appended to an existing patchset). [1]: https://lkml.org/lkml/2015/6/9/320

Re: [PATCH v2 12/13] KVM: x86: add SMM to the MMU role, support SMRAM address space

2015-06-17 Thread Xiao Guangrong
On 06/17/2015 04:18 PM, Paolo Bonzini wrote: On 09/06/2015 06:01, Xiao Guangrong wrote: On 05/28/2015 01:05 AM, Paolo Bonzini wrote: This is now very simple to do. The only interesting part is a simple trick to find the right memslot in gfn_to_rmap, retrieving the address space from the

Re: [RFC v2 23/24] m68k/mac: Fix PRAM accessors

2015-06-17 Thread Finn Thain
Hi Geert, Further to my previous email, On Tue, 16 Jun 2015, in which I wrote: > > On Mon, 15 Jun 2015, Geert Uytterhoeven wrote: > > > > > More magic values... > > [...] The only useful RTC documentation I've ever come across is this: > http://mac.linux-m68k.org/devel/plushw.php This

Re: [PATCH v2 0/9] fix sm7xxfb

2015-06-17 Thread Greg Kroah-Hartman
On Wed, Jun 17, 2015 at 09:43:51PM -0700, Greg Kroah-Hartman wrote: > On Wed, Jun 17, 2015 at 04:54:39PM +0530, Sudip Mukherjee wrote: > > fixing the few remaining issues of sm7xxfb before sending the patch to > > remove it from staging. Oh, the BIG_ENDIAN defines need to be fixed up, surely that

Re: [PATCH v2 09/13] KVM: x86: pass kvm_mmu_page to gfn_to_rmap

2015-06-17 Thread Xiao Guangrong
On 06/17/2015 04:15 PM, Paolo Bonzini wrote: On 09/06/2015 05:28, Xiao Guangrong wrote: -rmapp = gfn_to_rmap(kvm, sp->gfn, PT_PAGE_TABLE_LEVEL); +slots = kvm_memslots(kvm); +slot = __gfn_to_memslot(slots, sp->gfn); +rmapp = __gfn_to_rmap(sp->gfn, PT_PAGE_TABLE_LEVEL, slot);

Re: [PATCH v2 0/9] fix sm7xxfb

2015-06-17 Thread Greg Kroah-Hartman
On Wed, Jun 17, 2015 at 04:54:39PM +0530, Sudip Mukherjee wrote: > fixing the few remaining issues of sm7xxfb before sending the patch to > remove it from staging. > Also attempted to setup a tree and all the patches of this series are > available there for you. > > > The following changes since

[PATCH 1/1] scsi: use kzalloc for allocating one thing

2015-06-17 Thread Maninder Singh
Use kzalloc rather than kcalloc(1,...) for allocating one thing Signed-off-by: Maninder Singh Reviewed-by: Vaneet Narang --- drivers/scsi/mvsas/mv_init.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/mvsas/mv_init.c b/drivers/scsi/mvsas/mv_init.c index

Re: [PATCH 1/8] of: overlay: Implement indirect target support

2015-06-17 Thread Guenter Roeck
On 06/17/2015 05:10 PM, Rob Herring wrote: On Fri, Jun 12, 2015 at 2:54 PM, Pantelis Antoniou wrote: Some applications require applying the same overlay to a different target according to some external condition (for instance depending on the slot a card has been inserted, the overlay target

Re: [PATCH RESEND] sched: prefer an idle cpu vs an idle sibling for BALANCE_WAKE

2015-06-17 Thread Mike Galbraith
On Wed, 2015-06-17 at 20:46 -0700, Josef Bacik wrote: > On 06/17/2015 05:55 PM, Mike Galbraith wrote: > > On Wed, 2015-06-17 at 11:06 -0700, Josef Bacik wrote: > >> On 06/11/2015 10:35 PM, Mike Galbraith wrote: > >>> On Thu, 2015-05-28 at 13:05 +0200, Peter Zijlstra wrote: > > > >>> If sd == NULL,

Re: [PATCH v2 0/7] staging: board: armadillo800eva: Board staging for sh_mobile_lcdc_fb

2015-06-17 Thread Simon Horman
g tree, the last one > through the shmobile tree. > > Major changes since v1 (more detailed changelogs in the individual > patches): > - Add support for low/high edge/level interrupts in hwirq translation, > - Move pinctrl and GPIO configuration from board staging code to DT, >

[RFC PATCH V2 07/10] arm64: Handle TRAP_BRKPT for user mode as well

2015-06-17 Thread Pratyush Anand
uprobe is registered at break_hook with a unique ESR code. So, when a TRAP_BRKPT occurs, call_break_hook checks if it was for uprobe. If not, then send a SIGTRAP to user. Signed-off-by: Pratyush Anand --- arch/arm64/kernel/debug-monitors.c | 23 +-- 1 file changed, 13

[RFC PATCH V2 08/10] arm64: rename enum debug_el to enum debug_elx to fix "wrong kind of tag"

2015-06-17 Thread Pratyush Anand
asm/debug-monitors.h contains definition for debug opcode. So, it will be needed by asm/uprobes.h. With enum debug_el it generates following compilation error, since asm/uprobes.h is included. lib/list_sort.c:160:8: error: ‘debug_el’ defined as wrong kind of tag struct debug_el { Therefore

[RFC PATCH V2 05/10] arm64: Re-factor flush_ptrace_access

2015-06-17 Thread Pratyush Anand
Re-factor flush_ptrace_access to reuse vma independent part, which is needed for functions like arch_uprobe_copy_ixol where we do not have a vma. Signed-off-by: Pratyush Anand --- arch/arm64/mm/flush.c | 24 +++- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git

[RFC PATCH V2 06/10] arm64: Handle TRAP_HWBRKPT for user mode as well

2015-06-17 Thread Pratyush Anand
uprobe registers a handler at step_hook. So, single_step_handler now checks for user mode as well if there is a valid hook. Signed-off-by: Pratyush Anand --- arch/arm64/kernel/debug-monitors.c | 32 +++- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git

[RFC PATCH V2 09/10] arm64: Add uprobe support

2015-06-17 Thread Pratyush Anand
This patch adds support for uprobe on ARM64 architecture. Unit test for following has been done so far and they have been found working 1. Step-able instructions, like sub, ldr, add etc. 2. Simulation-able like ret. 3. uretprobe 4. Reject-able instructions like sev, wfe etc. 5. trapped and abort

[RFC PATCH V2 04/10] arm64: Add helper for link pointer

2015-06-17 Thread Pratyush Anand
At many a place we program procedure link pointer ie regs[30]. So adding helper to do that. Signed-off-by: Pratyush Anand --- arch/arm64/include/asm/ptrace.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/include/asm/ptrace.h b/arch/arm64/include/asm/ptrace.h index

[RFC PATCH V2 10/10] arm64: uprobes: check conditions before simulating instructions

2015-06-17 Thread Pratyush Anand
From: Steve Capper Currently uprobes just simulates any instruction that it can't in place execute. This can lead to unpredictable behaviour if the execution condition fails and the instruction wouldn't otherwise have been executed. This patch adds the condition check Signed-off-by: Steve

[RFC PATCH V2 03/10] arm64: include asm-generic/ptrace.h in asm/ptrace.h

2015-06-17 Thread Pratyush Anand
instruction_pointer_set is needed for uprobe implementation. asm-generic/ptrace.h already defines it. So include it in asm/ptrace.h. But inclusion of asm-generic/ptrace.h, needs definition of GET_USP, SET_USP, GET_FP & SET_FP as they are different than the generic definition. So, define them in

[RFC PATCH V2 01/10] arm64: kprobe: Make prepare and handler function independent of 'struct kprobe'

2015-06-17 Thread Pratyush Anand
prepare and handler function will also be used by uprobe. So, make them struct kprobe independent. Signed-off-by: Pratyush Anand --- arch/arm64/include/asm/probes.h | 5 +++-- arch/arm64/kernel/kprobes-arm64.c | 33 + arch/arm64/kernel/kprobes.c | 7

[RFC PATCH V2 02/10] arm64: fix kgdb_step_brk_fn to ignore other's exception

2015-06-17 Thread Pratyush Anand
ARM64 step exception does not have any syndrome information. So, it is responsibility of exception handler to take care that they handle it only if exception was raised for them. After kprobe support, both kprobe and kgdb uses register_step_hook mechanism to register its step handler. So, if

[RFC PATCH V2 00/10] ARM64: Uprobe support added

2015-06-17 Thread Pratyush Anand
These patches have been prepared on top of ARM64 kprobe v7 patches [1]. Keeping as RFC, because kprobe-v7 still need to be ACKed. Unit test for following has been done so far and they have been found working 1. Step-able instructions, like sub, ldr, add etc. 2. Simulation-able like ret.

Re: [PATCH v3] watchdog: bcm2835: Fix poweroff behaviour

2015-06-17 Thread Guenter Roeck
On 06/17/2015 07:04 AM, Noralf Trønnes wrote: Currently poweroff/halt results in a reboot on the Raspberry Pi. The firmware uses the RSTS register to know which partiton to boot from. The partiton value is spread into bits 0, 2, 4, 6, 8, 10. Partiton 63 is a special partition used by the

Re: [RFC][PATCHv2 8/8] zsmalloc: register a shrinker to trigger auto-compaction

2015-06-17 Thread Sergey Senozhatsky
On (06/18/15 12:39), Minchan Kim wrote: [..] > > ah, I see. > > it doesn't hold the lock `until all the pages are done`. it holds it > > as long as zs_can_compact() returns > 0. hm, I'm not entirely sure that > > this patch set has increased the locking time (in average). > > I see your point.

RE: [PATCH v3 1/6] hv: Modify vmbus to search for all MMIO ranges available

2015-06-17 Thread KY Srinivasan
> -Original Message- > From: gre...@linuxfoundation.org [mailto:gre...@linuxfoundation.org] > Sent: Wednesday, June 17, 2015 12:11 PM > To: Jake Oshins > Cc: Vitaly Kuznetsov; KY Srinivasan; linux-kernel@vger.kernel.org; > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com;

Re: [PATCH RESEND] sched: prefer an idle cpu vs an idle sibling for BALANCE_WAKE

2015-06-17 Thread Josef Bacik
On 06/17/2015 05:55 PM, Mike Galbraith wrote: On Wed, 2015-06-17 at 11:06 -0700, Josef Bacik wrote: On 06/11/2015 10:35 PM, Mike Galbraith wrote: On Thu, 2015-05-28 at 13:05 +0200, Peter Zijlstra wrote: If sd == NULL, we fall through and try to pull wakee despite nacked-by

Re: [RFC][PATCHv2 8/8] zsmalloc: register a shrinker to trigger auto-compaction

2015-06-17 Thread Minchan Kim
On Thu, Jun 18, 2015 at 12:01:36PM +0900, Sergey Senozhatsky wrote: > On (06/18/15 11:41), Sergey Senozhatsky wrote: > [..] > > > My concern is not a compacion overhead but higher memory footprint > > > consumed by zram in reserved memory. > > > It might hang system if zram used up reserved memory

Crypto Fixes for 4.1

2015-06-17 Thread Herbert Xu
Hi Linus: This push fixes the following issues: 1) Crash in caam hash due to uninitialised buffer lengths. 2) Alignment issue in caam RNG that may lead to non-random output. Please pull from git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6.git Steve Cornelius (2):

Re: [RFC][PATCHv2 8/8] zsmalloc: register a shrinker to trigger auto-compaction

2015-06-17 Thread Minchan Kim
On Thu, Jun 18, 2015 at 11:41:07AM +0900, Sergey Senozhatsky wrote: > Hi, > > On (06/18/15 10:50), Minchan Kim wrote: > [..] > > > hm, what's the difference with the existing implementation? > > > The 'new one' aborts when (a) !zs_can_compact() and (b) !migrate_zspage(). > > > It holds the class

[PATCH 4/6] ARM: Mediatek: enable GPT6 on boot up to make arch timer working for MT6580

2015-06-17 Thread Scott Shu
We enable GTP6 which ungates the arch timer clock. --- arch/arm/mach-mediatek/mediatek.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-mediatek/mediatek.c b/arch/arm/mach-mediatek/mediatek.c index 6b38d67..469d332 100644 ---

[PATCH 2/6] soc: Mediatek: Add SCPSYS CPU power domain driver

2015-06-17 Thread Scott Shu
This adds a CPU power domain driver for the Mediatek SCPSYS unit on MT6580. --- arch/arm/mach-mediatek/Makefile | 2 +- arch/arm/mach-mediatek/generic.h | 24 + arch/arm/mach-mediatek/hotplug.c | 228 +++ 3 files changed, 253 insertions(+), 1

[PATCH 6/6] ARM: dts: mt6580: enable basic SMP bringup for mt6580

2015-06-17 Thread Scott Shu
Add arch timer node to enable arch-timer support. MT6580 firmware doesn't correctly setup arch-timer frequency and CNTVOFF, add properties to workaround this. This set cpu enable-method to enable SMP. --- arch/arm/boot/dts/mt6580.dtsi | 20 1 file changed, 20 insertions(+)

[PATCH 1/6] Document: bindings: DT: Add SMP enable method for MT6580 SoC platform

2015-06-17 Thread Scott Shu
For MT6580 SoC platform, the secondary cores are in powered off state as default, so compared with MT65xx series SoC, one new enable method is needed. This method using the SPM (System Power Manager) inside the SCYSYS to control the CPU power. --- Documentation/devicetree/bindings/arm/cpus.txt |

[PATCH 5/6] ARM: dts: mt6580: Add device nodes to the MT6580 dtsi file

2015-06-17 Thread Scott Shu
This adds the SCPSYS device node to the MT6580 dtsi file. --- arch/arm/boot/dts/mt6580.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/mt6580.dtsi b/arch/arm/boot/dts/mt6580.dtsi index ae3cdb6..a974830 100644 --- a/arch/arm/boot/dts/mt6580.dtsi +++

[PATCH 3/6] ARM: mediatek: add smp bringup code for MT6580

2015-06-17 Thread Scott Shu
Add support for cpu enable-method "mediatek,mt6580-smp" for booting secondary CPUs on MT6580. --- arch/arm/mach-mediatek/platsmp.c | 107 +++ 1 file changed, 107 insertions(+) diff --git a/arch/arm/mach-mediatek/platsmp.c b/arch/arm/mach-mediatek/platsmp.c

[PATCH 0/6] This series adds SMP support for the MediaTek MT6580.

2015-06-17 Thread Scott Shu
This patchset adds support SMP on MediaTek MT6580 Cortex-A7 qual core SoC. This is based on v4.1-rc1 and following patch series: (1) Yingjoe Chen's "Add SMP bringup support for mt65xx socs" [1] (2) Mars Cheng's "Add mt6580 basic chip support" [2] (3) Sascha Hauer's "Mediatek SCPSYS power domain

Re: [PATCH v2 1/1] perf tools: Check access permission when reading /proc/kcore file.

2015-06-17 Thread Li Zhang
On 2015年06月17日 14:09, Sukadev Bhattiprolu wrote: Li Zhang [zhlci...@linux.vnet.ibm.com] wrote: | When using command perf report --kallsyms=/proc/kallsyms with a non-root | user, symbols are resolved. Then select one symbol and annotate it, it | reports the error as the following: | Can't

Re: [Intel-gfx] [BUG, bisect] Re: drm/i915: WARN_ON(dev_priv->mm.busy)

2015-06-17 Thread Jeremiah Mahler
Jani, On Mon, Jun 15, 2015 at 02:40:42PM +0300, Jani Nikula wrote: > On Mon, 15 Jun 2015, Ville Syrjälä wrote: > > On Mon, Jun 15, 2015 at 01:25:38AM -0700, Jeremiah Mahler wrote: > >> Daniel, > >> > >> On Mon, Jun 15, 2015 at 08:57:47AM +0200, Daniel Vetter wrote: > >> > Can you please retest

Re: Suspicious RCU usage at boot w/ arm ipi trace events?

2015-06-17 Thread Steven Rostedt
On Wed, 17 Jun 2015 18:49:38 -0700 Stephen Boyd wrote: > From: Stephen Boyd > Subject: [PATCH] ARM: smp: Silence suspicious RCU usage with ipi tracepoints > > John Stultz reports an RCU splat on boot with ARM ipi trace > events enabled. > > === > [ INFO: suspicious

[lkp] [drm/i915] 2def4ad99be: +182.8% piglit.time.system_time

2015-06-17 Thread Huang Ying
FYI, we noticed the below changes on git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master commit 2def4ad99befa25775dd2f714fdd4d92faec6e34 ("drm/i915: Optimistically spin for the request completion")

[lkp] [jbd2] de92c8caf16: no primary result change, +270.9% vmstat.procs.b, -61.0% vmstat.procs.r

2015-06-17 Thread Huang Ying
FYI, we noticed the below changes on git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master commit de92c8caf16ca84926fa31b7a5590c0fb9c0d5ca ("jbd2: speedup jbd2_journal_get_[write|undo]_access()") It appears that more processes are put in uninterruptible state after the

Re: [PATCH 3.4 000/172] 3.4.108-rc1 review

2015-06-17 Thread Zefan Li
On 2015/6/16 23:13, Ian Campbell wrote: > On Tue, 2015-06-16 at 16:33 +0800, l...@kernel.org wrote: >> From: Zefan Li >> >> This is the start of the stable review cycle for the 3.4.108 release. >> There are 172 patches in this series, all will be posted as a response >> to this one. If anyone

Re: [PATCH 3.4 035/172] ALSA: hdspm - Constrain periods to 2 on older cards

2015-06-17 Thread Zefan Li
>> @@ -6042,6 +6042,12 @@ static int snd_hdspm_capture_open(struct >> snd_pcm_substream *substream) >> snd_pcm_hw_constraint_minmax(runtime, >> SNDRV_PCM_HW_PARAM_PERIOD_SIZE, >> 64, 8192); >> +

Re: [PATCH 3.4 000/172] 3.4.108-rc1 review

2015-06-17 Thread Zefan Li
On 2015/6/16 16:49, Guenter Roeck wrote: > On 06/16/2015 01:33 AM, l...@kernel.org wrote: >> From: Zefan Li >> >> This is the start of the stable review cycle for the 3.4.108 release. >> There are 172 patches in this series, all will be posted as a response >> to this one. If anyone has any

Re: [PATCH 3/4] cgroup: require write perm on common ancestor when moving processes on the default hierarchy

2015-06-17 Thread Zefan Li
Hi Tejun, > -static int cgroup_procs_write_permission(struct task_struct *task) > +static int cgroup_procs_write_permission(struct task_struct *task, > + struct cgroup *dst_cgrp, > + struct kernfs_open_file *of) > { >

Re: [REGRESSION] NFS is creating a hidden port (left over from xs_bind() )

2015-06-17 Thread Steven Rostedt
On Fri, 12 Jun 2015 11:50:38 -0400 Steven Rostedt wrote: > I reverted the following commits: > > c627d31ba0696cbd829437af2be2f2dee3546b1e > 9e2b9f37760e129cee053cc7b6e7288acc2a7134 > caf4ccd4e88cf2795c927834bc488c8321437586 > > And the issue goes away. That is, I watched the port go from >

Re: [RFC][PATCHv2 8/8] zsmalloc: register a shrinker to trigger auto-compaction

2015-06-17 Thread Sergey Senozhatsky
On (06/18/15 11:41), Sergey Senozhatsky wrote: [..] > > My concern is not a compacion overhead but higher memory footprint > > consumed by zram in reserved memory. > > It might hang system if zram used up reserved memory of system with > > ALLOC_NO_WATERMARKS. With auto-compaction, userspace has a

Re: [PATCH] tipc:Make the function tipc_buf_append have a return type of bool

2015-06-17 Thread Ying Xue
On 06/18/2015 10:44 AM, Nicholas Krause wrote: > This converts the function tipc_buf_append now due to this > particular function only returning either one or zero as > its return value. > > Signed-off-by: Nicholas Krause Acked-by: Ying Xue > --- > net/tipc/msg.c | 12 ++-- >

Re: [Resend PATCH v8 0/4] sched: Rewrite runnable load and utilization average tracking

2015-06-17 Thread Yuyang Du
On Wed, Jun 17, 2015 at 09:06:17PM +0800, Boqun Feng wrote: > > > So the problem is: > > > > 1) The tasks in the workload have too small weight (only 79), because > >they share a task group. > > > > 2) Probably some "high" weight task even runnable a small time > >contribute "big" to

Re: [PATCH] drm: bridge/dw_hdmi: Filter modes > 165MHz for DVI

2015-06-17 Thread Doug Anderson
Russell, On Wed, Jun 17, 2015 at 4:30 PM, Russell King - ARM Linux wrote: > On Wed, Jun 17, 2015 at 04:14:07PM -0700, Doug Anderson wrote: >> If you plug in a DVI monitor to your HDMI port, you need to filter out >> clocks > 165MHz. That's because 165MHz is the maximum clock rate that >> we can

[PATCH v2] perf probe: Fix failure to probe events on arm

2015-06-17 Thread He Kuang
Fix failure to probe events on arm, problem is introduced by commit 5a51fcd1f30c ("perf probe: Skip kernel symbols which is out of .text"). For some architectures, label '_etext' is not in the .text section(in .notes section for arm/arm64). Label out of .text section is not loaded as symbols and

Re: [RFC][PATCHv2 8/8] zsmalloc: register a shrinker to trigger auto-compaction

2015-06-17 Thread Sergey Senozhatsky
Hi, On (06/18/15 10:50), Minchan Kim wrote: [..] > > hm, what's the difference with the existing implementation? > > The 'new one' aborts when (a) !zs_can_compact() and (b) !migrate_zspage(). > > It holds the class lock less time than current compaction. > > At old, it unlocks periodically(ie,

Re: Suspicious RCU usage at boot w/ arm ipi trace events?

2015-06-17 Thread Paul E. McKenney
On Wed, Jun 17, 2015 at 06:49:38PM -0700, Stephen Boyd wrote: > On 06/16/2015 09:46 PM, Paul E. McKenney wrote: > > On Tue, Jun 16, 2015 at 05:41:29PM -0700, Stephen Boyd wrote: > >> > >> The tracepoint 'trace_ipi_entry' in handle_IPI() is using RCU and we > >> haven't called irq_enter() yet at

Re: [PATCH] irqchip: bcm2835: Add FIQ support

2015-06-17 Thread Stephen Warren
On 06/12/2015 11:26 AM, Noralf Trønnes wrote: > Add a duplicate irq range with an offset on the hwirq's so the > driver can detect that enable_fiq() is used. > Tested with downstream dwc_otg USB controller driver. This basically looks OK, but a few comments/thoughts: a) Should the Kconfig change

[PATCH v4 0/2] locking/qrwlock: More optimizations in qrwlock

2015-06-17 Thread Waiman Long
v3->v4: - Remove the unnecessary _QW_WMASK check in queue_read_lock_slowpath(). v2->v3: - Fix incorrect commit log message in patch 1. v1->v2: - Add microbenchmark data for the second patch This patch set contains 2 patches on qrwlock. The first one is to optimize the interrupt context

[PATCH v4 2/2] locking/qrwlock: Don't contend with readers when setting _QW_WAITING

2015-06-17 Thread Waiman Long
The current cmpxchg() loop in setting the _QW_WAITING flag for writers in queue_write_lock_slowpath() will contend with incoming readers causing possibly extra cmpxchg() operations that are wasteful. This patch changes the code to do a byte cmpxchg() to eliminate contention with new readers. A

[PATCH v4 1/2] locking/qrwlock: Better optimization for interrupt context readers

2015-06-17 Thread Waiman Long
The qrwlock is fair in the process context, but becoming unfair when in the interrupt context to support use cases like the tasklist_lock. The current code isn't that well-documented on what happens when in the interrupt context. The rspin_until_writer_unlock() will only spin if the writer has

Re: [PATCH v3] watchdog: bcm2835: Fix poweroff behaviour

2015-06-17 Thread Stephen Warren
On 06/17/2015 08:04 AM, Noralf Trønnes wrote: > Currently poweroff/halt results in a reboot on the Raspberry Pi. > The firmware uses the RSTS register to know which partiton to > boot from. The partiton value is spread into bits > 0, 2, 4, 6, 8, 10. Partiton 63 is a special partition used by > the

Re: kexec_load(2) bypasses signature verification

2015-06-17 Thread Dave Young
On 06/18/15 at 09:16am, Dave Young wrote: > On 06/16/15 at 09:47pm, Vivek Goyal wrote: > > On Tue, Jun 16, 2015 at 08:32:37PM -0500, Eric W. Biederman wrote: > > > Vivek Goyal writes: > > > > > > > On Tue, Jun 16, 2015 at 02:38:31PM -0500, Eric W. Biederman wrote: > > > >> > > > >> Adding Vivek

Re: [PATCH] livepatch: add sysfs interface /sys/kernel/livepatch/state

2015-06-17 Thread Li Bin
On 2015/6/17 21:20, Miroslav Benes wrote: > On Wed, 17 Jun 2015, Li Bin wrote: > >> On 2015/6/17 16:13, Miroslav Benes wrote: >>> On Wed, 17 Jun 2015, Li Bin wrote: >> >>> The list of applied patches can be obtained just by 'ls >>> /sys/kernel/livepatch' and their state is in enabled attribute

Re: [RFC][PATCHv2 8/8] zsmalloc: register a shrinker to trigger auto-compaction

2015-06-17 Thread Minchan Kim
Hi Sergey, On Wed, Jun 17, 2015 at 12:45:29AM +0900, Sergey Senozhatsky wrote: > On (06/16/15 23:47), Minchan Kim wrote: > [..] > > > > > > Compaction now has a relatively quick pool scan so we are able to > > > estimate the number of pages that will be freed easily, which makes it > > >

Re: Suspicious RCU usage at boot w/ arm ipi trace events?

2015-06-17 Thread Stephen Boyd
On 06/16/2015 09:46 PM, Paul E. McKenney wrote: > On Tue, Jun 16, 2015 at 05:41:29PM -0700, Stephen Boyd wrote: >> >> The tracepoint 'trace_ipi_entry' in handle_IPI() is using RCU and we >> haven't called irq_enter() yet at the point. Does this tracepoint need >> to have _rcuidle() added to it? >

Re: [PATCH v7 05/14] crypto: marvell/CESA: add TDMA support

2015-06-17 Thread Herbert Xu
On Wed, Jun 17, 2015 at 05:34:02PM +0200, Boris Brezillon wrote: > > I can check for that too, but note that it doesn't prevent one from > providing different scatterlist structures pointing to the same memory > region. Pointing to the same memory should be fine, it's the act of passing the same

Re: [PATCH v7 05/14] crypto: marvell/CESA: add TDMA support

2015-06-17 Thread Herbert Xu
On Wed, Jun 17, 2015 at 05:58:28PM +0200, Boris Brezillon wrote: > > Here is an incremental patch [1], please let me know if something else > is missing. Looks good. Thanks! -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key:

Re: [PATCH v3 2/2] locking/qrwlock: Don't contend with readers when setting _QW_WAITING

2015-06-17 Thread Waiman Long
On 06/16/2015 02:02 PM, Will Deacon wrote: On Mon, Jun 15, 2015 at 11:24:03PM +0100, Waiman Long wrote: The current cmpxchg() loop in setting the _QW_WAITING flag for writers in queue_write_lock_slowpath() will contend with incoming readers causing possibly extra cmpxchg() operations that are

Re: [PATCH] mm: use srcu for shrinkers

2015-06-17 Thread Davidlohr Bueso
On Wed, 2015-06-17 at 09:47 +0200, Michal Hocko wrote: > On the other hand using srcu is a neat idea. Shrinkers only need the > existence guarantee when racing with unregister. Register even shouldn't > be that interesting because such a shrinker wouldn't have much to > shrink anyway so we can

Re: [PATCH v3 1/2] locking/qrwlock: Better optimization for interrupt context readers

2015-06-17 Thread Waiman Long
On 06/16/2015 08:17 AM, Will Deacon wrote: Hi Waiman, On Mon, Jun 15, 2015 at 11:24:02PM +0100, Waiman Long wrote: The qrwlock is fair in the process context, but becoming unfair when in the interrupt context to support use cases like the tasklist_lock. The current code isn't that

Re: kexec_load(2) bypasses signature verification

2015-06-17 Thread Dave Young
On 06/15/15 at 04:01pm, Theodore Ts'o wrote: > On Mon, Jun 15, 2015 at 09:37:05AM -0400, Josh Boyer wrote: > > The bits that actually read Secure Boot state out of the UEFI > > variables, and apply protections to the machine to avoid compromise > > under the SB threat model. Things like disabling

Re: [RFC PATCH 00/12] mm: mirrored memory support for page buddy allocations

2015-06-17 Thread Xishi Qiu
On 2015/6/16 17:46, Vlastimil Babka wrote: > On 06/16/2015 10:17 AM, Xishi Qiu wrote: >> On 2015/6/16 15:53, Vlastimil Babka wrote: >> >>> On 06/04/2015 02:54 PM, Xishi Qiu wrote: I think add a new migratetype is btter and easier than a new zone, so I use >>> >>> If the mirrored memory

Re: [RFC 3/4] mm, thp: try fault allocations only if we expect them to succeed

2015-06-17 Thread David Rientjes
On Mon, 11 May 2015, Vlastimil Babka wrote: > Since we track THP availability for khugepaged THP collapses, we can use it > also for page fault THP allocations. If khugepaged with its sync compaction > is not able to allocate a hugepage, then it's unlikely that the less involved > attempt on page

Re: kexec_load(2) bypasses signature verification

2015-06-17 Thread Dave Young
On 06/16/15 at 09:47pm, Vivek Goyal wrote: > On Tue, Jun 16, 2015 at 08:32:37PM -0500, Eric W. Biederman wrote: > > Vivek Goyal writes: > > > > > On Tue, Jun 16, 2015 at 02:38:31PM -0500, Eric W. Biederman wrote: > > >> > > >> Adding Vivek as he is the one who implemented kexec_file_load. > >

Re: [PATCH 01/44] kernel: Add support for poweroff handler call chain

2015-06-17 Thread Stephen Boyd
On 10/06/2014 10:28 PM, Guenter Roeck wrote: > Various drivers implement architecture and/or device specific means to > remove power from the system. For the most part, those drivers set the > global variable pm_power_off to point to a function within the driver. > > This mechanism has a number

Re: [PATCH] regulator: qcom_spmi: Fix calculating number of voltages

2015-06-17 Thread Stephen Boyd
On 06/17/2015 05:50 PM, Axel Lin wrote: > n /= range->step_uV + 1; is equivalent to n /= (range->step_uV + 1); > which is wrong. Fix it. > > Signed-off-by: Axel Lin > --- Acked-by: Stephen Boyd -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation

[PATCH v3 4/4] gpio: brcmstb: support wakeup from S5 cold boot

2015-06-17 Thread Gregory Fong
For wake from S5, we need to: - register a reboot handler - set wakeup capability before requesting IRQ so wakeup count is incremented - mask all GPIO IRQs and clear any pending interrupts during driver probe to since no driver will yet be registered to handle any IRQs carried over from boot

[PATCH v3 3/4] gpio: brcmstb: Add interrupt and wakeup source support

2015-06-17 Thread Gregory Fong
Uses the gpiolib irqchip helpers. For this to work, the irq setup function is called once per bank instead of once per device. Note that all known uses of this block have a BCM7120 L2 interrupt controller as a parent. Supports interrupts for all GPIOs. In the IRQ handler, we check for raised

[PATCH v3 2/4] dt-bindings: brcmstb-gpio: document properties for wakeup

2015-06-17 Thread Gregory Fong
Some brcmstb GPIO controllers can be used to wake from suspend, so use the de facto standard property 'wakeup-source' to mark the nodes of controllers with that capability. Also document interrupts-extended, which will be used for wakeup handling because the interrupt parent for the wake IRQ is

[PATCH v3 1/4] gpio: brcmstb: fix null ptr dereference in driver remove

2015-06-17 Thread Gregory Fong
If a failure occurs during probe, brcmstb_gpio_remove() is called. In remove, we call platform_get_drvdata(), but at the time of failure in the probe the driver data hadn't yet been set which leads to a NULL ptr dereference in the remove's list_for_each. Call platform_set_drvdata() and set up

[PATCH v3 0/4] GPIO support for BRCMSTB

2015-06-17 Thread Gregory Fong
Adds interrupt support for the GPIO controller (UPG GIO) used on Broadcom's various BRCMSTB SoCs (BCM7XXX and others). For all existing hardware, this block hooks up to the BCM7120 L2 IRQ controller and so will require CONFIG_BCM7120_L2_IRQ=y. New in v3: - fix a null pointer dereference noticed

Re: [RFC 2/4] mm, thp: khugepaged checks for THP allocability before scanning

2015-06-17 Thread David Rientjes
On Mon, 11 May 2015, Vlastimil Babka wrote: > Khugepaged could be scanning for collapse candidates uselessly, if it cannot > allocate a hugepage in the end. The hugepage preallocation mechanism prevented > this, but only for !NUMA configurations. It was removed by the previous patch, > and this

Re: [PATCH RESEND] sched: prefer an idle cpu vs an idle sibling for BALANCE_WAKE

2015-06-17 Thread Mike Galbraith
On Wed, 2015-06-17 at 11:06 -0700, Josef Bacik wrote: > On 06/11/2015 10:35 PM, Mike Galbraith wrote: > > On Thu, 2015-05-28 at 13:05 +0200, Peter Zijlstra wrote: > > If sd == NULL, we fall through and try to pull wakee despite nacked-by > > tsk_cpus_allowed() or wake_affine(). > > > > So maybe

[PATCH] regulator: qcom_spmi: Fix calculating number of voltages

2015-06-17 Thread Axel Lin
n /= range->step_uV + 1; is equivalent to n /= (range->step_uV + 1); which is wrong. Fix it. Signed-off-by: Axel Lin --- drivers/regulator/qcom_spmi-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/qcom_spmi-regulator.c

Re: [RFC 1/4] mm, thp: stop preallocating hugepages in khugepaged

2015-06-17 Thread David Rientjes
On Mon, 11 May 2015, Vlastimil Babka wrote: > Khugepaged tries to preallocate a hugepage before scanning for THP collapse > candidates. If the preallocation fails, scanning is not attempted. This makes > sense, but it is only restricted to !NUMA configurations, where it does not > need to predict

Re: [PATCH v3 1/2] kconfig: allow use of relations other than (in)equality

2015-06-17 Thread Ulf Magnusson
On Mon, Jun 15, 2015 at 5:29 PM, Randy Dunlap wrote: > > Hi, > > Please update Documentation/kbuild/kconfig-language.txt where > syntax is defined. > > > -- > ~Randy Is this likely to be the final version? Approx. when will it go in? /Ulf -- To unsubscribe from this list: send the line

Re: mm: shmem_zero_setup skip security check and lockdep conflict with XFS

2015-06-17 Thread Hugh Dickins
Wed, Jun 17, 2015 at 12:45 PM, Morten Stevens wrote: > 2015-06-15 8:09 GMT+02:00 Daniel Wagner : >> On 06/14/2015 06:48 PM, Hugh Dickins wrote: >>> It appears that, at some point last year, XFS made directory handling >>> changes which bring it into lockdep conflict with shmem_zero_setup(): >>>

Re: call_rcu from trace_preempt

2015-06-17 Thread Paul E. McKenney
On Wed, Jun 17, 2015 at 04:58:48PM -0700, Alexei Starovoitov wrote: > On 6/17/15 2:36 PM, Paul E. McKenney wrote: > >Well, you do need to have something in each element to allow them to be > >tracked. You could indeed use llist_add() to maintain the per-CPU list, > >and then use llist_del_all()

Re: [PATCH 1/8] of: overlay: Implement indirect target support

2015-06-17 Thread Rob Herring
On Fri, Jun 12, 2015 at 2:54 PM, Pantelis Antoniou wrote: > Some applications require applying the same overlay to a different > target according to some external condition (for instance depending > on the slot a card has been inserted, the overlay target is different). > > The indirect target

Re: [RFC PATCH] perf/kvm: Guest Symbol Resolution for powerpc

2015-06-17 Thread Hemant Kumar
Hi Arnaldo, On 06/16/2015 09:08 PM, Arnaldo Carvalho de Melo wrote: Em Tue, Jun 16, 2015 at 08:20:53AM +0530, Hemant Kumar escreveu: "perf kvm {record|report}" is used to record and report the performance profile of any workload on a guest. From the host, we can collect guest kernel statistics

[PATCH 02/15] libnvdimm: infrastructure for btt devices

2015-06-17 Thread Dan Williams
Block devices from an nd bus, in addition to accepting "struct bio" based requests, also have the capability to perform byte-aligned accesses. By default only the bio/block interface is used. However, if another driver can make effective use of the byte-aligned capability it can claim the block

[PATCH 03/15] nd_btt: atomic sector updates

2015-06-17 Thread Dan Williams
From: Vishal Verma BTT stands for Block Translation Table, and is a way to provide power fail sector atomicity semantics for block devices that have the ability to perform byte granularity IO. It relies on the capability of libnvdimm namespace devices to do byte aligned IO. The BTT works as a

[PATCH 10/15] libnvdimm: fix up max_hw_sectors

2015-06-17 Thread Dan Williams
There is no hardware limit to enforce on the size of the i/o that can be passed to nd block device, so set it to UINT_MAX. Do this centrally for all nd block devices in nd_blk_queue_init(); Reviewed-by: Vishal Verma Signed-off-by: Dan Williams --- drivers/nvdimm/blk.c |3 +--

[PATCH 15/15] libnvdimm, nfit: handle acpi_nfit_memory_map flags

2015-06-17 Thread Dan Williams
The flags in this NFIT sub-structure indicate the state of the data on the nvdimm relative to its energy source or last "flush to persistence". For the most part there is nothing the driver can do but advertise the state of these flags in sysfs and emit a message if firmware indicates that the

  1   2   3   4   5   6   7   8   9   10   >