Re: [PATCH RFC 1/8] rcu: Add comment documenting how rcu_seq_snap works

2018-05-14 Thread Joel Fernandes
On Mon, May 14, 2018 at 10:38:16AM -0700, Paul E. McKenney wrote: > On Sun, May 13, 2018 at 08:15:34PM -0700, Joel Fernandes (Google) wrote: > > rcu_seq_snap may be tricky for someone looking at it for the first time. > > Lets document how it works with an example to make it easier. > > > > Signed

[PATCH 0/2] support kdump for AMD secure memory encryption(sme)

2018-05-14 Thread Lianbo Jiang
It is convenient to remap the old memory encrypted to the second kernel by calling ioremap_encrypted(). When sme enabled on AMD server, we also need to support kdump. Because the memory is encrypted in the first kernel, we will remap the old memory encrypted to the second kernel(crash kernel), and

[PATCH 1/2] add a function(ioremap_encrypted) for kdump when AMD sme enabled.

2018-05-14 Thread Lianbo Jiang
It is convenient to remap the old memory encrypted to the second kernel by calling ioremap_encrypted(). Signed-off-by: Lianbo Jiang --- arch/x86/include/asm/io.h | 2 ++ arch/x86/mm/ioremap.c | 25 + 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/arc

[PATCH 2/2] support kdump when AMD secure memory encryption is active

2018-05-14 Thread Lianbo Jiang
When sme enabled on AMD server, we also need to support kdump. Because the memory is encrypted in the first kernel, we will remap the old memory encrypted to the second kernel(crash kernel), and sme is also enabled in the second kernel, otherwise the old memory encrypted can not be decrypted. Becau

[PATCH 3/3] drm/tinydrm: new driver for ILI9341 display panels

2018-05-14 Thread David Lechner
;ili9341", + .desc = "Ilitek ILI9341", + .date = "20180514", + .major = 1, + .minor = 0, +}; + +static const struct of_device_id ili9341_of_match[] = { + { .compatible = &qu

[PATCH 0/3] drm/tinydrm: new dirver for ILI9341 displays

2018-05-14 Thread David Lechner
This series adds a new tinydrm driver for the Ilitek ILI9341 controller and a 2.4" display panel that uses this controller. A few things to note here: * The datasheet for this display[1] doesn't have a vendor mentioned on it anywhere, so I have used "noname" as the vendor prefix. If someone has

[PATCH 1/3] MAINTAINERS: fix path to ilitek,ili9225 device tree bindings

2018-05-14 Thread David Lechner
This fixes the path to the ilitek,ili9225 device tree binding file. Signed-off-by: David Lechner --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 334a00350922..bc219de9cbee 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4478,7 +4

[PATCH 2/3] dt-bindings: new binding for Ilitek ILI9341 display panels

2018-05-14 Thread David Lechner
This adds a new binding for Ilitek ILI9341 display panels. It includes a compatible string for one display (more can be added in the future). The vendor prefix "noname" is used because the vendor is not known. The YX240QV29-T panel[1] is found, for example, in an Adafruit breakout board[2] and in

Re: [J-core] [PATCH v5 00/22] sh: LANDISK and R2Dplus convert to device tree

2018-05-14 Thread Rich Felker
On Mon, May 07, 2018 at 10:40:34AM +0900, Yoshinori Sato wrote: > On Thu, 03 May 2018 19:07:38 +0900, > John Paul Adrian Glaubitz wrote: > > > > [1 ] > > Hi Rich! > > > > On 05/03/2018 04:33 AM, Rich Felker wrote: > > > I found the U-Boot stuff here: > > > > > > https://ja.osdn.net/users/ysato/

[RFC PATCH] net: sched: __tcf_idr_check() can be static

2018-05-14 Thread kbuild test robot
Fixes: 446adedb5339 ("net: sched: always take reference to action") Signed-off-by: Fengguang Wu --- act_api.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/sched/act_api.c b/net/sched/act_api.c index 9459cce..27e80cf 100644 --- a/net/sched/act_api.c +++ b/net/sch

Re: [PATCH 05/14] net: sched: always take reference to action

2018-05-14 Thread kbuild test robot
Hi Vlad, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on net/master] [also build test WARNING on v4.17-rc5 next-20180514] [cannot apply to net-next/master] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url

Re: [PATCH 4/4] staging: lustre: obdclass: change object lookup to no wait mode

2018-05-14 Thread NeilBrown
On Tue, May 15 2018, James Simmons wrote: >> On Wed, May 02 2018, James Simmons wrote: >> >> > From: Lai Siyao >> > >> > Currently we set LU_OBJECT_HEARD_BANSHEE on object when we want >> > to remove object from cache, but this may lead to deadlock, because >> > when other process lookup such ob

Re: [PATCH v3] KVM: X86: Lower the default timer frequency limit to 200us

2018-05-14 Thread Wanpeng Li
ping, 2018-05-05 19:02 GMT+08:00 Wanpeng Li : > From: Wanpeng Li > > Anthoine reported: > The period used by Windows change over time but it can be 1 > milliseconds or less. I saw the limit_periodic_timer_frequency > print so 500 microseconds is sometimes reached. > > As suggested by Paolo, low

Re: [PATCH 18/18] rcu: Use pr_fmt to prefix "rcu: " to logging output

2018-05-14 Thread Joe Perches
On Mon, 2018-05-14 at 17:32 -0700, Paul E. McKenney wrote: > So this change does not affect WARN_ON_ONCE() and friends? Changing define pr_fmt does not modify WARN_ON output.

Re: [PATCH v3] kvmalloc: always use vmalloc if CONFIG_DEBUG_SG

