[PATCH v4 2/3] locking/mutex: Enable optimistic spinning of woken task in wait queue

2016-07-18 Thread Waiman Long
Ding Tianhong reported a live-lock situation where a constant stream of incoming optimistic spinners blocked a task in the wait list from getting the mutex. This patch attempts to fix this live-lock condition by enabling the woken task in the wait queue to enter into an optimistic spinning loop it

Re: [RFC][PATCH 1/2 v3] proc: Relax /proc//timerslack_ns capability requirements

2016-07-18 Thread Kees Cook
On Mon, Jul 18, 2016 at 1:11 PM, John Stultz wrote: > When an interface to allow a task to change another tasks > timerslack was first proposed, it was suggested that something > greater then CAP_SYS_NICE would be needed, as a task could be > delayed further then what normally could be done with n

Re: [RFC][PATCH 2/2 v3] security: Add task_settimerslack/task_gettimerslack LSM hook

2016-07-18 Thread Kees Cook
On Mon, Jul 18, 2016 at 1:11 PM, John Stultz wrote: > As requested, this patch implements a task_settimerslack and > task_gettimerslack LSM hooks so that the /proc//timerslack_ns > interface can have finer grained security policies applied to it. > > I've kept the CAP_SYS_NICE check in the timersl

Re: [PATCH v8 2/4] i2c-smbus: add SMBus Host Notify support

2016-07-18 Thread Jean Delvare
On Mon, 18 Jul 2016 18:35:19 +0200, Benjamin Tissoires wrote: > On Jul 18 2016 or thereabouts, Jean Delvare wrote: > > But what happens on i2c_adapter removal? What prevents the following > > sequence from happening? > > > > 1* A Host Notify event happens. > > 2* The event is handled and queued by

Re: [PATCH v3 0/3] locking/mutex: Enable optimistic spinning of lock waiter

2016-07-18 Thread Waiman Long
On 07/18/2016 01:59 PM, Jason Low wrote: On Tue, 2016-03-22 at 13:46 -0400, Waiman Long wrote: v2->v3: - Remove patch 4 as it is not useful. - Allow need_resched() check for waiter& add more comments about changes to address issues raised by PeterZ. v1->v2: - Set task state to runnin

Re: [PATCH] arm64: dts: rockchip: add spiX aliases for rk3399

2016-07-18 Thread Heiko Stübner
Am Donnerstag, 14. Juli 2016, 18:24:33 schrieb Brian Norris: > It's nicer to see this: > > # ls -l /sys/bus/spi/devices/ > total 0 > lrwxrwxrwx 1 root root 0 Dec 31 1969 spi0.0 -> > ../../../devices/platform/ff1c.spi/spi_master/spi0/spi0.0 lrwxrwxrwx 1 > root root 0 Dec 31 1969 s

Re: [PATCH] arm64: dts: rockchip: remove broken-cd from sdio0

2016-07-18 Thread Heiko Stübner
Am Freitag, 15. Juli 2016, 09:10:05 schrieb Shawn Lin: > commit 1ade61c141e2 ("arm64: dts: rockchip: remove broken-cd > from emmc and sdio") was intended to remove the abuse of > broken-cd property from mmc. But somehow it forgot to remove > this property from sdio0 node. Let's remove it now. > >

Re: [RFC PATCH 00/30] Kernel NET policy

2016-07-18 Thread Daniel Borkmann
On 07/18/2016 08:30 PM, Liang, Kan wrote: On 07/18/2016 08:55 AM, kan.li...@intel.com wrote: [...] On a higher level picture, why for example, a new cgroup in combination with tc shouldn't be the ones resolving these policies on resource usage? The NET policy doesn't support cgroup yet, but i

Re: System freezes after OOM

2016-07-18 Thread David Rientjes
On Mon, 18 Jul 2016, Michal Hocko wrote: > > There's > > two fundamental ways to go about it: (1) ensure mempool_alloc() can make > > forward progress (whether that's by way of gfp flags or access to memory > > reserves, which may depend on the process context such as PF_MEMALLOC) or > > (2) r

[PATCH v8 05/10] Input: atmel_mxt_ts - read touchscreen size

2016-07-18 Thread Nick Dyer
The touchscreen may have a margin where not all the matrix is used. Read the parameters from T9 and T100 and take account of the difference. Note: this does not read the XORIGIN/YORIGIN fields so it assumes that the touchscreen starts at (0,0) Signed-off-by: Nick Dyer --- drivers/input/touchscr

[PATCH v8 04/10] Input: atmel_mxt_ts - output diagnostic debug via V4L2 device

2016-07-18 Thread Nick Dyer
Register a video device to output T37 diagnostic data. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/Kconfig|6 +- drivers/input/touchscreen/atmel_mxt_ts.c | 245 ++ 2 files changed, 249 insertions(+), 2 deletions(-) diff --git a/drivers/input/t

[PATCH v8 09/10] Input: synaptics-rmi4 - add support for F54 diagnostics

