Re: [PATCH RESEND] smp: make wake up idle cpus more generic

2016-04-03 Thread Lianwei Wang
On Sat, Apr 2, 2016 at 6:10 AM, Daniel Lezcano wrote: > On 04/02/2016 08:15 AM, Lianwei Wang wrote: >>> >>> >>> * Lianwei Wang wrote: >>> The wake_up_all_idle_cpus API always wake up all the online cpus, but sometimes we only want to wake up a set of cpus. Use a generic function to

[PATCH 1/2] ARM: PIE infrastructure

2016-04-03 Thread Alexandre Belloni
Add support for embedding position independent executables (PIE) in the kernel. Those PIEs can then be loaded into memory allocated using genalloc. For example, this allows running code from SRAM which is usually needed for suspend/resume or to change the DDR timings. That code is usually written i

[PATCH 2/2] ARM: at91: pm: switch to the PIE infrastructure

2016-04-03 Thread Alexandre Belloni
Using the PIE infrastructure allows to write the whole suspend/resume functions in C instead of assembly. The only remaining assembly instruction is wfi for armv5 It makes the code shorter and clearer. Signed-off-by: Alexandre Belloni --- arch/arm/mach-at91/Kconfig | 1 + arch/arm/mach-

[PATCH 0/2] Embedding Position Independent Executables

2016-04-03 Thread Alexandre Belloni
Hi, This series tries to revive the many series trying to achieve the same thing. I've tried numerous approaches and while using the kernel module loader is actually quite convenient from a relocation point of view it is quite overkill and also it is quite often too late as a lot of the arch spec

