Re: [PATCH v3 00/30] Update cros_ec_commands.h

2019-05-21 Thread Lee Jones
On Tue, 21 May 2019, Benson Leung wrote: > Hi Lee, > > On Sat, May 18, 2019 at 07:39:49AM +0100, Lee Jones wrote: > > On Fri, 17 May 2019, Gwendal Grignou wrote: > > > > > Lee, > > > > > > I verified and merged the changes on the kernels (3.18, 4.4 and 4.14) > > > used on chromebook using a

Re: [alsa-devel] [PATCH v3 00/30] Update cros_ec_commands.h

2019-05-21 Thread Lee Jones
On Tue, 21 May 2019, Fabien Lahoudere wrote: > Le jeudi 09 mai 2019 à 14:13 -0700, Gwendal Grignou a écrit : > > The interface between CrosEC embedded controller and the host, > > described by cros_ec_commands.h, as diverged from what the embedded > > controller really support. > > > > The

Re: linux-next: manual merge of the pidfd tree with Linus' tree

2019-05-21 Thread Greg Kroah-Hartman
On Wed, May 22, 2019 at 11:01:15AM +1000, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the pidfd tree got a conflict in: > > tools/testing/selftests/pidfd/Makefile > > between commit: > > ec8f24b7faaf ("treewide: Add SPDX license identifier - Makefile/Kconfig") > >

Re: [PATCH] pinctrl: stmfx: Fix compile issue when CONFIG_OF_GPIO is not defined

2019-05-21 Thread Lee Jones
On Mon, 20 May 2019, Amelie Delaunay wrote: > When CONFIG_GPIO_OF is not defined, struct gpio_chip 'of_node' member does > not exist: > drivers/pinctrl/pinctrl-stmfx.c: In function 'stmfx_pinctrl_probe': > drivers/pinctrl/pinctrl-stmfx.c:652:17: error: 'struct gpio_chip' has no > member named

[GIT] Networking

2019-05-21 Thread David Miller
1) Clear up some recent tipc regressions because of registration ordering. Fix from Junwei Hu. 2) tipc's TLV_SET() can read past the end of the supplied buffer during the copy. From Chris Packham. 3) ptp example program doesn't match the kernel, from Richard Cochran. 4) Outgoing

Re: [GIT PULL] Immutable branch between LEDs, MFD and REGULATOR

2019-05-21 Thread Lee Jones
On Tue, 21 May 2019, Jacek Anaszewski wrote: > The following changes since commit a188339ca5a396acc588e5851ed7e19f66b0ebd9: > > Linux 5.2-rc1 (2019-05-19 15:47:09 -0700) > > are available in the git repository at: > >

Re: [PATCH 5.1 000/128] 5.1.4-stable review

2019-05-21 Thread Greg Kroah-Hartman
On Wed, May 22, 2019 at 10:33:06AM +0530, Naresh Kamboju wrote: > On Mon, 20 May 2019 at 18:03, Greg Kroah-Hartman > wrote: > > > > This is the start of the stable review cycle for the 5.1.4 release. > > There are 128 patches in this series, all will be posted as a response > > to this one. If

Re: [PATCH 5.1 000/128] 5.1.4-stable review

2019-05-21 Thread Greg Kroah-Hartman
On Tue, May 21, 2019 at 03:11:15PM -0600, shuah wrote: > On 5/20/19 6:13 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.1.4 release. > > There are 128 patches in this series, all will be posted as a response > > to this one. If anyone has any issues with

Re: [PATCH] scripts/spelling.txt: drop "sepc" from the misspelling list

2019-05-21 Thread Joe Perches
On Tue, 2019-05-21 at 21:47 -0700, Paul Walmsley wrote: > On Tue, 21 May 2019, Andrew Morton wrote: > > > On Sun, 19 May 2019 11:24:22 -0700 (PDT) Paul Walmsley > > wrote: > > > > > On Sat, 18 May 2019, Joe Perches wrote: > > > > > > > On Sat, 2019-05-18 at 14:00 -0700, Paul Walmsley wrote: >

[PATCH 1/3] perf tools: Protect reading thread's namespace

2019-05-21 Thread Namhyung Kim
It seems that the current code lacks holding the namespace lock in thread__namespaces(). Otherwise it can see inconsistent results. Signed-off-by: Namhyung Kim --- tools/perf/util/thread.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git

[PATCH 0/3] perf tools: Assorted fixes and cleanups for namespace events

2019-05-21 Thread Namhyung Kim
Hello, These are some missing pieces that I found during the code-reading. Thanks, Namhyung Namhyung Kim (3): perf tools: Protect reading thread's namespace perf tools: Add missing swap ops for namespace events perf top: Enable --namespaces option tools/perf/Documentation/perf-top.txt

[PATCH 2/3] perf tools: Add missing swap ops for namespace events

2019-05-21 Thread Namhyung Kim
In case it's recorded from other arch. Signed-off-by: Namhyung Kim --- tools/perf/util/session.c | 21 + 1 file changed, 21 insertions(+) diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c index 2310a1752983..54cf163347f7 100644 ---

[PATCH 3/3] perf top: Enable --namespaces option

2019-05-21 Thread Namhyung Kim
Since perf record already have the option, let's have it for perf top as well. Signed-off-by: Namhyung Kim --- tools/perf/Documentation/perf-top.txt | 5 + tools/perf/builtin-top.c | 5 + 2 files changed, 10 insertions(+) diff --git a/tools/perf/Documentation/perf-top.txt

