[PATCH 05/11] clk: tegra30: clean up init_table

2016-05-25 Thread Rhyland Klein
Remove entries from the init_table where the clks are now defined as CRITICAL clks, if we were only enabling them in the init_table. Remove the flag to signal to enable CRITICAL clks if they are still needed in the init_table to set other properties. Signed-off-by: Rhyland Klein --- drivers/clk

[git pull] vfs.git xattr regression fixes

2016-05-25 Thread Al Viro
The following changes since commit e0d46f5c6e0ba3a79e64cd60e62b7b7191ed93f3: btrfs: Switch to generic xattr handlers (2016-05-17 19:17:09 -0400) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git for-linus for you to fetch changes up to 004077

[PATCH 03/11] clk: tegra20: clean up init_table

2016-05-25 Thread Rhyland Klein
Remove entries from the init_table where the clks are now defined as CRITICAL clks, if we were only enabling them in the init_table. Remove the flag to signal to enable CRITICAL clks if they are still needed in the init_table to set other properties. Signed-off-by: Rhyland Klein --- drivers/clk

[PATCH 06/11] clk: tegra114: clean up init_table

2016-05-25 Thread Rhyland Klein
Remove entries from the init_table where the clks are now defined as CRITICAL clks, if we were only enabling them in the init_table. Remove the flag to signal to enable CRITICAL clks if they are still needed in the init_table to set other properties. Signed-off-by: Rhyland Klein --- drivers/clk

[PATCH 01/11] clk: tegra: Switch to using critical/handoff clks

2016-05-25 Thread Rhyland Klein
Mark some of the required-to-be-enabled clks as critical or hand-off clks, depending on whether or not there is a consumer who should be taking a reference to them to enable them. - May need to revisit all chips to look for more - May need to switch some hand-off => critical since support is les

[git pull] iov_iter regression fix

2016-05-25 Thread Al Viro
fix for braino in "fold checks into iterate_and_advance()" The following changes since commit dd254f5a382cc7879db7a07ed266b12d38fe3ab6: fold checks into iterate_and_advance() (2016-05-09 14:04:29 -0400) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/vi

[PATCH 02/11] clk: tegra20: Mark required clks as CRITICAL

2016-05-25 Thread Rhyland Klein
Mark clks that are required to be on as CRITICAL clks. Signed-off-by: Rhyland Klein --- drivers/clk/tegra/clk-tegra20.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/clk/tegra/clk-tegra20.c b/drivers/clk/tegra/clk-tegra20.c index 837e5cbd60e9..4a60a25d7

[PATCH v9 5/5] x86/KASLR: Allow randomization below load address

2016-05-25 Thread Kees Cook
From: Yinghai Lu Currently the physical randomization's lower boundary is the original kernel load address. For bootloaders that load kernels into very high memory (e.g. kexec), this means randomization takes place in a very small window at the top of memory, ignoring the large region of physical

[PATCH v9 2/5] x86/KASLR: Clarify identity map interface

2016-05-25 Thread Kees Cook
This extracts the call to prepare_level4() into a top-level function that the user of the pagetable.c interface must call to initialize the new page tables. For clarity and to match the "finalize" function, it has been renamed to initialize_identity_maps(). This function also gains the initializati

[PATCH v9 0/5] x86/KASLR: Randomize virtual address separately

2016-05-25 Thread Kees Cook
This is v9 of the remaining patches needed to support separate phys/virt KASLR of the text base address. The rest of the series has landed in -tip. The patches are: - 1: Best-effort data relocation detection for the build. - 2: Further clean up on pagetable.c. - 3: Last part of Baoquan's decouplin

[PATCH v9 3/5] x86/KASLR: Randomize virtual address separately

2016-05-25 Thread Kees Cook
From: Baoquan He The current KASLR implementation randomizes the physical and virtual addresses of the kernel together (both are offset by the same amount). It calculates the delta of the physical address where vmlinux was linked to load and where it is finally loaded. If the delta is not equal t

[PATCH v9 1/5] x86/boot: Refuse to build with data relocations