2016-07-18 Thread Nick Dyer
Function 54 implements access to various RMI4 diagnostic features. This patch adds support for retrieving this data. It registers a V4L2 device to output the data to user space. Signed-off-by: Nick Dyer Tested-by: Andrew Duggan Tested-by: Chris Healy --- drivers/input/rmi4/Kconfig | 11

[PATCH v8 06/10] Input: atmel_mxt_ts - handle diagnostic data orientation

2016-07-18 Thread Nick Dyer
Invert the diagnostic data to match the orientation of the input device. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 26 +- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/inp

[PATCH v8 01/10] Input: atmel_mxt_ts - update MAINTAINERS email address

2016-07-18 Thread Nick Dyer
I'm leaving ITDev, so change to my personal email. My understanding is that someone at Atmel will take this on once their takeover by Microchip has settled down. Signed-off-by: Nick Dyer --- MAINTAINERS |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MAINTAINERS b/MA

[PATCH v8 03/10] Input: atmel_mxt_ts - add support for T37 diagnostic data

2016-07-18 Thread Nick Dyer
Atmel maXTouch devices have a T37 object which can be used to read raw touch deltas from the device. This consists of an array of 16-bit integers, one for each node on the touchscreen matrix. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/Kconfig|6 ++ drivers/input/touchscre

[PATCH v8 07/10] Input: atmel_mxt_ts - add diagnostic data support for mXT1386

2016-07-18 Thread Nick Dyer
The mXT1386 family of chips have a different architecture which splits the diagnostic data into 3 columns. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 31 +++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/drivers/input/tou

[PATCH v8 10/10] Input: sur40 - use new V4L2 touch input type

2016-07-18 Thread Nick Dyer
Support both V4L2_TCH_FMT_TU08 and V4L2_PIX_FMT_GREY for backwards compatibility. Note: I have not tested these changes (I have no access to the hardware) so not signing off. --- drivers/input/touchscreen/sur40.c | 122 +++-- 1 file changed, 89 insertions(+), 33 d

[PATCH v8 08/10] Input: atmel_mxt_ts - add support for reference data

2016-07-18 Thread Nick Dyer
There are different datatypes available from a maXTouch chip. Add support to retrieve reference data as well. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 57 ++ 1 file changed, 51 insertions(+), 6 deletions(-) diff --git a/drivers/input/

[PATCH v8 0/10] Output raw touch data via V4L2

2016-07-18 Thread Nick Dyer
This is a series of patches to add output of raw touch diagnostic data via V4L2 to the Atmel maXTouch and Synaptics RMI4 drivers. It's a rewrite of the previous implementation which output via debugfs: it now uses a V4L2 device in a similar way to the sur40 driver. We have a utility which can rea

[PATCH] Documentation: add support for V4L touch devices

2016-07-18 Thread y
From: Nick Dyer Signed-off-by: Nick Dyer --- Documentation/media/uapi/mediactl/media-types.rst | 24 +++-- Documentation/media/uapi/v4l/dev-touch.rst| 55 ++ Documentation/media/uapi/v4l/devices.rst |1 + Documentation/media/uapi/v4l/pixfmt-tch-td08.rst | 80

[PATCH v8 02/10] v4l2-core: Add support for touch devices

2016-07-18 Thread Nick Dyer
Some touch controllers send out touch data in a similar way to a greyscale frame grabber. Add new device type VFL_TYPE_TOUCH: - This uses a new device prefix v4l-touch for these devices, to stop generic capture software from treating them as webcams. Otherwise, touch is treated similarly to vi

[PATCH] v4l2-compliance: Changes to support touch sensors

2016-07-18 Thread Nick Dyer
Signed-off-by: Nick Dyer --- utils/v4l2-compliance/v4l2-compliance.cpp| 51 +- utils/v4l2-compliance/v4l2-compliance.h |1 + utils/v4l2-compliance/v4l2-test-input-output.cpp |4 +- 3 files changed, 53 insertions(+), 3 deletions(-) diff --git a/utils

Re: [PATCH V9 4/9] vfio: platform: add support for ACPI probe

2016-07-18 Thread Sinan Kaya
On 7/18/2016 1:32 PM, Alex Williamson wrote: > The implementation looks pretty fixed, it seems like a lot would break > if that were changed, so the callers of the function would need to be > updated, including this one. The ternary below is already paranoid > enough to handle an API change, but i

Re: [PATCH 03/10] of: irq: make of_msi_configure accessible from modules

2016-07-18 Thread Rob Herring
On Mon, Jul 18, 2016 at 1:39 PM, Sinan Kaya wrote: > The of_msi_configure routine is only accessible by the built-in > kernel drivers. Export this function so that modules can use it > too. > > This function is useful for configuring MSI on child device tree > nodes on hierarchical objects. > > Si

Re: [PATCH v2] config: Add android config fragments

2016-07-18 Thread Rob Herring
On Thu, Jun 23, 2016 at 1:57 PM, Rob Herring wrote: > Copy the config fragments from the AOSP common kernel android-4.4 > branch. It is becoming possible to run mainline kernels with Android, > but the kernel defconfigs don't work as-is and debugging missing config > options is a pain. Adding the

Re: [PATCH v2 net-next v2 12/12] net: dsa: mv88e6xxx: add support for DSA ageing time

