Re: [PATCH net-next v3 00/12] net: Introduce ndo_get_port_parent_id()

2019-02-05 Thread Ido Schimmel
On Tue, Feb 05, 2019 at 03:53:14PM -0800, Florian Fainelli wrote: > Hi all, > > Based on discussion with Ido and feedback from Jakub there are clearly > two classes of users that implement SWITCHDEV_ATTR_ID_PORT_PARENT_ID: > > - PF/VF drivers which typically only implement return the port's

Re: [PATCH] device: Fix comment for driver_data in struct device

2019-02-05 Thread David Engraf
On 05.02.19 at 14:23, Andy Shevchenko wrote: On Tue, Feb 05, 2019 at 01:19:52PM +0100, David Engraf wrote: dev_set_drvdata/dev_get_drvdata is used to access driver_data in struct device. The original comment might be slight confusing, though we all know the concept of getters and setters.

[PATCH -mm 2/2] proc: use ramfs for executable generation

2019-02-05 Thread Alexey Dobriyan
tmpfs is under CONFIG_TMPFS which can be disabled. ramfs is always enabled. Signed-off-by: Alexey Dobriyan --- fold into proc-test-proc-maps-smaps-smaps_rollup-statm.patch tools/testing/selftests/proc/proc-pid-vm.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) ---

Re: [PATCH] dma-direct: Export dma_direct_alloc() and dma_direct_free()

2019-02-05 Thread Marek Szyprowski
Hi Thierry, On 2019-02-05 23:29, Thierry Reding wrote: > On Tue, Feb 05, 2019 at 07:02:18PM +0100, Christoph Hellwig wrote: >> On Tue, Feb 05, 2019 at 06:56:11PM +0100, Thierry Reding wrote: >>> Sure, here you go: >>> >>> >>>