Re: [PATCH 4/4] serial: 8250-mtk: modify uart DMA rx

2019-05-21 Thread Long Cheng
On Fri, 2019-05-17 at 15:36 +0800, Long Cheng wrote: > On Wed, 2019-05-15 at 21:48 +0800, Nicolas Boichat wrote: > > On Sat, Apr 27, 2019 at 11:36 AM Long Cheng wrote: > > > > > > Modify uart rx and complete for DMA. > > > > I don't know much about the DMA framework, but can you please explain >

Re: [RFC PATCH 00/11] bpf, trace, dtrace: DTrace BPF program type implementation and sample use

2019-05-21 Thread Kris Van Hees
On Tue, May 21, 2019 at 05:48:11PM -0400, Steven Rostedt wrote: > On Tue, 21 May 2019 14:43:26 -0700 > Alexei Starovoitov wrote: > > > Steve, > > sounds like you've missed all prior threads. > > I probably have missed them ;-) > > > The feedback was given to Kris it was very clear: > >

[PATCH] Revert "Bluetooth: Align minimum encryption key size for LE and BR/EDR connections"

2019-05-21 Thread Vasily Khoruzhick
This reverts commit d5bb334a8e171b262e48f378bd2096c0ea458265. This commit breaks some HID devices, see [1] for details https://bugzilla.kernel.org/show_bug.cgi?id=203643 Signed-off-by: Vasily Khoruzhick Cc: sta...@vger.kernel.org --- include/net/bluetooth/hci_core.h | 3 ---

RE: [PATCH] PCI: hv: Detect and fix Hyper-V PCI domain number collision

2019-05-21 Thread Dexuan Cui
> From: Stephen Hemminger > Sent: Tuesday, May 21, 2019 9:40 PM > > Thanks for working this out with the host team. > Now if we could just get some persistent slot information it would make udev > in systemd happy. The slot info comes from the serial number "hpdev->desc.ser", which may not

Re: [RFC 0/7] introduce memory hinting API for external process

2019-05-21 Thread Daniel Colascione
On Tue, May 21, 2019 at 4:39 AM Christian Brauner wrote: > > On Tue, May 21, 2019 at 01:30:29PM +0200, Christian Brauner wrote: > > On Tue, May 21, 2019 at 08:05:52PM +0900, Minchan Kim wrote: > > > On Tue, May 21, 2019 at 10:42:00AM +0200, Christian Brauner wrote: > > > > On Mon, May 20, 2019 at

[PATCH] input: silead: Add MSSL0017 to acpi_device_id.

2019-05-21 Thread Danct12
On Chuwi Hi10 Plus, the Silead device id is MSSL0017. Signed-off-by: Danct12 --- drivers/input/touchscreen/silead.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/touchscreen/silead.c b/drivers/input/touchscreen/silead.c index 09241d4cdebc..06f0eb04a8fd 100644 ---

Re: ext4 regression (was Re: [PATCH 4.19 000/105] 4.19.45-stable review)

2019-05-21 Thread Theodore Ts'o
On Tue, May 21, 2019 at 11:27:21PM +0530, Naresh Kamboju wrote: > Steps to reproduce is, > running LTP three test cases in sequence on x86 device. > # cd ltp/runtest > # cat syscalls ( only three test case) > open12 open12 > madvise06 madvise06 > poll02 poll02 > # > > as Dan referring to, > >

Re: [PATCH 4.19 000/105] 4.19.45-stable review

2019-05-21 Thread Naresh Kamboju
On Mon, 20 May 2019 at 17:51, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.19.45 release. > There are 105 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > >

Re: [PATCH 5.1 000/128] 5.1.4-stable review

2019-05-21 Thread Naresh Kamboju
On Mon, 20 May 2019 at 18:03, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.1.4 release. > There are 128 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > >

Re: [PATCH 5.0 000/123] 5.0.18-stable review

2019-05-21 Thread Naresh Kamboju
On Mon, 20 May 2019 at 17:56, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.0.18 release. > There are 123 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > >

Re: [PATCH 2/2] powerpc/perf: Fix mmcra corruption by bhrb_filter

2019-05-21 Thread Madhavan Srinivasan
On 11/05/19 8:12 AM, Ravi Bangoria wrote: Consider a scenario where user creates two events: 1st event: attr.sample_type |= PERF_SAMPLE_BRANCH_STACK; attr.branch_sample_type = PERF_SAMPLE_BRANCH_ANY; fd = perf_event_open(attr, 0, 1, -1, 0); This sets cpuhw->bhrb_filter

Re: [PATCH v6 3/3] i2c-ocores: sifive: add polling mode workaround for FU540-C000 SoC.

