Re: [PATCH 3/3] mm/vmalloc: correct a few logic error in __insert_vmap_area()

2016-09-19 Thread Nicholas Piggin
On Tue, 20 Sep 2016 14:02:26 +0800 zijun_hu wrote: > From: zijun_hu > > correct a few logic error in __insert_vmap_area() since the else if > condition is always true and meaningless > > avoid endless loop under [un]mapping improper ranges whose boundary > are not aligned to page > > correct

linux-next: build failure after merge of the akpm-current tree

2016-09-19 Thread Stephen Rothwell
Hi Andrew, After merging the akpm-current tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: arch/powerpc/kernel/built-in.o: In function `.apply_relocate_add': (.text+0x302e4): undefined reference to `.elf64_apply_relocate_add' I needed to add the following merge resoluti

Staging: Media: Lirc - Fix possible ERR_PTR() dereferencing.

2016-09-19 Thread Shailendra Verma
This is of course wrong to call kfree() if memdup_user() fails, no memory was allocated and the error in the error-valued pointer should be returned. Reviewed-by: Ravikant Sharma Signed-off-by: Shailendra Verma --- drivers/staging/media/lirc/lirc_imon.c | 7 ++- drivers/staging/media/lirc/

Re: [PATCH 2/4] carl9170: fix debugfs crashes

2016-09-19 Thread Greg KH
On Mon, Sep 19, 2016 at 10:12:08PM +0200, Christian Lamparter wrote: > On Sunday, September 18, 2016 6:44:08 PM CEST Greg KH wrote: > > On Sun, Sep 18, 2016 at 02:49:33PM +0200, Christian Lamparter wrote: > > > On Sunday, September 18, 2016 12:14:55 PM CEST Greg KH wrote: > > > > On Sun, Sep 18, 20

Virt: Kvm - Fix possible ERR_PTR() dereferencing.

2016-09-19 Thread Shailendra Verma
This is of course wrong to call kfree() if memdup_user() fails, no memory was allocated and the error in the error-valued pointer should be returned. Reviewed-by: Ravikant Sharma Signed-off-by: Shailendra Verma --- virt/kvm/kvm_main.c | 20 ++-- 1 file changed, 6 insertions(+),

Fs: Btrfs - Fix possible ERR_PTR() dereferencing.

2016-09-19 Thread Shailendra Verma
This is of course wrong to call kfree() if memdup_user() fails, no memory was allocated and the error in the error-valued pointer should be returned. Reviewed-by: Ravikant Sharma Signed-off-by: Shailendra Verma --- fs/btrfs/ioctl.c | 21 ++--- 1 file changed, 6 insertions(+), 15

Re: [PATCH] staging: lustre: ptlrpc: re-export lustre_swab_[lmv|lov]_mds_md

2016-09-19 Thread Greg Kroah-Hartman
On Mon, Sep 19, 2016 at 01:27:05PM -0400, James Simmons wrote: > Being over zealous in removing unused EXPORT_SYMBOLs two functions > lustre_swab_[lmv|lov]_mds_md exports were removed. They need to be > exported so this patch restores those EXPORT_SYMBOLS. Same mistake > was done when porting to th

Re: "CodingStyle: Clarify and complete chapter 7" in docs-next (was Re: [PATCH 03/47] block-rbd: Adjust the position of a jump label in rbd_header_from_disk())

2016-09-19 Thread Julia Lawall
On Mon, 19 Sep 2016, Joe Perches wrote: > On Tue, 2016-09-20 at 07:53 +0200, Julia Lawall wrote: > > On Mon, 19 Sep 2016, Joe Perches wrote: > > > On Tue, 2016-09-20 at 01:11 +0100, Al Viro wrote: > > > > IMO what we need is to go through all rules in CodingStyle and if for > > > > some rule the

linux-next: build failure after merge of the akpm-current tree

2016-09-19 Thread Stephen Rothwell
Hi Andrew, After merging the akpm-current tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: powerpc-linux-gcc: error: unrecognized command line option '-m' scripts/Makefile.build:290: recipe for target 'arch/powerpc/purgatory/printf.o' failed and a few more like that.

Re: [GIT PULL] Greybus driver subsystem for 4.9-rc1

2016-09-19 Thread Greg KH
On Fri, Sep 16, 2016 at 04:24:59PM +0200, Greg KH wrote: > On Fri, Sep 16, 2016 at 03:22:08PM +0200, Greg KH wrote: > > On Fri, Sep 16, 2016 at 11:18:07AM +0100, Mark Brown wrote: > > > On Fri, Sep 16, 2016 at 08:05:19AM +0200, Greg KH wrote: > > > > On Thu, Sep 15, 2016 at 03:45:53PM +0100, Mark B

Re: "CodingStyle: Clarify and complete chapter 7" in docs-next (was Re: [PATCH 03/47] block-rbd: Adjust the position of a jump label in rbd_header_from_disk())

2016-09-19 Thread Joe Perches
On Tue, 2016-09-20 at 07:53 +0200, Julia Lawall wrote: > On Mon, 19 Sep 2016, Joe Perches wrote: > > On Tue, 2016-09-20 at 01:11 +0100, Al Viro wrote: > > > IMO what we need is to go through all rules in CodingStyle and if for > > > some rule there is no overwhelming majority in the core kernel, we

Re: [PATCH v3 07/15] lockdep: Implement crossrelease feature

2016-09-19 Thread Byungchul Park
On Tue, Sep 20, 2016 at 02:50:38PM +0900, Byungchul Park wrote: > On Mon, Sep 19, 2016 at 10:50:09AM +0200, Peter Zijlstra wrote: > > On Mon, Sep 19, 2016 at 11:41:02AM +0900, Byungchul Park wrote: > > > > > > But since these threads are independently scheduled there is no point in > > > > transfe