core.c:undefined reference to `fpu_save'

2016-04-03 Thread kbuild test robot
Hi Andrew, 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: f7eeb8a87c033d126ff6b8c35405ba5dc4e55754 commit: c60f169202c7643991a8b4bfeea60e06843d5b5a arch/mn10300/kernel/fpu-nofpu.c: needs asm/elf.h d

[PATCH TRIVIAL] README: remove trailing whitespace

2016-04-03 Thread Diego Viola
Signed-off-by: Diego Viola --- README | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README b/README index afc4f0d..e8c8a6d 100644 --- a/README +++ b/README @@ -2,7 +2,7 @@ These are the release notes for Linux version 4. Read them carefully, as th

[git pull] x86 updates for 4.6

2016-04-03 Thread Thomas Gleixner
Linus, please pull the latest x86-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-urgent-for-linus this lot contains: - Some fixups for the fallout of the topology consolidation which unearthed AMD/Intel inconsistencies - Docume

Re: A few more filesystem encryption questions

2016-04-03 Thread Theodore Ts'o
On Sun, Apr 03, 2016 at 12:58:33AM -0500, Eric Biggers wrote: > > I found that a process without access to the master encryption key can read a > file's full decrypted contents, provided that the file was opened recently by > a > process with access to the key. This is true even if the privilege

Re: [PATCH 02/13] fscrypto: rename some functions for clarity

2016-04-03 Thread Theodore Ts'o
On Sun, Apr 03, 2016 at 12:21:53AM -0500, Eric Biggers wrote: > Rename fscrypt_complete() to page_crypt_complete(). This callback is > specifically for data pages; fscrypto also performs filename encryption. > > Rename dir_crypt_complete() to fname_crypt_complete(). This callback is > also used

Re: [PATCH v5 4/9] x86/traps: Enable all exception handler callbacks early

2016-04-03 Thread Borislav Petkov
On Sat, Apr 02, 2016 at 10:52:48PM +0200, Borislav Petkov wrote: > On Sat, Apr 02, 2016 at 01:16:07PM -0700, Andy Lutomirski wrote: > > I have no idea why it was explicitly unsupported, but I'm guessing it > > was just to avoid duplicating the code. Early "ext" uaccess failures > > are certainly n

Re: rcu_preempt self-detected stall on CPU from 4.5-rc3, since 3.17

2016-04-03 Thread Paul E. McKenney
On Thu, Mar 31, 2016 at 08:42:55AM -0700, Paul E. McKenney wrote: > On Wed, Mar 30, 2016 at 07:55:47AM -0700, Paul E. McKenney wrote: > > On Tue, Mar 29, 2016 at 06:49:08AM -0700, Paul E. McKenney wrote: > > > On Mon, Mar 28, 2016 at 05:28:14PM -0700, Paul E. McKenney wrote: > > > > On Mon, Mar 28,

Re: [PATCH v5 5/9] x86/paravirt: Add _safe to the read_msr and write_msr PV hooks

2016-04-03 Thread Borislav Petkov
On Sat, Apr 02, 2016 at 07:01:36AM -0700, Andy Lutomirski wrote: > These hooks match the _safe variants, so name them accordingly. > This will make room for unsafe PV hooks. > > Signed-off-by: Andy Lutomirski > --- > arch/x86/include/asm/paravirt.h | 33 + >

[PATCH v6 01/24] i2c-mux: add common data for every i2c-mux instance

2016-04-03 Thread Peter Rosin
From: Peter Rosin All i2c-muxes have a parent adapter and one or many child adapters. A mux also has some means of selection. Previously, this was stored per child adapter, but it is only needed to keep track of this per mux. Add an i2c mux core, that keeps track of this consistently. Also add

Re: [PATCH] iio: imu: Add initial support for Bosch BMI160

2016-04-03 Thread Jonathan Cameron
On 01/04/16 13:31, Daniel Baluta wrote: > BMI160 is an Inertial Measurement Unit (IMU) which provides acceleration > and angular rate measurement. It also offers a secondary I2C interface > for connecting a magnetometer sensor (usually BMM160). > > Current driver offers support for accelerometer a

[PATCH v6 00/24] i2c mux cleanup and locking update

2016-04-03 Thread Peter Rosin
From: Peter Rosin Hi! I have a pair of boards with this i2c topology: GPIO ---| -- BAT1 | v / I2C -+--B---+ MUX | \ EEPROM -- BAT2 (B denotes the bound

[PATCH v6 04/24] i2c: i2c-arb-gpio-challenge: convert to use an explicit i2c mux core

2016-04-03 Thread Peter Rosin
From: Peter Rosin Allocate an explicit i2c mux core to handle parent and child adapters etc. Update the select/deselect ops to be in terms of the i2c mux core instead of the child adapter. Signed-off-by: Peter Rosin --- drivers/i2c/muxes/i2c-arb-gpio-challenge.c | 47 +-

[PATCH v6 02/24] i2c: i2c-mux-gpio: convert to use an explicit i2c mux core

2016-04-03 Thread Peter Rosin
From: Peter Rosin Allocate an explicit i2c mux core to handle parent and child adapters etc. Update the select/deselect ops to be in terms of the i2c mux core instead of the child adapter. Signed-off-by: Peter Rosin --- drivers/i2c/muxes/i2c-mux-gpio.c | 54

[PATCH v6 07/24] i2c: i2c-mux-reg: convert to use an explicit i2c mux core

2016-04-03 Thread Peter Rosin
From: Peter Rosin Allocate an explicit i2c mux core to handle parent and child adapters etc. Update the select/deselect ops to be in terms of the i2c mux core instead of the child adapter. Signed-off-by: Peter Rosin --- drivers/i2c/muxes/i2c-mux-reg.c | 63 -

[PATCH v6 06/24] i2c: i2c-mux-pca954x: convert to use an explicit i2c mux core

2016-04-03 Thread Peter Rosin
From: Peter Rosin Allocate an explicit i2c mux core to handle parent and child adapters etc. Update the select/deselect ops to be in terms of the i2c mux core instead of the child adapter. Add a mask to handle the case where not all child adapters should cause a mux deselect to happen, now that

[PATCH v6 03/24] i2c: i2c-mux-pinctrl: convert to use an explicit i2c mux core

2016-04-03 Thread Peter Rosin
From: Peter Rosin Allocate an explicit i2c mux core to handle parent and child adapters etc. Update the select/deselect ops to be in terms of the i2c mux core instead of the child adapter. Signed-off-by: Peter Rosin --- drivers/i2c/muxes/i2c-mux-pinctrl.c | 86 +

[PATCH v6 05/24] i2c: i2c-mux-pca9541: convert to use an explicit i2c mux core

2016-04-03 Thread Peter Rosin
From: Peter Rosin Allocate an explicit i2c mux core to handle parent and child adapters etc. Update the select/deselect ops to be in terms of the i2c mux core instead of the child adapter. Signed-off-by: Peter Rosin --- drivers/i2c/muxes/i2c-mux-pca9541.c | 55 -

[PATCH v6 11/24] [media] rtl2832: convert to use an explicit i2c mux core

2016-04-03 Thread Peter Rosin
From: Peter Rosin Allocate an explicit i2c mux core to handle parent and child adapters etc. Update the select/deselect ops to be in terms of the i2c mux core instead of the child adapter. Reviewed-by: Antti Palosaari Signed-off-by: Peter Rosin --- drivers/media/dvb-frontends/rtl2832.c |

[PATCH v6 09/24] [media] m88ds3103: convert to use an explicit i2c mux core

2016-04-03 Thread Peter Rosin
From: Peter Rosin Allocate an explicit i2c mux core to handle parent and child adapters etc. Update the select op to be in terms of the i2c mux core instead of the child adapter. Reviewed-by: Antti Palosaari Signed-off-by: Peter Rosin --- drivers/media/dvb-frontends/m88ds3103.c | 18

[PATCH v6 10/24] [media] rtl2830: convert to use an explicit i2c mux core

2016-04-03 Thread Peter Rosin
From: Peter Rosin Allocate an explicit i2c mux core to handle parent and child adapters etc. Update the select op to be in terms of the i2c mux core instead of the child adapter. Reviewed-by: Antti Palosaari Signed-off-by: Peter Rosin --- drivers/media/dvb-frontends/rtl2830.c | 17 ++

[PATCH v6 14/24] of/unittest: convert to use an explicit i2c mux core

2016-04-03 Thread Peter Rosin
From: Peter Rosin Allocate an explicit i2c mux core to handle parent and child adapters etc. Update the select op to be in terms of the i2c mux core instead of the child adapter. Signed-off-by: Peter Rosin --- drivers/of/unittest.c | 40 +++- 1 file changed,

[PATCH v6 13/24] [media] cx231xx: convert to use an explicit i2c mux core

2016-04-03 Thread Peter Rosin
From: Peter Rosin Allocate an explicit i2c mux core to handle parent and child adapters etc. Update the select op to be in terms of the i2c mux core instead of the child adapter. Signed-off-by: Peter Rosin --- drivers/media/usb/cx231xx/cx231xx-core.c | 6 ++-- drivers/media/usb/cx231xx/cx231x

[PATCH v6 12/24] [media] si2168: convert to use an explicit i2c mux core

2016-04-03 Thread Peter Rosin
From: Peter Rosin Allocate an explicit i2c mux core to handle parent and child adapters etc. Update the select/deselect ops to be in terms of the i2c mux core instead of the child adapter. Reviewed-by: Antti Palosaari Signed-off-by: Peter Rosin --- drivers/media/dvb-frontends/si2168.c |

[PATCH v6 08/24] iio: imu: inv_mpu6050: convert to use an explicit i2c mux core

2016-04-03 Thread Peter Rosin
From: Peter Rosin Allocate an explicit i2c mux core to handle parent and child adapters etc. Update the select/deselect ops to be in terms of the i2c mux core instead of the child adapter. Signed-off-by: Peter Rosin --- drivers/iio/imu/inv_mpu6050/inv_mpu_acpi.c | 2 +- drivers/iio/imu/inv_mp

[PATCH v6 19/24] i2c-mux: document i2c muxes and elaborate on parent-/mux-locked muxes

2016-04-03 Thread Peter Rosin
From: Peter Rosin Signed-off-by: Peter Rosin --- Documentation/i2c/i2c-topology | 370 + MAINTAINERS| 1 + 2 files changed, 371 insertions(+) create mode 100644 Documentation/i2c/i2c-topology diff --git a/Documentation/i2c/i2c-topo

[PATCH v6 18/24] i2c-mux: relax locking of the top i2c adapter during mux-locked muxing

2016-04-03 Thread Peter Rosin
From: Peter Rosin With a i2c topology like the following GPIO ---| -- BAT1 | v / I2C -+--+ MUX | \ EEPROM -- BAT2 there is a locking problem with the GPIO c

[PATCH v6 20/24] iio: imu: inv_mpu6050: change the i2c gate to be mux-locked

2016-04-03 Thread Peter Rosin
From: Peter Rosin The root i2c adapter lock is then no longer held by the i2c mux during accesses behind the i2c gate, and such accesses need to take that lock just like any other ordinary i2c accesses do. So, declare the i2c gate mux-locked, and zap the code that makes the unlocked i2c accesses

[PATCH v6 15/24] i2c-mux: drop old unused i2c-mux api

2016-04-03 Thread Peter Rosin
From: Peter Rosin All i2c mux users are using an explicit i2c mux core, drop support for implicit i2c mux cores. Signed-off-by: Peter Rosin --- drivers/i2c/i2c-mux.c | 59 - include/linux/i2c-mux.h | 15 - 2 files changed, 74 deleti

[PATCH v6 17/24] i2c: muxes always lock the parent adapter

2016-04-03 Thread Peter Rosin
From: Peter Rosin Instead of checking for i2c parent adapters for every lock/unlock, simply override the locking for muxes to always lock/unlock the parent adapter directly. Signed-off-by: Peter Rosin --- drivers/i2c/i2c-core.c | 21 +++-- drivers/i2c/i2c-mux.c | 27 ++

[PATCH v6 16/24] i2c: allow adapter drivers to override the adapter locking

2016-04-03 Thread Peter Rosin
From: Peter Rosin Add i2c_lock_bus() and i2c_unlock_bus(), which call the new lock_bus and unlock_bus ops in the adapter. These funcs/ops take an additional flags argument that indicates for what purpose the adapter is locked. There are two flags, I2C_LOCK_ADAPTER and I2C_LOCK_SEGMENT, but they

[PATCH v6 24/24] [media] rtl2832: regmap is aware of lockdep, drop local locking hack

2016-04-03 Thread Peter Rosin
From: Peter Rosin Reviewed-by: Antti Palosaari Signed-off-by: Peter Rosin --- drivers/media/dvb-frontends/rtl2832.c | 30 -- drivers/media/dvb-frontends/rtl2832_priv.h | 1 - 2 files changed, 31 deletions(-) diff --git a/drivers/media/dvb-frontends/rtl2832.c

[PATCH v6 21/24] [media] si2168: change the i2c gate to be mux-locked

2016-04-03 Thread Peter Rosin
From: Antti Palosaari The root i2c adapter lock is then no longer held by the i2c mux during accesses behind the i2c gate, and such accesses need to take that lock just like any other ordinary i2c accesses do. So, declare the i2c gate mux-locked, and zap the code that makes the i2c accesses unlo

[PATCH v6 22/24] [media] rtl2832: change the i2c gate to be mux-locked

2016-04-03 Thread Peter Rosin
From: Peter Rosin The root i2c adapter lock is then no longer held by the i2c mux during accesses behind the i2c gate, and such accesses need to take that lock just like any other ordinary i2c accesses do. So, declare the i2c gate mux-locked, and zap the regmap overrides that makes the i2c acces

[PATCH v6 23/24] [media] rtl2832_sdr: get rid of empty regmap wrappers

2016-04-03 Thread Peter Rosin
From: Peter Rosin Reviewed-by: Antti Palosaari Signed-off-by: Peter Rosin --- drivers/media/dvb-frontends/rtl2832_sdr.c | 302 +- 1 file changed, 132 insertions(+), 170 deletions(-) diff --git a/drivers/media/dvb-frontends/rtl2832_sdr.c b/drivers/media/dvb-fronten

Re: [PATCH] staging: iio: ad7606: use iio_device_{claim|release}_direct_mode()

2016-04-03 Thread Jonathan Cameron
On 01/04/16 17:53, Alison Schofield wrote: > Two instances are moved to the new claim/release API: > > In the first instance, the driver was using mlock followed by > iio_buffer_enabled(). Replace that code with the new API to guarantee > the device stays in direct mode. There is no change in driv

arch/mips/vdso/elf.S:1:0: error: '-march=r3900' requires '-mfp32'

2016-04-03 Thread kbuild test robot
Hi Alex, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: f7eeb8a87c033d126ff6b8c35405ba5dc4e55754 commit: ebb5e78cc63417a35254a791de66e1cc84f963cc MIPS: Initial implementation of a VDSO date: 5 months ago config:

Re: [PATCH 1/2] ti-adc081c: Add support for adc101c* and adc121c*

2016-04-03 Thread Jonathan Cameron
On 31/03/16 18:20, Crestez Dan Leonard wrote: > These chips has an almost identical interface but a deal with a > different number of value bits. Datasheet links for comparison: > > * http://www.ti.com/lit/ds/symlink/adc081c021.pdf > * http://www.ti.com/lit/ds/symlink/adc101c021.pdf > * http://

arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'

2016-04-03 Thread kbuild test robot
Hi Guenter, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: f7eeb8a87c033d126ff6b8c35405ba5dc4e55754 commit: 398c7500a1f5f74e207bd2edca1b1721b3cc1f1e MIPS: VDSO: Fix build error with binutils 2.24 and earlier date

[PATCH] ARM: pxa: remove platform dma code

2016-04-03 Thread Robert Jarzmik
As the last pxa related driver was converted to dmaengine, it's time to kill the legacy dma code, which is not used anymore. This finishes the pxa dmaengine transition. Signed-off-by: Robert Jarzmik --- arch/arm/mach-pxa/devices.h | 1 + arch/arm/mach-pxa/include/mach/dma.h | 1 -

Re: [PATCH 2/2] ti-adc081c: Initial triggered buffer support

2016-04-03 Thread Jonathan Cameron
On 01/04/16 09:34, Peter Meerwald-Stadler wrote: > >> Using this requires software triggers like CONFIG_IIO_HRTIMER_TRIGGER. >> >> The device can be configured to do internal periodic sampling but does >> not appear to offer some sort of interrupt on data ready. It only offers >> interrupts on val

Re: [PATCH] iio: max5487: Add support for Maxim digital potentiometers

2016-04-03 Thread Jonathan Cameron
On 01/04/16 09:28, Daniel Baluta wrote: >> .wipers and .max_pos need not be in max5487_cfg, they are common. >> .wipers isn't even used. Which means that if you like, you can >> use the ohms reading as the driver_data directly instead of going >> via the MAX548x enumeration, see below. Or is there

[PATCH] mailmap: Fix Krzysztof Kozlowski's misspelled name

2016-04-03 Thread Krzysztof Kozlowski
Patchwork introduced garbled polish character in commit 1e3012d0fdc5 ("crypto: s5p-sss - Use memcpy_toio for iomem annotated memory") so fix the mail mapping. Additionally prefer to use kernel.org account for personal work, instead of my gmail address. Signed-off-by: Krzysztof Kozlowski Cc: Herbe

[PATCH 2/8] char: rpmb: add sysfs-class ABI documentation

2016-04-03 Thread Tomas Winkler
Signed-off-by: Tomas Winkler --- Documentation/ABI/testing/sysfs-class-rpmb | 15 +++ MAINTAINERS| 1 + 2 files changed, 16 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-class-rpmb diff --git a/Documentation/ABI/testing/sysfs-class

[PATCH 7/8] mmc: block: register rpmb partition with the RPMB subsystem

2016-04-03 Thread Tomas Winkler
Register eMMC rpmb partition with the rpmb subsystem and provide implementation for the RPMB access operations abstracting actual multi step process. Signed-off-by: Tomas Winkler Signed-off-by: Alexander Usyskin --- drivers/mmc/card/block.c | 289 +++

[PATCH 0/8] Replay Protected Memory Block (RPMB) subsystem

2016-04-03 Thread Tomas Winkler
Few storage technology such is EMMC, UFS, and NVMe support RPMB hardware partition with common protocol and frame layout. The RPMB partition cannot be accessed via standard block layer, but by a set of specific commands: WRITE, READ, GET_WRITE_COUNTER, and PROGRAM_KEY. Such a partition provides aut

[PATCH 5/8] char: rpmb: add RPMB simulation device

2016-04-03 Thread Tomas Winkler
This is simple platform device for used for testing rpmb subystem. The module currently suppot two configuration options 1.max_wr_blks: for specifying max blocks that can be written in a single command and. 2. daunits: used to set storage capacity in 128K units. Signed-off-by: Tomas Winkler ---

[PATCH 4/8] char: rpmb: provide user space interface

2016-04-03 Thread Tomas Winkler
The user space API is achieved via single synchronous IOCTL. The request is submitted in_frames_ptr pointer and received in out_frames_ptr. Signed-off-by: Tomas Winkler --- Documentation/ioctl/ioctl-number.txt | 1 + MAINTAINERS | 1 + drivers/char/rpmb/Kconfig

[PATCH 8/8] scsi: ufs: connect to RPMB subsystem

2016-04-03 Thread Tomas Winkler
Register UFS RPMB LUN with the RPMB subsystem and provide implementation for the RPMB access operations. RPMB partition is accessed via a sequence of security protocol in and security protocol out commands with UFS specific parameters. This multi step process is abstracted into 4 basic RPMB command

[PATCH 6/8] tools rpmb: add RPBM access tool

2016-04-03 Thread Tomas Winkler
Add simple RPMB host testing tool. It can be used to program key, write and read data block, and retrieve write counter. Signed-off-by: Tomas Winkler --- MAINTAINERS | 1 + tools/Makefile| 16 +- tools/rpmb/.gitignore | 2 + tools/rpmb/Makefile | 32 ++ tools/rpmb/rpmb.

[PATCH 1/8] rpmb: add Replay Protected Memory Block (RPMB) subsystem

2016-04-03 Thread Tomas Winkler
Few storage technology such is EMMC, UFS, and NVMe support RPMB hardware partition with common protocol and frame layout. The RPMB partition cannot be accessed via standard block layer, but by a set of specific commands: WRITE, READ, GET_WRITE_COUNTER, and PROGRAM_KEY. Such a partition provides aut

[PATCH 3/8] char: rpmb: add device attributes

2016-04-03 Thread Tomas Winkler
Add attribute type that displays underlay storage type technology EMMC, UFS, and attribute id, that displays underlay storage device id. For EMMC this would be content of CID and for UFS serial number from the device descriptor Signed-off-by: Tomas Winkler --- Documentation/ABI/testing/sysfs-cla

Re: [PATCH] x86: Add a turbo mode sysctl

2016-04-03 Thread Thomas Gleixner
On Sat, 2 Apr 2016, Andy Lutomirski wrote: > On Fri, Apr 1, 2016 at 9:10 AM, Thomas Gleixner wrote: > >> + if (turbo_mode) > >> + write_cr0(cr0 & ~X86_CR0_CD); > >> + else > >> + write_cr0(cr0 | X86_CR0_CD); > > > > I think proper turbo mode disable requires ~(X86_C

Re: [PATCH] iio: st_magn: always define ST_MAGN_TRIGGER_SET_STATE

2016-04-03 Thread Jonathan Cameron
On 30/03/16 07:33, Denis Ciocca wrote: > Hi Arnd, > > yup, my fault. Thanks. > > Acked-by: Denis Ciocca Applied to my fixes-togreg-post-rc1 branch and marked for stable. Thanks, Jonathan > > > On |29 Mar 16 @ 22:27|, Arnd Bergmann wrote: >> When CONFIG_IIO_TRIGGER is enabled but CONFIG_IIO_B

Re: [PATCH] ARM: dts: kirkwood: Add DTS for Linksys EA4200v2/EA4500

2016-04-03 Thread Imre Kaloz
On Sat, 02 Apr 2016 14:55:52 +0200, Bert Vermeulen wrote: This platform is based on a Marvell 88E6282 SoC and 88E6171 switch. The DSA port labels follow the switchdev convention. Signed-off-by: Bert Vermeulen --- /dev/null +++ b/arch/arm/boot/dts/kirkwood-candyhouse.dts Candyhouse is

Re: [RFC patch 4/7] futex: Add support for attached futexes

2016-04-03 Thread Thomas Gleixner
On Sat, 2 Apr 2016, Andy Lutomirski wrote: > On 04/02/2016 04:09 AM, Thomas Gleixner wrote: > [omitted due to some Thunderbird bug, sigh] > > What happens if you mix attached an non-attached ops on the same futex? Not much. You might get an error code, sleep forever or the call will just result

Re: [RFC patch 4/7] futex: Add support for attached futexes

2016-04-03 Thread Thomas Gleixner
On Sat, 2 Apr 2016, Peter Zijlstra wrote: > On Sat, Apr 02, 2016 at 11:09:18AM -, Thomas Gleixner wrote: > > + /* > > +* Lock the global hash bucket. Decrement global state refcount. If 0 > > +* remove it from the global hash and free it. > > +*/ > > + spin_lock(&hb->lock); > >

Re: [PATCH v4] hp206c: Initial support for reading sensor values

2016-04-03 Thread Jonathan Cameron
On 29/03/16 17:14, Crestez Dan Leonard wrote: > Signed-off-by: Crestez Dan Leonard > --- > > Previous version had an extra printk on pressure read, please ignore. Also > patch update notes were above the ---. As a general process point, it is useful to have the complete history here rather than j

Re: [RFC patch 4/7] futex: Add support for attached futexes

2016-04-03 Thread Thomas Gleixner
On Sun, 3 Apr 2016, Rasmus Villemoes wrote: > On Sat, Apr 02 2016, Thomas Gleixner wrote: > > > The standard futex mechanism in the Linux kernel uses a global hash to store > > transient state. Collisions on that hash can lead to performance degradation > > and on real-time enabled kernels even t

Re: [RFC patch 7/7] [PATCH] glibc: nptl: Add support for attached pthread_mutexes

2016-04-03 Thread Thomas Gleixner
On Sat, 2 Apr 2016, Peter Zijlstra wrote: > On Sat, Apr 02, 2016 at 11:09:20AM -, Thomas Gleixner wrote: > > To undo the attachment each involved thread needs to call > > > > pthread_mutex_detach_np(&mutex); > > > > When the last user detaches the kernel state is destroyed. > > S

Re: [PATCH] x86: Add a turbo mode sysctl

2016-04-03 Thread Borislav Petkov
On Sun, Apr 03, 2016 at 11:55:34AM +0200, Thomas Gleixner wrote: > While at it can you please make a turbo = 0 call when we hit a WARN/BUG/Panic > so the messages spill slower over the screen? Good idea! -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply.

Re: [PATCH v5] iio: potentiometer: add driver for Microchip MCP413X/414X/415X/416X/423X/424X/425X/426X

2016-04-03 Thread Jonathan Cameron
On 28/03/16 19:17, Joachim Eastwood wrote: > On 28 March 2016 at 16:58, Jonathan Cameron wrote: >> On 23/03/16 08:57, Slawomir Stepien wrote: >>> The following functionalities are supported: >>> - write, read from volatile memory >>> >>> Datasheet: http://ww1.microchip.com/downloads/en/DeviceDoc/

Re: [PATCH v2 1/1] iio: gyro: bmg160: fix endianness when reading axes

2016-04-03 Thread Jonathan Cameron
On 29/03/16 13:37, Irina Tirdea wrote: > For big endian platforms, reading the axes will return > invalid values. > > The device stores each axis value in a 16 bit little > endian register. The driver uses regmap_read_bulk to get > the axis value, resulting in a 16 bit little endian value. > This

Re: [PATCH v2 1/1] iio: accel: bmc150: fix endianness when reading axes

2016-04-03 Thread Jonathan Cameron
On 29/03/16 13:35, Irina Tirdea wrote: > For big endian platforms, reading the axes will return > invalid values. > > The device stores each axis value in a 16 bit little > endian register. The driver uses regmap_read_bulk to get > the axis value, resulting in a 16 bit little endian value. > This

Re: [PATCH 1/1] iio: gyro: bmg160: fix buffer read values

2016-04-03 Thread Jonathan Cameron
On 28/03/16 18:15, Irina Tirdea wrote: > When reading gyroscope axes using iio buffers, the values > returned are always 0. In the interrupt handler, the return > value of the read operation is returned to the user instead > of the value read. Return the value read to the user. > > This is also fi

Re: [PATCH v3 1/1] iio: accel: bmc150: use common definition for regmap conf

2016-04-03 Thread Jonathan Cameron
On 29/03/16 13:21, Irina Tirdea wrote: > bmc150_i2c_regmap_conf is defined three times (in bmc150-accel-core.c, > bmc150-accel-i2c.c and and bmc150-accel-spi.c), although the > definition is the same. > > Use one common definition for bmc150_i2c_regmap_conf in all > included files. > > Signed-off

[PATCH] char: rpmb: fix memdup_user.cocci warnings

2016-04-03 Thread kbuild test robot
drivers/char/rpmb/cdev.c:94:13-20: WARNING opportunity for memdup_user Use memdup_user rather than duplicating its implementation This is a little bit restricted to reduce false positives Generated by: scripts/coccinelle/api/memdup_user.cocci CC: Tomas Winkler Signed-off-by: Fengguang Wu ---

Re: [PATCH 4/8] char: rpmb: provide user space interface

2016-04-03 Thread kbuild test robot
-Protected-Memory-Block-RPMB-subsystem/20160403-174929 coccinelle warnings: (new ones prefixed by >>) >> drivers/char/rpmb/cdev.c:94:13-20: WARNING opportunity for memdup_user Please review and possibly fold the followup patch. --- 0-DAY kernel test infrastructure

Re: [PATCH v3 2/6] iio: pulse: add TI ECAP driver

2016-04-03 Thread Jonathan Cameron
On 28/03/16 16:30, Jonathan Cameron wrote: > On 05/02/14 19:01, Matt Porter wrote: >> Adds support for capturing PWM signals using the TI ECAP peripheral. >> This driver supports triggered buffer capture of pulses on multiple >> ECAP instances. In addition, the driver supports configurable polarity

Re: [RFC PATCH 0/4] cgroup aware workqueues

2016-04-03 Thread Michael Rapoport
Hi Bandan, > Bandan Das wrote on 03/31/2016 09:45:43 PM: > > > >> > > opportunity for optimization, at least for some workloads... > >> > > >> > What sort of optimizations are we talking about? > >> > >> Well, if we take Evlis (1) as for the theoretical base, there could be > >> benefit of d

Re: [RFC PATCH 0/4] cgroup aware workqueues

2016-04-03 Thread Michael Rapoport
Hi Tejun, > Tejun Heo wrote on 03/31/2016 08:14:35 PM: > > Hello, Michael. > > On Thu, Mar 31, 2016 at 08:17:13AM +0200, Michael Rapoport wrote: > > > There really shouldn't be any difference when using unbound > > > workqueues. workqueue becomes a convenience thing which manages > > > worker

[GIT PULL] core kernel fixes

2016-04-03 Thread Ingo Molnar
Linus, Please pull the latest core-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git core-urgent-for-linus # HEAD: 353def94606fda16d9ae1761b4b0583286481ec5 MAINTAINERS: Update my email address This contains the nohz/atomic cleanup/fix for the fetc

[PATCH] char: rpmb: fix platform_no_drv_owner.cocci warnings

2016-04-03 Thread kbuild test robot
drivers/char/rpmb/rpmb_sim.c:548:3-8: No need to set .owner here. The core will do it. Remove .owner field if calls are used which set it automatically Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci CC: Tomas Winkler Signed-off-by: Fengguang Wu --- rpmb_sim.c |1 - 1

Re: [PATCH 5/8] char: rpmb: add RPMB simulation device

2016-04-03 Thread kbuild test robot
-Protected-Memory-Block-RPMB-subsystem/20160403-174929 coccinelle warnings: (new ones prefixed by >>) >> drivers/char/rpmb/rpmb_sim.c:548:3-8: No need to set .owner here. The core >> will do it. Please review and possibly fold the followup patch. --- 0-DAY kernel t

Re: [PATCH v6 08/24] iio: imu: inv_mpu6050: convert to use an explicit i2c mux core

2016-04-03 Thread Jonathan Cameron
On 03/04/16 09:52, Peter Rosin wrote: > From: Peter Rosin > > Allocate an explicit i2c mux core to handle parent and child adapters > etc. Update the select/deselect ops to be in terms of the i2c mux core > instead of the child adapter. > > Signed-off-by: Peter Rosin I'm mostly fine with this (

Re: [PATCH v6 20/24] iio: imu: inv_mpu6050: change the i2c gate to be mux-locked

2016-04-03 Thread Jonathan Cameron
On 03/04/16 09:52, Peter Rosin wrote: > From: Peter Rosin > > The root i2c adapter lock is then no longer held by the i2c mux during > accesses behind the i2c gate, and such accesses need to take that lock > just like any other ordinary i2c accesses do. > > So, declare the i2c gate mux-locked, a

[PATCH] PCI: xilinx-nwl: Fix spelling mistake "Initialization"

2016-04-03 Thread Colin King
From: Colin Ian King Minor fix, spelling mistake "Initalization" should be "Initialization". Signed-off-by: Colin Ian King --- drivers/pci/host/pcie-xilinx-nwl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/host/pcie-xilinx-nwl.c b/drivers/pci/host/pcie-xili

[GIT PULL] perf fixes

2016-04-03 Thread Ingo Molnar
Linus, Please pull the latest perf-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf-urgent-for-linus # HEAD: 85dc600263c2291cea33bffa90038808ee64198b perf/x86/amd/ibs: Fix pmu::stop() nesting Misc kernel side fixes: - fix event leak - fi

drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c:2106:1: warning: the frame size of 1112 bytes is larger than 1024 bytes

2016-04-03 Thread kbuild test robot
Hi Arnd, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: f7eeb8a87c033d126ff6b8c35405ba5dc4e55754 commit: b33c8ff4431a343561e2319f17c14286f2aa52e2 tracing: Fix freak link error caused by branch tracer date: 7 week

Re: [PATCH v6 19/24] i2c-mux: document i2c muxes and elaborate on parent-/mux-locked muxes

2016-04-03 Thread Jonathan Cameron
On 03/04/16 09:52, Peter Rosin wrote: > From: Peter Rosin > > Signed-off-by: Peter Rosin Very nice, one typo that I could see. > --- > Documentation/i2c/i2c-topology | 370 > + > MAINTAINERS| 1 + > 2 files changed, 371 insertions(

Re: [RFC patch 4/7] futex: Add support for attached futexes

2016-04-03 Thread Ingo Molnar
* Thomas Gleixner wrote: > The standard futex mechanism in the Linux kernel uses a global hash to store > transient state. Collisions on that hash can lead to performance degradation > and on real-time enabled kernels even to priority inversions. > > To guarantee futexes without collisions on t

Re: [PATCH] regulator: pwm: Try to avoid voltage error in duty cycle calculation

2016-04-03 Thread Laxman Dewangan
On Saturday 02 April 2016 10:23 PM, Mark Brown wrote: * PGP Signed by an unknown key On Fri, Apr 01, 2016 at 12:02:19PM +0530, Laxman Dewangan wrote: On Friday 01 April 2016 11:55 AM, kbuild test robot wrote: pwm-regulator.c:(.text+0x1728d4): undefined reference to `__umoddi3' pwm-regulator.c