2018-05-14 Thread Joonsoo Kim
Hello, Mikulas. On Tue, Apr 24, 2018 at 02:41:47PM -0400, Mikulas Patocka wrote: > > > On Tue, 24 Apr 2018, Matthew Wilcox wrote: > > > On Tue, Apr 24, 2018 at 08:29:14AM -0400, Mikulas Patocka wrote: > > > > > > > > > On Mon, 23 Apr 2018, Matthew Wilcox wrote: > > > > > > > On Mon, Apr 23,

Re: USB Floppy Disk Driver

2018-05-14 Thread Randy Dunlap
On 05/14/2018 05:51 PM, Joshua Hudson wrote: > Has anybody tried the USB floppy disk driver in awhile? I just did to > read an old disk, and I couldn't read a single byte. > > I started thinking maybe the hardware's bad, but dd didn't raise en > error even after I pulled it out and got "USB Discon

Re: [PATCH RFC 8/8] rcu: Fix cpustart tracepoint gp_seq number

2018-05-14 Thread Joel Fernandes
On Mon, May 14, 2018 at 01:33:20PM -0700, Paul E. McKenney wrote: > On Sun, May 13, 2018 at 08:15:41PM -0700, Joel Fernandes (Google) wrote: > > cpustart shows a stale gp_seq. This is because rdp->gp_seq is updated > > only at the end of the __note_gp_changes function. For this reason, use > > rnp-

Re: [PATCH RFC 7/8] rcu: trace CleanupMore condition only if needed

2018-05-14 Thread Joel Fernandes
On Mon, May 14, 2018 at 12:20:28PM -0700, Paul E. McKenney wrote: > On Sun, May 13, 2018 at 08:15:40PM -0700, Joel Fernandes (Google) wrote: > > Currently the tree RCU clean up code records a CleanupMore trace event > > even if the GP was already in progress. This makes CleanupMore show up > > twic

[PATCH] drivers: regmap: Skip clk_put for attached clocks when freeing context

2018-05-14 Thread James Kelly
Capability to attach an existing clk to a MMIO regmap was introduced in 4.17rc1. However, when using attached clk, regmap does not do the clk_get. Therefore it should not do the clk_put when freeing the MMIO regmap context. There does not appear to be any users of attached clocks yet so this woul

[PATCH -mm] mm, hugetlb: Pass fault address to no page handler

2018-05-14 Thread Huang, Ying
From: Huang Ying This is to take better advantage of huge page clearing optimization (c79b57e462b5d, "mm: hugetlb: clear target sub-page last when clearing huge page"). Which will clear to access sub-page last to avoid the cache lines of to access sub-page to be evicted when clearing other sub-p

Re: [PATCH RFC 6/8] rcu: Add back the Startedleaf tracepoint

2018-05-14 Thread Joel Fernandes
On Mon, May 14, 2018 at 11:38:23AM -0700, Paul E. McKenney wrote: > On Sun, May 13, 2018 at 08:15:39PM -0700, Joel Fernandes (Google) wrote: > > In recent discussion [1], the check for whether a leaf believes RCU is > > not idle, is being added back to funnel locking code, to avoid more > > locking

Re: [PATCH 07/11] driver core: Respect all error codes from dev_pm_domain_attach()

2018-05-14 Thread Tony Lindgren
* Ulf Hansson [180514 18:59]: > On 14 May 2018 at 17:19, Tony Lindgren wrote: > > Reverting for 8c123c14bbba ("driver core: Respect all error codes from > > dev_pm_domain_attach()") fixes the issue for me. > > > > Sounds like something is missing, any ideas? > > This should solve the problem: >

Re: [PATCH] PM / Domains: Don't return -EEXIST at attach when PM domain exists

2018-05-14 Thread Tony Lindgren
* Ulf Hansson [180514 14:55]: > As dev_pm_domain_attach() isn't the only way to assign PM domain pointers > to devices, clearly we must allow a device to have the pointer already > being assigned. For this reason, return 0 instead of -EEXIST. > > Cc: Sylwester Nawrocki > Cc: Marek Szyprowski >

USB Floppy Disk Driver

2018-05-14 Thread Joshua Hudson
Has anybody tried the USB floppy disk driver in awhile? I just did to read an old disk, and I couldn't read a single byte. I started thinking maybe the hardware's bad, but dd didn't raise en error even after I pulled it out and got "USB Disconnect" on the screen from kernel log. I still don't kno

[PATCH] Skip clk_put for attached clocks when freeing context

2018-05-14 Thread James Kelly
Capability to attach an existing clk to a MMIO regmap was introduced in 4.17rc1. However, when using attached clk, regmap does not do the clk_get. Therefore it should not do the clk_put when freeing the MMIO regmap context. There does not appear to be any users of attached clocks yet so this woul

Re: [PATCH] mm: Add new vma flag VM_LOCAL_CPU

2018-05-14 Thread Matthew Wilcox
On Mon, May 14, 2018 at 02:49:01PM -0700, Andrew Morton wrote: > On Mon, 14 May 2018 20:28:01 +0300 Boaz Harrosh wrote: > > In this project we utilize a per-core server thread so everything > > is kept local. If we use the regular zap_ptes() API All CPU's > > are scheduled for the unmap, though in

Re: [PATCH RFC 3/8] rcu: Add back the cpuend tracepoint

2018-05-14 Thread Joel Fernandes
On Mon, May 14, 2018 at 11:12:27AM -0700, Paul E. McKenney wrote: > On Sun, May 13, 2018 at 08:15:36PM -0700, Joel Fernandes (Google) wrote: > > Commit be4b8beed87d ("rcu: Move RCU's grace-period-change code to ->gp_seq") > > removed the cpuend grace period trace point. This patch adds it back. > >

