Re: [PATCH v6 15/21] s390: vfio-ap: configure the guest's AP matrix

2018-07-12 Thread Halil Pasic
On 06/29/2018 11:11 PM, Tony Krowiak wrote: From: Tony Krowiak Configures the AP adapters, usage domains and control domains for the [..] +static inline void kvm_ap_clear_crycb_masks(struct ap_matrix_mdev *matrix_mdev) +{ + memset(&matrix_mdev->kvm->arch.crypto.crycb->apcb0, 0, +

Re: [PATCH v3] iio: chemical: Add support for Bosch BME680 sensor

2018-07-12 Thread Jonathan Cameron
On Wed, 11 Jul 2018 17:40:07 -0700 Matt Ranostay wrote: > On Wed, Jul 11, 2018 at 5:13 AM, Himanshu Jha > wrote: > > Bosch BME680 is a 4-in-1 sensor with temperature, pressure, humidity > > and gas sensing capability. It supports both I2C and SPI communication > > protocol for effective data com

Re: [PATCH 1/2] ARM: dts: imx51-zii-scu3-esb: Add switch IRQ line pinumx config

2018-07-12 Thread Andrew Lunn
On Wed, Jul 11, 2018 at 07:33:36PM -0700, Andrey Smirnov wrote: > Add DT code to explicitly configure PAD_AUD3_BB_CK and avoid relying > on defaults. > > Cc: Fabio Estevam > Cc: Nikita Yushchenko > Cc: Lucas Stach > Cc: cphe...@gmail.com > Cc: Shawn Guo > Cc: Rob Herring > Cc: Mark Rutland >

Re: [PATCH] mtd: rawnand: tegra: check bounds of die_nr properly

2018-07-12 Thread Marcel Ziswiler
On Wed, 2018-07-04 at 11:13 +0200, Stefan Agner wrote: > The Tegra driver currently only support a single chip select, hence > check boundaries accordingly. This fixes a off by one issue catched > with Smatch: > drivers/mtd/nand/raw/tegra_nand.c:476 tegra_nand_select_chip() > warn: array of

Re: [PATCH v6 4/4] clk: tegra: make sdmmc2 and sdmmc4 as sdmmc clocks

2018-07-12 Thread Jon Hunter
On 12/07/18 14:11, Aapo Vienamo wrote: > On Thu, 12 Jul 2018 13:59:58 +0100 > Jon Hunter wrote: > >> On 12/07/18 12:53, Aapo Vienamo wrote: >>> From: Peter De-Schrijver >>> >>> These clocks have low jitter paths to certain parents. To model these >>> correctly, use the sdmmc mux divider clock

Re: [PATCH v9 4/7] tracepoint: Make rcuidle tracepoint callers use SRCU

2018-07-12 Thread Steven Rostedt
On Wed, 11 Jul 2018 21:28:25 -0700 Joel Fernandes wrote: > On Wed, Jul 11, 2018 at 11:21:20PM -0400, Steven Rostedt wrote: > > On Wed, 11 Jul 2018 13:52:49 -0700 > > Joel Fernandes wrote: > > > > > > #define __DECLARE_TRACE(name, proto, args, cond, data_proto, data_args) > > > > \ > > > >

Re: [PATCH v9 5/7] tracing: Centralize preemptirq tracepoints and unify their usage

2018-07-12 Thread Steven Rostedt
On Thu, 12 Jul 2018 01:38:05 -0700 Joel Fernandes wrote: > So actually with or without the clean up, I don't see any issues with > dropping lockdep_recursing in my tests at the moment. I'm not sure something > else changed between then and now causing the issue to go away. I can include > Peter's

Re: [PATCH 1/2] ARM: dts: imx51-zii-scu3-esb: Add switch IRQ line pinumx config

2018-07-12 Thread Fabio Estevam
Hi Andrey, On Wed, Jul 11, 2018 at 11:33 PM, Andrey Smirnov wrote: > + pinctrl_switch: switchgrp { > + fsl,pins = < > + MX51_PAD_AUD3_BB_CK__GPIO4_20 0xc5 The i.MX51 Reference Manual states that 0xa5 is the default reset value for the register

Re: [PATCH] thp: fix data loss when splitting a file pmd

2018-07-12 Thread Kirill A. Shutemov
On Thu, Jul 12, 2018 at 12:48:54AM +, Hugh Dickins wrote: > __split_huge_pmd_locked() must check if the cleared huge pmd was dirty, > and propagate that to PageDirty: otherwise, data may be lost when a huge > tmpfs page is modified then split then reclaimed. > > How has this taken so long to b

Re: [RFC][PATCH 11/11] signal: Ignore all but multi-process signals that come in during fork.

2018-07-12 Thread Oleg Nesterov
On 07/11, Eric W. Biederman wrote: > > Oleg Nesterov writes: > > >> - recalc_sigpending(); > >> - if (signal_pending(current)) { > >> + if (read_seqcount_retry(¤t->signal->multi_process_seq, seq) || > >> + fatal_signal_pending(current)) { > >>retval = -ERESTARTNOINTR; > >>

[PATCH] mips/jazz: provide missing dma_mask/coherent_dma_mask

2018-07-12 Thread Thomas Bogendoerfer
Commit 205e1b7f51e4 ("dma-mapping: warn when there is no coherent_dma_mask") introduced a warning, if a device is missing a coherent_dma_mask. ESP and sonic are using dma mapping functions, so they need dma masks. Signed-off-by: Thomas Bogendoerfer --- arch/mips/jazz/setup.c | 17 +++

Re: [PATCH] mtd: rawnand: tegra: check bounds of die_nr properly

2018-07-12 Thread Dan Carpenter
On Thu, Jul 12, 2018 at 01:31:57PM +, Marcel Ziswiler wrote: > On Wed, 2018-07-04 at 11:13 +0200, Stefan Agner wrote: > > The Tegra driver currently only support a single chip select, hence > > check boundaries accordingly. This fixes a off by one issue catched > > with Smatch: > > drivers/

Re: [PATCH 2/2] kprobe: fix: Add ftrace_ops_assist_func to kprobe blacklist

2018-07-12 Thread Masami Hiramatsu
On Wed, 11 Jul 2018 15:34:30 -0400 Francis Deslauriers wrote: > Hi Steven, > I tested it and it prevents the kernel crash I am witnessing. > As for the side-effect that Masami mentioned regarding not being able to probe > function inside the trace_kprobe.c file, I suggest we move the target > fun

Re: [PATCH] ARM: dts: imx6sl: Add vivante gpu nodes

2018-07-12 Thread Fabio Estevam
Hi Leonard, On Thu, Jul 12, 2018 at 10:37 AM, Leonard Crestez wrote: > diff --git a/arch/arm/boot/dts/imx6sl.dtsi b/arch/arm/boot/dts/imx6sl.dtsi > index a6bc21433839..49a56b4fd393 100644 > --- a/arch/arm/boot/dts/imx6sl.dtsi > +++ b/arch/arm/boot/dts/imx6sl.dtsi > @@ -130,10 +130,30 @@ >

Re: [PATCH] kconfig: remove EXPERT from CHECKPOINT_RESTORE

2018-07-12 Thread Oleg Nesterov
On 07/12, Adrian Reber wrote: > > The CHECKPOINT_RESTORE configuration option was introduced in 2012 and > combined with EXPERT. CHECKPOINT_RESTORE is already enabled in many > distribution kernels and also part of the defconfigs of various > architectures. > > To make it easier for distributions t

Re: [PATCH] kconfig: remove EXPERT from CHECKPOINT_RESTORE

2018-07-12 Thread Hendrik Brueckner
On Thu, Jul 12, 2018 at 03:07:33PM +0200, Adrian Reber wrote: > The CHECKPOINT_RESTORE configuration option was introduced in 2012 and > combined with EXPERT. CHECKPOINT_RESTORE is already enabled in many > distribution kernels and also part of the defconfigs of various > architectures. > > To mak

Re: [PATCH v2] tools/memory-model: Add extra ordering for locks and remove it for ordinary release/acquire

2018-07-12 Thread Peter Zijlstra
On Thu, Jul 12, 2018 at 01:52:49PM +0200, Andrea Parri wrote: > On Thu, Jul 12, 2018 at 09:40:40AM +0200, Peter Zijlstra wrote: > > On Wed, Jul 11, 2018 at 02:34:21PM +0200, Andrea Parri wrote: > > > 2) Resolve the above mentioned controversy (the inconsistency between > > > - locking opera

Re: [PATCH] kconfig: remove EXPERT from CHECKPOINT_RESTORE

2018-07-12 Thread Alice Frosi
On 12.07.2018 15:47, Hendrik Brueckner wrote: On Thu, Jul 12, 2018 at 03:07:33PM +0200, Adrian Reber wrote: The CHECKPOINT_RESTORE configuration option was introduced in 2012 and combined with EXPERT. CHECKPOINT_RESTORE is already enabled in many distribution kernels and also part of the defc

[PATCH] perf tools: Synthesize GROUP_DESC feature in pipe mode

2018-07-12 Thread Jiri Olsa
Stephan reported, that pipe mode does not carry the group information and thus the piped report won't display the grouped output for following command: # perf record -e '{cycles,instructions,branches}' -a sleep 4 | perf report It has no idea about the group setup, so it will display events sepa

Re: [GIT PULL 00/14] perf/urgent fixes

2018-07-12 Thread Ingo Molnar
* Arnaldo Carvalho de Melo wrote: > Hi Ingo, > > Please consider pulling, > > - Arnaldo > > Test results at the end of this message, as usual. > > The following changes since commit 092150a25cb7bd6a79aa00bb1ad131063f58073d: > > Merge branch 'for-linus' of > git://git.kernel.org/pu

Re: [RFC PATCH] mm, page_alloc: double zone's batchsize

2018-07-12 Thread Jesper Dangaard Brouer
On Thu, 12 Jul 2018 14:54:08 +0200 Michal Hocko wrote: > [CC Jesper - I remember he was really concerned about the worst case > latencies for highspeed network workloads.] Cc. Tariq as he have hit some networking benchmarks (around 100Gbit/s), where we are contenting on the page allocator lock,

Re: [Intel-gfx] [PATCH] i915/intel_tv_get_modes: fix strncpy truncation warning

2018-07-12 Thread Dominique Martinet
Ville Syrjälä wrote on Thu, Jul 12, 2018: > On Wed, Jul 11, 2018 at 09:46:15AM +0200, Dominique Martinet wrote: > > This is effectively no-op as the next line writes a nul at the final > > What is "This". Please write self contained commit messages. This could either be 'this commit' as a whole o

Re: [PATCH] ARM: DTS: am3517.dtsi: Disable reference to OMAP3 OTG controller

2018-07-12 Thread Tony Lindgren
* Adam Ford [180711 10:58]: > The AM3517 has a different OTG controller location than the OMAP3, > which is included from omap3.dtsi. This results in a hwmod error. > Since the AM3517 has a different OTG controller address, this patch > disabes one that is isn't available. Applying into omap-for

Re: [PATCH 2/2] kprobe: fix: Add ftrace_ops_assist_func to kprobe blacklist

2018-07-12 Thread Masami Hiramatsu
On Wed, 11 Jul 2018 20:40:45 -0400 Francis Deslauriers wrote: > Le mer. 11 juill. 2018, à 15 h 56, Steven Rostedt > a écrit : > > > > On Wed, 11 Jul 2018 15:34:30 -0400 > > Francis Deslauriers wrote: > > > > > Hi Steven, > > > I tested it and it prevents the kernel crash I am witnessing. > > >

[tip:perf/urgent] perf scripts python: Add Python 3 support to Core.py

2018-07-12 Thread tip-bot for Jeremy Cline
Commit-ID: 770d2f86c0051d4f2c0ab9d74d68434cb383241d Gitweb: https://git.kernel.org/tip/770d2f86c0051d4f2c0ab9d74d68434cb383241d Author: Jeremy Cline AuthorDate: Tue, 8 May 2018 21:27:45 + Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 11 Jul 2018 10:01:50 -0300 perf scripts p

Re: [PATCH 00/39 v7] PTI support for x86-32

2018-07-12 Thread Boris Ostrovsky
On 07/11/2018 03:57 PM, Thomas Backlund wrote: > Den 2018-07-11 kl. 20:28, skrev Jiri Kosina: >> On Wed, 11 Jul 2018, Linus Torvalds wrote: >> >>> It's the testing that worries me most. Pretty much no developers run >>> 32-bit any more, and I'd be most worried about the odd interactions >>> that >>

[tip:perf/urgent] perf scripts python: Add Python 3 support to SchedGui.py

2018-07-12 Thread tip-bot for Jeremy Cline
Commit-ID: 2ab89262ff8895b8476b97345507c676fe3081fa Gitweb: https://git.kernel.org/tip/2ab89262ff8895b8476b97345507c676fe3081fa Author: Jeremy Cline AuthorDate: Tue, 8 May 2018 21:27:45 + Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 11 Jul 2018 10:01:50 -0300 perf scripts p

[tip:perf/urgent] perf tools: Generate a Python script compatible with Python 2 and 3

2018-07-12 Thread tip-bot for Jeremy Cline
Commit-ID: 877cc639686b68c7de179a485544f4761e376b30 Gitweb: https://git.kernel.org/tip/877cc639686b68c7de179a485544f4761e376b30 Author: Jeremy Cline AuthorDate: Tue, 8 May 2018 21:27:43 + Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 11 Jul 2018 10:01:50 -0300 perf tools: Ge

[tip:perf/urgent] perf test shell: Replace '|&' with '2>&1 |' to work with more shells

2018-07-12 Thread tip-bot for Kim Phillips
Commit-ID: 508ef3e737bbb9858a30e7bb153507429ea89644 Gitweb: https://git.kernel.org/tip/508ef3e737bbb9858a30e7bb153507429ea89644 Author: Kim Phillips AuthorDate: Fri, 29 Jun 2018 12:46:33 -0500 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 11 Jul 2018 10:01:51 -0300 perf test she

[tip:perf/urgent] perf scripts python: Add Python 3 support to Util.py

2018-07-12 Thread tip-bot for Jeremy Cline
Commit-ID: c45b168effb12719f6dfc8d2c20ba8c057e8c16b Gitweb: https://git.kernel.org/tip/c45b168effb12719f6dfc8d2c20ba8c057e8c16b Author: Jeremy Cline AuthorDate: Tue, 8 May 2018 21:27:46 + Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 11 Jul 2018 10:01:50 -0300 perf scripts p

Re: [bug] kpti, perf_event, bts: sporadic truncated trace

2018-07-12 Thread Andi Kleen
"Metzger, Markus T" writes: Adding Dave Hansen > Hello, > > Starting with 4.15 I noticed that BTS is sporadically missing the tail > of the trace in the perf_event data buffer. It shows as > > [decode error (1): instruction overflow] > > in GDB. Chances to see this are higher the longer th

[tip:perf/urgent] perf scripts python: Add Python 3 support to sched-migration.py

2018-07-12 Thread tip-bot for Jeremy Cline
Commit-ID: 8c1c1ab2d2a77cb50841822168e56d11c4ebfd6e Gitweb: https://git.kernel.org/tip/8c1c1ab2d2a77cb50841822168e56d11c4ebfd6e Author: Jeremy Cline AuthorDate: Tue, 8 May 2018 21:27:47 + Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 11 Jul 2018 10:01:50 -0300 perf scripts p

[tip:perf/urgent] perf llvm-utils: Remove bashism from kernel include fetch script

2018-07-12 Thread tip-bot for Kim Phillips
Commit-ID: f6432b9f65001651412dbc3589d251534822d4ab Gitweb: https://git.kernel.org/tip/f6432b9f65001651412dbc3589d251534822d4ab Author: Kim Phillips AuthorDate: Fri, 29 Jun 2018 12:46:52 -0500 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 11 Jul 2018 10:01:51 -0300 perf llvm-uti

[tip:perf/urgent] perf scripts python: Add Python 3 support to EventClass.py

2018-07-12 Thread tip-bot for Jeremy Cline
Commit-ID: 12aa6c7389a321b4b5d921f89c3f83b9750598f7 Gitweb: https://git.kernel.org/tip/12aa6c7389a321b4b5d921f89c3f83b9750598f7 Author: Jeremy Cline AuthorDate: Tue, 8 May 2018 21:27:48 + Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 11 Jul 2018 10:01:50 -0300 perf scripts p

[tip:perf/urgent] perf test shell: Prevent temporary editor files from being considered test scripts

2018-07-12 Thread tip-bot for Kim Phillips
Commit-ID: db8fec583f250557ddd6def1505a6c466c9747aa Gitweb: https://git.kernel.org/tip/db8fec583f250557ddd6def1505a6c466c9747aa Author: Kim Phillips AuthorDate: Fri, 29 Jun 2018 12:46:58 -0500 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 11 Jul 2018 10:01:51 -0300 perf test she

[tip:perf/urgent] perf test shell: Make perf's inet_pton test more portable

2018-07-12 Thread tip-bot for Kim Phillips
Commit-ID: 98c6c8a1d00fba66625311730f80c6ceaa9c1d19 Gitweb: https://git.kernel.org/tip/98c6c8a1d00fba66625311730f80c6ceaa9c1d19 Author: Kim Phillips AuthorDate: Fri, 29 Jun 2018 12:46:43 -0500 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 11 Jul 2018 10:01:51 -0300 perf test she

[tip:perf/urgent] perf tools: Fix compilation errors on gcc8

2018-07-12 Thread tip-bot for Jiri Olsa
Commit-ID: a09603f851045b031e990d2d663958ccb49db525 Gitweb: https://git.kernel.org/tip/a09603f851045b031e990d2d663958ccb49db525 Author: Jiri Olsa AuthorDate: Mon, 2 Jul 2018 15:42:01 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 11 Jul 2018 09:39:57 -0400 perf tools: Fix c

[tip:perf/urgent] perf stat: Fix --interval_clear option

2018-07-12 Thread tip-bot for Jiri Olsa
Commit-ID: c818cc063089e78bc31845d1eb6a1f0bedee1eae Gitweb: https://git.kernel.org/tip/c818cc063089e78bc31845d1eb6a1f0bedee1eae Author: Jiri Olsa AuthorDate: Mon, 2 Jul 2018 15:42:02 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 11 Jul 2018 09:43:03 -0400 perf stat: Fix --

[tip:perf/urgent] perf script python: Fix dict reference counting

2018-07-12 Thread tip-bot for Janne Huttunen
Commit-ID: db0ba84c04ef2cf293aaada5ae97531127844d9d Gitweb: https://git.kernel.org/tip/db0ba84c04ef2cf293aaada5ae97531127844d9d Author: Janne Huttunen AuthorDate: Mon, 9 Jul 2018 13:59:50 +0300 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 11 Jul 2018 09:45:24 -0400 perf script

[tip:perf/urgent] perf tools: Use python-config --includes rather than --cflags

2018-07-12 Thread tip-bot for Jeremy Cline
Commit-ID: 32aa928a7b817140c84987b726d5014911808fa4 Gitweb: https://git.kernel.org/tip/32aa928a7b817140c84987b726d5014911808fa4 Author: Jeremy Cline AuthorDate: Tue, 10 Jul 2018 11:46:12 -0400 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 11 Jul 2018 09:48:31 -0400 perf tools: U

Re: [PATCH 0/6] kbuild: clean-up and rename LDFLAGS to KBUILD_LDFLAGS

2018-07-12 Thread Kirill A. Shutemov
On Thu, Jul 12, 2018 at 05:01:30PM +0900, Masahiro Yamada wrote: > > This series renames LDFLAGS to KBUILD_LDFLAGS > after some Makefile cleanups. > > Currently, the last patch does not apply to Linus' tree > due to missing pre-requisite patches. > > I will resolve conflicts as needed. > > >

[char-misc-next 3/3] mei: fix ssize_t to int assignment in read and write ops.

2018-07-12 Thread Tomas Winkler
Use ssize_t for rets variables in mei_write(), mei_read(), and mei_cl_write() as well as change the return type of mei_cl_write() to ssize_t, to prevent assignment of possible 64bit size_t to int 32 bit variable. As by product also eliminate warning drivers/misc/mei/client.c:1702:11: warning: comp

[char-misc-next 2/3] mei: use correct type for counter variable in for loops

2018-07-12 Thread Tomas Winkler
In for loops use same type for counter variable as has the limiting variable. drivers/misc/mei/bus-fixup.c:489:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] drivers/misc/mei/hw-txe.c:725:13: warning: comparison between signed and unsigned integer expres

[char-misc-next 1/3] mei: check for error returned from mei_hbuf_empty_slots()

2018-07-12 Thread Tomas Winkler
mei_hbuf_empty_slots() may return with an error in case of circular buffer overflow. This type of error may be caused only by a bug. However currently, the error won't be detected due signed type promotion in comparison to u32. We add explicit check for less then zero and explicit cast in compariso

[char-misc-next 0/3] mei: more type conversion issues.

2018-07-12 Thread Tomas Winkler
Add more type conversion issues. The first one in also address the type promotion bug, as reported by Dan Carpenter. The particular error should not really happen unless something is completely wrong, so no urge to merging them into stable. Tomas Winkler (3): mei: check for error returned from m

Re: [PATCH v4] uart: fix race between uart_put_char() and uart_shutdown()

2018-07-12 Thread Tycho Andersen
Hi Andy, On Thu, Jul 12, 2018 at 12:03:08PM +0300, Andy Shevchenko wrote: > On Wed, Jul 11, 2018 at 7:07 PM, Tycho Andersen wrote: > > > Anyway, since the lock is not acquired, if uart_shutdown() is called, the > > last chunk of that function may release state->xmit.buf before its assigned > > t

Re: [PATCH] perf kvm: Fix subcommands on s390

2018-07-12 Thread Stefan Raspl
On 12.07.2018 09:09, Thomas Richter wrote: > With commit eca0fa28cd0d ("perf record: Provide detailed information on s390 > CPU") > s390 platform provides detailed type/model/capacitiy information > in the CPU indentifier string instead of just "IBM/S390". > > This breaks perf kvm support which u

Re: [PATCH v2 1/3] clk: meson: add DT documentation for emmc clock controller

2018-07-12 Thread Rob Herring
On Wed, Jul 11, 2018 at 8:47 PM Yixun Lan wrote: > > Hi Rob > > see my comments > > On 07/12/18 03:43, Rob Herring wrote: > > On Tue, Jul 10, 2018 at 04:36:56PM +, Yixun Lan wrote: > >> Document the MMC sub clock controller driver, the potential consumer > >> of this driver is MMC or NAND. > >

[PATCH 3/4] perf tools: Add threads__set_last_match function

2018-07-12 Thread Jiri Olsa
Separating threads::last_match cache set into separate threads__set_last_match function. This will be useful in following patch. Link: http://lkml.kernel.org/n/tip-r2phhluimtb4747rug66m...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/machine.c | 12 +--- 1 file changed, 9

[PATCH 2/4] perf tools: Add threads__get_last_match function

2018-07-12 Thread Jiri Olsa
Separating threads::last_match cache read/check into separate threads__get_last_match function. This will be useful in following patch. Link: http://lkml.kernel.org/n/tip-z4zzlpp3vusjued0gzp5u...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/machine.c | 39 +

[PATCH 0/4] perf tools: Fix top crashes

2018-07-12 Thread Jiri Olsa
hi, perf top is occasionaly crashes on hitting assert, because of the synthesize function that runs on multiple threads now. I found some issues with list/tree accessing and this patchset is trying to fix them. I was runing 'perf top' in a loop with attached change below and haven't hit any other

[PATCH 1/4] perf tools: Fix struct comm_str removal crash

2018-07-12 Thread Jiri Olsa
We occasionaly hit following assert failure in perf top, when processing the /proc info in multiple threads. perf: ...include/linux/refcount.h:109: refcount_inc: Assertion `!(!refcount_inc_not_zero(r))' failed. The gdb backtrace looks like this: [Switching to Thread 0x711ba700 (L

[PATCH 4/4] perf tools: Use last_match threads cache only in single thread mode

2018-07-12 Thread Jiri Olsa
There's an issue with using threads::last_match in multithread mode which is enabled during the perf top synthesize. It might crash with following assertion: perf: ...include/linux/refcount.h:109: refcount_inc: Assertion `!(!refcount_inc_not_zero(r))' failed. The gdb backtrace looks lik

Re: general protection fault in _vm_normal_page

2018-07-12 Thread Kirill A. Shutemov
On Wed, Jul 11, 2018 at 02:04:49PM -0700, Andrew Morton wrote: > On Wed, 11 Jul 2018 09:49:01 -0700 syzbot > wrote: > > > Hello, > > > > syzbot found the following crash on: > > > > HEAD commit:98be45067040 Add linux-next specific files for 20180711 > > git tree: linux-next > > conso

Re: [PATCH v6 09/21] s390: vfio-ap: structure for storing mdev matrix

2018-07-12 Thread Tony Krowiak
On 07/06/2018 04:26 PM, Halil Pasic wrote: On 06/29/2018 11:11 PM, Tony Krowiak wrote: From: Tony Krowiak Introduces a new structure for storing the AP matrix configured for the mediated matrix device via its sysfs attributes files. Signed-off-by: Tony Krowiak --- drivers/s390/crypto/vfi

Re: [PATCH v6 15/21] s390: vfio-ap: configure the guest's AP matrix

2018-07-12 Thread Tony Krowiak
On 07/12/2018 01:22 AM, Halil Pasic wrote: On 06/29/2018 11:11 PM, Tony Krowiak wrote: From: Tony Krowiak Configures the AP adapters, usage domains and control domains for the KVM guest from the matrix configured via the mediated matrix device's sysfs attribute files. [..] + +static void

Re: [PATCH v6 15/21] s390: vfio-ap: configure the guest's AP matrix

2018-07-12 Thread Tony Krowiak
On 07/12/2018 03:28 PM, Halil Pasic wrote: On 06/29/2018 11:11 PM, Tony Krowiak wrote: From: Tony Krowiak Configures the AP adapters, usage domains and control domains for the [..] +static inline void kvm_ap_clear_crycb_masks(struct ap_matrix_mdev *matrix_mdev) +{ + memset(&matrix_mdev-

Re: h8300: BUG: Bad page state in process swapper (was: Re: why do we still need bootmem allocator?)

2018-07-12 Thread Yoshinori Sato
On Sun, 01 Jul 2018 21:22:46 +0900, Mike Rapoport wrote: > > (added Yoshinori Sato, here's the beginning of the discussion: > https://lore.kernel.org/lkml/20180625140754.gb29...@dhcp22.suse.cz/) > > On Wed, Jun 27, 2018 at 07:02:06PM +0300, Mike Rapoport wrote: > > On Wed, Jun 27, 2018 at 07:33:5

Re: [V9fs-developer] [PATCH v2 4/6] 9p: Embed wait_queue_head into p9_req_t

2018-07-12 Thread Dominique Martinet
Greg Kurz wrote on Thu, Jul 12, 2018: > This is true when all tags have been used at least once. But the current code > lazily allocates the wait_queue_head_t, ie, only when a tag is used for the > first time. Your patch causes a full row of wait_quest_head_t to be > pre-allocated. > > ie, P9_ROW

Re: [PATCH] sched/deadline: Fix switched_from_dl

2018-07-12 Thread Daniel Bristot de Oliveira
On 07/11/2018 09:29 AM, Juri Lelli wrote: > Mark noticed that syzkaller is able to reliably trigger the following > > dl_rq->running_bw > dl_rq->this_bw > WARNING: CPU: 1 PID: 153 at kernel/sched/deadline.c:124 > switched_from_dl+0x454/0x608 > Kernel panic - not syncing: panic_on_warn set .

[PATCH] time: hrtimer: Improve kernel message printing

2018-07-12 Thread Geert Uytterhoeven
- Join split message for easier grepping, - Use pr_*() instead of printk*(), - Use %u to format unsigned cpu numbers. Signed-off-by: Geert Uytterhoeven --- kernel/time/hrtimer.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/kernel/time/hrtimer.c b/kernel/time/h

Re: [PATCH v3 7/7] timex: change syscalls to use struct __kernel_timex

2018-07-12 Thread Arnd Bergmann
On Thu, Jul 12, 2018 at 10:29 AM, Christoph Hellwig wrote: > On Fri, Jul 06, 2018 at 10:42:47PM -0700, Deepa Dinamani wrote: > >> -#ifdef CONFIG_COMPAT >> - >> COMPAT_SYSCALL_DEFINE2(clock_adjtime, clockid_t, which_clock, >> struct compat_timex __user *, utp) >> { >> @@ -118

Re: Kernel 4.17.4 lockup

2018-07-12 Thread H.J. Lu
On Wed, Jul 11, 2018 at 4:14 PM, Dave Hansen wrote: > On 07/11/2018 04:07 PM, Andy Lutomirski wrote: >> Could the cause be an overflow of the IRQ stack? I’ve been meaning >> to put guard pages on all the special stacks for a while. Let me see >> if I can do that in the next couple days. > > But w

Re: [PATCH 2/3] iio: imu: mpu6050: add support for regulator framework

2018-07-12 Thread Jonathan Cameron
On Wed, 11 Jul 2018 09:00:07 -0400 Brian Masney wrote: > On Wed, Jul 11, 2018 at 12:29:33PM +, Jean-Baptiste Maneyrol wrote: > > Hello, > > > > I really don't like the idea to have regulator handled inside the > > driver. I know this was done like that before for Nexus 5, but I > > think no

Re: [PATCH 1/3] iio: imu: mpu6050: add support for 6515 variant

2018-07-12 Thread Jonathan Cameron
On Tue, 10 Jul 2018 21:09:30 -0400 Brian Masney wrote: > This patch adds support for the MPU 6515 variant. Confirmed that the > driver functions correctly on a LG Nexus 5 (hammerhead) phone. > > Signed-off-by: Brian Masney > Signed-off-by: Jonathan Marek > --- > This is a variation of Jonathan

[PATCH] PCI/AER: Enable SERR# forwarding in non ACPI flow

2018-07-12 Thread Bharat Kumar Gogada
Currently PCI_BRIDGE_CTL_SERR is being enabled only in ACPI flow. This bit is required for forwarding errors reported by EP devices to upstream device. This patch enables SERR# for Type-1 PCI device. Signed-off-by: Bharat Kumar Gogada --- drivers/pci/pcie/aer.c | 23 +++ 1

Re: [V9fs-developer] [PATCH v2 4/6] 9p: Embed wait_queue_head into p9_req_t

2018-07-12 Thread Greg Kurz
On Wed, 11 Jul 2018 14:02:23 -0700 Matthew Wilcox wrote: > On a 64-bit system, the wait_queue_head_t is 24 bytes while the pointer > to it is 8 bytes. Growing the p9_req_t by 16 bytes is better than > performing a 24-byte memory allocation. > This is true when all tags have been used at least

Re: [PATCH 24/32] vfs: syscall: Add fsopen() to prepare for superblock creation [ver #9]

2018-07-12 Thread David Howells
Andy Lutomirski wrote: > > On Jul 11, 2018, at 12:22 AM, David Howells wrote: > > > > Andy Lutomirski wrote: > > > >>> sfd = fsopen("ext4", FSOPEN_CLOEXEC); > >>> write(sfd, "s /dev/sdb1"); // note I'm ignoring write's length arg > >> > >> Imagine some malicious program passes sfd as stdout

[PATCHv2 2/2] mm: Drop unneeded ->vm_ops checks

2018-07-12 Thread Kirill A. Shutemov
We now have all VMAs with ->vm_ops set and don't need to check it for NULL everywhere. Signed-off-by: Kirill A. Shutemov --- fs/binfmt_elf.c | 2 +- fs/kernfs/file.c | 20 +--- fs/proc/task_mmu.c | 2 +- kernel/events/core.c | 2 +- kernel/fork.c| 2 +- mm/

[PATCHv2 1/2] mm: Fix vma_is_anonymous() false-positives

2018-07-12 Thread Kirill A. Shutemov
vma_is_anonymous() relies on ->vm_ops being NULL to detect anonymous VMA. This is unreliable as ->mmap may not set ->vm_ops. False-positive vma_is_anonymous() may lead to crashes: next 8801ce5e7040 prev 8801d20eca50 mm 88019c1e13c0 prot 27 anon_vma 88019680cdd8 vm_

[PATCHv2 0/2] Fix crash due to vma_is_anonymous() false-positives

2018-07-12 Thread Kirill A. Shutemov
Fix crash found by syzkaller. The fix allows to remove ->vm_ops checks. v2: - Catch few more cases where we need to initialize ->vm_ops: + nommu; + ia64; - Make sure that we initialize ->vm_ops even if ->mmap failed. We need ->vm_ops in error path too. Kirill A. Shutemov (2): mm:

Re: [PATCH] kbuild: suppress warnings from 'getconf LFS_*'

2018-07-12 Thread Masahiro Yamada
2018-07-12 20:08 GMT+09:00 Uwe Kleine-König : > On Thu, Jul 12, 2018 at 07:38:36PM +0900, Masahiro Yamada wrote: >> Suppress warnings for systems that do not recognize LFS_*. >> >> getconf: no such configuration parameter `LFS_CFLAGS' >> getconf: no such configuration parameter `LFS_LDFLAGS' >>

Re: [PATCH 1/3] tty/serial_core: add ISO7816 infrastructure

2018-07-12 Thread Greg KH
On Wed, Jul 11, 2018 at 03:16:36PM +0200, Ludovic Desroches wrote: > From: Nicolas Ferre > > Add the ISO7816 ioctl and associated accessors and data structure. > Drivers can then use this common implementation to handle ISO7816. > > Signed-off-by: Nicolas Ferre > [ludovic.desroc...@microchip.co

Re: [PATCH 3/3] tty/serial: atmel: manage shutdown in case of RS485 or ISO7816 mode

2018-07-12 Thread Greg KH
On Wed, Jul 11, 2018 at 03:26:23PM +0200, Ludovic Desroches wrote: > From: Nicolas Ferre > > In atmel_shutdown() we call atmel_stop_rx() and atmel_stop_tx() functions. > Prevent the rx restart that is implemented in RS485 or ISO7816 modes when > calling atmel_stop_tx() by using the atomic informa

Re: [PATCH 3/3] tty/serial: atmel: manage shutdown in case of RS485 or ISO7816 mode

2018-07-12 Thread Greg KH
On Wed, Jul 11, 2018 at 03:16:38PM +0200, Ludovic Desroches wrote: > From: Nicolas Ferre > > In atmel_shutdown() we call atmel_stop_rx() and atmel_stop_tx() functions. > Prevent the rx restart that is implemented in RS485 or ISO7816 modes when > calling atmel_stop_tx() by using the atomic informa

Re: [PATCH 2/3] tty/serial: atmel: add ISO7816 support

2018-07-12 Thread Greg KH
On Wed, Jul 11, 2018 at 03:16:37PM +0200, Ludovic Desroches wrote: > From: Nicolas Ferre > > When mode is set in atmel_config_iso7816() we backup last RS232 mode > for coming back to this mode if requested. > Also allow setup of T=0 and T=1 parameter and basic support in set_termios > function as

Re: [PATCH 1/3] tty/serial_core: add ISO7816 infrastructure

2018-07-12 Thread Greg KH
On Wed, Jul 11, 2018 at 03:16:36PM +0200, Ludovic Desroches wrote: > From: Nicolas Ferre > > Add the ISO7816 ioctl and associated accessors and data structure. > Drivers can then use this common implementation to handle ISO7816. > > Signed-off-by: Nicolas Ferre > [ludovic.desroc...@microchip.co

Re: [RFC PATCH] mm, page_alloc: double zone's batchsize

2018-07-12 Thread Tariq Toukan
On 12/07/2018 4:55 PM, Jesper Dangaard Brouer wrote: On Thu, 12 Jul 2018 14:54:08 +0200 Michal Hocko wrote: [CC Jesper - I remember he was really concerned about the worst case latencies for highspeed network workloads.] Cc. Tariq as he have hit some networking benchmarks (around 100Gbi

Re: [PATCH] scripts/tags.sh: add __ro_after_init

2018-07-12 Thread Masahiro Yamada
2018-07-12 3:36 GMT+09:00 Constantine Shulyupin : > Signed-off-by: Constantine Shulyupin > --- Applied to linux-kbuild/fixes. Thanks! > scripts/tags.sh | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/scripts/tags.sh b/scripts/tags.sh > index 66f08bb1cce9..412a70cce55

Re: [PATCH v4] uart: fix race between uart_put_char() and uart_shutdown()

2018-07-12 Thread Greg Kroah-Hartman
On Wed, Jul 11, 2018 at 10:07:44AM -0600, Tycho Andersen wrote: > + if (uport) > + spin_lock_irqsave(&uport->lock, flags); That's the same thing as just calling uart_port_lock(), why aren't you doing that? thanks, greg k-h

Re: [RFC][PATCH 01/42] drm_mode_create_lease_ioctl(): fix open-coded filp_clone_open()

2018-07-12 Thread Linus Torvalds
On Thu, Jul 12, 2018 at 5:43 AM Al Viro wrote: > > A question regarding the customs in such situations - are previous > Reviewed-by/Acked-by normally kept across rebases like that? Yeah, unless there were big changes, keep the reviewed/acked-by lines. Otherwise you'd never be able to handle diff

Re: [PATCH v4] uart: fix race between uart_put_char() and uart_shutdown()

2018-07-12 Thread Greg Kroah-Hartman
On Wed, Jul 11, 2018 at 02:00:56PM -0600, Tycho Andersen wrote: > On Wed, Jul 11, 2018 at 02:49:08PM -0500, Serge E. Hallyn wrote: > > Quoting Tycho Andersen (ty...@tycho.ws): > > > We have reports of the following crash: > > > > > > PID: 7 TASK: 88085c6d61c0 CPU: 1 COMMAND: "kworker/u25:0

Re: [PATCHv2 0/2] Fix crash due to vma_is_anonymous() false-positives

2018-07-12 Thread Kirill A. Shutemov
On Thu, Jul 12, 2018 at 05:56:24PM +0300, Kirill A. Shutemov wrote: > > Fix crash found by syzkaller. > > The fix allows to remove ->vm_ops checks. > > v2: > - Catch few more cases where we need to initialize ->vm_ops: >+ nommu; >+ ia64; > - Make sure that we initialize ->vm_ops even i

Re: [PATCH v4] uart: fix race between uart_put_char() and uart_shutdown()

2018-07-12 Thread Tycho Andersen
On Thu, Jul 12, 2018 at 05:04:38PM +0200, Greg Kroah-Hartman wrote: > On Wed, Jul 11, 2018 at 10:07:44AM -0600, Tycho Andersen wrote: > > + if (uport) > > + spin_lock_irqsave(&uport->lock, flags); > > That's the same thing as just calling uart_port_lock(), why aren't you > doing that?

Re: [RFC PATCH v2 1/4] dt-bindings: misc: Add bindings for misc. BMC control fields

2018-07-12 Thread Rob Herring
On Wed, Jul 11, 2018 at 6:54 PM Andrew Jeffery wrote: > > Hi Rob, > > Thanks for the response. > > On Thu, 12 Jul 2018, at 05:34, Rob Herring wrote: > > On Wed, Jul 11, 2018 at 03:01:19PM +0930, Andrew Jeffery wrote: > > > Baseboard Management Controllers (BMCs) are embedded SoCs that exist to > >

Re: [V9fs-developer] [PATCH v2 4/6] 9p: Embed wait_queue_head into p9_req_t

2018-07-12 Thread Greg Kurz
On Thu, 12 Jul 2018 16:40:12 +0200 Dominique Martinet wrote: > Greg Kurz wrote on Thu, Jul 12, 2018: > > This is true when all tags have been used at least once. But the current > > code > > lazily allocates the wait_queue_head_t, ie, only when a tag is used for the > > first time. Your patch ca

Re: [PATCH 2/2] regulator: pfuze100: add support to en-/disable switch regulators

2018-07-12 Thread Fabio Estevam
Hi Marco, On Thu, Jul 12, 2018 at 8:02 AM, Marco Felsch wrote: > Add enable/disable support for switch regulators on pfuze100. > > Based on commit 5fe156f1cab4 ("regulator: pfuze100: add enable/disable for > switch") which is reverted due to boot regressions by commit 464a5686e6c9 > ("regulator:

Re: [PATCH 1/2] dt-bindings: pfuze100: add optional pfuze-disable-sw binding

2018-07-12 Thread Fabio Estevam
On Thu, Jul 12, 2018 at 8:02 AM, Marco Felsch wrote: > +Optional properties: > +- pfuze-disable-sw: Disable all unused switch regulators to save power > + consumption. Attention, some platforms are using the switch regulators as > DDR > + ref or supply voltage. Mark these regulators as "regula

Re: [PATCH v2 05/12] dt-bindings: spi: Adjust the bindings for the FSL QSPI driver

2018-07-12 Thread Rob Herring
On Thu, Jul 12, 2018 at 2:14 AM Frieder Schrempf wrote: > > Hi Rob, > > On 11.07.2018 18:05, Rob Herring wrote: > > On Thu, Jul 05, 2018 at 01:15:01PM +0200, Frieder Schrempf wrote: > >> Adjust the documentation of the new SPI memory interface based > >> driver to reflect the new drivers settings.

Re: [PATCH v3 0/8] vfio: ccw: Refactoring the VFIO CCW state machine

2018-07-12 Thread Cornelia Huck
On Wed, 27 Jun 2018 12:00:41 +0200 Pierre Morel wrote: Apologies for the late answer, this topic had dropped off my radar. > On 26/06/2018 18:00, Cornelia Huck wrote: > > On Tue, 26 Jun 2018 13:04:12 +0200 > > Pierre Morel wrote: > > > >> On 19/06/2018 16:00, Cornelia Huck wrote: > >>> On T

Re: [PATCH 3/3] tty/serial: atmel: manage shutdown in case of RS485 or ISO7816 mode

2018-07-12 Thread Ludovic Desroches
On Thu, Jul 12, 2018 at 04:58:27PM +0200, Greg KH wrote: > On Wed, Jul 11, 2018 at 03:26:23PM +0200, Ludovic Desroches wrote: > > From: Nicolas Ferre > > > > In atmel_shutdown() we call atmel_stop_rx() and atmel_stop_tx() functions. > > Prevent the rx restart that is implemented in RS485 or ISO78

Re: [PATCH v3] tools/build/Build.include: fix # escaping in .cmd files for future Make

2018-07-12 Thread Masahiro Yamada
2018-07-10 23:50 GMT+09:00 Paul Menzel : > Date: Tue, 5 Jun 2018 19:00:22 +0200 > > In 2016 GNU Make made a backwards incompatible change to the way '#' > characters were handled in Makefiles when used inside functions or > macros: > > http://git.savannah.gnu.org/cgit/make.git/commit/?id=c6966b3238

Re: [PATCH 1/2] dt-bindings: pfuze100: add optional pfuze-disable-sw binding

2018-07-12 Thread Mark Brown
On Thu, Jul 12, 2018 at 01:02:39PM +0200, Marco Felsch wrote: > +Optional properties: > +- pfuze-disable-sw: Disable all unused switch regulators to save power > + consumption. Attention, some platforms are using the switch regulators as > DDR > + ref or supply voltage. Mark these regulators as

[PATCH] staging: rtlwifi: Remove empty halmac_pcie_reg.h

2018-07-12 Thread Bjorn Helgaas
From: Bjorn Helgaas halmac_pcie_reg.h is empty, so remove it and the only include of it. Signed-off-by: Bjorn Helgaas --- drivers/staging/rtlwifi/halmac/halmac_api.h |1 - drivers/staging/rtlwifi/halmac/halmac_pcie_reg.h | 17 - 2 files changed, 18 deletions(-) dele

[PATCH 2/5] dt-bindings: iio: accel: Add docs for ADXL372

2018-07-12 Thread Stefan Popa
Add the device tree binding documentation for the ADXL372 3-axis digital accelerometer. Signed-off-by: Stefan Popa --- Documentation/devicetree/bindings/iio/accel/adxl372.txt | 16 MAINTAINERS | 1 + 2 files changed, 17 insertions(+)

[PATCH 4/5] iio:adxl372: Add sampling frequency support

2018-07-12 Thread Stefan Popa
This patch adds the option for the user to select the sampling frequency. Also, the user can read the available frequencies and read the currently set frequency via the read_raw function. The frequency can be set via the write_raw function. When the frequency is set, the bandwidth is also checked

[PATCH 5/5] iio:adxl372: Add filter bandwidth support

2018-07-12 Thread Stefan Popa
This patch adds the option for the user to select the filter bandwidth. The user can also read the available bandwidths which are always adjusted to be at most half of the sampling frequency. Furthermore, the currently selected bandwidth can be read via the read_raw function, while the write_raw se

[PATCH 3/5] iio:adxl372: Add FIFO and interrupts support

2018-07-12 Thread Stefan Popa
This patch adds support for the adxl372 FIFO. In order to accomplish this, triggered buffers were used. The number of FIFO samples which trigger the watermark interrupt can be configured by using the buffer watermark, while the format depends on the selected channels.The FIFO data along with the t

[PATCH 1/5] iio: adxl372: New driver for Analog Devices ADXL372 Accelerometer

2018-07-12 Thread Stefan Popa
This patch adds basic support for Analog Devices ADXL372 SPI-Bus Three-Axis Digital Accelerometer. The device is probed and configured the with some initial default values. With this basic driver, it is possible to read raw acceleration data. Datasheet: http://www.analog.com/media/en/technical-do

Re: [PATCH v4] uart: fix race between uart_put_char() and uart_shutdown()

2018-07-12 Thread Greg Kroah-Hartman
On Thu, Jul 12, 2018 at 09:08:22AM -0600, Tycho Andersen wrote: > On Thu, Jul 12, 2018 at 05:04:38PM +0200, Greg Kroah-Hartman wrote: > > On Wed, Jul 11, 2018 at 10:07:44AM -0600, Tycho Andersen wrote: > > > + if (uport) > > > + spin_lock_irqsave(&uport->lock, flags); > > > > That's the sa

<    1   2   3   4   5   6   7   >