Re: [RFC patch 4/7] futex: Add support for attached futexes

2016-04-03 Thread Linus Torvalds
On Sun, Apr 3, 2016 at 6:16 AM, Ingo Molnar wrote: > > So an ABI distinction and offloading the decision to every single application > that > wants to use it and hardcode it into actual application source code via an > ABI is > pretty much the _WORST_ way to go about it IMHO... > > So how about

Re: [PATCH v6 08/24] iio: imu: inv_mpu6050: convert to use an explicit i2c mux core

2016-04-03 Thread Peter Rosin
On 2016-04-03 12:51, Jonathan Cameron wrote: > On 03/04/16 09:52, Peter Rosin wrote: >> From: Peter Rosin >> >> Allocate an explicit i2c mux core to handle parent and child adapters >> etc. Update the select/deselect ops to be in terms of the i2c mux core >> instead of the child adapter. >> >> Sig

Re: [bisect] Merge tag 'mmc-v4.6' of git://git.linaro.org/people/ulf.hansson/mmc (was [GIT PULL] MMC for v.4.6)

2016-04-03 Thread Linus Torvalds
On Sat, Apr 2, 2016 at 9:56 PM, Peter Hurley wrote: > > Note how mmc1 => mmcblk0 and mmc0 => mmcblk1. > > This produces a failure to boot as the wrong partition is mounted as > root (/dev/mmcblk0p2 is now on the wrong mmc). It *looks* very much like somebody is doing asynchronous probing of the b