2016-07-18 Thread Andrew Lunn
> OK. I think caching per-port (and thus per-bridge) ageing time would do > the trick and keep DSA drivers simple. What about the following patch? Hi Vivien This looks good. I would suggest you do some testing with a printk, and force some topology changes, just to make sure it works how we think

Re: [PATCH v2 2/3] hwmon: xgene: Add hwmon driver

2016-07-18 Thread Hoan Tran
Hi Guenter, On Sat, Jul 16, 2016 at 9:35 AM, Guenter Roeck wrote: > On 07/11/2016 05:30 PM, Hoan Tran wrote: >> >> This patch adds hardware temperature and power reading support for >> APM X-Gene SoC using the mailbox communication interface. >> >> Signed-off-by: Hoan Tran >> --- >> Documentat

Re: [PATCH] tools lib bpf: Use official ELF e_machine value

2016-07-18 Thread Alexei Starovoitov
On Mon, Jul 18, 2016 at 06:01:08AM +, Wang Nan wrote: > New LLVM will issue newly assigned EM_BPF machine code. The new code > will be propogated to glibc and libelf. > > This patch introduces the new machine code to libbpf. > > Signed-off-by: Wang Nan > Cc: Alexei Starovoitov > Cc: Arnaldo

Re: [PATCH 2/2] watchdog: ziirave_wdt: Add support to upload the firmware.

2016-07-18 Thread Martyn Welch
Few comments inline On 17/06/16 11:52, Enric Balletbo i Serra wrote: This patch adds and entry to the sysfs to start firmware upload process on the specified device with the requested firmware. The uploading of the firmware needs only to happen once per firmware upgrade, as the firmware is stor

Re: [PATCH 2/2] of: fdt: mark unflattened tree as detached

2016-07-18 Thread Rob Herring
On Sun, Jun 26, 2016 at 3:11 PM, Michal Suchanek wrote: > The tree returned from of_fdt_unflatten_tree cannot be attached to the > live tree because it is not marked as detached so mark it as such. The > dt resolver checks the flag and refuses to process the tree otherwise. > > Signed-off-by: Mich

[PATCH] x86/vdso: Error out if the vDSO isn't a valid DSO

2016-07-18 Thread Andy Lutomirski
Some distros has been playing with toolchain changes that can affect the type of ELF objects built. Occasionally, this goes wrong and the vDSO ends up not being a DSO at all. This causes the kernel to end up broken in a surprisingly subtle way -- glibc apparently silently ignores a vDSO that isn'

Re: [PATCH 1/2] of: overlay: add resolver error prints

2016-07-18 Thread Rob Herring
On Sun, Jun 26, 2016 at 3:11 PM, Michal Suchanek wrote: > Applying overlay fails silently in case of an error. Add error prints. > Most notably the lack of symbols in the live tree is not reported. > > Signed-off-by: Michal Suchanek > --- > drivers/of/resolver.c | 6 ++ > 1 file changed, 6 i

Re: [RFC PATCH 00/30] Kernel NET policy

2016-07-18 Thread Hannes Frederic Sowa
Hello, On Mon, Jul 18, 2016, at 21:43, Andi Kleen wrote: > > I wonder if this can be attacked from a different angle. What would be > > missing to add support for this in user space? The first possibility > > that came to my mind is to just multiplex those hints in the kernel. > > "just" is the h

Re: [PATCH] timekeeping: Fix memory overwrite of sleep_time_bin array

2016-07-18 Thread Rafael J. Wysocki
On Monday, July 18, 2016 09:42:19 AM Chen Yu wrote: > It is reported the hibernation fails at 2nd attempt, which > hangs at hibernate() -> syscore_resume() -> i8237A_resume() > -> claim_dma_lock(), because the lock has already been taken. > However there is actually no other process would like to g

Re: [PATCH 1/2] net: ethernet: marvell: pxa168_eth: use phydev from struct net_device

2016-07-18 Thread Philippe Reynes
Hi, On 18/07/16 12:14, Sergei Shtylyov wrote: Hello. On 7/18/2016 12:30 AM, Philippe Reynes wrote: 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

[PATCH] of: fdt: mark unflattened tree as detached

2016-07-18 Thread Michal Suchanek
The tree returned from of_fdt_unflatten_tree cannot be attached to the live tree because it is not marked as detached so mark it as such. The dt resolver checks the flag and refuses to process the tree otherwise. Signed-off-by: Michal Suchanek --- - rebase on top of 4.7rc --- drivers/of/fdt.c |

Re: [PATCH 2/2] net: ethernet: marvell: pxa168_eth: use phy_ethtool_{get|set}_link_ksettings

2016-07-18 Thread Florian Fainelli
On 07/17/2016 02:30 PM, Philippe Reynes wrote: > 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 > --- > - cmd.phy_address = pep->phy_addr; > - cmd.speed = pep->

Re: [PATCH v13 00/12] support "task_isolation" mode

