[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

[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

[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

[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

[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

[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)

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

[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

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 >

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

[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

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:

(.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:

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

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

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

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

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:

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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 ---

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:

[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

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:

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 >>

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

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 >

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"

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,

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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 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.

[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

[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

[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:

[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

[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:

[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

[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

[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

[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

[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

[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,

[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

[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

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

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 >

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

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

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

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

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

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.

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

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] 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: [Nouveau] [PATCH v3] drm/nouveau/fb/nv50: set DMA mask before mapping scratch page

2016-07-16 Thread Alexandre Courbot
On Sat, Jul 16, 2016 at 4:45 AM, Ard Biesheuvel wrote: > On 15 July 2016 at 07:52, Alexandre Courbot wrote: >> On Fri, Jul 8, 2016 at 1:59 AM, Ard Biesheuvel >> wrote: >>> The 100c08 scratch page is mapped using

[PATCH] [media] pvrusb2: Remove deprecated create_singlethread_workqueue

2016-07-16 Thread Bhaktipriya Shridhar
The workqueue "workqueue" is involved in polling the pvrusb2 hardware (pvr2_hdw). It has a single work item(>workpoll) and hence doesn't require ordering. Also, it is not being used on a memory reclaim path. Hence, the singlethreaded workqueue has been replaced with the use of system_wq. System

[PATCH] [media] gspca: vicam: Remove deprecated create_singlethread_workqueue

2016-07-16 Thread Bhaktipriya Shridhar
The workqueue "work_thread" is involved in streaming the camera data. It has a single work item(>work_struct) and hence doesn't require ordering. Also, it is not being used on a memory reclaim path. Hence, the singlethreaded workqueue has been replaced with the use of system_wq. System workqueues

[PATCH 1/2] [media] cx25821: Drop Freeing of Workqueue

2016-07-16 Thread Bhaktipriya Shridhar
Workqueues shouldn't be freed. destroy_workqueue should be used instead. destroy_workqueue safely destroys a workqueue and ensures that all pending work items are done before destroying the workqueue. Signed-off-by: Bhaktipriya Shridhar ---

Re: [PATCH v5 2/4] nbd: fix might_sleep warning on socket shutdown.

2016-07-16 Thread Pranay Srivastava
Hi Markus, On Sat, Jul 16, 2016 at 2:52 PM, Pranay Kr Srivastava wrote: > From: "Pranay Kr. Srivastava" > > spinlocked ranges should be small and not contain calls into huge > subfunctions. Fix my mistake and just get the pointer to the socket > instead of

Re: [PATCH 4/5] mm: show node_pages_scanned per node, not zone

2016-07-16 Thread Minchan Kim
On Fri, Jul 15, 2016 at 02:09:24PM +0100, Mel Gorman wrote: > From: Minchan Kim > > The node_pages_scanned represents the number of scanned pages > of node for reclaim so it's pointless to show it as kilobytes. > > As well, node_pages_scanned is per-node value, not per-zone.

Re: [PATCH v3 9/9] [media] vivid: Local optimization

2016-07-16 Thread Ricardo Ribalda Delgado
Hi On Sat, Jul 16, 2016 at 12:41 PM, Ricardo Ribalda Delgado wrote: > - cr = clamp(cr, 16 << 4, 240 << 4); > + y = clamp(y >> 4, 16, 235); > + cb = clamp(cb >> 4, 16, 240); > + cr

Re: [RFC][PATCH 5/7] Kconfig: Allow k3dma driver to be selected for more then HISI3xx platforms

2016-07-16 Thread Mark Brown
On Fri, Jul 15, 2016 at 07:13:25PM -0700, John Stultz wrote: > This allows the k3dma driver to be selected on HiKey > config K3_DMA > tristate "Hisilicon K3 DMA support" > - depends on ARCH_HI3xxx > select DMA_ENGINE > select DMA_VIRTUAL_CHANNELS > help And *every*

Re: [RFC][PATCH 6/7] ASoC: hisilicon: Add hi6210 i2s audio driver for hdmi audio

2016-07-16 Thread Mark Brown
On Fri, Jul 15, 2016 at 07:13:26PM -0700, John Stultz wrote: > sound/soc/Kconfig | 1 + > sound/soc/Makefile | 1 + > sound/soc/hisilicon/Kconfig| 5 + > sound/soc/hisilicon/Makefile | 2 + >

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

2016-07-16 Thread Borislav Petkov
From: Borislav Petkov Add a "printk.devkmsg" kernel command line parameter which controls how userspace writes into /dev/kmsg. It has three options: * ratelimit - ratelimit logging from userspace. * on - unlimited logging from userspace * off - logging from userspace gets ignored

[PATCH -v5 1/2] ratelimit: Extend to print suppressed messages on release

2016-07-16 Thread Borislav Petkov
From: Borislav Petkov Extend the ratelimiting facility to print the amount of suppressed lines when it is being released. This use case is aimed at short-termed, burst-like users for which we want to output the suppressed lines stats only once, after it has been disposed of. For

[PATCH -v5 0/2] printk.devkmsg: Ratelimit it by default

2016-07-16 Thread Borislav Petkov
From: Borislav Petkov Hi guys, here's v5 with Andrew's review comments addressed (I hope all). I've unified the setting names for both sysctl(2) and the kernel cmdline to "on", "off" and "ratelimit" so that there's no confusion anymore as to which sysctl number corresponds to

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

2016-07-16 Thread Bhaktipriya Shridhar
The workqueue health->wq was used as per device private health thread. This was done so that system error handling could be processed concurrently. The workqueue has a single workitem(>work) and hence doesn't require ordering. It is involved in handling the health of the deviceand is not being

Re: [PATCH] spi: spi-sh: Remove deprecated create_singlethread_workqueue

2016-07-16 Thread Bhaktipriya Shridhar
Please ignore this mail. I have already sent a patch for this driver Thanks, Bhaktipriya On Sat, Jul 16, 2016 at 1:35 PM, Bhaktipriya Shridhar wrote: > The workqueue has a single workitem(>ws) and hence doesn't require > ordering. Also, it is not being used on a memory

[PATCH] ARM: pxa: fix GPIO double shifts

2016-07-16 Thread Robert Jarzmik
The commit 9bf448c66d4b ("ARM: pxa: use generic gpio operation instead of gpio register") from Oct 17, 2011, leads to the following static checker warning: arch/arm/mach-pxa/spitz_pm.c:172 spitz_charger_wakeup() warn: double left shift '!gpio_get_value(SPITZ_GPIO_KEY_INT) << (1 <<

Re: [RESEND PATCH] arm: colibri_pxa270_defconfig: disable IDE subsystem

2016-07-16 Thread Robert Jarzmik
Bartlomiej Zolnierkiewicz writes: > This patch disables deprecated IDE subsystem in colibri_pxa270_defconfig > (no IDE host drivers are selected in this config so there is no valid > reason to enable IDE subsystem itself). Hi Bartlomiej, It seems I have missed that

Re: [PATCH] s390/cio/chp : Remove deprecated create_singlethread_workqueue

2016-07-16 Thread Sebastian Ott
On Sat, 16 Jul 2016, Bhaktipriya Shridhar wrote: > The workqueue "chp_wq" is involved in performing pending > configure tasks for channel paths. > > It has a single work item(_work) and hence doesn't require > ordering. Also, it is not being used on a memory reclaim path. > Hence, the

[PATCH v3 0/9] Add HSV format

2016-07-16 Thread Ricardo Ribalda Delgado
HSV formats are extremely useful for image segmentation. This set of patches makes v4l2 aware of this kind of formats. Vivid changes have been divided to ease the reviewing process. We are working on patches for Gstreamer and OpenCV that will make use of these formats. We still need to decide

[PATCH v3 6/9] [media] vivid: Rename variable

2016-07-16 Thread Ricardo Ribalda Delgado
r_y and g_u now also contain the H and V components on the HSV formats. Rename the variables to reflect this. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/common/v4l2-tpg/v4l2-tpg-core.c | 209 +- 1 file changed, 105 insertions(+),

[PATCH v3 3/9] [media] Documentation: Add Ricardo Ribalda

2016-07-16 Thread Ricardo Ribalda Delgado
My initials were on the Changelog, but there was no link to my name. Signed-off-by: Ricardo Ribalda Delgado --- Documentation/media/uapi/v4l/v4l2.rst | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/media/uapi/v4l/v4l2.rst

Re: [PATCH v5 3/4] make nbd device wait for its users

2016-07-16 Thread Pranay Srivastava
Hi Markus On Sat, Jul 16, 2016 at 4:06 PM, Pranay Kr Srivastava wrote: > When a timeout occurs or a recv fails, then > instead of abruptly killing nbd block device > wait for its users to finish. > > This is more required when filesystem(s)

[PATCH v3 7/9] [media] vivid: Introduce TPG_COLOR_ENC_LUMA

2016-07-16 Thread Ricardo Ribalda Delgado
Simplifies handling of Gray formats. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/common/v4l2-tpg/v4l2-tpg-core.c | 26 +++-- drivers/media/platform/vivid/vivid-vid-common.c | 6 +++--- include/media/v4l2-tpg.h

[PATCH v3 2/9] [media] Documentation: Add HSV format

2016-07-16 Thread Ricardo Ribalda Delgado
Describe the HSV formats Signed-off-by: Ricardo Ribalda Delgado --- Documentation/media/uapi/v4l/hsv-formats.rst | 19 +++ Documentation/media/uapi/v4l/pixfmt-packed-hsv.rst | 158 + Documentation/media/uapi/v4l/pixfmt.rst| 1 +

[PATCH v3 1/9] [media] videodev2.h Add HSV formats

2016-07-16 Thread Ricardo Ribalda Delgado
These formats store the color information of the image in a geometrical representation. The colors are mapped into a cylinder, where the angle is the HUE, the height is the VALUE and the distance to the center is the SATURATION. This is a very useful format for image segmentation algorithms.

[PATCH v3 9/9] [media] vivid: Local optimization

2016-07-16 Thread Ricardo Ribalda Delgado
Avoid duplicated data shifts when possible. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/common/v4l2-tpg/v4l2-tpg-core.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/media/common/v4l2-tpg/v4l2-tpg-core.c

  1   2   3   4   5   6   >