[PATCH-tip v6 00/22] futex: Introducing throughput-optimized (TP) futexes

2017-03-22 Thread Waiman Long
v5->v6: - Futex code changes: 1) Allow userspace locking of exclusive locks instead of just kernel locking (patch 14). This is controlled by a flag passed to the futex(2) syscall. This enables better throughput. 2) Add a reader-preferring mode to shared locking. - Futex

[PATCH-tip v6 03/22] futex: Consolidate duplicated timer setup code

2017-03-22 Thread Waiman Long
A new futex_setup_timer() helper function is added to consolidate all the hrtimer_sleeper setup code. Signed-off-by: Waiman Long --- kernel/futex.c | 67 -- 1 file changed, 37 insertions(+), 30 deletions(-) diff --git a/kernel/futex.c b/ke

[PATCH-tip v6 06/22] futex: Consolidate pure pi_state_list add & delete codes to helpers

2017-03-22 Thread Waiman Long
Two new helper functions (task_pi_list_add & task_pi_list_del) are created to consolidate all the pure pi_state_list addition and insertion codes. The set_owner argument in task_pi_list_add() will be needed in a later patch. Signed-off-by: Waiman Long --- kernel/futex.c | 52

[PATCH-tip v6 05/22] futex: Add helpers to get & cmpxchg futex value without lock

2017-03-22 Thread Waiman Long
Two new helper functions cmpxchg_futex_value() and get_futex_value() are added to access and change the futex value without the hash bucket lock. As a result, page fault is enabled and the page will be faulted in if not present yet. Signed-off-by: Waiman Long --- kernel/futex.c | 15 +++

[PATCH-tip v6 01/22] perf bench: New microbenchmark for userspace mutex performance

2017-03-22 Thread Waiman Long
This microbenchmark simulates how the use of different futex types can affect the actual performanace of userspace mutex locks. The usage is: perf bench futex mutex Three sets of simple mutex lock and unlock functions are implemented using the wait-wake and PI futexes as well as the glib

[PATCH-tip v6 12/22] TP-futex: Return status code on FUTEX_LOCK calls

2017-03-22 Thread Waiman Long
To better understand how the TP futexes are performing, it is useful to return the internal status on the TP futexes. The FUTEX_LOCK futex(2) syscall will now return a positive status code if no error happens. The status code consists of the following 3 fields: 1) Bits 00-07: code on how the lock

[PATCH-tip v6 18/22] TP-futex: Group readers together in wait queue

2017-03-22 Thread Waiman Long
All the TP futex lock waiters are serialized in the kernel using a kernel mutex which acts like a wait queue. The order at which the waiters popped out from the wait queue will affect performance when exclusive (writer) and shared (reader) lock waiters are mixed in the queue. The worst case scenari

[PATCH-tip v6 13/22] TP-futex: Add timeout support

2017-03-22 Thread Waiman Long
Unlike other futexes, TP futexes do not accept the specification of a timeout value. To align with the other futexes, timeout support is now added. Like FUTEX_WAIT, the timeout value is relative to current time, not an absolute time. However, the timeout isn't as precise as the other futex types d

[PATCH-tip v6 22/22] futex: Dump internal futex state via debugfs

2017-03-22 Thread Waiman Long
For debugging purpose, it is sometimes useful to dump the internal states in the futex hash bucket table. This patch adds a file "futex_hash_table" in debugfs root filesystem to dump the internal futex states. Signed-off-by: Waiman Long --- kernel/futex.c | 82 +++

[PATCH-tip v6 19/22] TP-futex, doc: Update TP futexes document on shared locking

2017-03-22 Thread Waiman Long
The tp-futex.txt was updated to add description about shared locking support. Running the futex locking microbenchmark on a 2-socket 36-core E5-2699 v3 system (HT off) running on a 4.11 based kernel, the performance of TP rwlock with 1:1 reader/writer ratio versus one based on the wait-wake futexe

[PATCH-tip v6 21/22] sched, TP-futex: Make wake_up_q() return wakeup count

2017-03-22 Thread Waiman Long
Unlike wake_up_process(), wake_up_q() doesn't tell us how many tasks have been woken up. This information can sometimes be useful for tracking purpose. So wake_up_q() is now modified to return that information. Signed-off-by: Waiman Long --- include/linux/sched/wake_q.h | 2 +- kernel/futex.c

[PATCH-tip v6 16/22] TP-futex: Support userspace reader/writer locks

2017-03-22 Thread Waiman Long
The TP futexes was designed to support userspace mutually exclusive locks. They are now extended to support userspace reader/writer locks as well. Two new futex command codes are added: 1) FUTEX_LOCK_SHARED - to acquire a shared lock (reader-lock) 2) FUTEX_UNLOCK_SHARED - to release a shred lock

[PATCH-tip v6 20/22] perf bench: Extend mutex/rwlock futex suite to test TP futexes

2017-03-22 Thread Waiman Long
This patch extends the futex-mutex and futex-rwlock microbenchmarks to test userspace mutexes and rwlocks built on top of the TP futexes. We can then compare the relative performance of those userspace locks based on different type of futexes. Signed-off-by: Waiman Long --- tools/perf/bench/fute

[PATCH-tip v6 17/22] TP-futex: Enable kernel reader lock stealing

2017-03-22 Thread Waiman Long
By default, the TP futexes do not have preference for either readers or writers. Most reader-writer locks allows users to decide if they want to prefer readers or writers more. This patch allows the setting of the prefer-reader mode in the val argument of the futex system call. If that flag is set

[PATCH-tip v6 15/22] TP-futex, doc: Add TP futexes documentation

