[RFC] ext4: fix a BUG in ext4_mpage_readpages()

2015-11-03 Thread yalin wang
The last block should be the total read pages last block, need adjust the block number when caculate every page. Signed-off-by: yalin wang --- fs/ext4/readpage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ext4/readpage.c b/fs/ext4/readpage.c index 5dc5e95..d20c39d 100

Re: [PATCH v2 2/2] watchdog: imx2_wdt: add set_pretimeout interface

2015-11-03 Thread Robin Gong
On Tue, Nov 03, 2015 at 09:26:16AM -0800, Guenter Roeck wrote: > On 11/03/2015 12:04 AM, Robin Gong wrote: > >On Mon, Nov 02, 2015 at 11:48:29PM -0800, Guenter Roeck wrote: > >>On 11/02/2015 10:11 PM, Robin Gong wrote: > >>>Enable set_pretimeout interface and trigger the pretimeout interrupt before

Re: [PATCH v7,1/3] dt-bindings: binding for jz4780-{nand,bch}

2015-11-03 Thread Boris Brezillon
Hi Harvey, On Tue, 6 Oct 2015 17:27:15 +0100 Harvey Hunt wrote: > From: Alex Smith > > Add DT bindings for NAND devices connected to the NEMC on JZ4780 SoCs, > as well as the hardware BCH controller, used by the jz4780_{nand,bch} > drivers. Patch 3 does not seem to follow this binding: it sti

Re: [PATCH v1] Revert "serial: imx: remove unbalanced clk_prepare"

2015-11-03 Thread Robin Gong
On Wed, Nov 04, 2015 at 01:39:17AM -0200, Fabio Estevam wrote: > On Wed, Nov 4, 2015 at 12:58 AM, Robin Gong wrote: > > commit 9e7b399d6528 ("serial: imx: remove unbalanced clk_prepare"). > > Otherwise below warning happen since there are some printk logs in > > interrupt. > > This has already be

RE: [PATCH v7] PCI: Xilinx-NWL-PCIe: Added support for Xilinx NWL PCIe Host Controller

2015-11-03 Thread Bharat Kumar Gogada
> > Without #ifdefs if we compile driver for legacy, MSI structures will not be > available and we get compile time error. > > Sorry for nitpicking but at least can we use elegant version of #ifdefs .i.e. > #if > IS_ENABLED() here ? > Since IS_ENABLED() is checked at runtime, compile time error

Re: [PATCH v7,3/3] MIPS: dts: jz4780/ci20: Add NEMC, BCH and NAND device tree nodes

