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

2015-06-17 Thread Geert Uytterhoeven
Hi Finn, On Thu, Jun 18, 2015 at 6:49 AM, Finn Thain wrote: > 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.p

Re: [PATCH v6 06/14] crypto: marvell/CESA: add DES support

2015-06-17 Thread Boris Brezillon
Hi Herbert, On Wed, 17 Jun 2015 09:45:34 +0200 Boris Brezillon wrote: > Add support for DES operations. The addition of DES support seems controversial. At first I thought it would be good to support all the algorithms supported by the CESA engine, but I think I'll drop it in the next iteration

subtle side effect of commit a1c48bb160f836

2015-06-17 Thread Vineet Gupta
Hi Geert, commit a1c48bb160f8368 "Makefile: Fix unrecognized cross-compiler command line options" moved ARCH specific cc option handling before common -Os/O2 setup. For ARC this had a subtle effect that we can no longer over-ride generic -O2 with -O3, hence a performance regression observed goin

[PATCH 3/8] pinctrl: qcom: spmi-mpp: Introduce defines for MODE_CTL

2015-06-17 Thread Bjorn Andersson
Signed-off-by: Bjorn Andersson --- drivers/pinctrl/qcom/pinctrl-spmi-mpp.c | 32 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/drivers/pinctrl/qcom/pinctrl-spmi-mpp.c b/drivers/pinctrl/qcom/pinctrl-spmi-mpp.c index 6d9abeea810d..745c37dea7d0 100

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

2015-06-17 Thread Frans Klaver
On Thu, Jun 18, 2015 at 3:04 AM, Stephen Boyd wrote: > 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 fun

[PATCH 4/8] pinctrl: qcom: spmi-mpp: Implement support for sink mode

2015-06-17 Thread Bjorn Andersson
The MPP supports three modes; digital, analog and sink mode. This patch implements support for the latter. Signed-off-by: Bjorn Andersson --- .../devicetree/bindings/pinctrl/qcom,pmic-mpp.txt | 5 + drivers/pinctrl/qcom/pinctrl-spmi-mpp.c| 115 + 2 files change

[PATCH 5/8] pinctrl: qcom: spmi-mpp: Add support for setting analog output level

2015-06-17 Thread Bjorn Andersson
When the MPP is configured for analog output the output level is selected by the AOUT_CTL register, this patch makes it possible to control this. Signed-off-by: Bjorn Andersson --- .../devicetree/bindings/pinctrl/qcom,pmic-mpp.txt | 7 +++ drivers/pinctrl/qcom/pinctrl-spmi-mpp.c

[PATCH 7/8] mfd: pm8921: Implement irq_get_irqchip_state

2015-06-17 Thread Bjorn Andersson
Implement irq_chip->irq_get_irqchip_state to make it possible for PMIC block drivers to access the IRQ real time status bits. The status bits are used for various kinds of input signals, e.g. GPIO. Signed-off-by: Bjorn Andersson --- This patch can be picked up independently of the rest of the se

[PATCH 8/8] pinctrl: qcom: ssbi: Family A gpio & mpp drivers

2015-06-17 Thread Bjorn Andersson
This introduces pinctrl drivers for gpio and mpp blocks found in family A PMICs. Signed-off-by: Bjorn Andersson --- .../devicetree/bindings/pinctrl/qcom,pmic-mpp.txt | 5 + drivers/pinctrl/qcom/Kconfig | 12 + drivers/pinctrl/qcom/Makefile | 2 +

[PATCH 1/8] pinctrl: qcom: spmi-mpp: Transition to generic dt binding parser

2015-06-17 Thread Bjorn Andersson
Use the newly introduced extensible generic dt parser instead of rolling our own dt parsing functions. Signed-off-by: Bjorn Andersson --- drivers/pinctrl/qcom/pinctrl-spmi-mpp.c | 130 1 file changed, 16 insertions(+), 114 deletions(-) diff --git a/drivers/pinct

[PATCH 0/8] Qualcomm PMIC pinctrl additions

2015-06-17 Thread Bjorn Andersson
This series starts out by fixing various issues found in the pm8941 mpp driver. While doing this work, and trying to use the mpp driver from device tree it, it became obvious that the current binding is not fit for neither the driver implementation nor the dts implementation. The main reason for t

[PATCH 6/8] pinctrl: qcom: spmi-mpp: Transpose pinmux function