2016-07-18 Thread Andy Lutomirski
On Thu, Jul 14, 2016 at 2:22 PM, Chris Metcalf wrote: > On 7/14/2016 5:03 PM, Andy Lutomirski wrote: >> >> On Thu, Jul 14, 2016 at 1:48 PM, Chris Metcalf >> wrote: >>> >>> Here is a respin of the task-isolation patch set. This primarily >>> reflects feedback from Frederic and Peter Z. >> >> I st

Re: [patch] crypto: sha256-mb - cleanup a || vs | typo

2016-07-18 Thread Tim Chen
On Mon, 2016-07-18 at 10:59 +0200, Pavel Machek wrote: > On Fri 2016-07-08 10:19:26, Linus Torvalds wrote: > > > > [ rare comment rant. I think I'll do this once, and then ignore the > > discussion ] > > > > On Fri, Jul 8, 2016 at 9:45 AM, Herbert Xu > > wrote: > > > > > > > > > Nack.  As I

[PATCH v2] pwm: Create device class for pwm channels

2016-07-18 Thread 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 pwmchipM:N Signed-off-by: Dav

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

2016-07-18 Thread Paul Gortmaker
On Mon, Jul 18, 2016 at 4:27 PM, Tomas Winkler wrote: > The user space API is achieved via two synchronous IOCTL. > Simplified one, RPMB_IOC_REQ_CMD, were read result cycles is performed > by the framework on behalf the user and second, RPMB_IOC_SEQ_CMD where > the whole RPMB sequence including RE

Re: [PATCH 1/1] iio: vcnl4000: Add IR current adjust support

2016-07-18 Thread Peter Meerwald-Stadler
> Signed-off-by: Pratik Prajapati comments below; nice addition it seems this patch clashes with the recent changes to this driver in iio-testing; can you rebase on top please? I suggest to split out the transition to regmap in a separate patch > --- > drivers/iio/light/vcnl4000.c | 119 >

[PATCH] um: Stop conflating task_struct::stack with thread_info

2016-07-18 Thread Andy Lutomirski
From: Linus Torvalds thread_info may move in the future, so use the accessors. [Andy Lutomirski wrote this changelog message and changed "task_thread_info(child)->cpu" to "task_cpu(child)".] Message-Id: Signed-off-by: Andy Lutomirski --- arch/x86/um/ptrace_32.c | 8 1 file changed,

Re: [PATCH/RFC] Re: linux-next: build failure after merge of the luto-misc tree

2016-07-18 Thread Stephen Rothwell
Hi Arnaldo, On Mon, 18 Jul 2016 17:36:34 -0300 Arnaldo Carvalho de Melo wrote: > > Em Mon, Jul 18, 2016 at 01:04:34PM -0700, Andy Lutomirski escreveu: > > On Sun, Jul 17, 2016 at 10:18 PM, Stephen Rothwell > > wrote: > > > On Fri, 15 Jul 2016 12:43:26 -0300 Arnaldo Carvalho de Melo > > > w

Re: [PATCH] um: Stop conflating task_struct::stack with thread_info

2016-07-18 Thread Andy Lutomirski
On Mon, Jul 18, 2016 at 3:22 PM, Andy Lutomirski wrote: > From: Linus Torvalds > > thread_info may move in the future, so use the accessors. > > [Andy Lutomirski wrote this changelog message and changed > "task_thread_info(child)->cpu" to "task_cpu(child)".] > > Message-Id: > > Signed-off-by:

Re: BUG: INTx is assered unexpectly when unload AHCI driver with MSIx support.

2016-07-18 Thread t...@kernel.org
Hello, Pang. On Fri, Jul 15, 2016 at 12:39:59PM +, Pang Raymond wrote: > Hi Tejun, > > > Yes! It only happens when the device is shutdown. > > I think you're right. It's more wiser to add clearing operation to driver > > clean up path. > > So we can add it to ahci_port_stop() > > > liba

[PATCH resend] virtio-net: Remove more stack DMA

2016-07-18 Thread Andy Lutomirski
VLAN and MQ control was doing DMA from the stack. Fix it. Cc: Michael S. Tsirkin Cc: "net...@vger.kernel.org" Signed-off-by: Andy Lutomirski --- I tested VLAN addition and removal with CONFIG_VMAP_STACK=y, CONFIG_DEBUG_SG=y and it got rid of the warnings I saw. I haven't tested the MQ part b

[PATCH v3 3/3] spi: core: allow creating devices without spi-max-frequency

2016-07-18 Thread Michal Suchanek
Since the previous patch allows creating SPI slaves without specifying what device the CS connects to make spi-max-frequency also optional. The spi-max-frequency is device-specific and the driver can set it anyway. Signed-off-by: Michal Suchanek --- drivers/spi/spi.c | 6 +++--- 1 file changed,

[PATCH v3 1/3] spi: spidev: create spidev device for all spi slaves.

2016-07-18 Thread Michal Suchanek
This patch makes spidev into a bus addon rather than a separate driver. spidev character device is created for each spi slave. When a spi slave driver is bound the spidev IOCTLs return -EBUSY. This is similar to i2c bus which alows access to any address not claimed by a kernel driver and should pr

[PATCH v3 0/3] Spidev usability patchset update

2016-07-18 Thread Michal Suchanek
Hello, this simplifies spidev to not pose as SPI driver but instead attach a character device on each SPI slave indiscriminately. This does not require spidev to be matched during driver binding and hence does not require it to be specified in devicetree. Any SPI slave device for which a driver i

[PATCH v3 2/3] spi: of: allow instantiating slaves without a driver

2016-07-18 Thread Michal Suchanek
SPI slave devices are not created when looking up driver for the slave fails. Create a device anyway so it can be used with spidev. Signed-off-by: Michal Suchanek --- drivers/spi/spi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c ind

Re: [PATCH] mtd: nand: fix bug writing 1 byte less than page size

2016-07-18 Thread Scott Wood
On Mon, 2016-07-18 at 11:04 +0200, Boris Brezillon wrote: > On Mon, 18 Jul 2016 10:39:18 +0200 > Hector Palacios wrote: > > > > > nand_do_write_ops() determines if it is writing a partial page with the > > formula: > > part_pagewr = (column || writelen < (mtd->writesize - 1)) > > > > When '

Re: [PATCH 2/2] iio: stx104: Move the STX104 IIO driver to the ADC directory

2016-07-18 Thread Peter Meerwald-Stadler
On Mon, 18 Jul 2016, William Breathitt Gray wrote: > The Apex Embedded Systems STX104 is primarily an analog-to-digital > converter device. The STX104 IIO driver was initially placed in the DAC > directory because only the DAC portion of the STX104 was supported at > the time. Now that ADC support

Re: [RFCv2 3/4] perf: util: only open events on CPUs an evsel permits

2016-07-18 Thread Arnaldo Carvalho de Melo
Em Mon, Jul 18, 2016 at 04:32:59PM +0200, Jiri Olsa escreveu: > On Fri, Jul 15, 2016 at 11:08:12AM +0100, Mark Rutland wrote: > > In systems with heterogeneous CPU PMUs, it's possible for each evsel to > > cover a distinct set of CPUs, and hence the cpu_map associated with each > > evsel may have a

Re: [PATCH 3/3] perf tests: Add is_printable_array test

2016-07-18 Thread Arnaldo Carvalho de Melo
Em Mon, Jul 18, 2016 at 02:14:09PM +0200, Jiri Olsa escreveu: > On Mon, Jul 18, 2016 at 01:46:02PM +0200, Jiri Pirko wrote: > > SNIP > > > >diff --git a/tools/perf/tests/is_printable_array.c > > >b/tools/perf/tests/is_printable_array.c > > >new file mode 100644 > > >index ..42e13393e

Re: [PATCH 02/14] resource limits: aggregate task highwater marks to cgroup level

2016-07-18 Thread Tejun Heo
On Fri, Jul 15, 2016 at 05:15:41PM +, Topi Miettinen wrote: > There are clear semantics for the limits themselves, either they apply > per task or per user. It makes sense to gather values according to these > semantics. Then with systemd or other tools you can use the valuse to > set the limit

Re: [PATCH 1/2] locking/percpu-rwsem: Optimize readers and reduce global impact

2016-07-18 Thread kbuild test robot
Hi, [auto build test ERROR on v4.7-rc7] [also build test ERROR on next-20160718] [cannot apply to tip/core/locking] [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/Peter-Zijlstra/locking-percpu

Re: [PATCH v3 1/3] spi: spidev: create spidev device for all spi slaves.

2016-07-18 Thread Mark Brown
On Tue, Jul 19, 2016 at 12:35:40AM +0200, Michal Suchanek wrote: > config SPI_SPIDEV > - tristate "User mode SPI device driver support" > + bool "User mode SPI device driver support" This is a step back, it would require spidev to be built in. > - spin_lock_irq(&spidev->spi_lock); >

Re: [PATCH v3 2/3] spi: of: allow instantiating slaves without a driver

2016-07-18 Thread Mark Brown
On Tue, Jul 19, 2016 at 12:35:41AM +0200, Michal Suchanek wrote: > SPI slave devices are not created when looking up driver for the slave > fails. Create a device anyway so it can be used with spidev. > rc = of_modalias_node(nc, spi->modalias, > sizeof(spi->moda

Re: [PATCH resend] virtio-net: Remove more stack DMA

2016-07-18 Thread Michael S. Tsirkin
On Mon, Jul 18, 2016 at 03:34:49PM -0700, Andy Lutomirski wrote: > VLAN and MQ control was doing DMA from the stack. Fix it. > > Cc: Michael S. Tsirkin > Cc: "net...@vger.kernel.org" > Signed-off-by: Andy Lutomirski Acked-by: Michael S. Tsirkin > --- > > I tested VLAN addition and removal

[PATCH V10 6/9] vfio: platform: call _RST method when using ACPI

2016-07-18 Thread Sinan Kaya
The device tree code checks for the presence of a reset driver and calls the of_reset function pointer by looking up the reset driver as a module. ACPI defines _RST method to perform device level reset. After the _RST method is executed, the OS can resume using the device. _RST method is expected

Ongoing remoteproc discussions

2016-07-18 Thread Bjorn Andersson
During discussions with various people interested in moving their remoteproc-related out-of-tree patches towards mainline I have come across a set of topics common among various teams. The purpose of this email is to share some insight into these discussions and the current ideas for moving forward

[PATCH V10 5/9] vfio: platform: add extra debug info argument to call reset

2016-07-18 Thread Sinan Kaya
Getting ready to bring out extra debug information to the caller so that more verbose information can be printed when an error is observed. Signed-off-by: Sinan Kaya Reviewed-by: Baptiste Reynal --- drivers/vfio/platform/vfio_platform_common.c | 9 + 1 file changed, 5 insertions(+), 4 d

[PATCH V10 4/9] vfio: platform: add support for ACPI probe

2016-07-18 Thread Sinan Kaya
The code is using the compatible DT string to associate a reset driver with the actual device itself. The compatible string does not exist on ACPI based systems. HID is the unique identifier for a device driver instead. Signed-off-by: Sinan Kaya --- drivers/vfio/platform/vfio_platform_common.c

[PATCH V10 8/9] vfio: platform: check reset call return code during open

2016-07-18 Thread Sinan Kaya
Open call is ignoring the return code from reset call and can potentially continue even though reset call failed. If reset_required module parameter is set, this patch is going to validate the return code and will abort open if reset fails. Signed-off-by: Sinan Kaya Reviewed-by: Baptiste Reynal

Re: [PATCH v3 1/8] Input: synaptics-rmi4: Use of_get_child_by_name() instead of of_find_node_by_name()

2016-07-18 Thread Andrew Duggan
On 07/18/2016 07:48 AM, Benjamin Tissoires wrote: On Jul 13 2016 or thereabouts, Andrew Duggan wrote: Calling of_find_node_by_name() assumes that the caller has incremented the refcount of the of_node being passed in. Currently, the caller is not incrementing the refcount of the of_node which re

Re: [PATCH] radix-tree: fix radix_tree_iter_retry() for tagged iterators.

2016-07-18 Thread Ross Zwisler
On Fri, Jul 15, 2016 at 01:57:33PM -0700, Andrew Morton wrote: > On Fri, 15 Jul 2016 13:00:40 -0600 Ross Zwisler > wrote: > > > > > ... > > > > In looking at this more, I agree that your patch fixes this particular bug, > > but I think that ultimately we might want something more general. > >

[PATCH V10 2/9] vfio: platform: move reset call to a common function

2016-07-18 Thread Sinan Kaya
The reset call sequence seems to replicate itself multiple times across the file. Grouping them together for maintenance reasons. Signed-off-by: Sinan Kaya Reviewed-by: Eric Auger Reviewed-by: Baptiste Reynal --- drivers/vfio/platform/vfio_platform_common.c | 30 +--- 1

Re: [PATCH V2 01/10] Documentation: dt-bindings: mailbox: tegra: Add binding for HSP mailbox

2016-07-18 Thread Stephen Warren
On 07/11/2016 10:08 AM, Stephen Warren wrote: On 07/11/2016 08:14 AM, Rob Herring wrote: On Thu, Jul 07, 2016 at 12:35:02PM -0600, Stephen Warren wrote: On 07/07/2016 12:13 PM, Sivaram Nair wrote: On Tue, Jul 05, 2016 at 05:04:22PM +0800, Joseph Lo wrote: Add DT binding for the Hardware Synch

[PATCH V10 1/9] vfio: platform: rename reset function

2016-07-18 Thread Sinan Kaya
Renaming the reset function to of_reset as it is only used by the device tree based platforms. Signed-off-by: Sinan Kaya Reviewed-by: Eric Auger Reviewed-by: Baptiste Reynal --- drivers/vfio/platform/vfio_platform_common.c | 30 +-- drivers/vfio/platform/vfio_platform_

[PATCH V10 9/9] vfio: platform: check reset call return code during release

2016-07-18 Thread Sinan Kaya
Release call is ignoring the return code from reset call and can potentially continue even though reset call failed. If reset_required module parameter is set, this patch is going to validate the return code and will cause stack dump with WARN_ON and warn the user of failure. Signed-off-by: Sinan

[PATCH V10 7/9] vfio, platform: make reset driver a requirement by default

2016-07-18 Thread Sinan Kaya
The code was allowing platform devices to be used without a supporting VFIO reset driver. The hardware can be left in some inconsistent state after a guest machine abort. The reset driver will put the hardware back to safe state and disable interrupts before returning the control back to the host

[PATCH V10 3/9] vfio: platform: determine reset capability

2016-07-18 Thread Sinan Kaya
Creating a new function to determine if this driver supports reset function or not. This is an attempt to abstract device tree calls from the rest of the code. Signed-off-by: Sinan Kaya Reviewed-by: Eric Auger Reviewed-by: Baptiste Reynal --- drivers/vfio/platform/vfio_platform_common.c | 7 ++

4.7-rc7: use-after-free in proc_map_files_readdir

2016-07-18 Thread Dave Jones
Just caught this spew during a fuzz-run. [ 4971.564511] == [ 4971.570505] BUG: KASAN: use-after-free in proc_map_files_readdir+0x2e3/0x5a0 at addr 88044feb2044 [ 4971.582570] Read of size 4 by task trinity-main/29845 [ 4971.5886

[PATCH 03/15] perf tools: Add missing linux/compiler.h include to perf-sys.h

2016-07-18 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo It uses the likely/unlikely macros, so need to include . Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-p0xrhgbkicsii9ohmhhpr...@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tool

[PATCH 01/15] perf jit: Add missing curly braces

2016-07-18 Thread Arnaldo Carvalho de Melo
From: Dan Carpenter It doesn't change the runtime behavior, but my static checker complains that curly braces were intended. Signed-off-by: Dan Carpenter Cc: Adrian Hunter Cc: Alexander Shishkin Cc: Peter Zijlstra Cc: Stephane Eranian Cc: kernel-janit...@vger.kernel.org Link: http://lkml.ke

[PATCH 05/15] perf tools: Remove tools/perf/util/include/linux/const.h

2016-07-18 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Not used anymore, remove one more file referencing kernel sources, i.e. outside of tools/ Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-ykfjt3t8l0npxfwmekiww...@git.kernel.org Signed-off-by: Ar

[PATCH 02/15] perf jit: Remove some no-op error handling

2016-07-18 Thread Arnaldo Carvalho de Melo
From: Dan Carpenter The 'info.e_machine' struct member is an uint16_t so 'm' is never less than zero. It looks like this was maybe left over code from earlier versions so I've just removed it. Signed-off-by: Dan Carpenter Cc: Adrian Hunter Cc: Alexander Shishkin Cc: Peter Zijlstra Cc: Steph

[PATCH 08/15] perf tools: Remove include/linux/list.h from perf's MANIFEST

2016-07-18 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo It hasn't been used since we made tools/ self sufficiente wrt list.h. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Josh Poimboeuf Cc: Namhyung Kim Cc: Wang Nan Fixes: d1b39d41ebec ("tools: Make list.h self-sufficient") Link: http://lkml.kernel.org/n/ti

[PATCH 06/15] Remove: kernel unistd*h files from perf's MANIFEST, not used

2016-07-18 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo No need to copy it to a detached tarball as they aren't used anymore Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-lopmaqi439ke10g1j9cxr...@git.kernel.org Signed-off-by: Arnaldo Carvalho de Mel

[PATCH 15/15] perf tests: Add is_printable_array test

2016-07-18 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Add automated test for is_printable_array function. Signed-off-by: Jiri Olsa Cc: David Ahern Cc: Jiri Pirko Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Steven Rostedt Link: http://lkml.kernel.org/r/1468685480-18951-4-git-send-email-jo...@kernel.org Signed-off-by: Arnaldo Carva

[PATCH 14/15] perf tools: Make is_printable_array global

2016-07-18 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa It's used from 2 objects in perf, so it's better to keep just one copy. Signed-off-by: Jiri Olsa Cc: David Ahern Cc: Jiri Pirko Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Steven Rostedt Link: http://lkml.kernel.org/r/1468685480-18951-3-git-send-email-jo...@kernel.org Signed-o

RE: [PATCH] timekeeping: Fix memory overwrite of sleep_time_bin array

2016-07-18 Thread Chen, Yu C
Hi Rafael, > -Original Message- > From: Rafael J. Wysocki [mailto:r...@rjwysocki.net] > Sent: Tuesday, July 19, 2016 6:02 AM > To: Chen, Yu C > Cc: John Stultz; Thomas Gleixner; linux-kernel@vger.kernel.org; Linux PM list > Subject: Re: [PATCH] timekeeping: Fix memory overwrite of sleep_ti

[GIT PULL 00/15] perf/core improvements and fixes

2016-07-18 Thread Arnaldo Carvalho de Melo
available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-core-for-mingo-20160718 for you to fetch changes up to 988dd774dcbd9151c2a643fc7284c5c3c4d0adb7: perf tests: Add is_printable_array test (2016-

[PATCH 11/15] perf cpu_map: Add more helpers

2016-07-18 Thread Arnaldo Carvalho de Melo
From: Mark Rutland In some cases it's necessry to figure out the map-local index of a given Linux logical CPU ID. Add a new helper, cpu_map__idx, to acquire this. As the logic is largely the same as the existing cpu_map__has, this is rewritten in terms of the new helper. At the same time, add th

[PATCH 10/15] perf stat: Balance opening and reading events

2016-07-18 Thread Arnaldo Carvalho de Melo
From: Mark Rutland In create_perf_stat_counter, when a target CPU has not been provided, we call __perf_evsel__open with empty_cpu_map, and open a single FD per thread. However, in read_counter we assume that we opened events for the product of threads and CPUs described in the evsel's cpu_map.

[PATCH 09/15] tools: Copy linux/{hash,poison}.h and check for drift

2016-07-18 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We were also using this directly from the kernel sources, the two last cases, fix it. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-7o14xvacqcjc5llc7gvjj...@git.kernel.org Signed-off-by: Arnald

[PATCH 13/15] perf script python: Fix string vs byte array resolving

2016-07-18 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Jirka reported that python code returns all arrays as strings. This makes impossible to get all items for byte array tracepoint field containing 0x00 value item. Fixing this by scanning full length of the array and returning it as PyByteArray object in case non printable byte is

[PATCH 12/15] perf probe: Warn unmatched function filter correctly

2016-07-18 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu Warn unmatched function filter correctly instead of warning "symbol-loading error", since that can be a filter issue. >From the technical point of view, this adds a filter chech in map__load and if there is a filter, it returns -2 (filter-out), instead of -1 (error), and p

Re: [PATCH v3 1/4] lib/dlock-list: Distributed and lock-protected lists

2016-07-18 Thread Tejun Heo
Hello, Waiman. On Fri, Jul 15, 2016 at 01:39:40PM -0400, Waiman Long wrote: > Suggested-by: Tejun Heo Not sure I should be on suggested-by given that this wasn't my idea at all. > +/* > + * include/linux/dlock-list.h > + * > + * A distributed (per-cpu) set of lists each of which is protected by

[PATCH 04/15] perf tools: Remove tools/perf/util/include/asm/byteorder.h

2016-07-18 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Not used anymore. This also stops include linux/swab.h directly from the kernel sources, remove that reference from the MANIFEST. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Signed-off-by: Arnaldo Carvalho de Melo --- tools/

[PATCH 07/15] tools: Copy the bitops files accessed from the kernel and check for drift

2016-07-18 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo copy some more kernel files accessed from tools/, check for drift. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-omz8xdyvvxgjiuqzwj6ec...@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo

mmotm 2016-07-18-16-40 uploaded

2016-07-18 Thread akpm
The mm-of-the-moment snapshot 2016-07-18-16-40 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You wi

Re: [PATCH] drm/ttm: Remove create_singlethread_workqueue

2016-07-18 Thread Tejun Heo
On Sat, Jul 16, 2016 at 01:50:17PM +0530, Bhaktipriya Shridhar wrote: > swap_queue was created to handle shrinking in low memory situations. > A separate workqueue was used in order to avoid other workqueue tasks > from being blocked since work items on swap_queue spend a lot of time > waiting for

Re: [PATCH/RFC] Re: linux-next: build failure after merge of the luto-misc tree

2016-07-18 Thread Arnaldo Carvalho de Melo
Em Tue, Jul 19, 2016 at 08:22:35AM +1000, Stephen Rothwell escreveu: > Hi Arnaldo, > > On Mon, 18 Jul 2016 17:36:34 -0300 Arnaldo Carvalho de Melo > wrote: > > > > Em Mon, Jul 18, 2016 at 01:04:34PM -0700, Andy Lutomirski escreveu: > > > On Sun, Jul 17, 2016 at 10:18 PM, Stephen Rothwell > > >

Re: [PATCH] [media] s5p-mfc: Remove deprecated create_singlethread_workqueue

2016-07-18 Thread Tejun Heo
On Sat, Jul 16, 2016 at 02:00:25PM +0530, Bhaktipriya Shridhar wrote: > alloc_workqueue replaces deprecated create_singlethread_workqueue(). > > The MFC device driver is a v4l2 driver which can encode/decode video > raw/elementary streams and has support for all popular video codecs. > > The driv

Re: [PATCH -next] module: use kmemdup rather than duplicating its implementation

2016-07-18 Thread Rusty Russell
weiyj...@163.com writes: > From: Wei Yongjun > > Use kmemdup rather than duplicating its implementation. > > Generated by: scripts/coccinelle/api/memdup.cocci > > Signed-off-by: Wei Yongjun Hi Wei! This code has been removed by other changes in modules-next, so your very nice cleanup is

Is THREAD_INFO_IN_TASK appropriate for -mm for 4.8?

2016-07-18 Thread Andy Lutomirski
Hi all- There are four core patches needed for the THREAD_INFO_IN_TASK thing, and they apply cleanly to -mm now. The x86 patch to flip the feature on does not apply cleanly anywhere because it depends on changes in -tip *and* in -mm. I'd like to get all of this as well as the rest of the vmap-st

Re: [PATCH] [media] s5p-mfc: Remove deprecated create_singlethread_workqueue

2016-07-18 Thread Tejun Heo
On Sat, Jul 16, 2016 at 02:00:25PM +0530, Bhaktipriya Shridhar wrote: > alloc_workqueue replaces deprecated create_singlethread_workqueue(). > > The MFC device driver is a v4l2 driver which can encode/decode video > raw/elementary streams and has support for all popular video codecs. > > The driv

Re: [PATCH] [media] pvrusb2: Remove deprecated create_singlethread_workqueue

2016-07-18 Thread Tejun Heo
On Sat, Jul 16, 2016 at 02:02:34PM +0530, Bhaktipriya Shridhar wrote: > The workqueue "workqueue" is involved in polling the pvrusb2 hardware > (pvr2_hdw). > > It has a single work item(&hdw->workpoll) and hence doesn't require > ordering. Also, it is not being used on a memory reclaim path. > Hen

<    2   3   4   5   6   7   8   9   >