Re: [PATCH] drm/simple_kms_helper: Fix NULL pointer dereference with no active CRTC

2018-02-20 Thread Oleksandr Andrushchenko
On 02/20/2018 01:17 PM, Daniel Vetter wrote: On Mon, Feb 19, 2018 at 04:58:43PM +0200, Oleksandr Andrushchenko wrote: On 02/19/2018 04:30 PM, Daniel Vetter wrote: On Tue, Feb 13, 2018 at 10:44:16AM +0200, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko It is possible that drm_si

[RFC PATCH tip] x86/acpi: u64_x86_init_noop() can be static

2018-02-20 Thread kbuild test robot
Fixes: 62d8b7fba8d3 ("x86/acpi: Add a new x86_init_acpi structure to x86_init_ops") Signed-off-by: Fengguang Wu --- 0 files changed

Re: [PATCH v2] staging:iio:meter: Add name to function definition arguments

2018-02-20 Thread Dan Carpenter
On Tue, Feb 20, 2018 at 09:21:56AM -0300, Rodrigo Siqueira wrote: > On 02/20, Dan Carpenter wrote: > > > On Mon, Feb 19, 2018 at 01:28:32PM -0300, rodrigosiqueira wrote: > > ^^^ > > This looks good, but you need to fix your from email header.

[tip:x86/boot 8/9] arch/x86/kernel/x86_init.c:33:5: sparse: symbol 'u64_x86_init_noop' was not declared. Should it be static?

2018-02-20 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/boot head: e9cb8fc2e5ca5996417f900ed5149bd9150f6abd commit: 62d8b7fba8d3ba9c046b7a1a95946c6aaf7c5da9 [8/9] x86/acpi: Add a new x86_init_acpi structure to x86_init_ops reproduce: # apt-get install sparse git c

Applied "regulator: Fix resume from suspend to idle" to the regulator tree

2018-02-20 Thread Mark Brown
The patch regulator: Fix resume from suspend to idle has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and s

Re: [PATCH 9/9] serial: xuartps: Fix out-of-bounds access through DT alias

2018-02-20 Thread Michal Simek
On 20.2.2018 13:27, Geert Uytterhoeven wrote: > Hi Michal, > > On Tue, Feb 20, 2018 at 12:27 PM, Michal Simek > wrote: >> On 20.2.2018 11:38, Geert Uytterhoeven wrote: >>> On Tue, Feb 20, 2018 at 11:22 AM, Michal Simek >>> wrote: On 20.2.2018 10:40, Geert Uytterhoeven wrote: > The cdn

Re: [PATCH] regulator: core: Handle PM_SUSPEND_TO_IDLE suspend_state_t

2018-02-20 Thread Mark Brown
On Tue, Feb 20, 2018 at 01:12:08PM +0100, Hans de Goede wrote: > I might just be looking at the wrong place and if so I'm sorry, but I > don't see any (additional) fixes related to this here: Seems to have got stuck somewhere, sorry - pushed now. signature.asc Description: PGP signature

Re: [PATCH v2] fs: fsnotify: account fsnotify metadata to kmemcg

2018-02-20 Thread Jan Kara
On Mon 19-02-18 21:07:28, Amir Goldstein wrote: > On Mon, Feb 19, 2018 at 3:50 PM, Jan Kara wrote: > [...] > > For fanotify without FAN_UNLIMITED_QUEUE the situation is similar as for > > inotify - IMO low practical impact, apps should generally handle queue > > overflow so I don't see a need for

Re: [PATCH v7 15/61] xarray: Add xa_load