[PATCH net-next 7/7] net/faraday: Configure old MDIO interface on Aspeed SoCs

2016-09-19 Thread Joel Stanley
The Aspeed SoCs have a new MDIO interface as an option in the G4 and G5 SoCs. The old one is still available, so select it in order to remain compatible with the ftgmac100 driver. Signed-off-by: Joel Stanley --- drivers/net/ethernet/faraday/ftgmac100.c | 9 + drivers/net/ethernet/faraday

[PATCH net-next 4/7] net/faraday: Avoid PHYSTS_CHG interrupt

2016-09-19 Thread Joel Stanley
From: Gavin Shan Bit#11 in MACCR (0x50) designates the signal level for PHY link status change. It's cleared, meaning high level enabled, by default. However, we can see continuous interrupt (bit#6) in ISR (0x0) for it and it's obviously a false alarm. The side effect is CPU cycles wasted to proc

[PATCH net-next 3/7] net/faraday: Adapt for Aspeed SoCs

2016-09-19 Thread Joel Stanley
The RXDES and TXDES registers bits in the ftgmac100 indicates EDO{R,T}R at bit position 15 for the Faraday Tech IP. However, the version of this IP present in the Aspeed SoCs has these bits at position 30 in the registers. It appers that ast2400 SoCs support both positions, with the 15th bit marke

[PATCH net-next 6/7] net/faraday: Fix phy link irq on Aspeed G5 SoCs