2015-06-17 Thread Bjorn Andersson
The "function" of the MPP driver was inherited from the GPIO driver, but the differences between the two hardware blocks makes both the driver and the device tree binding to be awkward. Instead of overloading the "normal" function with various modes this patch transposes the pinmux function to rep

[PATCH 2/8] pinctrl: qcom: spmi-mpp: Fixes related to enable handling

2015-06-17 Thread Bjorn Andersson
There's currently no way to re-enable a mpp block once you've entered a state that disables the state, this patch makes it possible to leave the bias-high-impedance state. Also read the enable state from the hardware on probe. With this in place the is_enabled variable is accurately tracking the

Re: [PATCH] crypto: caam - fix non-64-bit write/read access

2015-06-17 Thread Herbert Xu
On Tue, Jun 16, 2015 at 12:59:07PM +0200, Steffen Trumtrar wrote: > The patch > > crypto: caam - Add definition of rd/wr_reg64 for little endian platform > > added support for little endian platforms to the CAAM driver. Namely a > write and read function for 64 bit registers. > The only use

Re: [PATCH] selftests: add seccomp suite

2015-06-17 Thread Michael Ellerman
On Wed, 2015-06-17 at 11:12 -0700, Kees Cook wrote: > On Wed, Jun 17, 2015 at 12:31 AM, Michael Ellerman > wrote: > > On Tue, 2015-06-16 at 10:54 -0700, Kees Cook wrote: > >> This imports the existing seccomp test suite into the kernel's selftests > >> tree. It contains extensive testing of secco

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

2015-06-17 Thread Yuyang Du
On Thu, Jun 18, 2015 at 02:31:00PM +0800, Wanpeng Li wrote: > > On 6/17/15 11:11 AM, Yuyang Du wrote: > >Hi, > > > >The sched_debug is informative, lets first give it some analysis. > > > >The workload is 12 CPU hogging tasks (always runnable) and 1 dbench > >task doing fs ops (70% runnable) runni

[RFC] COLO Proxy Module

2015-06-17 Thread Li Zhijian
Hi, all We are planning to implement a kernel module called COLO Proxy to buffer and compare packets. This module is one of the important component of COLO project and now it is still in early stage, so any comments and feedback are warmly welcomed, thanks in advance. = # RFC: COLO-Proxy Mod

[PATCH] staging: rtl8188eu: kill unused hal_data_8188e::fw_ractrl flag

2015-06-17 Thread Jakub Sitnicki
Flag is never set. Remove it and the code that is dead because of it. Signed-off-by: Jakub Sitnicki --- drivers/staging/rtl8188eu/hal/odm.c | 11 -- drivers/staging/rtl8188eu/hal/rtl8188e_cmd.c | 21 -- drivers/staging/rtl8188eu/hal/usb_halinit.c | 2

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

2015-06-17 Thread Wanpeng Li
On 6/17/15 11:11 AM, Yuyang Du wrote: Hi, The sched_debug is informative, lets first give it some analysis. The workload is 12 CPU hogging tasks (always runnable) and 1 dbench task doing fs ops (70% runnable) running at the same time. Actually, these 13 tasks are in a task group /autogroup-96

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 z

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 a/dri

[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 --- a/drivers/pinctr

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 the

[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 --- arch/arm64/boot/dts/mediatek/mt

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 e

[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 cod

[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 ma

[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 8<

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 doc

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 d

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 is

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
taging 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 inserti

[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 rena

[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 a/

[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 a/

[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 x

[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 3ea7f5a

[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 Cappe

[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 as

[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 call_s

[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 firmware

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. Sor

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 tsk_cpus_allowed()

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): crypto

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 l

[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 --- a/arch/arm/mach-mediatek/mediatek

[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 deletion(-)

[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(+) d

[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 | 1

[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 +++ b/arch/arm/boot/d

[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 inde

[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 su

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 annotate

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 w

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 commit

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 has

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 issue

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 > ESTA

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 ++-- > net/tipc

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 cfs

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 we

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, pe

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 th

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 rea

[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 mul

[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 got

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 in

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 > > > possible

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 S

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: http://gondor.apana.org.au/~herbert/pubkey.

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 wa

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 safe

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 well-documen

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 i

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 of

  1   2   3   4   5   6   7   8   9   10   >