[PATCH v2] crypto: s5p: update iv after AES-CBC op end

2019-02-19 Thread Kamil Konieczny
Fix bug "s5p-sss crypto driver doesn't set next AES-CBC IV". While at this, fix also AES-CTR mode. Tested on Odroid U3 with Eric Biggers branch "iv-out-testing". Signed-off-by: Kamil Konieczny Reported-by: Eric Biggers --- Changes since v1: - reworded Subject and commit message - changed code

Re: [PATCH v4 5/9] platform/chrome: Add sysfs attributes

2019-02-19 Thread Enric Balletbo Serra
Hi Nick, Missatge de Nick Crews del dia dc., 23 de gen. 2019 a les 19:38: > > From: Duncan Laurie > > Add some sample sysfs attributes for the Wilco EC that show how > the mailbox interface works. "Legacy" attributes are those that > existed in the EC before it was adapted to ChromeOS. > > > cat

[PATCH] MAINTAINERS: pci/cadence: Updating maintainer information

2019-02-19 Thread Tom Joseph
Removing Alan Douglas and adding Tom Joseph as the current maintainer. Tom Joseph (1): MAINTAINERS: pci/cadence: Updating maintainer information. Removing Alan and adding myself(tjos...@cadence.com) as the maintainer. MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion

Re: [PATCH RT 1/2] softirq: Avoid "local_softirq_pending" messages if ksoftirqd is blocked

2019-02-19 Thread Sebastian Andrzej Siewior
On 2019-02-19 15:58:26 [+0100], Juri Lelli wrote: > Hi, Hi, > I've been seeing those messages while running some stress tests (hog > tasks pinned to CPUs). > > Have yet to see them after I applied this patch earlier this morning (it > usually took not much time to reproduce). So is it better or

[PATCH] MAINTAINERS: pci/cadence: Updating maintainer information. Removing Alan and adding myself(tjos...@cadence.com) as the maintainer.

2019-02-19 Thread Tom Joseph
Signed-off-by: Tom Joseph --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 41ce5f4..7938e3f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -11592,7 +11592,7 @@ F: Documentation/devicetree/bindings/pci/pci-armada8k.txt F:

[PATCH v6 0/7] gpio: mockup: improve the user-space testing interface

2019-02-19 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Marc, as discussed. This is hopefully the last version. The irq_set_type() callback now only accepts edge triggers. v1 -> v2: - instead of providing the irq_sim_get_type() helper, move the irq type logic into the simulator and provide a helper that allows users to sp

[PATCH v6 7/7] gpio: mockup: rework debugfs interface

2019-02-19 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Modify the way the debugfs interface works in gpio-mockup. Introduce the concept of dummy pull config which will keep the mockup lines in known state. The pull values can be modified by writing to the debugfs files corresponding to lines. Lines in input mode always repor

[PATCH v6 6/7] gpio: mockup: change the signature of unlocked get/set helpers

2019-02-19 Thread Bartosz Golaszewski
From: Bartosz Golaszewski The unlocked variants only get called from places where we already have the pointer to the underlying gpio_mockup_chip structure, so take it as parameter instead of struct gpio_chip. Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-mockup.c | 19 --

[PATCH v6 5/7] gpio: mockup: change the type of 'offset' to unsigned int

2019-02-19 Thread Bartosz Golaszewski
From: Bartosz Golaszewski This field can never be negative. Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-mockup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-mockup.c b/drivers/gpio/gpio-mockup.c index 0317917a3678..433adb3b4617 100644 ---

[PATCH v6 2/7] gpio: mockup: add locking

2019-02-19 Thread Bartosz Golaszewski
From: Bartosz Golaszewski While no user reported any race condition problems with gpio-mockup, let's be on the safe side and use a mutex when performing any changes on the dummy chip structures. Suggested-by: Uwe Kleine-König Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-mockup.c |

[PATCH v6 4/7] gpio: mockup: don't create the debugfs link named after the label

2019-02-19 Thread Bartosz Golaszewski
From: Bartosz Golaszewski User-space tests no longer use it and we're breaking the interface anyway. Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-mockup.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/gpio/gpio-mockup.c b/drivers/gpio/gpio-mockup.

[PATCH v6 3/7] gpio: mockup: implement get_multiple()

2019-02-19 Thread Bartosz Golaszewski
From: Bartosz Golaszewski We already support set_multiple(). Implement get_multiple() as well. Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-mockup.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/gpio/gpio-mockup.c b/drivers/gpio/gpio-mockup.c index

[PATCH v6 1/7] irq/irq_sim: add irq_set_type() callback

2019-02-19 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Implement the irq_set_type() callback and call irqd_set_trigger_type() internally so that users interested in the configured trigger type can later retrieve it using irqd_get_trigger_type(). We only support edge trigger types. Signed-off-by: Bartosz Golaszewski --- ke

[PATCH RT 3/2] softirq: Avoid "local_softirq_pending" messages if task is in cpu_chill()

2019-02-19 Thread Sebastian Andrzej Siewior
If the softirq thread enters cpu_chill() then ->state is UNINTERRUPTIBLE and has no ->pi_blocked_on set and so its mask is not taken into account. ->sleeping_lock is increased by cpu_chill() since it is also requried to avoid a splat by RCU in case cpu_chill() is used while a RCU-read lock is held

[PATCH RT 4/2] hrtimer: Don't lose state in cpu_chill()

