[PATCH v3 0/6] ARCv2 port to Linux - (C) perf

2015-08-24 Thread Alexey Brodkin
Hi Peter, This mini-series adds perf support for ARCv2 based cores, which brings in overflow interupts and SMP. Additionally now raw events are supported as well. Please review ! Compared to v2 this series has: [1] Removed patch with raw-events support. It needs some rework and let's then

[PATCH v3 2/6] ARCv2: perf: implement "event_set_period"

2015-08-24 Thread Alexey Brodkin
This generalization prepares for support of overflow interrupts. Hardware event counters on ARC work that way: Each counter counts from programmed start value (set in ARC_REG_PCT_COUNT) to a limit value (set in ARC_REG_PCT_INT_CNT) and once limit value is reached this timer generates an interrupt.

Re: [PATCH v2 1/5] clocksource: mediatek: do not enable GPT_CLK_EVT when setup

2015-08-24 Thread Yingjoe Chen
On Mon, 2015-08-24 at 09:51 +0200, Daniel Lezcano wrote: > On 08/21/2015 04:39 PM, Yingjoe Chen wrote: > > [ ... ] > > >>- Does the spurious interrupt occurs *every* time ? at each boot ? > > > > Yes. If you applied this series to enable mtk timer without this fix on > > mt8173 or mt8135 you

Re: [PATCH v3] dmaengine: hdmac: Add memset capabilities

2015-08-24 Thread Vinod Koul
On Mon, Aug 24, 2015 at 11:21:15AM +0200, Maxime Ripard wrote: > Just like for the XDMAC, the SoCs that embed the HDMAC don't have any kind > of GPU, and need to accelerate a few framebuffer-related operations through > their DMA controller. > > However, unlike the XDMAC, the HDMAC doesn't have th

[PATCH v2] ARM: DT: STi: STiH418: Fix mmc0 clock configuration

2015-08-24 Thread Gabriel Fernandez
This patch configure correctly the MMC-0 clock for STiH418 platform. Signed-off-by: Gabriel Fernandez Acked-by: Maxime Coquelin --- arch/arm/boot/dts/stih418.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/stih418.dtsi b/arch/arm/boot/dts/stih418.dtsi index 8160

Re: [PATCH 01/10] irqchip: irq-mips-gic: export gic_send_ipi

2015-08-24 Thread Qais Yousef
On 08/24/2015 02:32 PM, Marc Zyngier wrote: On 24/08/15 14:02, Qais Yousef wrote: On 08/24/2015 01:49 PM, Thomas Gleixner wrote: On Mon, 24 Aug 2015, Qais Yousef wrote: Some drivers might require to send ipi to other cores. So export it. Which IPIs do you need to send from a driver which are

Re: [PATCH RFC 02/10] perf,tools: Support new sort type --socket

2015-08-24 Thread Jiri Olsa
On Mon, Aug 24, 2015 at 02:22:08PM +, Liang, Kan wrote: > > > > On Fri, Aug 21, 2015 at 08:25:24PM +, Liang, Kan wrote: > > > > SNIP > > > > > > > > > > we need global topology information in perf.data and use the mapping > > > > from there, we can't use current server info > > > > > > >

[PATCH] docs: update HOWTO for 3.x -> 4.x versioning

2015-08-24 Thread Mario Carrillo
The HOWTO document needed updating for the new kernel versioning. Signed-off-by: Mario Carrillo --- Documentation/HOWTO | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/Documentation/HOWTO b/Documentation/HOWTO index 93aa860..21152d3 100644 --- a

[PATCH v2 0/6] perf: Introduce extended syscall error reporting

2015-08-24 Thread Alexander Shishkin
Hi Peter and Ingo and everybody, Here's an update of my extended error reporting patchset, addressing review comments and adding a few more error messages to PT and BTS drivers. Changes since v1: * addressed Peter's comments, * added perf_err() annotation to intel_pt and intel_bts drivers;

[PATCH v2 2/6] perf: Add file name and line number to perf extended error reports

