Re: [PATCH v5 13/13] mm: Clear shrinker bit if there are no objects related to memcg

2018-05-14 Thread Vladimir Davydov
On Thu, May 10, 2018 at 12:54:15PM +0300, Kirill Tkhai wrote: > To avoid further unneed calls of do_shrink_slab() > for shrinkers, which already do not have any charged > objects in a memcg, their bits have to be cleared. > > This patch introduces a lockless mechanism to do that > without races

[PATCH v3 3/8] PCI: Rename device node parameter of of_pci_get_host_bridge_resources()

2018-05-14 Thread Jan Kiszka
From: Jan Kiszka We will add a real device parameter to this function soon. Signed-off-by: Jan Kiszka --- drivers/pci/of.c | 18 +- include/linux/of_pci.h | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff

[PATCH v3 4/8] PCI: Replace dev_node parameter of of_pci_get_host_bridge_resources with device

2018-05-14 Thread Jan Kiszka
From: Jan Kiszka Another step towards a managed version of of_pci_get_host_bridge_resources(): Feed in the underlying device, rather than just the OF node. This will allow to use managed resource allocation internally later on. CC: Jingoo Han CC:

[PATCH] cpufreq: add imx8mq-cpufreq driver

2018-05-14 Thread Anson Huang
Add imx8mq-cpufreq driver for NXP i.MX8MQ SoC to support the hardware specific frequency and voltage scaling requirements. Signed-off-by: Anson Huang --- drivers/cpufreq/Kconfig.arm | 8 ++ drivers/cpufreq/Makefile | 1 + drivers/cpufreq/imx8mq-cpufreq.c |

linux-next: build failure after merge of the kbuild tree

2018-05-14 Thread Stephen Rothwell
Hi Masahiro, After merging the kbuild tree, today's linux-next build (x86_64 modules_install) failed like this: Usage: scripts/depmod.sh /sbin/depmod Makefile:1314: recipe for target '_modinst_post' failed Caused by commit ea7ad9856a2c ("depmod.sh: remove symbol prefix support") I added

Re: [PATCH v3 4/6] ALSA: xen-front: Implement handling of shared buffers

2018-05-14 Thread Oleksandr Andrushchenko
On 05/14/2018 11:28 PM, Takashi Iwai wrote: On Mon, 14 May 2018 08:27:40 +0200, Oleksandr Andrushchenko wrote: --- /dev/null +++ b/sound/xen/xen_snd_front_shbuf.c @@ -0,0 +1,193 @@ +// SPDX-License-Identifier: GPL-2.0 OR MIT + +/* + * Xen para-virtual sound device + * + * Copyright (C)

Re: [PATCH v5 11/13] mm: Iterate only over charged shrinkers during memcg shrink_slab()

2018-05-14 Thread Vladimir Davydov
On Thu, May 10, 2018 at 12:53:55PM +0300, Kirill Tkhai wrote: > Using the preparations made in previous patches, in case of memcg > shrink, we may avoid shrinkers, which are not set in memcg's shrinkers > bitmap. To do that, we separate iterations over memcg-aware and > !memcg-aware shrinkers, and

Re: [RFC PATCH v2 2/2] locking/percpu-rwsem: Mark rwsem as non-spinnable in percpu_rwsem_release()

2018-05-14 Thread Amir Goldstein
On Mon, May 14, 2018 at 10:31 PM, Waiman Long wrote: > The percpu_rwsem_release() is called when the ownership of the embedded > rwsem is to be transferred to another task. The new owner, however, may > take a while to get the ownership of the lock via percpu_rwsem_acquire().

[tip:x86/build] x86/build/vdso: Put generated linker scripts to $(obj)/

2018-05-14 Thread tip-bot for Masahiro Yamada
Commit-ID: 1742ed2088ccc4ade3abd8fe888742dd0f1343f8 Gitweb: https://git.kernel.org/tip/1742ed2088ccc4ade3abd8fe888742dd0f1343f8 Author: Masahiro Yamada AuthorDate: Tue, 15 May 2018 11:52:24 +0900 Committer: Ingo Molnar CommitDate: Tue,

[tip:x86/build] x86/build/vdso: Remove unnecessary export in Makefile

2018-05-14 Thread tip-bot for Masahiro Yamada
Commit-ID: 61615faf0a8968b604bd279fec5cb834ba59ed58 Gitweb: https://git.kernel.org/tip/61615faf0a8968b604bd279fec5cb834ba59ed58 Author: Masahiro Yamada AuthorDate: Tue, 15 May 2018 11:52:23 +0900 Committer: Ingo Molnar CommitDate: Tue,

[tip:x86/build] x86/build/vdso: Remove unused $(vobjs-nox32) in Makefile

2018-05-14 Thread tip-bot for Masahiro Yamada
Commit-ID: b3656612118f8961182f988168c835f023f0408a Gitweb: https://git.kernel.org/tip/b3656612118f8961182f988168c835f023f0408a Author: Masahiro Yamada AuthorDate: Tue, 15 May 2018 11:52:22 +0900 Committer: Ingo Molnar CommitDate: Tue,

Re: [PATCH 4.9 00/36] 4.9.100-stable review

2018-05-14 Thread Naresh Kamboju
On 14 May 2018 at 12:18, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.100 release. > There are 36 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please