2017-03-22 Thread Waiman Long
This patch adds a new document file on how to use the TP futexes. In term of locking performance, a futex locking microbenchmark was written where separate userspace mutexes are implemented using wait-wake (WW), PI and TP futexes respectively. This microbenchmark was intructed to run 10s of lockin

[PATCH-tip v6 11/22] TP-futex: Implement lock handoff to prevent lock starvation

2017-03-22 Thread Waiman Long
The current TP futexes has no guarantee that the top waiter (serialization mutex owner) can get the lock within a finite time. As a result, lock starvation can happen. A lock handoff mechanism is added to the TP futexes to prevent lock starvation from happening. The idea is that the top waiter can

[PATCH-tip v6 14/22] TP-futex: Optionally return EAGAIN for userspace locking

2017-03-22 Thread Waiman Long
A performance disadvantage of TP futexes versus wait-wake futex is the fact that locking was done in the kernel for TP futexes instead of in the userspace like the WW futexes. The additional latency between when the lock was taken in the kernel and when the task returned to the userspace would be a

Re: [PATCH] kasan: report only the first error

2017-03-22 Thread Dmitry Vyukov
On Wed, Mar 22, 2017 at 6:33 PM, Alexander Potapenko wrote: > On Wed, Mar 22, 2017 at 6:07 PM, Andrey Konovalov > wrote: >> On Wed, Mar 22, 2017 at 5:54 PM, Andrey Ryabinin >> wrote: >>> On 03/22/2017 07:34 PM, Andrey Konovalov wrote: On Wed, Mar 22, 2017 at 5:06 PM, Andrey Ryabinin

Re: [PATCH net-next v2 3/5] net-next: ethernet: mediatek: add CDM able to recognize the tag for DSA

2017-03-22 Thread Andrew Lunn
On Tue, Mar 21, 2017 at 05:35:08PM +0800, sean.w...@mediatek.com wrote: > From: Sean Wang > > The patch adds the setup for allowing CDM can recognize these packets with > carrying port-distinguishing tag. Otherwise, these tagging packets will be > handled incorrectly by CDM. The setup is working

[PATCH-tip v6 07/22] futex: Add a new futex type field into futex_state

2017-03-22 Thread Waiman Long
As the futex_state structure will be overloaded in later patches to be used by non-PI futexes, it is necessary to add a type field to distinguish among different types of futexes. Signed-off-by: Waiman Long --- kernel/futex.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-)

[PATCH-tip v6 08/22] futex: Allow direct attachment of futex_state objects to hash bucket

2017-03-22 Thread Waiman Long
Currently, the futex state objects can only be located indirectly as hash bucket => futex_q => futex state Actually it can be beneficial in some cases to locate the futex state object directly from the hash bucket without the futex_q middleman. Therefore, a new list head to link the futex

[PATCH-tip v6 09/22] futex: Introduce throughput-optimized (TP) futexes

2017-03-22 Thread Waiman Long
A new futex implementation called throughput-optimized (TP) futexes is introduced. The goal of this new futex type is to maximize locking throughput at the expense of fairness and deterministic latency. Its throughput is higher than that of the wait-wake futexes especially on systems with a large n

[PATCH-tip v6 04/22] futex: Rename futex_pi_state to futex_state

2017-03-22 Thread Waiman Long
The futex_pi_state structure will be overloaded in later patches to store state information about non-PI futexes. So the structure name itself is no longer a good description of its purpose. So its name is changed to futex_state, a more generic name. Some of the functions that process the futex st

[PATCH-tip v6 10/22] TP-futex: Enable robust handling

2017-03-22 Thread Waiman Long
The TP futexes don't have code to handle the death of futex owners. There are 2 different cases that need to be considered. As top waiter gets a reference to the task structure of the futex owner, the task structure will never go away even if the owner dies. When the futex owner died while the top

[PATCH-tip v6 02/22] perf bench: New microbenchmark for userspace rwlock performance

2017-03-22 Thread Waiman Long
This microbenchmark simulates how the use of different futex types can affect the actual performanace of userspace rwlock locks. The usage is: perf bench futex rwlock Two sets of simple rwlock lock and unlock functions are implemented using the wait-wake futexes and glibc rwlock respecti

[PATCH v2] x86: remove unused atomic_inc_short()

2017-03-22 Thread Dmitry Vyukov
It is completely unused and implemented only on x86. Remove it. Signed-off-by: Dmitry Vyukov Suggested-by: Mark Rutland Cc: Andrey Ryabinin Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: Peter Zijlstra Cc: Andrew Morton Cc: linux-kernel@vger.kernel.org Cc: x...@kernel.org --

Re: [PATCH] x86: remove unused atomic_inc_short()

2017-03-22 Thread Dmitry Vyukov
On Wed, Mar 22, 2017 at 5:13 PM, Andrey Ryabinin wrote: > > > On 03/22/2017 05:10 PM, Dmitry Vyukov wrote: >> It is completely unused and implemented only on x86. >> Remove it. >> >> Signed-off-by: Dmitry Vyukov >> Suggested-by: Andrey Ryabinin > > Not me, it was Mark Rutland Mailed v2 with pr

Re: [PATCH 3/3] ACPI: Don't create a platform_device for IOAPIC/IOxAPIC

2017-03-22 Thread Rafael J. Wysocki
On Wednesday, March 22, 2017 06:33:25 PM Joerg Roedel wrote: > From: Joerg Roedel > > No platform-device is required for IO(x)APICs, so don't even > create them. > > Signed-off-by: Joerg Roedel If we do this, I'd prefer not to do [2/3], because we'll introduce code that will be essentially dea

Re: [RFC 7/8] cpufreq: imx6q: Initialize LDO bypass