2016-09-19 Thread Joel Stanley
On Aspeed SoC with a direct PHY connection (non-NSCI), we receive continual PHYSTS interrupts: [ 20.28] ftgmac100 1e66.ethernet eth0: [ISR] = 0x200: PHYSTS_CHG [ 20.28] ftgmac100 1e66.ethernet eth0: [ISR] = 0x200: PHYSTS_CHG [ 20.28] ftgmac100 1e66.ethernet eth0: [

[PATCH net-next 5/7] net/faraday: Clear stale interrupts

2016-09-19 Thread Joel Stanley
From: Gavin Shan There is stale interrupt (PHYSTS_CHG in ISR, bit#6 in 0x0) from the bootloader (uboot) when enabling the MAC. The stale interrupts aren't part of kernel and should be cleared. This clears the stale interrupts in ISR (0x0) when enabling the MAC. Signed-off-by: Gavin Shan Signed

[PATCH net-next 2/7] net/faraday: Make EDO{R,T}R bits configurable

2016-09-19 Thread Joel Stanley
From: Andrew Jeffery These bits are #defined at a fixed location. In order to support future hardware that has chosen to move these bits around move the bits into a member of the struct ftgmac100. Signed-off-by: Andrew Jeffery Signed-off-by: Joel Stanley --- drivers/net/ethernet/faraday/ftgma

[PATCH net-next 1/7] net/faraday: Separate rx page storage from rxdesc

2016-09-19 Thread Joel Stanley
From: Andrew Jeffery The ftgmac100 hardware revision in e.g. the Aspeed AST2500 no longer reserves all bits in RXDES#2 but instead uses the bottom 16 bits to store MAC frame metadata. Avoid corruption by shifting struct page pointers out to their own member in struct ftgmac100. Signed-off-by: An

[PATCH net-next 0/7] ftgmac100 support for ast2500

2016-09-19 Thread Joel Stanley
Hello Dave, This series adds support to the ftgmac100 driver for the Aspeed ast2400 and ast2500 SoCs. In particular, they ensure the driver works correctly on the ast2500 where the MAC block has seen some changes in register layout. They have been tested on ast2400 and ast2500 systems with the NC

linux-next: build failure after merge of the akpm-current tree

2016-09-19 Thread Stephen Rothwell
Hi Andrew, After merging the akpm-current tree, today's linux-next build (arm multi_v7_defconfig) failed like this: fs/notify/notification.c: In function 'fsnotify_add_event': fs/notify/notification.c:116:22: error: 'struct fsnotify_group' has no member named 'notification_mutex' mutex_unlock

Re: [PATCH] usb: misc: legousbtower: Fix NULL pointer deference

2016-09-19 Thread Greg KH
On Mon, Sep 19, 2016 at 07:09:51PM +0100, James wrote: > This patch fixes a NULL pointer dereference caused by a race codition in the > probe function of the legousbtower driver. It re-structures the probe > function to only register the interface after successfully reading the > board's firmware I

RE: [PATCH 5/8] samples: move misc-devices/mei example code from Documentation

2016-09-19 Thread Winkler, Tomas
> -Original Message- > From: Jonathan Corbet [mailto:cor...@lwn.net] > Sent: Monday, September 19, 2016 19:14 > To: Shuah Khan > Cc: Dutt, Sudeep ; Dixit, Ashutosh > ; Winkler, Tomas ; > t...@linutronix.de; w...@iguana.be; li...@roeck-us.net; > elfr...@users.sourceforge.net; nicolas.dich

Re: [PATCH 3/4] watchdog: sa11x0/pxa: get rid of get_clock_tick_rate

2016-09-19 Thread Robert Jarzmik
Guenter Roeck writes: > On 09/19/2016 03:36 PM, Russell King - ARM Linux wrote: >> On Mon, Sep 19, 2016 at 01:08:16PM -0700, Guenter Roeck wrote: >>> On Mon, Sep 19, 2016 at 09:12:14PM +0200, Robert Jarzmik wrote: The OS timer rate used for the watchdog can now be fetched from the stand

question about clk_hw_register_fixed_factor

2016-09-19 Thread Julia Lawall
Hello, The function clk_hw_register_fixed_factor from drivers/clk/clk-fixed-factor.c contains: struct clk_init_data init; ... fix->hw.init = &init; ... hw = &fix->hw; ... return hw; It looks like hw would then contain a dangling pointer, to init. Should this be nulled out, or does it not matter

Re: [PATCH 0/3] ARC unwinder switch to .eh_frame

2016-09-19 Thread Vineet Gupta
On 09/19/2016 06:21 PM, Daniel Mentz wrote: > Hi Vineet, > > Thank you for your patches. I applied them, and verified that > unwinding works with code that is compiled into the kernel image as > well as kernel modules. > I confirmed that the .eh_frame section is present and that the > .debug_frame

[PATCH 3/3] mm/vmalloc: correct a few logic error in __insert_vmap_area()

2016-09-19 Thread zijun_hu
From: zijun_hu correct a few logic error in __insert_vmap_area() since the else if condition is always true and meaningless avoid endless loop under [un]mapping improper ranges whose boundary are not aligned to page correct lazy_max_pages() return value if the number of online cpus is power of

Re: [PATCH v3 07/15] lockdep: Implement crossrelease feature

2016-09-19 Thread Byungchul Park
On Mon, Sep 19, 2016 at 10:50:09AM +0200, Peter Zijlstra wrote: > On Mon, Sep 19, 2016 at 11:41:02AM +0900, Byungchul Park wrote: > > > > But since these threads are independently scheduled there is no point in > > > transferring the point in time thread A does W to thread B. There is no > > > rel

[PATCH v2] nfs: cover ->migratepage with CONFIG_MIGRATION

2016-09-19 Thread Chao Yu
It will be more clean to use CONFIG_MIGRATION to cover nfs' private .migratepage in nfs_file_aops like we do in other part of nfs operations. Signed-off-by: Chao Yu --- fs/nfs/file.c | 2 ++ fs/nfs/internal.h | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/fs/nfs/file

Re: [PATCH 2/2] powernv:idle:Implement lite variant of power_enter_stop

2016-09-19 Thread Balbir Singh
On 16/09/16 19:47, Gautham R. Shenoy wrote: > From: "Gautham R. Shenoy" > > This patch adds a function named power_enter_stop_lite() that can > execute a stop instruction when ESL and EC bits are set to zero in the > PSSCR. The function handles the wake-up from idle at the instruction > immedi

Re: "CodingStyle: Clarify and complete chapter 7" in docs-next (was Re: [PATCH 03/47] block-rbd: Adjust the position of a jump label in rbd_header_from_disk())

2016-09-19 Thread Julia Lawall
On Mon, 19 Sep 2016, Joe Perches wrote: > On Tue, 2016-09-20 at 01:11 +0100, Al Viro wrote: > > IMO what we need is to go through all rules in CodingStyle and if for > > some rule there is no overwhelming majority in the core kernel, well, > > the list has grown way too large and could use massi

Re: [PATCH] nfs: cover ->migratepage with CONFIG_MIGRATION

2016-09-19 Thread Chao Yu
On 2016/9/20 20:51, kbuild test robot wrote: >>> fs/nfs/file.c:547:17: error: 'nfs_migrate_page' undeclared here (not in a >>> function) > .migratepage = nfs_migrate_page, Oops :(, sorry for my mistake, let me fix this. Thanks,

[PATCH 2/3] lib/ioremap.c: avoid endless loop under ioremapping improper ranges

2016-09-19 Thread zijun_hu
From: zijun_hu for ioremap_page_range(), endless loop maybe happen if either of parameter addr and end is not page aligned, in order to fix this issue and hint range parameter requirements BUG_ON() checkup are performed firstly for ioremap_pte_range(), loop end condition is optimized due to lack

Re: [INFO] ratio of const vs dynamic usercopy

2016-09-19 Thread kbuild test robot
Hi Kees, [auto build test WARNING on linus/master] [also build test WARNING on v4.8-rc7 next-20160919] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] [Suggest to use git(>=2.9.0) format-patch --base= (or --base=auto for convenience) to rec

Re: [PATCH 2/6] kvm: x86: drop read_tsc_offset()

2016-09-19 Thread Paolo Bonzini
On 20/09/2016 00:18, Jim Mattson wrote: > Hmmm. Yes, I think it does. With this patch series, > vcpu->arch.tsc_offset appears to contain L1's TSC offset (perhaps > making vmx->nested.vmcs01_tsc_offset redundant). > > However, this unfortunately limits the newly added functionality to > merging h

Re: [PATCH -v3 00/10] THP swap: Delay splitting THP during swapping out

2016-09-19 Thread Minchan Kim
Hi Huang, On Tue, Sep 20, 2016 at 10:54:35AM +0800, Huang, Ying wrote: > Hi, Minchan, > > Minchan Kim writes: > > Hi Huang, > > > > On Sun, Sep 18, 2016 at 09:53:39AM +0800, Huang, Ying wrote: > >> Minchan Kim writes: > >> > >> > On Tue, Sep 13, 2016 at 04:53:49PM +0800, Huang, Ying wrote: > >

[PATCH 1/3] linux/mm.h: canonicalize macro PAGE_ALIGNED() definition

2016-09-19 Thread zijun_hu
From: zijun_hu canonicalize macro PAGE_ALIGNED() definition Signed-off-by: zijun_hu --- include/linux/mm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/mm.h b/include/linux/mm.h index ef815b9..ec68186 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h

Re: [PATCH v3 15/15] lockdep: Crossrelease feature documentation

2016-09-19 Thread Byungchul Park
On Fri, Sep 16, 2016 at 10:47:06AM -0500, Nilay Vaish wrote: > > +== > > +Background > > +== > > + > > +What causes deadlock > > + > > + > > +A deadlock occurs when a context is waiting for an event to be issued > > +which cannot be issued because the context or

[PATCH 3/3] perf report: Fix output of 'pid' sort key

2016-09-19 Thread Namhyung Kim
The thread->comm can be changed during the lifetime due to prctl() or exec(). For this reason each hist entry has a pointer to a comm at the time as well as a pointer to the thread. So it should use the he->comm instead of thread__comm(he->thread) which always returns the latest comm. This can b

[PATCH 1/3] perf ui/tui: Reset output width for hierarchy

2016-09-19 Thread Namhyung Kim
When --hierarchy option is used, each entry has its own hpp_list to show the result. But it missed to update width of each column. Before: - 46.29% 48.12%netctl-auto + 31.44% 29.25%[kernel.vmlinux] + 8.52% 11.55%libc-2.22.so + 5.19% 6.91%bash +

[PATCH 2/3] perf hists: Factor out hists__reset_column_width()

2016-09-19 Thread Namhyung Kim
The stdio and tui has same code to reset hpp format column width. Factor it out as a new function. Suggested-by: Jiri Olsa Signed-off-by: Namhyung Kim --- tools/perf/ui/browsers/hists.c | 12 +++- tools/perf/ui/hist.c | 15 +++ tools/perf/ui/stdio/hist.c | 10 +

Re: [PATCH -v3 00/10] THP swap: Delay splitting THP during swapping out

2016-09-19 Thread Huang, Ying
Minchan Kim writes: > Hi Huang, > > On Tue, Sep 20, 2016 at 10:54:35AM +0800, Huang, Ying wrote: >> Hi, Minchan, >> >> Minchan Kim writes: >> > Hi Huang, >> > >> > On Sun, Sep 18, 2016 at 09:53:39AM +0800, Huang, Ying wrote: >> >> Minchan Kim writes: >> >> >> >> > On Tue, Sep 13, 2016 at 04:5

Re: [PATCH] x86/efi: Add necessary checks before iterating over efi.memmap

2016-09-19 Thread Chao Gao
Sorry for bothering you. There is a regression since commit 78ce248f that if booting xen in UEFI mode, dom0 will crash and xen reboot constantly. This patch tries to fix it. Please take a look at it. On Tue, Sep 13, 2016 at 11:28:15AM +0800, Chao Gao wrote: >Commit 78ce248f (efi: Iterate over efi.

Re: [PATCH v2 2/3] powerpc: get hugetlbpage handling more generic

2016-09-19 Thread Christophe Leroy
Le 20/09/2016 à 04:28, Aneesh Kumar K.V a écrit : christophe leroy writes: Le 19/09/2016 à 07:50, Aneesh Kumar K.V a écrit : Christophe Leroy writes: +#else +static void hugepd_free(struct mmu_gather *tlb, void *hugepte) +{ + BUG(); +} + #endif I was expecting that BUG will get

Re: [PATCH v2 4/6] net: ethernet: bgmac: convert to feature flags

2016-09-19 Thread Rafał Miłecki
On 17 August 2016 at 13:34, Rafał Miłecki wrote: > On 8 July 2016 at 01:08, Jon Mason wrote: >> mode = (bgmac_read(bgmac, BGMAC_DEV_STATUS) & BGMAC_DS_MM_MASK) >> >> BGMAC_DS_MM_SHIFT; >> - if (ci->id != BCMA_CHIP_ID_BCM47162 || mode != 0) >> + if (bgmac->featu

linux-next: manual merge of the staging tree with the vfs tree

2016-09-19 Thread Stephen Rothwell
Hi Greg, Today's linux-next merge of the staging tree got a conflict in: drivers/staging/lustre/lustre/llite/file.c between commit: 47b34458fc93 ("lustre: use %pD") from the vfs tree and commit: bb5c7f2630de ("staging: lustre: changelog: fix comparison between signed and unsigned") fr

Re: 答复: [PATCH] sunrpc: queue work on system_power_efficient_wq

2016-09-19 Thread Chunyan Zhang
Resend behalf on Ke Wang. Thanks, Chunyan On 20 September 2016 at 10:33, Ke Wang (王科) wrote: > May I have any comments for this patch? > or > This patch can be merged directly into next release? > > Thanks, > Ke > > 发件人: Anna Schumaker > 发送时间: 2016年9月2日

[PATCH] ARM: cache-uniphier: rename jump label to follow coding style guideline

2016-09-19 Thread Masahiro Yamada
Documentation/CodingStyle recommends to use label names which say what the goto does or why the goto exists. Signed-off-by: Masahiro Yamada --- arch/arm/mm/cache-uniphier.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/arm/mm/cache-uniphier.c b/arch/arm

[INFO] ratio of const vs dynamic usercopy

2016-09-19 Thread Kees Cook
Hi, Al had asked me a couple weeks back what the ratio of const vs dynamic usercopying was. With Josh's cleanup and my fix-up to only call the hardened usercopy when non-const, I can actually gather these statistics on a build. It's a bit of a hack (see attached patch that should not go into the t

Re: [PATCH] arm64, numa: Add cpu_to_node() implementation.

2016-09-19 Thread Ganapatrao Kulkarni
[sending again, previous email was not text] On Tue, Sep 20, 2016 at 12:19 AM, David Daney wrote: > From: David Daney > > The wq_numa_init() function makes a private CPU to node map by calling > cpu_to_node() early in the boot process, before the non-boot CPUs are > brought online. Since the de

Re: [PATCH] nfs: cover ->migratepage with CONFIG_MIGRATION

2016-09-19 Thread kbuild test robot
Hi Chao, [auto build test ERROR on nfs/linux-next] [also build test ERROR on v4.8-rc7 next-20160919] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] [Suggest to use git(>=2.9.0) format-patch --base= (or --base=auto for convenience) to rec

[PATCH] ARM: uniphier: select ARCH_HAS_RESET_CONTROLLER

2016-09-19 Thread Masahiro Yamada
The UniPhier reset driver (drivers/reset/reset-uniphier.c) has been merged. Select ARCH_HAS_RESET_CONTROLLER from the SoC Kconfig. Signed-off-by: Masahiro Yamada --- Philipp, IIRC, you mentioned that you were planning to consolidate the double gurad by CONFIG_RESET_CONTROLLER and CONFIG_ARCH_H

Re: [PATCH] drm/amdgpu: mark symbols static where possible

2016-09-19 Thread Alex Deucher
On Mon, Sep 19, 2016 at 6:01 AM, Christian König wrote: > Am 18.09.2016 um 16:09 schrieb Baoyou Xie: >> >> We get 7 warnings when building kernel with W=1: >> drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:1990:5: warning: no previous >> prototype for 'amdgpu_pre_soft_reset' [-Wmissing-prototypes] >>

Re: [RFC v3 18/22] cgroup,landlock: Add CGRP_NO_NEW_PRIVS to handle unprivileged hooks

2016-09-19 Thread Sargun Dhillon
On Thu, Sep 15, 2016 at 09:41:33PM +0200, Mickaël Salaün wrote: > > On 15/09/2016 06:48, Alexei Starovoitov wrote: > > On Wed, Sep 14, 2016 at 09:38:16PM -0700, Andy Lutomirski wrote: > >> On Wed, Sep 14, 2016 at 9:31 PM, Alexei Starovoitov > >> wrote: > >>> On Wed, Sep 14, 2016 at 09:08:57PM -07

Re: [PATCH 3/4] watchdog: sa11x0/pxa: get rid of get_clock_tick_rate

2016-09-19 Thread Guenter Roeck
On 09/19/2016 03:36 PM, Russell King - ARM Linux wrote: On Mon, Sep 19, 2016 at 01:08:16PM -0700, Guenter Roeck wrote: On Mon, Sep 19, 2016 at 09:12:14PM +0200, Robert Jarzmik wrote: The OS timer rate used for the watchdog can now be fetched from the standard clock API. This will remove the las

Re: [PATCH 3/4] watchdog: sa11x0/pxa: get rid of get_clock_tick_rate

2016-09-19 Thread Guenter Roeck
On 09/19/2016 12:12 PM, Robert Jarzmik wrote: The OS timer rate used for the watchdog can now be fetched from the standard clock API. This will remove the last user of get_clock_tick_rate() in both pxa and sa11x0 architectures. Signed-off-by: Robert Jarzmik Reviewed-by: Guenter Roeck Tested-

[patch v4] x86/platform/mellanox: introduce support for Mellanox systems platform

2016-09-19 Thread vadimp
From: Vadim Pasternak Enable system support for the Mellanox Technologies platform, which provides support for the next Mellanox basic systems: "msx6710", "msx6720", "msb7700", "msn2700", "msx1410", "msn2410", "msb7800", "msn2740", "msn2100" and also various number of derivative systems from the

Re: [PATCH] drm/amdgpu: remove unused functions

2016-09-19 Thread Alex Deucher
On Mon, Sep 19, 2016 at 6:02 AM, Christian König wrote: > Am 18.09.2016 um 16:13 schrieb Baoyou Xie: >> >> We get 2 warnings when building kernel with W=1: >> drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c:146:5: warning: no previous >> prototype for 'pool_to_domain' [-Wmissing-prototypes] >> drivers/

Re: [PATCH] drm/amdgpu: amend amdgpu_gfx_parse_disable_cu() declaration

2016-09-19 Thread Alex Deucher
On Sun, Sep 18, 2016 at 9:37 AM, Baoyou Xie wrote: > In amdgpu_gfx.h, the declaration of amdgpu_gfx_parse_disable_cu() > is incorrect. > > Signed-off-by: Baoyou Xie > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 4 +++- > drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 5 - > 2 files changed, 7

Re: [RFC] Arm64 boot fail with numa enable in BIOS

2016-09-19 Thread Yisheng Xie
On 2016/9/20 10:01, Ming Lei wrote: > On Mon, Sep 19, 2016 at 9:05 PM, Yisheng Xie wrote: >> hi all, >> When I enable NUMA in BIOS for arm64, it failed to boot on >> v4.8-rc4-162-g071e31e. >> For the crash log, it seems caused by error number of cpumask. >> Any ideas about it? > > When I playe

[PATCH] nfs: cover ->migratepage with CONFIG_MIGRATION

2016-09-19 Thread Chao Yu
It will be more clean to use CONFIG_MIGRATION to cover nfs' private .migratepage in nfs_file_aops like we do in other part of nfs operations. Signed-off-by: Chao Yu --- fs/nfs/file.c | 2 ++ fs/nfs/internal.h | 8 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/fs/nfs

[PATCH v7 8/8] ARM: dts: imx6q-evi: Fix onboard hub reset line

2016-09-19 Thread Peter Chen
From: Joshua Clayton Previously the onboard hub was made to work by treating its reset gpio as a regulator enable. Get rid of that kludge now that pwseq has added reset gpio support Move pin muxing the hub reset pin into the usbh1 group Signed-off-by: Joshua Clayton Signed-off-by: Peter Chen -

[PATCH v7 6/8] ARM: dts: imx6qdl: Enable usb node children with

2016-09-19 Thread Peter Chen
From: Joshua Clayton Give usb nodes #address and #size attributes, so that a child node representing a permanently connected device such as an onboard hub may be addressed with a attribute Signed-off-by: Joshua Clayton Signed-off-by: Peter Chen --- arch/arm/boot/dts/imx6qdl.dtsi | 6 ++

[PATCH v7 5/8] usb: chipidea: let chipidea core device of_node equal's glue layer device of_node

2016-09-19 Thread Peter Chen
From: Peter Chen At device tree, we have no device node for chipidea core, the glue layer's node is the parent node for host and udc device. But in related driver, the parent device is chipidea core. So, in order to let the common driver get parent's node, we let the core's device node equals glu

[PATCH] [linux-next] Fix double word "the the" in Doc/filesystems

2016-09-19 Thread Masanari Iida
This patch fix typos "the the" found in Documentation/filesystems. Signed-off-by: Masanari Iida --- Documentation/filesystems/autofs4-mount-control.txt | 10 +- Documentation/filesystems/directory-locking | 2 +- Documentation/filesystems/overlayfs.txt | 2 +- 3 fil

[PATCH v2] power: bq27xxx_battery: allow kernel poll_interval parameter runtime update

2016-09-19 Thread Matt Ranostay
Fix issue with poll_interval being not updated till the previous interval expired. Cc: Tony Lindgren Cc: Liam Breck Signed-off-by: Matt Ranostay --- Changes from v1: * Change param_get_ushort to param_get_uint * Changed param_lock naming to more precise bq27xxx_list_lock drivers/power/supp

[PATCH v7 4/8] usb: core: add power sequence handling for USB devices

2016-09-19 Thread Peter Chen
Some hard-wired USB devices need to do power sequence to let the device work normally, the typical power sequence like: enable USB PHY clock, toggle reset pin, etc. But current Linux USB driver lacks of such code to do it, it may cause some hard-wired USB devices works abnormal or can't be recogniz

[PATCH v7 7/8] ARM: dts: imx6qdl-udoo.dtsi: fix onboard USB HUB property

2016-09-19 Thread Peter Chen
The current dts describes USB HUB's property at USB controller's entry, it is improper. The USB HUB should be the child node under USB controller, and power sequence properties are under it. Besides, using gpio pinctrl setting for USB2415's reset pin. Signed-off-by: Peter Chen Signed-off-by: Josh

[PATCH v7 2/8] power: add power sequence library

2016-09-19 Thread Peter Chen
We have an well-known problem that the device needs to do some power sequence before it can be recognized by related host, the typical example like hard-wired mmc devices and usb devices. This power sequence is hard to be described at device tree and handled by related host driver, so we have crea

[PATCH v7 3/8] binding-doc: usb: usb-device: add optional properties for power sequence

2016-09-19 Thread Peter Chen
Add optional properties for power sequence. Signed-off-by: Peter Chen Acked-by: Rob Herring --- Documentation/devicetree/bindings/usb/usb-device.txt | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/usb/usb-device.txt b/Documentatio

[PATCH v7 1/8] binding-doc: power: pwrseq-generic: add binding doc for generic power sequence library

2016-09-19 Thread Peter Chen
Add binding doc for generic power sequence library. Signed-off-by: Peter Chen Acked-by: Philipp Zabel Acked-by: Rob Herring --- .../bindings/power/pwrseq/pwrseq-generic.txt | 48 ++ 1 file changed, 48 insertions(+) create mode 100644 Documentation/devicetree/binding

[PATCH v7 0/8] power: add power sequence library

2016-09-19 Thread Peter Chen
Hi all, This is a follow-up for my last power sequence framework patch set [1]. According to Rob Herring and Ulf Hansson's comments[2]. The kinds of power sequence instances will be added at postcore_initcall, the match criteria is compatible string first, if the compatible string is not matched b

Re: [RFC] Arm64 boot fail with numa enable in BIOS

2016-09-19 Thread Yisheng Xie
On 2016/9/19 22:07, Mark Rutland wrote: > [adding LAKML, arm64 maintainers] > > On Mon, Sep 19, 2016 at 09:05:26PM +0800, Yisheng Xie wrote: >> hi all, > > Can you modify the warning in cpumask.h to dump the bad CPU number? That > would make it fairly clear if that's the case. > hi Mark, I dum

Re: [PATCH 1/2] power: bq27xxx_battery: add configurable poll_interval by sysfs

2016-09-19 Thread Matt Ranostay
On Mon, Sep 19, 2016 at 12:46 PM, Sebastian Reichel wrote: > Hi, > > On Fri, Sep 16, 2016 at 08:42:54PM -0700, Matt Ranostay wrote: >> Allow the poll_interval to be runtime configurable via an sysfs >> entry. This is needed for udev control of the poll interval. >> >> Signed-off-by: Matt Ranostay

Re: [PATCH] f2fs: fix to avoid slowing down background gc

2016-09-19 Thread Chao Yu
On 2016/9/20 10:54, Jaegeuk Kim wrote: > On Tue, Sep 20, 2016 at 10:22:22AM +0800, Chao Yu wrote: >> Hi Jaegeuk, >> >> On 2016/9/20 6:12, Jaegeuk Kim wrote: >>> Hi Chao, >>> >>> On Sun, Sep 18, 2016 at 07:52:27PM +0800, Chao Yu wrote: Previously, we will choose to speed up background gc when t

[PATCH v2 4/6] f2fs: introduce cp_lock to protect updating of ckpt_flags

2016-09-19 Thread Chao Yu
This patch introduces spinlock to protect updating process of ckpt_flags field in struct f2fs_checkpoint, it avoids incorrectly updating in race condition. Signed-off-by: Chao Yu --- fs/f2fs/checkpoint.c | 28 fs/f2fs/f2fs.h | 37 +--

[PATCH 0/3] iMX7 PWM polarity control

2016-09-19 Thread Bhuvanchandra DV
This patchset depends on this patchset[1] and this patch[2] which adds support for polarity control in imx-pwm driver. - Use pwm polarity control on iMX7 based modules. - Enable polarity control on Toradex Colibri iMX7D/S module. - Add BL_ON GPIO control for Toradex Colibri iMX7D/S module. [1] h

[PATCH 2/2] f2fs: put directory inodes before checkpoint in roll-forward recovery

2016-09-19 Thread Jaegeuk Kim
Before checkpoint, we'd be better drop any inodes. Signed-off-by: Jaegeuk Kim --- fs/f2fs/recovery.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/recovery.c b/fs/f2fs/recovery.c index 2b8a56d..509273a 100644 --- a/fs/f2fs/recovery.c +++ b/fs/f2fs/recovery.c @@ -

Re: [PATCH RESEND] drm/ast: free correct pointer in astfb_create() error paths

2016-09-19 Thread Andrew Donnellan
On 20/09/16 11:56, Andrew Donnellan wrote: In the err_free_vram and err_release_fbi error paths in astfb_create(), we attempt to free afbdev->sysram. The only jumps to these error paths occur before we assign afbdev->sysram = sysram. Free sysram instead. Signed-off-by: Andrew Donnellan --- Fo

[PATCH 1/2] f2fs: use crc and cp version to determine roll-forward recovery

2016-09-19 Thread Jaegeuk Kim
Previously, we used cp_version only to detect recoverable dnodes. In order to avoid same garbage cp_version, we needed to truncate the next dnode during checkpoint, resulting in additional discard or data write. If we can distinguish this by using crc in addition to cp_version, we can remove this o

Re: [PATCH -v3 00/10] THP swap: Delay splitting THP during swapping out

2016-09-19 Thread Huang, Ying
Hi, Minchan, Minchan Kim writes: > Hi Huang, > > On Sun, Sep 18, 2016 at 09:53:39AM +0800, Huang, Ying wrote: >> Minchan Kim writes: >> >> > On Tue, Sep 13, 2016 at 04:53:49PM +0800, Huang, Ying wrote: >> >> Minchan Kim writes: >> >> > On Tue, Sep 13, 2016 at 02:40:00PM +0800, Huang, Ying wrot

Re: [PATCH] f2fs: fix to avoid slowing down background gc

2016-09-19 Thread Jaegeuk Kim
On Tue, Sep 20, 2016 at 10:22:22AM +0800, Chao Yu wrote: > Hi Jaegeuk, > > On 2016/9/20 6:12, Jaegeuk Kim wrote: > > Hi Chao, > > > > On Sun, Sep 18, 2016 at 07:52:27PM +0800, Chao Yu wrote: > >> Previously, we will choose to speed up background gc when the below > >> conditions are both satisfie

Re: [RFC] Arm64 boot fail with numa enable in BIOS

2016-09-19 Thread Hanjun Guo
On 2016/9/19 22:07, Mark Rutland wrote: > [adding LAKML, arm64 maintainers] > > On Mon, Sep 19, 2016 at 09:05:26PM +0800, Yisheng Xie wrote: >> hi all, > Hi, > > In future, please make sure to Cc LAKML along with relevant parties when > sending arm64 patches/queries. > > For everyone newly Cc'd, th

Re: [PATCH 0/5] ARM64: Uprobe support added

2016-09-19 Thread Pratyush Anand
Hi Will/Catalin, So far there is no comment which would require any modification in this patch set. However, a rebase would be required, because we have a fixup "arm64: Improve kprobes test for atomic sequence" in the next now. Also, since we have "arm64: kprobe: Always clear pstate.D in breakpoin

Re: [PATCH 4/6] f2fs: introduce cp_lock to protect updating of ckpt_flags

2016-09-19 Thread Chao Yu
On 2016/9/20 10:41, Jaegeuk Kim wrote: > On Tue, Sep 20, 2016 at 09:47:20AM +0800, Chao Yu wrote: >> Hi Jaegeuk, >> >> On 2016/9/20 5:49, Jaegeuk Kim wrote: >>> Hi Chao, >>> >>> On Sun, Sep 18, 2016 at 11:30:06PM +0800, Chao Yu wrote: From: Chao Yu This patch introduces spinlock to

Re: [PATCH] kvm: svm: fix unsigned compare less than zero comparison

2016-09-19 Thread Suravee Suthikulpanit
Hi, On 9/19/16 13:11, Colin King wrote: From: Colin Ian King vm_data->avic_vm_id is a u32, so the check for a error return (less than zero) such as -EAGAIN from avic_get_next_vm_id currently has no effect whatsoever. Fix this by using a temporary int for the comparison and assign vm_data->avic

Re: [question] hugetlb: how to find who use hugetlb?

2016-09-19 Thread Xishi Qiu
On 2016/9/19 10:39, Xishi Qiu wrote: > On my system, I set HugePages_Total to 2G(1024 x 2M), and I use 1G hugetlb, > but the HugePages_Free is not 1G(512 x 2M), it is 280(280 x 2M) left, > HugePages_Rsvd is 0, it seems someone use 232(232 x 2M) hugetlb additionally. > > So how to find who use the

Re: "CodingStyle: Clarify and complete chapter 7" in docs-next (was Re: [PATCH 03/47] block-rbd: Adjust the position of a jump label in rbd_header_from_disk())

2016-09-19 Thread Joe Perches
On Tue, 2016-09-20 at 01:11 +0100, Al Viro wrote: > IMO what we need is to go through all rules in CodingStyle and if for > some rule there is no overwhelming majority in the core kernel, well, > the list has grown way too large and could use massive trimming. I'm in complete agreement. I also th

Re: [PATCH v2 2/3] powerpc: get hugetlbpage handling more generic

2016-09-19 Thread Aneesh Kumar K.V
christophe leroy writes: >> >> >>> for (psize = 0; psize < MMU_PAGE_COUNT; ++psize) { >>> unsigned shift; >>> unsigned pdshift; >>> @@ -860,16 +807,31 @@ static int __init hugetlbpage_init(void) >>> * if we have pdshift and shift value same, we don't >>>

Re: [RFC PATCH v2 11/11] irqchip: mbigen: promote mbigen init

2016-09-19 Thread Hanjun Guo
On 2016/9/19 18:12, Marc Zyngier wrote: > On 19/09/16 10:49, Hanjun Guo wrote: >> On 2016/9/15 23:24, Marc Zyngier wrote: >>> On 14/09/16 15:21, Hanjun Guo wrote: From: Hanjun Guo mbigen is an irqchip and it needs to be probed before devices, same logic is used for SMMU and etc

linux-next: manual merge of the drm tree with Linus' tree

2016-09-19 Thread Stephen Rothwell
Hi Dave, Today's linux-next merge of the drm tree got a conflict in: drivers/gpu/drm/imx/ipuv3-crtc.c between commit: a474478642d5 ("drm/imx: fix crtc vblank state regression") from Linus' tree and commit: 5f4df0c769a9 ("drm/imx: Use DRM_PLANE_COMMIT_NO_DISABLE_AFTER_MODESET flag") fro

Re: [PATCH 4/6] f2fs: introduce cp_lock to protect updating of ckpt_flags

2016-09-19 Thread Jaegeuk Kim
On Tue, Sep 20, 2016 at 09:47:20AM +0800, Chao Yu wrote: > Hi Jaegeuk, > > On 2016/9/20 5:49, Jaegeuk Kim wrote: > > Hi Chao, > > > > On Sun, Sep 18, 2016 at 11:30:06PM +0800, Chao Yu wrote: > >> From: Chao Yu > >> > >> This patch introduces spinlock to protect updating process of ckpt_flags > >

[PATCH] raid5: fix to detect failure of register_shrinker

2016-09-19 Thread Chao Yu
register_shrinker can fail after commit 1d3d4437eae1 ("vmscan: per-node deferred work"), we should detect the failure of it, otherwise we may fail to register shrinker after raid5 configuration was setup successfully. Signed-off-by: Chao Yu --- drivers/md/raid5.c | 7 ++- 1 file changed, 6 i

Re: [PATCH] mtd: s3c2410: add device tree support

2016-09-19 Thread Sergio Prado
On Mon, Sep 19, 2016 at 12:44:07PM +0200, Sylwester Nawrocki wrote: > On 09/17/2016 05:22 PM, Sergio Prado wrote: > > +static int s3c24xx_nand_probe_dt(struct platform_device *pdev) > > +{ > > + const struct s3c24XX_nand_devtype_data *devtype_data; > > + struct s3c2410_platform_nand *pdata; > >

[PATCH v2 3/6] f2fs: fix to avoid race condition when updating sbi flag

2016-09-19 Thread Chao Yu
Making updating of sbi flag atomic by using {test,set,clear}_bit, otherwise in concurrency scenario, the flag could be updated incorrectly. Signed-off-by: Chao Yu --- fs/f2fs/f2fs.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index

[PATCH v2 0/2] ia64: make use of new extable.h header

2016-09-19 Thread Paul Gortmaker
[v1 -> v2: de-pollute uaccess.h as per what Al Viro's comments implied] We forked the exception table content out of module.h into a new extable.h file[1]. We temporarily include extable.h into the module.h itself. Now we work our way across the arch independent and arch specific files needing j

[PATCH 2/2] ia64: ensure exception table search users include extable.h

2016-09-19 Thread Paul Gortmaker
We start with a delete of a duplicate prototype in asm/exception.h that no longer needs to exist, as it duplicates content in extable.h and since that header is so small, there is no point trying to avoid using it. Then we make sure anyone using search_exception_tables directly or via the ia64_don

[PATCH 1/2] ia64: move ia64_done_with_exception out of asm/uaccess.h

2016-09-19 Thread Paul Gortmaker
Move ia64_done_with_exception out of asm/uaccess.h (which is widely used) and into asm/exception.h (like ARM has) and then ensure the few callers of it include this new header. Most of the other C content in asm files is implemented in macro form. So we do that conversion at the same time as the m

Re: [PATCH v2 2/3] powerpc: get hugetlbpage handling more generic

2016-09-19 Thread Aneesh Kumar K.V
christophe leroy writes: > Le 19/09/2016 à 07:50, Aneesh Kumar K.V a écrit : >> >> Christophe Leroy writes: >>> +#else >>> +static void hugepd_free(struct mmu_gather *tlb, void *hugepte) >>> +{ >>> + BUG(); >>> +} >>> + >>> #endif >> >> >> I was expecting that BUG will get removed in the next

Re: [PATCH] mtd: s3c2410: add device tree support

2016-09-19 Thread Sergio Prado
On Mon, Sep 19, 2016 at 10:11:55AM +0100, Mark Rutland wrote: > On Sat, Sep 17, 2016 at 12:22:40PM -0300, Sergio Prado wrote: > > Tested on FriendlyARM Mini2440 > > > > Signed-off-by: Sergio Prado > > --- > > .../devicetree/bindings/mtd/samsung-s3c2410.txt| 70 +++ > > drivers/mtd/n

  1   2   3   4   5   6   7   8   9   10   >