Re: [PATCH v2] firmware: qemu_fw_cfg.c: hold ACPI global lock during device access

2016-04-03 Thread Michael S. Tsirkin
On Tue, Mar 08, 2016 at 01:30:50PM -0500, Gabriel Somlo wrote: > Allowing for the future possibility of implementing AML-based > (i.e., firmware-triggered) access to the QEMU fw_cfg device, > acquire the global ACPI lock when accessing the device on behalf > of the guest-side sysfs driver, to preve

[PATCH 2/3] MIPS: BMIPS: improve BCM6358 device tree

2016-04-03 Thread Álvaro Fernández Rojas
- Switch to bcm6345-l1-intc interrupt controller. - Add ehci0 and ohci0 nodes. - Use proper native-endian syscon property. Signed-off-by: Álvaro Fernández Rojas --- arch/mips/boot/dts/brcm/bcm6358.dtsi | 29 - 1 file changed, 24 insertions(+), 5 deletions(-) diff --g

[PATCH 1/3] MIPS: BMIPS: improve BCM6328 device tree

2016-04-03 Thread Álvaro Fernández Rojas
- Remove unneeded leds0 alias. - Switch to bcm6345-l1-intc interrupt controller. - Use interrupt-controller instead of periph_intc. - Add uart1, ehci0 and ohci0 nodes. - Refactor syscon and syscon-reboot. Signed-off-by: Álvaro Fernández Rojas --- arch/mips/boot/dts/brcm/bcm6328.dtsi | 44 +++

