[PATCH v5] wlcore: spi: add wl18xx support

2016-07-16 Thread Reizer, Eyal
Add support for using with both wl12xx and wl18xx. - all wilink family needs special init command for entering wspi mode. extra clock cycles should be sent after the spi init command while the cs pin is high. - Use inverted chip select for sending a dummy 4 bytes command that completes the i

[PATCH v2] lib/bitmap.c: enhance bitmap syntax

2016-07-16 Thread Noam Camus
From: Noam Camus Today there are platforms with many CPUs (up to 4K). Trying to boot only part of the CPUs may result in too long string. For example lets take NPS platform that is part of arch/arc. This platform have SMP system with 256 cores each with 16 HW threads (SMT machine) where HW threa

[PATCH 3/3] f2fs: support clone_file_range

2016-07-16 Thread Jaegeuk Kim
This patch implements clone_file_range in f2fs. Signed-off-by: Jaegeuk Kim --- fs/f2fs/file.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index c2b7e35..37480f3 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -2312,6 +2312,12 @@ ssize_t f2fs_cop

[PATCH 1/3] f2fs: avoid memory allocation failure due to a long length

2016-07-16 Thread Jaegeuk Kim
We need to avoid ENOMEM due to unexpected long length. Signed-off-by: Jaegeuk Kim --- fs/f2fs/file.c | 46 -- 1 file changed, 28 insertions(+), 18 deletions(-) diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 17b3059..3573b07 100644 --- a/fs/f2fs/fi

[PATCH 2/3] f2fs: support copy_file_range

2016-07-16 Thread Jaegeuk Kim
This patch implements copy_file_range in f2fs. Signed-off-by: Jaegeuk Kim --- fs/f2fs/file.c | 98 ++ 1 file changed, 98 insertions(+) diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 3573b07..c2b7e35 100644 --- a/fs/f2fs/file.c +++ b/fs

[PATCH] net: ti: cpmac: Use the correct function to free some resources.

2016-07-16 Thread Christophe JAILLET
In 'cpmac_open', 'dma_alloc_coherent' has been used to allocate some resources, so we need to free them using 'dma_free_coherent' instead of 'kfree'. Also, we don't need to free these resources if the allocation has failed. So I have slighly modified the goto label in this case. Signed-off-by: Ch

RE: [PATCH RESEND] iwlwifi, Do not implement thermal zone unless ucode is loaded

2016-07-16 Thread Grumbach, Emmanuel
> On 07/15/2016 07:25 AM, Stanislaw Gruszka wrote: > > On Thu, Jul 14, 2016 at 09:44:22AM +, Grumbach, Emmanuel wrote: > >>> If I understad correctly this error happen 100% of the time, not > >>> only during init. Hence seems there is an issue here, i.e. cur_ucode > >>> is not marked correctly

Re: [PATCH -v4 2/2] printk: Add kernel parameter to control writes to /dev/kmsg

2016-07-16 Thread Borislav Petkov
On Sat, Jul 16, 2016 at 06:44:25PM +0800, Dave Young wrote: ... > Mis-ratelimit cause critical userspace messages being lost, that is worse The current setting is quite generous so that all critical messages should land in dmesg. Besides, we don't ratelimit during boot. The idea is that userspac

[PATCH v2 8/9] hwmon: (core) Document new kernel API

2016-07-16 Thread Guenter Roeck
Describe the new registration API function as well as the data structures it requires. Acked-by: Punit Agrawal Signed-off-by: Guenter Roeck --- v2: Fixed typos Documentation/hwmon/hwmon-kernel-api.txt | 229 ++- 1 file changed, 227 insertions(+), 2 deletions(-) dif

[PATCH v2 7/9] hwmon: (core) Add fan attribute support to new API

2016-07-16 Thread Guenter Roeck
Acked-by: Punit Agrawal Signed-off-by: Guenter Roeck --- v2: No change drivers/hwmon/hwmon.c | 16 include/linux/hwmon.h | 27 +++ 2 files changed, 43 insertions(+) diff --git a/drivers/hwmon/hwmon.c b/drivers/hwmon/hwmon.c index f5de80a8bd1e..38c217e64

[PATCH v2 6/9] hwmon: (core) Add energy and humidity attribute support to new API

2016-07-16 Thread Guenter Roeck
Acked-by: Punit Agrawal Signed-off-by: Guenter Roeck --- v2: No change drivers/hwmon/hwmon.c | 20 include/linux/hwmon.h | 29 + 2 files changed, 49 insertions(+) diff --git a/drivers/hwmon/hwmon.c b/drivers/hwmon/hwmon.c index 7a5c8bba7dc2..f5d

[PATCH v2 9/9] hwmon: (core) Add basic pwm attribute support to new API

2016-07-16 Thread Guenter Roeck
Add basic pwm attribute support (no auto attributes) to new API. Signed-off-by: Guenter Roeck --- v2: Added patch Documentation/hwmon/hwmon-kernel-api.txt | 2 ++ drivers/hwmon/hwmon.c| 9 + include/linux/hwmon.h| 13 + 3 files chang

[PATCH v2 3/9] hwmon: (core) Add voltage attribute support to new API