[PATCH -mm 1/2] proc: exit correctly in /proc/*/maps test

2019-02-05 Thread Alexey Dobriyan
If open() or writev() fails, test will hang waiting for child test process. Signed-off-by: Alexey Dobriyan --- fold into proc-test-proc-maps-smaps-smaps_rollup-statm.patch tools/testing/selftests/proc/proc-pid-vm.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---

Re: [PATCH v10 0/4] Media Device Allocator API

2019-02-05 Thread Hans Verkuil
On 2/5/19 7:10 PM, shuah wrote: > On 2/1/19 2:21 AM, Hans Verkuil wrote: >> On 2/1/19 1:46 AM, shuah wrote: >>> Hi Hans, >>> >>> On 1/30/19 12:42 AM, Hans Verkuil wrote: On 1/30/19 2:50 AM, shuah wrote: > On 1/29/19 2:43 AM, Hans Verkuil wrote: >> On 1/29/19 12:48 AM, shuah wrote:

[PATCH] ramfs: support O_TMPFILE

2019-02-05 Thread Alexey Dobriyan
Signed-off-by: Alexey Dobriyan --- fs/ramfs/inode.c | 12 1 file changed, 12 insertions(+) --- a/fs/ramfs/inode.c +++ b/fs/ramfs/inode.c @@ -145,6 +145,17 @@ static int ramfs_symlink(struct inode * dir, struct dentry *dentry, const char * return error; } +static int

Re: [PATCH v3 1/4] staging: iio: ad7780: add gain & filter gpio support

2019-02-05 Thread Linus Torvalds
Peter, this email was marked as spam for me (and probably others) because of this DKIM signature: DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pmeerw.net; s=mail; where the problem is that when the message goes through the vger.kernel.org mailing list machinery, the

Re: [PATCH v2 2/2] r8169: Avoid pointer aliasing

2019-02-05 Thread Michal Kubecek
On Tue, Feb 05, 2019 at 11:19:04AM -0800, Joe Perches wrote: > On Tue, 2019-02-05 at 11:14 -0800, David Miller wrote: > > From: Joe Perches > > Date: Tue, 05 Feb 2019 10:42:54 -0800 > > > > > On Mon, 2019-02-04 at 19:20 -0800, David Miller wrote: > > >> From: Thierry Reding > > >> Date: Mon, 4

[PATCH 2/2] [-mm only] mm/shuffle: Default enable all shuffling

2019-02-05 Thread Dan Williams
Per Andrew's request arrange for all memory allocation shuffling code to be enabled by default. The page_alloc.shuffle command line parameter can still be used to disable shuffling at boot, but the kernel will default enable the shuffling if the command line option is not specified.

[PATCH 0/2] mm/shuffle: Fix + default enable

2019-02-05 Thread Dan Williams
Andrew, Please fold patch1 into: mm-shuffle-initial-free-memory-to-improve-memory-side-cache-utilization.patch Patch2, as marked, is the "always-on" shuffle patch for -mm only. --- Dan Williams (2): mm/shuffle: Fix shuffle enable [-mm only] mm/shuffle: Default enable all shuffling

[PATCH 1/2] mm/shuffle: Fix shuffle enable

2019-02-05 Thread Dan Williams
The removal of shuffle_store() in v10 of the patch series was prompted by the review feedback to convert page_alloc_shuffle() to __memint. I obviously booted a stale kernel build in my tests because shuffle_store() is indeed required: BUG: unable to handle kernel NULL pointer dereference at

pull-request: wireless-drivers-next 2019-02-06

2019-02-05 Thread Kalle Valo
Hi Dave, here's a pull request to net-next for 5.1, more info below. Please let me know if there are any problems. Kalle The following changes since commit bfeffd155283772bbe78c6a05dec7c0128ee500c: Linux 5.0-rc1 (2019-01-06 17:08:20 -0800) are available in the git repository at:

[PATCH] mips: loongson64: remove unreachable(), fix loongson_poweroff().

2019-02-05 Thread Yifeng Li
On my Yeeloong 8089, I noticed the machine fails to shutdown properly, and often, the function mach_prepare_reboot() is unexpectedly executed, thus the machine reboots instead. A wait loop is needed to ensure the system is in a well-defined state before going down. In commit 997e93d4df16 ("MIPS:

Re: [PATCH v2] dma-direct: do not allocate a single page from CMA area

2019-02-05 Thread Christoph Hellwig
On Tue, Feb 05, 2019 at 03:05:30PM -0800, Nicolin Chen wrote: > > And my other concern is that this skips allocating from the per-device > > pool, which drivers might rely on. > > Actually Robin had the same concern at v1 and suggested that we could > always use DMA_ATTR_FORCE_CONTIGUOUS to

Re: [PATCH v3 0/2] Bluetooth: Add NULL check for tiocmget() and tiocmset()

2019-02-05 Thread Marcel Holtmann
Hi Myungho, >>> tiocmget() and tiocmset() operations are optional and some tty drivers >>> like pty miss the operations. Add NULL checks to prevent from >>> dereference. >>> >>> Myungho Jung (2): >>> Bluetooth: hci_ath: Add NULL check for tiocmget() and tiocmset() in >>> ath_setup() >>>

Re: [PATCH] dma-direct: Export dma_direct_alloc() and dma_direct_free()

2019-02-05 Thread Christoph Hellwig
On Tue, Feb 05, 2019 at 11:29:12PM +0100, Thierry Reding wrote: > > > > > > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/gpu/host1x/cdma.c#n106 > > > > Yes, I think we I can come up with a nicer helper for that. > > One thing I could also try is to remove

Re: [PATCH] usb: gadget: function: f_uac1 add interface assoc desc

2019-02-05 Thread Felipe Balbi
liangshengjun writes: > Add f_uac1 interface association descriptor, make f_uac1 link other > function(like f_uvc) is possible. > > Signed-off-by: Liang Shengjun doesn't apply. Also, remember to break commit log lines at 72 columns -- balbi signature.asc Description: PGP signature

Re: [PATCH] usb: dwc3: Enable GBit Ethernet on Odroid XU4

2019-02-05 Thread Felipe Balbi
hi, Jochen Sprickerhof writes: > Note that it only works with USB_XHCI_PLATFORM=y. Also it needs a hard > reset when coming from an unpatched kernel. > > This was included in the original patch in > https://patchwork.kernel.org/patch/9992809/ but got dropped when > accepted in d8c80bb3b55b phy:

Re: [PATCH] omap3: give off mode enable a more prominent place

2019-02-05 Thread Andreas Kemnade
On Mon, 4 Feb 2019 10:43:17 -0800 Tony Lindgren wrote: > * Andreas Kemnade [190204 18:33]: > > On Mon, 4 Feb 2019 07:56:04 -0800 > > Tony Lindgren wrote: > > > > > * Andreas Kemnade [190202 06:01]: > > > > Enabling off mode was only reachable deeply hidden > > > > in the debugfs. As

Re: [RFC v2] usb: xhci: add Immediate Data Transfer support

2019-02-05 Thread Felipe Balbi
Hi, Nicolas Saenz Julienne writes: > diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c > index 40fa25c4d041..a4efbe62a1a3 100644 > --- a/drivers/usb/host/xhci-ring.c > +++ b/drivers/usb/host/xhci-ring.c > @@ -3272,8 +3272,15 @@ int xhci_queue_bulk_tx(struct xhci_hcd

Re: [PATCH v3 0/2] Bluetooth: Add NULL check for tiocmget() and tiocmset()

2019-02-05 Thread Myungho Jung
On Tue, Feb 05, 2019 at 02:55:50PM +0100, Marcel Holtmann wrote: > Hi Myungho, > > > tiocmget() and tiocmset() operations are optional and some tty drivers > > like pty miss the operations. Add NULL checks to prevent from > > dereference. > > > > Myungho Jung (2): > > Bluetooth: hci_ath: Add

Re: [PATCH V4 8/9] jump_label: Batch updates if arch supports it

2019-02-05 Thread Masami Hiramatsu
On Mon, 4 Feb 2019 20:59:01 +0100 Daniel Bristot de Oliveira wrote: > --- a/kernel/jump_label.c > +++ b/kernel/jump_label.c > @@ -407,6 +407,7 @@ bool jump_label_can_update_check(struct jump_entry > *entry, bool init) > return 0; > } > > +#ifndef HAVE_JUMP_LABEL_BATCH > static void

Re: [PATCH] rtc: rs5c372: Fix reading from rtc when the oscillator got interrupted.

2019-02-05 Thread Oliver.Rohe
Hi Alexandre, thanks a lot!! On 05.02.19 22:55, Alexandre Belloni wrote: > Hi, > > On 11/01/2019 13:15:39+, oliver.r...@wago.com wrote: >> When the oscillator of the rtc gets interrupted, >> e.g. due to an empty battery, reading from the rtc will now return an error >> and the oscillator

[PATCH v2] kernfs: Allocating memory for kernfs_iattrs with kmem_cache.

2019-02-05 Thread Ayush Mittal
Creating a new cache for kernfs_iattrs. Currently, memory is allocated with kzalloc() which always gives aligned memory. On ARM, this is 64 byte aligned. To avoid the wastage of memory in aligning the size requested, a new cache for kernfs_iattrs is created. Size of struct kernfs_iattrs is 80

Re: linux-next: tracebacks in workqueue.c/__flush_work()

2019-02-05 Thread Tetsuo Handa
(Adding linux-arch ML.) Rusty Russell wrote: > Tetsuo Handa writes: > > (Adding Chris Metcalf and Rusty Russell.) > > > > If NR_CPUS == 1 due to CONFIG_SMP=n, for_each_cpu(cpu, _work) loop does > > not > > evaluate "struct cpumask has_work" modified by cpumask_set_cpu(cpu, > > _work) at > >

Re: [PATCH V4 9/9] x86/jump_label: Batch jump label updates

2019-02-05 Thread Masami Hiramatsu
Hi Daniel, On Mon, 4 Feb 2019 20:59:02 +0100 Daniel Bristot de Oliveira wrote: > Currently, the jump label of a static key is transformed via the arch > specific function: > > void arch_jump_label_transform(struct jump_entry *entry, >enum

Re: [PATCH 5/5] arm: dts: axpxx: add charge led node

2019-02-05 Thread Stefan Mavrodiev
On 2/5/19 6:16 PM, Chen-Yu Tsai wrote: On Thu, Jan 31, 2019 at 4:25 PM Stefan Mavrodiev wrote: Add dt node for axp20x-led driver controlling CHGLED. Default status is disabled, since it may be not used. Signed-off-by: Stefan Mavrodiev Please include a cover letter for such a patch series.

linux-next: Tree for Feb 6

2019-02-05 Thread Stephen Rothwell
Hi all, Changes since 20190205: The mips tree gained conflicts against the mips-fixes tree. The opp tree gained a conflict against the pm tree. The drm-intel tree gained a conflict against the drm tree. The akpm-current tree gained a conflict against the powerpc-fixes tree. Non-merge commits

[PATCH] KVM: export and iif KVM is supported

2019-02-05 Thread Masahiro Yamada
I do not see any consistency about headers_install of and . According to my analysis of Linux 5.0-rc5, there are 3 groups: [1] Both and are exported alpha, arm, hexagon, mips, powerpc, s390, sparc, x86 [2] is exported, but is not arc, arm64, c6x, h8300, ia64, m68k, microblaze,

Re: [PATCH v2 2/2] media: docs-rst: Document memory-to-memory video encoder interface

2019-02-05 Thread Tomasz Figa
On Thu, Jan 31, 2019 at 12:06 AM Nicolas Dufresne wrote: > > Le vendredi 25 janvier 2019 à 12:59 +0900, Tomasz Figa a écrit : > > On Fri, Jan 25, 2019 at 5:14 AM Nicolas Dufresne > > wrote: > > > Le mercredi 23 janvier 2019 à 14:04 +0100, Hans Verkuil a écrit : > > > > > > Does this return the

Re: [PATCH v2 1/2] media: docs-rst: Document memory-to-memory video decoder interface

2019-02-05 Thread Tomasz Figa
On Wed, Jan 30, 2019 at 1:02 PM Nicolas Dufresne wrote: > > Le vendredi 25 janvier 2019 à 12:27 +0900, Tomasz Figa a écrit : > > On Fri, Jan 25, 2019 at 4:55 AM Nicolas Dufresne > > wrote: > > > Le jeudi 24 janvier 2019 à 18:06 +0900, Tomasz Figa a écrit : > > > > > Actually I just realized the

linux-next: manual merge of the akpm-current tree with the powerpc-fixes tree

2019-02-05 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm-current tree got a conflict in: arch/powerpc/mm/pgtable-book3s64.c between commit: 579b9239c1f3 ("powerpc/radix: Fix kernel crash with mremap()") from the powerpc-fixes tree and commit: 41bde21e85a7 ("arch/powerpc/mm: Nest MMU workaround for

[PATCH 1/6] vmw_balloon: bump version number

2019-02-05 Thread Nadav Amit
Following recent changes. Signed-off-by: Nadav Amit --- drivers/misc/vmw_balloon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/vmw_balloon.c b/drivers/misc/vmw_balloon.c index f8240b87df22..7294f305753f 100644 --- a/drivers/misc/vmw_balloon.c +++

[PATCH v6 5/8] soc: qcom: Add AOSS QMP communication driver

2019-02-05 Thread Bjorn Andersson
The AOSS QMP driver is used to communicate with the AOSS for certain side-channel requests, that are not enabled through the RPMh interface. The communication is a very simple synchronous mechanism of messages being written in message RAM and a doorbell in the AOSS is rung. As the AOSS has

[PATCH 0/6] vmw_balloon: 64-bit limit support, compaction, shrinker

2019-02-05 Thread Nadav Amit
Various enhancements for VMware balloon, some of which are remainder from a previous patch-set. Patch 1: Aumps the version number, following recent changes Patch 2: Adds support for 64-bit memory limit Patches 3-4: Support for compaction Patch 5: Support for memory shrinker - disabled by default

[PATCH v6 7/8] arm64: dts: qcom: Add AOSS QMP node

2019-02-05 Thread Bjorn Andersson
The AOSS QMP provides a number of power domains, used for QDSS and PIL, add the node for this. Tested-by: Sibi Sankar Reviewed-by: Sibi Sankar Signed-off-by: Bjorn Andersson --- Changes since v5: - None arch/arm64/boot/dts/qcom/sdm845.dtsi | 10 ++ 1 file changed, 10 insertions(+)

[PATCH v6 3/8] arm64: dts: sdm845: Introduce ADSP and CDSP PAS nodes

2019-02-05 Thread Bjorn Andersson
Add the Audio DSP (ADSP) and Compute DSP (CDSP) nodes for TrustZone based remoteproc, supporting booting these cores on e.g. the MTP, and enable the same for the MTP. Tested-by: Sibi Sankar Reviewed-by: Sibi Sankar Signed-off-by: Bjorn Andersson --- Changes since v5: - None

[PATCH v6 00/8] Qualcomm AOSS QMP driver and modem dts

2019-02-05 Thread Bjorn Andersson
Update the reserved memory map for SDM845, add the ADSP and CDSP nodes, introduce a communication driver for the AOSS and a PD driver for this and finally add the modem remoteproc driver. Bjorn Andersson (7): arm64: dts: qcom: sdm845: Update reserved memory map arm64: dts: qcom: sdm845:

[PATCH v6 8/8] arm64: dts: qcom: sdm845: Add Q6V5 MSS node

2019-02-05 Thread Bjorn Andersson
From: Sibi Sankar This patch adds Q6V5 MSS remoteproc node for SDM845 SoCs. Signed-off-by: Sibi Sankar Reviewed-by: Douglas Anderson Signed-off-by: Bjorn Andersson --- Changes since v5: - None arch/arm64/boot/dts/qcom/sdm845.dtsi | 58 1 file changed, 58

[PATCH v6 2/8] arm64: dts: qcom: sdm845: Define rmtfs memory

2019-02-05 Thread Bjorn Andersson
Define the rmtfs memory node. As the memory region specified in version 10 of the memory map is only 1MB a chunk of unallocated memory is chosen. Tested-by: Sibi Sankar Reviewed-by: Sibi Sankar Signed-off-by: Bjorn Andersson --- Changes since v5: - Corrected unit address

[PATCH v6 4/8] dt-bindings: soc: qcom: Add AOSS QMP binding

2019-02-05 Thread Bjorn Andersson
Add binding for the QMP based side-channel communication mechanism to the AOSS, which is used to control resources not exposed through the RPMh interface. Reviewed-by: Rob Herring Reviewed-by: Stephen Boyd Signed-off-by: Bjorn Andersson --- Changes since v5: - None

[PATCH v6 1/8] arm64: dts: qcom: sdm845: Update reserved memory map

2019-02-05 Thread Bjorn Andersson
Update existing and add missing regions to the reserved memory map, as described in version 10. Reviewed-by: Sibi Sankar Signed-off-by: Bjorn Andersson --- Changes since v5: - Replaced a few 0x0 with 0 - Corrected size of tz_mem arch/arm64/boot/dts/qcom/sdm845.dtsi | 74

[PATCH v6 6/8] soc: qcom: Add AOSS QMP genpd provider

2019-02-05 Thread Bjorn Andersson
The AOSS QMP genpd provider implements control over power-related resources related to low-power state associated with the remoteprocs in the system as well as control over a set of clocks related to debug hardware in the SoC. Tested-by: Sibi Sankar Tested-by: Sai Prakash Ranjan Reviewed-by:

KASAN: slab-out-of-bounds Read in ip_send_unicast_reply

2019-02-05 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:b71acb0e3721 Merge branch 'linus' of git://git.kernel.org/.. git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=11a6994b40 kernel config: https://syzkaller.appspot.com/x/.config?x=b03c5892bb940c76

KASAN: use-after-free Read in tcp_sk_exit

2019-02-05 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:33a0efa4baec devlink: Use DIV_ROUND_UP_ULL in DEVLINK_HEAL.. git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=14e2e55f40 kernel config: https://syzkaller.appspot.com/x/.config?x=505743eba4e4f68

BUG: spinlock bad magic in __queue_work

2019-02-05 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:962c382d482a Merge tag 'mac80211-next-for-davem-2019-02-01.. git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=169299f8c0 kernel config: https://syzkaller.appspot.com/x/.config?x=33ad02b9305759c3

[PATCH -next] x86_64: tidy up KASAN_EXTRA

2019-02-05 Thread Qian Cai
The commit 585a4c1f9978 ("kasan: remove use after scope bugs detection.") removed KASAN_EXTRA, so tidy up leftovers. Signed-off-by: Qian Cai --- arch/x86/include/asm/page_64_types.h | 4 1 file changed, 4 deletions(-) diff --git a/arch/x86/include/asm/page_64_types.h

Re: [PATCH 1/2] cpufreq: qcom-hw: Register an Energy Model

2019-02-05 Thread Viresh Kumar
On 05-02-19, 09:52, Matthias Kaehlcke wrote: > Try and register an Energy Model from qcom-cpufreq-hw to allow > interested sub-systems like the task scheduler to use the provided > information. > > Signed-off-by: Matthias Kaehlcke > --- > drivers/cpufreq/qcom-cpufreq-hw.c | 2 ++ > 1 file

Re: [PATCH 1/4] powerpc/64s: Clear on-stack exception marker upon exception return

2019-02-05 Thread Michael Ellerman
Balbir Singh writes: > On Tue, Feb 5, 2019 at 10:24 PM Michael Ellerman wrote: >> Balbir Singh writes: >> > On Sat, Feb 2, 2019 at 12:14 PM Balbir Singh wrote: >> >> On Tue, Jan 22, 2019 at 10:57:21AM -0500, Joe Lawrence wrote: >> >> > From: Nicolai Stange >> >> > >> >> > The ppc64 specific

Re: BUG: optimized kprobes illegal instructions in v4.19 stable kernels

2019-02-05 Thread Masami Hiramatsu
On Tue, 5 Feb 2019 15:06:10 + Kees Cook wrote: > On Mon, Feb 4, 2019 at 7:15 PM Mathieu Desnoyers > wrote: > > > > Hi, > > > > I notice this commit as a possible culprit of the illegal instructions my > > lttng > > users are noticing on arm32 when using kprobes on a v4.19.13 Linux kernel >

Re: [PATCH 1/1] Fix: arm: kprobes: optimized kprobes illegal instruction

2019-02-05 Thread Masami Hiramatsu
On Tue, 5 Feb 2019 10:37:40 -0500 Mathieu Desnoyers wrote: > commit e46daee53bb5 ("ARM: 8806/1: kprobes: Fix false positive with > FORTIFY_SOURCE") introduced a regression in optimized kprobes. It > triggers "invalid instruction" oopses when using kprobes instrumentation > through lttng and

Re: linux-next: Fixes tag needs some work in the scsi-fixes tree

2019-02-05 Thread Stephen Rothwell
Hi Vaibhav, On Wed, 06 Feb 2019 09:25:12 +0530 Vaibhav Jain wrote: > > Martin, should I resend the patch with this fixed ? I wouldn't bother, it is a really picky report (I almost didn't send it) :-) Consider it just a reminder for next time. -- Cheers, Stephen Rothwell pgpwFIft3qTrz.pgp

Re: linux-next: Fixes tag needs some work in the scsi-fixes tree

2019-02-05 Thread Vaibhav Jain
Stephen Rothwell writes: > Hi Martin, > > In commit > > bb61b843ffd4 ("scsi: cxlflash: Prevent deadlock when adapter probe fails") > > Fixes tag > > Fixes: c21e0bbfc485("cxlflash: Base support for IBM CXL Flash Adapter") > > has these problem(s): > > - missing space between the SHA1 and

Re: [PATCH v2 2/2] r8169: Avoid pointer aliasing

2019-02-05 Thread Joe Perches
On Tue, 2019-02-05 at 20:25 -0700, Paul Zimmerman wrote: > GCC does not lay out stack variables in the same order that they are > declared. True. Most stack variables could be assigned to a register. cheers, Joe

[PATCH -next] mm/compaction: no stuck in __reset_isolation_pfn()

2019-02-05 Thread Qian Cai
The commit c68d77911c23 ("mm, compaction: be selective about what pageblocks to clear skip hints") introduced an infinite loop if a pfn is invalid, it will loop again without increasing page counters. It can be reproduced by running LTP tests on an arm64 server. # oom01 (swapping) # hugemmap01

Re: KASAN: use-after-free Read in __wake_up_common_lock

2019-02-05 Thread Eric Dumazet
On 02/05/2019 07:28 PM, Dmitry Vyukov wrote: > On Wed, Jan 30, 2019 at 10:02 PM syzbot > wrote: >> >> Hello, >> >> syzbot found the following crash on: >> >> HEAD commit:62967898789d Merge git://git.kernel.org/pub/scm/linux/kern.. >> git tree: upstream >> console output:

[PATCH 0/9] ARM: sun9i: a80: Enable GMAC

2019-02-05 Thread Chen-Yu Tsai
Hi everyone, On the Allwinner A80, the PIO pin controller includes configuration registers to set the I/O voltage. These must match the actual voltage provided externally. A mismatch results in signals not being passed through. With the new PIO pin-bank regulator supply support in place, we can

[PATCH 3/9] ARM: dts: sun9i: a80-optimus: Add GPIO pin-bank regulator supplies

2019-02-05 Thread Chen-Yu Tsai
The A80 Optimus has the PMIC providing voltage to all the pin-bank supply rails from its various regulator outputs. All pin-banks that have supply rails are accounted for. PN pin-bank does not have a supply rail. Also remove any "regulator-always-on" properties from regulators that were only

[PATCH 7/9] ARM: dts: sun9i: Add A80 GMAC RGMII pinmux setting

2019-02-05 Thread Chen-Yu Tsai
The GMAC (gigabit ethernet controller) supports RGMII to connect to the ethernet PHY, for gigabit network speeds. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun9i-a80.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/sun9i-a80.dtsi

[PATCH 5/9] ARM: dts: sun9i: Add GMAC clock node

2019-02-05 Thread Chen-Yu Tsai
The A80 has the same DWMAC hardware as on earlier Allwinner SoCs. The accompanying GMAC clock register has been moved into the "System Control" area. Add a clock node for it. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun9i-a80.dtsi | 31 +++ 1 file changed,

[PATCH 9/9] ARM: dts: sun9i: cubieboard4: Enable GMAC

2019-02-05 Thread Chen-Yu Tsai
The Cubieboard4 has a Realtek RTL8211E ethernet PHY which uses RGMII to talk to the MAC. The PHY is powered by 2 regulators: cldo1 for the PHY's core logic and gpio1-ldo for I/O. The latter also powers the SoC side pins. As there is no binding to model a second regulator supply for the PHY, it is

[PATCH 2/9] ARM: dts: sun9i: a80-optimus: Add node for AXP809's unused dc1sw regulator

2019-02-05 Thread Chen-Yu Tsai
The DC1SW output from the AXP809 is unused. Unused regulators should still be listed so as to be considered to be fully constrained. Fixes: aa4a27bc819e ("ARM: dts: sun9i: a80-optimus: Add AXP809 PMIC device node and regulators") Signed-off-by: Chen-Yu Tsai ---

[PATCH 8/9] ARM: dts: sun9i: a80-optimus: Enable GMAC

2019-02-05 Thread Chen-Yu Tsai
The A80 Optimus has a Realtek RTL8211E ethernet PHY which uses RGMII to talk to the MAC. The PHY is powered by 2 regulators: cldo1 for the PHY's core logic and gpio1-ldo for I/O. The latter also powers the SoC side pins. As there is no binding to model a second regulator supply for the PHY, it is

[PATCH 1/9] pinctrl: sunxi: Support I/O bias voltage setting on A80

2019-02-05 Thread Chen-Yu Tsai
The A80 SoC has configuration registers for I/O bias voltage. Incorrect settings would make the affected peripherals inoperable in some cases, such as Ethernet RGMII signals biased at 2.5V with the settings still at 3.3V. However low speed signals such as MDIO on the same group of pins seem to be

[PATCH 6/9] ARM: dts: sun9i: Add A80 GMAC gigabit ethernet controller node

2019-02-05 Thread Chen-Yu Tsai
The A80 has the same GMAC found on the A31 SoC. Add a device node, and an alias for it. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun9i-a80.dtsi | 21 + 1 file changed, 21 insertions(+) diff --git a/arch/arm/boot/dts/sun9i-a80.dtsi

[PATCH 4/9] ARM: dts: sun9i: cubieboard4: Add GPIO pin-bank regulator supplies

2019-02-05 Thread Chen-Yu Tsai
The Cubieboard 4 has the PMIC providing voltage to all the pin-bank supply rails from its various regulator outputs. All pin-banks that have supply rails are accounted for. PN pin-bank does not have a supply rail. Also remove any "regulator-always-on" properties from regulators that were only

[PATCH] phy: Variable "val" in function miphy_osc_is_ready() could be uninitialized

2019-02-05 Thread Yizhuo
In function miphy_osc_is_ready(), local variable "val" could be uninitalized. if function regmap_read() returns -EINVAL. However, this value is used in if statement. This is potentially unsafe. Signed-off-by: Yizhuo --- drivers/phy/st/phy-miphy28lp.c | 7 +-- 1 file changed, 5

Re: KASAN: use-after-free Read in __wake_up_common_lock

2019-02-05 Thread Dmitry Vyukov
On Wed, Jan 30, 2019 at 10:02 PM syzbot wrote: > > Hello, > > syzbot found the following crash on: > > HEAD commit:62967898789d Merge git://git.kernel.org/pub/scm/linux/kern.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=10f0bf08c0 > kernel

Re: [PATCH v2 2/2] r8169: Avoid pointer aliasing

2019-02-05 Thread Paul Zimmerman
On Tue, 05 Feb 2019 18:52:18 -0800, Joe Perches wrote: > On Tue, 2019-02-05 at 19:27 -0700, Paul Zimmerman wrote: >> On Tue, 2019-02-05, Joe Perches wrote: >>> On Tue, 2019-02-05 at 12:04 -0800, Eric Dumazet wrote: >>> > On 02/05/2019 10:42 AM, Joe Perches wrote: >>> > > It's declared after a

[PATCH] phy: Variable "val" in function miphy_osc_is_ready() could be uninitialized

2019-02-05 Thread Yizhuo
In function miphy_osc_is_ready(), local variable "val" could be uninitalized. if function regmap_read() returns -EINVAL. However, this value is used in if statement. This is potentially unsafe. Signed-off-by: Yizhuo --- drivers/phy/st/phy-miphy28lp.c | 7 +-- 1 file changed, 5

Re: [PATCH v2] exec: don't force_sigsegv processes with a pending fatal signal

2019-02-05 Thread Ivan Delalande
On Tue, Feb 05, 2019 at 01:11:19PM -0800, Andrew Morton wrote: > On Mon, 4 Feb 2019 18:53:08 -0800 Ivan Delalande wrote: > > --- a/fs/exec.c > > +++ b/fs/exec.c > > @@ -1660,7 +1660,12 @@ int search_binary_handler(struct linux_binprm *bprm) > > if (retval < 0 && !bprm->mm) { > >

Re: [PATCH] powerpc/powernv/npu: Remove redundant change_pte() hook

2019-02-05 Thread Balbir Singh
On Tue, Feb 5, 2019 at 2:52 PM Alistair Popple wrote: > > On Thursday, 31 January 2019 12:11:06 PM AEDT Andrea Arcangeli wrote: > > On Thu, Jan 31, 2019 at 06:30:22PM +0800, Peter Xu wrote: > > > The change_pte() notifier was designed to use as a quick path to > > > update secondary MMU PTEs on

Re: [PATCH v2 2/2] r8169: Avoid pointer aliasing

2019-02-05 Thread Joe Perches
On Tue, 2019-02-05 at 19:27 -0700, Paul Zimmerman wrote: > On Tue, 2019-02-05, Joe Perches wrote: > > On Tue, 2019-02-05 at 12:04 -0800, Eric Dumazet wrote: > > > On 02/05/2019 10:42 AM, Joe Perches wrote: > > > > It's declared after a pointer so it is already is 2 byte aligned. > > > > > > > > A

Re: [PATCH] psi: fix aggregation idle shut-off

2019-02-05 Thread Suren Baghdasaryan
Hi Andrew, On Mon, Jan 28, 2019 at 3:06 PM Andrew Morton wrote: > > On Wed, 16 Jan 2019 14:35:01 -0500 Johannes Weiner wrote: > > > psi has provisions to shut off the periodic aggregation worker when > > there is a period of no task activity - and thus no data that needs > > aggregating.

Re: [PATCH 1/4] powerpc/64s: Clear on-stack exception marker upon exception return

2019-02-05 Thread Balbir Singh
On Tue, Feb 5, 2019 at 10:24 PM Michael Ellerman wrote: > > Balbir Singh writes: > > On Sat, Feb 2, 2019 at 12:14 PM Balbir Singh wrote: > >> > >> On Tue, Jan 22, 2019 at 10:57:21AM -0500, Joe Lawrence wrote: > >> > From: Nicolai Stange > >> > > >> > The ppc64 specific implementation of the

[PATCH v4 1/1] psi: introduce psi monitor

2019-02-05 Thread Suren Baghdasaryan
Psi monitor aims to provide a low-latency short-term pressure detection mechanism configurable by users. It allows users to monitor psi metrics growth and trigger events whenever a metric raises above user-defined threshold within user-defined time window. Time window and threshold are both

Re: [PATCH v2 2/2] r8169: Avoid pointer aliasing

2019-02-05 Thread Paul Zimmerman
On Tue, 2019-02-05, Joe Perches wrote: > On Tue, 2019-02-05 at 12:04 -0800, Eric Dumazet wrote: >> >> On 02/05/2019 10:42 AM, Joe Perches wrote: >> > It's declared after a pointer so it is already is 2 byte aligned. >> > >> > A lot of drivers wouldn't work otherwise. >> >> Maybe these drivers

Re: [PATCH] checkpatch: Verify SPDX comment style

2019-02-05 Thread Joe Perches
On Tue, 2019-02-05 at 14:21 -0800, Andrew Morton wrote: > On Thu, 10 Jan 2019 16:05:11 -0800 Joe Perches wrote: > > > Using SPDX commenting style // or /* is specified for > > various file types in Documentation/process/license-rules.rst > > so add an appropriate test for .[chsS] files because

[PATCH] phy: rockchip-typec: Variable "val" of function rockchip_usb3_phy_power_on() could be uninitialized

2019-02-05 Thread Yizhuo
In function rockchip_usb3_phy_power_on(), local variable "val" could be uninitialized if function regmap_read() returns -EINVAL. However, this value is directly used in later context. This is potentially unsafe. Signed-off-by: Yizhuo --- drivers/phy/rockchip/phy-rockchip-typec.c | 5 - 1

Re: libelf-0.175 breaks objtool

2019-02-05 Thread Josh Poimboeuf
On Tue, Feb 05, 2019 at 01:38:21PM -0500, Steven Rostedt wrote: > Just a FYI. > > After a recent upgrade in debian testing, I was not able to build the > kernel. I have a custom build of gcc, so I thought it was strange that > I was getting something like this (took this from the web, as I don't

Re: [PATCH RESEND] PCI: Check for USB xHCI class for HAPS platform

2019-02-05 Thread Bjorn Helgaas
On Tue, Feb 05, 2019 at 05:01:18PM -0800, John Youn wrote: > On 02/05/2019 03:32 PM, Bjorn Helgaas wrote: > > On Tue, Feb 05, 2019 at 01:04:28PM -0800, Thinh Nguyen wrote: > > > The Synopsys HAPS USB controller has a VID PID (16c3,abcd) that matches > > > to an existing PCIe controller. This quirk

[PATCH] phy: Variable "caldone" in function rockchip_emmc_phy_power() could be uninitialized

2019-02-05 Thread Yizhuo
In function rockchip_emmc_phy_power(), local variable "caldone" could be uninitialized if function regmap_read() returns -EINVAL. However, it will be used directly in the later context, which is potentially unsafe. Signed-off-by: Yizhuo --- drivers/phy/rockchip/phy-rockchip-emmc.c | 10

[PATCH v4 2/3] Input: add new vibrator driver for various MSM SOCs

2019-02-05 Thread Brian Masney
This patch adds a new vibrator driver that supports various Qualcomm MSM SOCs. Driver was tested on a LG Nexus 5 (hammerhead) phone. Signed-off-by: Brian Masney --- Changes since v3: - Made msm_vibrator_write a function instead of a macro. - Check for -EPROBE_DEFER for gpio and clk for

[PATCH v4 3/3] ARM: dts: qcom: msm8974-hammerhead: add device tree bindings for vibrator

2019-02-05 Thread Brian Masney
This patch adds device device tree bindings for the vibrator found on the LG Nexus 5 (hammerhead) phone. Signed-off-by: Brian Masney --- Changes since v3: - None .../qcom-msm8974-lge-nexus5-hammerhead.dts| 31 +++ 1 file changed, 31 insertions(+) diff --git

Re: [PATCH v5 05/10] soc: qcom: Add AOSS QMP communication driver

2019-02-05 Thread Bjorn Andersson
On Fri 01 Feb 15:36 PST 2019, Doug Anderson wrote: > Hi, > > On Wed, Jan 30, 2019 at 4:40 PM Bjorn Andersson > wrote: > > +++ b/drivers/soc/qcom/aoss-qmp.c > > @@ -0,0 +1,317 @@ > > +// SPDX-License-Identifier: GPL-2.0 > > +/* > > + * Copyright (c) 2018, Linaro Ltd > > + */ > > +#include > >

