[PATCH v2 2/3] perf/arm-cci: Remove pointless PMU disabling

2018-05-14 Thread Robin Murphy
The CCI PMU driver bears some legacy remnants of the arm_pmu framework from when it was split in c6f85cb4305b ("bus: cci: move away from arm_pmu framework"). In particular this perf_pmu_{dis,en}able() dance around pmu->add which was fixed for arm_pmu in a9e469d1c89b ("drivers/perf: arm_pmu: remove

Re: INFO: rcu detected stall in kfree_skbmem

2018-05-14 Thread Neil Horman
On Fri, May 11, 2018 at 12:00:38PM +0200, Dmitry Vyukov wrote: > On Mon, Apr 30, 2018 at 8:09 PM, syzbot > wrote: > > Hello, > > > > syzbot found the following crash on: > > > > HEAD commit:5d1365940a68 Merge > > git://git.kernel.org/pub/scm/linux/kerne... > > git tree: net-next > > cons

Re: [PATCH v2] Revert "alx: remove WoL support"

2018-05-14 Thread David Miller
From: AceLan Kao Date: Mon, 14 May 2018 11:28:39 +0800 > This reverts commit bc2bebe8de8ed4ba6482c9cc370b0dd72ffe8cd2. > > The WoL feature is a must to pass Energy Star 6.1 and above, > the power consumption will be measured during S3 with WoL is enabled. > > Reverting "alx: remove WoL support"

[PATCH v2 3/3] perf/arm-cci: Allow building as a module

2018-05-14 Thread Robin Murphy
Fill in the few extra bits and annotations needed to make the driver work properly as a module, and jiggle the Kconfig to expose the driver-level ARM_CCI_PMU option. Signed-off-by: Robin Murphy --- v2: Move ARM/64 dependency up accordingly drivers/perf/Kconfig | 34 ++

[PATCH v2 1/3] perf/arm-cc*: Fix MODULE_LICENSE() tags

2018-05-14 Thread Robin Murphy
The CCI/CCN drivers are licensed under GPLv2, but the MODULE_LICENSE() tags are using the bare "GPL" string implying GPLv2 or later. Fix them to match their actual file license. Acked-by: Pawel Moll Acked-by: Suzuki K Poulose Signed-off-by: Robin Murphy --- v2: No change drivers/perf/arm-cci

Re: [PATCH] pinctrl: rockchip: Add pinctrl support for PX30

2018-05-14 Thread Heiko Stuebner
Hi David, Am Montag, 14. Mai 2018, 13:59:51 CEST schrieb David Wu: > There are 4 banks (GPIO0 ~ GPIO3), bank0 is in PD_PMU > subsystem, bank1/bank2/bank3 are in PD_BUS subsystem. > > Signed-off-by: David Wu the PX30 looks pretty simple in the pinctrl-area and I couldn't find anything looking ou

Re: [PATCH] nvme: fix lockdep warning in nvme_mpath_clear_current_path

2018-05-14 Thread Paul E. McKenney
On Mon, May 14, 2018 at 02:57:25PM +0200, Johannes Thumshirn wrote: > On Mon, May 14, 2018 at 05:42:30AM -0700, Christoph Hellwig wrote: > > > extern unsigned int nvme_io_timeout; > > > #define NVME_IO_TIMEOUT (nvme_io_timeout * HZ) > > > @@ -454,7 +455,9 @@ static inline void > > > nvme_mpath_

Re: [PATCH 1/1] s390: vfio-ccw: push down unsupported IDA check

2018-05-14 Thread Halil Pasic
On 05/14/2018 01:55 PM, Cornelia Huck wrote: On Wed, 9 May 2018 19:36:47 +0200 Halil Pasic wrote: There is at least one relevant control program (CP) that don't set the I'd prefer not to talk about 'control program' here, as it is not a term commonly used in Linux. Call it 'guest'? Also,

Re: [PATCH 10/12] platform/early: implement support for early platform drivers

2018-05-14 Thread Rob Herring
On Fri, May 11, 2018 at 11:20 AM, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > This introduces the core part of support for early platform drivers > and devices. > It looks like most of your prep patches are to separate the alloc and init of platform devices because you are essenti

Re: [PATCH 01/18] kernel: Use pr_fmt

2018-05-14 Thread Masami Hiramatsu
On Thu, 10 May 2018 08:45:27 -0700 Joe Perches wrote: > Sometime in the future, it would be useful to convert pr_fmt from a > default simple define to use a default prefix with KBUILD_MODNAME. > > There are files in kernel/ that use pr_, some with an embedded > prefix, that also do not have a sp

Re: [PATCH] video: fbdev: remove unused auo_k190xfb drivers

2018-05-14 Thread Bartlomiej Zolnierkiewicz
On Friday, April 27, 2018 05:07:41 PM Heiko Stuebner wrote: > Am Freitag, 27. April 2018, 13:04:24 CEST schrieb Bartlomiej Zolnierkiewicz: > > auo_k1900fb and auo_k1901fb drivers have been introduced six > > years ago by following commits: > > > > commit 2c8304d3125b ("video: auo_k190x: add code s

Re: [PATCH 5/6 v3] bus: fsl-mc: supoprt dma configure for devices on fsl-mc bus

2018-05-14 Thread Laurentiu Tudor
Hi Nipun, On 04/27/2018 01:27 PM, Nipun Gupta wrote: > Signed-off-by: Nipun Gupta > --- > drivers/bus/fsl-mc/fsl-mc-bus.c | 16 > 1 file changed, 12 insertions(+), 4 deletions(-) > > diff --git a/drivers/bus/fsl-mc/fsl-mc-bus.c b/drivers/bus/fsl-mc/fsl-mc-bus.c > index 5d8266c

Re: [PATCH 1/2] x86/stacktrace: do not fail when regs on stack for ORC

2018-05-14 Thread Josh Poimboeuf
On Mon, May 14, 2018 at 01:08:40PM +0200, Jiri Slaby wrote: > On 05/11/2018, 05:12 PM, Josh Poimboeuf wrote: > > I assume you're going to carry this as > > part of your patches to enable HAVE_RELIABLE_STACKTRACE? > > Sure. > > > --- a/tools/objtool/orc_dump.c > > +++ b/tools/objtool/orc_dump.c >

Re: linux-next: build warning after merge of the imx-mxs tree

2018-05-14 Thread Shawn Guo
On Mon, May 14, 2018 at 08:05:29AM -0500, Rob Herring wrote: > On Sun, May 13, 2018 at 7:56 PM, Shawn Guo wrote: > > Hi Stephen, > > > > On Mon, May 14, 2018 at 09:21:58AM +1000, Stephen Rothwell wrote: > >> Hi Shawn, > >> > >> After merging the imx-mxs tree, today's linux-next build (arm > >> mul

[tip:x86/pti 14/14] arch/x86/mm/mem_encrypt_boot.o: warning: objtool: .text+0x51: unreachable instruction

2018-05-14 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/pti head: 51bad67ffbce0aaa44579f84ef5d05597054ec6a commit: 51bad67ffbce0aaa44579f84ef5d05597054ec6a [14/14] x86/asm: Pad assembly functions with INT3 instructions config: x86_64-randconfig-x018-201819 (attached as .config) c

Re: [PATCH 0/3] fbdev/drm: sh_mobile: remove unused MERAM support

2018-05-14 Thread Bartlomiej Zolnierkiewicz
On Friday, April 27, 2018 02:09:31 PM Daniel Vetter wrote: > On Fri, Apr 27, 2018 at 1:36 PM, Laurent Pinchart > wrote: > > Hi Bartlomiej, > > > > On Friday, 27 April 2018 14:21:42 EEST Bartlomiej Zolnierkiewicz wrote: > >> Hi, > >> > >> This patchset removes unused MERAM support (last user was re

Re: WARNING: kernel stack regs has bad 'bp' value (3)

2018-05-14 Thread Josh Poimboeuf
On Sat, May 12, 2018 at 12:11:17PM +0200, Ard Biesheuvel wrote: > On 12 May 2018 at 11:50, Dmitry Vyukov wrote: > > On Sat, May 12, 2018 at 11:09 AM, Ard Biesheuvel > > wrote: > >> (+ Arnd) > >> > >> On 12 May 2018 at 10:43, Dmitry Vyukov wrote: > >>> On Fri, Feb 2, 2018 at 11:18 PM, Eric Bigger

Re: [PATCH 1/2] ARM64: dts: meson-gxbb: odroidc2: enable sdcard UHS modes

2018-05-14 Thread Jerome Brunet
On Wed, 2018-05-02 at 00:29 +0530, Anand Moon wrote: > Enable UHS modes for sdcard, on odroidc2. > > Signed-off-by: Anand Moon > --- > arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc

Re: [PATCH 2/6] staging: android: Clean up license identifiers

2018-05-14 Thread Greg Kroah-Hartman
On Mon, May 14, 2018 at 04:29:45PM +0300, Dan Carpenter wrote: > On Sun, May 06, 2018 at 06:13:24PM -0700, Nathan Chancellor wrote: > > Add the identifiers when missing and fix the ones already present > > according to checkpatch.pl. > > > > Signed-off-by: Nathan Chancellor > > --- > > drivers/s

Re: [PATCH 2/6] staging: android: Clean up license identifiers

2018-05-14 Thread Justin Skists
> On 14 May 2018 at 14:29 Dan Carpenter wrote: > > > On Sun, May 06, 2018 at 06:13:24PM -0700, Nathan Chancellor wrote: > > Add the identifiers when missing and fix the ones already present > > according to checkpatch.pl. > > > > Signed-off-by: Nathan Chancellor > > --- > > drivers/staging/a

Re: [PATCH 2/2] arm64: Clear the stack

2018-05-14 Thread Alexander Popov
On 14.05.2018 13:06, Mark Rutland wrote: > On Mon, May 14, 2018 at 12:35:25PM +0300, Alexander Popov wrote: >> On 14.05.2018 08:15, Mark Rutland wrote: >>> On Sun, May 13, 2018 at 11:40:07AM +0300, Alexander Popov wrote: So what would you think if I do the following in check_alloca(): >>>

[PATCH] objtool: Detect RIP-relative switch table references

2018-05-14 Thread Josh Poimboeuf
Typically a switch table can be found by detecting a .rodata access followed an indirect jump: 1969: 4a 8b 0c e5 00 00 00mov0x0(,%r12,8),%rcx 1970: 00 196d: R_X86_64_32S .rodata+0x438 1971: e9 00 00 00 00 jmpq 1976

RE: [PATCH 0/3] KVM: VMX: Allow to disable ioport intercept per-VM by userspace

2018-05-14 Thread Tim Shearer
> From: Wanpeng Li > Sent: Friday, May 11, 2018 9:03 PM > > Yeah, both you and Liran give the original idea. :) Tim and Liran, any > review for the patchset? > > +Architectures: x86 > +Parameters: args[0] defines whether ioport intercept Agree with Konrad that the flexibility of specifying the

Re: [PATCH] nvme: fix lockdep warning in nvme_mpath_clear_current_path

2018-05-14 Thread Johannes Thumshirn
On Mon, May 14, 2018 at 06:38:49AM -0700, Paul E. McKenney wrote: > On Mon, May 14, 2018 at 02:57:25PM +0200, Johannes Thumshirn wrote: > > On Mon, May 14, 2018 at 05:42:30AM -0700, Christoph Hellwig wrote: > > > > extern unsigned int nvme_io_timeout; > > > > #define NVME_IO_TIMEOUT(nvme_

Re: [PATCH 3.18 00/23] 3.18.109-stable review

2018-05-14 Thread Greg Kroah-Hartman
On Mon, May 14, 2018 at 02:42:28PM +0530, Harsh Shandilya wrote: > > > On 14 May 2018 12:18:29 PM IST, Greg Kroah-Hartman > wrote: > >This is the start of the stable review cycle for the 3.18.109 release. > >There are 23 patches in this series, all will be posted as a response > >to this one.

Re: [PATCH 3.18 00/23] 3.18.109-stable review

2018-05-14 Thread Greg Kroah-Hartman
On Mon, May 14, 2018 at 01:01:57AM -0700, Nathan Chancellor wrote: > On Mon, May 14, 2018 at 08:48:29AM +0200, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 3.18.109 release. > > There are 23 patches in this series, all will be posted as a response > > to this o

Re: [PATCH 5/6] udf: Simplify calls to udf_disk_stamp_to_time

2018-05-14 Thread Jan Kara
Hello, On Fri 11-05-18 21:59:20, Deepa Dinamani wrote: > Subsequent patches in the series convert inode timestamps > to use struct timespec64 instead of struct timespec as > part of solving the y2038 problem. > > commit fd3cfad374d4 ("udf: Convert udf_disk_stamp_to_time() to use > mktime64()") >

Re: [PATCH v2 22/35] vfs: don't open real

2018-05-14 Thread Vivek Goyal
On Fri, May 11, 2018 at 03:42:48PM -0400, Vivek Goyal wrote: > On Fri, May 11, 2018 at 02:54:30PM -0400, Vivek Goyal wrote: > > On Mon, May 07, 2018 at 10:37:54AM +0200, Miklos Szeredi wrote: > > > Let overlayfs do its thing when opening a file. > > > > > > This enables stacking and fixes the corn

[PATCH] m68k/uaccess: Revive 64-bit get_user()

2018-05-14 Thread Geert Uytterhoeven
Revive support for 64-bit get_user(), which was disabled in commit d94af931af42152e ("[PATCH] m68k: clean up uaccess.h") due to a "broken" typeof in (then brand new) gcc-4.1. - Keep on using u64 for the temporary, as __typeof__() doesn't drop the const qualifier, - Move it into a union (li

Re: [PATCH 1/1] s390: vfio-ccw: push down unsupported IDA check

2018-05-14 Thread Cornelia Huck
On Mon, 14 May 2018 15:37:17 +0200 Halil Pasic wrote: > On 05/14/2018 01:55 PM, Cornelia Huck wrote: > > On Wed, 9 May 2018 19:36:47 +0200 > > Halil Pasic wrote: > > > >> There is at least one relevant control program (CP) that don't set the > > > > I'd prefer not to talk about 'control p

Re: [PATCH] ANDROID: binder: remove 32-bit binder interface.

2018-05-14 Thread Geert Uytterhoeven
Hi Christoph, On Mon, May 14, 2018 at 2:03 PM, Christoph Hellwig wrote: > On Fri, May 11, 2018 at 09:57:52AM +0200, Martijn Coenen wrote: >> On Sat, May 5, 2018 at 2:10 PM, kbuild test robot wrote: >> >drivers/android/binder.o: In function `binder_thread_write': >> >>> binder.c:(.text+0x6a16

Re: [PATCH 1/2] x86/stacktrace: do not fail when regs on stack for ORC

2018-05-14 Thread Jiri Slaby
On 05/14/2018, 03:42 PM, Josh Poimboeuf wrote: > Oops. How about this one: Yup, we are there. thanks, -- js suse labs

Re: [PATCH v2 22/35] vfs: don't open real

2018-05-14 Thread Daniel Walsh
On 05/11/2018 03:42 PM, Vivek Goyal wrote: On Fri, May 11, 2018 at 02:54:30PM -0400, Vivek Goyal wrote: On Mon, May 07, 2018 at 10:37:54AM +0200, Miklos Szeredi wrote: Let overlayfs do its thing when opening a file. This enables stacking and fixes the corner case when a file is opened for read

Re: [PATCH v14 2/8] ASoC: sun4i-codec: Add Mic1 Boost Volume, Mic2 Boost Volume

2018-05-14 Thread Maxime Ripard
On Sat, May 05, 2018 at 09:05:13AM +0200, Danny Milosavljevic wrote: > Hi Maxime, > > On Thu, 3 May 2018 16:33:19 +0200 > Maxime Ripard wrote: > > > > +struct sun4i_codec_quirks { > > > + const struct regmap_config *regmap_config; > > > + const struct snd_soc_component_driver *codec; > > > + str

Re: [PATCH 3/7] staging: ks7010: Remove unnecessary limit checks

2018-05-14 Thread Nathan Chancellor
On Mon, May 14, 2018 at 04:17:36PM +0300, Dan Carpenter wrote: > On Sun, May 06, 2018 at 03:03:00PM -0700, Nathan Chancellor wrote: > > uwrq is an unsigned 32-bit integer, it cannot be less than zero. > > > > Signed-off-by: Nathan Chancellor > > --- > > drivers/staging/ks7010/ks_wlan_net.c | 6 +

[PATCH v2 6/6] x86/stacktrace: orc, mark it as reliable

2018-05-14 Thread Jiri Slaby
In SUSE, we need a reliable stack unwinder for kernel live patching, but we do not want to enable frame pointers for performance reasons. So after the previous patches to make the ORC reliable, mark ORC as a reliable stack unwinder on x86. Signed-off-by: Jiri Slaby Cc: Josh Poimboeuf Cc: Thomas

[PATCH v2 4/6] x86/stacktrace: do not fail for ORC with regs on stack

2018-05-14 Thread Jiri Slaby
save_stack_trace_reliable now returns "non reliable" when there are kernel pt_regs on stack. This means an interrupt or exception happened somewhere down the route. It is a problem for the frame pointer unwinder, because the frame might not have been set up yet when the irq happened, so the unwinde

Re: [PATCH 2/2] arm64: Clear the stack

2018-05-14 Thread Mark Rutland
On Mon, May 14, 2018 at 04:53:12PM +0300, Alexander Popov wrote: > On 14.05.2018 13:06, Mark Rutland wrote: > > I think it is reasonable to panic() here even with CONFIG_VMAP_STACK > > selected. > > It's too tough for CONFIG_VMAP_STACK on x86 - the system can proceed to live. > Anyway, the check_a

Re: [PATCH 2/6] staging: android: Clean up license identifiers

2018-05-14 Thread Dan Carpenter
On Mon, May 14, 2018 at 02:52:16PM +0100, Justin Skists wrote: > > > On 14 May 2018 at 14:29 Dan Carpenter wrote: > > > > > > On Sun, May 06, 2018 at 06:13:24PM -0700, Nathan Chancellor wrote: > > > Add the identifiers when missing and fix the ones already present > > > according to checkpatch.

Re: [PATCH v14 3/8] ASoC: sun4i-codec: Merge sun4i_codec_left_mixer_controls and sun4i_codec_right_mixer_controls into sun4i_codec_mixer_controls

2018-05-14 Thread Maxime Ripard
On Sat, May 05, 2018 at 08:51:43AM +0200, Danny Milosavljevic wrote: > Hi Maxime, > > On Thu, 3 May 2018 16:46:19 +0200 > Maxime Ripard wrote: > > > Doesn't that mean that the controls will be shared between the right > > and left mixers now, which wasn't the case before? > > Yes. However Chen

[PATCH v2 5/6] x86/unwind/orc: Detect the end of the stack

2018-05-14 Thread Jiri Slaby
From: Josh Poimboeuf The existing UNWIND_HINT_EMPTY annotations happen to be good indicators of where entry code calls into C code for the first time. So also use them to mark the end of the stack for the ORC unwinder. Use that information to set unwind->error if the ORC unwinder doesn't unwind

[PATCH v2 1/6] x86/stacktrace: do not unwind after user regs

2018-05-14 Thread Jiri Slaby
Josh pointed out, that there is no way a frame can be after user regs. So remove the last unwind and the check. Signed-off-by: Jiri Slaby Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x...@kernel.org Cc: Josh Poimboeuf --- arch/x86/kernel/stacktrace.c | 9 - 1 file cha

[PATCH v2 2/6] x86/stacktrace: make clear the success paths

2018-05-14 Thread Jiri Slaby
Make clear which path is for user tasks and for kthreads and idle tasks. This will allow easier plug-in of ORC unwinder in the next patches. Signed-off-by: Jiri Slaby Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x...@kernel.org Cc: Josh Poimboeuf --- arch/x86/kernel/stacktrac

[PATCH v2 3/6] x86/stacktrace: remove STACKTRACE_DUMP_ONCE from __save_stack_trace_reliable

2018-05-14 Thread Jiri Slaby
The stack unwinding can sometimes fail yet. Especially with the generated debug info. So do not yell at users -- live patching (the only user of this interface) will inform the user about the failure gracefully. Signed-off-by: Jiri Slaby Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin"

Re: [RFC] m68k: Set up dma mask for platform devices

2018-05-14 Thread Greg Ungerer
Hi Finn, On 13/05/18 11:00, Finn Thain wrote: This avoids a WARNING splat when loading the macsonic or macmace driver. Please see commit 205e1b7f51e4 ("dma-mapping: warn when there is no coherent_dma_mask"). This implementation of arch_setup_pdev_archdata() differs from the one in arch/powerpc

Re: [PATCH v14 8/8] ASoC: sun4i-codec: Add Left Capture Select, Right Capture Select

2018-05-14 Thread Maxime Ripard
On Sat, May 05, 2018 at 12:40:50PM +0200, Danny Milosavljevic wrote: > Hi Maxime, > > On Thu, 3 May 2018 16:54:08 +0200 > Maxime Ripard wrote: > > > > +static const char * const sun4i_codec_capture_source[] = { > > > + "Line", > > > + "FM", > > > + "Mic1", > > > + "Mic2", > > > + "Mic1,Mic2", >

Re: [RFC][PATCH 07/10] tracing: Have zero size length in filter logic be full string

2018-05-14 Thread Steven Rostedt
On Sat, 12 May 2018 20:32:18 +0200 Yann Ylavic wrote: > On Fri, May 11, 2018 at 9:49 PM, Steven Rostedt wrote: > [] > > > > static int regex_match_front(char *str, struct regex *r, int len) > > { > > - if (len < r->len) > > + if (len && len < r->len) > > return 0; >

Re: [PATCH 3/7] staging: ks7010: Remove unnecessary limit checks

2018-05-14 Thread Dan Carpenter
On Mon, May 14, 2018 at 07:06:22AM -0700, Nathan Chancellor wrote: > On Mon, May 14, 2018 at 04:17:36PM +0300, Dan Carpenter wrote: > > On Sun, May 06, 2018 at 03:03:00PM -0700, Nathan Chancellor wrote: > > > uwrq is an unsigned 32-bit integer, it cannot be less than zero. > > > > > > Signed-off-b

Re: [PATCH 6/7] clk: meson: axg: document bindings for the audio clock controller

2018-05-14 Thread Jerome Brunet
On Tue, 2018-05-01 at 09:37 -0500, Rob Herring wrote: > On Wed, Apr 25, 2018 at 06:33:03PM +0200, Jerome Brunet wrote: > > Add documentation for the device tree bindings of the audio clock > > controller of the A113 based SoCs > > > > The preferred subject prefix for bindings is 'dt/bindings: clo

Re: commit bd9240a18edfbfa72e957fc2ba831cf1f13ea073 seems to break with intel-ucode 20180425

2018-05-14 Thread Gabriel C
2018-05-14 14:58 GMT+02:00 Peter Zijlstra : > On Mon, May 14, 2018 at 02:15:44PM +0200, Gabriel C wrote: >> http://ftp.frugalware.org/pub/other/people/crazy/ucode/cpuinfo-ucode-20180312 >> http://ftp.frugalware.org/pub/other/people/crazy/ucode/cpuinfo-ucode-20180425 > > That's 0xc2 and 0x9e respect

Re: [PATCH v2 0/2] uio: Prevent kernel oops on UIO device remove with open fds

2018-05-14 Thread Greg KH
On Mon, May 14, 2018 at 01:32:21PM +1200, Hamish Martin wrote: > If a UIO device is removed while a user space app has an open file > descriptor to that device's /dev/uio* file, a kernel oops can occur when > the file descriptor is ultimately closed. The oops is triggered by > dereferencing either

Re: [BUG] i2c-hid: ELAN Touchpad does not work on ASUS X580GD

2018-05-14 Thread Jarkko Nikula
On 05/10/2018 03:03 PM, Chris Chiu wrote: Report from guys who can access scope. If i2c-sda-falling-time-ns=400ns , HCNT increase to 117, the SCL high duration is 576ns as follows https://pasteboard.co/HkwERvP.png The original SCL high duration (HCNT = 105, 120MHz) is as follows https://pasteboa

WARNING in arch_uprobe_analyze_insn

2018-05-14 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:66e1c94db3cd Merge branch 'x86-pti-for-linus' of git://git.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1181710780 kernel config: https://syzkaller.appspot.com/x/.config?x=fcce42b221691ff9 da

Re: [PATCH v2 0/2] mm: PAGE_KERNEL_* fallbacks

2018-05-14 Thread Greg KH
On Thu, May 10, 2018 at 05:15:20PM +, Luis R. Rodriguez wrote: > On Thu, May 10, 2018 at 08:07:33AM +0200, Greg KH wrote: > > On Wed, May 09, 2018 at 06:44:45PM -0700, Luis R. Rodriguez wrote: > > > While dusting out the firmware loader closet I spotted a PAGE_KERNEL_* > > > fallback hack. This

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

2018-05-14 Thread Byungchul Park
On Mon, May 14, 2018 at 11:59 AM, 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 folks, I think I wrot

[PATCH 12/14] net: sched: retry action check-insert on concurrent modification

2018-05-14 Thread Vlad Buslov
Retry check-insert sequence in action init functions if action with same index was inserted concurrently. Signed-off-by: Vlad Buslov --- net/sched/act_bpf.c| 8 +++- net/sched/act_connmark.c | 8 +++- net/sched/act_csum.c | 8 +++- net/sched/act_gact.c | 8 +

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

2018-05-14 Thread Vlad Buslov
Implement functions to atomically update and free action cookie using rcu mechanism. Signed-off-by: Vlad Buslov --- include/net/act_api.h | 2 +- include/net/pkt_cls.h | 1 + net/sched/act_api.c | 44 ++-- 3 files changed, 32 insertions(+), 15 deletion

[PATCH 14/14] net: sched: implement delete for all actions

2018-05-14 Thread Vlad Buslov
Implement delete function that is required to delete actions without holding rtnl lock. Use action API function that atomically deletes action only if it is still in action idr. This implementation prevents concurrent threads from deleting same action twice. Signed-off-by: Vlad Buslov --- net/sc

[PATCH 00/14] Modify action API for implementing lockless actions

2018-05-14 Thread Vlad Buslov
Currently, all netlink protocol handlers for updating rules, actions and qdiscs are protected with single global rtnl lock which removes any possibility for parallelism. This patch set is a first step to remove rtnl lock dependency from TC rules update path. It updates act API to use atomic operati

[PATCH 10/14] net: sched: extend act API for lockless actions

2018-05-14 Thread Vlad Buslov
Implement new action API function to atomically delete action with specified index and to atomically insert unique action. These functions are required to implement init and delete functions for specific actions that do not rely on rtnl lock. Signed-off-by: Vlad Buslov --- include/net/act_api.h

Re: Delivery Status Notification (Failure)

2018-05-14 Thread Pintu Kumar
On Mon, May 14, 2018 at 6:41 PM, Lucas Stach wrote: > Am Montag, den 14.05.2018, 17:42 +0530 schrieb Pintu Kumar: >> Hi, >> >> Is there any work around possible to set IRQ affinity for some GPIO >> interrupt ? >> How to avoid CPU0 to receive the current GPIO interrupt ? >> How do we assign GPIO in

[PATCH 11/14] net: core: add new/replace rate estimator lock parameter

2018-05-14 Thread Vlad Buslov
Extend rate estimator new and replace APIs with additional spinlock parameter used by lockless actions to protect rate_est pointer from concurrent modification. Signed-off-by: Vlad Buslov --- include/net/gen_stats.h| 2 ++ net/core/gen_estimator.c | 58 +++-

[PATCH 13/14] net: sched: use unique idr insert function in unlocked actions

2018-05-14 Thread Vlad Buslov
Substitute calls to action insert function with calls to action insert unique function that warns if insertion overwrites index in idr. Signed-off-by: Vlad Buslov --- net/sched/act_bpf.c| 2 +- net/sched/act_connmark.c | 2 +- net/sched/act_csum.c | 2 +- net/sched/act_gact.c

[PATCH 04/14] net: sched: implement unlocked action init API

2018-05-14 Thread Vlad Buslov
Add additional 'unlocked' argument to act API init functions. Argument is true when rtnl lock is not taken and false otherwise. It is required to implement actions that need to release rtnl lock before loading kernel module and reacquire if afterwards. Signed-off-by: Vlad Buslov --- include/net/

[PATCH 06/14] net: sched: implement reference counted action release

2018-05-14 Thread Vlad Buslov
Implement helper function to delete action using new action ops delete function implemented by each action for lockless execution. Implement action put function that releases reference to action and frees it if necessary. Refactor action deletion code to use new put function and not to rely on rtn

[PATCH 08/14] net: sched: account for temporary action reference

2018-05-14 Thread Vlad Buslov
tca_get_fill function has 'bind' and 'ref' arguments that get passed down to action dump function. These arguments values are subtracted from actual reference and bind counter values before writing them to skb. In order to prevent concurrent action delete, RTM_GETACTION handler acquires a referenc

Re: [PATCH 2/2] media: i2c: mt9t112: Add device tree support

2018-05-14 Thread jacopo mondi
Hi Sakari, On Mon, May 07, 2018 at 12:32:19PM +0300, Sakari Ailus wrote: > Hi Jacopo, > > On Wed, Apr 25, 2018 at 01:00:14PM +0200, Jacopo Mondi wrote: [snip] > > static int mt9t112_probe(struct i2c_client *client, > > const struct i2c_device_id *did) > > { > > struct

[PATCH 07/14] net: sched: use reference counting action init

2018-05-14 Thread Vlad Buslov
Change action API to assume that action init function always takes reference to action, even when overwriting existing action. This is necessary because action API continues to use action pointer after init function is done. At this point action becomes accessible for concurrent modifications so us

[PATCH 02/14] net: sched: change type of reference and bind counters

2018-05-14 Thread Vlad Buslov
Change type of action reference counter to refcount_t. Change type of action bind counter to atomic_t. This type is used to allow decrementing bind counter without testing for 0 result. Signed-off-by: Vlad Buslov --- include/net/act_api.h | 5 +++-- net/sched/act_api.c| 32 +++

[PATCH 09/14] net: sched: don't release reference on action overwrite

2018-05-14 Thread Vlad Buslov
Return from action init function with reference to action taken, even when overwriting existing action. Action init API initializes its fourth argument (pointer to pointer to tc action) to either existing action with same index or newly created action. In case of existing index(and bind argument i

Re: linux-next: build warning after merge of the block tree

2018-05-14 Thread Jens Axboe
On 5/14/18 2:29 AM, Christoph Hellwig wrote: > On Mon, May 14, 2018 at 12:51:39PM +1000, Stephen Rothwell wrote: >> Hi all, >> >> After merging the block tree, today's linux-next build (x86_64 >> allmodconfig) produced this warning: > > The look entirely correct, but oddly enough my compiler did n

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

2018-05-14 Thread Vlad Buslov
Without rtnl lock protection it is no longer safe to use pointer to tc action without holding reference to it. (it can be destroyed concurrently) Remove unsafe action idr lookup function. Instead of it, implement safe tcf idr check function that atomically looks up action in idr and increments its

[PATCH 03/14] net: sched: add 'delete' function to action ops

2018-05-14 Thread Vlad Buslov
Extend action ops with 'delete' function. Each action type to implement its own delete function that doesn't depend on rtnl lock. Signed-off-by: Vlad Buslov --- include/net/act_api.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/net/act_api.h b/include/net/act_api.h index e634014..

Re: [FAIL bisect] Sound card probe error

2018-05-14 Thread Ulf Hansson
On 14 May 2018 at 14:43, Krzysztof Kozlowski wrote: > On Mon, May 14, 2018 at 2:30 PM, Ulf Hansson wrote: >> On 14 May 2018 at 14:22, Sylwester Nawrocki wrote: >>> Hi, >>> >>> On 05/14/2018 12:17 PM, Krzysztof Kozlowski wrote: >>> Bisected to: 8c123c14bbba4add148536b6d47a9226deda2f7a i

Re: [PATCH] memstick: ms_block: fix unused variable warning

2018-05-14 Thread Jens Axboe
On 5/14/18 4:17 AM, Anders Roxell wrote: > When building a warning pops up unused variable 'host' > drivers/memstick/core/ms_block.c: In function ‘msb_init_disk’: > drivers/memstick/core/ms_block.c:2097:24: warning: unused variable ‘host’ > [-Wunused-variable] > struct memstick_host *host = card

INFO: task hung in ext4_direct_IO

2018-05-14 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:66e1c94db3cd Merge branch 'x86-pti-for-linus' of git://git.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=148dc01780 kernel config: https://syzkaller.appspot.com/x/.config?x=fcce42b221691ff9 da

Re: [patch V2 7/7] scripts: Add SPDX checker script

2018-05-14 Thread Philippe Ombredanne
Thomas, Sorry for the very late reply! On Wed, Apr 25, 2018 at 10:30 PM, Thomas Gleixner wrote: > The SPDX-License-Identifiers are growing in the kernel and so grow > expression failures and license IDs are used which have no corresponding > license text file in the LICENSES directory. > > Add a

Re: [PATCH] arm64: allowing mmap to be traced

2018-05-14 Thread Mark Rutland
On Mon, May 14, 2018 at 02:32:42PM +, Christian Hansen wrote: > Adding missing macro which is present all other system calls to > to mmap declaration for ARM. This allows it to appear as a kernel > tracing target. > > Signed-off-by: Christian Hansen FWIW, I sent out a patch doing this earli

RE: [PATCH v3 07/13] remoteproc: introduce rproc_find_carveout_by_name function

2018-05-14 Thread Loic PALLARDY
Hi Bjorn, Thanks for the review > -Original Message- > From: Bjorn Andersson [mailto:bjorn.anders...@linaro.org] > Sent: Thursday, May 10, 2018 2:19 AM > To: Loic PALLARDY > Cc: o...@wizery.com; linux-remotep...@vger.kernel.org; linux- > ker...@vger.kernel.org; Arnaud POULIQUEN ; > benja

[PATCH v3 1/2] xen/kbdif: Sync up with the canonical definition in Xen

2018-05-14 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko This is the sync up with the canonical definition of the keyboard protocol in Xen: 1. Add missing string constants for {feature|request}-raw-pointer to align with the rest of the interface file. 2. Add new XenStore feature fields, so it is possible to individuall

[PATCH v3 2/2] Input: xen-kbdfront - allow better run-time configuration

2018-05-14 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko It is now only possible to control if multi-touch virtual device is created or not (via the corresponding XenStore entries), but keyboard and pointer devices are always created. In some cases this is not desirable. For example, if virtual keyboard device is exposed t

Re: [PATCH v9 04/12] arm64/acpi: Create arch specific cpu to acpi id helper

2018-05-14 Thread Sudeep Holla
On 12/05/18 00:57, Jeremy Linton wrote: > Its helpful to be able to lookup the acpi_processor_id associated > with a logical cpu. Provide an arm64 helper to do this. > > Signed-off-by: Jeremy Linton > Tested-by: Ard Biesheuvel > Tested-by: Vijaya Kumar K > Tested-by: Xiongfeng Wang > Tested-

[PATCH] arm64: allowing mmap to be traced

2018-05-14 Thread Christian Hansen
Adding missing macro which is present all other system calls to to mmap declaration for ARM. This allows it to appear as a kernel tracing target. Signed-off-by: Christian Hansen --- arch/arm64/kernel/sys.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/kern

Re: [PATCH v2 05/27] dts: bindings: Document device tree binding for CATU

2018-05-14 Thread Mathieu Poirier
On Fri, May 11, 2018 at 11:05:56AM -0500, Rob Herring wrote: > On Tue, May 8, 2018 at 10:40 AM, Suzuki K Poulose > wrote: > > > > > > Rob, Mathieu, > > > > > > On 03/05/18 18:42, Mathieu Poirier wrote: > >> > >> On 1 May 2018 at 07:10, Rob Herring wrote: > >>> > >>> On Tue, May 01, 2018 at 10:10:

[PATCH v3 0/4] KVM: Support PUD hugepages at stage 2

2018-05-14 Thread Punit Agrawal
Hi, This patchset adds support for PUD hugepages at stage 2. This feature is useful on cores that have support for large sized TLB mappings (e.g., 1GB for 4K granule). Previous postings can be found at [0][1][2]. Support is added to code that is shared between arm and arm64. Dummy helpers for arm

[PATCH v3 1/4] KVM: arm/arm64: Share common code in user_mem_abort()

2018-05-14 Thread Punit Agrawal
The code for operations such as marking the pfn as dirty, and dcache/icache maintenance during stage 2 fault handling is duplicated between normal pages and PMD hugepages. Instead of creating another copy of the operations when we introduce PUD hugepages, let's share them across the different page

[PATCH v3 2/4] KVM: arm/arm64: Introduce helpers to manupulate page table entries

2018-05-14 Thread Punit Agrawal
Introduce helpers to abstract architectural handling of the conversion of pfn to page table entries and marking a PMD page table entry as a block entry. The helpers are introduced in preparation for supporting PUD hugepages at stage 2 - which are supported on arm64 but do not exist on arm. Signed

[PATCH v3 4/4] KVM: arm64: Add support for PUD hugepages at stage 2

2018-05-14 Thread Punit Agrawal
KVM only supports PMD hugepages at stage 2. Extend the stage 2 fault handling to add support for PUD hugepages. Addition of pud hugepage support enables additional hugepage sizes (e.g., 1G with 4K granule) which can be useful on cores that support mapping larger block sizes in the TLB entries. Si

Re: [PATCH 10/18] arm64: convert native/compat syscall entry to C

2018-05-14 Thread Dave Martin
On Mon, May 14, 2018 at 12:58:05PM +0100, Mark Rutland wrote: > On Mon, May 14, 2018 at 12:07:30PM +0100, Dave Martin wrote: > > On Mon, May 14, 2018 at 10:46:32AM +0100, Mark Rutland wrote: > > > > diff --git a/arch/arm64/kernel/syscall.c b/arch/arm64/kernel/syscall.c > > > index 5df857e32b48..47

[PATCH v3 3/4] KVM: arm64: Support dirty page tracking for PUD hugepages

2018-05-14 Thread Punit Agrawal
In preparation for creating PUD hugepages at stage 2, add support for write protecting PUD hugepages when they are encountered. Write protecting guest tables is used to track dirty pages when migrating VMs. Also, provide trivial implementations of required kvm_s2pud_* helpers to allow sharing of c

Re: [PATCH 1/1] s390: vfio-ccw: push down unsupported IDA check

2018-05-14 Thread Halil Pasic
On 05/14/2018 04:00 PM, Cornelia Huck wrote: On Mon, 14 May 2018 15:37:17 +0200 Halil Pasic wrote: On 05/14/2018 01:55 PM, Cornelia Huck wrote: On Wed, 9 May 2018 19:36:47 +0200 Halil Pasic wrote: [..] + /* +* 2k byte block IDAWs (fmt1 or fmt2) are no

Re: [PATCH v2 4/4] ARM: PWM: add allwinner sun8i pwm support.

2018-05-14 Thread Hao Zhang
2018-02-26 17:00 GMT+08:00 Maxime Ripard : > Hi, > > Thanks for respinning this serie. It looks mostly good, but you still > have a quite significant number of checkpatch (--strict) warnings that > you should address. Thanks for reviews :) ,i'm sorry for that, it will be fixed next time. and, besi

Re: [PATCH] thermal: qcom: tsens: Allow number of sensors to come from DT

2018-05-14 Thread Amit Kucheria
On Tue, May 8, 2018 at 2:53 AM, Bjorn Andersson wrote: > For platforms that has multiple copies of the TSENS hardware block it's > necessary to be able to specify the number of sensors per block in DeviceTree. I assume you want to replace the hardcoded num_sensors values in the tsens-.c files

Re: [PATCH v10 02/25] x86/mm: define ARCH_SUPPORTS_SPECULATIVE_PAGE_FAULT

2018-05-14 Thread Laurent Dufour
On 08/05/2018 13:04, Punit Agrawal wrote: > Hi Laurent, > > Laurent Dufour writes: > >> Set ARCH_SUPPORTS_SPECULATIVE_PAGE_FAULT which turns on the >> Speculative Page Fault handler when building for 64bit. >> >> Cc: Thomas Gleixner >> Signed-off-by: Laurent Dufour >> --- >> arch/x86/Kconfig

RE: [PATCH v3 09/13] remoteproc: modify rproc_handle_carveout to support pre-registered region

2018-05-14 Thread Loic PALLARDY
> -Original Message- > From: Bjorn Andersson [mailto:bjorn.anders...@linaro.org] > Sent: Thursday, May 10, 2018 2:43 AM > To: Loic PALLARDY > Cc: o...@wizery.com; linux-remotep...@vger.kernel.org; linux- > ker...@vger.kernel.org; Arnaud POULIQUEN ; > benjamin.gaign...@linaro.org > Subjec

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

2018-05-14 Thread Ulf Hansson
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 Reported-by: Krzysztof Kozlowski Signed-off-

[PATCH 01/21] i2c: algo: bit: make use of i2c_8bit_addr_from_msg

2018-05-14 Thread Peter Rosin
Because it looks neater. Signed-off-by: Peter Rosin --- drivers/i2c/algos/i2c-algo-bit.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/i2c/algos/i2c-algo-bit.c b/drivers/i2c/algos/i2c-algo-bit.c index 3df0efd69ae3..4a34f311e1ff 100644 --- a/drivers/i2c/algos/i2c-

[PATCH 03/21] i2c: algo: pcf: make use of i2c_8bit_addr_from_msg

2018-05-14 Thread Peter Rosin
Because it looks neater. Signed-off-by: Peter Rosin --- drivers/i2c/algos/i2c-algo-pcf.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/i2c/algos/i2c-algo-pcf.c b/drivers/i2c/algos/i2c-algo-pcf.c index 270d84bfc2c6..bb60c1bd1f2d 100644 --- a/drivers/i2c/algos/i2c

[PATCH 05/21] i2c: axxia: make use of i2c_8bit_addr_from_msg

2018-05-14 Thread Peter Rosin
Because it looks neater. Signed-off-by: Peter Rosin --- drivers/i2c/busses/i2c-axxia.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-axxia.c b/drivers/i2c/busses/i2c-axxia.c index 13f07482ec68..f70b097fd567 100644 --- a/drivers/i2c/busses/i2c-axx

[PATCH 07/21] i2c: efm32: make use of i2c_8bit_addr_from_msg

2018-05-14 Thread Peter Rosin
Because it looks neater. Signed-off-by: Peter Rosin --- drivers/i2c/busses/i2c-efm32.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-efm32.c b/drivers/i2c/busses/i2c-efm32.c index aa336ba89aa3..5f2bab878b2c 100644 --- a/drivers/i2c/busses/i2c-efm32.

<    3   4   5   6   7   8   9   10   11   12   >