2016-07-16 Thread Guenter Roeck
Acked-by: Punit Agrawal Signed-off-by: Guenter Roeck --- v2: No change drivers/hwmon/hwmon.c | 21 + include/linux/hwmon.h | 35 +++ 2 files changed, 56 insertions(+) diff --git a/drivers/hwmon/hwmon.c b/drivers/hwmon/hwmon.c index d780011cd0

[PATCH v2 1/9] hwmon: (core) Order include files alphabetically

2016-07-16 Thread Guenter Roeck
Ordering include files alphabetically makes it easier to add new ones. Stop including linux/spinlock.h and linux/kdev_t.h since both are not needed. Signed-off-by: Guenter Roeck --- v2: Added patch drivers/hwmon/hwmon.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --gi

[PATCH v2 0/9] hwmon: New hwmon registration API

2016-07-16 Thread Guenter Roeck
Up to now, each hwmon driver has to implement its own sysfs attributes. This requires a lot of template code, and distracts from the driver's core function to read and write chip registers. To be able to reduce driver complexity, move sensor attribute handling and thermal zone registration into th

[PATCH v2 5/9] hwmon: (core) Add power attribute support to new API

2016-07-16 Thread Guenter Roeck
Acked-by: Punit Agrawal Signed-off-by: Guenter Roeck --- v2: No change drivers/hwmon/hwmon.c | 30 include/linux/hwmon.h | 54 +++ 2 files changed, 84 insertions(+) diff --git a/drivers/hwmon/hwmon.c b/drivers/hwmon/h

[PATCH v2 2/9] hwmon: (core) New hwmon registration API

2016-07-16 Thread Guenter Roeck
Up to now, each hwmon driver has to implement its own sysfs attributes. This requires a lot of template code, and distracts from the driver's core function to read and write chip registers. To be able to reduce driver complexity, move sensor attribute handling and thermal zone registration into hw

[PATCH v2 4/9] hwmon: (core) Add current attribute support to new API

2016-07-16 Thread Guenter Roeck
Acked-by: Punit Agrawal Signed-off-by: Guenter Roeck --- v2: No change drivers/hwmon/hwmon.c | 21 + include/linux/hwmon.h | 36 2 files changed, 57 insertions(+) diff --git a/drivers/hwmon/hwmon.c b/drivers/hwmon/hwmon.c index 5d88bf7f8

Re: [PATCH] net/mlx5_core/health: Remove deprecated create_singlethread_workqueue

2016-07-16 Thread Leon Romanovsky
On Sat, Jul 16, 2016 at 01:29:20PM +0530, Bhaktipriya Shridhar wrote: > The workqueue health->wq was used as per device private health thread. > This was done so that system error handling could be processed > concurrently. Not exactly, AFAIK it was intended to perform delayed work and not relevan

Re: [PATCH net] net: nb8800: Fix SKB leak in nb8800_receive()

2016-07-16 Thread David Miller
From: Florian Fainelli Date: Fri, 15 Jul 2016 16:41:16 -0700 > In case nb8800_receive() fails to allocate a fragment, we would leak the > SKB freshly allocated and just return, instead, free it. > > Reported-by: coverity (CID 1341750) > Signed-off-by: Florian Fainelli Applied.

Re: [PATCH net] net: cavium: liquidio: Avoid dma_unmap_single on uninitialized ndata

2016-07-16 Thread David Miller
From: Florian Fainelli Date: Fri, 15 Jul 2016 16:42:16 -0700 > The label lio_xmit_failed is used 3 times through liquidio_xmit() but it > always makes a call to dma_unmap_single() using potentially > uninitialized variables from "ndata" variable. Out of the 3 gotos, 2 run > after ndata has been i

Re: [PATCH net] et131x: Fix logical vs bitwise check in et131x_tx_timeout()