Re: [PATCH RFC 5/8] rcu: Use rcu_node as temporary variable in funnel locking loop

2018-05-14 Thread Joel Fernandes
On Mon, May 14, 2018 at 11:00:27AM -0700, Paul E. McKenney wrote: > On Sun, May 13, 2018 at 08:15:38PM -0700, Joel Fernandes (Google) wrote: > > The funnel locking loop in rcu_start_this_gp uses rcu_root as a > > temporary variable while walking the combining tree. This causes a > > tiresome exerci

Re: [PATCH RFC 4/8] rcu: Get rid of old c variable from places in tree RCU

2018-05-14 Thread Joel Fernandes
On Mon, May 14, 2018 at 10:57:39AM -0700, Paul E. McKenney wrote: > On Sun, May 13, 2018 at 08:15:37PM -0700, Joel Fernandes (Google) wrote: > > The 'c' variable was used previously to store the grace period > > that is being requested. However it is not very meaningful for > > a code reader, this

Re: [PATCH] mm: Add new vma flag VM_LOCAL_CPU

2018-05-14 Thread Matthew Wilcox
On Mon, May 14, 2018 at 10:37:38PM +0300, Boaz Harrosh wrote: > On 14/05/18 22:15, Matthew Wilcox wrote: > > On Mon, May 14, 2018 at 08:28:01PM +0300, Boaz Harrosh wrote: > >> On a call to mmap an mmap provider (like an FS) can put > >> this flag on vma->vm_flags. > >> > >> The VM_LOCAL_CPU flag te

Re: [PATCH IB/core 2/2] IB/cm: Send authentic pkey in REQ msg and check eligibility of the pkeys

2018-05-14 Thread Hal Rosenstock
On 5/14/2018 5:02 PM, Jason Gunthorpe wrote: > On Thu, May 10, 2018 at 05:16:28PM +0200, Håkon Bugge wrote: > >> We are talking about two things here. The PKey in the BTH and the >> PKey in the CM REQ payload. They differ. >> >> I am out of office, but if my memory serves me correct, the PKey in >

[PATCH] media: dvb-frontends: add Socionext SC1501A ISDB-S/T demodulator driver

2018-05-14 Thread Katsuhiro Suzuki
This patch adds a frontend driver for the Socionext SC1501A series and Socionext MN88443x ISDB-S/T demodulators. Signed-off-by: Katsuhiro Suzuki --- drivers/media/dvb-frontends/Kconfig | 10 + drivers/media/dvb-frontends/Makefile | 1 + drivers/media/dvb-frontends/sc1501a.c | 802 +

Re: [PATCH 4/4] staging: lustre: obdclass: change object lookup to no wait mode

2018-05-14 Thread James Simmons
> On Wed, May 02 2018, James Simmons wrote: > > > From: Lai Siyao > > > > Currently we set LU_OBJECT_HEARD_BANSHEE on object when we want > > to remove object from cache, but this may lead to deadlock, because > > when other process lookup such object, it needs to wait for this > > object until

Re: [PATCH RFC 2/8] rcu: Clarify usage of cond_resched for tasks-RCU

2018-05-14 Thread Joel Fernandes
On Mon, May 14, 2018 at 10:22:05AM -0700, Paul E. McKenney wrote: > On Mon, May 14, 2018 at 10:54:54AM -0400, Steven Rostedt wrote: > > On Sun, 13 May 2018 20:15:35 -0700 > > "Joel Fernandes (Google)" wrote: > > > > > Recently we had a discussion about cond_resched unconditionally > > > recording

[PATCH] rcu: Report a quiescent state of TASKS_RCU on a tick from user

2018-05-14 Thread Byungchul Park
Hello Paul, You removed the reporing while simplifying the commit 508880df6 :) Fold this patch onto the commit or add, whatever you want. Thanks, Byungchul ->8- >From 18a2d8da3baf79d0edd5ccf94abe6f989da5b1c1 Mon Sep 17 00:00:00 2001 From: Byungchul Park Date: Tue, 15 May 2018 09:21:43 +

Re: [PATCH 18/18] rcu: Use pr_fmt to prefix "rcu: " to logging output

2018-05-14 Thread Paul E. McKenney
On Mon, May 14, 2018 at 05:23:59PM -0700, Joe Perches wrote: > On Mon, 2018-05-14 at 16:58 -0700, Paul E. McKenney wrote: > > OK, so if I define pr_fmt as follows, I get the old behavior? > > > > #define pr_fmt(fmt) fmt > > yes. OK, then I will queue patches with this for the near term for t

Re: [PATCH v2] platform/x86: asus-wmi: Add keyboard backlight toggle support

2018-05-14 Thread Daniel Drake
Hi Andy, On Mon, May 7, 2018 at 8:46 AM, Daniel Drake wrote: > > > Some Asus laptops like UX550GE has hotkey (Fn+F7) for keyboard > > > backlight toggle. In this UX550GE, the hotkey incremet the level > > > of brightness for each keypress from 1 to 3, and then switch it > > > off when the brightn

Re: [Linux-c6x-dev] [PATCH 05/20] c6x: use generic dma_noncoherent_ops

2018-05-14 Thread Mark Salter
On Fri, 2018-05-11 at 09:59 +0200, Christoph Hellwig wrote: > Switch to the generic noncoherent direct mapping implementation. > > Signed-off-by: Christoph Hellwig > --- > arch/c6x/Kconfig | 3 + > arch/c6x/include/asm/Kbuild| 1 + > arch/c6x/include/asm/dma-mapping