[PATCH v4 0/3] ARM: qcom: add vibrator support for various MSM SOCs

2019-02-05 Thread Brian Masney
This patch set adds support for the vibrator found on various Qualcomm MSM SOCs. This is based on work from: Jonathan Marek from qcom,pwm-vibrator.c in the PostmarketOS repo: https://gitlab.com/postmarketOS/linux-postmarketos/commit/7647fb36cb1cbd060f8b52087a68ab93583292b5 Jongrak Kwon and Devin

[PATCH v4 1/3] dt-bindings: Input: new bindings for MSM vibrator

2019-02-05 Thread Brian Masney
This patch adds the device tree bindings for the vibrator found on various Qualcomm MSM SOCs. Signed-off-by: Brian Masney Reviewed-by: Rob Herring --- Changes since v3: - None .../bindings/input/msm-vibrator.txt | 36 +++ 1 file changed, 36 insertions(+) create mode

Re: [REGRESSION 4.20-rc1] 45975c7d21a1 ("rcu: Define RCU-sched API in terms of RCU for Tree RCU PREEMPT builds")

2019-02-05 Thread tomli
> OK, thanks. This looks slightly different from the Loongson problem: > > - In Loongson, we don't get stuck in RCU, but in > cpufreq_dbs_governor_stop -> irq_work_sync(). > > - I run non-preemptible kernel, and my system still gets stuck. > > What is common is that it's UP with i8259 PIC. >