2017-03-22 Thread Leonard Crestez
On Wed, 2017-03-22 at 18:09 +0100, Lucas Stach wrote: > Am Mittwoch, den 22.03.2017, 18:53 +0200 schrieb Leonard Crestez: > > > > Several imx6* socs have three built-in regulators LDO_ARM LDO_SOC and > > LDO_PU used to control internal chip voltages. "ldo-bypass" mode refers > > to placing these r

Re: Dell Inspiron 5558/0VNM2T hangs at resume from suspend when USB 3 is enabled

2017-03-22 Thread Mathias Nyman
On 22.03.2017 00:52, Diego Viola wrote: On Tue, Mar 21, 2017 at 12:29 PM, Diego Viola wrote: On Tue, Mar 21, 2017 at 10:04 AM, Diego Viola wrote: On Mon, Mar 20, 2017 at 8:15 PM, Diego Viola wrote: On Mon, Mar 20, 2017 at 3:27 PM, Diego Viola wrote: On Mon, Mar 20, 2017 at 1:32 PM, Mathia

Re: [PATCH v2 1/3] ata: add Palmchip BK3710 PATA controller driver

2017-03-22 Thread Bartlomiej Zolnierkiewicz
Hi, On Tuesday, March 21, 2017 02:04:38 PM Sekhar Nori wrote: > Hi, > > On Tuesday 14 March 2017 10:06 PM, Bartlomiej Zolnierkiewicz wrote: > > Add Palmchip BK3710 PATA controller driver. > > > > Signed-off-by: Bartlomiej Zolnierkiewicz > > There are some checkpatch suggestions that are worth

[PATCH v5 4/7] PCI: dwc: all: Modify dbi accessors to take dbi_base as argument

2017-03-22 Thread Kishon Vijay Abraham I
dwc has 2 dbi address space labeled dbics and dbics2. The existing helper to access dbi address space can access only dbics. However dbics2 has to be accessed for programming the BAR registers in the case of EP mode. This is in preparation for adding EP mode support to dwc driver. Cc: Jingoo Han

[PATCH 00/12] ARM: dts: i.MX6: Add lcdif/sound nodes on Engicam SOMs

2017-03-22 Thread Jagan Teki
From: Jagan Teki This patchset, add support for backlight, lcdif, touchscreen, sound card and related codec and can nodes all Engicam SOM's which are supporting mainline as of now. Jagan Teki (12): ARM: dts: imx6ul-geam: Add backlight support for lcdif ARM: dts: imx6ul-isiot: Add backlight s

[PATCH 01/12] ARM: dts: imx6ul-geam: Add backlight support for lcdif

2017-03-22 Thread Jagan Teki
From: Jagan Teki This patch add support for lcdif backlight on GEAM6UL variant boards. Cc: Shawn Guo Cc: Matteo Lisi Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- arch/arm/boot/dts/imx6ul-geam.dtsi | 29 + 1 file changed, 29 insertions(+) diff --git a/arch

[PATCH 04/12] ARM: dts: imx6ul-isiot: Add i2c nodes

2017-03-22 Thread Jagan Teki
From: Jagan Teki Add support for i2c nodes i2c1 and i2c2 on Is.IoT MX6UL eMMC variant boards. Cc: Shawn Guo Cc: Matteo Lisi Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- arch/arm/boot/dts/imx6ul-isiot.dtsi | 28 1 file changed, 28 insertions(+) diff --git

[PATCH 11/12] ARM: dts: imx6dl-icore: Add touchscreen node

2017-03-22 Thread Jagan Teki
From: Jagan Teki max11801 touchscreen on Engicam iCoreM6 DualLite/Solo module is connected via i2c1, so add max11801: touchscreen@48 on i2c1. Cc: Shawn Guo Cc: Matteo Lisi Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- arch/arm/boot/dts/imx6dl-icore.dts | 9 + 1 file changed, 9

[PATCH 08/12] ARM: dts: imx6ul-geam: Add Sound card with codec node

2017-03-22 Thread Jagan Teki
From: Jagan Teki Add support for Sound card and related codec(via i2c1) nodes on Engicam GEAM6UL variant module boards. Cc: Shawn Guo Cc: Matteo Lisi Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- arch/arm/boot/dts/imx6ul-geam-kit.dts | 13 + arch/arm/boot/dts/imx6ul-geam.d

[PATCH 07/12] ARM: dts: imx6ul-isiot: Add Sound card with codec node

2017-03-22 Thread Jagan Teki
From: Jagan Teki Add support for Sound card and related codec(via i2c1) nodes on Engicam Is.IoT MX6UL variant module boards. Cc: Shawn Guo Cc: Matteo Lisi Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- arch/arm/boot/dts/imx6ul-isiot-common.dtsi | 11 +++ arch/arm/boot/dts/imx6u

[PATCH 10/12] ARM: dts: imx6dl-icore: Add LVDS support

2017-03-22 Thread Jagan Teki
From: Jagan Teki Add LVDS display support for OpenFrame Capacitive touch 7 inc display which is supported by Engicam i.CoreM6 DualLite/Solo Starter Kit. Cc: Shawn Guo Cc: Matteo Lisi Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- arch/arm/boot/dts/imx6dl-icore.dts | 25

[PATCH 12/12] ARM: dts: imx6qdl-icore-rqs: Add CAN nodes

2017-03-22 Thread Jagan Teki
From: Jagan Teki Add support for can1 and can2 nodes on Engicam i.CoreM6 RQS QDL module boards. Cc: Shawn Guo Cc: Matteo Lisi Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- arch/arm/boot/dts/imx6dl-icore-rqs.dts | 8 arch/arm/boot/dts/imx6q-icore-rqs.dts| 8 a

[PATCH 09/12] ARM: dts: imx6qdl-icore: Add Sound card with codec node