Re: Lack of suspend/resume/shutdown ordering between GPIO providers and consumers

2018-05-14 Thread Dmitry Torokhov
On Mon, May 14, 2018 at 04:46:41PM -0700, Florian Fainelli wrote: > On 04/25/2018 11:14 AM, Dmitry Torokhov wrote: > > On Wed, Apr 25, 2018 at 10:00:31AM -0500, Rob Herring wrote: > >> On Tue, Apr 24, 2018 at 5:58 PM, Florian Fainelli > >> wrote: > >>> Hi Linus, Rafael, all > >>> > >>> Our GPIO c

[PATCH] Drivers: hv: vmbus: Removed an unnecessary cast from void *

2018-05-14 Thread Dexuan Cui
In C, we don't need such a cast. Fixes: ae20b254306a ("Drivers: hv: vmbus: enable VMBus protocol version 5.0") Signed-off-by: Dexuan Cui Cc: Stephen Hemminger Cc: K. Y. Srinivasan --- Thanks Stephen Hemminger for pointing this out! So far, ae20b254306a ("Drivers: hv: vmbus: enable VMBus prot

Re: [PATCH 18/18] rcu: Use pr_fmt to prefix "rcu: " to logging output

2018-05-14 Thread Joe Perches
On Mon, 2018-05-14 at 16:58 -0700, Paul E. McKenney wrote: > OK, so if I define pr_fmt as follows, I get the old behavior? > > #define pr_fmt(fmt) fmt yes. > I just queued > a commit to be squashed into my version of your patch 18/18 that adds > this to kernel/rcu/rcu_segcblist.c. This jo

Re: [PATCH] rcu: Report a quiescent state when it's exactly in the state

2018-05-14 Thread Byungchul Park
On 2018-05-15 06:04, Paul E. McKenney wrote: On Mon, May 14, 2018 at 11:59:41AM +0900, Byungchul Park wrote: On 2018-05-12 오전 7:41, Joel Fernandes wrote: On Fri, May 11, 2018 at 09:17:46AM -0700, Paul E. McKenney wrote: On Fri, May 11, 2018 at 09:57:54PM +0900, Byungchul Park wrote: Hello f

Re: general protection fault in kernfs_kill_sb (2)

2018-05-14 Thread Stephen Rothwell
Hi Al, On Mon, 14 May 2018 05:04:15 +0100 Al Viro wrote: > > On Mon, May 14, 2018 at 12:20:16PM +0900, Tetsuo Handa wrote: > > > But there remains a refcount bug because deactivate_locked_super() from > > kernfs_mount_ns() triggers kobj_ns_drop() from sysfs_kill_sb() via > > sb->kill_sb() when k

Re: [PATCH 2/4] PCI: dwc: Add support for EP mode

2018-05-14 Thread kbuild test robot
Hi Gustavo, Thank you for the patch! Yet something to improve: [auto build test ERROR on pci/next] [also build test ERROR on v4.17-rc5 next-20180514] [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

Re: [PATCH 18/18] rcu: Use pr_fmt to prefix "rcu: " to logging output

2018-05-14 Thread Paul E. McKenney
On Mon, May 14, 2018 at 03:54:13PM -0700, Joe Perches wrote: > On Mon, 2018-05-14 at 15:24 -0700, Paul E. McKenney wrote: > > On Mon, May 14, 2018 at 02:41:59PM -0700, Joe Perches wrote: > > > On Mon, 2018-05-14 at 13:29 -0700, Paul E. McKenney wrote: > > > > On Thu, May 10, 2018 at 08:45:44AM -070

Re: Lack of suspend/resume/shutdown ordering between GPIO providers and consumers

2018-05-14 Thread Florian Fainelli
On 04/25/2018 11:14 AM, Dmitry Torokhov wrote: > On Wed, Apr 25, 2018 at 10:00:31AM -0500, Rob Herring wrote: >> On Tue, Apr 24, 2018 at 5:58 PM, Florian Fainelli >> wrote: >>> Hi Linus, Rafael, all >>> >>> Our GPIO controller driver: gpio-brcmstb.c has a shutdown callback which >>> gets invoked

Re: [PATCH 01/14] net: sched: use rcu for action cookie update

2018-05-14 Thread kbuild test robot
Hi Vlad, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on net/master] [also build test WARNING on v4.17-rc5 next-20180514] [cannot apply to net-next/master] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url

[PATCH memory-model 14/19] tools/memory-model: Improve mixed-access checking in lock.cat

2018-05-14 Thread Paul E. McKenney
From: Alan Stern The code in lock.cat which checks for normal read/write accesses to spinlock variables doesn't take into account the newly added RL and RU events. Add them into the test, and move the resulting code up near the start of the file, since a violation would indicate a pretty severe

[PATCH memory-model 17/19] MAINTAINERS: Update e-mail address for Andrea Parri

2018-05-14 Thread Paul E. McKenney
From: Andrea Parri I moved to Amarula Solutions; switch to work e-mail address. Signed-off-by: Andrea Parri Cc: Alan Stern Cc: Will Deacon Cc: Peter Zijlstra Cc: Boqun Feng Cc: Nicholas Piggin Cc: David Howells Cc: Jade Alglave Cc: Luc Maranget Cc: "Paul E. McKenney" Cc: Akira Yokosawa

[PATCH memory-model 09/19] tools/memory-model: Add scripts to test memory model

2018-05-14 Thread Paul E. McKenney
This commit adds a pair of scripts that run the memory model on litmus tests, checking that the verification result of each litmus test matches the result flagged in the litmus test itself. These scripts permit easier checking of changes to the memory model against preconceived notions. To run th