Re: [PATCH v4 0/4] ALSA: usb: UAC3 new features.

2018-05-14 Thread Takashi Iwai
On Fri, 11 May 2018 17:25:33 +0200, Jorge Sanjuan wrote: > > v4 Updates: > - Removes already applied patch from v2 of this patchset. > - Adds small patch to parse Feature Unit number of channels. > - Rebased onto latest linux-next tag as today. > > Now that the UAC3 patch [1] has made it to

Re: [PATCH 4.14 00/62] 4.14.41-stable review

2018-05-14 Thread Naresh Kamboju
On 14 May 2018 at 12:18, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.41 release. > There are 62 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please

Re: [PATCH v1 4/4] samples/bpf: an example of a raw IR decoder

2018-05-14 Thread Y Song
On Mon, May 14, 2018 at 2:11 PM, Sean Young wrote: > This implements the grundig-16 IR protocol. > > Signed-off-by: Sean Young > --- > samples/bpf/Makefile | 4 + > samples/bpf/bpf_load.c| 9 +- >

[tip:core/urgent] objtool: Detect RIP-relative switch table references

2018-05-14 Thread tip-bot for Josh Poimboeuf
Commit-ID: 6f5ec2993b1f39aed12fa6fd56e8dc2272ee8a33 Gitweb: https://git.kernel.org/tip/6f5ec2993b1f39aed12fa6fd56e8dc2272ee8a33 Author: Josh Poimboeuf AuthorDate: Mon, 14 May 2018 08:53:24 -0500 Committer: Ingo Molnar CommitDate: Tue, 15 May 2018

Re: [PATCH] x86: add the flag -fno-reorder-blocks-and-partition

2018-05-14 Thread Ingo Molnar
* Mikulas Patocka wrote: > GCC 8 turns on -freorder-blocks-and-partition by default, the ORC unwinder > can't deal with it and it results in a lot of warnings "sibling call from > callable instruction with modified stack frame". This patch adds the >

Re: CONFIG_KCOV causing crash in svm_vcpu_run()

2018-05-14 Thread Dmitry Vyukov
On Mon, May 14, 2018 at 7:25 PM, Eric Biggers wrote: > On Mon, May 14, 2018 at 07:14:41AM +0200, Dmitry Vyukov wrote: >> On Mon, May 14, 2018 at 5:02 AM, Eric Biggers wrote: >> > Sorry, messed up address for KVM mailing list. See message below. >> > >>

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

2018-05-14 Thread Anand Moon
Hi Jerome On 14 May 2018 at 19:18, Jerome Brunet wrote: > On Wed, 2018-05-02 at 00:29 +0530, Anand Moon wrote: >> Enable UHS modes for sdcard, on odroidc2. >> >> Signed-off-by: Anand Moon >> --- >> arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts

Re: [PATCH 4.16 00/72] 4.16.9-stable review

2018-05-14 Thread Naresh Kamboju
On 14 May 2018 at 12:18, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.16.9 release. > There are 72 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please >

Re: [PATCH v1 3/4] media: rc bpf: move ir_raw_event to uapi

2018-05-14 Thread Y Song
On Mon, May 14, 2018 at 2:11 PM, Sean Young wrote: > The context provided to a BPF_PROG_RAWIR_DECODER is a struct ir_raw_event; > ensure user space has a a definition. > > Signed-off-by: Sean Young > --- > include/media/rc-core.h| 19 +-- >

Re: [PATCH v1 2/4] media: bpf: allow raw IR decoder bpf programs to be used

2018-05-14 Thread Y Song
On Mon, May 14, 2018 at 2:10 PM, Sean Young wrote: > This implements attaching, detaching, querying and execution. The target > fd has to be the /dev/lircN device. > > Signed-off-by: Sean Young > --- > drivers/media/rc/ir-bpf-decoder.c | 191

[PATCH] x86: add the flag -fno-reorder-blocks-and-partition

2018-05-14 Thread Mikulas Patocka
GCC 8 turns on -freorder-blocks-and-partition by default, the ORC unwinder can't deal with it and it results in a lot of warnings "sibling call from callable instruction with modified stack frame". This patch adds the -fno-reorder-blocks-and-partition option to KBUILD_CFLAGS. Signed-off-by:

[PATCH] Staging:Comedi:comedi_compat32.c: Lindent changes

2018-05-14 Thread Pratik Jain
Recommended indentation by Lindent on file comedi_compat32.c Signed-off-by: Pratik Jain --- drivers/staging/comedi/comedi_compat32.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/comedi/comedi_compat32.c

Re: printk feature for syzbot?

2018-05-14 Thread Sergey Senozhatsky
Hello, On (05/11/18 09:37), Steven Rostedt wrote: > > On (05/11/18 11:17), Dmitry Vyukov wrote: > > > > > > From what I see, it seems that interrupts can be nested: > > > > Hm, I thought that in general IRQ handlers run with local IRQs > > disabled on CPU. So, generally, IRQs don't nest. Was

Re: possible deadlock in sk_diag_fill

