[tip:perf/urgent] perf bench: Fix numa report output code

2018-06-26 Thread tip-bot for Jiri Olsa
Commit-ID: 983107072be1a39cbde67d45cb0059138190e015 Gitweb: https://git.kernel.org/tip/983107072be1a39cbde67d45cb0059138190e015 Author: Jiri Olsa AuthorDate: Wed, 20 Jun 2018 11:40:36 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 25 Jun 2018 11:59:37 -0300 perf bench: Fix

[tip:perf/urgent] perf script: Add missing output fields in a hint

2018-06-26 Thread tip-bot for Ravi Bangoria
Commit-ID: 10e9cec905f96fdf47f398be70726e2931b376cd Gitweb: https://git.kernel.org/tip/10e9cec905f96fdf47f398be70726e2931b376cd Author: Ravi Bangoria AuthorDate: Mon, 25 Jun 2018 18:12:18 +0530 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 25 Jun 2018 11:59:37 -0300 perf script:

[tip:perf/urgent] perf script: Fix crash because of missing evsel->priv

2018-06-26 Thread tip-bot for Ravi Bangoria
Commit-ID: a3af66f51bd0bca72881ead4bf2bd19cb366582b Gitweb: https://git.kernel.org/tip/a3af66f51bd0bca72881ead4bf2bd19cb366582b Author: Ravi Bangoria AuthorDate: Mon, 25 Jun 2018 18:12:19 +0530 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 25 Jun 2018 11:59:37 -0300 perf script:

[tip:perf/urgent] perf tools: Fix crash caused by accessing feat_ops[HEADER_LAST_FEATURE]

2018-06-26 Thread tip-bot for Ravi Bangoria
Commit-ID: 92ead7ee30c80f8852d28735cbcb9d79bc85f715 Gitweb: https://git.kernel.org/tip/92ead7ee30c80f8852d28735cbcb9d79bc85f715 Author: Ravi Bangoria AuthorDate: Mon, 25 Jun 2018 18:12:20 +0530 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 25 Jun 2018 11:59:37 -0300 perf tools:

Re: [GIT PULL] breakpoint: Rework arch validation v4

2018-06-26 Thread Ingo Molnar
* Frederic Weisbecker wrote: > Ingo, > > Please pull the perf/breakpoint-v4 branch that can be found at: > > git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git > perf/breakpoint-v4 > > HEAD: ba25ee9c7b3ef1543c2a24a7ca6a621433803ee4 > > Only change since v3 is a

Re: [PATCH] mtd: rawnand: mxc: remove __init qualifier from mxcnd_probe_dt

2018-06-26 Thread Miquel Raynal
Hi Martin, Boris, On Fri, 22 Jun 2018 16:50:25 +0200, Martin Kaiser wrote: > mxcnd_probe_dt is called from mxcnd_probe, which is not marked as __init. > I think this line is just a side note and should be at the end of the commit log. > Using the sysfs unbind, bind nodes, mxcnd_probe and mxcn

RE: [PATCH v2 2/2] eeprom: at24: Add support for address-width property

2018-06-26 Thread Chiang, AlanX
Hi Sakari, > -Original Message- > From: Sakari Ailus [mailto:sakari.ai...@linux.intel.com] > Sent: Tuesday, June 26, 2018 2:48 PM > To: Chiang, AlanX > Cc: linux-...@vger.kernel.org; Yeh, Andy ; > Shevchenko, Andriy ; Mani, Rajmohan > ; andy.shevche...@gmail.com; b...@bgdev.pl; > robh...@

Re: [PATCH] x86/mm: Drop unneeded __always_inline for p4d page table helpers

