Re: [PATCH] usb: xhci: remove the code build warning

2018-06-05 Thread gengdongjiu
On 2018/6/5 16:40, Greg KH wrote: > On Wed, Jun 06, 2018 at 12:35:00AM +0800, Dongjiu Geng wrote: >> Initialize the 'err' variate to remove the build warning, >> the warning is shown as below: >> >> drivers/usb/host/xhci-tegra.c: In function ‘tegra_xusb_mbox_thread’: >>

Re: [PATCH RESEND] pwm: berlin: Don't use broken prescaler values

2018-06-05 Thread Thierry Reding
On Mon, Jun 04, 2018 at 02:32:41PM -0400, Thomas Hebb wrote: > Six of the eight prescaler values available for Berlin PWM are not true > prescalers but rather internal shifts that throw away the high bits of > TCNT. Currently, we attempt to use those high bits, leading to erratic > behavior.

Re: [PATCH 1/2] platform/x86: asus-wmi: Call new led hw_changed API on kbd brightness change

2018-06-05 Thread Bastien Nocera
On Tue, 2018-06-05 at 12:05 +0200, Hans de Goede wrote: > Hi, > > On 05-06-18 11:58, Bastien Nocera wrote: > > On Tue, 2018-06-05 at 09:37 +0200, Hans de Goede wrote: > > > Hi, > > > > > > On 05-06-18 05:18, Chris Chiu wrote: > > > > On Tue, Jun 5, 2018 at 10:31 AM, Darren Hart > > > org> > > >

Re: [PATCH V5] powercap/drivers/idle_injection: Add an idle injection framework