2016-07-16 Thread David Miller
From: Florian Fainelli Date: Fri, 15 Jul 2016 16:40:22 -0700 > We should be using a logical check here instead of a bitwise operation > to check if the device is closed already in et131x_tx_timeout(). > > Reported-by: coverity (CID 146498) > Fixes: 38df6492eb511 ("et131x: Add PCIe gigabit ethern

[GIT PULL] ARM: SoC fixes

2016-07-16 Thread Olof Johansson
Hi Linus, The following changes since commit 33688abb2802ff3a230bd2441f765477b94cc89e: Linux 4.7-rc4 (2016-06-19 21:30:02 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc.git tags/armsoc-fixes for you to fetch changes up to 5eb495349

Re: [PATCH] net: usb: ax88172x: use phy_ethtool_{get|set}_link_ksettings

2016-07-16 Thread David Miller
From: Philippe Reynes Date: Fri, 15 Jul 2016 15:25:36 +0200 > There are two generics functions phy_ethtool_{get|set}_link_ksettings, > so we can use them instead of defining the same code in the driver. > > Signed-off-by: Philippe Reynes Applied.

Re: [PATCH v1 0/3] Add Hisilicon MDIO bus driver and FEMAC driver

2016-07-16 Thread David Miller
From: Dongpo Li Date: Fri, 15 Jul 2016 16:26:32 +0800 > This patch set adds a Hisilicon MDIO bus driver and > a Fast Ethernet MAC(FEMAC) driver. > We also abstract a general interface "of_phy_get_and_connect" > for PHY connect. User will have no bother with getting > "phy-mode" and "phy-handle" a

(.init.text+0x2b8): multiple definition of `plat_irq_setup'

2016-07-16 Thread kbuild test robot
Hi, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 47ef4ad2684d380dd6d596140fb79395115c3950 commit: 7480e0aabd5f9e6c3e3b72ed206e89284e90f11f sh: add device tree support and generic board using device tree date: 4

Re: [patch] mtd: maps: sa1100-flash: potential NULL dereference

2016-07-16 Thread Brian Norris
On Sat, Jul 16, 2016 at 12:00:41PM +0300, Dan Carpenter wrote: > I like the Fixes tag because it was my invention. :) It's a separate > thing from -stable. Ha, nice. Well I have nothing against the tag, and nothing against this patch. It's good to know that the Fixes tag is not (necessarily) a r

Re: [PATCH] mtd: nand: brcmnand: Change BUG_ON in brcmnand_send_cmd

2016-07-16 Thread Brian Norris
On Fri, Jul 08, 2016 at 10:36:39AM -0700, Florian Fainelli wrote: > Change the BUG_ON() condition in brcmnand_send_cmd() which checks for > the interrupt status "controller ready" bit to a WARN_ON. > > There is no good reason to kill the system when this condition occur > because we could have sys

Re: [PATCH] vfs:Fix kmemleak in get_empty_filp on error path if security_file_alloc fails

2016-07-16 Thread Al Viro
On Sat, Jul 16, 2016 at 11:00:03PM -0400, Nicholas Krause wrote: > This fixes the following kmemleak memory report spat: > [ 321.783718] ath9k :03:00.0 eth0: renamed from wlan0 > [ 330.960024] atl1c :02:00.0 eth1: renamed from eth126 > [ 391.831384] WARNING: kmemcheck: Caught 64-bit read

fs/xfs/xfs_ondisk.h:86:2: error: call to '__compiletime_assert_86' declared with attribute error: XFS: sizeof(xfs_dir2_data_unused_t) is wrong, expected 6

2016-07-16 Thread kbuild test robot
Hi, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 47ef4ad2684d380dd6d596140fb79395115c3950 commit: ab9d1e4f7b0217948a3b35a64178602ab30ff45d Merge branch 'xfs-misc-fixes-4.6-3' into for-next date: 4 months ago co

Re: [PATCH 1/2] wan/fsl_ucc_hdlc: remove reduplicative freed memory 'uhdlc_priv'

2016-07-16 Thread David Miller
From: Zhao Qiang Date: Fri, 15 Jul 2016 10:38:24 +0800 > 'uhdlc_priv' has freed twice, drop the first one. > > Signed-off-by: Zhao Qiang Applied.

Re: [PATCH 2/2] wan/fsl_ucc_hdlc: rewrite error handling to make it clearer

2016-07-16 Thread David Miller
From: Zhao Qiang Date: Fri, 15 Jul 2016 10:38:25 +0800 > It was used err_xxx for labeled statement, it is > not easy to understand, now use free_xxx for labeled > statement. > > Signed-off-by: Zhao Qiang Applied.

Re: [PATCH] rndis_host: Set random MAC for ZTE MF910

2016-07-16 Thread David Miller
From: Bjørn Mork Date: Fri, 15 Jul 2016 19:42:28 +0200 > David Laight writes: >> From: Bjørn Mork >> Not only that, there certainly used to be manufacturers that used 'locally >> administered' addresses on all their cards (as well as those that used >> unallocated >> address blocks). > > Sure.

[PATCH v11 4/5] powerpc/fsl: move mpc85xx.h to include/linux/fsl

2016-07-16 Thread Scott Wood
From: yangbo lu Move mpc85xx.h to include/linux/fsl and rename it to svr.h as a common header file. This SVR numberspace is used on some ARM chips as well as PPC, and even to check for a PPC SVR multi-arch drivers would otherwise need to ifdef the header inclusion and all references to the SVR s

[PATCH v11 2/5] dt: bindings: move guts devicetree doc out of powerpc directory

2016-07-16 Thread Scott Wood
From: Yangbo Lu Move guts devicetree doc to Documentation/devicetree/bindings/soc/fsl/ since it's used by not only PowerPC but also ARM. And add a specification for 'little-endian' property. Signed-off-by: Yangbo Lu Acked-by: Rob Herring Signed-off-by: Scott Wood --- Documentation/devicetree

[PATCH v11 0/5] soc: fsl: Add initial guts driver

2016-07-16 Thread Scott Wood
This patchset adds the beginnings of a driver to consolidate accesses to the Freescale/NXP "global utilities" block. Initially only access to SVR (the system version register) is provided. This register is needed by various drivers, mainly for errata detection. Access to SVR via mfspr(SPRN_SVR)

[PATCH v11 1/5] dt: bindings: update Freescale DCFG compatible

2016-07-16 Thread Scott Wood
From: yangbo lu Update Freescale DCFG compatible with 'fsl,-dcfg' instead of 'fsl,ls1021a-dcfg' to include more chips such as ls1021a, ls1043a, and ls2080a. Signed-off-by: Yangbo Lu Acked-by: Rob Herring Signed-off-by: Scott Wood --- Documentation/devicetree/bindings/arm/fsl.txt | 6 +-

[PATCH v11 5/5] powerpc/fsl-pci: Use fsl_guts_get_svr()

2016-07-16 Thread Scott Wood
Establish an initial user of fsl_guts_get_svr(), so that the code gets some test coverage until users outside arch/powerpc can get converted. Signed-off-by: Scott Wood --- arch/powerpc/Kconfig | 1 + arch/powerpc/sysdev/fsl_pci.c | 6 +- 2 files changed, 6 insertions(+), 1 deletion(

[PATCH v11 3/5] soc: fsl: add GUTS driver for QorIQ platforms

2016-07-16 Thread Scott Wood
From: Yangbo Lu The global utilities block controls power management, I/O device enabling, power-onreset(POR) configuration monitoring, alternate function selection for multiplexed signals,and clock control. This patch adds a driver to manage and access global utilities block. Initially only rea

core.c:undefined reference to `fpu_save'

2016-07-16 Thread kbuild test robot
Hi, It's probably a bug fix that unveils the link errors. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 47ef4ad2684d380dd6d596140fb79395115c3950 commit: c60f169202c7643991a8b4bfeea60e06843d5b5a arch/mn10300/kernel/fpu-nofpu.c: needs asm/elf.h date:

[PATCH v11 03/27] powerpc/ptrace: Adapt gpr32_get, gpr32_set functions for transaction

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch splits gpr32_get, gpr32_set functions to accommodate in transaction ptrace requests implemented in patches later in the series. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Shuah Khan Cc: Anton Blanchard Cc: Cyril Bur Cc: Anshuma

[PATCH v11 01/27] elf: Add powerpc specific core note sections

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch adds twelve ELF core note sections for powerpc architecture for various registers and register sets which need to be accessed from ptrace interface and then gdb. These additions include special purpose registers like TAR, PPR, DSCR, TM running and checkpointed s

[PATCH v11 20/27] selftests/powerpc: Add ptrace tests for TAR, PPR, DSCR in TM

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch adds ptrace interface test for TAR, PPR, DSCR registers inside TM context. This also adds ptrace interface based helper functions related to checkpointed TAR, PPR, DSCR register access. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: S

[PATCH v11 22/27] selftests/powerpc: Add ptrace tests for VSX, VMX registers

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch adds ptrace interface test for VSX, VMX registers. This also adds ptrace interface based helper functions related to VSX, VMX registers access. This also adds some assembly helper functions related to VSX and VMX registers. Cc: Benjamin Herrenschmidt Cc: Paul

[PATCH v11 26/27] selftests/powerpc: Add .gitignore file for ptrace executables

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch adds a .gitignore file for all the executables in the ptrace test directory thus making invisible with git status query. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Shuah Khan Cc: Anton Blanchard Cc: Cyril Bur Cc: Anshuman Khand

[PATCH v11 27/27] selftests/powerpc: Fix a build issue

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual Fixes the following build failure - cp_abort.c:90:3: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode for (int i = 0; i < NUM_LOOPS; i++) { ^ cp_abort.c:90:3: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your cod

[PATCH v11 23/27] selftests/powerpc: Add ptrace tests for VSX, VMX registers in TM

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch adds ptrace interface test for VSX, VMX registers inside TM context. This also adds ptrace interface based helper functions related to chckpointed VSX, VMX registers access. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Shuah Khan C

[PATCH v11 25/27] selftests/powerpc: Add ptrace tests for TM SPR registers

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch adds ptrace interface test for TM SPR registers. This also adds ptrace interface based helper functions related to TM SPR registers access. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Shuah Khan Cc: Anton Blanchard Cc: Cyril Bur

[PATCH v11 18/27] selftests/powerpc: Add ptrace tests for GPR/FPR registers in suspended TM

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch adds ptrace interface test for GPR/FPR registers inside suspended TM context. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Shuah Khan Cc: Anton Blanchard Cc: Cyril Bur Cc: Anshuman Khandual Cc: Simon Guo Cc: Ulrich Weigand Cc:

[PATCH v11 21/27] selftests/powerpc: Add ptrace tests for TAR, PPR, DSCR in suspended TM

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch adds ptrace interface test for TAR, PPR, DSCR registers inside suspended TM context. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Shuah Khan Cc: Anton Blanchard Cc: Cyril Bur Cc: Anshuman Khandual Cc: Simon Guo Cc: Ulrich Weiga

[PATCH v11 24/27] selftests/powerpc: Add ptrace tests for VSX, VMX registers in suspended TM

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch adds ptrace interface test for VSX, VMX registers inside suspended TM context. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Shuah Khan Cc: Anton Blanchard Cc: Cyril Bur Cc: Anshuman Khandual Cc: Simon Guo Cc: Ulrich Weigand Cc

[PATCH v11 19/27] selftests/powerpc: Add ptrace tests for TAR, PPR, DSCR registers

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch adds ptrace interface test for TAR, PPR, DSCR registers. This also adds ptrace interface based helper functions related to TAR, PPR, DSCR register access. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Shuah Khan Cc: Anton Blanchard

[PATCH v11 10/27] powerpc/ptrace: Enable support for NT_PPPC_TAR, NT_PPC_PPR, NT_PPC_DSCR

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch enables support for running TAR, PPR, DSCR registers related ELF core notes NT_PPPC_TAR, NT_PPC_PPR, NT_PPC_DSCR based ptrace requests through PTRACE_GETREGSET, PTRACE_SETREGSET calls. This is achieved through adding three new register sets REGSET_TAR, REGSET_PP

[PATCH v11 07/27] powerpc/ptrace: Enable support for NT_PPC_CVSX

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch enables support for TM checkpointed VSX register set ELF core note NT_PPC_CVSX based ptrace requests through PTRACE_GETREGSET, PTRACE_SETREGSET calls. This is achieved through adding a register set REGSET_CVSX in powerpc corresponding to the ELF core note sectio

[PATCH v11 12/27] powerpc/ptrace: Enable support for Performance Monitor registers

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch enables support for Performance monitor registers related ELF core note NT_PPC_PMU based ptrace requests through PTRACE_GETREGSET, PTRACE_SETREGSET calls. This is achieved through adding one new register sets REGSET_PMU in powerpc corresponding to the ELF core n

[PATCH v11 09/27] powerpc/ptrace: Enable NT_PPC_TM_CTAR, NT_PPC_TM_CPPR, NT_PPC_TM_CDSCR

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch enables support for all three TM checkpointed SPR states related ELF core note NT_PPC_TM_CTAR, NT_PPC_TM_CPPR, NT_PPC_TM_CDSCR based ptrace requests through PTRACE_GETREGSET, PTRACE_SETREGSET calls. This is achieved through adding three new register sets REGSET

[PATCH v11 14/27] selftests/powerpc: Use the new SPRN_DSCR_PRIV definiton

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual Now that the new DSCR register definitions (SPRN_DSCR_PRIV and SPRN_DSCR) are defined outside this directory, use them instead. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Shuah Khan Cc: Anton Blanchard Cc: Cyril Bur Cc: Anshuman Khandual

[PATCH v11 15/27] selftests/powerpc: Add ptrace tests for EBB

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch adds ptrace interface test for EBB/PMU specific registers. This also adds some generic ptrace interface based helper functions to be used by other patches later on in the series. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Shuah Kh

[PATCH v11 08/27] powerpc/ptrace: Enable support for TM SPR state

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch enables support for TM SPR state related ELF core note NT_PPC_TM_SPR based ptrace requests through PTRACE_GETREGSET, PTRACE_SETREGSET calls. This is achieved through adding a register set REGSET_TM_SPR in powerpc corresponding to the ELF core note section added.

[PATCH v11 06/27] powerpc/ptrace: Enable support for NT_PPC_CVMX

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch enables support for TM checkpointed VMX register set ELF core note NT_PPC_CVMX based ptrace requests through PTRACE_GETREGSET, PTRACE_SETREGSET calls. This is achieved through adding a register set REGSET_CVMX in powerpc corresponding to the ELF core note sectio

[PATCH v11 16/27] selftests/powerpc: Add ptrace tests for GPR/FPR registers

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch adds ptrace interface test for GPR/FPR registers. This adds ptrace interface based helper functions related to GPR/FPR access and some assembly helper functions related to GPR/FPR registers. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman

[PATCH v11 11/27] powerpc/ptrace: Enable support for EBB registers

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch enables support for EBB state registers related ELF core note NT_PPC_EBB based ptrace requests through PTRACE_GETREGSET, PTRACE_SETREGSET calls. This is achieved through adding one new register sets REGSET_EBB in powerpc corresponding to the ELF core note sectio

[PATCH v11 13/27] selftests/powerpc: Add more SPR numbers, TM & VMX instructions to 'reg.h'

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch adds SPR number for TAR, PPR, DSCR special purpose registers. It also adds TM, VSX, VMX related instructions which will then be used by patches later in the series. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Shuah Khan Cc: Anton

[PATCH v11 17/27] selftests/powerpc: Add ptrace tests for GPR/FPR registers in TM

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch adds ptrace interface test for GPR/FPR registers inside TM context. This adds ptrace interface based helper functions related to checkpointed GPR/FPR access. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Shuah Khan Cc: Anton Blancha

[PATCH v11 02/27] powerpc/process: Add the function flush_tmregs_to_thread

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch creates a function flush_tmregs_to_thread which will then be used by subsequent patches in this series. The function checks for self tracing ptrace interface attempts while in the TM context and logs appropriate warning message. Cc: Benjamin Herrenschmidt Cc:

[PATCH v11 05/27] powerpc/ptrace: Enable support for NT_PPC_CFPR

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch enables support for TM checkpointed FPR register set ELF core note NT_PPC_CFPR based ptrace requests through PTRACE_GETREGSET, PTRACE_SETREGSET calls. This is achieved through adding a register set REGSET_CFPR in powerpc corresponding to the ELF core note sectio

[PATCH v11 04/27] powerpc/ptrace: Enable support for NT_PPC_CGPR

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch enables support for TM checkpointed GPR register set ELF core note NT_PPC_CGPR based ptrace requests through PTRACE_GETREGSET, PTRACE_SETREGSET calls. This is achieved through adding a register set REGSET_CGPR in powerpc corresponding to the ELF core note sectio

[PATCH v11 00/27] Add new powerpc specific ELF core notes

2016-07-16 Thread wei . guo . simon
From: Simon Guo This patch series adds twelve new ELF core note sections which can be used with existing ptrace request PTRACE_GETREG/SET-SETREGSET for accessing various transactional memory and other miscellaneous debug register sets on powerpc platform. Note this patch series now depends

vgacon.c:undefined reference to `screen_info'

2016-07-16 Thread kbuild test robot
Hi, It's probably a bug fix that unveils the link errors. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 47ef4ad2684d380dd6d596140fb79395115c3950 commit: f69405ce6c0fc9f4a039011007371b31f80b470d openrisc: include: asm: Kbuild: add default "vga.h" date:

Re: [PATCH] mm: migrate: Use bool instead of int for the return value of PageMovable

2016-07-16 Thread Chen Gang
On 7/13/16 15:53, Michal Hocko wrote: > On Wed 13-07-16 00:50:12, Chen Gang wrote: >> >> >> On 7/12/16 15:48, Michal Hocko wrote: >>> On Tue 12-07-16 03:47:42, Chen Gang wrote: >>> [...] In our case, the 2 output size are same, but under x86_64, the insns are different. After uses bool,

Re: [PATCH] mm: gup: Re-define follow_page_mask output parameter page_mask usage

2016-07-16 Thread Chen Gang
On 7/13/16 15:50, Michal Hocko wrote: > On Wed 13-07-16 01:03:10, Chen Gang wrote: >> On 7/12/16 05:17, Andrew Morton wrote: >>> On Sun, 10 Jul 2016 01:17:05 +0800 cheng...@emindsoft.com.cn wrote: >>> For a pure output parameter: - When callee fails, the caller should not assume th

Re: [BUG] Slab corruption during XFS writeback under memory pressure

2016-07-16 Thread Dave Chinner
On Fri, Jul 15, 2016 at 05:18:02PM -0700, Calvin Owens wrote: > Hello all, > > I've found a nasty source of slab corruption. Based on seeing similar symptoms > on boxes at Facebook, I suspect it's been around since at least 3.10. > > It only reproduces under memory pressure so far as I can tell:

Re: [PULL] lkdtm update (next)

2016-07-16 Thread Greg KH
On Fri, Jul 15, 2016 at 04:16:19PM -0700, Kees Cook wrote: > Hi, > > Please pull these lkdtm fixes for next. > > Thanks! > > -Kees > > The following changes since commit 80f76319634fc62befd440b328042dbd54e3b6f8: > > Merge tag 'stm-for-greg-20160714' of > git://git.kernel.org/pub/scm/linux/k

[PATCH 1/2] net: ethernet: adi: bfin_mac: use phydev from struct net_device

2016-07-16 Thread Philippe Reynes
The private structure contain a pointer to phydev, but the structure net_device already contain such pointer. So we can remove the pointer phydev in the private structure, and update the driver to use the one contained in struct net_device. Signed-off-by: Philippe Reynes --- drivers/net/ethernet

[PATCH 2/2] net: ethernet: adi: bfin_mac: use phy_ethtool_{get|set}_link_ksettings

2016-07-16 Thread Philippe Reynes
There are two generics functions phy_ethtool_{get|set}_link_ksettings, so we can use them instead of defining the same code in the driver. There was a check on CAP_NET_ADMIN in bfin_mac_ethtool_setsettings, but this check is already done in dev_ethtool, so no need to repeat it before calling the g

Re: [PATCH 04/10] Documentation: dt: socfpga: Add Arria10 QSPI EDAC binding

2016-07-16 Thread Rob Herring
On Thu, Jul 14, 2016 at 11:06:42AM -0500, ttha...@opensource.altera.com wrote: > From: Thor Thayer > > Add the device tree bindings needed to support the Altera QSPI > FIFO buffer EDAC on the Arria10 chip. > > Signed-off-by: Thor Thayer > --- > .../bindings/arm/altera/socfpga-eccmgr.txt

fs/binfmt_em86.c:73:35: error: passing argument 2 of 'copy_strings_kernel' from incompatible pointer type

2016-07-16 Thread kbuild test robot
Hi, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 47ef4ad2684d380dd6d596140fb79395115c3950 commit: ea8daa7b97842aab8507b5b5b1e3226cf2d514a6 kbuild: Add option to turn incompatible pointer check into error date:

Re: [PATCH 03/10] Documentation: dt: socfpga: Add Arria10 USB EDAC binding

2016-07-16 Thread Rob Herring
On Thu, Jul 14, 2016 at 11:06:41AM -0500, ttha...@opensource.altera.com wrote: > From: Thor Thayer > > Add the device tree bindings needed to support the Altera USB > FIFO buffer EDAC on the Arria10 chip. > > Signed-off-by: Thor Thayer > --- > .../bindings/arm/altera/socfpga-eccmgr.txt

Re: [PATCH 02/10] Documentation: dt: socfpga: Add Arria10 DMA EDAC binding

2016-07-16 Thread Rob Herring
On Thu, Jul 14, 2016 at 11:06:40AM -0500, ttha...@opensource.altera.com wrote: > From: Thor Thayer > > Add the device tree bindings needed to support the Altera DMA > FIFO buffer EDAC on the Arria10 chip. > > Signed-off-by: Thor Thayer > --- > .../bindings/arm/altera/socfpga-eccmgr.txt

Re: [PATCH 01/10] Documentation: dt: socfpga: Add Arria10 NAND EDAC binding

2016-07-16 Thread Rob Herring
On Thu, Jul 14, 2016 at 11:06:39AM -0500, ttha...@opensource.altera.com wrote: > From: Thor Thayer > > Add the device tree bindings needed to support the Altera NAND > FIFO buffers EDAC on the Arria10 chip. > > Signed-off-by: Thor Thayer > --- > .../bindings/arm/altera/socfpga-eccmgr.txt

Re: [PATCH 2/4] dt-bindings: Add a binding for Mediatek MDP

2016-07-16 Thread Rob Herring
On Thu, Jul 14, 2016 at 08:17:59PM +0800, Minghsiu Tsai wrote: > Add a DT binding documentation of MDP for the MT8173 SoC > from Mediatek > > Signed-off-by: Minghsiu Tsai > --- > .../devicetree/bindings/media/mediatek-mdp.txt | 92 > > 1 file changed, 92 insertions(+)

Re: [PATCH v7 4/5] usb: dwc3: add dis_del_phy_power_chg_quirk

2016-07-16 Thread Rob Herring
On Thu, Jul 14, 2016 at 04:59:21PM +0800, William Wu wrote: > Add a quirk to clear the GUSB3PIPECTL.DELAYP1TRANS bit, > which specifies whether disable delay PHY power change > from P0 to P1/P2/P3 when link state changing from U0 > to U1/U2/U3 respectively. > > Signed-off-by: William Wu > --- > C

Re: [PATCH v7 3/5] usb: dwc3: make usb2 phy utmi interface configurable in DT

2016-07-16 Thread Rob Herring
On Thu, Jul 14, 2016 at 04:59:20PM +0800, William Wu wrote: > Add snps,phyif-utmi-width devicetree property to configure > the UTMI+ PHY with an 8- or 16-bit interface. UTMI+ PHY > interface is a hardware property, and it's platform dependent. > Normally,the PHYIF can be configured during coreconsu

{standard input}:122: Error: number (0x9000000080000000) larger than 32 bits

2016-07-16 Thread kbuild test robot
Hi, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 47ef4ad2684d380dd6d596140fb79395115c3950 commit: 71458cfc782eafe4b27656e078d379a34e472adf kernel: add support for gcc 5 date: 1 year, 9 months ago config: mips-sb

Re: [PATCH v7 2/5] usb: dwc3: add dis_u2_freeclk_exists_quirk

2016-07-16 Thread Rob Herring
On Thu, Jul 14, 2016 at 04:59:19PM +0800, William Wu wrote: > Add a quirk to clear the GUSB2PHYCFG.U2_FREECLK_EXISTS bit, > which specifies whether the USB2.0 PHY provides a free-running > PHY clock, which is active when the clock control input is active. > > Signed-off-by: William Wu > --- > Cha

Re: [PATCH v2 1/2] Documentation: mmc: add description for new no-sd* and no-mmc

2016-07-16 Thread Rob Herring
On Thu, Jul 14, 2016 at 04:26:03PM +0800, Shawn Lin wrote: > This patch adds description for no-sd, no-sdio, no-mmc. We expose > these to DT as some of the controllers are unable to deal with > special cmd type due to hw limitation. > > Signed-off-by: Shawn Lin > > --- > > Changes in v2: > - am

Re: [PATCH v3 3/8] Input: synaptics-rmi4: Add dribble and palm gesture parameters to device tree

2016-07-16 Thread Rob Herring
On Wed, Jul 13, 2016 at 11:08:42PM -0700, Andrew Duggan wrote: > Signed-off-by: Andrew Duggan > --- > This version includes Nick's suggestion of adding force to the device tree > parameters so make it obvious that these parameters overwrite the > default values set in the firware config. > > ...

Re: [PATCH v3 1/2] ASoC: atmel-i2s: add DT bindings for I2S controller

2016-07-16 Thread Rob Herring
On Wed, Jul 13, 2016 at 12:25:38PM +0200, Cyrille Pitchen wrote: > This patch adds DT bindings for the new Atmel I2S controller embedded > inside sama5d2x SoCs. > > Signed-off-by: Cyrille Pitchen > --- > .../devicetree/bindings/sound/atmel-i2s.txt| 87 > ++ > 1 file

Re: [PATCH v4 1/2] input: adc-keys: add DT binding documentation

2016-07-16 Thread Alexandre Belloni
On 16/07/2016 at 17:11:39 -0500, Rob Herring wrote : > On Tue, Jul 12, 2016 at 09:36:25PM +0200, Alexandre Belloni wrote: > > Add documentation for ADC keys > > > > Signed-off-by: Alexandre Belloni > > --- > > Cc: Rob Herring > > Cc: devicet...@vger.kernel.org > > > > Changes v2..v4: > > - Doc

Re: [PATCH 3/4] Documentation: dt: usb: atmel-usb: add unit-address

2016-07-16 Thread Rob Herring
On Wed, Jul 13, 2016 at 01:07:29AM +0200, Alexandre Belloni wrote: > The endpoint nodes have a reg property, they also need a unit-address. Add > them in the example. > > Signed-off-by: Alexandre Belloni > --- > Documentation/devicetree/bindings/usb/atmel-usb.txt | 14 +++--- > 1 file ch

Re: [PATCH 1/4] Documentation: dt: iio: at91_adc: fix trigger node names

2016-07-16 Thread Rob Herring
On Wed, Jul 13, 2016 at 01:07:27AM +0200, Alexandre Belloni wrote: > The trigger doesn't need the reg property. When it is not defined, the node > name doesn't need a unit-address. Remove them from the example. > > Signed-off-by: Alexandre Belloni > --- > Documentation/devicetree/bindings/iio/ad

Re: [PATCH v4 1/2] input: adc-keys: add DT binding documentation

2016-07-16 Thread Rob Herring
On Tue, Jul 12, 2016 at 09:36:25PM +0200, Alexandre Belloni wrote: > Add documentation for ADC keys > > Signed-off-by: Alexandre Belloni > --- > Cc: Rob Herring > Cc: devicet...@vger.kernel.org > > Changes v2..v4: > - Documented autorepeat and poll-interval > > > .../devicetree/bindings/inp

[PATCH v2] checkpatch: don't complain about BIT macro in uapi

2016-07-16 Thread Tomas Winkler
BIT macro cannot be exported to UAPI, don't complain about it Signed-off-by: Tomas Winkler --- V2: fix indentation scripts/checkpatch.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index a0e511206f24..76d3fccb82f3 100755

Re: [PATCH 1/2] ARM: socfpga: add bindings doc for arria10 fpga manager

2016-07-16 Thread Rob Herring
On Tue, Jul 12, 2016 at 02:07:08PM -0500, Alan Tull wrote: > Add a device tree bindings document for the SoCFPGA Arria10 > FPGA Manager driver. > > Signed-off-by: Alan Tull > --- > .../bindings/fpga/altera-socfpga-a10-fpga-mgr.txt | 19 > +++ > 1 file changed, 19 insertions(

Re: [PATCH] checkpatch: don't complain about BIT macro in uapi

2016-07-16 Thread Joe Perches
On Sat, 2016-07-16 at 21:41 +0300, Tomas Winkler wrote: > BIT macro cannot be exported to UAPI, so don't complain about it in > uapi headers. Hi Tomas, this makes sense, but could you please indent the second line to the open parenthesis? Assuming this is done in V2: Acked-by: Joe Perches > >

[PATCH] lib/bitmap.c: enhance map pattern

2016-07-16 Thread Noam Camus
From: Noam Camus Today there are platforms with many CPUs (up to 4K). Trying to boot only part of the CPUs may result in too long string. For example lets take NPS platform that is part of arch/arc. This platform have SMP system with 256 cores each with 16 HW threads (SMT machine) where HW threa

Re: [PATCH v3 1/2] dt-bindings: Update iProc GPIO bindings

2016-07-16 Thread Rob Herring
On Tue, Jul 12, 2016 at 10:39:17AM -0700, Ray Jui wrote: > Update the iProc GPIO binding document to add new compatible strings > "brcm,iproc-gpio-nsp" and "brcm,iproc-gpio-stingray" to support the > iProc based GPIO controller used in the NSP and Stingray SoCs, > respectively > > Signed-off-by: R

Re: [PATCH v4 1/2] arch, x86, tsc deadline clockevent dev: eliminate frequency roundoff error

2016-07-16 Thread Nicolai Stange
Paolo Bonzini writes: > On 14/07/2016 17:22, Nicolai Stange wrote: >> In setup_APIC_timer(), the registered clockevent device's frequency >> is calculated by first dividing tsc_khz by TSC_DIVISOR and multiplying >> it with 1000 afterwards: >> >> (tsc_khz / TSC_DIVISOR) * 1000 >> >> The multip

Re: [PATCH] ARM: pxa: fix GPIO double shifts

2016-07-16 Thread kbuild test robot
-shifts/20160716-163032 base: https://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc.git for-next config: arm-spitz_defconfig (attached as .config) compiler: arm-linux-gnueabi-gcc (Debian 5.3.1-8) 5.3.1 20160205 reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git

[tip:x86/headers] x86/platform: Delete extraneous MODULE_* tags fromm ts5500

2016-07-16 Thread tip-bot for Paul Gortmaker
Commit-ID: 00677f826bd0c1befb87b8cfa10f30bde1cc2f32 Gitweb: http://git.kernel.org/tip/00677f826bd0c1befb87b8cfa10f30bde1cc2f32 Author: Paul Gortmaker AuthorDate: Fri, 15 Jul 2016 19:53:18 -0400 Committer: Ingo Molnar CommitDate: Sat, 16 Jul 2016 22:41:00 +0200 x86/platform: Delete extr

  1   2   3   >