2019-02-19 Thread Sebastian Andrzej Siewior
In cpu_chill() the state is set to TASK_UNINTERRUPTIBLE and a timer is programmed. On return the state is always TASK_RUNNING which means we lose the state if it was something other than RUNNING. Also set_current_state() sets ->task_state_change to within cpu_chill() which is not expected. Save th

Re: [PATCH V3 1/5] genirq/affinity: don't mark 'affd' as const

2019-02-19 Thread Keith Busch
On Mon, Feb 18, 2019 at 04:42:27PM -0800, 陈华才 wrote: > I've tested, this patch can fix the nvme problem, but it can't be applied > to 4.19 because of different context. And, I still think my original solution > (genirq/affinity: Assign default affinity to pre/post vectors) is correct. > There may b

Re: [PATCH v1 2/6] dt-bindings: drm/msm/a6xx: Add GX power-domain for GMU bindings

2019-02-19 Thread Jordan Crouse
On Sun, Feb 17, 2019 at 05:43:16PM -0500, Rob Clark wrote: > On Sun, Feb 17, 2019 at 4:08 PM Rob Herring wrote: > > > > On Mon, Feb 4, 2019 at 10:15 AM Jordan Crouse > > wrote: > > > > > > The GMU should have two power domains defined: "cx" and "gx". "cx" is the > > > actual power domain for the

Re: [RFC PATCH] docs/memory-barriers.txt: Rewrite "KERNEL I/O BARRIER EFFECTS" section

2019-02-19 Thread Will Deacon
[+more ppc folks] On Mon, Feb 18, 2019 at 04:50:12PM +, Will Deacon wrote: > On Wed, Feb 13, 2019 at 10:27:09AM -0800, Linus Torvalds wrote: > > Note that even if mmiowb() is expensive (and I don't think that's > > actually even the case on ia64), you can - and probably should - do > > what Po

Re: [RFC][PATCH 03/16] sched: Wrap rq::lock access

2019-02-19 Thread Phil Auld
On Mon, Feb 18, 2019 at 05:56:23PM +0100 Peter Zijlstra wrote: > In preparation of playing games with rq->lock, abstract the thing > using an accessor. > > Signed-off-by: Peter Zijlstra (Intel) Hi Peter, Sorry... what tree are these for? They don't apply to mainline. Some branch on tip, I gue

Re: [PATCH v6 1/7] irq/irq_sim: add irq_set_type() callback

2019-02-19 Thread Marc Zyngier
On Tue, 19 Feb 2019 17:06:44 +0100 Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > Implement the irq_set_type() callback and call irqd_set_trigger_type() > internally so that users interested in the configured trigger type can > later retrieve it using irqd_get_trigger_type(). We onl

[PATCH v2 0/2] mtd: nand: Add Cadence NAND controller driver

2019-02-19 Thread Piotr Sroka
Driver for Cadence HPNFC NAND flash controller. HW DMA interface Page write and page read operations are executed in Command DMA mode. Commands are defined by DMA descriptors. In CDMA mode controller own DMA engine is used (Master DMA mode). Other operations defined by nand_op_instr are executed i

Re: [RFT/RFC][PATCH] driver core: Fix PM-runtime for links added during consumer probe

2019-02-19 Thread Rafael J. Wysocki
On Tue, Feb 19, 2019 at 1:10 PM Ulf Hansson wrote: > > On Mon, 18 Feb 2019 at 23:09, Rafael J. Wysocki wrote: > > > > From: Rafael J. Wysocki > > > > Commit 4c06c4e6cf63 ("driver core: Fix possible supplier PM-usage > > counter imbalance") introduced a regression that causes suppliers > > to be

Re: [PATCH 1/2 v2] kprobe: Do not use uaccess functions to access kernel memory that can fault