2018-02-20 Thread Matthew Wilcox
On Tue, Feb 20, 2018 at 08:34:06AM +0100, Philippe Ombredanne wrote: > > +++ b/tools/testing/radix-tree/xarray-test.c > > @@ -0,0 +1,56 @@ > > +/* > > + * xarray-test.c: Test the XArray API > > + * Copyright (c) 2017 Microsoft Corporation > > + * > > + * This program is free software; you can redi

Re: [PATCH] drm/simple_kms_helper: Fix NULL pointer dereference with no active CRTC

2018-02-20 Thread Daniel Vetter
On Tue, Feb 20, 2018 at 02:36:05PM +0200, Oleksandr Andrushchenko wrote: > On 02/20/2018 01:17 PM, Daniel Vetter wrote: > > On Mon, Feb 19, 2018 at 04:58:43PM +0200, Oleksandr Andrushchenko wrote: > > > On 02/19/2018 04:30 PM, Daniel Vetter wrote: > > > > On Tue, Feb 13, 2018 at 10:44:16AM +0200, O

Re: [PATCH] drm/simple_kms_helper: Fix NULL pointer dereference with no active CRTC

2018-02-20 Thread Oleksandr Andrushchenko
On 02/20/2018 02:49 PM, Daniel Vetter wrote: On Tue, Feb 20, 2018 at 02:36:05PM +0200, Oleksandr Andrushchenko wrote: On 02/20/2018 01:17 PM, Daniel Vetter wrote: On Mon, Feb 19, 2018 at 04:58:43PM +0200, Oleksandr Andrushchenko wrote: On 02/19/2018 04:30 PM, Daniel Vetter wrote: On Tue, Feb

Re: [PATCH v2] pinctrl: pinctrl-single: Fix pcs_request_gpio() when bits_per_mux != 0

2018-02-20 Thread Andy Shevchenko
On Mon, Feb 19, 2018 at 11:57 PM, David Lechner wrote: > This fixes pcs_request_gpio() in the pinctrl-single driver when > bits_per_mux != 0. It appears this was overlooked when the multiple > pins per register feature was added. > > Fixes: 4e7e8017a80e ("pinctrl: pinctrl-single: enhance to config

[PATCH 3/4] drm/ttm: handle already locked BOs during eviction and swapout.

2018-02-20 Thread Christian König
This solves the problem that when we swapout a BO from a domain we sometimes couldn't make room for it because holding the lock blocks all other BOs with this reservation object. Signed-off-by: Christian König --- drivers/gpu/drm/ttm/ttm_bo.c | 33 - 1 file change

[PATCH 1/4] locking/ww_mutex: add ww_mutex_is_owned_by function v3

2018-02-20 Thread Christian König
amdgpu needs to verify if userspace sends us valid addresses and the simplest way of doing this is to check if the buffer object is locked with the ticket of the current submission. Clean up the access to the ww_mutex internals by providing a function for this and extend the check to the thread ow

[PATCH 4/4] drm/ttm: keep BOs reserved until end of eviction

2018-02-20 Thread Christian König
This avoids problems when BOs are evicted but directly moved back into the domain from other threads. Signed-off-by: Christian König --- drivers/gpu/drm/ttm/ttm_bo.c | 37 + 1 file changed, 29 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/ttm/ttm

[PATCH v2] usb: host: ehci-platform: add support for optional external vbus supply

2018-02-20 Thread Amelie Delaunay
On some boards, especially when vbus supply requires large current, and the charge pump on the PHY isn't enough, an external vbus power switch may be used. Add support for this optional external vbus supply in ehci-platform. Signed-off-by: Amelie Delaunay --- Changes in v2: * Address Roger Quad

[PATCH 2/4] drm/amdgpu: use new ww_mutex_is_owned_by function

2018-02-20 Thread Christian König
Instead of accessing ww_mutex internals directly use the provided function to check if the ww_mutex was indeed locked by the current command submission. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d

[PATCH 0/3] drm/rockchip: VOP interrupt fixes

2018-02-20 Thread Marc Zyngier
This small series fixes a number of issues that I found while trying to get kexec working on the Chromebook Plus (aka rk3399-gru-kevin) in order to use it as some sort of interactive bootloader. The main issue is that the vop driver expects the interrupts to be cleared and disabled when booting. N

[PATCH 2/3] drm/rockchip: Do not use memcpy for MMIO addresses

2018-02-20 Thread Marc Zyngier
memcpy is only meant to be used for memory, and only that. MMIO accessors should be used to access MMIO regions, preferably the ones that correspond to the size of the register accessed. Let's convert the bulk register copy to writel/readl_relaxed, which is the correct API. Signed-off-by: Marc Zy

[PATCH 3/3] drm/rockchip: Don't use spin_lock_irqsave in interrupt context

2018-02-20 Thread Marc Zyngier
The rockchip DRM driver is quite careful to disable interrupts when taking a lock that is also taken in interrupt context, which is a good thing. What is a bit over the top is to use spin_lock_irqsave when already in interrupt context, as you cannot take another interrupt again, and disabling inte

[PATCH 1/3] drm/rockchip: Clear all interrupts before requesting the IRQ

2018-02-20 Thread Marc Zyngier
Calling request_irq() followed by disable_irq() is usually a bad idea, specially if the interrupt can be pending, and you're not yet in a position to handle it. This is exactly what happens on my kevin system when rebooting in a second kernel using kexec: Some interrupt is left pending from the pr

Re: [PATCH 4/7] sched/fair: Avoid unnecessary balancing of asymmetric capacity groups

2018-02-20 Thread Peter Zijlstra
On Thu, Feb 15, 2018 at 04:20:51PM +, Morten Rasmussen wrote: > +/* > + * group_similar_cpu_capacity: Returns true if the minimum capacity of the > + * compared groups differ by less than 12.5%. > + */ > +static inline bool > +group_similar_cpu_capacity(struct sched_group *sg, struct sched_grou

Re: [PATCH] tools/memory-model: remove rb-dep, smp_read_barrier_depends, and lockless_dereference

2018-02-20 Thread Peter Zijlstra
On Mon, Feb 19, 2018 at 12:14:45PM -0500, Alan Stern wrote: > Note that operations like atomic_add_unless() already include memory > barriers. It is valid for atomic_add_unless() to not imply any barriers when the addition doesn't happen.

Re: [PATCH] tools/memory-model: remove rb-dep, smp_read_barrier_depends, and lockless_dereference

2018-02-20 Thread Peter Zijlstra
On Mon, Feb 19, 2018 at 11:41:23AM -0800, Paul E. McKenney wrote: > On Mon, Feb 19, 2018 at 12:14:45PM -0500, Alan Stern wrote: > > This leaves us with a question: Do we want to change the kernel by > > adding memory barriers after unsuccessful RMW operations on Alpha, or > > do we want to change t

Re: [PATCH] tools/memory-model: remove rb-dep, smp_read_barrier_depends, and lockless_dereference

2018-02-20 Thread Peter Zijlstra
On Mon, Feb 19, 2018 at 12:14:45PM -0500, Alan Stern wrote: > This leaves us with a question: Do we want to change the kernel by > adding memory barriers after unsuccessful RMW operations on Alpha, or > do we want to change the model by excluding such operations from > address dependencies? I thin

Re: [RFC PATCH 3/5] asm-generic/bitops/atomic.h: Rewrite using atomic_fetch_*

2018-02-20 Thread Peter Zijlstra
On Mon, Feb 19, 2018 at 02:01:51PM +, Will Deacon wrote: > If it's defined, then we could consider using cmpxchg64 to build atomic64 > instead of the locks. But even then, I'm not sure we're really helping > anybody out in practice. yeah, most 64bit archs have more atomics or ll/sc and would n

Re: [PATCH] tools/memory-model: remove rb-dep, smp_read_barrier_depends, and lockless_dereference

2018-02-20 Thread Peter Zijlstra
On Tue, Feb 20, 2018 at 10:33:47AM +0100, Andrea Parri wrote: > I'd like to continue to treat R[once] and R*[once] equally if possible. > Given the (unconditional) smp_read_barrier_depends in READ_ONCE and in > atomics, it seems reasonable to have it unconditionally in cmpxchg. > > As with the fol

Re: [PATCH v2] usb: host: ehci-platform: add support for optional external vbus supply

2018-02-20 Thread Felipe Balbi
Hi, Amelie Delaunay writes: > On some boards, especially when vbus supply requires large current, > and the charge pump on the PHY isn't enough, an external vbus power switch > may be used. > Add support for this optional external vbus supply in ehci-platform. > > Signed-off-by: Amelie Delaunay

Re: [PATCH 4/4] fs/dcache: Avoid the try_lock loops in dentry_kill()

2018-02-20 Thread Peter Zijlstra
On Tue, Feb 20, 2018 at 12:34:57AM +0100, John Ogness wrote: > Implementation 2: Using switch on a dentry_lock_inode() that returns a > tristate value. Does not support branch prediction. This approach is > probably easiest to understand. > > /* >* Lock the inode. Mig

Re: [PATCH v5 3/3] sched: update blocked load when newly idle

2018-02-20 Thread Peter Zijlstra
On Wed, Feb 14, 2018 at 04:26:46PM +0100, Vincent Guittot wrote: > When NEWLY_IDLE load balance is not triggered, we might need to update the > blocked load anyway. We can kick an ilb so an idle CPU will take care of > updating blocked load or we can try to update them locally before entering > idl

Re: [PATCH 4/4] fs/dcache: Avoid the try_lock loops in dentry_kill()

2018-02-20 Thread Peter Zijlstra
On Tue, Feb 20, 2018 at 09:39:37AM +0100, Peter Zijlstra wrote: > On Tue, Feb 20, 2018 at 12:34:57AM +0100, John Ogness wrote: > > Implementation 2: Using switch on a dentry_lock_inode() that returns a > > tristate value. Does not support branch prediction. This approach is > > probably easiest to

Re: [PATCH 2/7] sched/fair: Add group_misfit_task load-balance type

2018-02-20 Thread Peter Zijlstra
On Mon, Feb 19, 2018 at 02:56:44PM +0100, Peter Zijlstra wrote: > On Thu, Feb 15, 2018 at 04:20:49PM +, Morten Rasmussen wrote: > > @@ -6733,9 +6758,12 @@ done: __maybe_unused > > if (hrtick_enabled(rq)) > > hrtick_start_fair(rq, p); > > > > + update_misfit_status(p, rq); >

Re: [PATCH 1/3] locking/ww_mutex: cleanup lock->ctx usage in amdgpu

2018-02-20 Thread Peter Zijlstra
This really should've been Cc'ed to me. On Thu, Feb 15, 2018 at 03:19:42PM +0100, Christian König wrote: > diff --git a/include/linux/ww_mutex.h b/include/linux/ww_mutex.h > index 39fda195bf78..dd580db289e8 100644 > --- a/include/linux/ww_mutex.h > +++ b/include/linux/ww_mutex.h > @@ -358,4 +358,

Re: [PATCH 4.10 070/111] audit: fix auditd/kernel connection state tracking

2018-02-20 Thread Peter Zijlstra
On Tue, Mar 28, 2017 at 02:30:56PM +0200, Greg Kroah-Hartman wrote: > 4.10-stable review patch. If anyone has any objections, please let me know. > + if (!(auditd_test_task(current) || > + (current == __mutex_owner(&audit_cmd_mutex { > + long stime = audit_backlog_wa

Re: [PATCH 2/7] sched/fair: Add group_misfit_task load-balance type

2018-02-20 Thread Peter Zijlstra
On Thu, Feb 15, 2018 at 04:20:49PM +, Morten Rasmussen wrote: > @@ -6733,9 +6758,12 @@ done: __maybe_unused > if (hrtick_enabled(rq)) > hrtick_start_fair(rq, p); > > + update_misfit_status(p, rq); > + > return p; > > idle: > + update_misfit_status(NULL, rq

Re: [PATCH 4/7] sched/fair: Avoid unnecessary balancing of asymmetric capacity groups

2018-02-20 Thread Peter Zijlstra
On Mon, Feb 19, 2018 at 03:50:12PM +0100, Peter Zijlstra wrote: > On Thu, Feb 15, 2018 at 04:20:51PM +, Morten Rasmussen wrote: > > On systems with asymmetric cpu capacities, a skewed load distribution > > might yield better throughput than balancing load per group capacity. > > For example, pr

Re: [PATCH 4/7] sched/fair: Avoid unnecessary balancing of asymmetric capacity groups

2018-02-20 Thread Peter Zijlstra
On Thu, Feb 15, 2018 at 04:20:51PM +, Morten Rasmussen wrote: > On systems with asymmetric cpu capacities, a skewed load distribution > might yield better throughput than balancing load per group capacity. > For example, preferring high capacity cpus for compute intensive tasks > leaving low ca

Re: [RFC PATCH 3/5] asm-generic/bitops/atomic.h: Rewrite using atomic_fetch_*

2018-02-20 Thread Peter Zijlstra
On Mon, Feb 19, 2018 at 02:01:43PM +, Will Deacon wrote: > > The non serializing __clear_bit() was getting "lost" > > > > 80543b8e: ld_s r2,[r13,0] <--- (A) Finds PG_locked is set > > 80543b90: or r3,r2,1<--- (B) other core unlocks right > > here

Re: [RFCv4 08/21] [WAR] v4l2-ctrls: do not clone non-standard controls

2018-02-20 Thread Hans Verkuil
On 02/20/18 05:44, Alexandre Courbot wrote: > Only standard controls can be successfully cloned: handler_new_ref, used > by v4l2_ctrl_request_clone(), forcibly calls v4l2_ctrl_new_std() which > fails to find custom controls names, and we eventually hit the condition > that name == NULL in v4l2_ctrl

Re: [PATCH 1/3] locking/ww_mutex: cleanup lock->ctx usage in amdgpu

2018-02-20 Thread Christian König
Am 20.02.2018 um 13:35 schrieb Peter Zijlstra: This really should've been Cc'ed to me. On Thu, Feb 15, 2018 at 03:19:42PM +0100, Christian König wrote: diff --git a/include/linux/ww_mutex.h b/include/linux/ww_mutex.h index 39fda195bf78..dd580db289e8 100644 --- a/include/linux/ww_mutex.h +++ b/i

[PATCH] md: raid5: avoid string overflow warning

2018-02-20 Thread Arnd Bergmann
gcc warns about a possible overflow of the kmem_cache string, when adding four characters to a string of the same length: drivers/md/raid5.c: In function 'setup_conf': drivers/md/raid5.c:2207:34: error: '-alt' directive writing 4 bytes into a region of size between 1 and 32 [-Werror=format-overfl

Re: [PATCH 1/4] locking/ww_mutex: add ww_mutex_is_owned_by function v3

2018-02-20 Thread Peter Zijlstra
On Tue, Feb 20, 2018 at 01:58:26PM +0100, Christian König wrote: > amdgpu needs to verify if userspace sends us valid addresses and the simplest > way of doing this is to check if the buffer object is locked with the ticket > of the current submission. > > Clean up the access to the ww_mutex inter

Re: [PATCH] blk: optimization for classic polling

2018-02-20 Thread Peter Zijlstra
On Sun, May 30, 2083 at 09:51:06AM +0530, Nitesh Shetty wrote: > This removes the dependency on interrupts to wake up task. Set task > state as TASK_RUNNING, if need_resched() returns true, > while polling for IO completion. > Earlier, polling task used to sleep, relying on interrupt to wake it up.

Re: [PATCH 1/3] locking/ww_mutex: cleanup lock->ctx usage in amdgpu

2018-02-20 Thread Peter Zijlstra
On Tue, Feb 20, 2018 at 02:08:26PM +0100, Christian König wrote: > Am 20.02.2018 um 13:35 schrieb Peter Zijlstra: > > > +static inline bool ww_mutex_is_owned_by(struct ww_mutex *lock, > > > + struct task_struct *task, > > > + struct ww

Re: [PATCH 4.10 070/111] audit: fix auditd/kernel connection state tracking

2018-02-20 Thread Paul Moore
On Tue, Feb 20, 2018 at 7:37 AM, Peter Zijlstra wrote: > On Tue, Mar 28, 2017 at 02:30:56PM +0200, Greg Kroah-Hartman wrote: >> 4.10-stable review patch. If anyone has any objections, please let me know. > >> + if (!(auditd_test_task(current) || >> + (current == __mutex_owner(&audit

Re: [RFCv4 09/21] v4l2: add request API support

2018-02-20 Thread Hans Verkuil
On 02/20/18 05:44, Alexandre Courbot wrote: > Add a v4l2 request entity data structure that takes care of storing the > request-related state of a V4L2 device ; in this case, its controls. > > Signed-off-by: Alexandre Courbot > --- > drivers/media/v4l2-core/Makefile | 1 + > drivers/medi

Re: [PATCH 1/4] locking/ww_mutex: add ww_mutex_is_owned_by function v3

2018-02-20 Thread Christian König
Am 20.02.2018 um 14:12 schrieb Peter Zijlstra: On Tue, Feb 20, 2018 at 01:58:26PM +0100, Christian König wrote: amdgpu needs to verify if userspace sends us valid addresses and the simplest way of doing this is to check if the buffer object is locked with the ticket of the current submission. C

Re: [PATCH] watchdog: add SPDX identifiers for watchdog subsystem

2018-02-20 Thread Eric Anholt
Marcus Folkesson writes: > - Add SPDX identifier > - Remove boiler plate license text > - If MODULE_LICENSE and boiler plate does not match, go for boiler plate > license > > Signed-off-by: Marcus Folkesson For bcm2835, Reviewed-by: Eric Anholt signature.asc Description: PGP signature

[PATCH] iio:dummy: Fix coding style in Kconfig

2018-02-20 Thread Rodrigo Siqueira
This patch fixes the checkpatch.pl warning: drivers/iio/dummy/Kconfig:21: WARNING: please write a paragraph that describes the config symbol fully drivers/iio/dummy/Kconfig:29: WARNING: please write a paragraph that describes the config symbol fully This patch expands the explanation about IIO_DU

[PATCH net-next] tcp: remove the hardcode in the definition of TCPF Macro

2018-02-20 Thread Yafang Shao
TCPF_ macro depends on the definition of TCP_ macro. So it is better to define them with TCP_ marco. Signed-off-by: Yafang Shao --- include/net/tcp_states.h | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/include/net/tcp_states.h b/include/net/tcp

Re: [PATCH] drm/simple_kms_helper: Fix NULL pointer dereference with no active CRTC

2018-02-20 Thread Oleksandr Andrushchenko
On 02/20/2018 02:53 PM, Oleksandr Andrushchenko wrote: On 02/20/2018 02:49 PM, Daniel Vetter wrote: On Tue, Feb 20, 2018 at 02:36:05PM +0200, Oleksandr Andrushchenko wrote: On 02/20/2018 01:17 PM, Daniel Vetter wrote: On Mon, Feb 19, 2018 at 04:58:43PM +0200, Oleksandr Andrushchenko wrote: On

Re: [PATCH ipmi/kcs_bmc v2] ipmi: kcs_bmc: make the code be more clean

2018-02-20 Thread Corey Minyard
On 02/19/2018 09:55 AM, Haiyue Wang wrote: --- When you use ---, it means everything following is not in the commit text, including your signature. v1 -> v2: Do you want me to fold this into the previous patch?  That's generally not how things work, a new patch is fine for this, with a list

Re: [PATCH v7 00/42] ARM: davinci: convert to common clock framework​

2018-02-20 Thread Bartosz Golaszewski
2018-02-19 21:21 GMT+01:00 David Lechner : > This series converts mach-davinci to use the common clock framework. > > The series works like this, the first 19 patches create new clock drivers > using the common clock framework. There are basically 3 groups of clocks - > PLL, PSC and CFGCHIP (syscon

Re: [PATCH 05/17] trace doc: convert trace/ftrace.txt to rst format

2018-02-20 Thread Du, Changbin
Hi, On Tue, Feb 20, 2018 at 08:28:24AM +0100, Philippe Ombredanne wrote: > Changbin, Steven, > > On Sat, Feb 17, 2018 at 6:39 AM, wrote: > > From: Changbin Du > > > > This converts the plain text documentation to reStructuredText format and > > add it into Sphinx TOC tree. No essential content

Re: [PATCH 11/15] gpio: rcar: Add R-Car M3-N compatible string

2018-02-20 Thread jacopo mondi
Hi Geert, On Wed, Feb 14, 2018 at 03:05:05PM +0100, Geert Uytterhoeven wrote: > On Tue, Feb 13, 2018 at 10:45 AM, Jacopo Mondi > wrote: > > Add compatible string for R-Car M3-N (r8a77965) in gpio-rcar. > > > > Signed-off-by: Jacopo Mondi > > > --- a/drivers/gpio/gpio-rcar.c > > +++ b/drivers/gpi

Re: [PATCH 1/2] dmaengine: Introduce DW AXI DMAC driver

2018-02-20 Thread Andy Shevchenko
On Tue, Feb 20, 2018 at 2:30 PM, Eugeniy Paltsev wrote: > This patch adds support for the DW AXI DMAC controller. > DW AXI DMAC is a part of HSDK development board from Synopsys. > > In this driver implementation only DMA_MEMCPY transfers are > supported. Just few comments, code looks fine I hope

Re: [PATCH 11/15] gpio: rcar: Add R-Car M3-N compatible string

2018-02-20 Thread Geert Uytterhoeven
Hi Jacopo, On Tue, Feb 20, 2018 at 2:35 PM, jacopo mondi wrote: > On Wed, Feb 14, 2018 at 03:05:05PM +0100, Geert Uytterhoeven wrote: >> On Tue, Feb 13, 2018 at 10:45 AM, Jacopo Mondi >> wrote: >> > Add compatible string for R-Car M3-N (r8a77965) in gpio-rcar. >> > >> > Signed-off-by: Jacopo Mon

Re: [PATCH v2 2/2] mfd: arizona: Update DT doc to support more standard reset binding

2018-02-20 Thread Rob Herring
On Mon, Feb 19, 2018 at 7:30 AM, Charles Keepax wrote: > Signed-off-by: Charles Keepax > --- > > Changes since v1: > - Drop vendor prefix from new binding since it is a standard property. > > Thanks, > Charles > > Documentation/devicetree/bindings/mfd/arizona.txt | 6 +- > 1 file changed, 5

Re: Applied "ASoC: topology: Add missing clock gating parameter when parsing hw_configs" to the asoc tree

2018-02-20 Thread Mark Brown
On Tue, Feb 20, 2018 at 12:09:18PM +, Mark Brown wrote: > The patch > >ASoC: topology: Add missing clock gating parameter when parsing hw_configs > > has been applied to the asoc tree at > >https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git This broke the build so I

Re: [PATCH v3 0/3] Enable CONFIG_VT support for S390

2018-02-20 Thread Farhan Ali
On 02/20/2018 04:43 AM, Christian Borntraeger wrote: Added to my linux next tree to check for any fallout. Thanks!

Re: [RESEND][PATCH 0/3] exec: Pin stack limit during exec

2018-02-20 Thread Michal Hocko
On Wed 14-02-18 12:06:33, Kees Cook wrote: > Attempts to solve problems with the stack limit changing during exec > continue to be frustrated[1][2]. In addition to the specific issues around > the Stack Clash family of flaws, Andy Lutomirski pointed out[3] other > places during exec where the stack

Re: [PATCH v2] usb: host: ehci-platform: add support for optional external vbus supply

2018-02-20 Thread Amelie DELAUNAY
Hi, On 02/20/2018 02:02 PM, Felipe Balbi wrote: > > Hi, > > Amelie Delaunay writes: >> On some boards, especially when vbus supply requires large current, >> and the charge pump on the PHY isn't enough, an external vbus power switch >> may be used. >> Add support for this optional external vbus

Calling Hive Engineers

2018-02-20 Thread Ywe Cærlyn
Do you dream for the perfect OS? Do you want to be a Hive Engineer? See our youtube channel: https://www.youtube.com/channel/UCR3gmLVjHS5A702wo4bol_Q Best Regards, Hive Engineers (Formerly Xay Glu Deliar Hackers)

Re: Timekeeping warning during resume from suspend to disk

2018-02-20 Thread Ivid Suvarna
Hi Greg, > 4.1.15 is a kernel that is very old and obsolete (released almost 3 > years ago, and tens of thousands of changes old.) Please try something > newer and more modern like 4.15. If the issue is still there, the > community will be glad to help you out. > > If you are stuck at that old k

[PATCH] staging: pi433: fix CamelCase for txStartCondition

2018-02-20 Thread Valentin Vidic
Fixes checkpatch warning: CHECK: Avoid CamelCase: Signed-off-by: Valentin Vidic --- drivers/staging/pi433/pi433_if.h | 2 +- drivers/staging/pi433/rf69.c | 4 ++-- drivers/staging/pi433/rf69.h | 2 +- drivers/staging/pi433/rf69_enum.h | 2 +- 4 files changed, 5 insertions(+), 5 de

Re: [PATCH 1/4] locking/ww_mutex: add ww_mutex_is_owned_by function v3

2018-02-20 Thread Peter Zijlstra
On Tue, Feb 20, 2018 at 02:26:55PM +0100, Christian König wrote: > > > +static inline bool ww_mutex_is_owned_by(struct ww_mutex *lock, > > > + struct ww_acquire_ctx *ctx) > > > +{ > > > + if (ctx) > > > + return likely(READ_ONCE(lock->ctx) == ctx); > > > + el

Re: [PATCH v2] usb: host: ehci-platform: add support for optional external vbus supply

2018-02-20 Thread Roger Quadros
Hi, On 20/02/18 14:58, Amelie Delaunay wrote: > On some boards, especially when vbus supply requires large current, > and the charge pump on the PHY isn't enough, an external vbus power switch > may be used. > Add support for this optional external vbus supply in ehci-platform. > > Signed-off-by:

Re: [PATCH 2/2] i2c: add support for Socionext SynQuacer I2C controller

2018-02-20 Thread Andy Shevchenko
On Tue, Feb 20, 2018 at 11:08 AM, Ard Biesheuvel wrote: > This is a cleaned up version of the I2C controller driver for > the Fujitsu F_I2C IP, which was never supported upstream, and > has now been incorporated into the Socionext SynQuacer SoC. > Typical issues below. > +/* SPDX-License-Identif

Re: [PATCH 1/4] locking/ww_mutex: add ww_mutex_is_owned_by function v3

2018-02-20 Thread Daniel Vetter
On Tue, Feb 20, 2018 at 01:58:26PM +0100, Christian König wrote: > amdgpu needs to verify if userspace sends us valid addresses and the simplest > way of doing this is to check if the buffer object is locked with the ticket > of the current submission. > > Clean up the access to the ww_mutex inter

[PATCH] staging: pi433: fix CamelCase for thresholdDecrement

2018-02-20 Thread Valentin Vidic
Fixes checkpatch warning: CHECK: Avoid CamelCase: Signed-off-by: Valentin Vidic --- drivers/staging/pi433/Documentation/pi433.txt | 2 +- drivers/staging/pi433/pi433_if.h | 2 +- drivers/staging/pi433/rf69.c | 4 ++-- drivers/staging/pi433/rf69.h

Re: [PATCH] PCI: stop crashing in pci_release_resource

2018-02-20 Thread Andy Shevchenko
On Tue, Feb 20, 2018 at 10:58 AM, Christian König wrote: > Is it entirely possible that the BIOS wasn't able to assign resources to > a device. In this case don't crash in pci_release_resource() when we try > to resize the resource. > struct resource *res = dev->resource + resno; > > +

Re: [PATCH 4.10 070/111] audit: fix auditd/kernel connection state tracking

2018-02-20 Thread Peter Zijlstra
On Tue, Feb 20, 2018 at 08:25:21AM -0500, Paul Moore wrote: > On Tue, Feb 20, 2018 at 7:37 AM, Peter Zijlstra wrote: > > On Tue, Mar 28, 2017 at 02:30:56PM +0200, Greg Kroah-Hartman wrote: > >> 4.10-stable review patch. If anyone has any objections, please let me > >> know. > > > >> + if (!(

RE: [PATCH 2/2] x86/speculation: Support "Enhanced IBRS" on future CPUs

2018-02-20 Thread Van De Ven, Arjan
> >> For bonus points: What should happen to a VM that is live migrated > >> from one hypervisor to another, and the hypervisors have different > >> IBRS support? > > > > Doctor Doctor it hurts when I do this > > > > Migration tends to only work between HV's that are relatively > > homogeneous

Re: [PATCH 1/2 v3] tpm: cmd_ready command can be issued only after granting locality

2018-02-20 Thread Jarkko Sakkinen
On Mon, 2018-02-19 at 13:27 +0200, Jarkko Sakkinen wrote: > On Wed, Feb 14, 2018 at 03:43:18PM +0200, Tomas Winkler wrote: > > if (need_locality && chip->ops->relinquish_locality) { > > - chip->ops->relinquish_locality(chip, chip- > > >locality); > > + /* this coud be on err

Re: [PATCH v2 2/2] power: reset: gpio-poweroff: Add support for timeout from DT

2018-02-20 Thread Andy Shevchenko
On Tue, Feb 20, 2018 at 12:59 AM, Moritz Fischer wrote: > Add support for reading a timeout value from devicetree. > Fall back to previous default of 3s if nothing is specified. > + of_property_read_u32(pdev->dev.of_node, "timeout_ms", &timeout); Perhaps stop being OF-centric by using dev

[PATCH] staging: pi433: fix CamelCase for addressFiltering

2018-02-20 Thread Valentin Vidic
Fixes checkpatch warning: CHECK: Avoid CamelCase: Signed-off-by: Valentin Vidic --- drivers/staging/pi433/pi433_if.c | 4 ++-- drivers/staging/pi433/pi433_if.h | 2 +- drivers/staging/pi433/rf69.c | 4 ++-- drivers/staging/pi433/rf69.h | 2 +- drivers/staging/pi433/rf69_enum.h |

Re: [PATCH 2/2 v3] tpm: separate cmd_ready/go_idle from runtime_pm

2018-02-20 Thread Jarkko Sakkinen
On Mon, 2018-02-19 at 13:52 +0200, Jarkko Sakkinen wrote: > On Wed, Feb 14, 2018 at 03:43:19PM +0200, Tomas Winkler wrote: > > We cannot use go_idle cmd_ready commands via runtime_pm handles > > as with the introduction of localities this is no longer an > > optional > > feature, while runtime pm c

Dear user

2018-02-20 Thread ADMIN
Dear user Your mailbox has exceeded the storage limit of 20GB set by the administrator, you are currently running at 20.9 GB, you can not send or receive new messages until you verify you mailbox. Re-validate your account by mail, please fill and Send the data below to verify and update

Re: [PATCH v2 1/2] dt-bindings: power: reset: gpio-poweroff: Add 'timeout_ms' property

2018-02-20 Thread Rob Herring
On Mon, Feb 19, 2018 at 4:59 PM, Moritz Fischer wrote: > Add 'timeout_ms' property to support boards where the 3s timeout that the > current driver defaults to is too short. > > Signed-off-by: Moritz Fischer > --- > > Changes from v1: > - Addressed Rob's feedback (timeout -> timeout_ms) > - Added

Re: [PATCH 1/8] clk: Add clk_bulk_alloc functions

2018-02-20 Thread Robin Murphy
Hi Marek, On 20/02/18 09:36, Marek Szyprowski wrote: Hi Robin, On 2018-02-19 17:29, Robin Murphy wrote: Hi Maciej, On 19/02/18 15:43, Maciej Purski wrote: When a driver is going to use clk_bulk_get() function, it has to initialize an array of clk_bulk_data, by filling its id fields. Add a n

Re: [PATCH v2] tpm: use kmemdup() to copy the event log

2018-02-20 Thread Javier Martinez Canillas
On 02/20/2018 12:41 PM, Jarkko Sakkinen wrote: > Replaced kmalloc() + memcpy() in tpm_eventlog_efi.c and > tpm_eventlog_of.c. > > Signed-off-by: Jarkko Sakkinen > --- Looks good to me. Reviewed-by: Javier Martinez Canillas Best regards, -- Javier Martinez Canillas Software Engineer - Desktop

Re: [PATCH v14 1/9] LIB: Introduce a generic PIO mapping method

2018-02-20 Thread Andy Shevchenko
On Mon, Feb 19, 2018 at 7:48 PM, John Garry wrote: > From: Zhichang Yuan > > In commit 41f8bba7f555 ("of/pci: Add pci_register_io_range() and > pci_pio_to_address()"), a new I/O space management was supported. With > that driver, the I/O ranges configured for PCI/PCIe hosts on some > architecture

Re: [PATCH 1/4] locking/ww_mutex: add ww_mutex_is_owned_by function v3

2018-02-20 Thread Christian König
Am 20.02.2018 um 14:57 schrieb Peter Zijlstra: On Tue, Feb 20, 2018 at 02:26:55PM +0100, Christian König wrote: +static inline bool ww_mutex_is_owned_by(struct ww_mutex *lock, + struct ww_acquire_ctx *ctx) +{ + if (ctx) + return likely(RE

[PATCH] scsi: ufs: add trace event for ufs upiu

2018-02-20 Thread Ohad Sharabi
Add UFS Protocol Information Units(upiu) trace events for ufs driver, used to trace various ufs transaction types- command, task-management and device management. The trace-point format is generic and can be easily adapted to trace other upius if needed. Currently tracing ufs transaction of type 'd

Re: [PATCH v14 5/9] OF: Add missing I/O range exception for indirect-IO devices

2018-02-20 Thread Andy Shevchenko
On Mon, Feb 19, 2018 at 7:48 PM, John Garry wrote: > From: Zhichang Yuan > > There are some special ISA/LPC devices that work on a specific I/O range > where it is not correct to specify a 'ranges' property in DTS parent node > as cpu addresses translated from DTS node are only for memory space o

Re: [PATCH 2/2] x86/speculation: Support "Enhanced IBRS" on future CPUs

2018-02-20 Thread Paolo Bonzini
On 20/02/2018 15:08, Van De Ven, Arjan wrote: For bonus points: What should happen to a VM that is live migrated from one hypervisor to another, and the hypervisors have different IBRS support? >>> >>> Doctor Doctor it hurts when I do this >>> >>> Migration tends to only work be

Re: [PATCH v2] usb: host: ehci-platform: add support for optional external vbus supply

2018-02-20 Thread Amelie DELAUNAY
Hi, On 02/20/2018 03:00 PM, Roger Quadros wrote: > Hi, > > On 20/02/18 14:58, Amelie Delaunay wrote: >> On some boards, especially when vbus supply requires large current, >> and the charge pump on the PHY isn't enough, an external vbus power switch >> may be used. >> Add support for this optiona

Re: [PATCH] tools/memory-model: remove rb-dep, smp_read_barrier_depends, and lockless_dereference

2018-02-20 Thread Paul E. McKenney
On Mon, Feb 19, 2018 at 06:44:13PM +0100, Peter Zijlstra wrote: > On Mon, Feb 19, 2018 at 12:14:45PM -0500, Alan Stern wrote: > > Note that operations like atomic_add_unless() already include memory > > barriers. > > It is valid for atomic_add_unless() to not imply any barriers when the > additio

[PATCH] locking/ww_mutex: add ww_mutex_is_owned_by function v4

2018-02-20 Thread Christian König
amdgpu needs to verify if userspace sends us valid addresses and the simplest way of doing this is to check if the buffer object is locked with the ticket of the current submission. Clean up the access to the ww_mutex internals by providing a function for this and extend the check to the thread ow

Re: [PATCH] tools/memory-model: remove rb-dep, smp_read_barrier_depends, and lockless_dereference

2018-02-20 Thread Paul E. McKenney
On Mon, Feb 19, 2018 at 09:28:44PM +0100, Peter Zijlstra wrote: > On Mon, Feb 19, 2018 at 11:41:23AM -0800, Paul E. McKenney wrote: > > On Mon, Feb 19, 2018 at 12:14:45PM -0500, Alan Stern wrote: > > > This leaves us with a question: Do we want to change the kernel by > > > adding memory barriers a

Re: [PATCH v14 6/9] HISI LPC: Support the LPC host on Hip06/Hip07 with DT bindings

2018-02-20 Thread Andy Shevchenko
On Mon, Feb 19, 2018 at 7:48 PM, John Garry wrote: > From: Zhichang Yuan > > The low-pin-count(LPC) interface of Hip06/Hip07 accesses the peripherals in > I/O port addresses. This patch implements the LPC host controller driver > which perform the I/O operations on the underlying hardware. > We d

Re: [PATCH] disable sparse warnings about unknown attributes

2018-02-20 Thread Masahiro Yamada
2018-02-16 6:07 GMT+09:00 Luc Van Oostenryck : > Currently, sparse issues warnings on code using an attribute > it doesn't know about. > > One of the problem with this is that these warnings have no > value for the developer, it's just noise for him. At best these > warnings tell something about so

Re: [PATCH 4.10 070/111] audit: fix auditd/kernel connection state tracking

2018-02-20 Thread Paul Moore
On Tue, Feb 20, 2018 at 9:06 AM, Peter Zijlstra wrote: > On Tue, Feb 20, 2018 at 08:25:21AM -0500, Paul Moore wrote: >> On Tue, Feb 20, 2018 at 7:37 AM, Peter Zijlstra wrote: >> > On Tue, Mar 28, 2017 at 02:30:56PM +0200, Greg Kroah-Hartman wrote: >> >> 4.10-stable review patch. If anyone has an

Re: [PATCH v14 8/9] HISI LPC: Add ACPI support

2018-02-20 Thread Andy Shevchenko
On Mon, Feb 19, 2018 at 7:48 PM, John Garry wrote: > Based on the previous patches, this patch supports the > LPC host on hip06/hip07 for ACPI FW. > > It is the responsibility of the LPC host driver to > enumerate the child devices, as the ACPI scan code will > not enumerate children of "indirect

Re: [PATCH 1/4] locking/ww_mutex: add ww_mutex_is_owned_by function v3

2018-02-20 Thread Peter Zijlstra
On Tue, Feb 20, 2018 at 03:34:07PM +0100, Christian König wrote: > > OK, but neither case would in fact need the !ctx case right? That's just > > there for completeness sake? > > Unfortunately not. TTM uses trylock to lock BOs which are about to be > evicted to make room for all the BOs locked wit

Re: [PATCH v14 0/9] LPC: legacy ISA I/O support

2018-02-20 Thread Andy Shevchenko
On Mon, Feb 19, 2018 at 7:48 PM, John Garry wrote: > This patchset supports the IPMI-bt device attached to the Low-Pin-Count > interface implemented on Hisilicon Hip06/Hip07 SoC. > --- > | LPC host| > | | >

[PATCH] doc-guide: kernel-doc: add comment about formatting verification

2018-02-20 Thread Mike Rapoport
Currently there is no automated checking for kernel-doc comments except running 'kernel-doc -v -none '. Mention the possibility to run kernel-doc to verify formatting of the comments in the kernel-doc guide. Signed-off-by: Mike Rapoport --- Documentation/doc-guide/kernel-doc.rst | 6 ++ 1 fi

Re: [PATCH] tpm: use kmemdup() to copy the EFI event log

2018-02-20 Thread Jarkko Sakkinen
Send an updated version with corresponding change also to tpm_eventlog_of.c /Jarkko On Mon, 2018-02-19 at 14:10 +0200, Jarkko Sakkinen wrote: > Signed-off-by: Jarkko Sakkinen > --- > drivers/char/tpm/tpm_eventlog_efi.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/

RE: [PATCH 2/2] x86/speculation: Support "Enhanced IBRS" on future CPUs

2018-02-20 Thread Van De Ven, Arjan
> > I meant software wise. You're not going to live migrate from xen to > > kvm or backwards. or between very radically different versions of the > > kvm stack. > > Forwards migration to a radically newer version certainly happens. So > when the source hypervisor was too old to tell the VM about

Re: [PATCH 1/2 v3] tpm: cmd_ready command can be issued only after granting locality

2018-02-20 Thread Jarkko Sakkinen
On Mon, 2018-02-19 at 11:43 +, Winkler, Tomas wrote: > > All local variable declarations must be in the beginning of the > > function. > > Who says? It is coherent how we have everything else. It is much easier to see the stack allocation this way when the allocation is only done in the begin

  1   2   3   4   5   6   7   8   9   >