2017-03-22 Thread Jagan Teki
From: Jagan Teki Add support for Sound card and related codec(via i2c1) nodes on below Engicam module boards. - i.CoreM6 DualLite/Solo Starter kit - i.CoreM6 Quad/Dual Starter kit - i.CoreM6 Quad/Dual OpenFrame Cap touch 10.1 - i.CoreM6 Quad/Dual OpenFrame Cap touch 12.3 Cc: Shawn Guo Cc: Matte

[PATCH 05/12] ARM: dts: imx6ul-isiot-common: Add touchscreen node

2017-03-22 Thread Jagan Teki
From: Jagan Teki Add touchscreen node as i2c1 slave device on Engicam Is.IoT MX6UL modules, the touchscreen controlled 'st,stmpe-ts' connected via i2c with st,stmpe811 mfb interface. Cc: Shawn Guo Cc: Matteo Lisi Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- arch/arm/boot/dts/imx6ul-i

[PATCH 06/12] ARM: dts: imx6ul-[geam|isiot]: Add sai2 node

2017-03-22 Thread Jagan Teki
From: Jagan Teki Add Synchronous Audio Interface(SAI) node for Engicam GEAM6UL and Is.IoT MX6UL variant module boards. Cc: Shawn Guo Cc: Matteo Lisi Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- arch/arm/boot/dts/imx6ul-geam.dtsi | 16 arch/arm/boot/dts/imx6ul-isiot.

Re: [PATCH net 0/2] r8152: fix the rx settings of RTL8153

2017-03-22 Thread David Miller
From: Hayes Wang Date: Mon, 20 Mar 2017 16:13:43 +0800 > The RMS and the rx early size should base on the same rx size. However, > the RMS is set to 9K bytes now and the rx early depends on mtu. For using > the rx buffer effectively, sync the two settings according to the mtu. Series applied.

Re: [PATCH] ARM64: dts: meson-gx: Add Buttons to Q200 and P230 boards

2017-03-22 Thread Kevin Hilman
Neil Armstrong writes: > This patch adds support for the P230 and Q200 ADC laddered button and > GPIO button. > > Signed-off-by: Neil Armstrong Applied to v4.12/dt64 Kevin

[PATCH 03/12] ARM: dts: imx6ul-isiot: Add imx6ul-isiot-common.dtsi

2017-03-22 Thread Jagan Teki
From: Jagan Teki lcdif nodes are differ wrt specific LCD connected on Is.IoT MX6UL module, so create separate file 'imx6ul-isiot-common.dtsi' for common lcdif node structure and include the same on respective dts. More common nodes will add in future patches. Cc: Shawn Guo Cc: Matteo Lisi Cc:

Re: [PATCH 2/2] [net-next] net: dwc-xlgmac: add module license

2017-03-22 Thread David Miller
From: Arnd Bergmann Date: Mon, 20 Mar 2017 09:51:13 +0100 > When building the driver as a module, we get a warning about the > lack of a license: > > WARNING: modpost: missing MODULE_LICENSE() in > drivers/net/ethernet/synopsys/dwc-xlgmac.o > see include/linux/module.h for more information > >

Re: [PATCH 1/2] [net-next] net: dwc-xlgmac: include dcbnl.h

2017-03-22 Thread David Miller
From: Arnd Bergmann Date: Mon, 20 Mar 2017 09:51:12 +0100 > Without this header, we can run into a build error: > > drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c: In function > 'xlgmac_config_queue_mapping': > drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c:1548:36: error: > 'IEEE_8021QAZ_MAX_TC

[PATCH 02/12] ARM: dts: imx6ul-isiot: Add backlight support for lcdif

2017-03-22 Thread Jagan Teki
From: Jagan Teki This patch add support for lcdif backlight on Is.IoT MX6UL variant boards. Cc: Shawn Guo Cc: Matteo Lisi Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- arch/arm/boot/dts/imx6ul-isiot.dtsi | 29 + 1 file changed, 29 insertions(+) diff --git

Re: [PATCH] sched: write better comments for weight calculations

2017-03-22 Thread Peter Zijlstra
On Wed, Mar 22, 2017 at 09:25:02AM -0700, Joel Fernandes wrote: > On Wed, Mar 22, 2017 at 7:18 AM, Peter Zijlstra wrote: > > On Fri, Mar 10, 2017 at 12:47:43PM -0800, Joel Fernandes wrote: > >> This patch rewrites comments related task priorities and CPU usage > >> along with an example to show ho

Re: [PATCH 2/2 v2] xen/acpi: upload PM state from init-domain to Xen