2015-08-24 Thread Alexander Shishkin
If kernel debugging is enabled, include additional information to extended syscall error reports: file name and line number, to make error hunting even easier. And in really desperate times, this allows for such things (a variation on Hugh Dickins' trick [1]): #undef EINVAL #defin

Re: [PATCH v3 4/6] ARCv2: perf: implement exclusion of event counting in user or kernel mode

2015-08-24 Thread Vineet Gupta
On Monday 24 August 2015 07:50 PM, Alexey Brodkin wrote: > Cc: Peter Zijlstra > Cc: Arnaldo Carvalho de Melo > Signed-off-by: Alexey Brodkin > --- > > No changes since v2. > > No changes since v1. > > > } > > + hwc->config = 0; > + > + if (is_isa_arcv2()) { > + /

[PATCH v2 1/6] perf: Introduce extended syscall error reporting

2015-08-24 Thread Alexander Shishkin
It has been pointed several times out that perf syscall error reporting leaves a lot to be desired [1]. This patch introduces a fairly simple extension that allows call sites to annotate their error codes with arbitrary strings, which will then be copied to userspace (if they asked for it) along w

Re: [PATCH] scripts/kernel-doc: Improve Markdown results

2015-08-24 Thread Graham Whaley
On Fri, 2015-08-21 at 16:39 -0300, Danilo Cesar Lemes de Paula wrote: > Using pandoc as the Markdown engine cause some minor side effects as > pandoc includes main tags for almost everything. > Original Markdown support approach removes those main tags, but it > caused > some inconsistencies when

Re: [PATCH] clockevents/drivers/mtk: Fix spurious interrupt leading to crash

2015-08-24 Thread Yingjoe Chen
On Mon, 2015-08-24 at 15:30 +0200, Daniel Lezcano wrote: > After analysis done by Yingjoe Chen, the timer appears to have a pending > interrupt when it is enabled. > > Fix this by acknowledging the pending interrupt when enabling the timer > interrupt. > > Signed-off-by: Daniel Lezcano Hi Daniel,

[PATCH v2 3/6] perf: Annotate some of the error codes with perf_err()

2015-08-24 Thread Alexander Shishkin
This patch annotates a few semi-random error paths in perf core to illustrate the extended error reporting facility. Most of them can be triggered from perf tools. Signed-off-by: Alexander Shishkin --- kernel/events/core.c | 20 +++- 1 file changed, 11 insertions(+), 9 deletions(

[PATCH v2 4/6] perf/x86: Annotate some of the error codes with perf_err()

2015-08-24 Thread Alexander Shishkin
This patch annotates a few x86-specific error paths with perf's extended error reporting facility. Signed-off-by: Alexander Shishkin --- arch/x86/kernel/cpu/perf_event.c | 8 ++-- arch/x86/kernel/cpu/perf_event_intel_lbr.c | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) d

Re: [PATCH v7 3/6] mm: Introduce VM_LOCKONFAULT

2015-08-24 Thread Vlastimil Babka
On 08/24/2015 03:50 PM, Konstantin Khlebnikov wrote: On Mon, Aug 24, 2015 at 4:30 PM, Vlastimil Babka wrote: On 08/24/2015 12:17 PM, Konstantin Khlebnikov wrote: I am in the middle of implementing lock on fault this way, but I cannot see how we will hanlde mremap of a lock on fault region.

[PATCH v2 6/6] perf/x86/intel/bts: Use extended error reporting in event initialization

2015-08-24 Thread Alexander Shishkin
If intel_bts events would conflict with other events that are active in the system, provide an extended error message to the user along with the usual EBUSY. Signed-off-by: Alexander Shishkin --- arch/x86/kernel/cpu/perf_event_intel_bts.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)

[PATCH v2 5/6] perf/x86/intel/pt: Use extended error reporting in event initialization

2015-08-24 Thread Alexander Shishkin
Event attribute validation is one of the biggest sources of EINVALs around perf_event_open() syscall. This patch annotates error checks with extended error reporting macros to provide the user with more details on what they are doing wrong. Signed-off-by: Alexander Shishkin --- arch/x86/kernel/c

RE: [PATCH 3/8][v3]usb:fsl:otg: Add support to add/remove usb host driver

2015-08-24 Thread Alan Stern
On Mon, 24 Aug 2015, Ramneek Mehresh wrote: > > On Thu, 20 Aug 2015, Ramneek Mehresh wrote: > > > > > > > --- a/drivers/usb/host/ehci-fsl.h > > > > > +++ b/drivers/usb/host/ehci-fsl.h > > > > > @@ -63,4 +63,22 @@ > > > > > #define UTMI_PHY_EN (1<<9) > > > > > #define ULPI_PHY_CLK_SE

Re: linux-next: Tree for Aug 24 (media/i2c/tc358743.c)

2015-08-24 Thread Randy Dunlap
On 08/24/15 04:52, Stephen Rothwell wrote: > Hi all, > > Changes since 20150821: > on x86_64: drivers/built-in.o: In function `print_avi_infoframe': tc358743.c:(.text.unlikely+0x7849): undefined reference to `hdmi_infoframe_unpack' tc358743.c:(.text.unlikely+0x787e): undefined reference to `h

Re: [PATCH 0/2] kbuild: Minor cleanups of fixdep

2015-08-24 Thread Michal Marek
On 2015-07-24 07:18, Masahiro Yamada wrote: > Masahiro Yamada (2): > kbuild: fixdep: optimize code slightly > kbuild: fixdep: drop meaningless hash table initialization > > scripts/basic/fixdep.c | 26 -- > 1 file changed, 4 insertions(+), 22 deletions(-) Applied to k

[PATCH v11 01/20] x86/asm: Frame pointer macro cleanup

2015-08-24 Thread Josh Poimboeuf
The asm macros for setting up and restoring the frame pointer aren't currently being used. However, they will be needed soon to help asm functions to comply with stackvalidate. Rename FRAME/ENDFRAME to FRAME_BEGIN/FRAME_END for more symmetry. Also make the code more readable and improve the comm

[PATCH v11 20/20] x86/asm/power: Create stack frames in hibernate_asm_64.S

2015-08-24 Thread Josh Poimboeuf
swsusp_arch_suspend() and restore_registers() are callable non-leaf functions which don't honor CONFIG_FRAME_POINTER, which can result in bad stack traces. Also they aren't annotated as ELF callable functions which can confuse tooling. Create a stack frame for them when CONFIG_FRAME_POINTER is en

[PATCH v11 16/20] x86/asm/entry: Create stack frames in thunk functions

2015-08-24 Thread Josh Poimboeuf
Thunk functions are callable non-leaf functions that don't honor CONFIG_FRAME_POINTER, which can result in bad stack traces. Also they aren't annotated as ELF callable functions which can confuse tooling. Create stack frames for them when CONFIG_FRAME_POINTER is enabled and add the ELF function t

[PATCH v11 19/20] x86/asm/efi: Create a stack frame in efi_call()

2015-08-24 Thread Josh Poimboeuf
efi_call() is a callable non-leaf function which doesn't honor CONFIG_FRAME_POINTER, which can result in bad stack traces. Create a stack frame for it when CONFIG_FRAME_POINTER is enabled. Signed-off-by: Josh Poimboeuf Reviewed-by: Matt Fleming --- arch/x86/platform/efi/efi_stub_64.S | 3 +++

[PATCH v11 07/20] x86/paravirt: Add stack frame dependency to PVOP inline asm calls

2015-08-24 Thread Josh Poimboeuf
If a PVOP call macro is inlined at the beginning of a function, gcc can insert the call instruction before setting up a stack frame, which breaks frame pointer convention if CONFIG_FRAME_POINTER is enabled and can result in a bad stack trace. Force a stack frame to be created if CONFIG_FRAME_POINT

[PATCH v11 17/20] x86/asm/acpi: Create a stack frame in do_suspend_lowlevel()

2015-08-24 Thread Josh Poimboeuf
do_suspend_lowlevel() is a callable non-leaf function which doesn't honor CONFIG_FRAME_POINTER, which can result in bad stack traces. Create a stack frame for it when CONFIG_FRAME_POINTER is enabled. Signed-off-by: Josh Poimboeuf Acked-by: Pavel Machek Cc: "Rafael J. Wysocki" Cc: Len Brown --

Re: linux-next: build failure after merge of the nfs tree

2015-08-24 Thread Oleg Drokin
Hello! On Aug 24, 2015, at 10:17 AM, Trond Myklebust wrote: > Hi Stephen, > > On Sun, Aug 23, 2015 at 7:16 PM, Stephen Rothwell > wrote: >> Hi Trond, >> >> On Tue, 18 Aug 2015 10:56:34 +1000 Stephen Rothwell >> wrote: >>> >>> After merging the nfs tree, today's linux-next build (x86_64 all

[PATCH v11 13/20] x86/asm/crypto: Move .Lbswap_mask data to .rodata section

2015-08-24 Thread Josh Poimboeuf
stackvalidate reports the following warning: stackvalidate: arch/x86/crypto/aesni-intel_asm.o: _aesni_inc_init(): can't find starting instruction stackvalidate gets confused when it tries to disassemble the following data in the .text section: .Lbswap_mask: .byte 15, 14, 13, 12, 1

[PATCH v11 15/20] x86/asm/crypto: Create stack frames in clmul_ghash_mul/update()

2015-08-24 Thread Josh Poimboeuf
clmul_ghash_mul() and clmul_ghash_update() are callable non-leaf functions which don't honor CONFIG_FRAME_POINTER, which can result in bad stack traces. Create stack frames for them when CONFIG_FRAME_POINTER is enabled. Signed-off-by: Josh Poimboeuf Cc: Herbert Xu Cc: "David S. Miller" --- ar

[PATCH v11 03/20] x86/stackvalidate: Compile-time stack validation

2015-08-24 Thread Josh Poimboeuf
This adds a CONFIG_STACK_VALIDATION option which enables a host tool named stackvalidate which runs at compile time. It analyzes every .o file and ensures the validity of its stack metadata. It enforces a set of rules on asm code and C inline assembly code so that stack traces can be reliable. F

Re: [PATCH v3 06/14] Documentation: drm/bridge: add document for analogix_dp

2015-08-24 Thread Rob Herring
On Mon, Aug 24, 2015 at 7:57 AM, Russell King - ARM Linux wrote: > On Sun, Aug 23, 2015 at 06:23:14PM -0500, Rob Herring wrote: >> On Wed, Aug 19, 2015 at 9:50 AM, Yakir Yang wrote: >> > + -analogix,color-depth: >> > + number of bits per colour component. >> > +

[PATCH v11 08/20] x86/paravirt: Create a stack frame in PV_CALLEE_SAVE_REGS_THUNK

2015-08-24 Thread Josh Poimboeuf
A function created with the PV_CALLEE_SAVE_REGS_THUNK macro doesn't set up a new stack frame before the call instruction, which breaks frame pointer convention if CONFIG_FRAME_POINTER is enabled and can result in a bad stack trace. Also, the thunk functions aren't annotated as ELF callable functio

Re: [PATCH block/for-linus] writeback: fix syncing of I_DIRTY_TIME inodes

2015-08-24 Thread Tejun Heo
Hello, Jan. On Mon, Aug 24, 2015 at 11:19:59AM +0200, Jan Kara wrote: > > which shows unmount being the next writeback event queued and > > executed after the IO completions have come in (that missed the > > log). What is missing is the specific queue/exec events for > > sync_sb_inodes() from the

[PATCH v11 12/20] x86/asm/crypto: Create stack frames in aesni-intel_asm.S

2015-08-24 Thread Josh Poimboeuf
aesni-intel_asm.S has several callable non-leaf functions which don't honor CONFIG_FRAME_POINTER, which can result in bad stack traces. Create stack frames for them when CONFIG_FRAME_POINTER is enabled. Signed-off-by: Josh Poimboeuf Cc: Herbert Xu Cc: "David S. Miller" --- arch/x86/crypto/aes

[PATCH v11 14/20] x86/asm/crypto: Move jump_table to .rodata section

2015-08-24 Thread Josh Poimboeuf
stackvalidate reports the following warning: stackvalidate: arch/x86/crypto/crc32c-pcl-intel-asm_64.o: crc_pcl()+0x11dd: can't decode instruction It gets confused when trying to decode jump_table data. Move jump_table to the .rodata section which is a more appropriate home for read-only data.

[PATCH v11 09/20] x86/amd: Set ELF function type for vide()

2015-08-24 Thread Josh Poimboeuf
vide() is a callable function, but is missing the ELF function type, which confuses tools like stackvalidate. Properly annotate it to be a callable function. The generated code is unchanged. Signed-off-by: Josh Poimboeuf --- arch/x86/kernel/cpu/amd.c | 5 - 1 file changed, 4 insertions(+),

[PATCH v11 10/20] x86/reboot: Add ljmp instructions to stackvalidate whitelist

2015-08-24 Thread Josh Poimboeuf
stackvalidate reports a false positive warning for the ljmp instruction in machine_real_restart(). Normally, ljmp isn't allowed in a function, but this is a special case where it's jumping into real mode. Add the jumps to a whitelist which tells stackvalidate to ignore them. Signed-off-by: Josh

[PATCH v11 06/20] x86/xen: Add stack frame dependency to hypercall inline asm calls

2015-08-24 Thread Josh Poimboeuf
If a hypercall is inlined at the beginning of a function, gcc can insert the call instruction before setting up a stack frame, which breaks frame pointer convention if CONFIG_FRAME_POINTER is enabled and can result in a bad stack trace. Force a stack frame to be created if CONFIG_FRAME_POINTER is

[PATCH v11 11/20] x86/xen: Add xen_cpuid() and xen_setup_gdt() to stackvalidate whitelists

2015-08-24 Thread Josh Poimboeuf
stackvalidate reports the following false positive warnings: stackvalidate: arch/x86/xen/enlighten.o: xen_cpuid()+0x41: can't find jump dest instruction at .text+0x108 stackvalidate: arch/x86/xen/enlighten.o: xen_setup_gdt.constprop.23()+0x2e: kernel entry/exit from callable instruction The

[PATCH v11 04/20] x86/stackvalidate: Add file and directory ignores

2015-08-24 Thread Josh Poimboeuf
Tell stackvalidate to skip validation of the following code: - boot image - vdso image - kexec purgatory - realmode - efi libstub - scripts/mod They all run outside the kernel's normal mode of operation and they don't affect runtime kernel stack traces, so they're free to skirt the stackvalidate

Re: [PATCH v2] scripts/checkkconfigsymbols.py: support default statements

2015-08-24 Thread Michal Marek
On 2015-07-27 12:33, Valentin Rothberg wrote: > Until now, checkkonfigsymbols.py did not check default statements for > references on missing Kconfig symbols (i.e., undefined Kconfig options). > Hence, add support to parse and check the Kconfig default statement. > > Signed-off-by: Valentin Rothbe

[PATCH v11 18/20] x86/asm: Create stack frames in rwsem functions

2015-08-24 Thread Josh Poimboeuf
rwsem.S has several callable non-leaf functions which don't honor CONFIG_FRAME_POINTER, which can result in bad stack traces. Create stack frames for them when CONFIG_FRAME_POINTER is enabled. Signed-off-by: Josh Poimboeuf --- arch/x86/lib/rwsem.S | 11 ++- 1 file changed, 10 insertions

Re: [PATCH-v3 1/2] mfd: devicetree: bindings: 88pm800: Add DT property for dual phase enable

2015-08-24 Thread Vaibhav Hiremath
On Monday 24 August 2015 06:32 PM, Lee Jones wrote: On Mon, 24 Aug 2015, Vaibhav Hiremath wrote: 88PM860 family of device supports dual phase mode on BUCK1 supply providing total 6A capacity. Note that by default they operate independently with 3A capacity. This patch updates the devicetree

Re: [PATCH v2] scripts/checkkconfigsymbols.py: support default statements

2015-08-24 Thread Valentin Rothberg
Hi Michal, On Mon, Aug 24, 2015 at 4:49 PM, Michal Marek wrote: > On 2015-07-27 12:33, Valentin Rothberg wrote: >> Until now, checkkonfigsymbols.py did not check default statements for >> references on missing Kconfig symbols (i.e., undefined Kconfig options). >> Hence, add support to parse and c

[PATCH v11 05/20] x86/stackvalidate: Add ignore macros

2015-08-24 Thread Josh Poimboeuf
Add new stackvalidate ignore macros: STACKVALIDATE_IGNORE_INSN and STACKVALIDATE_IGNORE_FUNC. These can be used to tell stackvalidate to skip validation of an instruction or a function, respectively. Signed-off-by: Josh Poimboeuf --- arch/x86/include/asm/stackvalidate.h | 45 +++

[PATCH v11 02/20] x86/asm: Add C versions of frame pointer macros

2015-08-24 Thread Josh Poimboeuf
Add C versions of the frame pointer macros which can be used to create a stack frame in inline assembly. Signed-off-by: Josh Poimboeuf --- arch/x86/include/asm/frame.h | 20 ++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/asm/frame.h b/arch/x8

[PATCH v11 00/20] Compile-time stack validation

2015-08-24 Thread Josh Poimboeuf
This is v11 of the compile-time stack validation patch set, along with proposed fixes for many of the warnings it found. It's based on the tip/master branch. The only real change since v10 is some improvements in patch 3 to the documentation and changelog which attempt to better describe why stac

Re: [PATCH 01/10] irqchip: irq-mips-gic: export gic_send_ipi

2015-08-24 Thread Thomas Gleixner
On Mon, 24 Aug 2015, Qais Yousef wrote: > On 08/24/2015 01:49 PM, Thomas Gleixner wrote: > > On Mon, 24 Aug 2015, Qais Yousef wrote: > > > > > Some drivers might require to send ipi to other cores. So export it. > > Which IPIs do you need to send from a driver which are not exposed by > > the SMP

Re: [PATCH v2] scripts/checkkconfigsymbols.py: support default statements

2015-08-24 Thread Michal Marek
On 2015-08-24 16:52, Valentin Rothberg wrote: > Hi Michal, > > On Mon, Aug 24, 2015 at 4:49 PM, Michal Marek wrote: >> On 2015-07-27 12:33, Valentin Rothberg wrote: >>> Until now, checkkonfigsymbols.py did not check default statements for >>> references on missing Kconfig symbols (i.e., undefined

Re: [PATCHv3 1/5] mm: drop page->slab_page

2015-08-24 Thread Vlastimil Babka
On 08/19/2015 11:21 AM, Kirill A. Shutemov wrote: Since 8456a648cf44 ("slab: use struct page for slab management") nobody uses slab_page field in struct page. Let's drop it. Signed-off-by: Kirill A. Shutemov Acked-by: Christoph Lameter Acked-by: David Rientjes Cc: Joonsoo Kim Cc: Andi Kleen

Re: [PATCHv3 1/5] mm: drop page->slab_page

2015-08-24 Thread Vlastimil Babka
On 08/19/2015 11:21 AM, Kirill A. Shutemov wrote: Since 8456a648cf44 ("slab: use struct page for slab management") nobody uses slab_page field in struct page. Let's drop it. Ah, how about dropping this comment in mm/slab.c:slab_destroy() as well? /* * RCU free

Re: [PATCHv3 2/5] zsmalloc: use page->private instead of page->first_page

2015-08-24 Thread Vlastimil Babka
On 08/19/2015 11:21 AM, Kirill A. Shutemov wrote: We are going to rework how compound_head() work. It will not use page->first_page as we have it now. The only other user of page->fisrt_page beyond compound pages is ^ typo zsmalloc. Let's use page->private ins

[PATCH v2] Documentation: add 'crashkernel=auto' entry into kernel-parameters.txt

2015-08-24 Thread Yaowei Bai
There is no 'crashkernel=auto' entry in kernel-parameters.txt, borrow it from kexec-kdump-howto.txt file in the kexec-tools-2.0.0 package. Signed-off-by: Yaowei Bai --- Documentation/kernel-parameters.txt | 9 + 1 file changed, 9 insertions(+) diff --git a/Documentation/kernel-parameter

Re: [PATCH 01/10] irqchip: irq-mips-gic: export gic_send_ipi

2015-08-24 Thread Thomas Gleixner
On Mon, 24 Aug 2015, Qais Yousef wrote: > On 08/24/2015 02:32 PM, Marc Zyngier wrote: > > I'd rather see something more "architected" than this blind export, or > > at least some level of filtering (the idea random drivers can access > > such a low-level function doesn't make me feel very good). >

Re: [PATCH v7 3/6] mm: Introduce VM_LOCKONFAULT

2015-08-24 Thread Eric B Munson
On Mon, 24 Aug 2015, Vlastimil Babka wrote: > On 08/24/2015 03:50 PM, Konstantin Khlebnikov wrote: > >On Mon, Aug 24, 2015 at 4:30 PM, Vlastimil Babka wrote: > >>On 08/24/2015 12:17 PM, Konstantin Khlebnikov wrote: > > > I am in the middle of implementing lock on fault this way, but

Re: [PATCH 01/10] irqchip: irq-mips-gic: export gic_send_ipi

2015-08-24 Thread Qais Yousef
On 08/24/2015 03:55 PM, Thomas Gleixner wrote: On Mon, 24 Aug 2015, Qais Yousef wrote: On 08/24/2015 01:49 PM, Thomas Gleixner wrote: On Mon, 24 Aug 2015, Qais Yousef wrote: Some drivers might require to send ipi to other cores. So export it. Which IPIs do you need to send from a driver whic

Re: [PATCH 3/3 v4] mm/vmalloc: Cache the vmalloc memory info

2015-08-24 Thread George Spelvin
John Stoffel wrote: >> vmap_info_gen should be initialized to 1 to force an initial >> cache update. > Blech, it should be initialized with a proper #define > VMAP_CACHE_NEEDS_UPDATE 1, instead of more magic numbers. Er... this is a joke, right? First, this number is used exactly once, and it's

Re: [PATCH] mmc: enable mmc host device to suspend/resume asynchronously

2015-08-24 Thread Fu, Zhonghui
On 2015/8/17 14:52, Adrian Hunter wrote: > On 17/08/15 06:36, Fu, Zhonghui wrote: >> Hi, >> >> Any comments are welcome. > Same comments as here: > > http://marc.info/?l=linux-kernel&m=143979428424353&w=2 Now, PM core support asynchronous device suspend/resume mode. If one device has been

Re: [PATCH] of: add vendor prefix for Socionext Inc.

2015-08-24 Thread Rob Herring
On Mon, Aug 24, 2015 at 1:57 AM, Lee Jones wrote: > On Wed, 29 Jul 2015, Masahiro Yamada wrote: > >> Signed-off-by: Masahiro Yamada >> --- >> >> Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + >> 1 file changed, 1 insertion(+) > > Patch has been around for nearly a month and is pret

[PATCH] staging/lustre: change Lustre URLs and mailing list

2015-08-24 Thread green
From: Andreas Dilger Now that the lustre.org domain has been liberated we can again use that for the main website URL and mailing list. Also update the URL for userspace tools downloads and Git repo. Signed-off-by: Andreas Dilger Signed-off-by: Oleg Drokin --- MAINTAINERS

Re: [PATCH] mtd: nand: pxa3xx-nand: prevent DFI bus lockup on removal

2015-08-24 Thread Ezequiel Garcia
On 23 Aug 09:05 PM, Robert Jarzmik wrote: > After the conversion of pxa architecture to common clock framework, the > NAND clock can be disabled on driver exit. > > In this case, it happens that if the driver used the NAND and set the > DFI arbitration bit, the next access to a static memory contr

Re: [PATCH v2] drivers/of/fdt.c: replace pr_warning by pr_warn

2015-08-24 Thread Rob Herring
On Sun, Jul 26, 2015 at 8:49 PM, Wang Long wrote: > Update the last pr_warning callsite in drivers/of. > When we use script "./scripts/checkpatch.pl" to check > a patch, using pr_warning will produce WARNING: > > WARNING: Prefer pr_warn(... to pr_warning(... > #22: FILE: drivers/of

Re: [PATCH] mmc/sdhci-acpi: enable sdhci-acpi device to suspend/resume asynchronously

2015-08-24 Thread Fu, Zhonghui
On 2015/8/17 14:51, Adrian Hunter wrote: > On 17/08/15 06:38, Fu, Zhonghui wrote: >> Hi, >> >> Any comments are welcome. > Same comments as here: > > http://marc.info/?l=linux-kernel&m=143979428424353&w=2 Now, PM core support asynchronous device suspend/resume mode. If one device has been

Re: [PATCH v2] of: Add vendor prefix for JEDEC Solid State Technology Association

2015-08-24 Thread Rob Herring
On Tue, Aug 4, 2015 at 8:11 AM, Geert Uytterhoeven wrote: > Add the "jedec" vendor prefix for the "JEDEC Solid State Technology > Association" (formerly known as the "Joint Electron Device Engineering > Council"), which is already in use in several bindings. > > Signed-off-by: Geert Uytterhoeven

Re: [PATCH] hid: enable hid device to suspend/resume asynchronously

2015-08-24 Thread Fu, Zhonghui
Hi, Any comments are welcome. Thanks, Zhonghui On 2015/8/17 23:55, Fu, Zhonghui wrote: > Enable hid device to suspend/resume asynchronously. This can improve > system suspend/resume speed. > > Signed-off-by: Zhonghui Fu > --- > drivers/hid/hid-core.c |1 + > 1 files changed, 1 insertion

Re: [PATCH] i2c: enable i2c device to suspend/resume asynchronously

2015-08-24 Thread Fu, Zhonghui
Hi, Any comments are welcome. Thanks, Zhonghui On 2015/8/18 0:07, Fu, Zhonghui wrote: > Enable i2c device to suspend/resume asynchronously. This can improve > system suspend/resume speed. > > Signed-off-by: Zhonghui Fu > --- > drivers/i2c/i2c-core.c |1 + > 1 files changed, 1 insertions

Re: [PATCH] of/address: Don't loop forever in of_find_matching_node_by_address().

2015-08-24 Thread Rob Herring
On Wed, Aug 19, 2015 at 3:17 PM, David Daney wrote: > From: David Daney > > If the internal call to of_address_to_resource() fails, we end up > looping forever in of_find_matching_node_by_address(). This can be > caused by a defective device tree, or calling with an incorrect > matches argument.

Re: [PATCH] of: Add vendor prefix for Sharp Microelectronics

2015-08-24 Thread Rob Herring
On Tue, Jul 28, 2015 at 8:25 PM, Bjorn Andersson wrote: > On Wed, Jul 1, 2015 at 10:41 AM, Rob Herring wrote: >> On Wed, Jul 1, 2015 at 7:01 AM, Thierry Reding >> wrote: >>> On Mon, Oct 13, 2014 at 01:54:09PM +0200, Thierry Reding wrote: On Fri, Aug 01, 2014 at 03:50:44PM +0200, Thierry Re

Re: [PATCH-v6 5/6] mfd: 88pm800: Set default interrupt clear method

2015-08-24 Thread Vaibhav Hiremath
On Monday 24 August 2015 07:24 PM, Lee Jones wrote: On Wed, 08 Jul 2015, Vaibhav Hiremath wrote: As per the spec, bit 1 (INT_CLEAR_MODE) of reg addr 0xe (page 0) controls the method of clearing interrupt status of 88pm800 family of devices; 0: clear on read 1: clear on write If pdata

Re: [PATCH] i2c: enable i2c adapter to suspend/resume asynchronously

2015-08-24 Thread Fu, Zhonghui
Hi, Any comments are welcome. Thanks, Zhonghui On 2015/8/18 0:17, Fu, Zhonghui wrote: > Enable i2c adapter to suspend/resume asynchronously. This can improve > system suspend/resume speed. > > Signed-off-by: Zhonghui Fu > --- > drivers/i2c/i2c-core.c |2 ++ > 1 files changed, 2 insertio

Re: [PATCH] i2c/designware: enable i2c controller to suspend/resume asynchronously

2015-08-24 Thread Fu, Zhonghui
Hi, Any comments are welcome. Thanks, Zhonghui On 2015/8/18 0:36, Fu, Zhonghui wrote: > Enable i2c controller to suspend/resume asynchronously. This can improve > system suspend/resume speed. > > Signed-off-by: Zhonghui Fu > --- > drivers/i2c/busses/i2c-designware-platdrv.c |1 + > 1 fi

Re: [PATCH] doc: Add more workqueue functions to the documentation

2015-08-24 Thread Tim Bird
On 08/15/2015 06:27 AM, Jonathan Corbet wrote: > On Fri, 14 Aug 2015 15:46:52 -0700 > Tim Bird wrote: > >>> It sure would be nice if changes like this were accompanied by a patch >>> fixing the additional warnings it drags in ... :) In this case I've put >>> something together for workqueue.h

Re: [PATCH] kernel/sysctl.c: If "count" including the terminating byte '\0' the write system call should retrun success.

2015-08-24 Thread Sean Fu
On Mon, Aug 24, 2015 at 8:27 PM, Eric W. Biederman wrote: > > > On August 24, 2015 1:56:13 AM PDT, Sean Fu wrote: >>when the input argument "count" including the terminating byte "\0", >>The write system call return EINVAL on proc file. >>But it return success on regular file. > > Nonsense. It w

[PATCH v3 1/1] USB:option:add ZTE PIDs

2015-08-24 Thread Liu.Zhao
This is intended to add ZTE device PIDs on kernel. Signed-off-by: Liu.Zhao --- drivers/usb/serial/option.c | 24 1 file changed, 24 insertions(+) diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index 876423b..6b4a766 100644 --- a/drivers/usb/seria

Re: [PATCH v2 0/8] Add rcu_sync infrastructure to avoid _expedited() in percpu-rwsem

2015-08-24 Thread Oleg Nesterov
On 08/22, Paul E. McKenney wrote: > > Queued for testing, thank you, Oleg! Thanks Paul! > Right now, this is mostly relying on 0day and -next testing. Any thoughts > for a useful torture test for this? Right now I do not have any idea how to write the meaningful test for rcu_sync... Perhaps som

Re: [PATCH RESEND] sched/nohz: Affine unpinned timers to housekeepers

2015-08-24 Thread Paul E. McKenney
On Mon, Aug 24, 2015 at 04:04:37PM +0200, Frederic Weisbecker wrote: > On Mon, Aug 24, 2015 at 06:50:18AM -0700, Paul E. McKenney wrote: > > On Mon, Aug 24, 2015 at 08:44:12AM +0200, Ingo Molnar wrote: > > > > > > * Paul E. McKenney wrote: > > > > > > > > here it's fully set - triggering the bug

Re: [PATCH v2 5/5] arm64: add KASan support

2015-08-24 Thread Vladimir Murzin
On 24/08/15 15:15, Andrey Ryabinin wrote: > 2015-08-24 16:45 GMT+03:00 Linus Walleij : >> On Mon, Aug 24, 2015 at 3:15 PM, Russell King - ARM Linux >> wrote: >>> On Tue, Jul 21, 2015 at 11:27:56PM +0200, Linus Walleij wrote: On Tue, Jul 21, 2015 at 4:27 PM, Andrey Ryabinin wrote:

[Internal PATCH] ipmi: add of_device_id in MODULE_DEVICE_TABLE

2015-08-24 Thread Brijesh Singh
Fix autoloading ipmi modules when using device tree. Signed-off-by: Brijesh Singh --- drivers/char/ipmi/ipmi_si_intf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c index 8a45e92..cddc7b0 100644 --- a/drivers/char/ipmi/ipm

Re: [PATCH v7 3/6] mm: Introduce VM_LOCKONFAULT

2015-08-24 Thread Konstantin Khlebnikov
On Mon, Aug 24, 2015 at 6:09 PM, Eric B Munson wrote: > On Mon, 24 Aug 2015, Vlastimil Babka wrote: > >> On 08/24/2015 03:50 PM, Konstantin Khlebnikov wrote: >> >On Mon, Aug 24, 2015 at 4:30 PM, Vlastimil Babka wrote: >> >>On 08/24/2015 12:17 PM, Konstantin Khlebnikov wrote: >> >> >> >>

Re: [PATCHv3 4/5] mm: make compound_head() robust

2015-08-24 Thread Vlastimil Babka
On 08/21/2015 09:34 PM, Andrew Morton wrote: On Fri, 21 Aug 2015 22:31:09 +0300 "Kirill A. Shutemov" wrote: On Fri, Aug 21, 2015 at 11:11:27AM -0500, Christoph Lameter wrote: On Fri, 21 Aug 2015, Kirill A. Shutemov wrote: Is this really true? For example if it's a slab page, will that pag

Re: [PATCH 3/3] sched: Implement interface for cgroup unified hierarchy

2015-08-24 Thread Austin S Hemmelgarn
On 2015-08-22 14:29, Tejun Heo wrote: Hello, Paul. On Fri, Aug 21, 2015 at 12:26:30PM -0700, Paul Turner wrote: ... A very concrete example of the above is a virtual machine in which you want to guarantee scheduling for the vCPU threads which must schedule beside many hypervisor support threads

Re: [PATCH-v6 5/6] mfd: 88pm800: Set default interrupt clear method

2015-08-24 Thread Lee Jones
On Mon, 24 Aug 2015, Vaibhav Hiremath wrote: > > > On Monday 24 August 2015 07:24 PM, Lee Jones wrote: > >On Wed, 08 Jul 2015, Vaibhav Hiremath wrote: > > > >>As per the spec, bit 1 (INT_CLEAR_MODE) of reg addr 0xe > >>(page 0) controls the method of clearing interrupt > >>status of 88pm800 fami

Re: [PATCH v7 3/6] mm: Introduce VM_LOCKONFAULT

2015-08-24 Thread Eric B Munson
On Mon, 24 Aug 2015, Konstantin Khlebnikov wrote: > On Mon, Aug 24, 2015 at 6:09 PM, Eric B Munson wrote: > > On Mon, 24 Aug 2015, Vlastimil Babka wrote: > > > >> On 08/24/2015 03:50 PM, Konstantin Khlebnikov wrote: > >> >On Mon, Aug 24, 2015 at 4:30 PM, Vlastimil Babka wrote: > >> >>On 08/24/20

Re: [PATCH 3/3 v4] mm/vmalloc: Cache the vmalloc memory info

2015-08-24 Thread John Stoffel
George> John Stoffel wrote: >>> vmap_info_gen should be initialized to 1 to force an initial >>> cache update. >> Blech, it should be initialized with a proper #define >> VMAP_CACHE_NEEDS_UPDATE 1, instead of more magic numbers. George> Er... this is a joke, right? Not really. The comment mad

Re: [PATCH v2 5/5] arm64: add KASan support

2015-08-24 Thread Andrey Ryabinin
2015-08-24 18:44 GMT+03:00 Vladimir Murzin : > > Another option would be having "sparse" shadow memory based on page > extension. I did play with that some time ago based on ideas from > original v1 KASan support for x86/arm - it is how 614be38 "irqchip: > gic-v3: Fix out of bounds access to cpu_lo

Re: [PATCH 7/7] ipmi/kcs: Don't run the KCS state machine when it is KCS_IDLE

2015-08-24 Thread Corey Minyard
On 08/23/2015 08:52 PM, 河合英宏 / KAWAI,HIDEHIRO wrote: >> From: Corey Minyard [mailto:tcminy...@gmail.com] On Behalf Of Corey Minyard >> >> On 08/17/2015 09:54 PM, 河合英宏 / KAWAI,HIDEHIRO wrote: From: Corey Minyard [mailto:tcminy...@gmail.com] On Behalf Of Corey Minyard This patch will b

Re: [PATCH 3.12 00/82] 3.12.47-stable review

2015-08-24 Thread Guenter Roeck
On 08/24/2015 02:09 AM, Jiri Slaby wrote: This is the start of the stable review cycle for the 3.12.47 release. There are 82 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by W

RE: [PATCH v8 1/2] irqchip: imx-gpcv2: IMX GPCv2 driver for wakeup sources

2015-08-24 Thread Shenwei Wang
> -Original Message- > From: Thomas Gleixner [mailto:t...@linutronix.de] > Sent: 2015年8月23日 5:58 > To: Wang Shenwei-B38339 > Cc: shawn@linaro.org; ja...@lakedaemon.net; > linux-arm-ker...@lists.infradead.org; linux-kernel@vger.kernel.org; Huang > Yongcai-B20788 > Subject: Re: [PATCH v

Re: [RESEND][PATCH 4/4] ARM: dts: keystone: Add ti,keystone-spi for SPI

2015-08-24 Thread santosh shilimkar
On 8/24/2015 6:36 AM, Franklin S Cooper Jr. wrote: Hi Santosh, All the patches except this one are in linux-next. Yes I noticed it. I will queue this up for next merge window. Thanks for reminder. Regards, Santosh -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in t

Re: [PATCH v2 5/5] arm64: add KASan support

2015-08-24 Thread Vladimir Murzin
On 24/08/15 17:00, Andrey Ryabinin wrote: > 2015-08-24 18:44 GMT+03:00 Vladimir Murzin : >> >> Another option would be having "sparse" shadow memory based on page >> extension. I did play with that some time ago based on ideas from >> original v1 KASan support for x86/arm - it is how 614be38 "irqch

Re: [PATCH v3 06/14] Documentation: drm/bridge: add document for analogix_dp

2015-08-24 Thread Heiko Stuebner
Am Montag, 24. August 2015, 09:48:27 schrieb Rob Herring: > On Mon, Aug 24, 2015 at 7:57 AM, Russell King - ARM Linux > > When we adopted the graph bindings for iMX DRM, I thought exactly at that > > time "it would be nice if this could become the standard for binding DRM > > components together" b

Re: [PATCH v2 5/5] arm64: add KASan support

2015-08-24 Thread Andrey Ryabinin
2015-08-24 19:16 GMT+03:00 Vladimir Murzin : > On 24/08/15 17:00, Andrey Ryabinin wrote: >> 2015-08-24 18:44 GMT+03:00 Vladimir Murzin : >>> >>> Another option would be having "sparse" shadow memory based on page >>> extension. I did play with that some time ago based on ideas from >>> original v1

Re: [PATCH 2/2] ubifs: Allow O_DIRECT

2015-08-24 Thread Brian Norris
On Mon, Aug 24, 2015 at 10:13:25AM +0300, Artem Bityutskiy wrote: > Now, some user-space fails when direct I/O is not supported. I think the whole argument rested on what it means when "some user space fails"; apparently that "user space" is just a test suite (which can/should be fixed). > We can

Re: [PATCH v7 3/6] mm: Introduce VM_LOCKONFAULT

2015-08-24 Thread Konstantin Khlebnikov
On Mon, Aug 24, 2015 at 6:55 PM, Eric B Munson wrote: > On Mon, 24 Aug 2015, Konstantin Khlebnikov wrote: > >> On Mon, Aug 24, 2015 at 6:09 PM, Eric B Munson wrote: >> > On Mon, 24 Aug 2015, Vlastimil Babka wrote: >> > >> >> On 08/24/2015 03:50 PM, Konstantin Khlebnikov wrote: >> >> >On Mon, Aug

[PATCH v9] dmaengine: Add Xilinx AXI Direct Memory Access Engine driver support

2015-08-24 Thread Kedareswara rao Appana
This is the driver for the AXI Direct Memory Access (AXI DMA) core, which is a soft Xilinx IP core that provides high- bandwidth direct memory access between memory and AXI4-Stream type target peripherals. Signed-off-by: Kedareswara rao Appana --- The deivce tree doc got applied in the slave-dmae

Re: [RFC] sdhci: fix DMA leaks [was: [SHDCI] Heavy (thousands) DMA leaks]

2015-08-24 Thread Laura Abbott
On 08/06/2015 02:17 AM, Chen Bough wrote: I will format a patch based on your diff file firstly. I will test this on my side, If any issue, like dma issue or performance issue, I will add some modification. Then I will send the patch for review, and you can test the patch on your platform. Bes

Re: [PATCH v4] pinctrl: mediatek: Implement wake handler and suspend resume

2015-08-24 Thread Sudeep Holla
On 14/08/15 09:38, maoguang.m...@mediatek.com wrote: From: Maoguang Meng This patch implement irq_set_wake to get who is wakeup source and setup on suspend resume. Signed-off-by: Maoguang Meng --- changes since v3: -add a comment in mtk_eint_chip_read_mask. -delete ALIGN when allocate eint

Re: [PATCH] irqchip, gicv3-its, numa: Workaround for Cavium ThunderX erratum 23144

2015-08-24 Thread Ganapatrao Kulkarni
Hi Marc, thanks for the suggestions. On Mon, Aug 24, 2015 at 7:17 PM, Marc Zyngier wrote: > On 24/08/15 14:27, Ganapatrao Kulkarni wrote: >> On Mon, Aug 24, 2015 at 6:15 PM, Marc Zyngier wrote: > >> static void its_enable_cavium_thunderx(void *data) >> { >> - struct its_node *

  1   2   3   4   5   6   7   8   9   10   >