Re: [PATCH v2 17/17] sh: landisk CPLD interrupt controller driver

2016-06-14 Thread Rob Herring
On Sun, Jun 12, 2016 at 04:44:14PM +0900, Yoshinori Sato wrote: > Sorry. I send old patches. > Please ignore previous files. same comment here. > > Signed-off-by: Yoshinori Sato > --- > .../interrupt-controller/iodata-landisk.txt| 28 + > drivers/irqchip/irq-io-landisk.c

Re: [PATCH v2 1/3] Add the latent_entropy gcc plugin

2016-06-14 Thread Emese Revfy
On Tue, 14 Jun 2016 11:27:00 -0700 Kees Cook wrote: > On Mon, Jun 13, 2016 at 2:49 PM, Emese Revfy wrote: > > On Thu, 9 Jun 2016 14:51:45 -0700 > > Kees Cook wrote: > > >> > + * gcc plugin to help generate a little bit of entropy from program > >> > state, > >> > + * used throughout the uptime

Re: [PATCH v9 3/4] Add Cyclomatic complexity GCC plugin

2016-06-14 Thread Emese Revfy
On Tue, 14 Jun 2016 12:29:59 -0700 Laura Abbott wrote: > This has some weird interaction with ftrace. On x86 > > 1) make mrproper > 2) make defconfig > 3) enable GCC_PLUGINS, GCC_PLUGIN_CYC_COMPLEXITY > 4) enable FUNCTION_TRACER (it will select other options as well) > 5) make && make modules >

Re: [PATCH v2 net-next v2 11/12] net: dsa: mv88e6xxx: add an SMI ops structure

2016-06-14 Thread Vivien Didelot
Hi Andrew, Andrew Lunn writes: >> +struct mv88e6xxx_smi_ops { >> +int (*read)(struct mii_bus *bus, int sw_addr, >> +int addr, int reg, u16 *val); >> +int (*write)(struct mii_bus *bus, int sw_addr, >> + int addr, int reg, u16 val); >> +}; >> + > > I think t

Re: [PATCH v5 1/2] Documentation: bindings: add DT documentation for Rockchip USB2PHY

2016-06-14 Thread Rob Herring
On Mon, Jun 13, 2016 at 10:10:09AM +0800, Frank Wang wrote: > Signed-off-by: Frank Wang > --- > > Changes in v5: > - Added 'reg' property to identify the different phy-blocks. > > Changes in v4: > - Used 'phy-supply' instead of 'vbus_*-supply'. > > Changes in v3: > - Added 'clocks' and 'cloc

RE: [PATCH v6] r8152: Add support for setting pass through MAC address on RTL8153-AD

2016-06-14 Thread Mario_Limonciello
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Tuesday, June 14, 2016 1:35 PM > To: pali.ro...@gmail.com > Cc: gre...@linuxfoundation.org; and...@lunn.ch; Limonciello, Mario > ; hayesw...@realtek.com; linux- > ker...@vger.kernel.org; net...@vger.kernel.org; l

Re: [PATCH 1/3] net: Add MDIO bus driver for the Hisilicon FEMAC

2016-06-14 Thread Rob Herring
On Mon, Jun 13, 2016 at 02:07:54PM +0800, Dongpo Li wrote: > This patch adds a separate driver for the MDIO interface of the > Hisilicon Fast Ethernet MAC. > > Reviewed-by: Jiancheng Xue > Signed-off-by: Dongpo Li > --- > .../bindings/net/hisilicon-femac-mdio.txt | 22 +++ Acked-by: R

Re: [PATCH 3/3] nilfs2: move ioctl interface and disk layout to uapi separately

2016-06-14 Thread Andrew Morton
On Mon, 13 Jun 2016 22:45:07 +0900 Ryusuke Konishi wrote: > The header file "include/linux/nilfs2_fs.h" is composed of parts for > ioctl and disk format, and both are intended to be shared with user > space programs. > > This moves them to the uapi directory "include/uapi/linux" splitting > the

Re: [PATCH 3/3] net: hisilicon: Add Fast Ethernet MAC driver

2016-06-14 Thread Rob Herring
On Mon, Jun 13, 2016 at 02:07:56PM +0800, Dongpo Li wrote: > This patch adds the Hisilicon Fast Ethernet MAC(FEMAC) driver. > The FEMAC supports max speed 100Mbps and has been used in many > Hisilicon SoC. > > Reviewed-by: Jiancheng Xue > Signed-off-by: Dongpo Li > --- > .../devicetree/bindings

Re: [PATCH] init, fix initcall blacklist for modules

2016-06-14 Thread Andrew Morton
On Tue, 14 Jun 2016 05:59:46 -0400 Prarit Bhargava wrote: > On 06/13/2016 04:59 PM, Rasmus Villemoes wrote: > > On Mon, Jun 13 2016, Prarit Bhargava wrote: > > > >> Sorry ... forgot to cc everyone on the last email. > >> > >> P. > >> > >> 8< > >> > >> sprint_symbol_no_offset() returns t

Re: [PATCH 3/6] MIPS: BMIPS: Add BCM3368 support

2016-06-14 Thread Rob Herring
On Mon, Jun 13, 2016 at 09:38:51AM +0200, Álvaro Fernández Rojas wrote: > BCM3368 has a shared TLB which conflicts with current SMP support, so it must > be disabled for now. > > Signed-off-by: Álvaro Fernández Rojas > --- > Documentation/devicetree/bindings/mips/brcm/soc.txt | 2 +- > arch/mips

Re: [PATCH 5/6] MIPS: BMIPS: Add BCM6362 support