2018-06-05 Thread Viresh Kumar
On 05-06-18, 11:16, Daniel Lezcano wrote: > diff --git a/drivers/powercap/idle_injection.c > b/drivers/powercap/idle_injection.c > +/** > + * idle_injection_wakeup - Wake up all idle injection threads > + * @ii_dev: the idle injection device > + * > + * Every idle injection task belonging to the

Re: [PATCH v5 00/10] track CPU utilization

2018-06-05 Thread Quentin Perret
Hi Vincent, On Tuesday 05 Jun 2018 at 10:36:26 (+0200), Vincent Guittot wrote: > Hi Quentin, > > On 25 May 2018 at 15:12, Vincent Guittot wrote: > > This patchset initially tracked only the utilization of RT rq. During > > OSPM summit, it has been discussed the opportunity to extend it in order

Re: [PATCH v10 RESEND 1/9] mfd: madera: Add register definitions for Cirrus Logic Madera codecs

2018-06-05 Thread Lee Jones
All applied. Thanks for bearing with. -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog

Re: [PATCH] ksys_mount: check for permissions before resource allocation

2018-06-05 Thread Al Viro
On Tue, Jun 05, 2018 at 10:59:51AM +0400, Ilya Matveychikov wrote: > Just CC’ed to some of maintainers. > > $ perl scripts/get_maintainer.pl > fs/0001-ksys_mount-check-for-permissions-before-resource-all.patch > Alexander Viro (maintainer:FILESYSTEMS (VFS and > infrastructure)) >

Re: [patch 3/8] x86/apic: Provide apic_ack_irq()

2018-06-05 Thread Thomas Gleixner
On Tue, 5 Jun 2018, Dou Liyang wrote: > > +{ > > + if (unlikely(irqd_is_setaffinity_pending(irqd))) > > Affinity pending is also judged in > > > + irq_move_irq(irqd); > > If we can remove the if(...) statement here That requires to fix all call sites in ia64 and that's why I

Re: [RFC PATCH 1/2] media: docs-rst: Add decoder UAPI specification to Codec Interfaces

2018-06-05 Thread Philipp Zabel
Hi Tomasz, On Tue, 2018-06-05 at 19:33 +0900, Tomasz Figa wrote: > Due to complexity of the video decoding process, the V4L2 drivers of > stateful decoder hardware require specific sequencies of V4L2 API calls > to be followed. These include capability enumeration, initialization, > decoding,

Re: [PATCH 4/7] atomics: add common header generation files

2018-06-05 Thread Mark Rutland
On Tue, Jun 05, 2018 at 02:25:37PM +0200, Peter Zijlstra wrote: > On Tue, May 29, 2018 at 07:07:43PM +0100, Mark Rutland wrote: > > +++ b/scripts/atomic/atomics.tbl > > @@ -0,0 +1,41 @@ > > +# name metaargs... > > +# > > +# Where meta contains a string of variants to generate. > > +#

Re: [PATCH v2] DMA: OMAP: fix OMAP1510 incorrect residue_granularity

2018-06-05 Thread Peter Ujfalusi
On 06/02/2018 06:27 PM, Janusz Krzysztofik wrote: > Commit 0198d7bb8a0c ("ASoC: omap-mcbsp: Convert to use the sdma-pcm > instead of omap-pcm") resulted in broken audio playback on OMAP1510 > (discovered on Amstrad Delta). Good catch. can you fix up the subject: dmaengine: ti: omap-dma: Fix

Re: [PATCH 1/2] printk: remove unused flag LOG_NOCONS

2018-06-05 Thread Petr Mladek
On Thu 2018-05-31 08:12:23, Joe Perches wrote: > On Thu, 2018-05-31 at 14:16 +0200, Petr Mladek wrote: > > On Thu 2018-05-31 15:47:51, Maninder Singh wrote: > > > This patch removes unused flag LOG_NOCONS for printk. > > > usage of this flag is removed long back with below commit. > > > > Make

Re: [PATCH v5 00/10] track CPU utilization

2018-06-05 Thread Vincent Guittot
On 5 June 2018 at 15:12, Quentin Perret wrote: > On Tuesday 05 Jun 2018 at 13:59:56 (+0200), Vincent Guittot wrote: >> On 5 June 2018 at 12:57, Quentin Perret wrote: >> > Hi Vincent, >> > >> > On Tuesday 05 Jun 2018 at 10:36:26 (+0200), Vincent Guittot wrote: >> >> Hi Quentin, >> >> >> >> On 25

Linux 4.14.48

2018-06-05 Thread Greg KH
I'm announcing the release of the 4.14.48 kernel. All users of the 4.14 kernel series must upgrade. The updated 4.14.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.14.y and can be browsed at the normal kernel.org git web

Re: Linux 4.14.48

2018-06-05 Thread Greg KH
diff --git a/Makefile b/Makefile index d6db01a02252..7a246f1ce44e 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 4 PATCHLEVEL = 14 -SUBLEVEL = 47 +SUBLEVEL = 48 EXTRAVERSION = NAME = Petit Gorille @@ -369,11 +369,6 @@ HOSTCXXFLAGS := -O2

Re: Linux 4.16.14

2018-06-05 Thread Greg KH
diff --git a/Makefile b/Makefile index 146e527a5e06..a043442e442f 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 4 PATCHLEVEL = 16 -SUBLEVEL = 13 +SUBLEVEL = 14 EXTRAVERSION = NAME = Fearless Coyote diff --git a/arch/mips/kernel/process.c

Linux 4.16.14

2018-06-05 Thread Greg KH
I'm announcing the release of the 4.16.14 kernel. All users of the 4.16 kernel series must upgrade. The updated 4.16.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.16.y and can be browsed at the normal kernel.org git web

Re: [PATCH v2] Make elf2ecoff work on 64bit host machines

2018-06-05 Thread Thomas Bogendoerfer
On Mon, 4 Jun 2018 15:14:04 -0700 Paul Burton wrote: > > +#include > > Could you move the #include into ecoff.h? Since ecoff.h > itself makes use of these types. I know the end result will be the same, > but if anything else were ever to include ecoff.h then having the right > includes there

[Question] Can we use SIGRTMIN when vdso disabled on X86?

2018-06-05 Thread Leizhen (ThunderTown)
After I executed "echo 0 > /proc/sys/abi/vsyscall32" to disable vdso, the rt_sigaction01 test case from ltp_2015 failed. The test case source code please refer to the attachment, and the output as blow: - ./rt_sigaction01 rt_sigaction010 TINFO : signal: 34 rt_sigaction01

Re: [PATCH] ksys_mount: check for permissions before resource allocation

2018-06-05 Thread Ilya Matveychikov
> On Jun 5, 2018, at 3:26 PM, Al Viro wrote: >> >>> On Jun 5, 2018, at 6:00 AM, Ilya Matveychikov >>> wrote: >>> >>> Early check for mount permissions prevents possible allocation of 3 >>> pages from kmalloc() pool by unpriveledged user which can be used for >>> spraying the kernel heap. >

[PATCH] irqchip/stm32: fix non-SMP build warning

2018-06-05 Thread Arnd Bergmann
Without CONFIG_SMP, we get a harmless compile-time warning: drivers/irqchip/irq-stm32-exti.c:495:12: error: 'stm32_exti_h_set_affinity' defined but not used [-Werror=unused-function] The #ifdef is inconsistent here, and it's better to use an IS_ENABLED() check that lets the compiler silently

[PATCH] cpufreq: kryo: allow building as a loadable module

2018-06-05 Thread Arnd Bergmann
Building the kryo cpufreq driver while QCOM_SMEM is a loadable module results in a link error: drivers/cpufreq/qcom-cpufreq-kryo.o: In function `qcom_cpufreq_kryo_probe': qcom-cpufreq-kryo.c:(.text+0xbc): undefined reference to `qcom_smem_get' The problem is that Kconfig ignores interprets the

[PATCH] arm64: cpu_errata: include required headers

2018-06-05 Thread Arnd Bergmann
Without including psci.h and arm-smccc.h, we now get a build failure in some configurations: arch/arm64/kernel/cpu_errata.c: In function 'arm64_update_smccc_conduit': arch/arm64/kernel/cpu_errata.c:278:10: error: 'psci_ops' undeclared (first use in this function); did you mean 'sysfs_ops'?

[PATCH] ARM: rpc: use designated initializers in ecard_default_ops

2018-06-05 Thread Arnd Bergmann
When the randstruct plugin is enabled, we get a warning about the use of traditional struct initializers for this structure, which results in incorrect behavior: arch/arm/mach-rpc/ecard.c:416:2: error: positional initialization of field in 'struct' declared with 'designated_init' attribute

Re: [PATCH] ksys_mount: check for permissions before resource allocation

2018-06-05 Thread Al Viro
On Tue, Jun 05, 2018 at 03:35:55PM +0400, Ilya Matveychikov wrote: > > > On Jun 5, 2018, at 3:26 PM, Al Viro wrote: > >> > >>> On Jun 5, 2018, at 6:00 AM, Ilya Matveychikov > >>> wrote: > >>> > >>> Early check for mount permissions prevents possible allocation of 3 > >>> pages from kmalloc()

Re: [PATCH v2 08/10] vfio: ccw: Handling reset and shutdown with states

2018-06-05 Thread Cornelia Huck
On Fri, 25 May 2018 12:21:16 +0200 Pierre Morel wrote: > Two new events, VFIO_CCW_EVENT_ONLINE and VFIO_CCW_EVENT_OFFLINE > allow to handle the enabling and disabling of a Sub Channel and > the init, shutdown, quiesce and reset operations are changed > accordingly. > > Signed-off-by: Pierre

[GIT PULL] printk for 4.18

2018-06-05 Thread Petr Mladek
Linus, please pull the latest printk changes from git://git.kernel.org/pub/scm/linux/kernel/git/pmladek/printk tags/printk-for-4.18 There will be conflicts in lib/vsprintf.c that are caused by late fixes for 4.17. The proposed resolution can be found in the branch

Re: [PATCH] ksys_mount: check for permissions before resource allocation

2018-06-05 Thread Al Viro
On Tue, Jun 05, 2018 at 04:07:15PM +0400, Ilya Matveychikov wrote: > > If you depend upon preventing kmalloc'ed temporary allocations filled > > with user-supplied data, you are screwed, plain and simple. It really can't > > be prevented, in a lot of ways that are much less exotic than mount(2).

Re: [PATCH v2 10/10] vfio: ccw: Let user wait when busy on IO

2018-06-05 Thread Pierre Morel
On 25/05/2018 16:04, Heiko Carstens wrote: On Fri, May 25, 2018 at 12:21:18PM +0200, Pierre Morel wrote: In the current implementation, we do not want to start a new SSCH command before the last one ends. Currently the user needs to poll on the -EBUSY error to wait before sending a new

Re: [PATCH v5 00/10] track CPU utilization

2018-06-05 Thread Juri Lelli
On 05/06/18 14:05, Quentin Perret wrote: > On Tuesday 05 Jun 2018 at 14:11:53 (+0200), Juri Lelli wrote: > > Hi Quentin, > > > > On 05/06/18 11:57, Quentin Perret wrote: > > > > [...] > > > > > What about the diff below (just a quick hack to show the idea) applied > > > on tip/sched/core ? > >

Re: [PATCH v9 2/7] i2c: Add FSI-attached I2C master algorithm

2018-06-05 Thread Andy Shevchenko
On Tue, Jun 5, 2018 at 2:38 AM, Benjamin Herrenschmidt wrote: > On Mon, 2018-06-04 at 22:21 +0300, Andy Shevchenko wrote: >> > +#define I2C_INT_ENABLE 0xff80 >> > +#define I2C_INT_ERR0xfcc0 >> >> Now it looks like a flags combinations. >> For me as for reader would be

Linux 4.9.106

2018-06-05 Thread Greg KH
I'm announcing the release of the 4.9.106 kernel. Not everyone who uses 4.9 needs to upgrade here, it's a big sync of the objtool codebase to make future maintenance of 4.9.y easier over time, that's all. But of course, updating and verifying that nothing broke is always appreciated :) The

Re: [PATCH 6/6] x86/vdso: Move out the CPU number store

2018-06-05 Thread Andy Lutomirski
On Mon, Jun 4, 2018 at 10:36 PM H. Peter Anvin wrote: > > On 06/04/18 20:57, Mika Penttilä wrote: > > > > This won't work on X86-32 because it actually uses the segment limit with > > fs: access. So there > > is a reason why the lsl based method is X86-64 only. > > > > > > Why does that matter

Re: [PATCH 1/2] platform/x86: asus-wmi: Call new led hw_changed API on kbd brightness change

2018-06-05 Thread Hans de Goede
Hi, On 05-06-18 12:14, Bastien Nocera wrote: On Tue, 2018-06-05 at 12:05 +0200, Hans de Goede wrote: Hi, On 05-06-18 11:58, Bastien Nocera wrote: On Tue, 2018-06-05 at 09:37 +0200, Hans de Goede wrote: Hi, On 05-06-18 05:18, Chris Chiu wrote: On Tue, Jun 5, 2018 at 10:31 AM, Darren Hart

Re: [PATCH 4/8] serial: 8250: Handle case port doesn't have TEMT interrupt using em485.

2018-06-05 Thread Matwey V. Kornilov
2018-06-04 21:50 GMT+03:00 Giulio Benetti : > Il 04/06/2018 19:40, Matwey V. Kornilov ha scritto: >> >> 01.06.2018 15:40, Giulio Benetti пишет: >>> >>> Some 8250 ports only have TEMT interrupt, so current implementation >>> can't work for ports without it. The only chance to make it work is to >>>

Re: [PATCH 4.9 00/29] 4.9.106-stable review

2018-06-05 Thread Mark Brown
On Mon, Jun 04, 2018 at 04:13:06PM -0700, Kevin Hilman wrote: > > defconfig > > synquacer-acpi: 1 failed lab > This is a newly added board, and hasn't ever passed on v4.9 yet. > @Matt Hart: Is this board expected to work as far bask as v4.9? or > should we blacklist it? Should be

[PATCH v5 6/8] platform/mellanox: Introduce support for Mellanox register access driver

2018-06-05 Thread Vadim Pasternak
Introduce new Mellanox platform driver to allow access to Mellanox programmable device register space trough sysfs interface. The driver purpose is to provide sysfs interface for user space for the registers essential for system control and monitoring. The sets of registers for sysfs access are

[PATCH v5 8/8] Documentation/ABI: Add documentation mlxreg-io sysfs interfaces

2018-06-05 Thread Vadim Pasternak
Add documentation for mlxreg-io platform driver sysfs interfaces to allow user space access for system resets control, reset causes monitoring, programmable devices version reading and device selection control. Signed-off-by: Vadim Pasternak --- v4: Comments pointed out by Greg: Add

Re: [patch 3/8] x86/apic: Provide apic_ack_irq()

2018-06-05 Thread Dou Liyang
Hi Thomas, At 06/04/2018 11:33 PM, Thomas Gleixner wrote: apic_ack_edge() is explicitely for handling interrupt affinity cleanup when interrupt remapping is not available or disable. Remapped interrupts and also some of the platform specific special interrupts, e.g. UV, invoke ack_APIC_irq()

Re: [PATCH v5 00/10] track CPU utilization

2018-06-05 Thread Juri Lelli
Hi Quentin, On 05/06/18 11:57, Quentin Perret wrote: [...] > What about the diff below (just a quick hack to show the idea) applied > on tip/sched/core ? > > ---8<--- > diff --git a/kernel/sched/cpufreq_schedutil.c > b/kernel/sched/cpufreq_schedutil.c > index a8ba6d1f262a..23a4fb1c2c25 100644

Re: [PATCH 4/7] atomics: add common header generation files

2018-06-05 Thread Peter Zijlstra
On Tue, May 29, 2018 at 07:07:43PM +0100, Mark Rutland wrote: > +++ b/scripts/atomic/atomics.tbl > @@ -0,0 +1,41 @@ > +# name metaargs... > +# > +# Where meta contains a string of variants to generate. > +# Upper-case implies _{acquire,release,relaxed} variants. > +# Valid meta values

[PATCH] irqchip/ls-scfg-msi: map MSIs in the iommu

2018-06-05 Thread Laurentiu Tudor
Add the required iommu_dma_map_msi_msg() when composing the MSI message, otherwise the interrupts will not work. Signed-off-by: Laurentiu Tudor --- drivers/irqchip/irq-ls-scfg-msi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/irqchip/irq-ls-scfg-msi.c

Re: [PATCH v2 06/10] vfio: ccw: Make FSM functions atomic

2018-06-05 Thread Pierre Morel
On 05/06/2018 13:38, Cornelia Huck wrote: On Fri, 25 May 2018 12:21:14 +0200 Pierre Morel wrote: We use mutex around the FSM function call to make the FSM event handling and state change atomic. I'm still not really clear as to what this mutex is supposed to serialize: - Modification of the

Re: [PATCH] kconfig: Avoid format overflow warning from GCC 8.1

2018-06-05 Thread Masahiro Yamada
2018-06-03 1:02 GMT+09:00 Nathan Chancellor : > In file included from scripts/kconfig/zconf.tab.c:2485: > scripts/kconfig/confdata.c: In function ‘conf_write’: > scripts/kconfig/confdata.c:773:22: warning: ‘%s’ directive writing likely 7 > or more bytes into a region of size between 1 and 4097

BUG: unable to handle kernel paging request in dput

2018-06-05 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:716a685fdb89 Merge branch 'x86-hyperv-for-linus' of git://.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=10224f2f80 kernel config: https://syzkaller.appspot.com/x/.config?x=4f65cd4286737868

WARNING in close_fs_devices

2018-06-05 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:716a685fdb89 Merge branch 'x86-hyperv-for-linus' of git://.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=15c5f46f80 kernel config: https://syzkaller.appspot.com/x/.config?x=4f65cd4286737868

[PATCH V5] powercap/drivers/idle_injection: Add an idle injection framework

2018-06-05 Thread Daniel Lezcano
Initially, the cpu_cooling device for ARM was changed by adding a new policy inserting idle cycles. The intel_powerclamp driver does a similar action. Instead of implementing idle injections privately in the cpu_cooling device, move the idle injection code in a dedicated framework and give the

[PATCH 6/9] Input: cros_ec_keyb - Switch to SPDX identifier.

2018-06-05 Thread Enric Balletbo i Serra
Adopt the SPDX license identifier headers to ease license compliance management. Signed-off-by: Enric Balletbo i Serra --- drivers/input/keyboard/cros_ec_keyb.c | 26 -- 1 file changed, 4 insertions(+), 22 deletions(-) diff --git a/drivers/input/keyboard/cros_ec_keyb.c

[PATCH 0/9] croc_ec: Switch to SPDX identifier

2018-06-05 Thread Enric Balletbo i Serra
Dear all, This patchset is just to adopt the SPDX license identifier for all ChromeOS Embedded Controller related drivers. The patches touches different subsystems but every patch can be picked from their respective maintainer independently. Thanks, Enric Enric Balletbo i Serra (9):

[PATCH 9/9] i2c: i2c-cros-ec-tunnel: Switch to SPDX identifier.

2018-06-05 Thread Enric Balletbo i Serra
Adopt the SPDX license identifier headers to ease license compliance management. Signed-off-by: Enric Balletbo i Serra --- drivers/i2c/busses/i2c-cros-ec-tunnel.c | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/drivers/i2c/busses/i2c-cros-ec-tunnel.c

[PATCH 8/9] extcon: usbc-cros-ec: Switch to SPDX identifier.

2018-06-05 Thread Enric Balletbo i Serra
Adopt the SPDX license identifier headers to ease license compliance management. Signed-off-by: Enric Balletbo i Serra --- drivers/extcon/extcon-usbc-cros-ec.c | 20 +--- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/drivers/extcon/extcon-usbc-cros-ec.c

[PATCH 2/9] platform/chrome: pstore: Switch to SPDX identifier.

2018-06-05 Thread Enric Balletbo i Serra
Adopt the SPDX license identifier headers to ease license compliance management. Signed-off-by: Enric Balletbo i Serra --- drivers/platform/chrome/chromeos_pstore.c | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/drivers/platform/chrome/chromeos_pstore.c

[PATCH 1/9] platform/chrome: cros_ec: Switch to SPDX identifier.

2018-06-05 Thread Enric Balletbo i Serra
Adopt the SPDX license identifier headers to ease license compliance management. Signed-off-by: Enric Balletbo i Serra --- drivers/platform/chrome/cros_ec_debugfs.c | 22 +++- drivers/platform/chrome/cros_ec_lightbar.c| 22 +++-

[PATCH 5/9] rtc: cros-ec: Switch to SPDX identifier.

2018-06-05 Thread Enric Balletbo i Serra
Adopt the SPDX license identifier headers to ease license compliance management. Signed-off-by: Enric Balletbo i Serra --- drivers/rtc/rtc-cros-ec.c | 21 + 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/drivers/rtc/rtc-cros-ec.c b/drivers/rtc/rtc-cros-ec.c

[PATCH 7/9] pwm: cros-ec: Switch to SPDX identifier.

2018-06-05 Thread Enric Balletbo i Serra
Adopt the SPDX license identifier headers to ease license compliance management. Signed-off-by: Enric Balletbo i Serra --- drivers/pwm/pwm-cros-ec.c | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/drivers/pwm/pwm-cros-ec.c b/drivers/pwm/pwm-cros-ec.c index

Re: [PATCH 02/11] PM / devfreq: Fix handling of min/max_freq == 0

2018-06-05 Thread Chanwoo Choi
Hi, On 2018년 05월 31일 06:13, Matthias Kaehlcke wrote: > On Wed, May 30, 2018 at 05:04:14PM +0900, Chanwoo Choi wrote: >> Hi, >> >> On 2018년 05월 30일 03:57, Matthias Kaehlcke wrote: >>> On Mon, May 28, 2018 at 03:37:47PM +0900, Chanwoo Choi wrote: Hi, On 2018년 05월 26일 05:30, Matthias

Re: [PATCH 18/19] sched/numa: Reset scan rate whenever task moves across nodes

2018-06-05 Thread Mel Gorman
On Mon, Jun 04, 2018 at 03:30:27PM +0530, Srikar Dronamraju wrote: > Currently task scan rate is reset when numa balancer migrates the task > to a different node. If numa balancer initiates a swap, reset is only > applicable to the task that initiates the swap. Similarly no scan rate > reset is

Re: [PATCH 5/7] x86/cpu: Move early cpu initialization into a separate translation unit

2018-06-05 Thread Kirill A. Shutemov
On Sat, May 19, 2018 at 08:47:33AM +, Thomas Gleixner wrote: > On Fri, 18 May 2018, Kirill A. Shutemov wrote: > > > __pgtable_l5_enabled shouldn't be needed after system has booted, we can > > mark it as __initdata, but it requires preparation. > > > > This patch moves early cpu

[PATCH v5 7/8] platform/x86: mlx-platform: Add mlxreg-io platform driver activation

2018-06-05 Thread Vadim Pasternak
Add mlxreg-io platform driver activation. Access driver uses the same regmap infrastructure as others Mellanox platform drivers. Specific registers description for default platform data configuration are added to mlx-platform. There are the registers for resets control, reset causes monitoring,

Re: [PATCH v3 1/3] cpufreq: imx6q: check speed grades for i.MX6ULL

2018-06-05 Thread Fabio Estevam
On Tue, May 22, 2018 at 3:28 AM, Sébastien Szymanski wrote: > Check the max speed supported from the fuses for i.MX6ULL and update the > operating points table accordingly. > > Signed-off-by: Sébastien Szymanski Reviewed-by: Fabio Estevam

Re: [PATCHv2 05/16] atomics: prepare for atomic64_fetch_add_unless()

2018-06-05 Thread Mark Rutland
On Tue, Jun 05, 2018 at 08:54:03PM +1000, Michael Ellerman wrote: > Mark Rutland writes: > > On Tue, Jun 05, 2018 at 11:26:37AM +0200, Peter Zijlstra wrote: > >> On Tue, May 29, 2018 at 04:43:35PM +0100, Mark Rutland wrote: > >> > /** > >> > + * atomic64_add_unless - add unless the number is

Re: [patch 2/8] genirq/generic_pending: Do not lose pending affinity update

2018-06-05 Thread Dou Liyang
Hi Thomas, At 06/04/2018 11:33 PM, Thomas Gleixner wrote: The generic pending interrupt mechanism moves interrupts from the interrupt handler on the original target CPU to the new destination CPU. This is required for x86 and ia64 due to the way the interrupt delivery and acknowledge works if

Re: [PATCH v1] clk: tegra: Mark Memory Controller clock as critical

2018-06-05 Thread Peter De Schrijver
On Mon, Jun 04, 2018 at 01:48:05AM +0300, Dmitry Osipenko wrote: > Memory Controller should be always-on. Currently the sibling EMC clock is > marked as critical, let's mark MC clock too for consistency. > > Signed-off-by: Dmitry Osipenko Acked-By: Peter De Schrijver > --- >

Re: [PATCH 06/39] vfs: add f_op->pre_mmap()

2018-06-05 Thread Miklos Szeredi
On Mon, Jun 4, 2018 at 10:48 AM, Christoph Hellwig wrote: > On Tue, May 29, 2018 at 04:43:06PM +0200, Miklos Szeredi wrote: >> This is needed by overlayfs to be able to copy up a file from a read-only >> lower layer to a writable layer when being mapped shared. When copying up, >> overlayfs

Re: [PATCH 1/7] atomics/tty: add missing atomic_long_t * cast

2018-06-05 Thread Peter Zijlstra
On Tue, May 29, 2018 at 07:07:40PM +0100, Mark Rutland wrote: > In ldsem_cmpxchg a pointer to unsigned long is passed to > atomic_long_cmpxchg(), which expects a pointer to atomic_long_t. > - long tmp = atomic_long_cmpxchg(>count, *old, new); > + long tmp =

[PATCH] perf tools: Fix pmu events parsing rule

2018-06-05 Thread Jiri Olsa
Currently all the event parsing fails end up in the event_pmu rule, and display misleading help like: $ perf stat -e inst kill event syntax error: 'inst' \___ Cannot find PMU `inst'. Missing kernel support? ... The reason is that the event_pmu is too strong and match

Re: [PATCH v13 0/7] cgroup-aware OOM killer

2018-06-05 Thread Michal Hocko
On Tue 05-06-18 13:47:29, Michal Hocko wrote: > It seems that this is still in limbo mostly because of David's concerns. > So let me reiterate them and provide my POV once more (and the last > time) just to help Andrew make a decision: Sorry, I forgot to add reference to the email with the full

Re: [greybus-dev] [PATCH] Staging:greybus Fix comparison to NULL

2018-06-05 Thread Alex Elder
On 06/05/2018 04:00 AM, Dan Carpenter wrote: > On Tue, Jun 05, 2018 at 11:02:36AM +0530, Viresh Kumar wrote: >> On 03-06-18, 08:52, Janani Sankara Babu wrote: >>> This patch replaces comparison of var to NULL with !var >>> >>> Signed-off-by: Janani Sankara Babu Wow, such deep discussion for such

Re: [PATCH 16/19] sched/numa: Detect if node actively handling migration

2018-06-05 Thread Rik van Riel
On Mon, 2018-06-04 at 20:56 -0700, Srikar Dronamraju wrote: > * Rik van Riel [2018-06-04 16:05:55]: > > > On Mon, 2018-06-04 at 15:30 +0530, Srikar Dronamraju wrote: > > > > > @@ -1554,6 +1562,9 @@ static void task_numa_compare(struct > > > task_numa_env *env, > > > if

Re: [PATCH V2] ARM: dts: armada388-helios4

2018-06-05 Thread Gregory CLEMENT
Hi Dennis, On mar., juin 05 2018, Dennis Gilmore wrote: > The helios4 is a Armada388 based nas board designed by SolidRun and > based on their SOM. It is sold by kobol.io the dts file came from >

Re: [PATCH 8/9] extcon: usbc-cros-ec: Switch to SPDX identifier.

2018-06-05 Thread Chanwoo Choi
On 2018년 06월 05일 18:22, Enric Balletbo i Serra wrote: > Adopt the SPDX license identifier headers to ease license compliance > management. > > Signed-off-by: Enric Balletbo i Serra > --- > > drivers/extcon/extcon-usbc-cros-ec.c | 20 +--- > 1 file changed, 5 insertions(+), 15

Re: [PATCHv2 00/16] atomics: API cleanups

2018-06-05 Thread Peter Zijlstra
Looking good, thanks! Acked-by: Peter Zijlstra (Intel)

Re: [PATCH 2/2] mm: don't skip memory guarantee calculations

2018-06-05 Thread Michal Hocko
On Tue 05-06-18 11:15:45, Roman Gushchin wrote: > On Tue, Jun 05, 2018 at 11:03:49AM +0200, Michal Hocko wrote: > > On Mon 04-06-18 17:23:06, Roman Gushchin wrote: > > [...] > > > I'm happy to discuss any concrete issues/concerns, but I really see > > > no reasons to drop it from the mm tree now

Re: [PATCH 1/2] platform/x86: asus-wmi: Call new led hw_changed API on kbd brightness change

2018-06-05 Thread Benjamin Berg
Hey, On Tue, 2018-06-05 at 12:31 +0200, Hans de Goede wrote: > On 05-06-18 12:14, Bastien Nocera wrote: > > On Tue, 2018-06-05 at 12:05 +0200, Hans de Goede wrote: > > > On 05-06-18 11:58, Bastien Nocera wrote: > > > > [SNIP] > > > > > > Ok, so what are you suggestion, do you really want to

Re: [PATCH 2/7] atomics/treewide: rework ordering barriers

2018-06-05 Thread Peter Zijlstra
On Tue, May 29, 2018 at 07:07:41PM +0100, Mark Rutland wrote: > +#ifndef __atomic_mb__after_acquire > +#define __atomic_mb__after_acquire smp_mb__after_atomic > +#endif > + > +#ifndef __atomic_mb__before_release > +#define __atomic_mb__before_release smp_mb__before_atomic > +#endif > + >

Re: [PATCH v3] PCI: Check for PCIe downtraining conditions

2018-06-05 Thread Andy Shevchenko
On Mon, Jun 4, 2018 at 6:55 PM, Alexandru Gagniuc wrote: > PCIe downtraining happens when both the device and PCIe port are > capable of a larger bus width or higher speed than negotiated. > Downtraining might be indicative of other problems in the system, and > identifying this from userspace is

Re: [PATCH v5 10/13] s390: vfio-ap: sysfs interface to view matrix mdev matrix

2018-06-05 Thread Pierre Morel
On 30/05/2018 16:28, Tony Krowiak wrote: On 05/24/2018 05:10 AM, Pierre Morel wrote: On 23/05/2018 16:38, Tony Krowiak wrote: On 05/16/2018 03:55 AM, Pierre Morel wrote: On 07/05/2018 17:11, Tony Krowiak wrote: Provides a sysfs interface to view the AP matrix configured for the mediated

Re: [PATCH] remoteproc: qcom: Introduce Hexagon V5 based WCSS driver

2018-06-05 Thread Sricharan R
Hi Vinod, On 6/5/2018 11:49 AM, Vinod wrote: > On 05-06-18, 11:12, Sricharan R wrote: > >> +config QCOM_Q6V5_WCSS >> +tristate "Qualcomm Hexagon based WCSS Peripheral Image Loader" >> +depends on OF && ARCH_QCOM >> +depends on QCOM_SMEM >> +depends on RPMSG_QCOM_SMD ||

Re: [PATCH -next] ocxl: Fix missing unlock on error in afu_ioctl_enable_p9_wait()

2018-06-05 Thread Frederic Barrat
Le 05/06/2018 à 11:16, Wei Yongjun a écrit : Add the missing unlock before return from function afu_ioctl_enable_p9_wait() in the error handling case. Fixes: e948e06fc63a ("ocxl: Expose the thread_id needed for wait on POWER9") Signed-off-by: Wei Yongjun --- drivers/misc/ocxl/file.c | 4

[GIT PULL] IPMI updates for 4.18

2018-06-05 Thread Corey Minyard
The following changes since commit a27fc14219f2e3c4a46ba9177b04d9b52c875532:   Merge branch 'parisc-4.17-3' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux (2018-04-16 14:07:39 -0700) are available in the git repository at:   https://github.com/cminyard/linux-ipmi.git

Re: How to print stack uses of IRQ in ARM64

2018-06-05 Thread Andy Shevchenko
If you would like to get an answer in a reasonable time it might make sense to Cc: people related to a subject. I Cc:ed Marc here with hope he is a guy for the topic. On Thu, May 31, 2018 at 1:01 PM, Vishnu Motghare wrote: > I found this discussion (https://lwn.net/Articles/657969/) regarding >

[PATCH v2 1/3] arm64/mm: pass swapper_pg_dir as an argument to __enable_mmu()

2018-06-05 Thread Jun Yao
Introduce __pa_swapper_pg_dir to save physical address of swapper_pg_dir. And pass it as an argument to __enable_mmu(). Signed-off-by: Jun Yao --- arch/arm64/include/asm/mmu_context.h | 4 +--- arch/arm64/include/asm/pgtable.h | 1 + arch/arm64/kernel/cpufeature.c | 2 +-

[PATCH v2 3/3] arm64/mm: migrate swapper_pg_dir and tramp_pg_dir

2018-06-05 Thread Jun Yao
Migrate swapper_pg_dir and tramp_pg_dir. And their virtual addresses do not correlate with kernel's address. Signed-off-by: Jun Yao --- arch/arm64/mm/mmu.c | 75 - 1 file changed, 47 insertions(+), 28 deletions(-) diff --git a/arch/arm64/mm/mmu.c

[PATCH v2 0/3] arm64/mm: migrate swapper_pg_dir

2018-06-05 Thread Jun Yao
Version 2 changes: * Move __pa_swapper_pg_dir to mmuoff.data.read section[1] * Fix problem with CONFIG_ARM64_SW_TTBR0_PAN[2] * Update comment about __enable_mmu() [v1] https://www.spinics.net/lists/kernel/msg2819351.html [1]

[PATCH v2 2/3] arm64/mm: introduce variable to save new swapper_pg_dir address

2018-06-05 Thread Jun Yao
Prepare for migrating swapper_pg_dir, introduce new_swapper_pg_dir to save virtual address of swapper_pg_dir. Signed-off-by: Jun Yao --- arch/arm64/include/asm/mmu_context.h | 2 +- arch/arm64/include/asm/pgtable.h | 1 + arch/arm64/mm/kasan_init.c | 2 +- arch/arm64/mm/mmu.c

Re: [RFC/RFT] [PATCH v3 0/4] Intel_pstate: HWP Dynamic performance boost

2018-06-05 Thread Rafael J. Wysocki
On Mon, Jun 4, 2018 at 8:24 PM, Srinivas Pandruvada wrote: > On Mon, 2018-06-04 at 20:01 +0200, Giovanni Gherdovich wrote: >> On Thu, May 31, 2018 at 03:51:39PM -0700, Srinivas Pandruvada wrote: >> > v3 >> > - Removed atomic bit operation as suggested. >> > - Added description of contention with

Re: [PATCH 10/19] sched/numa: Stop multiple tasks from moving to the cpu at the same time

2018-06-05 Thread Mel Gorman
On Mon, Jun 04, 2018 at 03:30:19PM +0530, Srikar Dronamraju wrote: > Task migration under numa balancing can happen in parallel. More than > one task might choose to migrate to the same cpu at the same time. This > can result in > - During task swap, choosing a task that was not part of the

Re: [PATCH V4] powercap/drivers/idle_injection: Add an idle injection framework

2018-06-05 Thread Viresh Kumar
On 05-06-18, 08:53, Daniel Lezcano wrote: > On 05/06/2018 07:53, Viresh Kumar wrote: > > On 05-06-18, 07:48, Daniel Lezcano wrote: > >> As soon as we reach complete(), no timer can be set because of the > >> condition before. > > > > Why not ? We aren't using any locks here and it is possible

Re: [PATCH 1/2] platform/x86: asus-wmi: Call new led hw_changed API on kbd brightness change

2018-06-05 Thread Hans de Goede
Hi, On 05-06-18 11:58, Bastien Nocera wrote: On Tue, 2018-06-05 at 09:37 +0200, Hans de Goede wrote: Hi, On 05-06-18 05:18, Chris Chiu wrote: On Tue, Jun 5, 2018 at 10:31 AM, Darren Hart wrote: On Mon, Jun 04, 2018 at 04:23:04PM +0200, Hans de Goede wrote: Hi, On 04-06-18 15:51, Daniel

[PATCH] ARM: davinci: da850: Fix interrups property for gpio

2018-06-05 Thread Keerthy
The intc #interrupt-cells is equal to 1. Currently gpio node has 2 cells per IRQ which is wrong. Remove the additional cell for each of the interrupts. Signed-off-by: Keerthy Fixes: 2e38b946dc54 ("ARM: davinci: da850: add GPIO DT node") --- arch/arm/boot/dts/da850.dtsi | 6 +- 1 file

[PATCH net-next] net: fddi: fix a possible null-ptr-deref

2018-06-05 Thread YueHaibing
bp->SharedMemAddr is set to NULL while bp->SharedMemSize less than 0, then memset will trigger null-ptr-deref. Fix it use pci_zalloc_consistent when bp->SharedMemSize is greater than 0. Signed-off-by: YueHaibing --- drivers/net/fddi/skfp/skfddi.c | 10 -- 1 file changed, 4

Re: [PATCHv2 05/16] atomics: prepare for atomic64_fetch_add_unless()

2018-06-05 Thread Michael Ellerman
Mark Rutland writes: > On Tue, Jun 05, 2018 at 11:26:37AM +0200, Peter Zijlstra wrote: >> On Tue, May 29, 2018 at 04:43:35PM +0100, Mark Rutland wrote: >> > /** >> > + * atomic64_add_unless - add unless the number is already a given value >> > + * @v: pointer of type atomic_t >> > + * @a: the

RE: [PATCH v4 8/8] Documentation/ABI: Add documentation mlxreg-io sysfs interfaces

2018-06-05 Thread Vadim Pasternak
> -Original Message- > From: Darren Hart [mailto:dvh...@infradead.org] > Sent: Tuesday, June 05, 2018 4:55 AM > To: Vadim Pasternak > Cc: andy.shevche...@gmail.com; gre...@linuxfoundation.org; linux- > ker...@vger.kernel.org; platform-driver-...@vger.kernel.org; j...@resnulli.us; >

[GIT PULL] Immutable branch between MFD, GPIO and Pinctrl due for the v4.19 merge window

2018-06-05 Thread Lee Jones
Enjoy! The following changes since commit 29dcea88779c856c7dc92040a0c01233263101d4: Linux 4.17 (2018-06-03 14:15:21 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git ib-mfd-gpio-pinctrl-v4.19 for you to fetch changes up to

Re: [PATCH v1] kthread/smpboot: Serialize kthread parking against wakeup

2018-06-05 Thread Kohli, Gaurav
Hi Peter, As last mentioned on mail, we are still seeing issue with the latest approach and below is the susceptible race as mentioned earlier.. controller Thread CPUHP Thread takedown_cpu kthread_park kthread_parkme Set KTHREAD_SHOULD_PARK

linux-next: Tree for Jun 5

2018-06-05 Thread Stephen Rothwell
Hi all, Changes since 20180604: The xfs tree gained a conflict against Linus' tree. The net-next tree still had its build failure for which I disabled BPFILTER. The drm-msm tree lost its build failure. Non-merge commits (relative to Linus' tree): 10150 9691 files changed, 435588

Re: [PATCH] Use an IDR to allocate apparmor secids

2018-06-05 Thread Matthew Wilcox
On Mon, Jun 04, 2018 at 07:35:24PM -0700, John Johansen wrote: > On 06/04/2018 07:27 PM, Matthew Wilcox wrote: > > On Mon, Jun 04, 2018 at 06:27:09PM -0700, John Johansen wrote: > >> hey Mathew, > >> > >> I've pulled this into apparmor-next and done the retuning of > >> AA_SECID_INVALID a follow

Re: [PATCH v5 00/10] track CPU utilization

2018-06-05 Thread Vincent Guittot
On 5 June 2018 at 12:57, Quentin Perret wrote: > Hi Vincent, > > On Tuesday 05 Jun 2018 at 10:36:26 (+0200), Vincent Guittot wrote: >> Hi Quentin, >> >> On 25 May 2018 at 15:12, Vincent Guittot wrote: >> > This patchset initially tracked only the utilization of RT rq. During >> > OSPM summit, it

Re: [PATCH] irqchip/stm32: fix non-SMP build warning

2018-06-05 Thread Ludovic BARRE
On 06/05/2018 01:43 PM, Arnd Bergmann wrote: Without CONFIG_SMP, we get a harmless compile-time warning: drivers/irqchip/irq-stm32-exti.c:495:12: error: 'stm32_exti_h_set_affinity' defined but not used [-Werror=unused-function] The #ifdef is inconsistent here, and it's better to use an

Re: [PATCH] fs: stub out ioprio_check_cap for !CONFIG_BLOCK

2018-06-05 Thread Arnd Bergmann
On Tue, Jun 5, 2018 at 1:47 PM, Arnd Bergmann wrote: > When CONFIG_BLOCK is disabled, we now run into a link error: > > fs/aio.o: In function `aio_prep_rw': > aio.c:(.text+0xf68): undefined reference to `ioprio_check_cap' > > Since the priorities are unused without block devices, this adds a stub

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