2018-05-14 Thread Dmitry Vyukov
On Mon, May 14, 2018 at 8:00 PM, Andrei Vagin wrote: >> >> Hello, >> >> >> >> syzbot found the following crash on: >> >> >> >> HEAD commit:c1c07416cdd4 Merge tag 'kbuild-fixes-v4.17' of >> >> git://git.k.. >> >> git tree: upstream >> >> console output:

Re: [PATCH v9 06/11] arm64: kexec_file: allow for loading Image-format kernel

2018-05-14 Thread AKASHI Takahiro
James, On Fri, May 11, 2018 at 06:07:06PM +0100, James Morse wrote: > Hi Akashi, > > On 07/05/18 08:21, AKASHI Takahiro wrote: > > On Tue, May 01, 2018 at 06:46:11PM +0100, James Morse wrote: > >> On 25/04/18 07:26, AKASHI Takahiro wrote: > >>> This patch provides kexec_file_ops for

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

2018-05-14 Thread Viresh Kumar
On 11-05-18, 13:55, Daniel Lezcano wrote: > On Fri, May 11, 2018 at 03:02:21PM +0530, viresh kumar wrote: > > On 10-05-18, 14:26, Daniel Lezcano wrote: > > > +int idle_injection_start(struct idle_injection_device *ii_dev) > > > +{ > > > + if (!atomic_read(_dev->idle_duration_ms)) > > > +

Re: [PATCH V1 2/5] backlight: qcom-wled: Add support for WLED4 peripheral

2018-05-14 Thread kgunda
On 2018-05-14 22:27, Pavel Machek wrote: Hi! WLED4 peripheral is present on some PMICs like pmi8998 and pm660l. It has a different register map and also configurations are different. Add support for it. Signed-off-by: Kiran Gunda ---

Re: [PATCH V1 5/5] backlight: qcom-wled: Add auto string detection logic

2018-05-14 Thread kgunda
On 2018-05-14 22:32, Bjorn Andersson wrote: On Wed 09 May 00:14 PDT 2018, kgu...@codeaurora.org wrote: On 2018-05-07 23:40, Bjorn Andersson wrote: > On Thu 03 May 02:57 PDT 2018, Kiran Gunda wrote: > > [..] > > + > > +#define WLED_AUTO_DETECT_OVP_COUNT 5 > > +#define

[git pull] drm fix for mmap regression

2018-05-14 Thread Dave Airlie
Hi Linus, This patch fixes the mmap regression reported to me on irc by an i686 kernel user today, he's tested the fix works, and I've audited all the drm drivers for the bad mmap usage and since we use the mmap offset as a lookup in a table we aren't inclined to have anything bad in there.

Re: [PATCH v1 1/4] media: rc: introduce BPF_PROG_IR_DECODER

2018-05-14 Thread Y Song
On Mon, May 14, 2018 at 2:10 PM, Sean Young wrote: > Add support for BPF_PROG_IR_DECODER. This type of BPF program can call > rc_keydown() to reported decoded IR scancodes, or rc_repeat() to report > that the last key should be repeated. > > Signed-off-by: Sean Young

Re: [PATCH] driver core: Respect all error codes from dev_pm_domain_attach()

2018-05-14 Thread Guenter Roeck
On Thu, Apr 26, 2018 at 10:53:06AM +0200, Ulf Hansson wrote: > The limitation of being able to check only for -EPROBE_DEFER from > dev_pm_domain_attach() has been removed. Hence let's respect all error > codes and bail out accordingly. > AFAICS this patch causes all drivers/devices to fail

Re: [PATCH v7] mtd: rawnand: use bit-wise majority to recover the contents of ONFI parameter

2018-05-14 Thread Chris Moore
Hi, Le 13/05/2018 à 06:30, Wan, Jane (Nokia - US/Sunnyvale) a écrit : Per ONFI specification (Rev. 4.0), if all parameter pages have invalid CRC values, the bit-wise majority may be used to recover the contents of the parameter pages from the parameter page copies present. Signed-off-by:

Re: [PATCH v9 03/11] arm64: kexec_file: invoke the kernel without purgatory

2018-05-14 Thread AKASHI Takahiro
James, On Fri, May 11, 2018 at 06:03:49PM +0100, James Morse wrote: > Hi Akashi, > > On 07/05/18 06:22, AKASHI Takahiro wrote: > > On Tue, May 01, 2018 at 06:46:06PM +0100, James Morse wrote: > >> On 25/04/18 07:26, AKASHI Takahiro wrote: > >>> diff --git a/arch/arm64/kernel/machine_kexec.c >

[PATCH v2] arm64: dts: qcom: sdm845: Sort nodes in the reserved mem by address

2018-05-14 Thread Douglas Anderson
Let's keep the reserved-memory node tidy and neat and keep it sorted by address. This should have no functional change. Signed-off-by: Douglas Anderson --- Changes in v2: - Oops! v1 accidentally changed the node name. Fixed. arch/arm64/boot/dts/qcom/sdm845.dtsi | 12

[PATCH] vsprintf: Add command line option debug_boot_weak_hash

2018-05-14 Thread Tobin C. Harding
Currently printing [hashed] pointers requires enough entropy to be available. Early in the boot sequence this may not be the case resulting in a dummy string '(ptrval)' being printed. This makes debugging the early boot sequence difficult. We can relax the requirement to use

[PATCH] arm64: dts: qcom: sdm845: Sort nodes in the reserved mem by address

2018-05-14 Thread Douglas Anderson
Let's keep the reserved-memory node tidy and neat and keep it sorted by address. This should have no functional change. Signed-off-by: Douglas Anderson --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff

Re: [PATCH v9 04/11] arm64: kexec_file: allocate memory walking through memblock list

2018-05-14 Thread AKASHI Takahiro
James, On Mon, May 07, 2018 at 02:59:07PM +0900, AKASHI Takahiro wrote: > James, > > On Tue, May 01, 2018 at 06:46:09PM +0100, James Morse wrote: > > Hi Akashi, > > > > On 25/04/18 07:26, AKASHI Takahiro wrote: > > > We need to prevent firmware-reserved memory regions, particularly EFI > > >

Re: cpu stopper threads and load balancing leads to deadlock

2018-05-14 Thread Mike Galbraith
On Thu, 2018-05-03 at 18:45 +0200, Peter Zijlstra wrote: > On Thu, May 03, 2018 at 09:12:31AM -0700, Paul E. McKenney wrote: > > On Thu, May 03, 2018 at 04:44:50PM +0200, Peter Zijlstra wrote: > > > On Thu, May 03, 2018 at 04:16:55PM +0200, Mike Galbraith wrote: > > > > On Thu, 2018-05-03 at 15:56

Re: [PATCH] media: dvb-frontends: add Socionext SC1501A ISDB-S/T demodulator driver

2018-05-14 Thread kbuild test robot
Hi Katsuhiro, I love your patch! Perhaps something to improve: [auto build test WARNING on linuxtv-media/master] [also build test WARNING on v4.17-rc5 next-20180514] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com

Re: [PATCH] rcu: Report a quiescent state of TASKS_RCU on a tick from user

2018-05-14 Thread Byungchul Park
On 2018-05-15 13:11, Paul E. McKenney wrote: On Tue, May 15, 2018 at 09:33:46AM +0900, Byungchul Park wrote: Hello Paul, You removed the reporing while simplifying the commit 508880df6 :) Fold this patch onto the commit or add, whatever you want. First, thank you for checking! But second,