2017-03-22 Thread Ankur Arora
On 2017-03-22 02:05 AM, Stanislaw Gruszka wrote: On Tue, Mar 21, 2017 at 03:43:38PM -0700, Ankur Arora wrote: This was broken in commit cd979883b9ede90643e019f33cb317933eb867b4. do_suspend (from xen/manage.c) and thus xen_resume_notifier never get called on the initial-domain at resume (it is if

Re: [PATCH v2 1/3] ata: add Palmchip BK3710 PATA controller driver

2017-03-22 Thread Sergei Shtylyov
Hello! On 03/22/2017 08:49 PM, Bartlomiej Zolnierkiewicz wrote: Add Palmchip BK3710 PATA controller driver. Signed-off-by: Bartlomiej Zolnierkiewicz There are some checkpatch suggestions that are worth fixing, I think. [PATCH v2 1_3] ata: add Palmchip BK3710 PATA controller driver - Bartlo

Re: [PATCH v3 1/4] dt-bindings: Document rk3399 Gru/Kevin

2017-03-22 Thread Brian Norris
On Wed, Mar 22, 2017 at 10:01:00AM +0100, Heiko Stuebner wrote: > Am Montag, 20. März 2017, 16:53:41 CET schrieb Brian Norris: > > Gru is a base dev board for a family of devices, including Kevin. Both > > utilize Rockchip RK3399, and they share much of their design. > > > > Signed-off-by: Brian N

Re: [PATCH] [v2, -net] cpsw/netcp: work around reverse cpts dependency

2017-03-22 Thread David Miller
From: Arnd Bergmann Date: Mon, 20 Mar 2017 09:52:50 +0100 > The dependency is reversed: cpsw and netcp call into cpts, > but cpts depends on the other two in Kconfig. This can lead > to cpts being a loadable module and its callers built-in: > > drivers/net/ethernet/ti/cpsw.o: In function `cpsw_r

Re: [PATCH v3 2/4] arm64: dts: rockchip: add Gru/Kevin DTS

2017-03-22 Thread Brian Norris
On Wed, Mar 22, 2017 at 12:59:37PM +0100, Heiko Stuebner wrote: > Am Montag, 20. März 2017, 16:53:42 CET schrieb Brian Norris: > > Kevin is part of a family of boards called Gru. As best as possible, the > > properties shared by the Gru family are placed in rk3399-gru.dtsi, while > > Kevin-specific

[PATCH] sched: Prefer sibiling only if local group is under-utilized

2017-03-22 Thread Srikar Dronamraju
If the child domain prefers tasks to go siblings, the local group could end up pulling tasks to itself even if the local group is almost equally loaded as the source group. Lets assume a 4 core,smt==2 machine running 5 thread ebizzy workload. Everytime, local group has capacity and source group ha

Re: [PATCH v2 1/3] ata: add Palmchip BK3710 PATA controller driver

2017-03-22 Thread Bartlomiej Zolnierkiewicz
Hi, On Saturday, March 18, 2017 04:52:18 PM Sergei Shtylyov wrote: > Hello! > > On 3/14/2017 7:36 PM, Bartlomiej Zolnierkiewicz wrote: > > > Add Palmchip BK3710 PATA controller driver. > > > > Signed-off-by: Bartlomiej Zolnierkiewicz > [...] > > diff --git a/drivers/ata/pata_bk3710.c b/drivers

Re: [PATCH v1 3/4] clk: rockchip: rk3288: add CLK_IGNORE_UNUSED flag for some clks

2017-03-22 Thread Heiko Stuebner
Hi Elaine, Am Donnerstag, 16. März 2017, 16:44:53 CET schrieb Elaine Zhang: much the same comments apply. Need justification, use critical clocks and things like efuse should have a driver, so why do they need special handling? Thanks Heiko > Signed-off-by: Elaine Zhang > --- > drivers/clk/

Re: [PATCH RT 1/1] remoteproc: Prevent schedule while atomic

2017-03-22 Thread Steven Rostedt
On Wed, 22 Mar 2017 12:37:59 -0500 Julia Cartwright wrote: > Which kernel were you testing on, here? From what I can tell, this > should have been fixed with Thomas's commit: > >2a1d3ab8986d ("genirq: Handle force threading of irqs with primary > and thread handler") Thanks Julia for looki

Re: [PATCH 1/2] pinctrl: samsung: Add missing part for PINCFG_TYPE_DRV of Exynos5433

2017-03-22 Thread Krzysztof Kozlowski
On Wed, Mar 22, 2017 at 05:03:31PM +0900, Chanwoo Choi wrote: > The commit 1259feddd0f8("pinctrl: samsung: Fix the width of > PINCFG_TYPE_DRV bitfields for Exynos5433") already fixed > the different width of PINCFG_TYPE_DRV from previous Exynos SoC. > > But, when merged the multiple patches, the m

Re: [RFC 7/8] cpufreq: imx6q: Initialize LDO bypass

2017-03-22 Thread Lucas Stach
Am Mittwoch, den 22.03.2017, 19:48 +0200 schrieb Leonard Crestez: > On Wed, 2017-03-22 at 18:09 +0100, Lucas Stach wrote: > > Am Mittwoch, den 22.03.2017, 18:53 +0200 schrieb Leonard Crestez: > > > > > > Several imx6* socs have three built-in regulators LDO_ARM LDO_SOC and > > > LDO_PU used to con

Re: [PATCH 3/3] ARM64: dts: meson-gxl: Add missing pinctrl pins groups

2017-03-22 Thread Kevin Hilman
Hi Neil Neil Armstrong writes: > Add pinctrl pins nodes following the additions of missing pins in the pinctrl > driver. > > Signed-off-by: Neil Armstrong I'll assume you will re-spin patches 2-3 of this series on Martin's updated PWM series. Thanks, Kevin

Re: [PATCH 3/4] RAS: Add a Corrected Errors Collector

2017-03-22 Thread Borislav Petkov
On Mon, Mar 20, 2017 at 03:48:24PM -0700, Luck, Tony wrote: > You added "count_threshold" for me ... so the condition isn't quite > "overflows" > like it was in the early versions. It is a max count which, when reached, causes the soft offline attempt. What did you mean with "overflows" exactly t

Re: [PATCH] arm64: dts: NS2: Add dma-coherent to relevant DT entries

2017-03-22 Thread Robin Murphy
Hi Jon, On 21/03/17 20:51, Jon Mason wrote: > Cache related issues with DMA rings and performance issues related to > caching are being caused by not properly setting the "dma-coherent" flag > in the device tree entries. Adding it here to correct the issue. I'd expect the SMMU to be wired up coh

[PATCH 1/1] selftests: breakpoints: allow to cross-compile for aarch64/arm64

2017-03-22 Thread Fathi Boudra
To build breakpoint_test_arm64, ARCH value is only tested for "aarch64". It covers only the native build because it's computed from uname -m output. For cross-compilation, ARCH is set to arm64 and prevent to cross-compile the test. Fix the test to allow both native and cross-compilation of the test

Re: [PATCH v1] clk: rockchip: add pll_wait_lock for pll_enable

2017-03-22 Thread Heiko Stuebner
Am Mittwoch, 22. Februar 2017, 10:59:55 CET schrieb Elaine Zhang: > If pll is power down,when power up pll need wait pll lock. > The reference documents section: > PLL frequency change and lock check > > Signed-off-by: Elaine Zhang applied to my clk-branch for 4.12 Thanks Heiko

Re: [PATCH 2/2] iommu: Add dummy implementations for !IOMMU_IOVA

2017-03-22 Thread Thierry Reding
On Wed, Mar 22, 2017 at 03:55:30PM +0100, Joerg Roedel wrote: > Hi Thierry > > On Mon, Mar 20, 2017 at 08:14:31PM +0100, Thierry Reding wrote: > > I've got a series of patches that I'd like to merge for v4.12 that have > > a build-time dependency on this patch. It would therefore be great to > > g

Re: [PATCH 0/2] ARM64: dts: meson-gxbb-odroidc2: Add GPIO lines names

2017-03-22 Thread Kevin Hilman
Neil Armstrong writes: > This patchset adds the GPIO lines names to describe the /real/ GPIO usage on > the Odroid-C2 board. These names are useful to have a clear and human readable > decription of the line usage. Applied to v4.12/dt64, Thanks, Kevin

Re: [PATCH v2 4/6] arm64: dts: rockchip: add core dtsi file for RK3328 SoCs

2017-03-22 Thread Sudeep Holla
On 16/03/17 13:17, c...@rock-chips.com wrote: > From: Liang Chen > > This patch adds core dtsi file for Rockchip RK3328 SoCs. > > Signed-off-by: Liang Chen > --- > arch/arm64/boot/dts/rockchip/rk3328.dtsi | 1362 > ++ > 1 file changed, 1362 insertions(+) > creat

RE: [PATCH v2 0/7] Renesas RZ/A1 pin and gpio controller

2017-03-22 Thread Chris Brandt
Hi Jacopo, On Monday, March 20, 2017, Jacopo Mondi wrote: > Chris: it would be great if you could give this another spin on RSK board. I tested these patches on an RZ/A1H RSK board after modifying the DT for the RSK vs the GENMAI board. The following worked fine: * SCIF * I2C * SDHI * Ether

Re: [PATCH v5 00/39] i.MX Media Driver

2017-03-22 Thread Nicolas Dufresne
Le mardi 21 mars 2017 à 11:36 +, Russell King - ARM Linux a écrit : >     warn: v4l2-test-formats.cpp(1187): S_PARM is > supported for buftype 2, but not ENUM_FRAMEINTERVALS >     warn: v4l2-test-formats.cpp(1194): S_PARM is > supported but doesn't report V4L2_CAP_TIMEPE

Re: [PATCH 2/2] pinctrl: samsung: Remove unused pin-bank macro

2017-03-22 Thread Krzysztof Kozlowski
On Wed, Mar 22, 2017 at 05:03:32PM +0900, Chanwoo Choi wrote: > After merged commit 1259feddd0f8 ("pinctrl: samsung: Fix the width > of PINCFG_TYPE_DRV bitfields for Exynos5433"), EXYNOS_PIN_BANK_EINTW > was replaced by EXYNOS5433_PIN_BANK_EINTW_EXT. This patch removes > the unused pin-bank macro (

Re: [PATCH] mlxsw: spectrum: fix swapped order of arguments packets and bytes

2017-03-22 Thread David Miller
From: Colin King Date: Mon, 20 Mar 2017 11:37:22 + > From: Colin Ian King > > The arguments packets and bytes to call mlxsw_sp_acl_rule_get_stats are > in the wrong order. Fix this by swapping them. > > Detected by CoverityScan, CID#1419705 ("Arguments in wrong order") > > Fixes: 7c1b8eb1

Re: [PATCH v3 4/4] arm64: dts: rockchip: add regulator info for Kevin digitizer

2017-03-22 Thread Brian Norris
On Wed, Mar 22, 2017 at 09:26:41AM +0100, Heiko Stuebner wrote: > Am Montag, 20. März 2017, 16:53:44 CET schrieb Brian Norris: > > We need to enable this regulator before the digitizer can be used. Wacom > > recommended waiting for 100 ms before talking to the HID. > > > > Signed-off-by: Brian Nor

Re: [PATCH] checkpatch: Flag spam header (X-Spam-Report) to prevent spurious warnings

2017-03-22 Thread Joe Perches
On Wed, 2017-03-22 at 08:25 -0700, Darren Hart wrote: > On Tue, Mar 21, 2017 at 11:31:08AM -0700, Joe Perches wrote: > > On Tue, 2017-03-21 at 09:30 -0700, John 'Warthog9' Hawley (VMware) wrote: > > > Spamassassin sticks a long (~79 character) long string after a > > > line that has a single space

Re: [PATCH net-next v2 4/5] net-next: ethernet: mediatek: add device_node of GMAC pointing into the netdev instance

2017-03-22 Thread Andrew Lunn
On Tue, Mar 21, 2017 at 05:35:09PM +0800, sean.w...@mediatek.com wrote: > From: Sean Wang > > the patch adds the setup of the corresponding device node of GMAC into the > netdev instance which could allow other modules such as DSA to find the > instance through the node in dt-bindings using of_fi

Re: [PATCH v3] KVM: VMX: Fix enable VPID even if INVVPID is not exposed in vmx capability

2017-03-22 Thread Jim Mattson
Is cpu_has_vmx_invvpid() sufficient? This indicates support for the INVVPID instruction, but not necessarily any of the desired INVVPID types. KVM's vpid_sync_context() assumes that at least one of {VMX_VPID_EXTENT_SINGLE_CONTEXT, VMX_VPID_EXTENT_ALL_CONTEXT} is supported. On Wed, Mar 22, 2017 at

[PATCH v3 1/5] ata: add Palmchip BK3710 PATA controller driver

2017-03-22 Thread Bartlomiej Zolnierkiewicz
Add Palmchip BK3710 PATA controller driver. Signed-off-by: Bartlomiej Zolnierkiewicz --- drivers/ata/Kconfig | 9 ++ drivers/ata/Makefile | 1 + drivers/ata/pata_bk3710.c | 382 ++ 3 files changed, 392 insertions(+) create mode 100644 d

[PATCH v3 0/5] ATA/ARM: convert ARM/DaVinci to use libata PATA drivers

2017-03-22 Thread Bartlomiej Zolnierkiewicz
Hi, This patchset adds Palmchip BK3710 IDE controller driver to libata and switches ARM/DaVinci to use it (instead of the old IDE driver). Sekhar, please check that it still works after changes, thanks. Changes since v2 (https://www.spinics.net/lists/arm-kernel/msg568597.html): - fixed 'checkpat

[PATCH v3 2/5] pata_bk3710: disable IORDY Timer on chipset initialization

2017-03-22 Thread Bartlomiej Zolnierkiewicz
Disable IORDY Timer as the driver doesn't handle IORDY Timer interrupt anyway. Suggested-by: Sergei Shtylyov Signed-off-by: Bartlomiej Zolnierkiewicz --- drivers/ata/pata_bk3710.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/ata/pata_bk3710.c b/drivers/ata/pat

[PATCH v3 3/5] pata_bk3710: clear status bits of BMISP on chipset initialization

2017-03-22 Thread Bartlomiej Zolnierkiewicz
Clear IORDYINT, INTRSTAT and DMAERROR bits of BMISP register (value '1' needs to be written to the bit to clear it). Suggested-by: Sergei Shtylyov Signed-off-by: Bartlomiej Zolnierkiewicz --- drivers/ata/pata_bk3710.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/a

[PATCH v3 5/5] ARM: davinci_all_defconfig: convert to use libata PATA

2017-03-22 Thread Bartlomiej Zolnierkiewicz
From: Sekhar Nori IDE subsystem has been deprecated since 2009 and the majority (if not all) of Linux distributions have switched to use libata for ATA support exclusively. However there are still some users (mostly old or/and embedded non-x86 systems) that have not converted from using IDE subs

[PATCH v3 4/5] ARM: davinci: add pata_bk3710 libata driver support

2017-03-22 Thread Bartlomiej Zolnierkiewicz
From: Sekhar Nori Signed-off-by: Sekhar Nori [b.zolnierkie: split from bigger patch + preserved old driver support] Signed-off-by: Bartlomiej Zolnierkiewicz --- arch/arm/mach-davinci/board-dm644x-evm.c | 3 ++- arch/arm/mach-davinci/board-dm646x-evm.c | 3 ++- arch/arm/mach-davinci/board-neu

Re: [PATCH net-next v2 4/5] net-next: ethernet: mediatek: add device_node of GMAC pointing into the netdev instance

2017-03-22 Thread Florian Fainelli
On 03/21/2017 02:35 AM, sean.w...@mediatek.com wrote: > From: Sean Wang > > the patch adds the setup of the corresponding device node of GMAC into the > netdev instance which could allow other modules such as DSA to find the > instance through the node in dt-bindings using of_find_net_device_by_n

Re: [PATCH net-next v2 3/5] net-next: ethernet: mediatek: add CDM able to recognize the tag for DSA

2017-03-22 Thread Florian Fainelli
On 03/21/2017 02:35 AM, sean.w...@mediatek.com wrote: > From: Sean Wang > > The patch adds the setup for allowing CDM can recognize these packets with > carrying port-distinguishing tag. Otherwise, these tagging packets will be > handled incorrectly by CDM. The setup is working out for general un

Re: [net-next PATCH 0/2] NAPI ID fixups related to busy polling

2017-03-22 Thread David Miller
From: Alexander Duyck Date: Mon, 20 Mar 2017 14:48:41 -0700 > These two patches are a couple of minor clean-ups related to busy polling. > The first one addresses the fact that we were trying to busy poll on > sender_cpu values instead of true NAPI IDs. The second addresses the fact > that there

Re: [PATCH net-next v2 5/5] net-next: dsa: add dsa support for Mediatek MT7530 switch

2017-03-22 Thread Andrew Lunn
> +static int > +core_read_mmd_indirect(struct mt7530_priv *priv, int prtad, int devad) > +{ > + struct mii_bus *bus = priv->bus; > + int value, ret; > + > + /* Write the desired MMD Devad */ > + ret = bus->write(bus, 0, MII_MMD_CTRL, devad); > + if (ret < 0) > + got

Re: [PATCH v7 1/3] Input: max11801_ts: Add missing of_match_table

2017-03-22 Thread Dmitry Torokhov
On Wed, Mar 22, 2017 at 04:36:46PM +0530, Jagan Teki wrote: > From: Jagan Teki > > Added missing of_match_table for max11801_ts driver with > compatible as "maxim,max11801_ts" > Why not "maxim,max11801"? Also, I think we'd need a binding document. > Cc: Dmitry Torokhov > Cc: Shawn Guo > Cc:

Re: [PATCH RT 1/1] remoteproc: Prevent schedule while atomic

2017-03-22 Thread Grygorii Strashko
On 03/22/2017 01:01 PM, Steven Rostedt wrote: On Wed, 22 Mar 2017 12:37:59 -0500 Julia Cartwright wrote: Which kernel were you testing on, here? From what I can tell, this should have been fixed with Thomas's commit: 2a1d3ab8986d ("genirq: Handle force threading of irqs with primary and

Re: [PATCH v7 1/3] Input: max11801_ts: Add missing of_match_table

2017-03-22 Thread Jagan Teki
On Thu, Mar 23, 2017 at 12:00 AM, Dmitry Torokhov wrote: > On Wed, Mar 22, 2017 at 04:36:46PM +0530, Jagan Teki wrote: >> From: Jagan Teki >> >> Added missing of_match_table for max11801_ts driver with >> compatible as "maxim,max11801_ts" >> > > Why not "maxim,max11801"? Also, I think we'd need a

Re: [PATCH net-next v2 5/5] net-next: dsa: add dsa support for Mediatek MT7530 switch

2017-03-22 Thread Florian Fainelli
On 03/21/2017 02:35 AM, sean.w...@mediatek.com wrote: > From: Sean Wang > > MT7530 is a 7-ports Gigabit Ethernet Switch that could be found on > Mediatek router platforms such as MT7623A or MT7623N platform which > includes 7-port Gigabit Ethernet MAC and 5-port Gigabit Ethernet PHY. > Among thes

Re: [RFC][PATCH 0/4] printk: introduce printing kernel thread

2017-03-22 Thread Peter Zijlstra
On Mon, Mar 06, 2017 at 09:45:50PM +0900, Sergey Senozhatsky wrote: > sysrq is potentially even trickier. can we always wake_up() kernel > thread from sysrq? there probably might be cases when we can't rely > on the scheduler. sysrq runs from interrupt context, right? Should be able to do wakeu

Re: [PATCH v7 1/3] Input: max11801_ts: Add missing of_match_table

2017-03-22 Thread Dmitry Torokhov
On Thu, Mar 23, 2017 at 12:05:17AM +0530, Jagan Teki wrote: > On Thu, Mar 23, 2017 at 12:00 AM, Dmitry Torokhov > wrote: > > On Wed, Mar 22, 2017 at 04:36:46PM +0530, Jagan Teki wrote: > >> From: Jagan Teki > >> > >> Added missing of_match_table for max11801_ts driver with > >> compatible as "max

Re: [PATCH 1/3] soc: qcom: smd: Transition client drivers from smd to rpmsg

2017-03-22 Thread David Miller
From: Bjorn Andersson Date: Mon, 20 Mar 2017 16:35:42 -0700 > By moving these client drivers to use RPMSG instead of the direct SMD > API we can reuse them ontop of the newly added GLINK wire-protocol > support found in the 820 and 835 Qualcomm platforms. > > As the new (RPMSG-based) and old SMD

Re: [PATCH 1/2] tty: serial_core: Add name field to uart_port struct

2017-03-22 Thread Andy Shevchenko
On Tue, Mar 21, 2017 at 3:36 PM, Vignesh R wrote: > Introduce a field to store name of uart_port that can be used to easily > identify uart port instances on a system that has more than one uart uart -> UART > instance. The name is of the form ttyXN(eg. ttyS0, ttyAMA0,..) where N > is number tha

Re: [PATCH 0/2] serial: Add name field to uart_port

2017-03-22 Thread Andy Shevchenko
On Tue, Mar 21, 2017 at 3:36 PM, Vignesh R wrote: > This series adds name attribute to uart_port struct inorder to store > name of the tty port that will help in identify different uart > instances. > This patch series is based on discussion here[1]. Please, use versioning for the series. This AF

Re: [PATCH RT 1/1] remoteproc: Prevent schedule while atomic

2017-03-22 Thread Julia Cartwright
On Wed, Mar 22, 2017 at 01:30:12PM -0500, Grygorii Strashko wrote: > > On 03/22/2017 01:01 PM, Steven Rostedt wrote: > > On Wed, 22 Mar 2017 12:37:59 -0500 > > Julia Cartwright wrote: > > > > > Which kernel were you testing on, here? From what I can tell, this > > > should have been fixed with

Re: [PATCH v7 1/3] Input: max11801_ts: Add missing of_match_table

2017-03-22 Thread Dmitry Torokhov
On Wed, Mar 22, 2017 at 11:44:21AM -0700, Dmitry Torokhov wrote: > On Thu, Mar 23, 2017 at 12:05:17AM +0530, Jagan Teki wrote: > > On Thu, Mar 23, 2017 at 12:00 AM, Dmitry Torokhov > > wrote: > > > On Wed, Mar 22, 2017 at 04:36:46PM +0530, Jagan Teki wrote: > > >> From: Jagan Teki > > >> > > >> A

Re: [PATCH 2/2] serial: 8250: 8250_core: Fix irq name for 8250 serial irq

2017-03-22 Thread Andy Shevchenko
On Tue, Mar 21, 2017 at 3:36 PM, Vignesh R wrote: > Using dev_name() as irq name during request_irq() might be misleading in > case of serial over PCI. Therefore identify serial port irqs using > uart_port's name field. This will help mapping irqs to appropriate > ttySN(where N is the serial port

[PATCH v2] HV: properly delay KVP packets when negotiation is in progress

2017-03-22 Thread Long Li
The host may send multiple negotiation packets (due to timeout) before the KVP user-mode daemon is connected. We need to defer processing those packets until the daemon is negotiated and connected. It's okay for guest to respond to all negotiation packets. In addition, the host may send multipl

<    2   3   4   5   6   7   8   9   10   >