[PATCH 3/3] MIPS: BMIPS: improve BCM6368 device tree

2016-04-03 Thread Álvaro Fernández Rojas
- Remove unneeded leds0 alias. - Switch to bcm6345-l1-intc interrupt controller. - Use interrupt-controller instead of periph_intc. - Add uart1 node. Signed-off-by: Álvaro Fernández Rojas --- arch/mips/boot/dts/brcm/bcm6368.dtsi | 21 +++-- 1 file changed, 15 insertions(+), 6 del

[PATCH] hwrng: bcm63xx - fix device tree compilation

2016-04-03 Thread Álvaro Fernández Rojas
Adds missing include that resulted in implicit device tree functions errors. Fixes: 7b651706712b ("hwrng: bcm63xx - add device tree support") Signed-off-by: Álvaro Fernández Rojas --- drivers/char/hw_random/bcm63xx-rng.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/char/hw_random/

Re: [PATCH 2/2] ARM: at91: pm: switch to the PIE infrastructure

2016-04-03 Thread kbuild test robot
-Independent-Executables/20160403-152807 base: http://repo.or.cz/linux-2.6/linux-2.6-arm.git for-next config: arm-allmodconfig (attached as .config) reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin

[PATCH] qemu_fw_cfg: don't leak kobj on init error