Re: [PATCH v6 14/14] dt: qcom: Add qcom-cpufreq-kryo driver configuration

2018-05-14 Thread Viresh Kumar
On 14-05-18, 16:12, Ilia Lin wrote: > Signed-off-by: Ilia Lin > --- > arch/arm64/boot/dts/qcom/apq8096-db820c.dts | 2 +- > arch/arm64/boot/dts/qcom/msm8996.dtsi | 310 > +++- > 2 files changed, 309 insertions(+), 3 deletions(-) > > diff

Re: [PATCH v6 13/14] dt-bindings: cpufreq: Document operating-points-v2-kryo-cpu

2018-05-14 Thread Viresh Kumar
On 14-05-18, 16:11, Ilia Lin wrote: > In Certain Qualcomm Technologies, Inc. SoCs like apq8096 and msm8996 > that have KRYO processors, the CPU ferequencies subset and voltage value > of each OPP varies based on the silicon variant in use. > Qualcomm Technologies, Inc. Process Voltage Scaling

Re: [PATCH] rcu: Report a quiescent state of TASKS_RCU on a tick from user

2018-05-14 Thread Paul E. McKenney
On Tue, May 15, 2018 at 09:33:46AM +0900, Byungchul Park wrote: > Hello Paul, > > You removed the reporing while simplifying the commit 508880df6 :) > Fold this patch onto the commit or add, whatever you want. First, thank you for checking! But second, the removal was intentional. Tiny RCU

Re: [PATCH v6 12/14] cpufreq: Add Kryo CPU scaling driver