Re: linux-next: tracebacks in workqueue.c/__flush_work()

2019-02-05 Thread Rusty Russell
Tetsuo Handa writes: > (Adding Chris Metcalf and Rusty Russell.) > > If NR_CPUS == 1 due to CONFIG_SMP=n, for_each_cpu(cpu, _work) loop does > not > evaluate "struct cpumask has_work" modified by cpumask_set_cpu(cpu, > _work) at > previous for_each_online_cpu() loop. Guenter Roeck found a

Re: [PATCH v1] binderfs: remove separate device_initcall()

2019-02-05 Thread Todd Kjos
On Wed, Jan 30, 2019 at 4:25 PM Christian Brauner wrote: > > binderfs should not have a separate device_initcall(). When a kernel is > compiled with CONFIG_ANDROID_BINDERFS register the filesystem alongside > CONFIG_ANDROID_IPC. This use-case is especially sensible when users specify >

Re: [PATCH RESEND] PCI: Check for USB xHCI class for HAPS platform

2019-02-05 Thread John Youn
On 02/05/2019 03:32 PM, Bjorn Helgaas wrote: [+cc Richard, Lucas] On Tue, Feb 05, 2019 at 01:04:28PM -0800, Thinh Nguyen wrote: The Synopsys HAPS USB controller has a VID PID (16c3,abcd) that matches to an existing PCIe controller. This quirk is intended for USB HAPS devices only. To fix this,