2016-04-03 Thread Michael S. Tsirkin
If platform_driver_register fails, we should cleanup fw_cfg_top_ko before exiting. Signed-off-by: Michael S. Tsirkin --- drivers/firmware/qemu_fw_cfg.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/firmware/qemu_fw_cfg.c b/drivers/firmware/qemu_fw_cfg.c index

[PATCH] virtio: virtio 1.0 cs04 spec compliance for reset

2016-04-03 Thread Michael S. Tsirkin
The spec says: after writing 0 to device_status, the driver MUST wait for a read of device_status to return 0 before reinitializing the device. Cc: sta...@vger.kernel.org Signed-off-by: Michael S. Tsirkin --- drivers/virtio/virtio_pci_modern.c | 11 --- 1 file changed, 8 insertions(+), 3

arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3000' requires '-mfp32'

2016-04-03 Thread kbuild test robot
Hi Guenter, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 4c3b73c6a2eea0cf27fb058086a0eb94e90bffd4 commit: 398c7500a1f5f74e207bd2edca1b1721b3cc1f1e MIPS: VDSO: Fix build error with binutils 2.24 and earlier date

mipsel-linux-gnu-gcc: error: unrecognized command line option '-mcompact-branches=optimal'

2016-04-03 Thread kbuild test robot
Hi Paul, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 4c3b73c6a2eea0cf27fb058086a0eb94e90bffd4 commit: c1a0e9bc885d46e519fd87d35af6a7937abfb986 MIPS: Allow compact branch policy to be changed date: 5 months ago

Re: [RFC patch 4/7] futex: Add support for attached futexes

2016-04-03 Thread Andy Lutomirski
On Sun, Apr 3, 2016 at 2:57 AM, Thomas Gleixner wrote: > On Sat, 2 Apr 2016, Andy Lutomirski wrote: > >> On 04/02/2016 04:09 AM, Thomas Gleixner wrote: >> [omitted due to some Thunderbird bug, sigh] >> >> What happens if you mix attached an non-attached ops on the same futex? > > Not much. You mig

Re: [PATCH v5 4/9] x86/traps: Enable all exception handler callbacks early

2016-04-03 Thread Andy Lutomirski
On Sun, Apr 3, 2016 at 1:07 AM, Borislav Petkov wrote: > On Sat, Apr 02, 2016 at 10:52:48PM +0200, Borislav Petkov wrote: >> On Sat, Apr 02, 2016 at 01:16:07PM -0700, Andy Lutomirski wrote: >> > I have no idea why it was explicitly unsupported, but I'm guessing it >> > was just to avoid duplicatin

  1   2   3   >