2018-06-26 Thread Ingo Molnar
* Kirill A. Shutemov wrote: > This reverts commits 1ea66554d3b09ce09c42e6a871899c84a276bb39 and > 046c0dbec0238c25b7526c26c9a9687664229ce2. Could you please write out these commits explicitly and both with title, with one commit per line, like you did here: > 51be13351517 ("Revert "x86/mm

[PATCH 4/4 v4] perf stat: Add transaction flag (-T) support for s390

2018-06-26 Thread Thomas Richter
perf stat command line flag -T to display transaction counters is currently supported for x86 only. Add support for s390. It is based on the metrics flag -M transaction using the architecture dependend json files. This requires a metric named "transaction" in the json files for the platform. Intro

Re: [PATCH 1/2] sample/mdev/mbochs: remove mbochs_kmap_atomic_dmabuf

2018-06-26 Thread Alex Williamson
On Mon, 25 Jun 2018 08:44:51 +0200 Gerd Hoffmann wrote: > Atomic mapping interface for dmabufs will be removed. > > Signed-off-by: Gerd Hoffmann Fixes: f664a5269542 ("dma-buf: remove kmap_atomic interface") Though really the above commit needs to be updated to include this fix to preserve bis

Re: [PATCH] x86-64: use 32-bit XOR to zero registers

2018-06-26 Thread Ingo Molnar
* Jan Beulich wrote: > Some Intel CPUs don't recognize 64-bit XORs as zeroing idioms Please write out the consequence of that in the changelog. Thanks, Ingo

Re: [PATCH] x86: modernize sync_bitops.h

2018-06-26 Thread Ingo Molnar
* Jan Beulich wrote: > Add missing insn suffixes and use rmwcc.h just like was (more or less) > recently done for bitops.h as well. > > Signed-off-by: Jan Beulich > --- > arch/x86/include/asm/sync_bitops.h | 34 -- > 1 file changed, 12 insertions(+), 22 dele

Re: Financial Aid

2018-06-26 Thread M. M Fridman
-- I Mikhail Fridman. has selected you specially as one of my beneficiaries for my Charitable Donation, Just as I have declared on May 23, 2016 to give my fortune as charity. Reply as soon as possible with further directives. Best Regards, Mikhail Fridman.

Re: [PATCH] PCI: faraday: add missing of_node_put()

2018-06-26 Thread Linus Walleij
On Sat, Jun 23, 2018 at 5:16 PM Nicholas Mc Guire wrote: > The call to of_get_next_child() returns a node pointer with refcount > incremented thus it must be explicitly decremented here in the error > path and after the last usage. > > Signed-off-by: Nicholas Mc Guire > Fixes: commit d3c68e0a7e

Re: [PATCH] mtd: rawnand: mxc: remove __init qualifier from mxcnd_probe_dt

2018-06-26 Thread Boris Brezillon
On Tue, 26 Jun 2018 09:10:05 +0200 Miquel Raynal wrote: > Hi Martin, Boris, > > On Fri, 22 Jun 2018 16:50:25 +0200, Martin Kaiser > wrote: > > > mxcnd_probe_dt is called from mxcnd_probe, which is not marked as __init. > > > > I think this line is just a side note and should be at the end

[PATCH] fs: disallow empty path in default getname_kernel

2018-06-26 Thread Michael Pratt
getname and getname_flags return ENOENT for an empty path in the common case (without LOOKUP_EMPTY). However, getname_kernel currently allows empty paths in all cases, which can lead to surprising behavior in code that does not perform its own empty path check. For example, if you attempt to exec

Re: [PATCH] x86: modernize sync_bitops.h

2018-06-26 Thread Jan Beulich
>>> On 26.06.18 at 09:18, wrote: > * Jan Beulich wrote: > >> Add missing insn suffixes and use rmwcc.h just like was (more or less) >> recently done for bitops.h as well. >> >> Signed-off-by: Jan Beulich >> --- >> arch/x86/include/asm/sync_bitops.h | 34 -- >>

Re: [PATCH v2 2/2] eeprom: at24: Add support for address-width property

2018-06-26 Thread Sakari Ailus
On Tue, Jun 26, 2018 at 07:11:54AM +, Chiang, AlanX wrote: > Hi Sakari, > > > -Original Message- > > From: Sakari Ailus [mailto:sakari.ai...@linux.intel.com] > > Sent: Tuesday, June 26, 2018 2:48 PM > > To: Chiang, AlanX > > Cc: linux-...@vger.kernel.org; Yeh, Andy ; > > Shevchenko, A

Re: [12/24] proc: Add fs_context support to procfs [ver #7]

2018-06-26 Thread Andrei Vagin
On Mon, Jun 25, 2018 at 11:13:20PM -0700, Andrei Vagin wrote: > On Mon, Jun 18, 2018 at 08:34:50PM -0700, Andrei Vagin wrote: > > Hi David, > > > > We run CRIU tests for vfs/for-next, and today a few of these test failed. I > > found that the problem appears after this patch.. > > > > > int pid_

[PATCH v3] arch/x86: get rid of KERN_CONT in show_fault_oops()

2018-06-26 Thread Dmitry Vyukov
From: Dmitry Vyukov KERN_CONT leads to split lines in kernel output and complicates useful changes to printk like printing context before each line. Only acceptable use of continuations is basically boot-time testing. Get rid of it. Also tidy up code around as asked by reviewers. Signed-off-b

Re: [PATCH v2] arch/x86: get rid of KERN_CONT in show_fault_oops()

2018-06-26 Thread Dmitry Vyukov
On Mon, Jun 25, 2018 at 5:03 PM, Joe Perches wrote: > On Mon, 2018-06-25 at 14:38 +0200, Dmitry Vyukov wrote: >> From: Dmitry Vyukov >> >> KERN_CONT leads to split lines in kernel output >> and complicates useful changes to printk like >> printing context before each line. >> >> Only acceptable u

Re: [PATCH v2 0/3] Add STM32 RTC to stm32mp157c

2018-06-26 Thread Alexandre Torgue
Hi Amélie, On 05/17/2018 02:07 PM, Amelie Delaunay wrote: This series adds support for STM32 RTC to stm32mp157c SoC and enables it on stm32mp157c-ed1 board. --- Changes in v2: * Enable STM32 RTC in multi_v7_defconfig Amelie Delaunay (3): ARM: dts: stm32: add RTC support to stm32mp157c AR

Re: Add system timer driver for Mediatek SoCs

2018-06-26 Thread Daniel Lezcano
On 25/06/2018 11:07, Stanley Chu wrote: > On Mon, 2018-06-25 at 09:34 +0200, Daniel Lezcano wrote: >> On 25/06/2018 09:09, Stanley Chu wrote: >>> This patch adds a new driver for system timer on the Mediatek SoCs. >> >> Please elaborate why we need yet another timer. >> >> Is this timer present on

Re: [PATCH] RFC: siox: don't create a thread without starting it

2018-06-26 Thread Peter Zijlstra
On Mon, Jun 25, 2018 at 09:21:21PM +0200, Uwe Kleine-König wrote: > > > So I wonder where the real problem is and how it can be fixed. > > > > Without the first wakeup, the kthread will not run the provided function > > and we can therefore argue the creation is incomplete. I really feel you > > s

Re: [PATCH 2/2] sample/mdev/mbochs: add mbochs_kunmap_dmabuf

2018-06-26 Thread Gerd Hoffmann
> > .map = mbochs_kmap_dmabuf, > > + .unmap= mbochs_kunmap_dmabuf, > > .mmap = mbochs_mmap_dmabuf, > > }; > > > > Is this a fix for v4.18? Yes. > AFAICT, the kmap_atomic removal is only in > next, not yet upstream and hopefully includes this samp

Re: [PATCH] w1: Allow compile test of GPIO consumers if !GPIOLIB

2018-06-26 Thread Linus Walleij
On Thu, Jun 21, 2018 at 8:54 PM Geert Uytterhoeven wrote: > The GPIO subsystem provides dummy GPIO consumer functions if GPIOLIB is > not enabled. Hence drivers that depend on GPIOLIB, but use GPIO consumer > functionality only, can still be compiled if GPIOLIB is not enabled. > > Relax the depen

Re: [PATCH] w1: Allow compile test of GPIO consumers if !GPIOLIB

2018-06-26 Thread Geert Uytterhoeven
Hi Linus, On Tue, Jun 26, 2018 at 9:34 AM Linus Walleij wrote: > On Thu, Jun 21, 2018 at 8:54 PM Geert Uytterhoeven > wrote: > > The GPIO subsystem provides dummy GPIO consumer functions if GPIOLIB is > > not enabled. Hence drivers that depend on GPIOLIB, but use GPIO consumer > > functionality

Re: [PATCH] mtd: rawnand: mxc: remove __init qualifier from mxcnd_probe_dt

2018-06-26 Thread Miquel Raynal
Hi Boris, On Tue, 26 Jun 2018 09:24:13 +0200, Boris Brezillon wrote: > On Tue, 26 Jun 2018 09:10:05 +0200 > Miquel Raynal wrote: > > > Hi Martin, Boris, > > > > On Fri, 22 Jun 2018 16:50:25 +0200, Martin Kaiser > > wrote: > > > > > mxcnd_probe_dt is called from mxcnd_probe, which is not m

Re: [PATCH] RFC: siox: don't create a thread without starting it

2018-06-26 Thread Peter Zijlstra
On Mon, Jun 25, 2018 at 09:21:21PM +0200, Uwe Kleine-König wrote: > > That said, irrespective of the whole UNINTERRUPTIBLE/IDLE thing, I find > > this construct fairly fragile. We rely on not getting any spurious > > wakeups without a 'special' state. > > Well, if the thread is woken up unintentio

Re: [PATCH] RFC: siox: don't create a thread without starting it

2018-06-26 Thread Peter Zijlstra
On Mon, Jun 25, 2018 at 09:21:21PM +0200, Uwe Kleine-König wrote: > > I don't think so, that patch has an issue with INTERRUPTIBLE, but IDLE > > very much doesn't allow signals like INTERRUPTIBLE does. > > I don't think I can provide a good commit log for > s/TASK_UNINTERRUPTIBLE/TASK_IDLE/ in ker

Re: [PATCH] x86/mm: don't free p4d table when it is folded at runtime.

2018-06-26 Thread Baoquan He
Hi Kirill, On 06/25/18 at 02:50pm, Kirill A. Shutemov wrote: > On Mon, Jun 25, 2018 at 01:24:27PM +0300, Andrey Ryabinin wrote: > > When the p4d page table layer is folded at runtime, the p4d_free() > > should do nothing, the same as in . > > > > It seems this bug should cause double-free in efi_

[PATCH] ARM64: dts: meson-gxbb-nanopi-k2: Add HDMI, CEC and CVBS nodes

2018-06-26 Thread Neil Armstrong
The Amlogic Meson GXBB based Nanopi-K2 board has an HDMI connector with CEC and CVBS available on the 40pin header. This patch adds the nodes to enable HDMI, CEC and CVBS functionnalities. Signed-off-by: Neil Armstrong --- .../boot/dts/amlogic/meson-gxbb-nanopi-k2.dts | 48 +

Re: [PATCH v2 0/2] Add a property in at24.c

2018-06-26 Thread Bartosz Golaszewski
2018-06-26 8:22 GMT+02:00 : > From: "alanx.chiang" > > In at24.c, it uses 8-bit addressing by default. In this patch, > add a property address-width that provides a flexible method to > pass the information to the driver. > > alanx.chiang (2): > dt-bindings: at24: Add address-width property >

Re: [PATCH 2/2] clocksource/drivers/mtk_systimer: Add support for Mediatek SoCs

2018-06-26 Thread Daniel Lezcano
On 25/06/2018 09:10, Stanley Chu wrote: > This patch adds a new clock event for the timer > found on the Mediatek SoCs. > > The Mediatek System Timer has several 32-bit timers. > Only one timer is used by this driver as a clock event > supporting oneshot events. > > The System Timer can be run wi

Re: [RFC v2 PATCH 2/2] mm: mmap: zap pages with read mmap_sem for large mapping

2018-06-26 Thread Peter Zijlstra
On Mon, Jun 25, 2018 at 05:06:23PM -0700, Yang Shi wrote: > By looking this deeper, we may not be able to cover all the unmapping range > for VM_DEAD, for example, if the start addr is in the middle of a vma. We > can't set VM_DEAD to that vma since that would trigger SIGSEGV for still > mapped are

Re: [PATCH] w1: Allow compile test of GPIO consumers if !GPIOLIB

2018-06-26 Thread Linus Walleij
On Thu, Jun 21, 2018 at 8:54 PM Geert Uytterhoeven wrote: > The GPIO subsystem provides dummy GPIO consumer functions if GPIOLIB is > not enabled. Hence drivers that depend on GPIOLIB, but use GPIO consumer > functionality only, can still be compiled if GPIOLIB is not enabled. > > Relax the depen

Re: [PATCH 2/2] mm: set PG_dma_pinned on get_user_pages*()

2018-06-26 Thread Jan Kara
On Mon 25-06-18 12:03:37, John Hubbard wrote: > On 06/25/2018 08:21 AM, Jan Kara wrote: > > On Thu 21-06-18 18:30:36, Jan Kara wrote: > >> On Wed 20-06-18 15:55:41, John Hubbard wrote: > >>> On 06/20/2018 05:08 AM, Jan Kara wrote: > On Tue 19-06-18 11:11:48, John Hubbard wrote: > > On 06/1

Re: [PATCH v2 2/2] arm64: dts: mediatek: add mt6765 support

2018-06-26 Thread Marc Zyngier
On Tue, 26 Jun 2018 03:04:06 +0100, Mars Cheng wrote: > > This adds basic chip support for MT6765 SoC. > > Signed-off-by: Mars Cheng > --- > arch/arm64/boot/dts/mediatek/Makefile |1 + > arch/arm64/boot/dts/mediatek/mt6765-evb.dts | 33 ++ > arch/arm64/boot/dts/mediatek/mt6765.

Re: [PATCH v6 1/4] mfd: bd71837: mfd driver for ROHM BD71837 PMIC

2018-06-26 Thread Linus Walleij
On Fri, Jun 15, 2018 at 3:29 PM Matti Vaittinen wrote: > ROHM BD71837 PMIC MFD driver providing interrupts and support > for two subsystems: > - clk > - Regulators > > Signed-off-by: Matti Vaittinen This looks like a clean and nice MFD core driver to me. Reviewed-by: Linus Walleij Yours, Linu

Re: [PATCH v1 1/4] PCI: shpchp: Manage SHPC unconditionally on non-ACPI systems

2018-06-26 Thread Marc Zyngier
On 25/06/18 23:59, Bjorn Helgaas wrote: > From: Bjorn Helgaas > > If acpi_pci_find_root() returns NULL, it means there's no ACPI host bridge > device (PNP0A03 or PNP0A08), and the OS is always allowed to manage the > SHPC, so return success in that case. > > This fixes a NULL pointer dereference

Re: moving affs + RDB partition support to staging?

2018-06-26 Thread Martin Steigerwald
Michael. Michael Schmitz - 26.06.18, 04:23: > Joanne, > > Martin's boot log (including your patch) says: > > Jun 19 21:19:09 merkaba kernel: [ 7891.843284] sdb: RDSK (512) sdb1 > (LNX^@)(res 2 spb 1) sdb2 (JXF^D)(res 2 spb 1) sdb3 (DOS^C)(res 2 spb > 4) > Jun 19 21:19:09 merkaba kernel: [ 7891.

Re: Add system timer driver for Mediatek SoCs

2018-06-26 Thread Stanley Chu
On Tue, 2018-06-26 at 09:31 +0200, Daniel Lezcano wrote: > On 25/06/2018 11:07, Stanley Chu wrote: > > On Mon, 2018-06-25 at 09:34 +0200, Daniel Lezcano wrote: > >> On 25/06/2018 09:09, Stanley Chu wrote: > >>> This patch adds a new driver for system timer on the Mediatek SoCs. > >> > >> Please ela

Re: [PATCH] mfd: as3722: disable auto power on when AC OK

2018-06-26 Thread Stefan Agner
On 25.06.2018 10:00, Marcel Ziswiler wrote: > From: Marcel Ziswiler > > On ams AS3722, power on when AC OK is enabled by default. > Making this option as disable by default and enable only > when platform need this explicitly. > > Signed-off-by: Laxman Dewangan > Reviewed-by: Bibek Basu > Test

Re: [PATCH v2 4/4] staging: rtl8723bs: use mac_pton() in rtw_macaddr_cfg()

2018-06-26 Thread Michael Straube
On 06/25/18 17:12, Michael Straube wrote: + } else{ + /* Use the mac address stored in the Efuse */ ether_addr_copy(mac, mac_addr); } } else { I'll resend the series with this corrected. Regards, Michael

Re: [PATCH] ARM64: dts: meson-axg: fix ethernet stability issue

2018-06-26 Thread Neil Armstrong
On 25/06/2018 14:56, Jerome Brunet wrote: > Like the odroid-c2 and wetek, the s400 uses the RTL8211F and seems to > suffer from the kind of stability issue. > > Doing an iperf3 download test, we can see a significant number of LPI > interrupts on the tx path. After a short while (5 to 15 seconds),

Re: [PATCH 2/2] clk: meson: remove unused clk-audio-divider driver

2018-06-26 Thread Neil Armstrong
On 20/06/2018 12:06, Jerome Brunet wrote: > clk-audio-divider is no longer used, we can remove it. > > Signed-off-by: Jerome Brunet > --- > drivers/clk/meson/Makefile| 2 +- > drivers/clk/meson/clk-audio-divider.c | 110 > -- > drivers/clk/meson/clk

Re: [PATCH 1/2] clk: meson: stop rate propagation for audio clocks

2018-06-26 Thread Neil Armstrong
On 20/06/2018 12:06, Jerome Brunet wrote: > It is actually a lot easier to setup the PLL with carefully chosen rates > than relying on CCF clock propagation for this audio use case. > This way, we can make sure we will always be able to provide the common > audio clock rates, while having the PLL i

Re: [PATCH v2 3/6] ARM: trusted_foundations: do not use naked function

2018-06-26 Thread Stefan Agner
On 17.04.2018 10:11, Thierry Reding wrote: > On Mon, Apr 16, 2018 at 08:21:09PM +0200, Stefan Agner wrote: >> On 16.04.2018 18:08, Stephen Warren wrote: >> > On 04/16/2018 09:56 AM, Stefan Agner wrote: >> >> On 27.03.2018 14:16, Dmitry Osipenko wrote: >> >>> On 27.03.2018 14:54, Robin Murphy wrote:

Re: moving affs + RDB partition support to staging?

2018-06-26 Thread Martin Steigerwald
Joanne. jdow - 26.06.18, 07:17: > As long as it preserves compatibility it should be OK, I suppose. > Personally I'd make any partitioning tool front end gently force the > block size towards 8k as the disk size gets larger. The file systems > may also run into 2TB issues that are not obvious. An

Re: [PATCH v5 4/4] clk: bd71837: Add driver for BD71837 PMIC clock

2018-06-26 Thread Matti Vaittinen
Hello Stephen, Rob and all others Thanks again Stephen. I appreciate your help. And just to help you sorting your inbox a bit - I have written patch series v6 and v7 before receiving these comments. I will write v8 after I get some further input from you and Rob on how to solve the issue with havi

[PATCH v3 4/4] staging: rtl8723bs: use mac_pton() in rtw_macaddr_cfg()

2018-06-26 Thread Michael Straube
Use the mac_pton() helper to convert the mac address string. The functions key_char2num() and key_2char2num() are not used anywhere else and can be removed. This also has the benefit of validating the input since mac_pton() returns false if the string is not valid. Signed-off-by: Michael Straube

[PATCH v4 3/3] MAINTAINERS: add USB CCID Gadget Device

2018-06-26 Thread Marcus Folkesson
Add MAINTAINERS entry for USB CCID Gadget Device Signed-off-by: Marcus Folkesson --- Notes: v4: - No changes v3: - No changes v2: - No changes MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 078fd80f664

[PATCH v3 3/4] staging: rtl8723bs: use ether_addr_copy() in rtw_macaddr_cfg()

2018-06-26 Thread Michael Straube
Use ether_addr_copy() instead of memcpy() to copy the mac address. Signed-off-by: Michael Straube --- drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_ieee80211.c b/drivers/staging/rtl8723

[PATCH v4 2/3] Documentation: usb: add documentation for USB CCID Gadget Device

2018-06-26 Thread Marcus Folkesson
Add documentation to give a brief description on how to use the CCID Gadget Device. This includes a description for all attributes followed by an example on how to setup the device with ConfigFS. Reviewed-by: Randy Dunlap Signed-off-by: Marcus Folkesson --- Notes: v4: - clarify how

[PATCH v3 1/4] staging: rtl8723bs: fix comparsion to NULL - coding style

2018-06-26 Thread Michael Straube
Fix comparsion to NULL issues found by checkpatch. Use !x instead of x == NULL. Signed-off-by: Michael Straube --- drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_ieee80211.c b/drivers/stag

[PATCH v3 2/4] staging: rtl8723bs: refactor rtw_macaddr_cfg()

2018-06-26 Thread Michael Straube
Using is_broadcast_ether_addr() and is_zero_ether_addr() instead of testing each byte of the mac[] array for 0xff and 0x00 shortens the code and improves readability. If np == NULL, of_get_property() returns NULL, hence the "np" check is not needed. Instead of a fixed default mac address use a ra

RE: [PATCH v3 00/13] remoteproc: add fixed memory region support

2018-06-26 Thread Loic PALLARDY
Hi Anup, Sorry busy on ST internal stuff. I'll send V4 integrating Bjorn's comments in the coming days. Regards, Loic > -Original Message- > From: Anup Patel [mailto:a...@brainfault.org] > Sent: Monday, June 25, 2018 5:23 AM > To: Loic PALLARDY ; Bjorn Andersson > > Cc: Ohad Ben-Cohen

Re: [PATCH v4 0/5] Have IMA find and use a tpm_chip until system shutdown

2018-06-26 Thread Jarkko Sakkinen
On Mon, 2018-06-25 at 06:43 -0400, Stefan Berger wrote: > This series of patches converts IMA's usage of the tpm_chip to find a TPM > chip initially and use it until the machine is shut down. To do this we need > to introduce a kref for the tpm_chip that IMA and all other users of a > tpm_chip hold

Re: [PATCH v4 0/5] Have IMA find and use a tpm_chip until system shutdown

2018-06-26 Thread Jarkko Sakkinen
On Tue, 2018-06-26 at 11:19 +0300, Jarkko Sakkinen wrote: > On Mon, 2018-06-25 at 06:43 -0400, Stefan Berger wrote: > > This series of patches converts IMA's usage of the tpm_chip to find a TPM > > chip initially and use it until the machine is shut down. To do this we need > > to introduce a kref

Re: [PATCH v4 0/5] Have IMA find and use a tpm_chip until system shutdown

2018-06-26 Thread Jarkko Sakkinen
On Tue, 2018-06-26 at 11:20 +0300, Jarkko Sakkinen wrote: > On Tue, 2018-06-26 at 11:19 +0300, Jarkko Sakkinen wrote: > > On Mon, 2018-06-25 at 06:43 -0400, Stefan Berger wrote: > > > This series of patches converts IMA's usage of the tpm_chip to find a TPM > > > chip initially and use it until the

[PATCH v3] net: ethernet: stmmac: dwmac-rk: Add GMAC support for px30

2018-06-26 Thread David Wu
Add constants and callback functions for the dwmac on px30 Soc. The base structure is the same, but registers and the bits in them are moved slightly, and add the clk_mac_speed for selecting mac speed. Signed-off-by: David Wu --- Change in v3: - Add the clock enable/disable for clk_mac_speed. Ch

Re: [PATCH v7] tpm: separate cmd_ready/go_idle from runtime_pm

2018-06-26 Thread Jarkko Sakkinen
On Mon, 2018-06-25 at 18:50 +, Winkler, Tomas wrote: > > > > On Sun, 2018-06-24 at 23:52 +0300, Tomas Winkler wrote: > > > Fix tpm ptt initialization error: > > > tpm tpm0: A TPM error (378) occurred get tpm pcr allocation. > > > > > > We cannot use go_idle cmd_ready commands via runtime_pm h

Re: Fwd: [Bug 199879] New: Very basic the Pci device is not resumed from suspend mode

2018-06-26 Thread Rafael J. Wysocki
On Tue, Jun 26, 2018 at 1:26 AM, Bjorn Helgaas wrote: > [+cc Rafael, Huang, Martin] > > On Wed, Jun 20, 2018 at 04:13:49PM -0500, Bjorn Helgaas wrote: >> [+to Rafal] >> >> Sorry, I'm an idiot and forgot to include Rafal, the submitter, when I >> forwarded this report to the mailing lists. >> >> I

Re: [PATCH 1/9] clk: davinci: psc-dm365: use two lookup entries for the aemif clock

2018-06-26 Thread Bartosz Golaszewski
2018-06-25 18:06 GMT+02:00 David Lechner : > On 06/25/2018 11:01 AM, Bartosz Golaszewski wrote: >> >> 2018-06-25 17:53 GMT+02:00 David Lechner : >>> >>> On 06/25/2018 10:29 AM, Bartosz Golaszewski wrote: From: Bartosz Golaszewski We want to be able to get the clock both fr

Re: [RESEND PATCH v12 2/2] sched/rt: Add support for SD_PREFER_SIBLING on find_lowest_rq()

2018-06-26 Thread Byungchul Park
On Tue, Jun 19, 2018 at 02:16:36PM +0900, Byungchul Park wrote: > On Tue, Jun 19, 2018 at 6:42 AM, Steven Rostedt wrote: > > On Mon, 18 Jun 2018 13:58:09 +0900 > > Byungchul Park wrote: > > > >> Hello Steven, > >> > >> I've changed the code a little bit to avoid a compile warning caused by > >> '

Re: moving affs + RDB partition support to staging?

2018-06-26 Thread Michael Schmitz
Joanne, I think we all agree that doing 32 bit calculations on 512-byte block addresses that overflow on disks 2 TB and larger is a bug, causing the issues Martin reported. Your patch addresses that by using the correct data type for the calculations (as do other partition parsers that may have to

Re: moving affs + RDB partition support to staging?

2018-06-26 Thread Michael Schmitz
Hi Martin, Am 26.06.18 um 20:02 schrieb Martin Steigerwald: > Michael. > > Michael Schmitz - 26.06.18, 04:23: >> Joanne, >> >> Martin's boot log (including your patch) says: >> >> Jun 19 21:19:09 merkaba kernel: [ 7891.843284] sdb: RDSK (512) sdb1 >> (LNX^@)(res 2 spb 1) sdb2 (JXF^D)(res 2 spb 1

Re: [intel-sgx-kernel-dev] [PATCH v11 13/13] intel_sgx: in-kernel launch enclave

2018-06-26 Thread Jarkko Sakkinen
On Mon, 2018-06-25 at 08:45 -0700, Andy Lutomirski wrote: > I'm personally rather strongly in favor of the vastly simpler model in > which we first merge SGX without LE support at all. Instead we use > the approach where we just twiddle the MSRs to launch normal enclaves > without an init token at

Re: [PATCH 3/3] ARM: multi_v7_defconfig: enable STM32 SPI

2018-06-26 Thread Alexandre Torgue
Hi Amélie On 05/17/2018 04:21 PM, Amelie Delaunay wrote: Enable the STM32 SPI driver, implemented on STM32MP1 SoC. Signed-off-by: Amelie Delaunay --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/confi

Re: [PATCH v3 0/3] fix free pmd/pte page handlings on x86

2018-06-26 Thread Thomas Gleixner
On Tue, 26 Jun 2018, Michal Hocko wrote: > On Mon 25-06-18 21:15:03, Kani Toshimitsu wrote: > > Lastly, for the code maintenance, I believe this memory allocation keeps > > the code much simpler than it would otherwise need to manage a special > > page list. > > Yes, I can see a simplicity as a re

Re: [PATCH] ARM: dts: stm32: enable USB Host (USBH) EHCI controller on stm32mp157c-ev1

2018-06-26 Thread Alexandre Torgue
Hi Amélie, On 05/17/2018 04:36 PM, Amelie Delaunay wrote: This patch enables USB Host (USBH) EHCI controller on stm32mp157c-ev1. As a hub is used between USBH and USB connectors, no need to enable USBH OHCI controller: all low- and full-speed traffic is managed by the hub. Signed-off-by: Amelie

Re: [PATCH v3 0/3] fix free pmd/pte page handlings on x86

2018-06-26 Thread Michal Hocko
On Tue 26-06-18 10:45:11, Thomas Gleixner wrote: > On Tue, 26 Jun 2018, Michal Hocko wrote: > > On Mon 25-06-18 21:15:03, Kani Toshimitsu wrote: > > > Lastly, for the code maintenance, I believe this memory allocation keeps > > > the code much simpler than it would otherwise need to manage a specia

Re: [12/24] proc: Add fs_context support to procfs [ver #7]

2018-06-26 Thread David Howells
Andrei Vagin wrote: > > > > - mnt = kern_mount_data(&proc_fs_type, ns, 0); > > > > Here ns->user_ns and get_current_cred()->user_ns are not always equal > > What do you think about the attached patch? > ... > - fc = vfs_new_fs_context(&proc_fs_type, NULL, 0, > -

Re: [PATCH 03/11] spi: Add a driver for the Freescale/NXP QuadSPI controller

2018-06-26 Thread Frieder Schrempf
Hi Boris, hi Yogesh, first, thank you for testing and debugging the new driver. On 19.06.2018 10:46, Boris Brezillon wrote: On Tue, 19 Jun 2018 08:31:25 + Yogesh Narayan Gaur wrote: [...] On Tue, 19 Jun 2018 07:10:37 + Yogesh Narayan Gaur wrote: Let us take below layout of me

Re: ACPI support in common clock framework

2018-06-26 Thread Srinath Mannam
Hi Rafael, Stephen, Thank you so much for detailed inputs. In our platform, all HW clocks are accessed (enable/disable/set rate) in Linux through common clock framework (drivers/clk/) using clock nodes exported by device tree. To manage our HW clocks operations (enable/disable/set rate) we have d

Re: [PATCH v1] ARM: multi_v7_defconfig: enable STM32 DMAv2, DMAMUX and MDMA

2018-06-26 Thread Alexandre Torgue
Hi, Pierre-Yves On 05/28/2018 11:08 AM, Pierre-Yves MORDRET wrote: This enables drivers for STM32: - DMAv2 - DMMAUX - MDMA Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial --- --- arch/arm/configs/multi_v7_defconfig | 3 +++ 1 file changed, 3 ins

[next-20180601][nvme][ppc] Kernel Oops is triggered when creating lvm snapshots on nvme disks

2018-06-26 Thread Abdul Haleem
Greeting's Kernel Oops is seen on 4.17.0-rc7-next-20180601 kernel on a bare-metal machine when running lvm snapshot tests on nvme disks. Machine Type: Power 8 bare-metal kernel : 4.17.0-rc7-next-20180601 test: $ pvcreate -y /dev/nvme0n1 $ vgcreate avocado_vg /dev/nvme0n1 $ lvcreate --size 1.4T

Re: [PATCH v12 10/11] sched: early boot clock

2018-06-26 Thread Peter Zijlstra
On Mon, Jun 25, 2018 at 03:23:20PM -0400, Pavel Tatashin wrote: > Unfortunatly the above suggestion won't work. And here is why. > > We have a call sequence like this: > > start_kernel > sched_init() > sched_clock_init() >In this call sched_clock_running is set to 1. Which

Re: [RFC PATCH 06/16] x86/split_lock: Save #AC setting for split lock in firmware in boot time and restore the setting in reboot

2018-06-26 Thread Peter Zijlstra
On Fri, Jun 22, 2018 at 04:11:07PM +0100, Alan Cox wrote: > On Thu, 2018-06-21 at 21:58 +0200, Peter Zijlstra wrote: > > On Sun, May 27, 2018 at 08:45:55AM -0700, Fenghua Yu wrote: > > > Firmware may contain split locked instructions. > > > > I think that's the wrong attitude. You should mandate i

Re: [PATCH v7 1/4] mfd: bd71837: mfd driver for ROHM BD71837 PMIC

2018-06-26 Thread Enric Balletbo Serra
Hi Matti, Thanks for the patch, a few comments below, some are feedback I received when I sent some patches to this subsystem. Missatge de Matti Vaittinen del dia dt., 19 de juny 2018 a les 12:57: > > ROHM BD71837 PMIC MFD driver providing interrupts and support > for two subsystems: > - clk > -

Re: [PATCH v2] kvm: x86: mmu: Add cast to negated bitmasks in update_permission_bitmask()

2018-06-26 Thread Paolo Bonzini
On 25/06/2018 19:35, Matthias Kaehlcke wrote: > commit e2a5dca753d1cdc3212519023ed8a13e13f5495b > Author: Borislav Petkov > Date: Thu Nov 23 10:19:51 2017 +0100 > > x86/umip: Fix insn_get_code_seg_params()'s return value So this is the closest thing to a bug (it could have been a real bug

[PATCH v2 07/12] ASoC: qdsp6: q6afe-dai: support dt based module loading

2018-06-26 Thread Srinivas Kandagatla
This patch uses new compatible string to make DT based module loading work. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/qdsp6/q6afe-dai.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/sound/soc/qcom/qdsp6/q6afe-dai.c b/sound/soc/qcom/qdsp6/q6afe-dai.c index 5002dd05bf27..1

[PATCH v2 01/12] ASoC: q6adm: dt-bindings: add compatible string to routing

2018-06-26 Thread Srinivas Kandagatla
Add compatible string to routing so that it can support DT based module autoloading. Signed-off-by: Srinivas Kandagatla Acked-by: Niklas Cassel --- Documentation/devicetree/bindings/sound/qcom,q6adm.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/

[PATCH v2 05/12] ASoC: qdsp6: q6asm: use of_platform_populate/depopulate()

2018-06-26 Thread Srinivas Kandagatla
Now that the child nodes have there own compatible strings, Use of_platform_populate/depopulate() instead of less common of_platform_device_create()/destroy(). Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/qdsp6/q6asm.c | 16 ++-- 1 file changed, 2 insertions(+), 14 deletions

[PATCH v2 11/12] ASoC: qdsp6: q6routing: add proper error check

2018-06-26 Thread Srinivas Kandagatla
q6adm_open can return error pointer or a null in error cases. Fix the return handling. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/qdsp6/q6routing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/qcom/qdsp6/q6routing.c b/sound/soc/qcom/qdsp6/q6routing.c i

[PATCH v2 12/12] ASoC: qdsp6: q6asm: remove unused struct q6asm member

2018-06-26 Thread Srinivas Kandagatla
pcmdev in struct q6asm seems be left over and unused, so just remove it. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/qdsp6/q6asm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/qcom/qdsp6/q6asm.c b/sound/soc/qcom/qdsp6/q6asm.c index c4fd28f168d5..2b2c7233bb5f 100644 ---

[PATCH v2 06/12] ASoC: qdsp6: q6afe: use of_platform_populate/depopulate()

2018-06-26 Thread Srinivas Kandagatla
Now that the child nodes have there own compatible strings, Use of_platform_populate/depopulate() instead of less common of_platform_device_create()/destroy(). Signed-off-by: Srinivas Kandagatla Acked-by: Niklas Cassel --- sound/soc/qcom/qdsp6/q6afe.c | 16 ++-- 1 file changed, 2 in

[PATCH v2 10/12] ASoC: qcom: apq8096: remove redundant owner assignment

2018-06-26 Thread Srinivas Kandagatla
module owner is already set in platform_driver_register(), so remove this redundant assignment. Signed-off-by: Srinivas Kandagatla Acked-by: Niklas Cassel --- sound/soc/qcom/apq8096.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/qcom/apq8096.c b/sound/soc/qcom/apq8096.c index 56

[PATCH v2 08/12] ASoC: qdsp6: q6asm-dai: support dt based module loading

2018-06-26 Thread Srinivas Kandagatla
This patch uses new compatible string to make DT based module loading work. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/qdsp6/q6asm-dai.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/sound/soc/qcom/qdsp6/q6asm-dai.c b/sound/soc/qcom/qdsp6/q6asm-dai.c index 349c6a883c63..1

[PATCH v2 09/12] ASoC: qdsp6: q6routing: support dt based module loading

2018-06-26 Thread Srinivas Kandagatla
This patch uses new compatible string to make DT based module loading work. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/qdsp6/q6routing.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/sound/soc/qcom/qdsp6/q6routing.c b/sound/soc/qcom/qdsp6/q6routing.c index 593f66b8622f..a

[PATCH v2 04/12] ASoC: qdsp6: q6adm: use of_platform_populate/depopulate()

2018-06-26 Thread Srinivas Kandagatla
Now that the child nodes have there own compatible strings, Use of_platform_populate/depopulate() instead of less common of_platform_device_create()/destroy(). Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/qdsp6/q6adm.c | 16 ++-- 1 file changed, 2 insertions(+), 14 deletions

[PATCH v2 03/12] ASoC: q6afe: dt-bindings: add compatible string to dais

2018-06-26 Thread Srinivas Kandagatla
Add compatible string to dais so that it can support DT based module autoloading. Signed-off-by: Srinivas Kandagatla --- Documentation/devicetree/bindings/sound/qcom,q6afe.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/qcom,q6afe.txt b/Docu

[PATCH v2 02/13] clk: davinci: psc-dm365: use two lookup entries for the aemif clock

2018-06-26 Thread Bartosz Golaszewski
From: Bartosz Golaszewski We want to be able to get the clock both from the board file by its con_id and from the aemif driver by dev_id. Signed-off-by: Bartosz Golaszewski --- drivers/clk/davinci/psc-dm365.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clk/dav

[PATCH v2 05/13] clk: davinci: psc-da830: add a lookup entry for aemif clock

2018-06-26 Thread Bartosz Golaszewski
From: Bartosz Golaszewski We want to use the ti-aemif platform driver for da830-evm. To make it work we need a lookup entry for the aemif clock. Signed-off-by: Bartosz Golaszewski --- drivers/clk/davinci/psc-da830.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/

[PATCH v2 13/13] ARM: davinci: unduplicate aemif support

2018-06-26 Thread Bartosz Golaszewski
From: Bartosz Golaszewski All users now register platform devices using the ti-aemif driver. Remove the handcrafted aemif API. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/Makefile| 2 +- arch/arm/mach-davinci/aemif.c | 218 --

[PATCH v2 08/13] ARM: davinci: dm365-evm: use the ti-aemif soc driver

2018-06-26 Thread Bartosz Golaszewski
From: Bartosz Golaszewski We now support board files in the aemif driver. Register a platform device instead of using the handcrafted API in dm365-evm. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/board-dm365-evm.c | 59 +++-- 1 file changed, 46 insertions(+

[PATCH v2 07/13] ARM: davinci: da850-evm: use aemif platform driver in legacy mode

2018-06-26 Thread Bartosz Golaszewski
From: Bartosz Golaszewski We now support board files in the aemif driver. Register a platform device instead of using the handcrafted API in da850-evm. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/board-da850-evm.c | 93 ++--- 1 file changed, 51 insertions(+

[PATCH v2 10/13] ARM: davinci: da830-evm: use aemif platform driver

2018-06-26 Thread Bartosz Golaszewski
From: Bartosz Golaszewski We now support board files in the aemif driver. Register a platform device instead of using the handcrafted API in da830-evm. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/board-da830-evm.c | 56 +++-- 1 file changed, 44 insertions(+

[PATCH v2 11/13] ARM: davinci: dm646x-evm: use aemif platform driver

2018-06-26 Thread Bartosz Golaszewski
From: Bartosz Golaszewski We now support board files in the aemif driver. Register a platform device instead of using the handcrafted API in dm646x-evm. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/board-dm646x-evm.c | 52 +++- 1 file changed, 41 insertions(

[PATCH v2 09/13] ARM: davinci: dm644x-evm: use aemif platform driver

2018-06-26 Thread Bartosz Golaszewski
From: Bartosz Golaszewski We now support board files in the aemif driver. Register a platform device instead of using the handcrafted API in dm644x-evm. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/board-dm644x-evm.c | 55 ++-- 1 file changed, 42 insertions(

  1   2   3   4   5   6   7   8   >