RE: [PATCH] libnvdimm/dimm: Add a no-BLK quirk based on NVDIMM family

2019-02-05 Thread Dexuan Cui
> From: Dan Williams > Sent: Tuesday, February 5, 2019 9:12 AM > On Tue, Feb 5, 2019 at 8:53 AM Dexuan Cui wrote: > > > > > From: Dan Williams > > > Sent: Sunday, February 3, 2019 11:14 AM > > > > ... > > > > As I understand, the essence of the issue is: Hyper-V emulates the > > > > label

Re: [PATCH v3 2/3] Input: add new vibrator driver for various MSM SOCs

2019-02-05 Thread Brian Masney
On Tue, Feb 05, 2019 at 11:42:46AM -0800, Dmitry Torokhov wrote: > > + dev_err(>dev, "Failed to lookup pwm clock: %ld\n", > > + PTR_ERR(vibrator->clk)); > > + return PTR_ERR(vibrator->clk); > > + } > > + > > + res = platform_get_resource(pdev,

Re: [PATCH 4/7] thermal: mediatek: add thermal controller offset

2019-02-05 Thread Eduardo Valentin
On Fri, Feb 01, 2019 at 03:38:10PM +0800, michael@mediatek.com wrote: > From: Michael Kao > > One thermal controller can read four sensors at most, > so we need to add controller_offset for the project with > more than four sensors to reuse the same register settings. > > Signed-off-by:

Re: compile error at sun6i_video

2019-02-05 Thread Kuninori Morimoto
Hi Sakari Cc Niklas Thank you for your feedback > > /opt/RB02197/home/morimoto/save/WORK/linux/drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c: > > In function 'sun6i_video_start_streaming': > >

Re: [PATCH 3/7] thermal: mediatek: add calibration item

2019-02-05 Thread Eduardo Valentin
On Mon, Feb 04, 2019 at 06:31:41PM +0100, Matthias Brugger wrote: > > > On 01/02/2019 08:38, michael@mediatek.com wrote: > > From: Michael Kao > > > > Add calibration item in thermal_data to support > > the project with different calibration coefficient. > > > > Signed-off-by: Michael Kao

Re: [PATCH] Input: gpio-keys - Add shutdown callback

2019-02-05 Thread Dmitry Torokhov
On Tue, Feb 05, 2019 at 02:02:49PM -0800, Florian Fainelli wrote: > On 2/1/19 11:24 AM, Florian Fainelli wrote: > > On some platforms (e.g.: ARCH_BRCMSTB) it is possible to enter > > "poweroff" while leaving some wake-up sources enabled such as key > > presses in order to allow for the system to

linux-next: manual merge of the drm-intel tree with the drm tree

2019-02-05 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the drm-intel tree got a conflict in: drivers/gpu/drm/i915/i915_pci.c between commit: fcd70cd36b9b ("drm: Split out drm_probe_helper.h") from the drm tree and commit: 5f5c139d6900 ("drm/i915: Allocate active tracking nodes from a slabcache") from

[PATCH 03/32] timens: Introduce CLOCK_MONOTONIC offsets

2019-02-05 Thread Dmitry Safonov
From: Andrei Vagin Add monotonic time virtualisation for time namespace. Introduce timespec for monotionic clock into timens offsets and wire clock_gettime() syscall. Signed-off-by: Andrei Vagin Co-developed-by: Dmitry Safonov Signed-off-by: Dmitry Safonov --- include/linux/time_namespace.h

  1   2   3   4   5   6   7   8   9   10   >