2018-05-14 Thread Viresh Kumar
On 14-05-18, 16:11, Ilia Lin wrote: > +static int __init qcom_cpufreq_kryo_driver_init(void) > +{ > + size_t len; > + int ret; > + u32 versions; > + enum _msm8996_version msm8996_version; > + u8 *speedbin; > + struct device *cpu_dev; > + struct device_node *np; > +

Re: [PATCH v5 10/13] mm: Set bit in memcg shrinker bitmap on first list_lru item apearance

2018-05-14 Thread Vladimir Davydov
On Thu, May 10, 2018 at 12:53:45PM +0300, Kirill Tkhai wrote: > Introduce set_shrinker_bit() function to set shrinker-related > bit in memcg shrinker bitmap, and set the bit after the first > item is added and in case of reparenting destroyed memcg's items. > > This will allow next patch to make

Re: [PATCH v6 11/14] dt: qcom: Add SAW regulator for 8x96 CPUs

2018-05-14 Thread Viresh Kumar
On 14-05-18, 16:11, Ilia Lin wrote: > 1. Add syscon node for the SAW CPU registers > 2. Add SAW regulators gang definition for s8-s11 > 3. Add voltages to the OPP tables > 4. Add the s11 SAW regulator as CPU regulator > > Signed-off-by: Ilia Lin > --- >

Re: [PATCH v6 08/14] dt: qcom: Add opp and thermal to the msm8996

2018-05-14 Thread Viresh Kumar
On 14-05-18, 16:11, Ilia Lin wrote: > Signed-off-by: Ilia Lin > --- > arch/arm64/boot/dts/qcom/msm8996.dtsi | 269 > -- > 1 file changed, 260 insertions(+), 9 deletions(-) Acked-by: Viresh Kumar -- viresh

[PATCH v2] arm64: dts: qcom: sdm845: Sort nodes in the soc by address

2018-05-14 Thread Douglas Anderson
This is pure-churn and should be a no-op. I'm doing it in the hopes of reducing merge conflicts. When things are sorted in a sane way (and by base address seems sane) then it's less likely that future patches will cause merge conflicts. Signed-off-by: Douglas Anderson

Re: [PATCH RFC 1/8] rcu: Add comment documenting how rcu_seq_snap works

2018-05-14 Thread Paul E. McKenney
On Mon, May 14, 2018 at 06:51:33PM -0700, Joel Fernandes wrote: > On Mon, May 14, 2018 at 10:38:16AM -0700, Paul E. McKenney wrote: > > On Sun, May 13, 2018 at 08:15:34PM -0700, Joel Fernandes (Google) wrote: > > > rcu_seq_snap may be tricky for someone looking at it for the first time. > > > Lets

Re: [PATCH v5 03/13] mm: Assign memcg-aware shrinkers bitmap to memcg

2018-05-14 Thread Vladimir Davydov
On Mon, May 14, 2018 at 12:34:45PM +0300, Kirill Tkhai wrote: > >> +static void memcg_free_shrinker_maps(struct mem_cgroup *memcg) > >> +{ > >> + struct mem_cgroup_per_node *pn; > >> + struct memcg_shrinker_map *map; > >> + int nid; > >> + > >> + if (memcg == root_mem_cgroup) > >> +

Re: [PATCH v2 1/5] staging: lustre: llite: add support set_acl method in inode operations

2018-05-14 Thread NeilBrown
On Mon, May 14 2018, James Simmons wrote: > From: Dmitry Eremin > > Linux kernel v3.14 adds set_acl method to inode operations. > This patch adds support to Lustre for proper acl management. > > Signed-off-by: Dmitry Eremin > Signed-off-by: John

Re: [PATCH 01/11] media: tm6000: fix potential Spectre variant 1

2018-05-14 Thread Gustavo A. R. Silva
Hi Mauro, On 04/26/2018 06:42 PM, Mauro Carvalho Chehab wrote: I noticed you changed the status of this series from rejected to new. Yes. Also, there are other similar issues in media/pci/ Well, the issues will be there everywhere on all media drivers. I marked your patches because I

Re: [PATCH RFC 7/8] rcu: trace CleanupMore condition only if needed

2018-05-14 Thread Paul E. McKenney
On Mon, May 14, 2018 at 06:01:31PM -0700, Joel Fernandes wrote: > On Mon, May 14, 2018 at 12:20:28PM -0700, Paul E. McKenney wrote: > > On Sun, May 13, 2018 at 08:15:40PM -0700, Joel Fernandes (Google) wrote: > > > Currently the tree RCU clean up code records a CleanupMore trace event > > > even

Re: [PATCH RFC 6/8] rcu: Add back the Startedleaf tracepoint

2018-05-14 Thread Paul E. McKenney
On Mon, May 14, 2018 at 05:57:09PM -0700, Joel Fernandes wrote: > On Mon, May 14, 2018 at 11:38:23AM -0700, Paul E. McKenney wrote: > > On Sun, May 13, 2018 at 08:15:39PM -0700, Joel Fernandes (Google) wrote: > > > In recent discussion [1], the check for whether a leaf believes RCU is > > > not

Re: [PATCH RFC 2/8] rcu: Clarify usage of cond_resched for tasks-RCU

2018-05-14 Thread Paul E. McKenney
On Mon, May 14, 2018 at 05:35:55PM -0700, Joel Fernandes wrote: > On Mon, May 14, 2018 at 10:22:05AM -0700, Paul E. McKenney wrote: > > On Mon, May 14, 2018 at 10:54:54AM -0400, Steven Rostedt wrote: > > > On Sun, 13 May 2018 20:15:35 -0700 > > > "Joel Fernandes (Google)"

Re: [PATCH v2] staging: lustre: obdclass: change object lookup to no wait mode

2018-05-14 Thread NeilBrown
On Mon, May 14 2018, James Simmons wrote: > From: Lai Siyao > > Currently we set LU_OBJECT_HEARD_BANSHEE on object when we want > to remove object from cache, but this may lead to deadlock, because > when other process lookup such object, it needs to wait for this > object

Re: [PATCH 18/18] rcu: Use pr_fmt to prefix "rcu: " to logging output

2018-05-14 Thread Paul E. McKenney
On Mon, May 14, 2018 at 06:22:02PM -0700, Joe Perches wrote: > On Mon, 2018-05-14 at 17:32 -0700, Paul E. McKenney wrote: > > So this change does not affect WARN_ON_ONCE() and friends? > > Changing define pr_fmt does not modify WARN_ON output. Very good, I removed my --squash patch adding

Re: [PATCH] lib/rhashtable: reorder some inititalization sequences

2018-05-14 Thread Herbert Xu
On Mon, May 14, 2018 at 10:52:13PM -0400, David Miller wrote: > From: Davidlohr Bueso > Date: Mon, 14 May 2018 08:13:32 -0700 > > > rhashtable_init() allocates memory at the very end of the > > call, once everything is setup; with the exception of the > > nelems parameter.

Re: [PATCH v5 01/13] mm: Assign id to every memcg-aware shrinker

2018-05-14 Thread Vladimir Davydov
On Mon, May 14, 2018 at 12:03:38PM +0300, Kirill Tkhai wrote: > On 13.05.2018 08:15, Vladimir Davydov wrote: > > On Thu, May 10, 2018 at 12:52:18PM +0300, Kirill Tkhai wrote: > >> The patch introduces shrinker::id number, which is used to enumerate > >> memcg-aware shrinkers. The number start from

Re: [PATCH ghak81 RFC V2 3/5] audit: use inline function to get audit context

2018-05-14 Thread Richard Guy Briggs
On 2018-05-14 23:05, Richard Guy Briggs wrote: > On 2018-05-14 17:44, Paul Moore wrote: > > On Sat, May 12, 2018 at 9:58 PM, Richard Guy Briggs wrote: > > > Recognizing that the audit context is an internal audit value, use an > > > access function to retrieve the audit context

Re: [PATCH 3/6] firmware: differentiate between signed regulatory.db and other firmware

2018-05-14 Thread Luis R. Rodriguez
On Mon, May 14, 2018 at 10:02:31PM -0400, Mimi Zohar wrote: > On Mon, 2018-05-14 at 19:28 +, Luis R. Rodriguez wrote: > > > - CONFIG_IMA_APPRAISE is not fine enough grained. > > > > > > The CONFIG_IMA_APPRAISE_FIRMWARE will be a Kconfig option.  Similar > > > Kconfig options will require

Re: [PATCH -mm] mm, hugetlb: Pass fault address to no page handler

2018-05-14 Thread Mike Kravetz
On 05/14/2018 05:57 PM, Huang, Ying wrote: > From: Huang Ying > > This is to take better advantage of huge page clearing > optimization (c79b57e462b5d, "mm: hugetlb: clear target sub-page last > when clearing huge page"). Which will clear to access sub-page last > to avoid

Re: linux-next: manual merge of the audit tree with the selinux tree

2018-05-14 Thread Richard Guy Briggs
On 2018-05-15 13:06, Stephen Rothwell wrote: > Hi Paul, > > Today's linux-next merge of the audit tree got a conflict in: > > security/selinux/selinuxfs.c > > between commit: > > 4195ed425d3c ("audit: normalize MAC_STATUS record") > > from the selinux tree and commits: > > cdfb6b341f0f

[PATCH v4 3/4] phy: rockchip-typec: support variable phy config value

2018-05-14 Thread Lin Huang
the phy config values used to fix in dp firmware, but some boards need change these values to do training and get the better eye diagram result. So support that in phy driver. Signed-off-by: Chris Zhong Signed-off-by: Lin Huang --- Changes in v2: -

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

2018-05-14 Thread Chris Chiu
On Mon, May 14, 2018 at 10:20 PM, Jarkko Nikula wrote: > On 05/10/2018 03:03 PM, Chris Chiu wrote: >> >> Report from guys who can access scope. If i2c-sda-falling-time-ns=400ns >> , HCNT increase to 117, the SCL high duration is 576ns as follows >>

[PATCH v4 1/4] drm/rockchip: add transfer function for cdn-dp

2018-05-14 Thread Lin Huang
From: Chris Zhong We may support training outside firmware, so we need support dpcd read/write to get the message or do some setting with display. Signed-off-by: Chris Zhong Signed-off-by: Lin Huang Reviewed-by: Sean Paul

[PATCH v4 4/4] drm/rockchip: support dp training outside dp firmware

2018-05-14 Thread Lin Huang
DP firmware uses fixed phy config values to do training, but some boards need to adjust these values to fit for their unique hardware design. So get phy config values from dts and use software link training instead of relying on firmware, if software training fail, keep firmware training as a

[PATCH v4 2/4] Documentation: bindings: add phy_config for Rockchip USB Type-C PHY

2018-05-14 Thread Lin Huang
If want to do training outside DP Firmware, need phy voltage swing and pre_emphasis value. Signed-off-by: Lin Huang --- Changes in v2: - None Changes in v3: - modify property description and add this property to Example Change in v4: - None

Re: [PATCH REPOST 4/5] powerpc: Use update_thread_flag()

2018-05-14 Thread Michael Ellerman
Dave Martin writes: > This patch uses the new update_thread_flag() helper to simplify a > couple of if () set; else clear; constructs. > > No functional change. > > Signed-off-by: Dave Martin > Cc: Benjamin Herrenschmidt > Cc:

[PATCH] cfg80211: further limit wiphy names to 64 bytes

2018-05-14 Thread Eric Biggers
From: Eric Biggers wiphy names were recently limited to 128 bytes by commit a7cfebcb7594 ("cfg80211: limit wiphy names to 128 bytes"). As it turns out though, this isn't sufficient because dev_vprintk_emit() needs the syslog header string

[PATCH v4 1/3] random: Fix whitespace pre random-bytes work

2018-05-14 Thread Tobin C. Harding
There are a couple of whitespace issues around the function get_random_bytes_arch(). In preparation for patching this function let's clean them up. Signed-off-by: Tobin C. Harding Acked-by: Theodore Ts'o --- drivers/char/random.c | 3 +-- 1 file changed, 1

[PATCH v4 0/3] enable early printing of hashed pointers

2018-05-14 Thread Tobin C. Harding
Currently if an attempt is made to print a pointer before there is enough entropy then '(ptrval)' is printed. This makes debugging stack traces during early boot difficult. One partial solution to this problem is to use the hw RNG if it is available. This version drops the final patch

[PATCH v4 3/3] vsprintf: Use hw RNG for ptr_key

2018-05-14 Thread Tobin C. Harding
Currently we must wait for enough entropy to become available before hashed pointers can be printed. We can remove this wait by using the hw RNG if available. Use hw RNG to get keying material. Suggested-by: Kees Cook Signed-off-by: Tobin C. Harding ---

[PATCH v4 2/3] random: Return nbytes filled from hw RNG

2018-05-14 Thread Tobin C. Harding
Currently the function get_random_bytes_arch() has return value 'void'. If the hw RNG fails we currently fall back to using get_random_bytes(). This defeats the purpose of requesting random material from the hw RNG in the first place. There are currently no intree users of

linux-next: manual merge of the audit tree with the selinux tree

2018-05-14 Thread Stephen Rothwell
Hi Paul, Today's linux-next merge of the audit tree got a conflict in: security/selinux/selinuxfs.c between commit: 4195ed425d3c ("audit: normalize MAC_STATUS record") from the selinux tree and commits: cdfb6b341f0f ("audit: use inline function to get audit context") d141136f523a

Re: [RFC PATCH 07/11] powerpc: Move arch-specific prctls out of core code

2018-05-14 Thread Michael Ellerman
Dave Martin writes: > This patch moves the powerpc-specific prctl call implementations > out of core code and removes redundant boilerplate associated with > them. > > No functional change. > > Signed-off-by: Dave Martin > Cc: Benjamin Herrenschmidt

Re: [PATCH ghak81 RFC V2 3/5] audit: use inline function to get audit context

2018-05-14 Thread Richard Guy Briggs
On 2018-05-14 17:44, Paul Moore wrote: > On Sat, May 12, 2018 at 9:58 PM, Richard Guy Briggs wrote: > > Recognizing that the audit context is an internal audit value, use an > > access function to retrieve the audit context pointer for the task > > rather than reaching directly

Re: [RFC PATCH 06/11] powerpc: Remove unused task argument from prctl functions

2018-05-14 Thread Michael Ellerman
Dave Martin writes: > Some powerpc-specific prctl backends take a task argument that is > redundant, since the only thing ever passed is "current". > > This patch gets rid of the redundant arguments. > > No functional change. > > Signed-off-by: Dave Martin

RE: for_each_cpu() is buggy for UP kernel?

2018-05-14 Thread Dexuan Cui
> From: Linus Torvalds > Sent: Sunday, May 13, 2018 11:22 > On Tue, May 8, 2018 at 11:24 PM Dexuan Cui wrote: > > > Should we fix the for_each_cpu() in include/linux/cpumask.h for UP? > > As Thomas points out, this has come up before. > >

[PATCH] kernel: sys: fix potential Spectre v1

2018-05-14 Thread Gustavo A. R. Silva
resource can be controlled by user-space, hence leading to a potential exploitation of the Spectre variant 1 vulnerability. This issue was detected with the help of Smatch: kernel/sys.c:1474 __do_compat_sys_old_getrlimit() warn: potential spectre issue 'get_current()->signal->rlim' (local cap)

[PATCH v2 5/5] hisi: Consolidate the Kconfigs for the CLOCK_STUB and the MAILBOX

2018-05-14 Thread Leo Yan
From: Daniel Lezcano The current defconfig is inconsistent as it selects the mailbox and the clock for the hi6220 and the hi3660 without having their Kconfigs making sure the dependencies are correct. It ends up when selecting different versions for the kernel (for

[PATCH v2 4/5] arm64: dts: hi3660: Add thermal cooling management

2018-05-14 Thread Leo Yan
From: Tao Wang Add nodes and properties for thermal cooling management support. Signed-off-by: Tao Wang Signed-off-by: Leo Yan --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 44 +++ 1 file

[PATCH 0/3] x86/build: clean-up of vdso Makefile

2018-05-14 Thread Masahiro Yamada
Masahiro Yamada (3): x86/build: vdso: remove unused $(vobjs-nox32) in Makefile x86/build: vdso: remove unnecessary export in Makefile x86/build: vdso: put generated linker scripts to $(obj)/ arch/x86/entry/vdso/Makefile | 11 --- arch/x86/um/vdso/Makefile| 4 ++-- 2 files

[PATCH v2 3/5] arm64: dts: hi3660: Add CPU frequency scaling support

2018-05-14 Thread Leo Yan
Add two CPU OPP tables, one table is corresponding to one cluster, which allow CPU frequency scaling on hi3660 platforms. Signed-off-by: Leo Yan --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 86 +++ 1 file changed, 86 insertions(+) diff --git

[PATCH v2 2/5] arm64: dts: hi3660: Add stub clock node

2018-05-14 Thread Leo Yan
From: Kaihua Zhong Add stub clock node for hi3660 platform. Reviewed-by: Leo Yan Signed-off-by: Kaihua Zhong Signed-off-by: Leo Yan --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 7 +++ 1 file

Re: [PATCH v9 1/2] arch/*: Add CONFIG_ARCH_HAVE_CMPXCHG64

2018-05-14 Thread Michael Ellerman
Hi Bart, Bart Van Assche writes: > ... > diff --git a/Documentation/features/locking/cmpxchg64/arch-support.txt > b/Documentation/features/locking/cmpxchg64/arch-support.txt > new file mode 100644 > index ..65b3290ce5d5 > --- /dev/null > +++

[PATCH 3/3] x86/build: vdso: put generated linker scripts to $(obj)/

2018-05-14 Thread Masahiro Yamada
Let's put generated files to $(obj)/ rather than $(src)/ although this is just a matter of taste because both are the same. Signed-off-by: Masahiro Yamada --- arch/x86/entry/vdso/Makefile | 4 ++-- arch/x86/um/vdso/Makefile| 2 +- 2 files changed, 3

[PATCH v2 0/5] Hi3660: enable power management features

2018-05-14 Thread Leo Yan
Since hi3660 drivers have been merged into Linux kernel (mailbox driver is in Linux-next branch and other drivers are existed in Linux mainline kernel), so this patch series is to enable power management features on hi3660. This patch series includes device tree binding for mailbox, stub clock

[PATCH 2/3] x86/build: vdso: remove unnecessary export in Makefile

2018-05-14 Thread Masahiro Yamada
CPPFLAGS_vdso.lds is assigned and referenced internally in each Makefile. No need to export it. Signed-off-by: Masahiro Yamada --- arch/x86/entry/vdso/Makefile | 2 +- arch/x86/um/vdso/Makefile| 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff

[PATCH v2 1/5] arm64: dts: hi3660: Add mailbox node

2018-05-14 Thread Leo Yan
From: Kaihua Zhong Add the mailbox controller node for hi3660 platform. Signed-off-by: Kaihua Zhong Signed-off-by: Leo Yan --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 8 1 file changed, 8 insertions(+) diff

[PATCH 1/3] x86/build: vdso: remove unused $(vobjs-nox32) in Makefile

2018-05-14 Thread Masahiro Yamada
Since commit bfad381c0d1e ("x86/vdso: Improve the fake section headers"), $(vobjs-nox32) is empty. Therefore, $(vobjs64-for-x32) is the same as $(vobjs-y). Signed-off-by: Masahiro Yamada --- arch/x86/entry/vdso/Makefile | 5 + 1 file changed, 1 insertion(+),

Re: [PATCH] lib/rhashtable: reorder some inititalization sequences

2018-05-14 Thread David Miller
From: Davidlohr Bueso Date: Mon, 14 May 2018 08:13:32 -0700 > rhashtable_init() allocates memory at the very end of the > call, once everything is setup; with the exception of the > nelems parameter. However, unless the user is doing something > bogus with params for which

Re: [PATCH] mptlan: fix mpt_lan_sdu_send()'s return type

2018-05-14 Thread Martin K. Petersen
Luc, >> You forgot to update the function prototype accordingly. > > Hmmm, the function mpt_lan_sdu_send() has no other declaration > than the one I modified the return type in this patch. > > Must be a misunderstanding somewhere. My bad, I thought you were updating mpt_lan_send_reply().

[PATCH] usbip: usbip_host: fix NULL-ptr deref and use-after-free errors

2018-05-14 Thread Shuah Khan (Samsung OSG)
usbip_host updates device status without holding lock from stub probe, disconnect and rebind code paths. When multiple requests to import a device are received, these unprotected code paths step all over each other and drive fails with NULL-ptr deref and use-after-free errors. The driver uses a

Re: [PATCH] scsi: clean up generated file scsi_devinfo_tbl.c

2018-05-14 Thread Martin K. Petersen
Randy, > "make clean" should remove the generated file "scsi_devinfo_tbl.c", so > list it in the clean-files variable so that the file gets cleaned up. Applied to 4.17/scsi-fixes. Thank you! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH net 2/2] vmxnet3: use DMA memory barriers where required

2018-05-14 Thread David Miller
From: Date: Mon, 14 May 2018 08:14:49 -0400 > The gen bits must be read first from (resp. written last to) DMA memory. > The proper way to enforce this on Linux is to call dma_rmb() (resp. > dma_wmb()). > > Signed-off-by: Regis Duchesne > Acked-by: Ronak

Re: [PATCH net 1/2] vmxnet3: set the DMA mask before the first DMA map operation

2018-05-14 Thread David Miller
From: Date: Mon, 14 May 2018 08:28:26 -0400 > The DMA mask must be set before, not after, the first DMA map operation, or > the first DMA map operation could in theory fail on some systems. > > Fixes: b0eb57cb97e78 ("VMXNET3: Add support for virtual IOMMU") > Signed-off-by:

Re: [PATCH] scsi: esas2r: fix spelling mistake: "requestss" -> "requests"

2018-05-14 Thread Martin K. Petersen
Colin, > Trivial fix to spelling mistake in esas2r_debug message Applied to 4.18/scsi-queue. Thanks! -- Martin K. Petersen Oracle Linux Engineering

  1   2   3   4   5   6   7   8   9   10   >