2016-06-14 Thread Rob Herring
On Mon, Jun 13, 2016 at 09:38:53AM +0200, Álvaro Fernández Rojas wrote: > BCM6362 is a BMIPS4350 SoC which needs the same fixup as BCM6368 in order to > enable SMP support. > > Signed-off-by: Álvaro Fernández Rojas > --- > Documentation/devicetree/bindings/mips/brcm/soc.txt | 2 +- > arch/mips/b

Re: [PATCH 3.2 00/46] 3.2.81-rc1 review

2016-06-14 Thread Sudip Mukherjee
On Tuesday 14 June 2016 11:16 PM, Ben Hutchings wrote: On Tue, 2016-06-14 at 22:56 +0100, Sudip Mukherjee wrote: On Sunday 12 June 2016 10:34 PM, Ben Hutchings wrote: This is the start of the stable review cycle for the 3.2.81 release. There are 46 patches in this series, which will be posted a

Re: [PATCH] x86/efi: Auto enable EFI memmap on SGI UV systems

2016-06-14 Thread Joseph Thelen
On Wed, Jun 08, 2016 at 01:36:23PM +0100, Matt Fleming wrote: > (Cc'ing people familiar with e820 map woes) > > On Thu, 02 Jun, at 03:50:35PM, Joseph Thelen wrote: > > Currently, the EFI memory map entries are disabled by default and must > > be enabled by passing the kernel boot option: > > > >

Re: [PATCH v5] ASoC: rockchip: Add machine driver for RK3399 GRU Boards

2016-06-14 Thread Rob Herring
On Mon, Jun 13, 2016 at 04:42:18PM +0800, Xing Zheng wrote: > Because we need to support the multiple codecs (MAX98357A/RT5514/DA7219) > on the RK3399 GRU boards, this patch can help us to support these codecs. > > Signed-off-by: Xing Zheng > --- > > Changes in v5: > - fix the build warning for

[PATCH] Update email addresses in MAINTAINERS and .mailmap

2016-06-14 Thread Shuah Khan
Updating email addresses in MAINTAINERS and .mailmap files. Cc: sta...@vger.kernel.org Signed-off-by: Shuah Khan --- .mailmap| 1 + MAINTAINERS | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.mailmap b/.mailmap index 08b8042..feb0fd5 100644 --- a/.mailmap +++ b/.mail

Re: 4.6-rc*: Kernel unaligned access at pci_bus_read_config_dword+0x64/0x80

2016-06-14 Thread Anatoly Pugachev
On Tue, Jun 14, 2016 at 4:02 PM, Anatoly Pugachev wrote: > On Mon, Jun 13, 2016 at 3:49 PM, Meelis Roos wrote: >>> > Between 4.5.0 and 4.6.0-rc3, my Spar Enterprise T5120 has started >>> > showing the following messages during bootup: >> [...] >>> >>> got the same messages on my t5120 with kernel

Re: [PATCH] x86 / hibernate: Fix 64-bit code passing control to image kernel

2016-06-14 Thread Rafael J. Wysocki
On Tuesday, June 14, 2016 08:06:49 PM chenyu wrote: > On Mon, Jun 13, 2016 at 9:42 PM, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > Logan Gunthorpe reports that hibernation stopped working reliably for > > him after commit ab76f7b4ab23 (x86/mm: Set NX on gap between __ex_table > >

[PATCH 4/4] mfd: hi655x-pmic: Add powerkey device to hi655x PMIC driver

2016-06-14 Thread John Stultz
Wire up the powerkey driver functionality for the hi655x PMIC. Cc: Dmitry Torokhov Cc: Rob Herring Cc: Lee Jones Cc: Jorge Ramirez-Ortiz Cc: Feng Chen Cc: Wei Xu Cc: Guodong Xu Signed-off-by: John Stultz --- v4: Cleaned up magic values and realigned regulator entry to be a onliner dr

[PATCH 3/4] mfd: hi655x-pmic: Rename some interrupt macro names

2016-06-14 Thread John Stultz
Currently the hi655x-pmic driver has names for interrupt mask values, but not for the interrupt numbers themselves. So to allow for interrupt numbers to have sane names, rename the mask values with the _MASK postfix and use the existing names as the interrupt name Cc: Dmitry Torokhov Cc: Rob Her

[PATCH 1/4] drivers: input: powerkey for HISI 65xx SoC

2016-06-14 Thread John Stultz
From: Jorge Ramirez-Ortiz This driver provides a input driver for the power button on the HiSi 65xx SoC for boards like HiKey. This driver was originally by Zhiliang Xue then basically rewritten by Jorge, but preserving the original module author credits. Cc: Dmitry Torokhov Cc: Rob Herring

Re: [PATCH v2 net-next v2 12/12] net: dsa: mv88e6xxx: add addressing mode to info

2016-06-14 Thread Andrew Lunn
On Tue, Jun 14, 2016 at 06:24:17PM -0400, Vivien Didelot wrote: > Hi Andrew, > > Andrew Lunn writes: > > >> - ret = mdiobus_read_nested(bus, addr, reg); > >> + ret = mdiobus_read_nested(bus, sw_addr + addr, reg); > >>if (ret < 0) > >>return ret; > > > > If we are doing direct a

[PATCH 0/4] Hi655x powerkey support for HiKey (v4)

2016-06-14 Thread John Stultz
This patchset enables the pmic powerkey to function on HiKey, that I'd like to submit for consideration to be merged. New in v4: * Integrated a few cleanup suggestions from Lee Jones. * Removed MODULE_DEVICE_TABLE(of, hi65xx_powerkey_of_match); line I missed when removing the dts initialization

[PATCH 2/4] mfd: hi655x-pmic: Fixup issue with un-acked interrupts

2016-06-14 Thread John Stultz
While trying to get the powerkey to function, I found when pressing the key, I would get infinitely repeating interrupts. After digging around a bit, it seems we didn't set the ack_base value for the regmap irqchip logic, so nothing was acking the interrupt. This patch adds the ack_base, which se

Re: [PATCH v3 7/8] acpi: add support for configfs

2016-06-14 Thread kbuild test robot
Hi, [auto build test ERROR on pm/linux-next] [also build test ERROR on v4.7-rc3] [cannot apply to next-20160614] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Octavian-Purdila/ACPI-overlays

Re: [PATCH v3 1/3] LSM: Add /sys/kernel/security/lsm

2016-06-14 Thread David A. Wheeler
On Fri, 10 Jun 2016 14:25:45 -0700, Casey Schaufler wrote: > Subject: [PATCH v3 1/3] LSM: Add /sys/kernel/security/lsm > I got tired of having to find indirect ways to > determine what security modules are active on a system. > I have added /sys/kernel/security/lsm, which contains a > comma separ

[RFC PATCH-tip v2 1/6] locking/osq: Make lock/unlock proper acquire/release barrier

2016-06-14 Thread Waiman Long
The osq_lock() and osq_unlock() function may not provide the necessary acquire and release barrier in some cases. This patch makes sure that the proper barriers are provided when osq_lock() is successful or when osq_unlock() is called. Signed-off-by: Waiman Long --- kernel/locking/osq_lock.c |

[RFC PATCH-tip v2 0/6] locking/rwsem: Enable reader optimistic spinning

2016-06-14 Thread Waiman Long
v1->v2: - Fixed a 0day build error. - Add a new patch 1 to make osq_lock() a proper acquire memory barrier. - Replaced the explicit enabling of reader spinning by an autotuning mechanism that disable reader spinning for those rwsems that may not benefit from reader spinning. - Remove t

[RFC PATCH-tip v2 5/6] locking/rwsem: Change RWSEM_WAITING_BIAS for better disambiguation

2016-06-14 Thread Waiman Long
When the count value is in between 0 and RWSEM_WAITING_BIAS, there are 2 possibilities. Either a writer is present and there is no waiter or there are waiters and readers. There is no easy way to know which is true unless the wait_lock is taken. This patch changes the RWSEM_WAITING_BIAS from 0xfff

[RFC PATCH-tip v2 3/6] locking/rwsem: Enable count-based spinning on reader

2016-06-14 Thread Waiman Long
When the rwsem is owned by reader, writers stop optimistic spinning simply because there is no easy way to figure out if all the readers are actively running or not. However, there are scenarios where the readers are unlikely to sleep and optimistic spinning can help performance. This patch provid

[RFC PATCH-tip v2 4/6] locking/rwsem: move down rwsem_down_read_failed function

2016-06-14 Thread Waiman Long
Move the rwsem_down_read_failed() function down to below the optimistic spinning section before enabling optimistic spinning for the readers. There is no change in code. Signed-off-by: Waiman Long --- kernel/locking/rwsem-xadd.c | 116 +- 1 files changed,

[RFC PATCH-tip v2 6/6] locking/rwsem: Enable spinning readers

2016-06-14 Thread Waiman Long
This patch enables readers to optimistically spin when the rspin_threshold is non-zero. That threshold value should only be set when the lock owners of the rwsem are unlikely to go to sleep. Otherwise enabling reader spinning may make the performance worse in some cases. On a 4-socket Haswell mach

[RFC PATCH-tip v2 2/6] locking/rwsem: Stop active read lock ASAP

2016-06-14 Thread Waiman Long
Currently, when down_read() fails, the active read locking isn't undone until the rwsem_down_read_failed() function grabs the wait_lock. If the wait_lock is contended, it may takes a while to get the lock. During that period, writer lock stealing will be disabled because of the active read lock. T

Re: [v2 PATCH 1/4] Documentation: bindings: add dt doc for Rockchip USB Type-C PHY

2016-06-14 Thread Rob Herring
On Mon, Jun 13, 2016 at 05:39:46PM +0800, Chris Zhong wrote: > This patch adds a binding that describes the Rockchip USB Type-C PHY > for rk3399 > > Signed-off-by: Chris Zhong > > --- > > Changes in v2: > - add some registers description > > Changes in v1: > - add extcon node description > - m

Re: [PATCH v4] udp reuseport: fix packet of same flow hashed to different socket

2016-06-14 Thread David Miller
From: Su Xuemin Date: Mon, 13 Jun 2016 11:02:50 +0800 > From: "Su, Xuemin" > > There is a corner case in which udp packets belonging to a same > flow are hashed to different socket when hslot->count changes from 10 > to 11: > > 1) When hslot->count <= 10, __udp_lib_lookup() searches udp_table-

Re: [PATCH v2] nfsd: Always lock state exclusively.

2016-06-14 Thread Jeff Layton
On Tue, 2016-06-14 at 14:50 -0400, J . Bruce Fields wrote: > On Tue, Jun 14, 2016 at 11:53:27AM -0400, Oleg Drokin wrote: > > > > > > On Jun 14, 2016, at 11:38 AM, J . Bruce Fields wrote: > > > > > > > > On Sun, Jun 12, 2016 at 09:26:27PM -0400, Oleg Drokin wrote: > > > > > > > > It used to be

Re: [rcu:rcu/next 25/36] include/linux/irqflags.h:79:3: error: implicit declaration of function 'arch_irqs_disabled_flags'

2016-06-14 Thread Paul E. McKenney
On Mon, Jun 06, 2016 at 02:04:03AM +0800, kbuild test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git > rcu/next > head: 13ee0de9cd2444b57ce30c4f1607b49b90aa0c38 > commit: f251ac814fc5787765009e60d54a2bd4277350c8 [25/36] rcu: Make > call_rcu_tasks()

Re: [PATCH] Add kernel parameter to blacklist modules

2016-06-14 Thread Prarit Bhargava
On 06/14/2016 04:51 PM, Henrique de Moraes Holschuh wrote: > > And if such a module blacklist feature ends up being invoked by the > "nuke_module_from_orbit=" parameter, I will pay the author > (and the subsystem maintainer that manages to get that merged) a couple > beers should we ever meet i

Re: [PATCH v3 7/8] acpi: add support for configfs

2016-06-14 Thread Rafael J. Wysocki
Hi Octavian, On Wednesday, June 15, 2016 06:43:21 AM kbuild test robot wrote: > Hi, > > [auto build test ERROR on pm/linux-next] > [also build test ERROR on v4.7-rc3] > [cannot apply to next-20160614] > [if your patch is applied to the wrong git tree, please drop us a note to

Re: [PATCH v2] nfsd: Always lock state exclusively.

2016-06-14 Thread Oleg Drokin
On Jun 14, 2016, at 6:52 PM, Jeff Layton wrote: > I think I'd still prefer to have it unlock the mutex in the event that > it's not going to use it after all. While that kind of thing is ok for > now, it's stuff like that that can turn into a subtle source of bugs > later. > > Also, I think I'd b

Re: [PATCH v2] nfsd: Always lock state exclusively.

2016-06-14 Thread Jeff Layton
On Tue, 2016-06-14 at 18:54 -0400, Oleg Drokin wrote: > On Jun 14, 2016, at 6:52 PM, Jeff Layton wrote: > > > > I think I'd still prefer to have it unlock the mutex in the event that > > it's not going to use it after all. While that kind of thing is ok for > > now, it's stuff like that that can t

[PATCH v2] mfd: qcom_rpm: fix offset error for msm8660

2016-06-14 Thread Linus Walleij
The RPM in MSM8660/APQ8060 has different offsets to the selector ACK and request context ACK registers. Make all these register offsets part of the per-SoC data and assign the right values. The bug was found by verifying backwards to the vendor tree in the out-of-tree files : all were using offset

Re: [PATCH 0/3] Convert clk-fixed into module platform driver

2016-06-14 Thread Ricardo Ribalda Delgado
Hi Stephen Assume this device tree overlay: &bus0{ axi_clk: axi_clk { compatible = "fixed-clock"; #clock-cells = <0x0>; clock-frequency = <12500>; }; iic_0: iic { #address-cells = <1>; #size-cells = <1>; compatible = "xlnx,xps-iic-2.00.a"; reg = < 0x0003 0x1 >; interrupt-parent = <

[PATCH v3] mfd: qcom_rpm: fix offset error for msm8660

2016-06-14 Thread Linus Walleij
The RPM in MSM8660/APQ8060 has different offsets to the selector ACK and request context ACK registers. Make all these register offsets part of the per-SoC data and assign the right values. The bug was found by verifying backwards to the vendor tree in the out-of-tree files : all were using offset

Re: [PATCH 1/2] powercap/rapl: add support for skx

2016-06-14 Thread Rafael J. Wysocki
On Tuesday, June 14, 2016 07:47:45 AM Jacob Pan wrote: > On Tue, 14 Jun 2016 02:21:41 +0200 > "Rafael J. Wysocki" wrote: > > > On Tue, Jun 14, 2016 at 2:06 AM, Jacob Pan > > wrote: > > > On Mon, 13 Jun 2016 23:56:18 +0200 > > > "Rafael J. Wysocki" wrote: > > > > > >> On Monday, June 13, 2016 11

Re: [RFC PATCH-tip 6/6] xfs: Enable reader optimistic spinning for DAX inodes

2016-06-14 Thread Dave Chinner
On Tue, Jun 14, 2016 at 02:12:39PM -0400, Waiman Long wrote: > This patch enables reader optimistic spinning for inodes that are > under a DAX-based mount point. > > On a 4-socket Haswell machine running on a 4.7-rc1 tip-based kernel, > the fio test with multithreaded randrw and randwrite tests on

Re: [PATCH 01/23] all: syscall wrappers: add documentation

2016-06-14 Thread Yury Norov
Hi Catalin, David, all > COMPAT_SYSCALL_WRAP2(creat, ...): > mov w0, w0 > b > > > > Cost wise, this seems like it all cancels out in the end, but what > > > do I know? > > > > I think you know something, and I also think Heiko and other s390 guys > > know something as well

Re: [PATCH v2 net-next v2 12/12] net: dsa: mv88e6xxx: add addressing mode to info

2016-06-14 Thread Vivien Didelot
Hi, Andrew Lunn writes: > On Tue, Jun 14, 2016 at 06:24:17PM -0400, Vivien Didelot wrote: >> Hi Andrew, >> >> Andrew Lunn writes: >> >> >> - ret = mdiobus_read_nested(bus, addr, reg); >> >> + ret = mdiobus_read_nested(bus, sw_addr + addr, reg); >> >> if (ret < 0) >> >> return ret;

[PATCH v1 1/1] x86/platform/intel-mid: Enable GPIO expanders on Edison

2016-06-14 Thread Andy Shevchenko
Intel Edison board provides GPIO expanders connected to I2C bus. Add necessary file to get those enumerated. Signed-off-by: Andy Shevchenko --- arch/x86/platform/intel-mid/device_libs/Makefile | 6 +- .../intel-mid/device_libs/platform_pcal9555a.c | 99 ++ 2 files chan

Re: [v2 PATCH 3/4] Documentation: bindings: add dt documentation for cdn DP controller

2016-06-14 Thread Rob Herring
On Mon, Jun 13, 2016 at 05:39:48PM +0800, Chris Zhong wrote: > This patch adds a binding that describes the cdn DP controller for > rk3399. > > Signed-off-by: Chris Zhong > > --- > > Changes in v2: None > Changes in v1: > - add extcon node description > - add #sound-dai-cells description > >

[PATCH] mailbox: pcc: Add PCC request and free channel declarations

2016-06-14 Thread Hoan Tran
As PCC will be used by other clients not only CPPC. This change exports pcc_mbox_request_channel() and pcc_mbox_free_channel() declarations Signed-off-by: Hoan Tran --- include/acpi/cppc_acpi.h | 4 include/linux/mailbox_client.h | 4 2 files changed, 4 insertions(+), 4 deletions

Re: [RFC 11/18] limits: track and present RLIMIT_NPROC actual max

2016-06-14 Thread Jann Horn
On Tue, Jun 14, 2016 at 03:40:35PM +, Topi Miettinen wrote: > On 06/13/16 22:27, Jann Horn wrote: > > On Mon, Jun 13, 2016 at 10:44:18PM +0300, Topi Miettinen wrote: > >> Track maximum number of processes per user and present it > >> in /proc/self/limits. > >> > >> Signed-off-by: Topi Miettinen

Re: [PATCH] dax: use devm_add_action_or_reset

2016-06-14 Thread Dan Williams
On Sun, Jun 12, 2016 at 7:48 AM, Sudip Mukherjee wrote: > If devm_add_action() fails we are explicitly calling the cleanup to free > the resources allocated. Lets use the helper devm_add_action_or_reset() > and return directly in case of error, as we know that the cleanup > function has been alrea

Re: [PATCH] gpio: add Intel WhiskeyCove GPIO driver

2016-06-14 Thread Bin Gao
On Tue, Jun 14, 2016 at 01:09:31PM +0300, Mika Westerberg wrote: > On Fri, Jun 10, 2016 at 11:01:51PM -0700, Bin Gao wrote: > > +static const struct platform_device_id pmic_gpio_id_table[] = { > > + { "bxt_wcove_gpio", }, > > +}; > > Do you really need this? > > > + > > +static struct platform_

cmpxchg and x86 flags output

2016-06-14 Thread H. Peter Anvin
The x86 gcc now has the ability to return the value of flags output. In most use cases, this has been trivial to use in the kernel. However, cmpxchg() presents a problem. The current definition of cmpxchg() and its variants is: out = cmpxchg(ptr, old, new); ... which is then frequently

Re: modules: add ro_after_init support

2016-06-14 Thread Jessica Yu
+++ Kees Cook [14/06/16 14:33 -0700]: On Mon, Jun 13, 2016 at 5:13 PM, Jessica Yu wrote: Add ro_after_init support for modules by adding a new page-aligned section in the module layout (after rodata) for ro_after_init data and enabling RO protection for that section after module init runs. Sig

Re: BPF runtime for systemtap

2016-06-14 Thread Brendan Gregg
On Tue, Jun 14, 2016 at 1:06 PM, Richard Henderson wrote: > I'm pleased to be able to announce an initial implementation of an (e)bpf > backend for systemtap. For the subset of systemtap probes that can use > kprobes, we can use a bpf filter instead of loading a kernel module. > > As this impleme

Re: acpi: broken suspend to RAM with v4.7-rc1

2016-06-14 Thread Rafael J. Wysocki
On Mon, Jun 13, 2016 at 12:07 PM, Andrey Skvortsov wrote: > Hi Lv, > > On 13 Jun, Zheng, Lv wrote: >> > From: linux-acpi-ow...@vger.kernel.org [mailto:linux-acpi- >> > ow...@vger.kernel.org] On Behalf Of Rafael J. Wysocki >> > Subject: Re: acpi: broken suspend to RAM with v4.7-rc1 >> > >> > On Sat

Re: [PATCH v1 3/3] mm: per-process reclaim

2016-06-14 Thread Minchan Kim
Hi Johannes, On Mon, Jun 13, 2016 at 11:06:53AM -0400, Johannes Weiner wrote: > Hi Minchan, > > On Mon, Jun 13, 2016 at 04:50:58PM +0900, Minchan Kim wrote: > > These day, there are many platforms available in the embedded market > > and sometime, they has more hints about workingset than kernel

Re: [PATCH 16/23] arm64: ilp32: introduce binfmt_ilp32.c

2016-06-14 Thread Yury Norov
On Thu, May 26, 2016 at 09:49:42PM +0800, Zhangjian (Bamvor) wrote: > Hi, yury > > The coredump is usable in our platform. It miss the following definition: > +#define compat_elf_greg_telf_greg_t > +#define compat_elf_gregset_t elf_gregset_t > > And it leads to the wrong register save in core

Re: [PATCH v1 0/3] per-process reclaim

2016-06-14 Thread Minchan Kim
Hi Chen, On Mon, Jun 13, 2016 at 07:50:00PM +0800, Chen Feng wrote: > Hi Minchan, > > On 2016/6/13 15:50, Minchan Kim wrote: > > Hi all, > > > > http://thread.gmane.org/gmane.linux.kernel/1480728 > > > > I sent per-process reclaim patchset three years ago. Then, last > > feedback from akpm was

[PATCH 3/5] staging/lustre/lov: Fix gpl URL in lov_pool.c

2016-06-14 Thread Oleg Drokin
There's no longer a matching sun.com URL, so refer to gnu.org copy. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/lov/lov_pool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/lustre/lustre/lov/lov_pool.c b/drivers/staging/lustre/lustre/lo

[PATCH 5/5] staging/lustre/libcfs: Remove "Please contact Oracle" from header

2016-06-14 Thread Oleg Drokin
The "Please contact Oracle Corporation" lines are removed since not only Oracle has nothing to do with Lustre anymore, there's a pointer to GPL already that's independent of any particular company. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/include/linux/libcfs/libcfs_fail.h | 4

[PATCH 0/5] Lustre: Remove defunct SUN addresses

2016-06-14 Thread Oleg Drokin
This patch removes a paragraph about contacting SUN Microsystems from a lot of Lustre files since there's no more SUN Microsystems. A pointer to GPLv2 URL is also switched from defunct sun.com to gnu.org. For a good measure a couple of places that refer to "Please contact Oracle" are also removed

Re: [PATCH v1 3/3] mm: per-process reclaim

2016-06-14 Thread Minchan Kim
On Mon, Jun 13, 2016 at 06:07:09PM +0800, Hillf Danton wrote: > > +static ssize_t reclaim_write(struct file *file, const char __user *buf, > > + size_t count, loff_t *ppos) > > +{ > > + struct task_struct *task; > > + char buffer[PROC_NUMBUF]; > > + struct mm_struct

[PATCH 4/5] staging/lustre: Remove stray line from selftest/selftest.h

2016-06-14 Thread Oleg Drokin
The 'copy of GPLv2]' is an ending from template that's no longer needed, so remove it to avoid any extra confusion. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lnet/selftest/selftest.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/lustre/lnet/selftest/selftest.h b

[PATCH 2/5] staging/lustre: Replace sun.com GPLv2 URL with gnu.org one.

2016-06-14 Thread Oleg Drokin
http://www.sun.com/software/products/lustre/docs/GPLv2.pdf is no longer around, so replace it with (hopefully more permanent) http://http://www.gnu.org/licenses/gpl-2.0.html Signed-off-by: Oleg Drokin Reported-by: Xose Vazquez Perez --- drivers/staging/lustre/include/linux/libcfs/curproc.h

Re: [ldv-project] [net] libertas: potential race condition

2016-06-14 Thread James Cameron
On Tue, Jun 14, 2016 at 05:16:11PM +0400, Pavel Andrianov wrote: > 08.06.2016 02:51, James Cameron пишет: > >On Tue, Jun 07, 2016 at 09:39:55AM -0500, Dan Williams wrote: > >>On Tue, 2016-06-07 at 13:30 +0400, Pavel Andrianov wrote: > >>>Hi! > >>> > >>>There is a potential race condition in > >>>dr

Re: [PATCH v1 0/3] per-process reclaim

2016-06-14 Thread Minchan Kim
On Mon, Jun 13, 2016 at 06:59:40PM +0530, Vinayak Menon wrote: > On 6/13/2016 1:20 PM, Minchan Kim wrote: > > Hi all, > > > > http://thread.gmane.org/gmane.linux.kernel/1480728 > > > > I sent per-process reclaim patchset three years ago. Then, last > > feedback from akpm was that he want to know re

Re: [PATCH v1 3/3] mm: per-process reclaim

2016-06-14 Thread Minchan Kim
On Mon, Jun 13, 2016 at 01:06:35PM -0400, Rik van Riel wrote: > On Mon, 2016-06-13 at 16:50 +0900, Minchan Kim wrote: > > These day, there are many platforms available in the embedded market > > and sometime, they has more hints about workingset than kernel so > > they want to involve memory manage

Re: [PATCH v5 2/2] phy: rockchip-inno-usb2: add a new driver for Rockchip usb2phy

2016-06-14 Thread Frank Wang
Hi Heiko & Guenter, On 2016/6/14 22:00, Heiko Stübner wrote: Am Dienstag, 14. Juni 2016, 06:50:31 schrieb Guenter Roeck: On Tue, Jun 14, 2016 at 6:27 AM, Heiko Stübner wrote: Am Montag, 13. Juni 2016, 10:10:10 schrieb Frank Wang: The newer SoCs (rk3366, rk3399) take a different usb-phy IP bl

Re: [PATCH v5 1/2] Documentation: bindings: add DT documentation for Rockchip USB2PHY

2016-06-14 Thread Frank Wang
Hi Heiko, On 2016/6/14 21:28, Heiko Stübner wrote: Am Montag, 13. Juni 2016, 10:38:39 schrieb Heiko Stübner: Am Montag, 13. Juni 2016, 10:10:09 schrieb Frank Wang: Signed-off-by: Frank Wang looks really cool now, thanks for addressing all the review comments Reviewed-by: Heiko Stuebner Yo

Re: [PATCH v2] Add kernel parameter to blacklist modules

2016-06-14 Thread Rusty Russell
Prarit Bhargava writes: > Blacklisting a module in linux has long been a problem. The current > procedure is to use rd.blacklist=module_name, however, that doesn't > cover the case after the initramfs and before a boot prompt (where one > is supposed to use /etc/modprobe.d/blacklist.conf to black

[PATCH v2 5/6] i.MX: system.c: Tweak prefetch settings for performance

2016-06-14 Thread Andrey Smirnov
Update Prefetch Control Register settings to match that of Freescale's Linux tree. As the commit e3addf1b773964eac7f797e8538c69481be4279c states (author Nitin Garg): "... set Prefetch offset to 15, since it improves memcpy performance by 35%. Don't enable Incr double Linefill enable since it adver

[PATCH v2 6/6] i.MX: Do not explicitly call l2x0_of_init()

2016-06-14 Thread Andrey Smirnov
There's no need to explicitly call l2x0_of_init() since it will be called as a part of init_IRQ() (see arch/arm/kernel/irq.c for details). This way we can simplify imx_init_l2cache() and ditch the call to it on i.MX35 (which does not claim compatibility with "arm,pl310-cache") alltogether. Suggest

[PATCH v2 2/6] i.MX: system.c: Remove redundant errata 752271 code

2016-06-14 Thread Andrey Smirnov
Applying a fix for ARM errata 752271 would already be taken care by a call to a 'fixup' hook as a part of l2x0_of_init() -> __l2c_init() call chain. Moreso the code in 'fixup' function would do that based on the PL310's revsion information, whereas removde code does so based on SoC version which do

[PATCH v2 1/6] i.MX: system.c: Convert goto to if statement

2016-06-14 Thread Andrey Smirnov
Using goto here doesn't bring any advantages and only makes the code flow less clear. No functional changes. Signed-off-by: Andrey Smirnov --- arch/arm/mach-imx/system.c | 36 +--- 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/arch/arm/mach-imx/s

[PATCH v2 4/6] ARM: cache-l2x0: Do not clear bit 23 in prefetch control register

2016-06-14 Thread Andrey Smirnov
As per L2C-310 TRM[1]: "... You can control this feature using bits 30,27, and 23 of the Prefetch Control Register. Bit 23 and27 are only used if you set bit 30 HIGH..." which means there is no need to clear bit 23 if bit 30 is being cleared. [1] http://infocenter.arm.com/help/index.jsp?topic=/

Re: [PATCH 3/4] x86: Rewrite switch_to() code

2016-06-14 Thread Andy Lutomirski
On Sat, May 21, 2016 at 9:04 AM, Brian Gerst wrote: > Move the low-level context switch code to an out-of-line asm stub instead of > using complex inline asm. This allows constructing a new stack frame for the > child process to make it seamlessly flow to ret_from_fork without an extra > test and

[PATCH v2 3/6] i.MX: system.c: Replace magic numbers

2016-06-14 Thread Andrey Smirnov
Signed-off-by: Andrey Smirnov --- arch/arm/include/asm/hardware/cache-l2x0.h | 1 + arch/arm/mach-imx/system.c | 5 - arch/arm/mm/cache-l2x0.c | 6 -- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/arch/arm/include/asm/hardware/cache-l2x0.

[PATCH v2 0/6] i.MX L2-cache code cleanups and performance tweaks

2016-06-14 Thread Andrey Smirnov
Hi everyone, Here's the second version of i.MX L2-cache related patches. Here's what's new from v1: - Already existing, spelling error free (shame on me for not noticing that in previous version!), symbolic constant defintions are used - Increased scope of magic number replacement (addition

Re: [PATCH v9 05/22] IB/hns: Add initial profile resource

2016-06-14 Thread oulijun
Hi, On 2016/6/9 15:01, Leon Romanovsky wrote: > On Wed, Jun 01, 2016 at 11:37:47PM +0800, Lijun Ou wrote: >> This patch mainly configured some profile resoure. For example, >> vendor_id, hardware version, and some data structure sizes so on. >> >> Signed-off-by: Wei Hu >> Signed-off-by: Nenglong Z

Re: [PATCH 0/6] Support DAX for device-mapper dm-linear devices

2016-06-14 Thread Mike Snitzer
On Tue, Jun 14 2016 at 4:19pm -0400, Jeff Moyer wrote: > Mike Snitzer writes: > > > On Tue, Jun 14 2016 at 9:50am -0400, > > Jeff Moyer wrote: > > > >> "Kani, Toshimitsu" writes: > >> > >> >> I had dm-linear and md-raid0 support on my list of things to look at, > >> >> did you have raid0 i

Re: BPF runtime for systemtap

2016-06-14 Thread Frank Ch. Eigler
brendan.d.gregg wrote: > [...] > Great! Is there a hello world example in there somewhere? I found this: > [...] Yup. Here is a smoke test. (A great many other things are not yet working.) % sudo ./stap -v --runtime=bpf -e 'global foo probe kprobe.function("vfs_read"), kprobe.function("

Re: [PATCH v3 05/10] drm/rockchip: analogix_dp: add rk3399 eDP support

2016-06-14 Thread Yakir Yang
Doug, On 06/14/2016 11:24 PM, Doug Anderson wrote: Yakir, On Tue, Jun 14, 2016 at 4:46 AM, Yakir Yang wrote: RK3399 and RK3288 shared the same eDP IP controller, only some light difference with VOP configure and GRF configure. Signed-off-by: Yakir Yang Acked-by: Mark Yao --- Changes in v3:

Re: [PATCH] extcon: palmas: Fix boot up state of VBUS when using GPIO detection

2016-06-14 Thread Chanwoo Choi
On 2016년 06월 14일 23:04, Roger Quadros wrote: > If USB cable is connected prior to boot, we don't get any interrupts > so we must manually check the VBUS state and report it during probe. > If we don't do it then USB controller will never know that peripheral > cable was connected till the user unpl

Re: [PATCH v3 07/10] drm/bridge: analogix_dp: passing the connector as an argument in .get_modes()

2016-06-14 Thread Yakir Yang
On 06/15/2016 12:28 AM, Daniel Vetter wrote: On Tue, Jun 14, 2016 at 06:26:56PM +0200, Daniel Vetter wrote: On Tue, Jun 14, 2016 at 07:46:29PM +0800, Yakir Yang wrote: It's better to pass the connector to platform driver in .get_modes() callback, just like what the .get_modes() helper function

[PATCH v2] more mapcount page as kpage could reduce total replacement times than fewer mapcount one in probability.

2016-06-14 Thread zhouxianrong
From: z00281421 more mapcount page as kpage could reduce total replacement times than fewer mapcount one when ksmd scan and replace among forked pages later. Signed-off-by: z00281421 --- mm/ksm.c |8 1 file changed, 8 insertions(+) diff --git a/mm/ksm.c b/mm/ksm.c index 4786b41

Re: perf probe issues

2016-06-14 Thread Masami Hiramatsu
On Tue, 14 Jun 2016 14:05:04 -0300 Arnaldo Carvalho de Melo wrote: > Hi Masami, > > While investigating a problem in the annotation code reported by > Linus, with "kaslr" on the kernel command line and this in .config: > > [root@jouet ~]# egrep 'CONFIG_(RANDOMIZE_BASE|DEBUG_INFO)' > ~acm

[power_supply] 30f4db08b1: driver failed to report `online' property: -11

2016-06-14 Thread kernel test robot
FYI, we noticed the following commit: https://github.com/0day-ci/linux Rhyland-Klein/power_supply-fix-return-value-of-get_property/20160614-050752 commit 30f4db08b1f61c5e928503d8dcb97da2d5317f13 ("power_supply: fix return value of get_property") on test machine: vm-vp-quantal

Re: [PATCH v3] storvsc: use small sg_tablesize on x86

2016-06-14 Thread Martin K. Petersen
> "Olaf" == Olaf Hering writes: Olaf> On Thu, Jun 09, James Bottomley wrote: >> On Thu, 2016-06-09 at 18:25 +0200, Olaf Hering wrote: >> > Reducing the sg_tablesize allows booting of 32bit kernels in VMs, > >> after > commit be0cf6ca301c61458dc4aa1a37acf4f58d2ed3d6 ("scsi: >> storvsc: Set > t

Re: [PATCH 0/6] Support DAX for device-mapper dm-linear devices

2016-06-14 Thread Dan Williams
On Tue, Jun 14, 2016 at 6:46 PM, Mike Snitzer wrote: > On Tue, Jun 14 2016 at 4:19pm -0400, > Jeff Moyer wrote: > >> Mike Snitzer writes: >> >> > On Tue, Jun 14 2016 at 9:50am -0400, >> > Jeff Moyer wrote: >> > >> >> "Kani, Toshimitsu" writes: >> >> >> >> >> I had dm-linear and md-raid0 supp

Re: [PATCH] audit: add fields to exclude filter by reusing user filter

2016-06-14 Thread Richard Guy Briggs
On 16/06/03, Paul Moore wrote: > On Fri, Jun 3, 2016 at 4:24 PM, Richard Guy Briggs wrote: > > On 16/06/03, Paul Moore wrote: > >> On Wed, Jun 1, 2016 at 6:50 PM, Richard Guy Briggs wrote: > >> > RFE: add additional fields for use in audit filter exclude rules > >> > https://github.com/linux-audi

[PATCH] pwm: Create device class for pwm channels

2016-06-14 Thread Greg KH
From: David Hsu Pwm channels don't send uevents when exported, this change adds the channels to a pwm class and set their device type to pwm_channel so uevents are sent. To do this properly, the device names need to change to uniquely identify a channel. This change is from pwmN to pwm-(chip->b

Re: [PATCH 1/6] ASoC: sgtl5000: Fix regulator support

2016-06-14 Thread Fabio Estevam
On Mon, Jun 6, 2016 at 8:14 PM, Clemens Gruber wrote: > From: Eric Nelson > > Regulator support on SGTL5000 is broken because the VDDIO and > VDDA and VDDD should be powered on before enabling MCLK as > shown in Figure 4 of [1]. This requires moving control of the > regulators from the codec bloc

Re: [PATCH 3/6] ASoC: sgtl5000: Initialize CHIP_ANA_POWER to power-on defaults

2016-06-14 Thread Fabio Estevam
On Mon, Jun 6, 2016 at 8:14 PM, Clemens Gruber wrote: > From: Eric Nelson > > Initialize CHIP_ANA_POWER to match power on defaults, which disables > ADC, DAC, and charge pumps. > > In the process, remove references to the following register/bitfields > from the sgtl5000_set_power_regs routine: >

Re: [PATCH 2/6] ASoC: sgtl5000: Write all default registers

2016-06-14 Thread Fabio Estevam
On Mon, Jun 6, 2016 at 8:14 PM, Clemens Gruber wrote: > From: Eric Nelson > > If an error occurs writing defaults, produce an error message but > continue writing other registers. The failure of a single write should > not cause catastrophic device failure. > > In at least one occurrence, I2C wri

Re: [PATCH] arm64: Implement arch_setup_pdev_archdata hook

2016-06-14 Thread Baolin Wang
On 14 June 2016 at 22:43, Catalin Marinas wrote: > On Tue, Jun 07, 2016 at 05:22:25PM +0800, Baolin Wang wrote: >> On 7 June 2016 at 17:15, Robin Murphy wrote: >> > Please elaborate on the situation that you're attempting to address here >> > (please don't let it be the ongoing Designware USB cat

Re: [PATCH 5/6] ASoC: sgtl5000: Do not disable regulators in SND_SOC_BIAS_OFF

2016-06-14 Thread Fabio Estevam
On Mon, Jun 6, 2016 at 8:14 PM, Clemens Gruber wrote: > From: Eric Nelson > > Disabling the SGTL5000 through regulators would certainly save more > power than simply disabling the reference voltages as described in the > data sheet, but won't properly restore things on resume. > > This driver doe

Re: [PATCH 4/6] ASoC: sgtl5000: Disable internal PLL early

2016-06-14 Thread Fabio Estevam
On Mon, Jun 6, 2016 at 8:14 PM, Clemens Gruber wrote: > From: Eric Nelson > > To handle the soft reboot case, the internal PLL must be > disabled in SGTL5000_CHIP_CLK_CTRL before clearing bits > SGTL5000_VCOAMP_POWERUP and SGTL5000_PLL_POWERUP in > register SGTL5000_CHIP_ANA_POWER. > > Signed-off

<    4   5   6   7   8   9   10   11   >