2019-02-19 Thread Steven Rostedt
[ Added Masami too. Start of thread is here: http://lkml.kernel.org/r/20190215174712.372898...@goodmis.org ] On Mon, 18 Feb 2019 10:23:44 -0800 Linus Torvalds wrote: > So it would be good to not just say "user or kernel", but actually say > what *kind* of kernel access it expects. Note, kpr

Re: [PATCH v5 05/10] dt-bindings: irqchip: Introduce TISCI Interrupt router bindings

2019-02-19 Thread Lokesh Vutla
On 2/19/2019 9:05 PM, Tony Lindgren wrote: > * Lokesh Vutla [190219 08:51]: >> Hi Tony, >> >> On 18/02/19 8:02 PM, Tony Lindgren wrote: >>> * Lokesh Vutla [190216 03:30]: On 2/15/2019 9:46 PM, Tony Lindgren wrote: > The dts node for the interrupt controller should describe a > pro

[PATCH v2 2/2] dt-bindings: nand: Add Cadence NAND controller driver

2019-02-19 Thread Piotr Sroka
Signed-off-by: Piotr Sroka --- Changes for v2: - remove chip dependends parameters from dts bindings - add names for register ranges in dts bindings - add generic bindings to describe NAND chip representation under the NAND controller node --- .../bindings/mtd/cadence-nand-controller.txt

[PATCH v2 1/2] mtd: nand: Add Cadence NAND controller driver

2019-02-19 Thread Piotr Sroka
This patch adds driver for Cadence HPNFC NAND controller. Signed-off-by: Piotr Sroka --- Changes for v2: - create one universal wait function for all events instead of one function per event. - split one big function executing nand operations to separate functions one per each type of operati

Re: [PATCH 1/2] ASoC: codecs: pcm186x: fix wrong usage of DECLARE_TLV_DB_LINEAR()

2019-02-19 Thread Codrin.Ciubotariu
On 19.02.2019 18:15, Codrin Ciubotariu - M19940 wrote: > From: Codrin Ciubotariu > > According to DS, the gain is between -12 dB and 40 dB, with a 0.5 dB step. > Tested on pcm1863. > > Signed-off-by: Codrin Ciubotariu > --- > sound/soc/codecs/pcm186x.c | 3 +-- > 1 file changed, 1 insertion(

Re: [PATCH v4 1/3] PCI: altera: Add Stratix 10 PCIe support

2019-02-19 Thread Lorenzo Pieralisi
On Thu, Feb 14, 2019 at 11:20:36PM +0800, Ley Foon Tan wrote: > Add PCIe Root Port support for Stratix 10 device. > > Main differences: Main differences with what ? We need to rewrite this commit log. > - HIP interface to access Root Port configuration register. > - TLP programming flow: > - O

[PATCH 1/2] ASoC: codecs: pcm186x: fix wrong usage of DECLARE_TLV_DB_LINEAR()

2019-02-19 Thread Codrin.Ciubotariu
From: Codrin Ciubotariu According to DS, the gain is between -12 dB and 40 dB, with a 0.5 dB step. Tested on pcm1863. Signed-off-by: Codrin Ciubotariu --- sound/soc/codecs/pcm186x.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/soc/codecs/pcm186x.c b/sound/soc/cod

Re: [RFC][PATCH 03/16] sched: Wrap rq::lock access

2019-02-19 Thread Peter Zijlstra
On Tue, Feb 19, 2019 at 11:13:43AM -0500, Phil Auld wrote: > On Mon, Feb 18, 2019 at 05:56:23PM +0100 Peter Zijlstra wrote: > > In preparation of playing games with rq->lock, abstract the thing > > using an accessor. > > > > Signed-off-by: Peter Zijlstra (Intel) > > Hi Peter, > > Sorry... what

[PATCH 2/2] ASoC: codecs: pcm186x: Fix energysense SLEEP bit

2019-02-19 Thread Codrin.Ciubotariu
From: Codrin Ciubotariu The ADCs are sleeping when the SLEEP bit is set and running when it's cleared, so the bit should be inverted. Tested on pcm1863. Signed-off-by: Codrin Ciubotariu --- sound/soc/codecs/pcm186x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sou

Re: [RFC][Patch v8 0/7] KVM: Guest Free Page Hinting

2019-02-19 Thread Alexander Duyck
On Mon, Feb 18, 2019 at 6:46 PM Andrea Arcangeli wrote: > > Hello, > > On Mon, Feb 18, 2019 at 03:47:22PM -0800, Alexander Duyck wrote: > > essentially fragmented them. I guess hugepaged went through and > > started trying to reassemble the huge pages and as a result there have > > been apps that

Re: [PATCH 2/2] exec: increase BINPRM_BUF_SIZE to 256

2019-02-19 Thread Guenter Roeck
On Tue, Feb 19, 2019 at 01:37:57PM +0100, Oleg Nesterov wrote: > On 02/18, Guenter Roeck wrote: > > > > Unfortunately, this patch causes one of my qemu emulations to crash. > > The crash is not always seen, but at least with every other boot attempt. > > Hmm. I can't imagine how this change can ca

Re: [PATCH v2 09/10] genirq/irqdomain: fall back to default domain when creating hierarchy domain

2019-02-19 Thread Marc Zyngier
On Tue, 19 Feb 2019 16:57:23 +0100 Thomas Bogendoerfer wrote: Hi Thomas, > When creating hierarchy domains use irq_default_domain as parent, if no > parent was given by the caller. This avoids adding helper code for > querying the underlying platform irq domain. > > Signed-off-by: Thomas Bogend

Re: [PATCH RT 1/2] softirq: Avoid "local_softirq_pending" messages if ksoftirqd is blocked

2019-02-19 Thread Juri Lelli
On 19/02/19 17:06, Sebastian Andrzej Siewior wrote: > On 2019-02-19 15:58:26 [+0100], Juri Lelli wrote: > > Hi, > Hi, > > > I've been seeing those messages while running some stress tests (hog > > tasks pinned to CPUs). > > > > Have yet to see them after I applied this patch earlier this morning

Re: [dm-devel] [PATCH V15 00/18] block: support multi-page bvec

2019-02-19 Thread Bart Van Assche
On Sun, 2019-02-17 at 21:11 +0800, Ming Lei wrote: > The following patch should fix this issue: > > > diff --git a/block/blk-merge.c b/block/blk-merge.c > index bed065904677..066b66430523 100644 > --- a/block/blk-merge.c > +++ b/block/blk-merge.c > @@ -363,13 +363,15 @@ static unsigned int __blk_

Re: [PATCH RT 1/2] softirq: Avoid "local_softirq_pending" messages if ksoftirqd is blocked

2019-02-19 Thread Sebastian Andrzej Siewior
On 2019-02-19 17:27:41 [+0100], Juri Lelli wrote: > It is better. Warning message doesn't appear anymore. Okay, thanks. Sebastian

[PATCH] usb: xhci: add Immediate Data Transfer support

2019-02-19 Thread Nicolas Saenz Julienne
Immediate data transfers (IDT) allow the HCD to copy small chunks of data (up to 8bytes) directly into its output transfer TRBs. This avoids the somewhat expensive DMA mappings that are performed by default on most URBs submissions. In the case an URB was suitable for IDT. The data is directly cop

[PATCH v2 1/2] ASoC: codecs: pcm186x: fix wrong usage of DECLARE_TLV_DB_SCALE()

2019-02-19 Thread Codrin.Ciubotariu
From: Codrin Ciubotariu According to DS, the gain is between -12 dB and 40 dB, with a 0.5 dB step. Tested on pcm1863. Signed-off-by: Codrin Ciubotariu --- Changes in v2: - fixed title - added correct macro; - revert the removal of a new line; sound/soc/codecs/pcm186x.c | 2 +- 1 file chang

Re: [PATCH] platform/x86: dell-laptop: Mark expected switch fall-throughs

2019-02-19 Thread Gustavo A. R. Silva
On 11/28/18 6:15 PM, Darren Hart wrote: > On Thu, Jul 05, 2018 at 03:38:07PM -0500, Gustavo A. R. Silva wrote: >> In preparation to enabling -Wimplicit-fallthrough, mark switch cases >> where we are expecting to fall through. >> >> Signed-off-by: Gustavo A. R. Silva > > I've applied this patch

[PATCH v2 2/2] ASoC: codecs: pcm186x: Fix energysense SLEEP bit

2019-02-19 Thread Codrin.Ciubotariu
From: Codrin Ciubotariu The ADCs are sleeping when the SLEEP bit is set and running when it's cleared, so the bit should be inverted. Tested on pcm1863. Signed-off-by: Codrin Ciubotariu --- Changes in v2: - none; sound/soc/codecs/pcm186x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 dele

Re: [PATCH -next] tpm: change the return type of calc_tpm2_event_size to size_t

2019-02-19 Thread Jason Gunthorpe
On Tue, Feb 19, 2019 at 12:35:32PM +0200, Jarkko Sakkinen wrote: > On Tue, Feb 19, 2019 at 05:15:47PM +0800, YueHaibing wrote: > > On 2019/2/19 16:59, Jarkko Sakkinen wrote: > > > On Tue, Feb 19, 2019 at 03:26:18PM +0800, YueHaibing wrote: > > >> calc_tpm2_event_size return size of the event which

Re: [RFC PATCH 00/27] Containers and using authenticated filesystems

2019-02-19 Thread Eric W. Biederman
So you missed the main mailing lists for discussion of this kind of thing, and the maintainer. So I have reservations about the quality of your due diligence already. Looking at your description you are introducing a container id. You don't descibe which namespace your contianer id lives in. Wi

Re: [PATCH v6 1/7] irq/irq_sim: add irq_set_type() callback

2019-02-19 Thread Bartosz Golaszewski
wt., 19 lut 2019 o 17:14 Marc Zyngier napisał(a): > > On Tue, 19 Feb 2019 17:06:44 +0100 > Bartosz Golaszewski wrote: > > > From: Bartosz Golaszewski > > > > Implement the irq_set_type() callback and call irqd_set_trigger_type() > > internally so that users interested in the configured trigger t

Re: [PATCH][next] vhost: only return early if ret indicates an error or no iovecs have been processed

2019-02-19 Thread Michael S. Tsirkin
On Tue, Feb 19, 2019 at 01:57:13PM +, Colin King wrote: > From: Colin Ian King > > Currently the loop that calls log_write_hva on each iovec is never > executed because of an incorrect error check on the return from the > call to translate_desc. The check should be checking for a -ve error >

Re: Regression in SYS_membarrier expedited

2019-02-19 Thread Rich Felker
On Tue, Feb 19, 2019 at 11:02:41AM -0500, Mathieu Desnoyers wrote: > - On Feb 18, 2019, at 4:55 PM, Rich Felker dal...@libc.org wrote: > > > On Mon, Feb 18, 2019 at 10:22:32AM -0500, Mathieu Desnoyers wrote: > >> - On Feb 17, 2019, at 5:08 PM, Rich Felker dal...@libc.org wrote: > >> > >>

Re: [RFC][PATCH 03/16] sched: Wrap rq::lock access

2019-02-19 Thread Phil Auld
On Tue, Feb 19, 2019 at 05:22:50PM +0100 Peter Zijlstra wrote: > On Tue, Feb 19, 2019 at 11:13:43AM -0500, Phil Auld wrote: > > On Mon, Feb 18, 2019 at 05:56:23PM +0100 Peter Zijlstra wrote: > > > In preparation of playing games with rq->lock, abstract the thing > > > using an accessor. > > > > >

Re: [PATCH] firmware: hardcode the debug message for -ENOENT

2019-02-19 Thread Luis Chamberlain
On Sun, Feb 17, 2019 at 04:25:10PM +0800, yuank...@codeaurora.org wrote: > On 2019-02-05 07:30 AM, Luis Chamberlain wrote: > > On Mon, Jan 14, 2019 at 05:58:30PM +0800, yuank...@codeaurora.org wrote: > > > Hi, > > > > > > Refined at below. > > > > > > From bbd0d9c8f28eb78ca34353347c3d4092e88f

Re: [RFC PATCH 04/27] containers: Allow a process to be forked into a container

2019-02-19 Thread Eric W. Biederman
David Howells writes: > Allow a single process to be forked directly into a container using a new > syscall, thereby 'booting' the container: > > pid_t pid = fork_into_container(int container_fd); > > This process will be the 'init' process of the container. > > Further attempts to fork int

Re: [PATCH][next] vhost: only return early if ret indicates an error or no iovecs have been processed

2019-02-19 Thread Colin Ian King
On 19/02/2019 16:35, Michael S. Tsirkin wrote: > On Tue, Feb 19, 2019 at 01:57:13PM +, Colin King wrote: >> From: Colin Ian King >> >> Currently the loop that calls log_write_hva on each iovec is never >> executed because of an incorrect error check on the return from the >> call to translate_

Re: [PATCH v2] crypto: s5p: update iv after AES-CBC op end

2019-02-19 Thread Krzysztof Kozlowski
On Tue, 19 Feb 2019 at 17:02, Kamil Konieczny wrote: > > Fix bug "s5p-sss crypto driver doesn't set next AES-CBC IV". While at this, > fix also AES-CTR mode. Tested on Odroid U3 with Eric Biggers branch > "iv-out-testing". > > Signed-off-by: Kamil Konieczny > Reported-by: Eric Biggers > --- > Ch

Re: [RFC PATCH 05/27] containers: Open a socket inside a container

2019-02-19 Thread Eric W. Biederman
David Howells writes: > Provide a system call to open a socket inside of a container, using that > container's network namespace. This allows netlink to be used to manage > the container. > > fd = container_socket(int container_fd, > int domain, int type, int pr

Re: [PATCH] perf test: Fix failure of test 14 on s390

2019-02-19 Thread Arnaldo Carvalho de Melo
Em Tue, Feb 19, 2019 at 04:36:39PM +0100, Thomas Richter escreveu: > Commit 489338a717a0 ("perf tests evsel-tp-sched: Fix bitwise operator") > causes test case 14 "Parse sched tracepoints fields" to fail on s390. > This test succeeds on x86. > In fact this test now fails on all architectures with t

Re: [RFC PATCH 06/27] containers, vfs: Allow syscall dirfd arguments to take a container fd

2019-02-19 Thread Eric W. Biederman
David Howells writes: > Some filesystem system calls, such as mkdirat(), take a 'directory fd' to > specify the pathwalk origin. This takes either AT_FDCWD or a file > descriptor that refers to an open directory. > > Make it possible to supply a container fd, as obtained from > container_create(

Re: [PATCH 11/11] hwmon/coretemp: Support multi-die/package

2019-02-19 Thread Guenter Roeck
On 2/18/19 7:40 PM, Len Brown wrote: From: Zhang Rui This patch introduces coretemp driver support for new dual-die/package systems. On the new dual-die/package systems, the package temperature MSRs becomes die-scope. Thus instead of one hwmon device per physical package, now there should be o

Re: [PATCH] doc: cgroup: correct the wrong information about measure of memory pressure

2019-02-19 Thread Yang Shi
On 2/18/19 1:05 PM, Tejun Heo wrote: On Sat, Feb 16, 2019 at 08:56:04AM +0800, Yang Shi wrote: Since PSI has implemented some kind of measure of memory pressure, the statement about lack of such measure is not true anymore. Cc: Tejun Heo Cc: Johannes Weiner Cc: Jonathan Corbet Signed-off-

Re: [PATCH v2 09/10] genirq/irqdomain: fall back to default domain when creating hierarchy domain

2019-02-19 Thread Thomas Bogendoerfer
On Tue, 19 Feb 2019 16:27:16 + Marc Zyngier wrote: > On Tue, 19 Feb 2019 16:57:23 +0100 > Thomas Bogendoerfer wrote: > > Hi Thomas, > > > When creating hierarchy domains use irq_default_domain as parent, if no > > parent was given by the caller. This avoids adding helper code for > > query

Re: [PATCH 03/11] x86 topology: Add CPUID.1F multi-die/package support

2019-02-19 Thread Liang, Kan
On 2/18/2019 10:40 PM, Len Brown wrote: From: Len Brown Some new systems have multiple software-visible die within each package. The new CPUID.1F leaf can enumerate this multi-die/package topology. CPUID.1F a super-set of the CPUID.B "Extended Toplogy Leaf", and a common updated routine can

[PATCH] xsysace: Fix error handling in ace_setup

2019-02-19 Thread Guenter Roeck
If xace hardware reports a bad version number, the error handling code in ace_setup() calls put_disk(), followed by queue cleanup. However, since the disk data structure has the queue pointer set, put_disk() also cleans and releases the queue. This results in blk_cleanup_queue() accessing an alread

[PATCH] clk: at91: fix at91sam9x5 peripheral clock number

2019-02-19 Thread Alexandre Belloni
nck() looks at the last id in an array and unfortunately, at91sam9x35_periphck has a sentinel, hence the id is 0 and the calculated number of peripheral clocks is 1 instead of a maximum of 31. Fixes: 1eabdc2f9dd8 ("clk: at91: add at91sam9x5 PMCs driver") Signed-off-by: Alexandre Belloni --- driv

[PATCH] driver core: Fix PM-runtime for links added during consumer probe

2019-02-19 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Commit 4c06c4e6cf63 ("driver core: Fix possible supplier PM-usage counter imbalance") introduced a regression that causes suppliers to be suspended prematurely for device links added during consumer driver probe if the initial PM-runtime status of the consumer is "suspende

Re: [PATCH 3.18 000/108] 3.18.135-stable review

2019-02-19 Thread Guenter Roeck
On 2/18/19 5:42 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 3.18.135 release. There are 108 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be mad

Re: [PATCH] binder: reduce mmap_sem write-side lock

2019-02-19 Thread Todd Kjos
On Mon, Feb 18, 2019 at 2:47 AM Minchan Kim wrote: > > On Mon, Feb 18, 2019 at 09:32:08AM +0100, Greg KH wrote: > > On Mon, Feb 18, 2019 at 05:11:45PM +0900, Minchan Kim wrote: > > > binder has used write-side mmap_sem semaphore to release memory > > > mapped at address space of the process. Howev

Re: [PATCH bpf-next v2] bpf: bpftool, fix documentation for attach types

2019-02-19 Thread Daniel Borkmann
On 02/19/2019 03:13 PM, Alban Crequy wrote: > From: Alban Crequy > > bpftool has support for attach types "stream_verdict" and > "stream_parser" but the documentation was referring to them as > "skb_verdict" and "skb_parse". The inconsistency comes from commit > b7d3826c2ed6 ("bpf: bpftool, add s

Re: [PATCH] mm/cma: cma_declare_contiguous: correct err handling

2019-02-19 Thread Vlastimil Babka
On 2/14/19 9:38 PM, Andrew Morton wrote: > On Thu, 14 Feb 2019 12:45:51 + Peng Fan wrote: > >> In case cma_init_reserved_mem failed, need to free the memblock allocated >> by memblock_reserve or memblock_alloc_range. >> >> ... >> >> --- a/mm/cma.c >> +++ b/mm/cma.c >> @@ -353,12 +353,14 @@ in

Re: [PATCH] bq27x00: use cached flags

2019-02-19 Thread Andrew F. Davis
On 2/18/19 12:59 AM, Arthur Demchenkov wrote: > The flags were just read by bq27xxx_battery_update(), > no need to read them again. > > Signed-off-by: Arthur Demchenkov > --- Nothing obviously wrong with this patch so: Reviewed-by: Andrew F. Davis At this point we have W1 regmap and so we now

Re: [RFC PATCH 02/27] containers: Implement containers as kernel objects

2019-02-19 Thread Eric W. Biederman
David Howells writes: The container id details are ludicrous and will break practically every use case. This completely unacceptable. Nacked-by: "Eric W. Biederman" > diff --git a/include/linux/container.h b/include/linux/container.h > new file mode 100644 > index ..0a8918435097 >

Re: [RFC PATCH] scsi: fix oops in scsi_uninit_cmd()

2019-02-19 Thread Bart Van Assche
On Tue, 2019-02-19 at 15:27 +0800, Jason Yan wrote: > If we remove the scsi disk when running io with fio, oops occured with > the following condition. > > [scsi_eh_0] [fio] > scsi_end_request > ->blk_update_request > ->end_bio(io returned to userspace) >

Re: [PATCH 05/11] x86 topology: export die_siblings

2019-02-19 Thread Liang, Kan
On 2/18/2019 10:40 PM, Len Brown wrote: From: Len Brown like core_siblings, except it shows which die are in the same package. This is needed for lscpu(1) to correctly display die topology. Signed-off-by: Len Brown Cc: linux-...@vger.kernel.org Signed-off-by: Len Brown --- Documentatio

[PATCH 0/7] clk: at91: rework sckc bindings

2019-02-19 Thread Alexandre Belloni
Hi, This is a rework of the sckc DT bindings to avoid warnings with dtc. DT backward compatibility is kept. This series also fix a possible issue with the sama5d3 slow RC oscillator. The sckc driver changes and documetation can go through the clk tree and we will handle th DT changes. Alexandre

[PATCH] drivers: spi: core: Add optional stall delay between cs_change transfers

2019-02-19 Thread Stefan Popa
From: Michael Hennerich Some devices like the ADIS16460 IMU require a stall period between transfers. The default value of 10us are not enough. Introduce a per transfer configurable delay. Signed-off-by: Michael Hennerich Signed-off-by: Stefan Popa --- drivers/spi/spi.c | 3 ++- include

[PATCH 2/7] clk: at91: modernize sckc binding

2019-02-19 Thread Alexandre Belloni
Remove the need for child nodes in the sckc binding and register the whole sckc tree (3 clocks in total) from the sckc node. DT backward compatibility is kept by looking for properties in child nodes when they are not present in the sckc node. Signed-off-by: Alexandre Belloni --- drivers/clk/at

[PATCH 1/7] dt-bindings: clock: at91: new sckc bindings

2019-02-19 Thread Alexandre Belloni
Remove the need for child nodes in the sckc binding to be able to remove dtc warnings and have a more modern binding. Also document optional properties. Cc: Rob Herring Signed-off-by: Alexandre Belloni --- .../devicetree/bindings/clock/at91-clock.txt | 30 --- 1 file changed,

[PATCH 4/7] ARM: dts: at91: at91sam9x5: switch to new sckc bindings

2019-02-19 Thread Alexandre Belloni
Remove the child nodes of the sckc as they are not necessary anymore. Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/at91sam9x5.dtsi | 23 +++ 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/arch/arm/boot/dts/at91sam9x5.dtsi b/arch/arm/boot/dts/at91sam

[PATCH 1/3] media: saa7146: avoid high stack usage with clang

2019-02-19 Thread Arnd Bergmann
Two saa7146/hexium files contain a construct that causes a warning when built with clang: drivers/media/pci/saa7146/hexium_orion.c:210:12: error: stack frame size of 2272 bytes in function 'hexium_probe' [-Werror,-Wframe-larger-than=] static int hexium_probe(struct saa7146_dev *dev)

[PATCH 3/3] media: go7007: avoid clang frame overflow warning with KASAN

2019-02-19 Thread Arnd Bergmann
clang-8 warns about one function here when KASAN is enabled, even without the 'asan-stack' option: drivers/media/usb/go7007/go7007-fw.c:1551:5: warning: stack frame size of 2656 bytes in function I have reported this issue in the llvm bugzilla, but to make it work with the clang-8 release, a sma

[PATCH 7/7] ARM: dts: at91: sama5d3: switch to new sckc bindings

2019-02-19 Thread Alexandre Belloni
Remove the child nodes of the sckc as they are not necessary anymore. Also, switch to the new atmel,sama5d3-sckc compatible string to use the proper startup time for the RC oscillator (500 µs instead of 75). Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/at91-wb50n.dtsi | 2 +- arch/ar

[PATCH 3/7] clk: at91: sckc: handle different RC startup time

2019-02-19 Thread Alexandre Belloni
The sama5d3 slow RC oscillator as a different startup time than all the previous SoCs. Handle that using its own compatible. Signed-off-by: Alexandre Belloni --- drivers/clk/at91/sckc.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/drivers/clk/at91/sckc.c

[PATCH 6/7] ARM: dts: at91: at91sam9rl: switch to new sckc bindings

2019-02-19 Thread Alexandre Belloni
Remove the child nodes of the sckc as they are not necessary anymore. Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/at91sam9rl.dtsi | 25 +++-- 1 file changed, 3 insertions(+), 22 deletions(-) diff --git a/arch/arm/boot/dts/at91sam9rl.dtsi b/arch/arm/boot/dts/at91s

[PATCH 2/3] media: vicodec: avoic clang frame size warning

2019-02-19 Thread Arnd Bergmann
Clang-9 makes some different inlining decisions compared to gcc, which leads to a warning about a possible stack overflow problem when building with CONFIG_KASAN, including when setting asan-stack=0, which avoids most other frame overflow warnings: drivers/media/platform/vicodec/codec-fwht.c:673:1

[PATCH 5/7] ARM: dts: at91: at91sam9g45: switch to new sckc bindings

2019-02-19 Thread Alexandre Belloni
Remove the child nodes of the sckc as they are not necessary anymore. Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/at91sam9g45.dtsi | 25 +++-- 1 file changed, 3 insertions(+), 22 deletions(-) diff --git a/arch/arm/boot/dts/at91sam9g45.dtsi b/arch/arm/boot/dts/at9

Re: [PATCH] MAINTAINERS: pci/cadence: Updating maintainer information. Removing Alan and adding myself(tjos...@cadence.com) as the maintainer.

2019-02-19 Thread Lorenzo Pieralisi
Hi Tom, the $SUBJECT should be reformatted, please read: https://www.kernel.org/doc/html/latest/process/submitting-patches.html Also, while using get_maintainer.pl to derive a sane CC list is good, it has to be used with some common sense, it is not really needed for this patch. There is no nee

Re: [PATCH] arm/mach-omap2/display: fix possible object reference leak

2019-02-19 Thread Tony Lindgren
Hi, Adding devicetree list, Julia, Rob and Tomi to Cc. * Peng Hao [190212 23:11]: > of_find_device_by_node() takes a reference to the struct device > when it finds a match via get_device.When returning error we should > call put_device. > > Signed-off-by: Peng Hao > --- > arch/arm/mach-omap2/

Re: [PATCH v2 1/2] ASoC: codecs: pcm186x: fix wrong usage of DECLARE_TLV_DB_SCALE()

2019-02-19 Thread Andrew F. Davis
On 2/19/19 10:29 AM, codrin.ciubota...@microchip.com wrote: > From: Codrin Ciubotariu > > According to DS, the gain is between -12 dB and 40 dB, with a 0.5 dB step. > Tested on pcm1863. > > Signed-off-by: Codrin Ciubotariu > --- Acked-by: Andrew F. Davis > > Changes in v2: > - fixed title

Re: [PATCH] driver core: Fix PM-runtime for links added during consumer probe

2019-02-19 Thread Thierry Reding
On Tue, Feb 19, 2019 at 05:53:26PM +0100, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Commit 4c06c4e6cf63 ("driver core: Fix possible supplier PM-usage > counter imbalance") introduced a regression that causes suppliers > to be suspended prematurely for device links added during consum

Re: [PATCH v2 2/2] ASoC: codecs: pcm186x: Fix energysense SLEEP bit

2019-02-19 Thread Andrew F. Davis
On 2/19/19 10:29 AM, codrin.ciubota...@microchip.com wrote: > From: Codrin Ciubotariu > > The ADCs are sleeping when the SLEEP bit is set and running when it's > cleared, so the bit should be inverted. > Tested on pcm1863. > Did this work for you before? Strange it would if reversed, I wonder i

[PATCHv5] random: Make /dev/random wait for input_pool initialized

2019-02-19 Thread Bernd Edlinger
Reading from /dev/random may return data while the getrandom syscall is still blocking. Those bytes are not yet cryptographically secure. The first byte from /dev/random can have as little as 8 bits entropy estimation. Once a read blocks, it will block until /proc/sys/kernel/random/read_wakeup_t

Re: [PATCH v5 05/10] dt-bindings: irqchip: Introduce TISCI Interrupt router bindings

2019-02-19 Thread Tony Lindgren
* Lokesh Vutla [190219 16:19]: > yes. How different is this from any of the above mentioned drivers using > firmware specific ids. Like sci pm domain[1] driver utilizes the same > device id for enabling any device in the system. Similarly clock > driver[2] uses the same device ids and clock ids sp

Re: [PATCH V4 1/2] i2c: tegra: remove master fifo support on tegra186

2019-02-19 Thread Thierry Reding
On Mon, Feb 18, 2019 at 08:50:24PM -0800, Sowjanya Komatineni wrote: > Tegra186 does not have master fifo control register and instead > uses fifo control register like prior tegra chipset. > > This patch fixes this and prevents crashing during boot when > accessing fifo control registers. > > Si

Re: [RFC PATCH] fs: Make splice() and tee() take into account O_NONBLOCK flag on pipes

2019-02-19 Thread Steven Rostedt
On Wed, 13 Feb 2019 09:44:45 -0500 Steven Rostedt wrote: > Reviewed-by: Steven Rostedt (VMware) > > Does anyone have any issues or comments about this patch? I'm going to start pinging people once a week, looking for comments on this patch ;-) -- Steve

Re: [PATCH V4 2/2] i2c: tegra: remove multi-master support

2019-02-19 Thread Thierry Reding
On Mon, Feb 18, 2019 at 08:50:25PM -0800, Sowjanya Komatineni wrote: > multi-master support is defeatured on Tegra210 and Tegra186 due to > known bugs. Nit: "Multi-master" because it's the beginning of a sentence. > > This patch removes multi-master support for Tegra210 and Tegra186 > i2c hw fea

[PATCH 0/6] iio: imu: adis16480: Add support for ADIS1649x family of devices

2019-02-19 Thread Stefan Popa
This series has as main goal to add support for ADIS1649x family of devices as part of the already existing adis16480, but on the way it also deals with some outstanding items: * Make drdy pin configurable * Add OF device ID table * Deal with the temperature max scale in a generic way * Add missin

[PATCH 1/6] iio: imu: adis16480: Use the default data ready pin configuration

2019-02-19 Thread Stefan Popa
The FNCTIO_CTRL register, Bits[3:0] provide three configuration options for the data ready function: on/off, polarity, and DIOx line. The factory default assigns DIO2 as a positive polarity, data ready signal. The adis16480_enable_irq() function, overwrites this configuration when it enables/disab

[PATCH 2/6] iio: imu: adis16480: Add support for configurable drdy indicator

2019-02-19 Thread Stefan Popa
The FNCTIO_CTRL register provides configuration control for each I/O pin (DIO1, DIO2, DIO3 and DIO4). This patch adds the option to configure each DIOx pin as data ready indicator with positive or negative polarity by reading the 'interrupts' and 'interrupt-names' properties from the devicetree. T

[PATCH 3/6] iio: imu: adis16480: Add OF device ID table

2019-02-19 Thread Stefan Popa
The driver does not have a struct of_device_id table, but supported devices are registered via Device Trees. This patch adds OF device ID table. Signed-off-by: Stefan Popa --- drivers/iio/imu/adis16480.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/iio/imu/adis16480.c

[PATCH 5/6] iio: imu: adis16480: Add support for ADIS1649x family of devices

2019-02-19 Thread Stefan Popa
The ADIS16495 and ADIS16497 are inertial systems that include a triaxis gyroscope and a triaxis accelerometer. The serial peripheral interface (SPI) provide a simple interface for data collection and configuration control. The devices are similar to ADIS16475, ADIS16480, ADIS16485 and ADIS16488, th

[PATCH 4/6] iio: imu: adis16480: Treat temperature scale in a generic way

2019-02-19 Thread Stefan Popa
All supported devices provide internal temperature measurement from -40 C to +85 C, with +25 C representing value 0x00. This patch treats the temperature scale in a generic way, similar to the accelerometer and gyroscope scales. So far, there are no temperature max scale differences between the su

[PATCH 6/6] iio: imu: adis16480: Add docs for ADIS16480 IMU

2019-02-19 Thread Stefan Popa
Document support for ADIS16480 Inertial Measurement Unit. Signed-off-by: Stefan Popa --- .../devicetree/bindings/iio/imu/adi,adis16480.txt | 49 ++ MAINTAINERS| 1 + 2 files changed, 50 insertions(+) create mode 100644 Documentation/

Re: [RFC PATCH RT 0/2] Add PINNED_HARD mode to hrtimers

2019-02-19 Thread Sebastian Andrzej Siewior
On 2019-02-14 14:37:14 [+0100], Juri Lelli wrote: > Hi, Hi, > Now, I'm sending this and an RFC, as I'm wondering if the first behavior > is actually what we want, and it is not odd at all for reasons that are > not evident to me at the moment. In this case this posting might also > function as a q

Re: [PATCHv6 00/10] Heterogenous memory node attributes

2019-02-19 Thread Keith Busch
On Mon, Feb 18, 2019 at 03:25:31PM +0100, Brice Goglin wrote: > Le 14/02/2019 à 18:10, Keith Busch a écrit : > > Determining the cpu and memory node local relationships is quite > > different this time (PATCH 7/10). The local relationship to a memory > > target will be either *only* the node

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