2015-11-03 Thread Boris Brezillon
Paul, Harvey, On Fri, 16 Oct 2015 11:48:48 +0100 Paul Burton wrote: > On Fri, Oct 16, 2015 at 11:31:12AM +0100, James Hogan wrote: > > > >> + > > > >> +&nemc { > > > >> + status = "okay"; > > > >> + > > > >> + nand: nand@1 { > > > >> + compatible = "ingenic,jz4780-nand"; > >

Re: [PATCH v4 3/6] arm64: ftrace: fix a stack tracer's output under function graph tracer

2015-11-03 Thread AKASHI Takahiro
On 11/01/2015 05:00 PM, Jungseok Lee wrote: On Oct 30, 2015, at 2:25 PM, AKASHI Takahiro wrote: Hi Akashi, Function graph tracer modifies a return address (LR) in a stack frame to hook a function return. This will result in many useless entries (return_to_handler) showing up in a stack tracer'

Re: [PATCH] tmpfs: avoid a little creat and stat slowdown

2015-11-03 Thread Huang, Ying
Hugh Dickins writes: > LKP reports that v4.2 commit afa2db2fb6f1 ("tmpfs: truncate prealloc > blocks past i_size") causes a 14.5% slowdown in the AIM9 creat-clo > benchmark. > > creat-clo does just what you'd expect from the name, and creat's O_TRUNC > on 0-length file does indeed get into more o

Re: Mobility Radeon HD 4530/4570/545v: flicker in 1920x1080

2015-11-03 Thread Christian König
On 04.11.2015 00:03, Pavel Machek wrote: Hi! Any ideas? Alex probably knows more about this, but it sounds like problems with switching the memory clocks on 3D load. Try to disable power management completely with radeon.dpm=0 on the kernel command line or nailing the hardware at a specific p

Re: [PATCH v7] PCI: Xilinx-NWL-PCIe: Added support for Xilinx NWL PCIe Host Controller

2015-11-03 Thread Amit Tomer
> Without #ifdefs if we compile driver for legacy, MSI structures will not be > available and we get compile time error. Sorry for nitpicking but at least can we use elegant version of #ifdefs .i.e. #if IS_ENABLED() here ? Thanks, Amit. -- To unsubscribe from this list: send the line "unsubscrib

Re: [PATCH] dmaengine: edma: fix build without CONFIG_OF

2015-11-03 Thread Peter Ujfalusi
On 11/03/2015 04:00 PM, Arnd Bergmann wrote: > During the edma rework, a build error was introduced for the > case that CONFIG_OF is disabled: > > drivers/built-in.o: In function `edma_tc_set_pm_state': > :(.text+0x43bf0): undefined reference to `of_find_device_by_node' > > As the edma_tc_set_pm_

[PATCH] h8300: Initialize cleanup and remove module code

2015-11-03 Thread Yoshinori Sato
h8300's clocksource driver cleanup. - Use CLOCKSOURCE_OF_DECLARE - Remove module exit Signed-off-by: Yoshinori Sato --- drivers/clocksource/h8300_timer16.c | 133 - drivers/clocksource/h8300_timer8.c | 164 ++-- drivers/clocksource/h83

Re: [PATCH v5 0/4] Exynos SROMc configuration and Ethernet support for SMDK5410

2015-11-03 Thread Krzysztof Kozlowski
On 03.11.2015 18:16, Pavel Fedin wrote: > This patch extends Exynos SROM controller driver with ability to configure > controller outputs and enables SMSC9115 Ethernet chip on SMDK5410 board, > which is connected via SROMc bank #3. > > With this patchset, support for the whole existing SMDK range

[PATCH] mm: change tlb_finish_mmu() to be more simple

2015-11-03 Thread yalin wang
This patch remove unneeded *next temp variable, make this function more simple to read. Signed-off-by: yalin wang --- mm/memory.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mm/memory.c b/mm/memory.c index 7f3b9f2..f0040ed 100644 --- a/mm/memory.c +++ b/mm/memory.c

Re: [PATCH] perf sched latency: Fix removed thread issue

2015-11-03 Thread Jiri Olsa
On Tue, Nov 03, 2015 at 03:33:10PM -0300, Arnaldo Carvalho de Melo wrote: > Em Tue, Nov 03, 2015 at 08:41:48AM +0100, Jiri Olsa escreveu: > > On Mon, Nov 02, 2015 at 07:53:53PM -0300, Arnaldo Carvalho de Melo wrote: > > > Em Mon, Nov 02, 2015 at 12:10:25PM +0100, Jiri Olsa escreveu: > > > > If mach

[PATCH] rtc: Group Kconfig entries by vendor

2015-11-03 Thread Soren Brinkmann
The RTC entries are mostly grouped by vendor. Move the few outliers in place. Also, change the one occurrence of 'nxp' to 'NXP' to make all NXP entries consistent. Signed-off-by: Soren Brinkmann --- drivers/rtc/Kconfig | 90 ++--- 1 file changed, 4

HELLO

2015-11-03 Thread
I am Sgt Monica Brown and am with the US Army in Afghanistan. I need your assistance in a private project that will be beneficial to the both of us. Get back to me if you can be of help. --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus --

Re: [PATCH] Documentation: dt: Add bindings for Secure-only devices

2015-11-03 Thread Frank Rowand
On 10/30/2015 1:07 PM, Peter Maydell wrote: > On 30 October 2015 at 18:28, Rob Herring wrote: >> On Thu, Oct 29, 2015 at 9:01 AM, Peter Maydell >> wrote: >>> +Valid Secure world properties: >>> + >>> +- secure-status : specifies whether the device is present and usable >>> + in the secure world

Re: [PATCH] arm64: bpf: fix div-by-zero case

2015-11-03 Thread Xi Wang
On Tue, Nov 3, 2015 at 10:56 PM, Zi Shen Lim wrote: > case BPF_ALU | BPF_DIV | BPF_X: > case BPF_ALU64 | BPF_DIV | BPF_X: > + { > + const u8 r0 = bpf2a64[BPF_REG_0]; > + > + /* if (src == 0) return 0 */ > + jmp_offset = 3; /* skip ahe

Re: [RFC] namei: prevent sgid-hardlinks for unmapped gids

2015-11-03 Thread Willy Tarreau
On Tue, Nov 03, 2015 at 03:29:55PM -0800, Kees Cook wrote: > Using "write" does kill the set-gid bit. I haven't looked at > why. > Al or anyone else, is there a meaningful distinction here? I remember this one, I got caught once while trying to put a shell into a suid-writable file to get some pri

Re: [PATCH] mm: Introduce kernelcore=reliable option

2015-11-03 Thread Kamezawa Hiroyuki
On 2015/10/31 4:42, Luck, Tony wrote: If each memory controller has the same distance/latency, you (your firmware) don't need to allocate reliable memory per each memory controller. If distance is problem, another node should be allocated. ...is the behavior(splitting zone) really required ?

[PATCH] arm64: bpf: fix div-by-zero case

2015-11-03 Thread Zi Shen Lim
In the case of division by zero in a BPF program: A = A / X; (X == 0) the expected behavior is to terminate with return value 0. This is confirmed by the test case introduced in commit 86bf1721b226 ("test_bpf: add tests checking that JIT/interpreter sets A and X to 0."). Reported-by: Shi

Re: [PATCH 0/3] cpuidle: small improvements & fixes for menu governor

2015-11-03 Thread Joe Perches
On Wed, 2015-11-04 at 00:03 +0100, Rafael J. Wysocki wrote: > On 11/3/2015 11:35 PM, Rik van Riel wrote: > > On 11/03/2015 05:05 PM, Rafael J. Wysocki wrote: > > > On 10/28/2015 11:46 PM, r...@redhat.com wrote: > > > > While working on a paravirt cpuidle driver for KVM guests, I > > > > noticed a n

RE: [PATCH v7] PCI: Xilinx-NWL-PCIe: Added support for Xilinx NWL PCIe Host Controller

2015-11-03 Thread Bharat Kumar Gogada
> > +static struct msi_domain_info nwl_msi_domain_info = { > > + .flags = (MSI_FLAG_USE_DEF_DOM_OPS | > MSI_FLAG_USE_DEF_CHIP_OPS | > > + MSI_FLAG_MULTI_PCI_MSI), > > If you're supporting multi-MSI, how do you ensure that all hwirqs are > contiguous as required by the spec? Clearly,

linux-next: Tree for Nov 4

2015-11-03 Thread Stephen Rothwell
Hi all, Please do *not* add any material intended for v4.5 to your linux-next included branches until after v4.4-rc1 has been released. Changes since 20151103: The battery tree still had its build failure so I used the version from next-20150925. The mailbox tree still had its build failure so

linux-next: manual merge of the akpm tree with the drm tree

2015-11-03 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm tree got a conflict in: drivers/gpu/drm/nouveau/nouveau_ttm.c between commits: 524883bb4846 ("drm/nouveau/ttm: convert to DMA API") b31cf78b9324 ("drm/nouveau/ttm: set the DMA mask for platform devices") from the drm tree and patch: "nou

Re: [RFC PATCH 0/3] CFS idle injection

2015-11-03 Thread Eduardo Valentin
Hello Jacob, On Mon, Nov 02, 2015 at 04:10:25PM -0800, Jacob Pan wrote: > Hi Peter and all, > > A while ago, we had discussion about how powerclamp is broken in the > sense of turning off idle ticks in the forced idle period. > https://lkml.org/lkml/2014/12/18/369 > > It was suggested to replace

Re: [PATCH v2 01/13] mm: support madvise(MADV_FREE)

2015-11-03 Thread Daniel Micay
On 04/11/15 12:53 AM, Daniel Micay wrote: >> In the common case it will be passed many pages by the allocator. There >> will still be a layer of purging logic on top of MADV_FREE but it can be >> much thinner than the current workarounds for MADV_DONTNEED. So the >> allocator would still be coalesc

Re: [PATCHSET 0/4] perf report: Support folded callchain output (v4)

2015-11-03 Thread Brendan Gregg
On Tue, Nov 3, 2015 at 5:54 PM, Namhyung Kim wrote: > Hi Brendan, > > On Tue, Nov 03, 2015 at 01:33:43PM -0800, Brendan Gregg wrote: >> On Tue, Nov 3, 2015 at 6:40 AM, Arnaldo Carvalho de Melo >> wrote: >> > Em Tue, Nov 03, 2015 at 09:52:07PM +0900, Namhyung Kim escreveu: >> >> Hello, >> >> >> >>

Re: [PATCH v2 1/7] staging: lustre: remove white space in libcfs_hash.h

2015-11-03 Thread Greg Kroah-Hartman
On Mon, Nov 02, 2015 at 12:22:07PM -0500, James Simmons wrote: > Cleanup all the unneeded white space in libcfs_hash.h. > > Signed-off-by: James Simmons > --- > .../lustre/include/linux/libcfs/libcfs_hash.h | 135 > ++-- > 1 files changed, 70 insertions(+), 65 deletions(-)

Re: [PATCH] Staging: comedi: ssc_dnp: fixed a comment style

2015-11-03 Thread Greg KH
On Fri, Oct 30, 2015 at 06:46:20PM +0100, Philippe Loctaux wrote: > Fixed a comment issue. > > Signed-off-by: Philippe Loctaux > --- > drivers/staging/comedi/drivers/ssv_dnp.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/staging/comedi/drivers/ssv_dnp.c >

Re: [PATCH v2 01/13] mm: support madvise(MADV_FREE)

2015-11-03 Thread Daniel Micay
> In the common case it will be passed many pages by the allocator. There > will still be a layer of purging logic on top of MADV_FREE but it can be > much thinner than the current workarounds for MADV_DONTNEED. So the > allocator would still be coalescing dirty ranges and only purging when > the r

[lkp] [f5f3497cad] 8678414074: Fixed kernel test crashed

2015-11-03 Thread kernel test robot
FYI, we noticed the below changes on https://github.com/0day-ci/linux Matt-Fleming/x86-setup-Fix-recent-boot-crash-on-32-bit-SMP-machines/20151103-221445 commit 867841407423402e594463cbdddc800f1c5f7b6f ("f5f3497cad: BUG: kernel boot cr

Re: [PATCH v2 01/13] mm: support madvise(MADV_FREE)

2015-11-03 Thread Daniel Micay
> Does this set the write protect bit? > > What happens on architectures without hardware dirty tracking? It's supposed to avoid needing page faults when the data is accessed again, but it can just be implemented via page faults on architectures without a way to check for access or writes. MADV_D

Re: [PATCH v1 1/4] Crypto: Crypto driver support aes/des/des3 for rk3288

2015-11-03 Thread Zain
Hi LABBE, On 2015年11月03日 16:59, LABBE Corentin wrote: > On Tue, Nov 03, 2015 at 01:52:05PM +0800, Zain Wang wrote: >> Crypto driver support cbc/ecb two chainmode, and aes/des/des3 three cipher >> mode. >> The names registered are: >> ecb(aes) cbc(aes) ecb(des) cbc(des) ecb(des3_ede) cbc(des3_e

[lkp] [f2fs] 60b99b486b: +1.9% fileio.requests_per_sec

2015-11-03 Thread kernel test robot
FYI, we noticed the below changes on https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master commit 60b99b486b568c13cbb7caa83cf8a12af7665f1e ("f2fs: introduce a periodic checkpoint flow")

Re: [PATCH V3 2/3] perf/powerpc :add support for sampling intr machine state

2015-11-03 Thread Madhavan Srinivasan
On Tuesday 03 November 2015 02:46 PM, Michael Ellerman wrote: > On Tue, 2015-11-03 at 11:40 +0530, Anju T wrote: > >> The perf infrastructure uses a bit mask to find out >> valid registers to display. Define a register mask >> for supported registers defined in asm/perf_regs.h. >> The bit positio

[GIT PULL] Thermal-SoC management updates for v4.4-rc1 #2

2015-11-03 Thread Eduardo Valentin
Hello Rui, Please pull from git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal linus to receive second Thermal-SoC Management updates for v4.4-rc1 with top-most 7e38a5b1daa12cbaace3c76402999a84460df3e2: thermal: rockchip: support the sleep pinctrl state to avoid glitc

[PATCH v2 0/2] Stop Intel Processor Trace logging on panic

2015-11-03 Thread Takao Indoh
Hi all, These patch series provide a feature to stop Intel Processor Trace (Intel PT) logging and save its registers in the memory on panic. Intel PT is a new feature of Intel CPU "Broadwell", it captures information about program execution flow. Here is a article about Intel PT. https://software

[PATCH v2 1/2] perf/x86/intel/pt: Add interface to stop Intel PT logging

2015-11-03 Thread Takao Indoh
This patch add a function for external component to stop Intel PT. Basically this function is used when kernel panic occurs. When it is called, intel_pt driver disables Intel PT and saves its registers using pt_event_stop, which is also used by pmu.stop handler. This function stops Intel PT on the

[PATCH v2 2/2] x86: Stop Intel PT before kdump starts

2015-11-03 Thread Takao Indoh
This patch stops Intel PT logging and saves its registers in the memory before kdump is started. This feature is needed to prevent Intel PT from overwrite its log buffer after panic, and saved registers are needed to find the last position where Intel PT wrote data. After crash dump is captured by

Re: [PATCH V3 2/3] perf/powerpc :add support for sampling intr machine state

2015-11-03 Thread Anju T
Hi Michael, On Tuesday 03 November 2015 02:46 PM, Michael Ellerman wrote: On Tue, 2015-11-03 at 11:40 +0530, Anju T wrote: The perf infrastructure uses a bit mask to find out valid registers to display. Define a register mask for supported registers defined in asm/perf_regs.h. The bit positions

perf related lockdep bug

2015-11-03 Thread Dave Jones
This is new to me since todays merge window. Dave [ 293.955261] == [ 293.955395] [ INFO: possible circular locking dependency detected ] [ 293.955536] 4.3.0-think+ #3 Not tainted [ 293.955618]

Re: kernel panic in 4.2.3, rb_erase in sch_fq

2015-11-03 Thread Denys Fedoryshchenko
On 2015-11-04 06:58, Eric Dumazet wrote: On Tue, 2015-11-03 at 20:46 -0800, Eric Dumazet wrote: On Wed, 2015-11-04 at 06:25 +0200, Denys Fedoryshchenko wrote: > On 2015-11-04 00:06, Cong Wang wrote: > > On Mon, Nov 2, 2015 at 6:11 AM, Denys Fedoryshchenko > > wrote: > >> Hi! > >> > >> Actually

RE: [PATCH v1] Revert "serial: imx: remove unbalanced clk_prepare"

2015-11-03 Thread Duan Andy
From: Robin Gong Sent: Wednesday, November 04, 2015 10:58 AM > To: gre...@linuxfoundation.org; edubez...@gmail.com > Cc: Duan Fugang-B38611; linux-ser...@vger.kernel.org; linux- > ker...@vger.kernel.org > Subject: [PATCH v1] Revert "serial: imx: remove unbalanced clk_prepare" > > commit 9e7b399d

Re: [PATCH] crypto: qce: dma_map_sg can handle chained SG

2015-11-03 Thread Herbert Xu
On Tue, Nov 03, 2015 at 01:36:55PM +0100, LABBE Corentin wrote: > > Herbert, do you prefer to drop the patch series and I send an updated one, or > does I will send a new patch series for checking the return value of > sg_nents_for_len() ? Your patch has already been applied so please send any f

Re: kernel panic in 4.2.3, rb_erase in sch_fq

2015-11-03 Thread Eric Dumazet
On Tue, 2015-11-03 at 20:46 -0800, Eric Dumazet wrote: > On Wed, 2015-11-04 at 06:25 +0200, Denys Fedoryshchenko wrote: > > On 2015-11-04 00:06, Cong Wang wrote: > > > On Mon, Nov 2, 2015 at 6:11 AM, Denys Fedoryshchenko > > > wrote: > > >> Hi! > > >> > > >> Actually seems i was getting this pani

Re: [PATCH v2 1/5] spi: introduce mmap read support for spi flash devices

2015-11-03 Thread Vignesh R
Hi, On 11/03/2015 04:49 PM, Michal Suchanek wrote: > On 3 November 2015 at 11:06, Vignesh R wrote: >> In addition to providing direct access to SPI bus, some spi controller >> hardwares (like ti-qspi) provide special memory mapped port >> to accesses SPI flash devices in order to increase read pe

Re: kernel panic in 4.2.3, rb_erase in sch_fq

2015-11-03 Thread Eric Dumazet
On Wed, 2015-11-04 at 06:25 +0200, Denys Fedoryshchenko wrote: > On 2015-11-04 00:06, Cong Wang wrote: > > On Mon, Nov 2, 2015 at 6:11 AM, Denys Fedoryshchenko > > wrote: > >> Hi! > >> > >> Actually seems i was getting this panic for a while (once per week) on > >> loaded pppoe server, but just n

Re: [PATCH 4/4] locking: Introduce smp_cond_acquire()

2015-11-03 Thread Linus Torvalds
On Tue, Nov 3, 2015 at 7:57 PM, Paul E. McKenney wrote: > > Thank you, and yes, it clearly states that read-to-write dependencies > are ordered. Well, I wouldn't say that it's exactly "clear". The fact that they explicitly say "Note that the DP relation does not directly impose a BEFORE (⇐) orde

Re: [PATCH v3] perf: fix RCU issues with cgroup monitoring mode

2015-11-03 Thread kbuild test robot
Hi Stephane, [auto build test WARNING on: tip/perf/core] [also build test WARNING on: v4.3 next-20151103] url: https://github.com/0day-ci/linux/commits/Stephane-Eranian/perf-fix-RCU-issues-with-cgroup-monitoring-mode/20151104-121512 config: i386-randconfig-i0-201544 (attached as .config

Re: [PATCH v3] perf: fix RCU issues with cgroup monitoring mode

2015-11-03 Thread kbuild test robot
Hi Stephane, [auto build test ERROR on: tip/perf/core] [also build test ERROR on: v4.3 next-20151103] url: https://github.com/0day-ci/linux/commits/Stephane-Eranian/perf-fix-RCU-issues-with-cgroup-monitoring-mode/20151104-121512 config: parisc-allyesconfig (attached as .config) reproduce

Re: kernel panic in 4.2.3, rb_erase in sch_fq

2015-11-03 Thread Denys Fedoryshchenko
On 2015-11-04 00:06, Cong Wang wrote: On Mon, Nov 2, 2015 at 6:11 AM, Denys Fedoryshchenko wrote: Hi! Actually seems i was getting this panic for a while (once per week) on loaded pppoe server, but just now was able to get full panic message. After checking commit logs on sch_fq.c i didnt seen

Re: [GIT PULL] locking changes for v4.4

2015-11-03 Thread Paul E. McKenney
On Tue, Nov 03, 2015 at 05:30:29PM -0800, Linus Torvalds wrote: > On Tue, Nov 3, 2015 at 3:58 PM, Linus Torvalds > wrote: > > > > I think I'll pull this, but then just make a separate commit to remove > > all the bogus games with "control" dependencies that seem to have no > > basis is reality. >

[PATCH v3] perf: fix RCU issues with cgroup monitoring mode

2015-11-03 Thread Stephane Eranian
This patch eliminates RCU violations detected by the RCU checker (PROVE_RCU). The impact code paths were all related to cgroup mode monitoring and involved access a task's cgrp. V2 is updated to include comments from PeterZ to eliminate some of the warnings without grabbing the rcu_read lock beca

[PATCH v2 net-next] net/core: ensure features get disabled on new lower devs

2015-11-03 Thread Jarod Wilson
With moving netdev_sync_lower_features() after the .ndo_set_features calls, I neglected to verify that devices added *after* a flag had been disabled on an upper device were properly added with that flag disabled as well. This currently happens, because we exit __netdev_update_features() when we se

[PATCH] mailbox: mailbox-test: avoid reading iomem twice

2015-11-03 Thread jaswinder . singh
From: Jassi Brar Don't pass mmio region as source to print_hex_dump() and then again to memcpy_fromio(). Do it once and give print_hex_dump() the buffer we just read the data in. Signed-off-by: Jassi Brar --- drivers/mailbox/mailbox-test.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletion

Re: [PATCH 4/4] locking: Introduce smp_cond_acquire()

2015-11-03 Thread Paul E. McKenney
On Tue, Nov 03, 2015 at 11:40:24AM -0800, Linus Torvalds wrote: > On Mon, Nov 2, 2015 at 5:57 PM, Paul E. McKenney > wrote: [ . . . ] > > I am in India and my Alpha Architecture Manual is in the USA. > > I sent you a link to something that should work, and that has the section. Thank you, and

Re: [PATCH V4] usb: remove unnecessary CONFIG_PM dependency from USB_OTG

2015-11-03 Thread Felipe Balbi
Hi, Peter Chen writes: > On Tue, Nov 03, 2015 at 07:56:55AM -0600, Felipe Balbi wrote: >> >> Hi, >> >> Nathan Sullivan writes: >> > The USB OTG support currently depends on power management >> > (CONFIG_PM) being enabled, but does not actually need it enabled. >> > Remove this dependency. >>

Re: [PATCH v2 01/13] mm: support madvise(MADV_FREE)

2015-11-03 Thread Andy Lutomirski
On Nov 3, 2015 5:30 PM, "Minchan Kim" wrote: > > Linux doesn't have an ability to free pages lazy while other OS already > have been supported that named by madvise(MADV_FREE). > > The gain is clear that kernel can discard freed pages rather than swapping > out or OOM if memory pressure happens. >

Re: [PATCH v1] Revert "serial: imx: remove unbalanced clk_prepare"

2015-11-03 Thread Fabio Estevam
On Wed, Nov 4, 2015 at 12:58 AM, Robin Gong wrote: > commit 9e7b399d6528 ("serial: imx: remove unbalanced clk_prepare"). > Otherwise below warning happen since there are some printk logs in > interrupt. This has already been reverted since v4.3-rc5. -- To unsubscribe from this list: send the line

RE: [PATCH] ARM: add v7 LPAE multi-platform defconfig

2015-11-03 Thread Huan Wang
> On Tue, Oct 27, 2015 at 10:35:07PM +0800, Alison Wang wrote: > > v7 LPAE multi-platform defconfig is based on v7 multi-platform > > defconfig and adds LPAE support. > > > > This defconfig is verified on LS1021A which enables GIANFAR, I2C, > > WATCHDOG, AUDIO, EDMA and DSPI drivers, etc. > > > > S

Re: [PATCH 2/2] arm64: Allow changing of attributes outside of modules

2015-11-03 Thread zhong jiang
On 2015/11/4 5:48, Laura Abbott wrote: > > Currently, the set_memory_* functions that are implemented for arm64 > are restricted to module addresses only. This was mostly done > because arm64 maps normal zone memory with larger page sizes to > improve TLB performance. This has the side effect thou

Re: [RFC] iommu: arm-smmu: correct reference count

2015-11-03 Thread Peng Fan
Hi Will, On Tue, Nov 03, 2015 at 01:17:34PM +, Will Deacon wrote: >On Tue, Nov 03, 2015 at 08:59:17PM +0800, Peng Fan wrote: >> iommu_group_alloc will initialize the reference count for group to 1. >> iommu_group_add_device also increase the group reference count, >> if nothing bad happends. A

Re: [PATCH V4] usb: remove unnecessary CONFIG_PM dependency from USB_OTG

2015-11-03 Thread Peter Chen
On Tue, Nov 03, 2015 at 07:56:55AM -0600, Felipe Balbi wrote: > > Hi, > > Nathan Sullivan writes: > > The USB OTG support currently depends on power management > > (CONFIG_PM) being enabled, but does not actually need it enabled. > > Remove this dependency. > > > > Tested on Bay Trail hardware w

Re: [PATCH v13 02/51] vfs: Add MAY_CREATE_FILE and MAY_CREATE_DIR permission flags

2015-11-03 Thread Andreas Gruenbacher
On Wed, Nov 4, 2015 at 3:33 AM, Andreas Dilger wrote: > On Nov 3, 2015, at 8:16 AM, Andreas Gruenbacher wrote: >> @@ -3667,7 +3674,7 @@ EXPORT_SYMBOL(dentry_unhash); >> >> int vfs_rmdir(struct inode *dir, struct dentry *dentry) >> { >> - int error = may_delete(dir, dentry, 1); >> + int er

[PATCH v1] Revert "serial: imx: remove unbalanced clk_prepare"

2015-11-03 Thread Robin Gong
commit 9e7b399d6528 ("serial: imx: remove unbalanced clk_prepare"). Otherwise below warning happen since there are some printk logs in interrupt. [ 14.868319] udevd[501]: starting version 182 [ 16.386107] random: nonblocking pool is initialized [ 16.386123] [ cut here ]--

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

2015-11-03 Thread Jassi Brar
On 1 November 2015 at 17:42, Stephen Rothwell wrote: > Hi Jassi, > > After merging the mailbox tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > drivers/mailbox/mailbox-test.c: In function 'mbox_test_receive_message': > drivers/mailbox/mailbox-test.c:226:11: error: impli

Re: [PATCH v11 08/28] tracing: Add lock-free tracing_map

2015-11-03 Thread Tom Zanussi
Hi Namhyung, On Wed, 2015-11-04 at 11:26 +0900, Namhyung Kim wrote: > Hi Tom, > > On Tue, Nov 03, 2015 at 07:47:52PM -0600, Tom Zanussi wrote: > > Hi Namhyung, > > > > On Mon, 2015-11-02 at 16:08 +0900, Namhyung Kim wrote: > > > I thought it'd be better if users can see which one is the real dro

Re: [PATCH V5] mm: memory hot-add: memory can not be added to movable zone defaultly

2015-11-03 Thread Changsheng Liu
On 11/4 2015 0:13, Yasuaki Ishimatsu wrote: Hi Changsheng, According to the following thread, Tang has no objection to change kernel behavior since udev cannot online memory as movable. https://lkml.org/lkml/2015/10/21/159 So how about reposting the v5 patch? I have a comment about the patch

Re: [PATCH v13 21/51] ext4: Add richacl feature flag

2015-11-03 Thread Andreas Gruenbacher
On Wed, Nov 4, 2015 at 3:28 AM, Andreas Gruenbacher wrote: > It's the commit message that's misleading here, I'll fix it. Commit message changed to: This feature flag selects richacl instead of POSIX ACL support on the filesystem. When this feature is off, the "acl" and "noacl" mount op

Re: [PATCH v11 17/28] tracing: Add hist trigger 'execname' modifier

2015-11-03 Thread Tom Zanussi
On Mon, 2015-11-02 at 23:10 +0900, Namhyung Kim wrote: > On Thu, Oct 22, 2015 at 01:14:21PM -0500, Tom Zanussi wrote: > > Allow users to have pid fields displayed as program names in the output > > by appending '.execname' to field names: > > > ># echo hist:keys=aaa.execname ... \ > >

RE: [GIT PULL] Thermal-SoC management updates for v4.4-rc1 #1

2015-11-03 Thread Zhang, Rui
> -Original Message- > From: linux-acpi-ow...@vger.kernel.org [mailto:linux-acpi- > ow...@vger.kernel.org] On Behalf Of Rafael J. Wysocki > Sent: Wednesday, November 04, 2015 5:14 AM > To: Eduardo Valentin > Cc: Zhang, Rui; Rafael J. Wysocki; Linux ACPI; Linux PM; LKML > Subject: Re: [GIT

Re: [PATCH v13 02/51] vfs: Add MAY_CREATE_FILE and MAY_CREATE_DIR permission flags

2015-11-03 Thread Andreas Dilger
On Nov 3, 2015, at 8:16 AM, Andreas Gruenbacher wrote: > > Richacls distinguish between creating non-directories and directories. To > support that, add an isdir parameter to may_create(). When checking > inode_permission() for create permission, pass in an additional > MAY_CREATE_FILE or MAY_CRE

Re: [PATCH v13 21/51] ext4: Add richacl feature flag

2015-11-03 Thread Andreas Gruenbacher
Andreas, On Wed, Nov 4, 2015 at 3:18 AM, Andreas Dilger wrote: > This patch confuses me. I thought the whole point of INCOMPAT_RICHACL > was that the filesystem should never, ever be mounted without ACL support > because the ACLs will get confused without it. In that case, it doesn't > make sen

Re: [PATCH v2 01/13] mm: support madvise(MADV_FREE)

2015-11-03 Thread Sergey Senozhatsky
On (11/04/15 10:25), Minchan Kim wrote: [..] > +static int madvise_free_pte_range(pmd_t *pmd, unsigned long addr, > + unsigned long end, struct mm_walk *walk) > + > +{ > + struct mmu_gather *tlb = walk->private; > + struct mm_struct *mm = tlb->mm; > + struct

[PATCH v2 1/4] perf test: Keep test result clean if '-v' not set

2015-11-03 Thread Wang Nan
According to [1], 'perf state' should avoid output too much information if '-v' not set, only 'Ok', 'FAIL' or 'Skip' need to be printed. This patch removes sereval stderr output to make output clean. Before this patch: # perf test dummy 23: Test using a dummy software event to keep tracking

[PATCH v2 4/4] perf tools: Improve BPF related error messages output

2015-11-03 Thread Wang Nan
A series of bpf loader related error code is introduced to help error delivering. Functions are improved to return those new error code. Functions which return pointers are adjusted to encode error code into return value using "ERR_PTR". bpf_loader_strerror() are introduced to convert those error

[PATCH v2 3/4] bpf tools: Improve libbpf error reporting

2015-11-03 Thread Wang Nan
In this patch, a series libbpf specific error numbers and libbpf_strerror() are created to help reporting error to caller. Functions are updated to pass correct error number through macro CHECK_ERR(). All users of bpf_object__open{_buffer}() and bpf_program__title() in perf are modified accordingl

[PATCH v2 2/4] perf tools: Mute libbpf when '-v' not set

2015-11-03 Thread Wang Nan
According to [1], libbpf should be muted. This patch reset info and warning message level to ensure libbpf doesn't output anything even if error happened. [1] http://lkml.kernel.org/r/20151020151255.gf5...@kernel.org Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Namhyung Kim --- to

Re: [PATCH v11 08/28] tracing: Add lock-free tracing_map

2015-11-03 Thread Namhyung Kim
Hi Tom, On Tue, Nov 03, 2015 at 07:47:52PM -0600, Tom Zanussi wrote: > Hi Namhyung, > > On Mon, 2015-11-02 at 16:08 +0900, Namhyung Kim wrote: > > I thought it'd be better if users can see which one is the real drop > > or not. IOW if drop count is much smaller than the normal event > > count, [

[PATCH v2 0/4] perf bpf: Improve error code delivering and output

2015-11-03 Thread Wang Nan
This patchset is based on perf/core (commit bebd23a2ed31d47e7dd746d3b125068aa2c42d85 in Arnaldo's tree). Compare with v1 [1], this patchset changes error reporting convention and the user of it at one same patch, avoid NULL checking in perf. Wang Nan (4): perf test: Keep test result clean if '-

Re: [PATCH v13 43/51] ext4: Don't allow unmapped identifiers in richacls

2015-11-03 Thread Andreas Dilger
> On Nov 3, 2015, at 8:17 AM, Andreas Gruenbacher wrote: > > Don't allow acls which contain unmapped identifiers: they are meaningful > for remote file systems only. Looks fine. Reviewed-by: Andreas Dilger > Signed-off-by: Andreas Gruenbacher > --- > fs/ext4/richacl.c | 4 > 1 file chan

Re: [PATCH v13 20/51] ext4: Add richacl support

2015-11-03 Thread Andreas Gruenbacher
On Wed, Nov 4, 2015 at 3:13 AM, Andreas Dilger wrote: > Patch looks reasonable. One minor cleanup below that could be fixed when > the patch series is refreshed, and you can add: > > Reviewed-by: Andreas Dilger Okay, thank you. Andreas -- To unsubscribe from this list: send the line "unsubscri

Re: [PATCH] PM / OPP: Protect updates to list_dev with mutex

2015-11-03 Thread Viresh Kumar
On 02-11-15, 11:14, Stephen Boyd wrote: > On 10/31, Viresh Kumar wrote: > > On 30-10-15, 10:06, Stephen Boyd wrote: > > > On 10/30, Viresh Kumar wrote: > > > > dev_opp_list_lock is used everywhere to protect device and OPP lists, > > > > but dev_pm_opp_set_sharing_cpus() is missed somehow. And inst

Re: [PATCH v13 21/51] ext4: Add richacl feature flag

2015-11-03 Thread Andreas Dilger
> On Nov 3, 2015, at 8:16 AM, Andreas Gruenbacher wrote: > > From: "Aneesh Kumar K.V" > > This feature flag selects richacl instead of posix acl support on the > file system. In addition, the "acl" mount option is needed for enabling > either of the two kinds of acls. This patch confuses me.

Re: [PATCH v2 01/13] mm: support madvise(MADV_FREE)

2015-11-03 Thread Sergey Senozhatsky
Hi Minchan, On (11/04/15 10:25), Minchan Kim wrote: [..] >+static int madvise_free_pte_range(pmd_t *pmd, unsigned long addr, >+ unsigned long end, struct mm_walk *walk) >+ ... > + if (pmd_trans_unstable(pmd)) > + return 0; I think it makes sense to up

Re: [GIT PULL] x86/apic changes for v4.4

2015-11-03 Thread Linus Torvalds
On Tue, Nov 3, 2015 at 2:32 AM, Ingo Molnar wrote: > > Please pull the latest x86-apic-for-linus git tree from: Side note, I have an *old* patch that I think simplifies the (reasonably common) case of sending IPI's to individual CPU's. That's done by the "reschedule ipi" in particular. That's so

Re: [PATCH v13 20/51] ext4: Add richacl support

2015-11-03 Thread Andreas Dilger
On Nov 3, 2015, at 8:16 AM, Andreas Gruenbacher wrote: > > From: "Aneesh Kumar K.V" > > Support the richacl permission model in ext4. The richacls are stored > in "system.richacl" xattrs. Richacls need to be enabled by tune2fs or > at file system create time. Patch looks reasonable. One min

Re: [PATCH v13 12/51] vfs: Cache richacl in struct inode

2015-11-03 Thread Andreas Dilger
On Nov 3, 2015, at 8:16 AM, Andreas Gruenbacher wrote: > > Cache richacls in struct inode so that this doesn't have to be done > individually in each filesystem. This is similar to POSIX ACLs. > > Signed-off-by: Andreas Gruenbacher > --- > fs/inode.c | 11 ++-- > fs/posix_acl.c

Re: [PATCH v11 22/28] tracing: Add enable_hist/disable_hist triggers

2015-11-03 Thread Tom Zanussi
On Tue, 2015-11-03 at 17:55 +0900, Namhyung Kim wrote: > On Thu, Oct 22, 2015 at 01:14:26PM -0500, Tom Zanussi wrote: > > Similar to enable_event/disable_event triggers, these triggers enable > > and disable the aggregation of events into maps rather than enabling > > and disabling their writing in

Re: [PATCHSET 0/4] perf report: Support folded callchain output (v4)

2015-11-03 Thread Namhyung Kim
Hi Brendan, On Tue, Nov 03, 2015 at 01:33:43PM -0800, Brendan Gregg wrote: > On Tue, Nov 3, 2015 at 6:40 AM, Arnaldo Carvalho de Melo > wrote: > > Em Tue, Nov 03, 2015 at 09:52:07PM +0900, Namhyung Kim escreveu: > >> Hello, > >> > >> This is what Brendan requested on the perf-users mailing list [

Re: [PATCH v4 05/10] xen/blkfront: negotiate number of queues/rings to be used with backend

2015-11-03 Thread Konrad Rzeszutek Wilk
On Wed, Nov 04, 2015 at 09:11:10AM +0800, Bob Liu wrote: > > On 11/04/2015 04:40 AM, Konrad Rzeszutek Wilk wrote: > > On Mon, Nov 02, 2015 at 12:21:41PM +0800, Bob Liu wrote: > >> The number of hardware queues for xen/blkfront is set by parameter > >> 'max_queues'(default 4), while the max value x

Re: [PATCH v11 13/28] tracing: Add hist trigger support for pausing and continuing a trace

2015-11-03 Thread Tom Zanussi
On Tue, 2015-11-03 at 17:38 +0900, Namhyung Kim wrote: > On Thu, Oct 22, 2015 at 01:14:17PM -0500, Tom Zanussi wrote: > > Allow users to append 'pause' or 'continue' to an existing trigger in > > order to have it paused or to have a paused trace continue. > > > > This expands the hist trigger synt

Re: [PATCH v11 24/28] tracing: Add support for multiple hist triggers per event

2015-11-03 Thread Tom Zanussi
On Tue, 2015-11-03 at 09:34 +0900, Namhyung Kim wrote: > On Thu, Oct 22, 2015 at 01:14:28PM -0500, Tom Zanussi wrote: > > Allow users to define any number of hist triggers per trace event. > > Any number of hist triggers may be added for a given event, which may > > differ by key, value, or filter.

Re: [PATCH v4 04/10] xen/blkfront: split per device io_lock

2015-11-03 Thread Konrad Rzeszutek Wilk
On Wed, Nov 04, 2015 at 09:07:12AM +0800, Bob Liu wrote: > > On 11/04/2015 04:09 AM, Konrad Rzeszutek Wilk wrote: > > On Mon, Nov 02, 2015 at 12:21:40PM +0800, Bob Liu wrote: > >> The per device io_lock became a coarser grained lock after > >> multi-queues/rings > >> was introduced, this patch in

Re: [PATCH v11 08/28] tracing: Add lock-free tracing_map

2015-11-03 Thread Tom Zanussi
Hi Namhyung, On Mon, 2015-11-02 at 16:08 +0900, Namhyung Kim wrote: > Hi Tom, > > On Thu, Oct 29, 2015 at 01:35:43PM -0500, Tom Zanussi wrote: > > Hi Namhyung, > > > > On Thu, 2015-10-29 at 17:31 +0900, Namhyung Kim wrote: > > > Hi Tom, > > > > > > On Thu, Oct 22, 2015 at 01:14:12PM -0500, Tom

Re: [PATCH v2] pwm-backlight: fix the panel power sequence

2015-11-03 Thread YH Huang
On Tue, 2015-11-03 at 12:08 +0100, Philipp Zabel wrote: > Hi YH, > > Am Dienstag, den 03.11.2015, 16:11 +0800 schrieb YH Huang: > > > The reasoning is that devices where there is no phandle link pointing to > > > the backlight (for example from a simple-panel node), we should keep the > > > curren

Re: [PATCH 0/5] perf bpf: Improve error code delivering and output

2015-11-03 Thread Wangnan (F)
On 2015/11/3 23:43, Arnaldo Carvalho de Melo wrote: Em Tue, Nov 03, 2015 at 10:44:41AM +, Wang Nan escreveu: This patchset is based on tip/core. Arnaldo found some confusing error reports when reviewing BPF related patches. This patch set makes some changes: Thanks for working on this!

Re: [PATCH 10/31] perf test: Enforce LLVM test for BPF test

2015-11-03 Thread Wangnan (F)
On 2015/11/4 2:24, Arnaldo Carvalho de Melo wrote: Em Thu, Oct 15, 2015 at 07:58:38PM +0800, Wangnan (F) escreveu: +void test__llvm_prepare(void) +{ + p_test_llvm__bpf_result = mmap(NULL, SHARED_BUF_INIT_SIZE, + PROT_READ | PROT_WRITE, +

  1   2   3   4   5   6   7   8   9   10   >