2019-05-21 Thread Sagar Kadam
Hi Andrew, On Tue, May 21, 2019 at 7:24 PM Andrew Lunn wrote: > > > static void ocores_process_polling(struct ocores_i2c *i2c) > > { > > + const struct of_device_id *match; > > + > > + match = of_match_node(ocores_i2c_match, i2c->adap.dev.of_node); > > + > > while (1) { > >

Re: [PATCH v6 1/3] dt-bindings: i2c: extend existing opencore bindings.

2019-05-21 Thread Sagar Kadam
Hi Andrew, On Tue, May 21, 2019 at 7:26 PM Andrew Lunn wrote: > > > Required properties: > > -- compatible : "opencores,i2c-ocores" or "aeroflexgaisler,i2cmst" > > +- compatible : "opencores,i2c-ocores", > > + "aeroflexgaisler,i2cmst", > > +

Re: [PATCH v4 2/3] x86/kexec/64: Error out if try to jump to old 4-level kernel from 5-level kernel

2019-05-21 Thread Baoquan He
On 05/22/19 at 11:20am, Dave Young wrote: > How about the userspace kexec-tools? It needs a similar detection, but > I'm not sure how to detect paging mode, maybe some sysfs entry or > vmcoreinfo in /proc/vmcore In usersapce, I plan to parse /proc/kcore to get the starting address of page_offset

Re: [PATCH] scripts/spelling.txt: drop "sepc" from the misspelling list

2019-05-21 Thread Paul Walmsley
On Tue, 21 May 2019, Andrew Morton wrote: > On Sun, 19 May 2019 11:24:22 -0700 (PDT) Paul Walmsley > wrote: > > > On Sat, 18 May 2019, Joe Perches wrote: > > > > > On Sat, 2019-05-18 at 14:00 -0700, Paul Walmsley wrote: > > > > The RISC-V architecture has a register named the "Supervisor

[PATCH] x86/fpu: allow kernel_fpu_{begin,end} to be used by non-GPL modules

2019-05-21 Thread Aleksa Sarai
Prior to [1], all non-GPL modules were able to make use of SIMD on x86 by making use of the __kernel_fpu_* API. Given that __kernel_fpu_* were both EXPORT_SYMBOL'd and kernel_fpu_* are such trivial wrappers around the now-static __kernel_fpu_*, it seems to me that there is no reason to have

Re: [GIT PULL] SPDX update for 5.2-rc1 - round 1

2019-05-21 Thread Masahiro Yamada
On Tue, May 21, 2019 at 10:34 PM Greg KH wrote: > > The following changes since commit a188339ca5a396acc588e5851ed7e19f66b0ebd9: > > Linux 5.2-rc1 (2019-05-19 15:47:09 -0700) > > are available in the Git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git

Re: [PATCH] misc: remove redundant 'default n' from Kconfig-s

2019-05-21 Thread Frederic Barrat
Le 20/05/2019 à 16:10, Bartlomiej Zolnierkiewicz a écrit : 'default n' is the default value for any bool or tristate Kconfig setting so there is no need to write it explicitly. Also since commit f467c5640c29 ("kconfig: only write '# CONFIG_FOO is not set' for visible symbols") the Kconfig

Re: [PATCH] tty_io: Fix a missing-check bug in drivers/tty/tty_io.c

2019-05-21 Thread Jiri Slaby
On 22. 05. 19, 3:40, Gen Zhang wrote: > In alloc_tty_struct(), tty->dev is assigned by tty_get_device(). And it > calls class_find_device(). And class_find_device() may return NULL. > And tty->dev is dereferenced in the following codes. When > tty_get_device() returns NULL, dereferencing this

Re: [RFC 0/7] introduce memory hinting API for external process

2019-05-21 Thread Brian Geffon
To expand on the ChromeOS use case we're in a very similar situation to Android. For example, the Chrome browser uses a separate process for each individual tab (with some exceptions) and over time many tabs remain open in a back-grounded or idle state. Given that we have a lot of information

Re: [RFC PATCH 00/11] bpf, trace, dtrace: DTrace BPF program type implementation and sample use

2019-05-21 Thread Kris Van Hees
On Tue, May 21, 2019 at 04:26:19PM -0700, Alexei Starovoitov wrote: > On Tue, May 21, 2019 at 05:36:49PM -0400, Kris Van Hees wrote: > > On Tue, May 21, 2019 at 01:55:34PM -0700, Alexei Starovoitov wrote: > > > On Tue, May 21, 2019 at 02:41:37PM -0400, Kris Van Hees wrote: > > > > On Tue, May 21,

Re: [PATCH] arm64: dts: sdm845: Add CPU topology

2019-05-21 Thread Bjorn Andersson
On Thu 16 May 04:54 PDT 2019, Amit Kucheria wrote: > (cc'ing Andy's correct email address) > > On Wed, May 15, 2019 at 2:46 AM Stephen Boyd wrote: > > > > Quoting Amit Kucheria (2019-05-13 04:54:12) > > > On Mon, May 13, 2019 at 4:31 PM Amit Kucheria > > > wrote: > > > > > > > > On Tue, Jan

Re: [PATCH v2 8/9] arm64: dts: qcom: sdm845: Add PSCI cpuidle low power states

2019-05-21 Thread Bjorn Andersson
On Tue 21 May 02:35 PDT 2019, Amit Kucheria wrote: > From: "Raju P.L.S.S.S.N" > > Add device bindings for cpuidle states for cpu devices. > > Cc: > Signed-off-by: Raju P.L.S.S.S.N > Reviewed-by: Evan Green > [amit: rename the idle-states to more generic names and fixups] > Signed-off-by:

Re: [PATCH v2 9/9] arm64: dts: msm8996: Add proper capacity scaling for the cpus

2019-05-21 Thread Bjorn Andersson
On Tue 21 May 02:35 PDT 2019, Amit Kucheria wrote: > msm8996 features 4 cpus - 2 in each cluster. However, all cpus implement > the same microarchitecture and the two clusters only differ in the > maximum frequency attainable by the CPUs. > > Add capacity-dmips-mhz property to allow the topology

Re: [PATCH v2 6/9] arm64: dts: qcom: msm8996: Add PSCI cpuidle low power states

2019-05-21 Thread Bjorn Andersson
On Tue 21 May 02:35 PDT 2019, Amit Kucheria wrote: > Add device bindings for cpuidle states for cpu devices. > > msm8996 features 4 cpus - 2 in each cluster. However, all cpus implement > the same microarchitecture and the two clusters only differ in the > maximum frequency attainable by the

Re: [PATCH] PCI / PM: Don't runtime suspend when device only supports wakeup from D0

2019-05-21 Thread Kai Heng Feng
at 6:23 AM, Bjorn Helgaas wrote: [+cc Mathias, linux-usb] On Wed, May 22, 2019 at 12:31:04AM +0800, Kai-Heng Feng wrote: There's an xHC device that doesn't wake when a USB device gets plugged to its USB port. The driver's own runtime suspend callback was called, PME signaling was enabled,

linux-next: Tree for May 22

2019-05-21 Thread Stephen Rothwell
Hi all, Changes since 20190521: The imx-mxs tree lost its build failure. The scsi tree gained conflicts against Linus' tree. The pidfd tree gained a conflict against Linus' tree. The akpm-current tree gained a conflict against the pidfd tree. Non-merge commits (relative to Linus' tree): 1426

Re: [PATCH v5 4/6] usb: roles: add API to get usb_role_switch by node

2019-05-21 Thread Chunfeng Yun
On Tue, 2019-05-21 at 13:33 +0300, Heikki Krogerus wrote: > On Tue, May 21, 2019 at 03:35:04PM +0800, Chunfeng Yun wrote: > > Hi, > > On Mon, 2019-05-20 at 09:45 +, Biju Das wrote: > > > > > > Hi Heikki, > > > > > > Thanks for the feedback. > > > > > > > Subject: Re: [PATCH v5 4/6] usb:

Re: [PATCH v2 5/9] arm64: dts: qcom: qcs404: Add PSCI cpuidle low power states

2019-05-21 Thread Bjorn Andersson
On Tue 21 May 02:35 PDT 2019, Amit Kucheria wrote: > From: Niklas Cassel > > Add device bindings for cpuidle states for cpu devices. > > Signed-off-by: Niklas Cassel > Reviewed-by: Vinod Koul > [rename the idle-states to more generic names and fixups] > Signed-off-by: Amit Kucheria >

Re: [PATCH v2 4/9] arm64: dts: qcom: msm8916: Use more generic idle state names

2019-05-21 Thread Bjorn Andersson
On Tue 21 May 02:35 PDT 2019, Amit Kucheria wrote: > Instead of using Qualcomm-specific terminology, use generic node names > for the idle states that are easier to understand. Move the description > into the "idle-state-name" property. > > Signed-off-by: Amit Kucheria > Reviewed-by: Niklas

Re: [PATCH v2 3/9] arm64: dts: qcom: msm8916: Add entry-method property for the idle-states node

2019-05-21 Thread Bjorn Andersson
On Tue 21 May 02:35 PDT 2019, Amit Kucheria wrote: > The idle-states binding documentation[1] mentions that the > 'entry-method' property is required on 64-bit platforms and must be set > to "psci". > > [1] Documentation/devicetree/bindings/arm/idle-states.txt (see > idle-states node) > >

[PATCH] tick/sched: Drop duplicated tick_sched.inidle

2019-05-21 Thread Peter Xu
It is set before entering idle and cleared when quitting idle, though it seems to be a complete duplicate of tick_sched.idle_active. We should probably be able to use any one of them to replace the other. CC: Frederic Weisbecker CC: Thomas Gleixner CC: Ingo Molnar CC:

[V3 1/2] dmaengine: fsl-qdma: fixed the source/destination descriptor format

2019-05-21 Thread Peng Ma
CMD of Source/Destination descriptor format should be lower of struct fsl_qdma_engine number data address. Signed-off-by: Peng Ma --- changed for V3: - Delete macro to simplify code. drivers/dma/fsl-qdma.c | 18 ++ 1 files changed, 10 insertions(+), 8 deletions(-)

[V3 2/2] dmaengine: fsl-qdma: Add improvement

2019-05-21 Thread Peng Ma
When an error occurs we should clean the error register then to return Signed-off-by: Peng Ma --- changed for V3: - no changed. drivers/dma/fsl-qdma.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/drivers/dma/fsl-qdma.c b/drivers/dma/fsl-qdma.c index

Re: [v3 PATCH 2/2] mm: vmscan: correct some vmscan counters for THP swapout

2019-05-21 Thread Yang Shi
On 5/22/19 9:23 AM, Huang, Ying wrote: Yang Shi writes: Since commit bd4c82c22c36 ("mm, THP, swap: delay splitting THP after swapped out"), THP can be swapped out in a whole. But, nr_reclaimed and some other vm counters still get inc'ed by one even though a whole THP (512 pages) gets

Re: [v3 PATCH 2/2] mm: vmscan: correct some vmscan counters for THP swapout

2019-05-21 Thread Yang Shi
On 5/22/19 12:00 AM, Johannes Weiner wrote: On Tue, May 21, 2019 at 05:40:42PM +0800, Yang Shi wrote: Since commit bd4c82c22c36 ("mm, THP, swap: delay splitting THP after swapped out"), THP can be swapped out in a whole. But, nr_reclaimed and some other vm counters still get inc'ed by one

Re: [PATCH v4 2/3] x86/kexec/64: Error out if try to jump to old 4-level kernel from 5-level kernel

2019-05-21 Thread Dave Young
On 05/22/19 at 11:20am, Dave Young wrote: > On 05/09/19 at 09:36am, Baoquan He wrote: > > If the running kernel has 5-level paging activated, the 5-level paging > > mode is preserved across kexec. If the kexec'ed kernel does not contain > > support for handling active 5-level paging mode in the

[PATCH v2] signal: Adjust error codes according to restore_user_sigmask()

2019-05-21 Thread Deepa Dinamani
A regression caused by 854a6ed56839 ("signal: Add restore_user_sigmask()") caused users of epoll_pwait, io_pgetevents, and ppoll to notice a latent problem in signal handling during these syscalls. That patch (854a6ed56839) moved the signal_pending() check closer to restoring of the user sigmask.

Re: [PATCH v4 2/3] x86/kexec/64: Error out if try to jump to old 4-level kernel from 5-level kernel

2019-05-21 Thread Dave Young
On 05/09/19 at 09:36am, Baoquan He wrote: > If the running kernel has 5-level paging activated, the 5-level paging > mode is preserved across kexec. If the kexec'ed kernel does not contain > support for handling active 5-level paging mode in the decompressor, the > decompressor will crash with

Re: [PATCH net] xfrm: Fix xfrm sel prefix length validation

2019-05-21 Thread Herbert Xu
On Tue, May 21, 2019 at 08:59:47PM +0530, Anirudh Gupta wrote: > Family of src/dst can be different from family of selector src/dst. > Use xfrm selector family to validate address prefix length, > while verifying new sa from userspace. > > Validated patch with this command: > ip xfrm state add

Re: [PATCH v4 3/3] x86/kdump/64: Change the upper limit of crashkernel reservation

2019-05-21 Thread Baoquan He
On 05/22/19 at 11:11am, Dave Young wrote: > Hi Baoquan, > > A few nitpicks, otherwise > Acked-by: Dave Young > > On 05/09/19 at 09:36am, Baoquan He wrote: > > Restrict kdump to only reserve crashkernel below 64TB. > > > > The reaons is that the kdump may jump from 5-level to 4-level, and if >

RE: [PATCH] PCI: hv: Detect and fix Hyper-V PCI domain number collision

2019-05-21 Thread Dexuan Cui
> From: linux-hyperv-ow...@vger.kernel.org > Sent: Sunday, May 19, 2019 3:29 PM > > Due to Azure host agent settings, the device instance ID's bytes 8 and 9 > are no longer unique. This causes some of the PCI devices not showing up > in VMs with multiple passthrough devices, such as GPUs. So, as

Re: [PATCH v4 3/3] x86/kdump/64: Change the upper limit of crashkernel reservation

2019-05-21 Thread Dave Young
Hi Baoquan, A few nitpicks, otherwise Acked-by: Dave Young On 05/09/19 at 09:36am, Baoquan He wrote: > Restrict kdump to only reserve crashkernel below 64TB. > > The reaons is that the kdump may jump from 5-level to 4-level, and if > the kdump kernel is put above 64TB, then the jumping will

Re: [PATCH v2 1/2] Bluetooth: Disable LE Advertising in hci_suspend_dev()

2019-05-21 Thread Kai Heng Feng
Hi Marcel, at 5:25 PM, Kai-Heng Feng wrote: LE Advertising may wake up system during system-wide sleep, disable it to prevent this issue from happening. Do the reverse in hci_resume_dev(). Do you have any suggestion for this patch? Kai-Heng Signed-off-by: Kai-Heng Feng --- v2: -

答复: 答复: [PATCH] input: alps-fix the issue the special alps trackpoint do not work.

2019-05-21 Thread Xiaoxiao Liu
Hi Pali, Why it does not report input data? --> The alps devices which detected to use the ALPS_PROTO_V8 contains ALPS touchpad and ALPS track point. But the ALPS_PROTO_V8 do not support the track point device process. When the track point was detected to use ALPS_PROTO_V8 ,the v8

Re: [RFC 2/2] Add the ability to lock down access to the running kernel image

2019-05-21 Thread James Morris
On Tue, 21 May 2019, Matthew Garrett wrote: > + int (*locked_down)(const char *where, enum lockdown_level level); > +static int lockdown_is_locked_down(const char *what, enum lockdown_level > level) I'm guessing 'what' is the best option here. -- James Morris

Re: [PATCH v2] vt: Fix a missing-check bug in drivers/tty/vt/vt.c

2019-05-21 Thread Nicolas Pitre
On Tue, 21 May 2019, Gen Zhang wrote: > On Tue, May 21, 2019 at 12:30:38AM -0400, Nicolas Pitre wrote: > > Now imagine that MIN_NR_CONSOLES is defined to 10 instead of 1. > > > > What happens with allocated memory if the err_vc condition is met on the > > 5th loop? > Yes, vc->vc_screenbuf from

Re: [RFC] Turn lockdown into an LSM

2019-05-21 Thread James Morris
On Tue, 21 May 2019, Matthew Garrett wrote: > Hi James, > > This is a quick attempt to integrate lockdown into the existing LSM > framework. It adds a new lockdown security hook and an LSM that defines > the existing coarse-grained policy, and also adds a new > DEFINE_EARLY_LSM() definition in

Re: [PATCH v3 13/13] epoll: implement epoll_create2() syscall

2019-05-21 Thread Andrew Morton
On Thu, 16 May 2019 12:20:50 +0200 Roman Penyaev wrote: > On 2019-05-16 12:03, Arnd Bergmann wrote: > > On Thu, May 16, 2019 at 10:59 AM Roman Penyaev > > wrote: > >> > >> epoll_create2() is needed to accept EPOLL_USERPOLL flags > >> and size, i.e. this patch wires up polling from userspace.

[No Subject]

2019-05-21 Thread Gardner, Tim
We are now providing business & personal loans: -Rate starting at: 2.05%. -Flexible repayment: up to 30 years. For more information and application, please reply. > To unsubscribe please reply with "unsubscribe" as subject.

Re: [PATCH] mm/kasan: Print frame description for stack bugs

2019-05-21 Thread Andrew Morton
On Sun, 19 May 2019 04:48:21 +0800 kbuild test robot wrote: > Hi Marco, > > Thank you for the patch! Perhaps something to improve: > > [auto build test WARNING on linus/master] > [also build test WARNING on v5.1 next-20190517] > [if your patch is applied to the wrong git tree, please drop us a

Re: [PATCH v2 2/3] clk: sprd: Check error only for devm_regmap_init_mmio()

2019-05-21 Thread Baolin Wang
On Wed, 22 May 2019 at 09:15, Chunyan Zhang wrote: > > The function devm_regmap_init_mmio() wouldn't return NULL pointer for > now, so only need to ensure the return value is not an error code. > > Signed-off-by: Chunyan Zhang Reviewed-by: Baolin Wang > --- > drivers/clk/sprd/common.c | 2 +-

Re: [PATCH v2 1/3] clk: sprd: Switch from of_iomap() to devm_ioremap_resource()

2019-05-21 Thread Baolin Wang
On Wed, 22 May 2019 at 09:15, Chunyan Zhang wrote: > > devm_ioremap_resources() automatically requests resources and devm_ wrappers > do better error handling and unmapping of the I/O region when needed, > that would make drivers more clean and simple. > > Signed-off-by: Chunyan Zhang

Re: [PATCH] initramfs: Fix a missing-check bug in init/initramfs.c

2019-05-21 Thread Gen Zhang
On Wed, May 22, 2019 at 10:00:37AM +0800, Li Zhijian wrote: > > On 5/22/19 09:04, Gen Zhang wrote: > >In dir_add(), de and de->name are allocated by kmalloc() and kstrdup(). > >And de->name is dereferenced in the following codes. However, memory > >allocation functions such as kmalloc() and

[PATCH -mm -V9] mm, swap: fix race between swapoff and some swap operations

2019-05-21 Thread Huang, Ying
From: Huang Ying When swapin is performed, after getting the swap entry information from the page table, system will swap in the swap entry, without any lock held to prevent the swap device from being swapoff. This may cause the race like below, CPU 1 CPU 2 -

[PATCH] soc: qcom: apr: Don't use reg for domain id

2019-05-21 Thread Bjorn Andersson
The reg property represents the address and size on the bus that a device lives, but for APR the parent is a rpmsg bus, which does not have numerical addresses. Simply defining #address/#size-cells to 1 and 0, respectively, to silence the compiler is not an appropriate solution. Replace the use

Re: [PATCH] consolemap: Fix a memory leaking bug in drivers/tty/vt/consolemap.c

2019-05-21 Thread Gen Zhang
On Tue, May 21, 2019 at 01:44:33PM -0700, Kees Cook wrote: > This doesn't look safe to me: p->uni_pgdir[n] will still have a handle > to the freed memory, won't it? > Thanks for your reply, Kees! I think you are right. Maybe we should do this: kfree(p1); p->uni_pgdir[n] = NULL; Is

Re: [RFC 7/7] mm: madvise support MADV_ANONYMOUS_FILTER and MADV_FILE_FILTER

2019-05-21 Thread Minchan Kim
On Tue, May 21, 2019 at 11:33:10AM -0400, Johannes Weiner wrote: > On Tue, May 21, 2019 at 11:55:33AM +0900, Minchan Kim wrote: > > On Mon, May 20, 2019 at 11:28:01AM +0200, Michal Hocko wrote: > > > [cc linux-api] > > > > > > On Mon 20-05-19 12:52:54, Minchan Kim wrote: > > > > System could have

RE: [PATCH V3 2/4] nvmem: imx: add i.MX8 nvmem driver

2019-05-21 Thread Peng Fan
Hi Srinivas, > Subject: Re: [PATCH V3 2/4] nvmem: imx: add i.MX8 nvmem driver > > > > On 15/05/2019 08:53, Peng Fan wrote: > > This patch adds i.MX8 nvmem ocotp driver to access fuse via RPC to > > i.MX8 system controller. > > > > Cc: Srinivas Kandagatla > > Cc: Shawn Guo > > Cc: Sascha

[PATCH V3 RESEND 2/4] nvmem: imx: add i.MX8 nvmem driver

2019-05-21 Thread Peng Fan
This patch adds i.MX8 nvmem ocotp driver to access fuse via RPC to i.MX8 system controller. Cc: Srinivas Kandagatla Cc: Shawn Guo Cc: Sascha Hauer Cc: Pengutronix Kernel Team Cc: Fabio Estevam Cc: NXP Linux Team Cc: linux-arm-ker...@lists.infradead.org Signed-off-by: Peng Fan --- V3: Use

[PATCH V3 RESEND 3/4] defconfig: arm64: enable i.MX8 SCU octop driver

2019-05-21 Thread Peng Fan
Build in CONFIG_NVMEM_IMX_OCOTP_SCU. Cc: Catalin Marinas Cc: Will Deacon Cc: Shawn Guo Cc: Andy Gross Cc: Maxime Ripard Cc: Olof Johansson Cc: Jagan Teki Cc: Bjorn Andersson Cc: Leonard Crestez Cc: Marc Gonzalez Cc: Enric Balletbo i Serra Cc: linux-arm-ker...@lists.infradead.org

[PATCH V3 RESEND 1/4] dt-bindings: fsl: scu: add ocotp binding

2019-05-21 Thread Peng Fan
NXP i.MX8QXP is an ARMv8 SoC with a Cortex-M4 core inside as system controller(SCU), the ocotp controller is being controlled by the SCU, so Linux need use RPC to SCU for ocotp handling. This patch adds binding doc for i.MX8 SCU OCOTP driver. Cc: Mark Rutland Cc: Shawn Guo Cc: Ulf Hansson Cc:

[PATCH V3 RESEND 4/4] arm64: dts: imx: add i.MX8QXP ocotp support

2019-05-21 Thread Peng Fan
Add i.MX8QXP ocotp node Cc: Rob Herring Cc: Mark Rutland Cc: Shawn Guo Cc: Sascha Hauer Cc: Pengutronix Kernel Team Cc: Fabio Estevam Cc: NXP Linux Team Cc: Anson Huang Cc: Daniel Baluta Cc: devicet...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Reviewed-by: Dong Aisheng

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

2019-05-21 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm-current tree got a conflict in: kernel/pid.c between commit: 99e9da7f2796 ("pid: add pidfd_open()") from the pidfd tree and commit: 51c59c914840 ("kernel/pid.c: convert struct pid:count to refcount_t") from the akpm-current tree. I fixed

[PATCH] Input: uinput - add compat ioctl number translation for UI_*_FF_UPLOAD

2019-05-21 Thread Andrey Smirnov
In the case of compat syscall ioctl numbers for UI_BEGIN_FF_UPLOAD and UI_END_FF_UPLOAD need to be adjusted before being passed on uinput_ioctl_handler() since code built with -m32 will be passing slightly different values. Extend the code already covering UI_SET_PHYS to cover UI_BEGIN_FF_UPLOAD

[PATCH] tty_io: Fix a missing-check bug in drivers/tty/tty_io.c

2019-05-21 Thread Gen Zhang
In alloc_tty_struct(), tty->dev is assigned by tty_get_device(). And it calls class_find_device(). And class_find_device() may return NULL. And tty->dev is dereferenced in the following codes. When tty_get_device() returns NULL, dereferencing this tty->dev null pointer may cause the kernel go

[PATCH] clk: imx: imx8mm: correct audio_pll2_clk to audio_pll2_out

2019-05-21 Thread Peng Fan
There is no audio_pll2_clk registered, it should be audio_pll2_out. Cc: Fixes: ba5625c3e27 ("clk: imx: Add clock driver support for imx8mm") Signed-off-by: Peng Fan --- drivers/clk/imx/clk-imx8mm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH v2] Bluetooth: Retry configure request if result is L2CAP_CONF_UNKNOWN

2019-05-21 Thread Andrey Smirnov
Due to: * Current implementation of l2cap_config_rsp() dropping BT connection if sender of configuration response replied with unknown option failure (Result=0x0003/L2CAP_CONF_UNKNOWN) * Current implementation of l2cap_build_conf_req() adding L2CAP_CONF_RFC(0x04) option to initial

[PATCH v2 0/3] Return immediately if sprd_clk_regmap_init() fails

2019-05-21 Thread Chunyan Zhang
The function sprd_clk_regmap_init() doesn't always return success, drivers should return immediately when it fails rather than continue the clock initialization. The patch 1/3 in this set switchs to use devm_ioremap_resources() instead of of_iomap(), that will make caller programs more simple.

Re: [v3 PATCH 2/2] mm: vmscan: correct some vmscan counters for THP swapout

2019-05-21 Thread Huang, Ying
Yang Shi writes: > Since commit bd4c82c22c36 ("mm, THP, swap: delay splitting THP after > swapped out"), THP can be swapped out in a whole. But, nr_reclaimed > and some other vm counters still get inc'ed by one even though a whole > THP (512 pages) gets swapped out. > > This doesn't make too

[PATCH v2 3/3] clk: sprd: Add check for return value of sprd_clk_regmap_init()

2019-05-21 Thread Chunyan Zhang
sprd_clk_regmap_init() doesn't always return success, adding check for its return value should make the code more strong. Signed-off-by: Chunyan Zhang Reviewed-by: Baolin Wang --- drivers/clk/sprd/sc9860-clk.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH v2 2/3] clk: sprd: Check error only for devm_regmap_init_mmio()

2019-05-21 Thread Chunyan Zhang
The function devm_regmap_init_mmio() wouldn't return NULL pointer for now, so only need to ensure the return value is not an error code. Signed-off-by: Chunyan Zhang --- drivers/clk/sprd/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/sprd/common.c

[PATCH v2 3/3] clk: sprd: Add check the return value of sprd_clk_regmap_init()

2019-05-21 Thread Chunyan Zhang
sprd_clk_regmap_init() doesn't always return success, adding check for its return value should make the code more strong. Signed-off-by: Chunyan Zhang --- drivers/clk/sprd/sc9860-clk.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/clk/sprd/sc9860-clk.c

[PATCH v2 1/3] clk: sprd: Switch from of_iomap() to devm_ioremap_resource()

2019-05-21 Thread Chunyan Zhang
devm_ioremap_resources() automatically requests resources and devm_ wrappers do better error handling and unmapping of the I/O region when needed, that would make drivers more clean and simple. Signed-off-by: Chunyan Zhang --- drivers/clk/sprd/common.c | 7 ++- 1 file changed, 6

[PATCH v2 0/3] Return immediately if sprd_clk_regmap_init() fails

2019-05-21 Thread Chunyan Zhang
The function sprd_clk_regmap_init() doesn't always return success, drivers should return immediately when it fails ranther than continue the clock initialization. The patch 1/3 in this set switchs to use devm_ioremap_resources() instead of of_iomap(), that will make caller programs more simple.

Re: [PATCH v4 1/4] ftrace: Implement fs notification for tracing_max_latency

2019-05-21 Thread Steven Rostedt
On Wed, 22 May 2019 02:30:14 +0200 Viktor Rosendahl wrote: > > I can try to add the static branch if you want it though. Yes, it would need a static branch to prevent overhead. > > best regards, > > Viktor > --- > include/linux/ftrace.h | 13 + > kernel/sched/core.c| 2 +

[PATCH] initramfs: Fix a missing-check bug in init/initramfs.c

2019-05-21 Thread Gen Zhang
In dir_add(), de and de->name are allocated by kmalloc() and kstrdup(). And de->name is dereferenced in the following codes. However, memory allocation functions such as kmalloc() and kstrdup() may fail. Dereferencing this de->name null pointer may cause the kernel go wrong. Thus we should check

[PATCH v8 5/5] media: imx: Try colorimetry at both sink and source pads

2019-05-21 Thread Steve Longerbeam
Retask imx_media_fill_default_mbus_fields() to try colorimetry parameters, renaming it to to imx_media_try_colorimetry(), and call it at both sink and source pad try_fmt's. The unrelated check for uninitialized field value is moved out to appropriate places in each subdev try_fmt. The IC now

linux-next: manual merge of the pidfd tree with Linus' tree

2019-05-21 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the pidfd tree got a conflict in: tools/testing/selftests/pidfd/Makefile between commit: ec8f24b7faaf ("treewide: Add SPDX license identifier - Makefile/Kconfig") from Linus' tree and commit: 233ad92edbea ("pidfd: add polling selftests") from the

Re: [v3 PATCH] mm: mmu_gather: remove __tlb_reset_range() for force flush

2019-05-21 Thread Yang Shi
On 5/22/19 7:18 AM, Andrew Morton wrote: On Mon, 20 May 2019 11:17:32 +0800 Yang Shi wrote: A few new fields were added to mmu_gather to make TLB flush smarter for huge page by telling what level of page table is changed. __tlb_reset_range() is used to reset all these page table state to

Re: [PATCH v4 0/1] Use HMM for ODP v4

2019-05-21 Thread Jason Gunthorpe
On Tue, May 21, 2019 at 04:53:22PM -0400, Jerome Glisse wrote: > On Mon, May 06, 2019 at 04:56:57PM -0300, Jason Gunthorpe wrote: > > On Thu, Apr 11, 2019 at 02:13:13PM -0400, jgli...@redhat.com wrote: > > > From: Jérôme Glisse > > > > > > Just fixed Kconfig and build when ODP was not enabled,

Re: [GIT PULL] Immutable branch between LEDs, MFD and REGULATOR

2019-05-21 Thread Dan Murphy
Mark On 5/21/19 4:15 PM, Mark Brown wrote: > On Tue, May 21, 2019 at 10:30:38PM +0200, Jacek Anaszewski wrote: > >> regulator: lm363x: Make the gpio register enable flexible >> regulator: lm363x: Add support for LM36274 > > Why have these been applied, I haven't reviewed them? As

[PATCH] staging: rtl8723bs: Add missing blank lines

2019-05-21 Thread Fabio Lima
This patch resolves the following warning from checkpatch.pl WARNING: Missing a blank line after declarations Signed-off-by: Fabio Lima --- drivers/staging/rtl8723bs/core/rtw_debug.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/rtl8723bs/core/rtw_debug.c

Re: [PATCH 1/1] signal: Adjust error codes according to restore_user_sigmask()

2019-05-21 Thread Deepa Dinamani
On Tue, May 21, 2019 at 5:35 PM Deepa Dinamani wrote: > > > > > It's been 2 weeks and this fix hasn't appeared in mmots / mmotm. > > > > I also noticed it's missing Cc: for stable@ (below) > > > > > > Why is a -stable backport needed? I see some talk above about lost > > > signals but it is

[PATCH] slab: cleanup after /proc/slab_allocators removal

2019-05-21 Thread Yury Norov
From: Yury Norov The commit 7878c231dae0 ("slab: remove /proc/slab_allocators") removes DEBUG_SLAB_LEAK config everywhere but a parisc config. It doesn't look intentional. Fix it. Signed-off-by: Yury Norov --- arch/parisc/configs/c8000_defconfig | 1 - 1 file changed, 1 deletion(-) diff

Re: [PATCH 1/1] signal: Adjust error codes according to restore_user_sigmask()

2019-05-21 Thread Deepa Dinamani
> > > It's been 2 weeks and this fix hasn't appeared in mmots / mmotm. > > > I also noticed it's missing Cc: for stable@ (below) > > > > Why is a -stable backport needed? I see some talk above about lost > > signals but it is unclear whether these are being observed after fixing > > the

Re: [PATCH v4 1/4] ftrace: Implement fs notification for tracing_max_latency

2019-05-21 Thread Viktor Rosendahl
On 5/21/19 6:01 PM, Steven Rostedt wrote:> > > Note, you need to add the scheduling and power management maintainers > when adding trace events to their code. > My bad. > As these trace events become visible to user space, and you only need a > callback to disable fsnotify, it may be better to

  1   2   3   4   5   6   7   8   9   10   >