[PATCH memory-model 11/19] tools/memory-model: Flag "cumulativity" and "propagation" tests

2018-05-14 Thread Paul E. McKenney
This commit flags WRC+pooncerelease+rmbonceonce+Once.litmus as being forbidden by smp_store_release() A-cumulativity and IRIW+mbonceonces+OnceOnce.litmus as being forbidden by the LKMM propagation rule. Reported-by: Paolo Bonzini Suggested-by: Andrea Parri Signed-off-by: Paul E. McKenney [ paul

[PATCH memory-model 12/19] tools/memory-model: Remove duplicated code from lock.cat

2018-05-14 Thread Paul E. McKenney
From: Alan Stern This patch simplifies the implementation of spin_is_locked in the LKMM. It capitalizes on the fact that a failed spin_trylock() and a spin_is_locked() which returns True have exactly the same semantics (those of READ_ONCE) and ordering properties (none). Therefore the two kinds

[PATCH memory-model 10/19] tools/memory-model: Add model support for spin_is_locked

2018-05-14 Thread Paul E. McKenney
From: Luc Maranget This commit first adds a trivial macro for spin_is_locked() to linux-kernel.def. It also adds cat code for enumerating all possible matches of lock write events (set LKW) with islocked events returning true (set RL, for Read from Lock), and unlock write events (set UL) with is

[PATCH memory-model 08/19] tools/memory-model: Fix coding style in 'linux-kernel.def'

2018-05-14 Thread Paul E. McKenney
From: Andrea Parri This commit fixes white spaces around semicolons. Signed-off-by: Andrea Parri Signed-off-by: Paul E. McKenney --- tools/memory-model/linux-kernel.def | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/tools/memory-model/linux-

[PATCH memory-model 13/19] tools/memory-model: Improve comments in lock.cat

2018-05-14 Thread Paul E. McKenney
From: Alan Stern This patch improves the comments in tools/memory-model/lock.cat. In addition to making the text more uniform and removing redundant comments, it adds a description of all the possible locking events that herd can generate. Signed-off-by: Alan Stern CC: Akira Yokosawa CC: Andr

[PATCH memory-model 18/19] tools/memory-model: Update ASPLOS information

2018-05-14 Thread Paul E. McKenney
From: Andrea Parri ASPLOS 2018 was held in March: make sure this is reflected in header comments and references. Signed-off-by: Andrea Parri Cc: Alan Stern Cc: Will Deacon Cc: Peter Zijlstra Cc: Boqun Feng Cc: Nicholas Piggin Cc: David Howells Cc: Jade Alglave Cc: Luc Maranget Cc: "Paul

[PATCH memory-model 15/19] tools/memory-model: Remove out-of-date comments and code from lock.cat

2018-05-14 Thread Paul E. McKenney
From: Alan Stern lock.cat contains old comments and code referring to the possibility of LKR events that are not part of an RMW pair. This is a holdover from when I though we might end up using LKR events to implement spin_is_locked(). Reword the comments to remove this assumption and replace d

[PATCH memory-model 06/19] tools/memory-order: smp_mb__after_atomic() orders later RMW operations

2018-05-14 Thread Paul E. McKenney
The current cheat sheet does not claim that smp_mb__after_atomic() orders later RMW atomic operations, which it must, at least against earlier RMW atomic operations and whatever precedes them. This commit therefore adds the needed "Y". Signed-off-by: Paul E. McKenney Acked-by: Alan Stern --- t

[PATCH memory-model 03/19] tools/memory-model: Update required version of herdtools7

2018-05-14 Thread Paul E. McKenney
From: Akira Yokosawa Code generated by klitmus7 version 7.48 doesn't compile with kernel header of 4.15 and later due to the absence of ACCESS_ONCE(). As the issue has been resolved in herdtools7 7.49, bump the required version number in README. Signed-off-by: Akira Yokosawa Cc: Alan Stern Cc:

[PATCH memory-model 02/19] tools/memory-model: Redefine rb in terms of rcu-fence

2018-05-14 Thread Paul E. McKenney
From: Alan Stern This patch reorganizes the definition of rb in the Linux Kernel Memory Consistency Model. The relation is now expressed in terms of rcu-fence, which consists of a sequence of gp and rscs links separated by rcu-link links, in which the number of occurrences of gp is >= the number

[PATCH memory-model 07/19] tools/memory-model: Model 'smp_store_mb()'

2018-05-14 Thread Paul E. McKenney
From: Andrea Parri This commit models 'smp_store_mb(x, val);' to be semantically equivalent to 'WRITE_ONCE(x, val); smp_mb();'. Suggested-by: Paolo Bonzini Suggested-by: Peter Zijlstra Signed-off-by: Andrea Parri Signed-off-by: Paul E. McKenney Acked-by: Alan Stern --- tools/memory-model/l

[PATCH memory-model 16/19] tools/memory-model: Fix coding style in 'lock.cat'

2018-05-14 Thread Paul E. McKenney
From: Andrea Parri This commit uses tabs for indentation and adds spaces around binary operator. Signed-off-by: Andrea Parri Signed-off-by: Paul E. McKenney --- tools/memory-model/lock.cat | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/tools

[PATCH memory-model 19/19] tools/memory-model: Add reference for 'Simplifying ARM concurrency'

2018-05-14 Thread Paul E. McKenney
From: Andrea Parri The paper discusses the revised ARMv8 memory model; such revision had an important impact on the design of the LKMM. Signed-off-by: Andrea Parri Cc: Alan Stern Cc: Will Deacon Cc: Peter Zijlstra Cc: Boqun Feng Cc: Nicholas Piggin Cc: David Howells Cc: Jade Alglave Cc:

[PATCH memory-model 04/19] tools/memory-model: Fix cheat sheet typo

2018-05-14 Thread Paul E. McKenney
From: Paolo Bonzini "RWM" should be "RMW". Signed-off-by: Paolo Bonzini Signed-off-by: Paul E. McKenney --- tools/memory-model/Documentation/cheatsheet.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/memory-model/Documentation/cheatsheet.txt b/tools/memory-model

[PATCH memory-model 01/19] tools/memory-model: Rename link and rcu-path to rcu-link and rb

2018-05-14 Thread Paul E. McKenney
From: Alan Stern This patch makes a simple non-functional change to the RCU portion of the Linux Kernel Memory Consistency Model by renaming the "link" and "rcu-path" relations to "rcu-link" and "rb", respectively. The name "link" was an unfortunate choice, because it was too generic and subject

[PATCH memory-model 05/19] tools/memory-order: Improve key for SELF and SV

2018-05-14 Thread Paul E. McKenney
The key for "SELF" was missing completely and the key for "SV" was a bit obtuse. This commit therefore adds a key for "SELF" and improves the one for "SV". Reported-by: Paolo Bonzini Signed-off-by: Paul E. McKenney Acked-by: Alan Stern --- tools/memory-model/Documentation/cheatsheet.txt | 3 +

[PATCH memory-model 0/19] Updates to the formal memory model

2018-05-14 Thread Paul E. McKenney
Hello! This series contains updates to the Linux kernel's formal memory model in tools/memory-model. These are ready for inclusion into -tip. 1. Rename LKMM's "link" and "rcu-path" relations to "rcu-link" and "rb", respectively, courtesy of Alan Stern. 2. Redefine LKMM's "rb"

Re: [PATCH v1 1/4] media: rc: introduce BPF_PROG_IR_DECODER

2018-05-14 Thread Randy Dunlap
On 05/14/2018 02:10 PM, Sean Young wrote: > Add support for BPF_PROG_IR_DECODER. This type of BPF program can call Kconfig file below uses IR_BPF_DECODER instead of the symbol name above. and then patch 3 says a third choice: The context provided to a BPF_PROG_RAWIR_DECODER is a struct ir_raw_eve

Re: [PATCH 1/7] i2c: i2c-gpio: move header to platform_data

2018-05-14 Thread Greg Ungerer
Hi Wolfram, On 15/05/18 07:37, Wolfram Sang wrote: arch/arm/mach-ks8695/board-acs5k.c | 2 +- arch/arm/mach-sa1100/simpad.c| 2 +- arch/mips/alchemy/board-gpr.c| 2 +- Those still need acks... diff --git a/arch/arm/mach-ks8695/board-a

Re: [PATCH 1/2] MIPS: memset.S: EVA & fault support for small_memset

2018-05-14 Thread Maciej W. Rozycki
On Mon, 16 Apr 2018, James Hogan wrote: > > @@ -260,6 +260,11 @@ > > jr ra > > andiv1, a2, STORMASK > > This patch looks good, well spotted! > > But whats that v1 write about? Any ideas? Seems to go back to the git > epoch, and $3 isn't in the clobber lists when

Re: linux-next: manual merge of the samsung-krzk tree with the dma-mapping tree

2018-05-14 Thread Stephen Rothwell
Hi all, On Thu, 10 May 2018 09:16:34 +1000 Stephen Rothwell wrote: > > Today's linux-next merge of the samsung-krzk tree got a conflict in: > > arch/arm/mach-exynos/Kconfig > > between commit: > > 4965a68780c5 ("arch: define the ARCH_DMA_ADDR_T_64BIT config symbol in > lib/Kconfig") > >

[PATCH memory-model 3/3] locking: Clean up comment and #ifndef for {,queued_}spin_is_locked()

2018-05-14 Thread Paul E. McKenney
From: Andrea Parri Removes "#ifndef queued_spin_is_locked" from the generic code: this is unused and it's reasonable to conclude that it will continue to be unused. Also removes the comment about spin_is_locked() from mutex_is_locked(): the comment remains valid but not particularly useful. Sug

[PATCH memory-model 2/3] arm64: Remove smp_mb() from arch_spin_is_locked()

2018-05-14 Thread Paul E. McKenney
From: Andrea Parri Commit 38b850a73034f ("arm64: spinlock: order spin_{is_locked,unlock_wait} against local locks") added an smp_mb() to arch_spin_is_locked(), in order "to ensure that the lock value is always loaded after any other locks have been taken by the current CPU", and reported one exam

[PATCH memory-model 1/3] locking: Document the semantics of spin_is_locked()

2018-05-14 Thread Paul E. McKenney
From: Andrea Parri There appeared to be a certain, recurrent uncertainty concerning the semantics of spin_is_locked(), likely a consequence of the fact that this semantics remains undocumented or that it has been historically linked to the (likewise unclear) semantics of spin_unlock_wait(). A re

[PATCH memory-model 0/3] Kernel fixes to spin_is_locked()

2018-05-14 Thread Paul E. McKenney
Hello! This series contains fixes to the kernel related to the semantics of spin_is_locked(), all courtesy of Andrea Parri, and all ready for inclusion in -tip: 1. Document the semantics of spin_is_locked() by adding a docbook header comment. 2. Remove smp_mb() from arch_spin_i

[PATCH memory-model 1/8] docs/memory-barriers.txt: Fix broken DMA vs MMIO ordering example

2018-05-14 Thread Paul E. McKenney
From: Will Deacon The section of memory-barriers.txt that describes the dma_Xmb() barriers has an incorrect example claiming that a wmb() is required after writing to coherent memory in order for those writes to be visible to a device before a subsequent MMIO access using writel() can reach the d

[PATCH memory-model 4/8] kokr/Documentation/memory-barriers.txt: Cross-reference "tools/memory-model/"

2018-05-14 Thread Paul E. McKenney
From: SeongJae Park This commit applies an upstream change, commit 621df431b0ac ("Documentation/memory-barriers.txt: Cross-reference "tools/memory-model/"") to the Korean version document. Signed-off-by: SeongJae Park Signed-off-by: Paul E. McKenney --- Documentation/translations/ko_KR/memory

[PATCH memory-model 6/8] kokr/locking/memory-barriers: De-emphasize smp_read_barrier_depends() some more

2018-05-14 Thread Paul E. McKenney
From: SeongJae Park This commit applies an upstream change, commit f28f0868feb1 ("locking/memory-barriers: De-emphasize smp_read_barrier_depends() some more") to the Korean version documentation. Signed-off-by: SeongJae Park Signed-off-by: Paul E. McKenney --- .../translations/ko_KR/memory-ba

[PATCH memory-model 5/8] kokr/memory-barriers: Fix description of data dependency barriers

2018-05-14 Thread Paul E. McKenney
From: SeongJae Park This commit applies an upstream change, commit 51de78892b12 ("memory-barriers: Fix description of data dependency barriers") to the Korean version document. Signed-off-by: SeongJae Park Signed-off-by: Paul E. McKenney --- Documentation/translations/ko_KR/memory-barriers.tx

[PATCH memory-model 8/8] atomic_ops.rst: Use `warning` rst directive

2018-05-14 Thread Paul E. McKenney
From: SeongJae Park One warning message in 'atomic_ops.rst' is not using 'warning' rst directive while others does. This commit modifies the message to use 'warning' rst directive. Signed-off-by: SeongJae Park Signed-off-by: Paul E. McKenney --- Documentation/core-api/atomic_ops.rst | 10 +++

[PATCH memory-model 7/8] atomic_ops.rst: Fix wrong example code

2018-05-14 Thread Paul E. McKenney
From: SeongJae Park Example code snippets for necessary of READ_ONCE() and WRITE_ONCE() has an unnecessary line of code and wrong condition. This commit fixes them. Signed-off-by: SeongJae Park Signed-off-by: Paul E. McKenney Acked-by: Alan Stern --- Documentation/core-api/atomic_ops.rst |

Re: [PATCH 18/18] rcu: Use pr_fmt to prefix "rcu: " to logging output

2018-05-14 Thread Joe Perches
On Mon, 2018-05-14 at 15:24 -0700, Paul E. McKenney wrote: > On Mon, May 14, 2018 at 02:41:59PM -0700, Joe Perches wrote: > > On Mon, 2018-05-14 at 13:29 -0700, Paul E. McKenney wrote: > > > On Thu, May 10, 2018 at 08:45:44AM -0700, Joe Perches wrote: > > > > Use a consistent logging prefix for all

[PATCH memory-model 3/8] kokr/doc: De-emphasize smp_read_barrier_depends

2018-05-14 Thread Paul E. McKenney
From: SeongJae Park This commit applies an upstream change, commit 9ad3c143d7d6 ("doc: De-emphasize smp_read_barrier_depends") to the Korean version document. Signed-off-by: SeongJae Park Signed-off-by: Paul E. McKenney --- Documentation/translations/ko_KR/memory-barriers.txt | 7 +-- 1 f

[PATCH memory-model 2/8] kokr/doc: READ_ONCE() now implies smp_barrier_depends()

2018-05-14 Thread Paul E. McKenney
From: SeongJae Park This commit applies an upstream change, commit 40555946447a ("doc: READ_ONCE() now implies smp_barrier_depends()") to the Korean version document. Signed-off-by: SeongJae Park Signed-off-by: Paul E. McKenney --- Documentation/translations/ko_KR/memory-barriers.txt | 15 +++

[PATCH memory-model 0/8] memory-barriers.txt and atomic_ops.rst updates

2018-05-14 Thread Paul E. McKenney
Hello! This series contains changes to the atomic_ops.rst file and to the memory-barriers.txt file and its Korean translation. These changes are ready for inclusion into -tip. 1. Fix memory-barriers.txt's ordering example contrasting DMA to MMIO, courtesy of Will Deacon. 2-6.Up

[PATCH v2] pstore: Convert internal records to timespec64

2018-05-14 Thread Kees Cook
This prepares pstore for converting the VFS layer to timespec64. Signed-off-by: Kees Cook --- I can carry this for v4.18 unless you'd like to do it as part of your series? --- drivers/firmware/efi/efi-pstore.c | 27 ++- fs/pstore/inode.c | 3 ++- fs/pstor

Re: [PATCHv5] gpio: Remove VLA from gpiolib

2018-05-14 Thread Laura Abbott
On 04/20/2018 02:02 AM, Geert Uytterhoeven wrote: Hi Laura, Thanks for your patch! On Fri, Apr 13, 2018 at 11:24 PM, Laura Abbott wrote: The new challenge is to remove VLAs from the kernel (see https://lkml.org/lkml/2018/3/7/621) to eventually turn on -Wvla. Using a kmalloc array is the easy

Re: [PATCH v3 3/3] mailbox: ACPI: erroneous error message when parsing the ACPI PCCT

2018-05-14 Thread Al Stone
On 05/14/2018 03:04 PM, Prakash, Prashanth wrote: > > > On 4/30/2018 6:39 PM, Al Stone wrote: >> There have been multiple reports of the following error message: >> >> [0.068293] Error parsing PCC subspaces from PCCT >> >> This error message is not correct. In multiple cases examined, the PC

[PATCH 2/2] phy: qcom-qusb2: Quiet -EPROBE_DEFER from qusb2_phy_probe()

2018-05-14 Thread Douglas Anderson
The -EPROBE_DEFER virus demands special case code to avoid printing error messages when the error is only -EPROBE_DEFER. Spread the virus to a new host: qusb2_phy_probe(). Specifically handle when our regulators might not be ready yet. Signed-off-by: Douglas Anderson --- drivers/phy/qualcomm/

[PATCH 1/2] phy: qcom-qmp: Quiet -EPROBE_DEFER from qcom_qmp_phy_probe()

2018-05-14 Thread Douglas Anderson
The -EPROBE_DEFER virus demands special case code to avoid printing error messages when the error is only -EPROBE_DEFER. Spread the virus to a new host: qcom_qmp_phy_probe(). Specifically handle when our regulators might not be ready yet. Signed-off-by: Douglas Anderson --- drivers/phy/qualco

[RFC PATCH 0/5] Add ChromeOS EC CEC Support

2018-05-14 Thread Neil Armstrong
Hi All, The new Google "Fizz" Intel-based ChromeOS device is gaining CEC support throught it's Embedded Controller, to enable the Linux CEC Core to communicate with it and get the CEC Physical Address from the correct HDMI Connector, the following must be added/changed: - Add the CEC sub-device re

[RFC PATCH 4/5] mfd: cros-ec: Introduce CEC commands and events definitions.

2018-05-14 Thread Neil Armstrong
From: Stefan Adolfsson The EC can expose a CEC bus, this patch adds the CEC related definitions needed by the cros-ec-cec driver. Having a 16 byte mkbp event size makes it possible to send CEC messages from the EC to the AP directly inside the mkbp event instead of first doing a notification and

[RFC PATCH 5/5] media: platform: Add Chrome OS EC CEC driver

2018-05-14 Thread Neil Armstrong
The Chrome OS Embedded Controller can expose a CEC bus, this patch add the driver for such feature of the Embedded Controller. This driver is part of the cros-ec MFD and will be add as a sub-device when the feature bit is exposed by the EC. The controller will only handle a single logical address

[PATCH] regulator: core: Quiet -EPROBE_DEFER from regulator_bulk_get()

2018-05-14 Thread Douglas Anderson
The -EPROBE_DEFER virus demands special case code to avoid printing error messages when the error is only -EPROBE_DEFER. Spread the virus to a new host: regulator_bulk_get() Signed-off-by: Douglas Anderson --- drivers/regulator/core.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)

[RFC PATCH 3/5] drm/i915: hdmi: add CEC notifier to intel_hdmi

2018-05-14 Thread Neil Armstrong
This patchs adds the cec_notifier feature to the intel_hdmi part of the i915 DRM driver. It uses the HDMI DRM connector name to differentiate between each HDMI ports. The changes will allow the i915 HDMI code to notify EDID and HPD changes to an eventual CEC adapter. Signed-off-by: Neil Armstrong

[RFC PATCH 1/5] mfd: cros_ec_dev: Add CEC sub-device registration

2018-05-14 Thread Neil Armstrong
The EC can expose a CEC bus, thus add the cros-ec-cec MFD sub-device when the CEC feature bit is present. Signed-off-by: Neil Armstrong --- drivers/mfd/cros_ec_dev.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/mfd/cros_ec_dev.c b/drivers/mfd/cros_ec_dev.c index

[RFC PATCH 2/5] media: cec-notifier: Get notifier by device and connector name

2018-05-14 Thread Neil Armstrong
In non device-tree world, we can need to get the notifier by the driver name directly and eventually defer probe if not yet created. This patch adds a variant of the get function by using the device name instead and will not create a notifier if not yet created. But the i915 driver exposes at lea

Re: [PATCH tip/core/rcu 0/21] Contention reduction for v4.18

2018-05-14 Thread Paul E. McKenney
On Tue, May 15, 2018 at 08:21:20AM +1000, Nicholas Piggin wrote: > On Mon, 14 May 2018 09:09:07 -0700 > "Paul E. McKenney" wrote: > > > On Mon, May 14, 2018 at 04:42:33PM +1000, Nicholas Piggin wrote: > > > On Sun, 22 Apr 2018 20:02:58 -0700 > > > "Paul E. McKenney" wrote: > > > > > > > Hello

Re: [PATCH] MIPS: Fix ptrace(2) PTRACE_PEEKUSR and PTRACE_POKEUSR accesses to o32 FGRs

2018-05-14 Thread James Hogan
On Mon, May 14, 2018 at 04:49:43PM +0100, Maciej W. Rozycki wrote: > Check the TIF_32BIT_FPREGS task setting of the tracee rather than the > tracer in determining the layout of floating-point general registers in > the floating-point context, correcting access to odd-numbered registers > for o32

Re: [PATCH] net/mlx5: Use 'kvfree()' for memory allocated by 'kvzalloc()'

2018-05-14 Thread Saeed Mahameed
On Mon, May 14, 2018 at 11:56 AM, David Miller wrote: > From: Christophe JAILLET > Date: Sat, 12 May 2018 19:09:25 +0200 > >> 'out' is allocated with 'kvzalloc()'. 'kvfree()' must be used to free it. >> >> Signed-off-by: Christophe JAILLET > > Saeed, I assume I will see this in one of your forth

<    1   2   3   4   5   6   7   8   9   10   >