2016-05-25 Thread Kees Cook
The compressed kernel is built with -fPIC/-fPIE so that it can run in any location a bootloader happens to put it. However, since ELF relocation processing is not happening (and all the relocation information has already been stripped at link time), none of the code can use data relocations (e.g. s

Re: [PATCH] tty: serial: msm: Disable restoring Rx interrupts for DMA Mode

2016-05-25 Thread Stephen Boyd
On 05/13, chara...@codeaurora.org wrote: > Hi Stephen/Andy, > > If both Tx and Rx are used simultaneously, restoring Rx interrupts in > msm_complete_rx_dma could lead to RXSTALE interrupt being triggered, > when > the ISR execution for TXLEV interrupt is completed, since > msm_port->imr is > rewri

[PATCH V3] brcmfmac: print error if p2p_ifadd firmware command fails

2016-05-25 Thread Rafał Miłecki
This is helpful for debugging, without this all I was getting from "iw" command on device with BCM43602 was: > command failed: Too many open files in system (-23) Signed-off-by: Rafał Miłecki --- V2: s/in/if/ in commit message V3: Add one more error message as suggested by Arend --- drivers/net/

Re: [PATCH 2/2] fs: befs: Check silent flag before logging errors

2016-05-25 Thread Joe Perches
On Wed, 2016-05-25 at 22:58 +0100, Salah Triki wrote: > Log errors only when silent flag is not set. [] > diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c [] > @@ -765,14 +765,16 @@ befs_fill_super(struct super_block *sb, void *data, int > silent) >   >   sb->s_fs_info = kzalloc(sizeof(*be

Re: [PATCH v3 02/12] of: add J-Core cpu bindings

2016-05-25 Thread Rich Felker
On Wed, May 25, 2016 at 11:22:15AM +0100, Mark Rutland wrote: > > +Optional properties: > > + > > +- enable-method: Required only for SMP systems. If present, must be > > + "jcore,spin-table". > > + > > + > > + > > +Individual cpu nodes > > + > > + > > +Requ

[PATCH v6 1/3] x86/mm: PUD VA support for physical mapping (x86_64)

2016-05-25 Thread Kees Cook
From: Thomas Garnier Minor change that allows early boot physical mapping of PUD level virtual addresses. The current implementation expects the virtual address to be PUD aligned. For KASLR memory randomization, we need to be able to randomize the offset used on the PUD table. It has no impact o

[PATCH v6 3/3] x86/mm: Memory hotplug support for KASLR memory randomization

2016-05-25 Thread Kees Cook
From: Thomas Garnier Add a new option (CONFIG_RANDOMIZE_MEMORY_PHYSICAL_PADDING) to define the padding used for the physical memory mapping section when KASLR memory is enabled. It ensures there is enough virtual address space when CONFIG_MEMORY_HOTPLUG is used. The default value is 10 terabytes.

Re: [PATCH] tty: serial: msm: Remove duplicate handling of clocks

2016-05-25 Thread Stephen Boyd
On 05/16, Pramod Gurav wrote: > On 11 May 2016 at 14:30, Pramod Gurav wrote: > > msm_serial driver provides a .pm callback to the serial core to enable > > and disable clock resource in suspend/resume path. This function is > > also called before msm_startup. msm_startup also enables the clocks wh

Re: [PATCH v3 03/12] of: add J-Core interrupt controller bindings

2016-05-25 Thread Rich Felker
On Wed, May 25, 2016 at 11:25:04AM +0100, Mark Rutland wrote: > On Wed, May 25, 2016 at 05:43:03AM +, Rich Felker wrote: > > Signed-off-by: Rich Felker > > --- > > .../bindings/interrupt-controller/jcore,aic.txt| 29 > > ++ > > 1 file changed, 29 insertions(+) > > cr

Re: [PATCH v3 12/12] sh: add device tree source for J2 FPGA on Mimas v2 board

2016-05-25 Thread Rich Felker
On Wed, May 25, 2016 at 11:33:50AM +0100, Mark Rutland wrote: > On Wed, May 25, 2016 at 05:43:03AM +, Rich Felker wrote: > > Signed-off-by: Rich Felker > > --- > > arch/sh/boot/dts/j2_mimas_v2.dts | 87 > > > > 1 file changed, 87 insertions(+) > > cr

[PATCH v6 2/3] x86/mm: Implement ASLR for kernel memory sections (x86_64)

2016-05-25 Thread Kees Cook
From: Thomas Garnier Randomizes the virtual address space of kernel memory sections (physical memory mapping, vmalloc & vmemmap) for x86_64. This security feature mitigates exploits relying on predictable kernel addresses. These addresses can be used to disclose the kernel modules base addresses

Re: [PATCH] PCI/MSI: pci-xgene-msi: Enable MSI support in ACPI boot for X-Gene v1

2016-05-25 Thread Duc Dang
On Thu, Feb 25, 2016 at 9:38 AM, Lorenzo Pieralisi wrote: > On Wed, Feb 24, 2016 at 02:28:10PM -0800, Duc Dang wrote: >> On Wed, Feb 24, 2016 at 8:16 AM, Marc Zyngier wrote: >> > On 24/02/16 16:09, Mark Salter wrote: >> >> On Tue, 2016-02-09 at 17:56 -0800, Duc Dang wrote: >> >>> This patch makes

[PATCH v9 4/5] x86/KASLR: Add physical address randomization >4G

2016-05-25 Thread Kees Cook
This patch exchanges the prior slots[] array for the new slot_areas[] array, and lifts the limitation of KERNEL_IMAGE_SIZE on the physical address offset for 64-bit. As before, process_e820_entry() walks memory and populates slot_areas[], splitting on any detected mem_avoid collisions. Finally, si

Re: [PATCH] mm: use early_pfn_to_nid in register_page_bootmem_info_node

2016-05-25 Thread Shi, Yang
On 5/25/2016 3:23 PM, Andrew Morton wrote: On Wed, 25 May 2016 14:00:07 -0700 Yang Shi wrote: register_page_bootmem_info_node() is invoked in mem_init(), so it will be called before page_alloc_init_late() if CONFIG_DEFERRED_STRUCT_PAGE_INIT is enabled. But, pfn_to_nid() depends on memmap which

[PATCH v6 0/3] x86/mm: memory area address KASLR

2016-05-25 Thread Kees Cook
This is v6 of Thomas Garnier's KASLR for memory areas (physical memory mapping, vmalloc, vmemmap). It expects to be applied on top of the last set of text base address KASLR changes. Minor changes were made to reorganize some defines, add some file comments, etc. ***Background: The current impleme

[PATCH V2 3/3] fs: befs: Remove useless pr_err

2016-05-25 Thread Salah Triki
Remove pr_err since when kzalloc fails there is a generic out of memory and stack dump. Signed-off-by: Salah Triki --- fs/befs/linuxvfs.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c index edee857..5b47b0f 100644 --- a/fs/befs/

Re: [PATCH v2] net: alx: use custom skb allocator

2016-05-25 Thread David Miller
From: Feng Tang Date: Wed, 25 May 2016 14:49:54 +0800 > This patch follows Eric Dumazet's commit 7b70176421 for Atheros > atl1c driver to fix one exactly same bug in alx driver, that the > network link will be lost in 1-5 minutes after the device is up. > > My laptop Lenovo Y580 with Atheros AR8

Re: objtool warning: "duplicate frame pointer save"

2016-05-25 Thread Linus Torvalds
On Wed, May 25, 2016 at 10:56 AM, Josh Poimboeuf wrote: > > I used to have a STACKTOOL_IGNORE_INSN macro that would tell the tool to > skip warnings for specific instructions in inline asm: > > Here's an example of it how it was used: Ok, looking at that, I'm starting to suspect that it is simple

Re: [PATCH] clk: rockchip: add a dummy clock for the watchdog pclk on rk3399

2016-05-25 Thread Stephen Barber
On Wed, May 25, 2016 at 1:51 AM, Xing Zheng wrote: > Like rk3288, the pclk supplying the watchdog is controlled via the > SGRF register area. Additionally the SGRF isn't even writable in > every boot mode. > > But still the clock control is available and in the future someone > might want to use i

[GIT PULL][SECURITY] Yama locking fix

2016-05-25 Thread James Morris
Please pull this fix for the Yama LSM. The following changes since commit ecc5fbd5ef472a4c659dc56a5739b3f041c0530c: Merge tag 'pwm/for-4.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm (2016-05-25 10:40:15 -0700) are available in the git repository at: git

[PATCH V3 3/4] fs: befs: Remove useless pr_err

2016-05-25 Thread Salah Triki
Remove pr_err since when kzalloc fails there is a generic out of memory and stack dump. Signed-off-by: Salah Triki --- fs/befs/linuxvfs.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c index edee857..5b47b0f 100644 --- a/fs/befs/

[PATCH V3 1/4] fs: befs: Move useless assignment

2016-05-25 Thread Salah Triki
Control is transfered to unacquire_none when sb->s_fs_info is equal to NULL, so the assignment to NULL is useless and it is moved above unacquire_none. Signed-off-by: Salah Triki --- fs/befs/linuxvfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/befs/linuxvfs.c b/fs/be

Re: [PATCH] Input: Change BTN_TOOL_FINGER flag when hover event trigger

2016-05-25 Thread 'Dmitry Torokhov'
Hi KT, On Mon, May 23, 2016 at 10:28:59PM +0800, 廖崇榮 wrote: > Hi Dmitry, > > Thanks for your confirmation. > > I think the best and simplest way is to add below code to emit > BTN_TOOL_FINGER if hover condition meets. > > input_report_key(dev, BTN_TOOL_FINGER, input_mt_get_value(dev, ABS_DISTA

[PATCH V3 4/4] fs: befs: Remove useless befs_error

2016-05-25 Thread Salah Triki
Remove befs_error since when kmalloc fails there is a generic out of memory and stack dump. Signed-off-by: Salah Triki --- fs/befs/linuxvfs.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c index 5b47b0f..04541f3 100644 --- a/fs/befs/linuxvfs.c +++ b/

Re: [PATCH v4] input: tablet: add Pegasus Notetaker tablet driver

2016-05-25 Thread Dmitry Torokhov
Hi Martin, On Wed, May 25, 2016 at 09:44:34AM +0200, Martin Kepplinger wrote: > This adds a driver for the Pegasus Notetaker Pen. When connected, > this uses the Pen as an input tablet. > > This device was sold in various different brandings, for example > "Pegasus Mobile Notetaker M210", >

Re: [PATCH] Emit BTN_TOO_FINGER in function input_mt_report_pointer_emulation if touchpad meets hover condition

2016-05-25 Thread 'Dmitry Torokhov'
Hi KT, On Wed, May 25, 2016 at 07:44:57PM +0800, 廖崇榮 wrote: > Hi Dmitry, > > Update /input/mouse/input-mt.c > Emit BTN_TOO_FINGER in input_mt_report_pointer_emulation if touchpad meets > hover condition. Please do not top-post and also do not send patches as attachments, they should be sent inl

Re: [PATCH v6 11/12] zsmalloc: page migration support

2016-05-25 Thread Minchan Kim
Hi Sergey, On Thu, May 26, 2016 at 12:23:45AM +0900, Sergey Senozhatsky wrote: > Hello Minchan, > > On (05/25/16 14:14), Minchan Kim wrote: > [..] > > > > do you also want to kick the deferred page release from the shrinker > > > > callback, for example? > > > > > > Yeb, it can be. I will do it

Re: [PATCH v3 1/5] thermal: Add support for hardware-tracked trip points

2016-05-25 Thread Caesar Wang
On 2016年05月26日 00:42, Javi Merino wrote: Hi Caesar, On Wed, May 25, 2016 at 11:47:45AM +0800, Caesar Wang wrote: From: Sascha Hauer This adds support for hardware-tracked trip points to the device tree thermal sensor framework. The framework supports an arbitrary number of trip points. When

Re: [PATCH] Input: pwm-beeper - fix: scheduling while atomic

2016-05-25 Thread Dmitry Torokhov
On Tue, May 24, 2016 at 10:32:53AM +0200, Manfred Schlaegl wrote: > On 2016-05-20 18:59, Dmitry Torokhov wrote: > > Hi Manfred, > > > > On Wed, May 18, 2016 at 05:16:49PM +0200, Manfred Schlaegl wrote: > >> @@ -133,6 +149,8 @@ static int pwm_beeper_remove(struct platform_device > >> *pdev) > >>

Re: [PATCH] mm: use early_pfn_to_nid in register_page_bootmem_info_node

2016-05-25 Thread Joonsoo Kim
Ccing Mel. On Wed, May 25, 2016 at 03:36:48PM -0700, Shi, Yang wrote: > On 5/25/2016 3:23 PM, Andrew Morton wrote: > >On Wed, 25 May 2016 14:00:07 -0700 Yang Shi wrote: > > > >>register_page_bootmem_info_node() is invoked in mem_init(), so it will be > >>called before page_alloc_init_late() if CO

Re: [PATCH] mm: check the return value of lookup_page_ext for all call sites

2016-05-25 Thread Minchan Kim
On Tue, May 24, 2016 at 11:58:11AM +0900, Minchan Kim wrote: > On Mon, May 23, 2016 at 10:16:08AM -0700, Yang Shi wrote: > > Per the discussion with Joonsoo Kim [1], we need check the return value of > > lookup_page_ext() for all call sites since it might return NULL in some > > cases, > > althoug

[PATCH V2 1/3] fs: befs: Move useless assignment

2016-05-25 Thread Salah Triki
Control is transfered to unacquire_none when sb->s_fs_info is equal to NULL, so the assignment to NULL is useless and it is moved above unacquire_none. Signed-off-by: Salah Triki --- fs/befs/linuxvfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/befs/linuxvfs.c b/fs/be

Re: [PATCH 0/7] zram: switch to crypto api

2016-05-25 Thread Joonsoo Kim
On Wed, May 25, 2016 at 11:29:59PM +0900, Sergey Senozhatsky wrote: > Hello, > > This has started as a 'add zlib support' work, but after some > thinking I saw no blockers for a bigger change -- a switch to > crypto API. > > We don't have an idle zstreams list anymore and our write path > now

[PATCH V2 2/3] fs: befs: Check silent flag before logging errors

2016-05-25 Thread Salah Triki
Log errors only when silent flag is not set. Signed-off-by: Salah Triki --- fs/befs/linuxvfs.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c index 75ec9a7..edee857 100644 --- a/fs/befs/linuxvfs.c +++ b/fs/befs/linuxvfs

Re: [PATCH 1/7] zram: rename zstrm find-release functions

2016-05-25 Thread Minchan Kim
On Wed, May 25, 2016 at 11:30:00PM +0900, Sergey Senozhatsky wrote: > We don't perform any zstream idle list lookup anymore, so > zcomp_strm_find()/zcomp_strm_release() names are not > representative. > > Rename to zcomp_stream_get()/zcomp_stream_put(). Actually, I wanted it when we applied percp

Re: [PATCH v3 00/12] J-core J2 cpu and SoC peripherals support

2016-05-25 Thread Mark Brown
On Wed, May 25, 2016 at 06:24:41PM -0400, Rich Felker wrote: > On Wed, May 25, 2016 at 10:54:44AM +0100, Mark Brown wrote: > > On Wed, May 25, 2016 at 05:43:02AM +, Rich Felker wrote: > > > As arch/sh co-maintainer my intent is to include as much as possible > > > in my pull request for the li

Re: [PATCH v1 1/1] sysctl: introduce uuid_le and uuid_be

2016-05-25 Thread Theodore Ts'o
I'm also curious what !@#!? idiot came up with the concept of Little Endian UUID's. UUID's, and how to transform them from a printed representation to a binary presentation, were well defined in a very specific way in RFC-4122, which came from HP's Apollo/Domain OS, and was adopted by the OSF/DCE,

Re: [PATCH v6 6/6] crypto: AF_ALG - add support for key_id

2016-05-25 Thread Mat Martineau
On Sat, 14 May 2016, Tadeusz Struk wrote: diff --git a/crypto/algif_akcipher.c b/crypto/algif_akcipher.c index e00793d..6733df1 100644 --- a/crypto/algif_akcipher.c +++ b/crypto/algif_akcipher.c +static int asym_key_verify(const struct key *key, struct akcipher_request *req) +{ + struct p

Re: [PATCH 0/7] zram: switch to crypto api

2016-05-25 Thread Minchan Kim
On Wed, May 25, 2016 at 11:29:59PM +0900, Sergey Senozhatsky wrote: > Hello, > > This has started as a 'add zlib support' work, but after some > thinking I saw no blockers for a bigger change -- a switch to > crypto API. > > We don't have an idle zstreams list anymore and our write path > now

Re: [PATCH v6 11/12] zsmalloc: page migration support

2016-05-25 Thread Sergey Senozhatsky
Hello Minchan, On (05/26/16 09:32), Minchan Kim wrote: [..] > Unfortunately, I don't have now. However, I don't feel we need a data for > that because *unbounded work* within VM interaction context is bad. ;-) fair enough, even though the shrinker doesn't put any constraints here. > > hm, probab

Re: [PATCH v8 2/7] usb: mux: add generic code for dual role port mux

2016-05-25 Thread Lu Baolu
Hi Heikki, On 05/25/2016 07:06 PM, Heikki Krogerus wrote: > Hi Baolu, > > Sorry to comment this so late, but we got hardware that needs to > configure the mux in OS, and I noticed some problem. Comments are always welcome. :-) > We are missing > means to bind a port to the correct mux on multipo

Re: [PATCH v9 04/13] task_isolation: add initial support

2016-05-25 Thread Frederic Weisbecker
I don't remember how much I answered this email, but I need to finish that :-) On Fri, Apr 08, 2016 at 12:34:48PM -0400, Chris Metcalf wrote: > On 4/8/2016 9:56 AM, Frederic Weisbecker wrote: > >On Wed, Mar 09, 2016 at 02:39:28PM -0500, Chris Metcalf wrote: > >> TL;DR: Let's make an explicit dec

Re: [PATCH 1/7] zram: rename zstrm find-release functions

2016-05-25 Thread Sergey Senozhatsky
On (05/26/16 09:44), Minchan Kim wrote: > On Wed, May 25, 2016 at 11:30:00PM +0900, Sergey Senozhatsky wrote: > > We don't perform any zstream idle list lookup anymore, so > > zcomp_strm_find()/zcomp_strm_release() names are not > > representative. > > > > Rename to zcomp_stream_get()/zcomp_stream

[PATCH V3 2/4] fs: befs: Check silent flag before logging errors

2016-05-25 Thread Salah Triki
Log errors only when silent flag is not set. Signed-off-by: Salah Triki --- fs/befs/linuxvfs.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c index 75ec9a7..edee857 100644 --- a/fs/befs/linuxvfs.c +++ b/fs/befs/linuxvfs

Re: [PATCH 0/7] zram: switch to crypto api

2016-05-25 Thread Sergey Senozhatsky
On (05/26/16 09:52), Minchan Kim wrote: > On Wed, May 25, 2016 at 11:29:59PM +0900, Sergey Senozhatsky wrote: > > Hello, > > > > This has started as a 'add zlib support' work, but after some > > thinking I saw no blockers for a bigger change -- a switch to > > crypto API. > > > > We don't hav

Re: [RFC v2 1/2] mm: Reorganize SLAB freelist randomization

2016-05-25 Thread Joonsoo Kim
On Tue, May 24, 2016 at 02:15:22PM -0700, Thomas Garnier wrote: > This commit reorganizes the previous SLAB freelist randomization to > prepare for the SLUB implementation. It moves functions that will be > shared to slab_common. It also move the definition of freelist_idx_t in > the slab_def heade

Re: [PATCH] devicetree - document using aliases to set spi bus number.

2016-05-25 Thread Christer Weinigel
On 05/25/2016 08:44 PM, Mark Brown wrote: > On Wed, May 25, 2016 at 11:06:46AM -0700, Frank Rowand wrote: >> On 5/25/2016 10:49 AM, Rob Herring wrote: > >>> Things get undocumented all the time when we deprecate them. > >> If it is deprecated then it should be documented as deprecated >> so peopl

Re: [PATCH 0/7] zram: switch to crypto api

2016-05-25 Thread Sergey Senozhatsky
On (05/26/16 09:43), Joonsoo Kim wrote: [..] > Hello, Sergey. > > I don't look at each patches deeply but nice work! I didn't notice that > rececnt zram changes makes thing simpler. :) Hello Joonsoo, thanks. I owe you a drink for pushing it in the context-less crypto API direction. sorry about

[PATCH V4 6/6] fs: befs: Coalesce format in log messages

2016-05-25 Thread Salah Triki
Coalese format is more readable, even if it goes over 80 column width, so group format snippets together. Signed-off-by: Salah Triki --- fs/befs/linuxvfs.c | 21 +++-- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c index c73

[PATCH V4 2/6] fs: befs: Check silent flag before logging errors

2016-05-25 Thread Salah Triki
Log errors only when silent flag is not set. Signed-off-by: Salah Triki --- fs/befs/linuxvfs.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c index 75ec9a7..edee857 100644 --- a/fs/befs/linuxvfs.c +++ b/fs/befs/linuxvfs

[PATCH V4 1/6] fs: befs: Move useless assignment

2016-05-25 Thread Salah Triki
Control is transfered to unacquire_none when sb->s_fs_info is equal to NULL, so the assignment to NULL is useless and it is moved above unacquire_none. Signed-off-by: Salah Triki --- fs/befs/linuxvfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/befs/linuxvfs.c b/fs/be

[PATCH V4 5/6] fs: befs: Remove useless pr_err

2016-05-25 Thread Salah Triki
Remove pr_err since kmem_cache_create log error and dump stack. Signed-off-by: Salah Triki --- fs/befs/linuxvfs.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c index 04541f3..c734f21 100644 --- a/fs/befs/linuxvfs.c +++ b/fs/befs

[PATCH V4 4/6] fs: befs: Remove useless befs_error

2016-05-25 Thread Salah Triki
Remove befs_error since when kmalloc fails there is a generic out of memory and stack dump. Signed-off-by: Salah Triki --- fs/befs/linuxvfs.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c index 5b47b0f..04541f3 100644 --- a/fs/befs/linuxvfs.c +++ b/

[PATCH V4 3/6] fs: befs: Remove useless pr_err

2016-05-25 Thread Salah Triki
Remove pr_err since when kzalloc fails there is a generic out of memory and stack dump. Signed-off-by: Salah Triki --- fs/befs/linuxvfs.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c index edee857..5b47b0f 100644 --- a/fs/befs/

Re: [PATCH] devicetree - document using aliases to set spi bus number.

2016-05-25 Thread Rob Herring
On Wed, May 25, 2016 at 8:10 PM, Christer Weinigel wrote: > On 05/25/2016 08:44 PM, Mark Brown wrote: >> On Wed, May 25, 2016 at 11:06:46AM -0700, Frank Rowand wrote: >>> On 5/25/2016 10:49 AM, Rob Herring wrote: >> Things get undocumented all the time when we deprecate them. >> >>> If it is

Re: [RFC v2 2/2] mm: SLUB Freelist randomization

2016-05-25 Thread Joonsoo Kim
2016-05-25 6:15 GMT+09:00 Thomas Garnier : > Implements Freelist randomization for the SLUB allocator. It was > previous implemented for the SLAB allocator. Both use the same > configuration option (CONFIG_SLAB_FREELIST_RANDOM). > > The list is randomized during initialization of a new set of pages

Re: [PATCH] ACPI / Thermal / video: fix max_level incorrect value

2016-05-25 Thread Valdis . Kletnieks
On Wed, 25 May 2016 13:15:26 +0800, Aaron Lu said: > Valdis, can you please give the patch a try? Thanks. Sorry, had a few days where actual work commitments and other things got in the way... I tested this patch against next-20160524, and can report that the problem is fixed, so feel free to stic

Re: Builtin microcode does nothing..

2016-05-25 Thread Gabriel C
On 25.05.2016 23:50, Gabriel C wrote: I build an kernel on my oder box in a bit and let you know .. this server I tested on is sometimes strange Hangs on the second box too also..

Re: [PATCH 0/7] zram: switch to crypto api

2016-05-25 Thread Joonsoo Kim
On Thu, May 26, 2016 at 10:12:16AM +0900, Sergey Senozhatsky wrote: > On (05/26/16 09:43), Joonsoo Kim wrote: > [..] > > Hello, Sergey. > > > > I don't look at each patches deeply but nice work! I didn't notice that > > rececnt zram changes makes thing simpler. :) > > Hello Joonsoo, > > thanks.

[PATCH v6 0/5] Add enhanced strobe support for emmc version 5.1 or later

2016-05-25 Thread Shawn Lin
Hello all, This patch is going to support enhanced strobe function for emmc version 5.1+ introduced by JEDEC recently. Enchanced strobe is a optional function, so we add a new cap* for drivers to decide whether to use it. When introduing hs400 mode, JEDEC asks controllers to use data strobe lin

[PATCH v6 4/5] mmc: debugfs: add HS400 enhanced strobe description

2016-05-25 Thread Shawn Lin
We introduce HS400 with enhanced strobe function, so we need to add it for debug show. Signed-off-by: Shawn Lin Reviewed-by: Douglas Anderson Tested-by: Douglas Anderson Tested-by: Jaehoon Chung --- Changes in v6: - add Doug's review-test-tag and Jaehoon's test-tag - a minor string assignmen

[PATCH v6 2/5] mmc: core: add mmc-hs400-enhanced-strobe support

2016-05-25 Thread Shawn Lin
This patch introduce mmc-hs400-enhanced-strobe for platforms which want to enable enhanced strobe function from DT if the mmc host controller claims to support enhanced strobe. Signed-off-by: Shawn Lin Reviewed-by: Douglas Anderson Tested-by: Jaehoon Chung --- Changes in v6: - add Doug's revi

[PATCH v6 1/5] Documentation: mmc: add mmc-hs400-enhanced-strobe

2016-05-25 Thread Shawn Lin
mmc-hs400-enhanced-strobe is used to claim that the host can support hs400 mode with enhanced strobe introduced by emmc 5.1 spec. Signed-off-by: Shawn Lin Acked-by: Rob Herring Reviewed-by: Douglas Anderson --- Changes in v6: - add Doug's review-tag Changes in v5: None Changes in v4: None Ch

Re: [PATCH] devicetree - document using aliases to set spi bus number.

2016-05-25 Thread Christer Weinigel
On 05/26/2016 03:44 AM, Rob Herring wrote: Lovely. "Here's something that's simple and useful for users. Let's break it". What part of "we do not break userspace" do you not understand? Because that would be a user visible change. The other saying is "if it is not upstream, it doesn't exist." T

[PATCH v6 3/5] mmc: core: implement enhanced strobe support

2016-05-25 Thread Shawn Lin
Controllers use data strobe line to latch data from devices under hs400 mode, but not for cmd line. So since emmc 5.1, JEDEC introduces enhanced strobe mode for latching cmd response from emmc devices to host controllers. This new feature is optional, so it depends both on device's cap and host's c

[PATCH v6 5/5] mmc: sdhci-of-arasan: implement enhanced strobe callback

2016-05-25 Thread Shawn Lin
Currently sdhci-arasan 5.1 can support enhanced strobe function, and we now limit it just for "arasan,sdhci-5.1". Add mmc-hs400-enhanced-strobe in DT to enable the function if we're sure our controller can support it. Signed-off-by: Shawn Lin Acked-by: Adrian Hunter Reviewed-by: Doug Anderson

[PATCH] Revert "platform/chrome: chromeos_laptop: Add Leon Touch"

2016-05-25 Thread Benson Leung
This reverts commit bff3c624dc7261a084a4d25a0b09c3fb0fec872a. Board "Leon" is otherwise known as "Toshiba CB35" and we already have the entry that supports that board as of this commit : 963cb6f platform/chrome: chromeos_laptop - Add Toshiba CB35 Touch Remove this duplicate. Signed-off-by: Benso

[PATCH] brcmfmac: rework function picking free BSS index

2016-05-25 Thread Rafał Miłecki
The old implementation was overcomplicated and slightly bugged in some corner cases. Consider following state of BSS-es (limited to 6 for simplification): drvr->iflist[0]: { bsscfgidx:0, ndev->name:wlan1, } drvr->iflist[1]: (null) drvr->iflist[2]: { bsscfgidx:2, ndev->name:wlan1-1, } drvr->iflist

Re: [PATCH] MAINTAINERS: Kdump maintainers update

2016-05-25 Thread Simon Horman
On Wed, May 25, 2016 at 09:37:13AM -0400, Vivek Goyal wrote: > On Wed, May 25, 2016 at 06:24:10AM -0700, Joe Perches wrote: > > On Wed, 2016-05-25 at 09:16 -0400, Vivek Goyal wrote: > > > I am proposing following updates to kdump maintainership. I have got > > > busy in other things and not getting

RE: [PATCH] usb: core: add debugobjects support for urb object

2016-05-25 Thread Du, Changbin
> On Tue, May 24, 2016 at 03:53:53PM +0800, changbin...@intel.com wrote: > > From: "Du, Changbin" > > > > Add debugobject support to track the life time of struct urb. > > This feature help us detect violation of urb operations by > > generating a warning message from debugobject core. And we fix

Re: [PATCH] mmc: dw_mmc: Consider HLE errors to be data and command errors

2016-05-25 Thread Shawn Lin
Hi Jaehoon, On 2016/5/19 21:07, Jaehoon Chung wrote: On 05/19/2016 08:31 PM, Shawn Lin wrote: Hi, On 2016/5/19 1:37, Doug Anderson wrote: Hi, On Wed, May 18, 2016 at 2:14 AM, Shawn Lin wrote: Hi On 2016-5-18 12:12, Doug Anderson wrote: Hi, On Tue, May 17, 2016 at 6:59 PM, Shawn Lin w

Re: [PATCH] MAINTAINERS: Kdump maintainers update

2016-05-25 Thread Dave Young
Hi, Vivek On 05/25/16 at 09:37am, Vivek Goyal wrote: > On Wed, May 25, 2016 at 06:24:10AM -0700, Joe Perches wrote: > > On Wed, 2016-05-25 at 09:16 -0400, Vivek Goyal wrote: > > > I am proposing following updates to kdump maintainership. I have got > > > busy in other things and not getting time t

[PATCH v2 1/7] mm/compaction: split freepages without holding the zone lock

2016-05-25 Thread js1304
From: Joonsoo Kim We don't need to split freepages with holding the zone lock. It will cause more contention on zone lock so not desirable. Signed-off-by: Joonsoo Kim --- include/linux/mm.h | 1 - mm/compaction.c| 42 ++ mm/page_alloc.c| 27

[PATCH v2 5/7] tools/vm/page_owner: increase temporary buffer size

2016-05-25 Thread js1304
From: Joonsoo Kim Page owner will be changed to store more deep stacktrace so current temporary buffer size isn't enough. Increase it. Signed-off-by: Joonsoo Kim --- tools/vm/page_owner_sort.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tools/vm/page_owner_sort

[PATCH v2 6/7] mm/page_owner: use stackdepot to store stacktrace

2016-05-25 Thread js1304
From: Joonsoo Kim Currently, we store each page's allocation stacktrace on corresponding page_ext structure and it requires a lot of memory. This causes the problem that memory tight system doesn't work well if page_owner is enabled. Moreover, even with this large memory consumption, we cannot ge

[PATCH v2 7/7] mm/page_alloc: introduce post allocation processing on page allocator

2016-05-25 Thread js1304
From: Joonsoo Kim This patch is motivated from Hugh and Vlastimil's concern [1]. There are two ways to get freepage from the allocator. One is using normal memory allocation API and the other is __isolate_free_page() which is internally used for compaction and pageblock isolation. Later usage is

[PATCH v2 3/7] mm/page_owner: copy last_migrate_reason in copy_page_owner()

2016-05-25 Thread js1304
From: Joonsoo Kim Currently, copy_page_owner() doesn't copy all the owner information. It skips last_migrate_reason because copy_page_owner() is used for migration and it will be properly set soon. But, following patch will use copy_page_owner() and this skip will cause the problem that allocated

[PATCH v2 2/7] mm/page_owner: initialize page owner without holding the zone lock

2016-05-25 Thread js1304
From: Joonsoo Kim It's not necessary to initialized page_owner with holding the zone lock. It would cause more contention on the zone lock although it's not a big problem since it is just debug feature. But, it is better than before so do it. This is also preparation step to use stackdepot in pag

[PATCH v2 4/7] mm/page_owner: introduce split_page_owner and replace manual handling

2016-05-25 Thread js1304
From: Joonsoo Kim split_page() calls set_page_owner() to set up page_owner to each pages. But, it has a drawback that head page and the others have different stacktrace because callsite of set_page_owner() is slightly differnt. To avoid this problem, this patch copies head page's page_owner to th

Re: dma-buf/sync_file: de-stage sync_file

2016-05-25 Thread Dave Jones
On Sat, May 21, 2016 at 05:31:53AM +, Linux Kernel wrote: > dma-buf/sync_file: de-stage sync_file > > sync_file is useful to connect one or more fences to the file. The file > is > used by userspace to track fences between drivers that share DMA bufs. > > Sig

[PATCH 3/3] arm64/numa: fix type info

2016-05-25 Thread Zhen Lei
numa_init(of_numa_init) may returned error because of numa configuration error. So "No NUMA configuration found" is inaccurate. In fact, specific configuration error information can be immediately printed by the testing branch. So "No NUMA..." only needs to be printed when numa_off. Signed-off-by:

[PATCH 2/3] of/numa: fix a memory@ dt node can only contains one memory block

2016-05-25 Thread Zhen Lei
For a normal memory@ devicetree node, its reg property can contains more memory blocks. Because we don't known how many memory blocks maybe contained, so we try from index=0, increase 1 until error returned(the end). Signed-off-by: Zhen Lei --- drivers/of/of_numa.c | 30

[PATCH 1/3] of/numa: remove a duplicated pr_debug information

2016-05-25 Thread Zhen Lei
This information will be printed in the subfunction numa_add_memblk. They are not the same, but very similar. Signed-off-by: Zhen Lei --- drivers/of/of_numa.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/of/of_numa.c b/drivers/of/of_numa.c index 0f2784b..21d831f 100644 --- a/dri

[PATCH v2 0/3] cpufreq: avoid redundant driver calls in schedutil

2016-05-25 Thread Steve Muckle
In the series [0] I included a patch which attempted to avoid redundant driver calls in the schedutil governor by mapping the raw required CPU frequencies to driver frequencies. This vastly increases the likelihood of detecting a redundant cpufreq driver call, i.e. one which will end up attempting

[PATCH v2 2/3] cpufreq: acpi-cpufreq: add resolve_freq callback

2016-05-25 Thread Steve Muckle
Support the new resolve_freq cpufreq callback which resolves a target frequency to a driver-supported frequency without actually setting it. The target frequency and resolved frequency table entry are cached so that a subsequent fast_switch operation may avoid the frequency table walk assuming the

[PATCH v2 3/3] cpufreq: schedutil: map raw required frequency to driver frequency

2016-05-25 Thread Steve Muckle
The slow-path frequency transition path is relatively expensive as it requires waking up a thread to do work. Should support be added for remote CPU cpufreq updates that is also expensive since it requires an IPI. These activities should be avoided if they are not necessary. To that end, calculate

[PATCH v2 1/3] cpufreq: add resolve_freq driver callback

2016-05-25 Thread Steve Muckle
Cpufreq governors may need to know what a particular target frequency maps to in the driver without necessarily wanting to set the frequency. Support this operation via a new cpufreq API, cpufreq_driver_resolve_freq(). The above API will call a new cpufreq driver callback, resolve_freq(), if it ha

[RFC PATCH 1/2] mmc: dw_mmc: remove redundant of set_bit and clear_bit

2016-05-25 Thread Shawn Lin
dw_mci_get_cd have already dealed with these for both of internal card-detect and gpio card-detect. Signed-off-by: Shawn Lin --- drivers/mmc/host/dw_mmc.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c index 829a6ee

[RFC PATCH 2/2] mmc: dw_mmc: check card present before starting request

2016-05-25 Thread Shawn Lin
The main reason to add this check is to avoid unnecessary mmc_request if the card is removed. Although we have already check this in dw_mci_handle_cd for runtime usage of sd card and dw_mci_init_slot for noremovable devices, but there is a timing gap before it really calls dw_mci_get_cd as mmc_dete

<    2   3   4   5   6   7   8   >