[PATCH tip/core/rcu 13/21] tools/memory-model: Fix checkalllitmus.sh comment

2019-03-26 Thread Paul E. McKenney
The checkalllitmus.sh runs litmus tests in the litmus-tests directory, not those in the github archive, so this commit updates the comment to reflect this reality. Signed-off-by: Paul E. McKenney --- tools/memory-model/scripts/checkalllitmus.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deleti

[PATCH tip/core/rcu 19/21] tools/memory-model: Keep assembly-language litmus tests

2019-03-26 Thread Paul E. McKenney
This commit retains the assembly-language litmus tests generated from the C-language litmus tests, appending the hardware tag to the original C-language litmus test's filename. Thus, S+poonceonces.litmus.AArch64 contains the Armv8 assembly language corresponding to the C-language S+poonceonces.lit

[PATCH tip/core/rcu 11/21] tools/memory-model: Make judgelitmus.sh handle hardware verifications

2019-03-26 Thread Paul E. McKenney
This commit makes the judgelitmus.sh script check the --hw argument (AKA the LKMM_HW_MAP_FILE environment variable) and to adjust its judgment for a run where a C-language litmus test has been translated to assembly and the assembly version verified. In this case, the assembly verification output

[PATCH tip/core/rcu 21/21] tools/memory-model: Make runlitmus.sh check for jingle errors

2019-03-26 Thread Paul E. McKenney
It turns out that the jingle7 tool is currently a bit picky about the litmus tests it is willing to process. This commit therefore ensures that jingle7 failures are reported. Signed-off-by: Paul E. McKenney --- tools/memory-model/scripts/runlitmus.sh | 5 + 1 file changed, 5 insertions(+)

Re: [PATCH v5 1/2] Bluetooth: hci_qca: Added support for WCN3998

2019-03-26 Thread Matthias Kaehlcke
On Tue, Mar 26, 2019 at 05:15:55PM +0530, Harish Bandi wrote: > Added new compatible for WCN3998 and corresponding voltage > and current values to WCN3998 compatible. > Changed driver code to support WCN3998 > > Signed-off-by: Harish Bandi > --- > Changes in V5: > - changed is_qca_soc_type_wcn399

Re: [PATCH] rcutorture: Select from only online CPUs

2019-03-26 Thread Joel Fernandes
On Tue, Mar 26, 2019 at 01:46:13PM -0700, Paul E. McKenney wrote: [snip] > > Any way, I will just add back CPU0 forcefully to the cpus list in my > > testing, > > without checking for the online file existence, and see what happens :-) If > > there's no smoke, then I'll roll that into a patch and

[PATCH] ARM: socfpga: Fix object reference leaks in socfpga_setup_ocram_self_refresh

2019-03-26 Thread Huang Zijiang
The of_find_device_by_node() takes a reference to the underlying device structure, we should release that reference. Signed-off-by: Huang Zijiang --- arch/arm/mach-socfpga/pm.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-socfpga/pm.c b/arch/arm/mach-socf

Re: [PATCH v3 2/2] dt-bindings: net: bluetooth: Add device tree bindings for QTI chip wcn3998

2019-03-26 Thread Matthias Kaehlcke
On Mon, Mar 25, 2019 at 05:00:31PM +0530, c-hba...@codeaurora.org wrote: > Hi Matthias, > > On 2019-03-15 00:26, Matthias Kaehlcke wrote: > > Hi Harish, > > > > On Wed, Mar 13, 2019 at 12:00:06PM +0530, c-hba...@codeaurora.org wrote: > > > Hi Matthias, > > > > > > > > > On 2019-03-12 22:29, Ma

Re: [PATCH v2] RISC-V: Always compile mm/init.c with cmodel=medany

2019-03-26 Thread Alistair Francis
On Mon, 2019-03-25 at 19:22 -0700, Palmer Dabbelt wrote: > On Mon, 25 Mar 2019 00:01:45 PDT (-0700), a...@brainfault.org wrote: > > On Mon, Mar 25, 2019 at 12:18 PM Christoph Hellwig < > > h...@infradead.org> wrote: > > > On Mon, Mar 25, 2019 at 01:25:50PM +0800, Alan Kao wrote: > > > > Hi Anup, >

Re: [PATCH v2 3/5] devfreq: rk3399_dmc: Pass ODT and auto power down parameters to TF-A.

2019-03-26 Thread Matthias Kaehlcke
On Fri, Mar 22, 2019 at 08:45:26AM -0400, Gaël PORTAY wrote: > Hi Matthias, > > On Thu, Mar 21, 2019 at 05:01:07PM -0700, Matthias Kaehlcke wrote: > > > ... > > > > > > So, for a reason that I ignore, if we try to save unecessary calls to > > > ROCKCHIP_SIP_CONFIG_DRAM_SET_ODT_PD (odt_enable has

Re: [PATCH] trace: events: fix error directive in argument list

2019-03-26 Thread Roopa Prabhu
On Mon, Mar 25, 2019 at 12:53 PM Hariprasad Kelam wrote: > > This patch fixes below spare errors. > > Sparse error: > make C=2 CF=-D__CHECK_ENDIAN__ M=net/core > ./include/trace/events/neigh.h:73:1: error: directive in argument list > ./include/trace/events/neigh.h:78:1: error: directive in argume

[PATCH] Input: i8042 - signal wakeup from atkbd/psmouse

2019-03-26 Thread Dmitry Torokhov
Instead of signalling wakeup directly from i8042, let psmouse and atkbd drivers execute basic protocol handling and only then signal wakeup condition. This solves the issue where we increment wakeup counter simply because we are getting responses from keyboard/mouse to the commands we ourselves sen

[PATCH 7/7] ARM: dts: sun8i: tbs-a711: Enable UART2 (for NEO-6M GPS module)

2019-03-26 Thread megous
From: Ondrej Jirman TBS A711 tablet contains u-blox NEO-6M module connected to UART2. Enable UART2 to gain access to the module from userspace. Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 21 + 1 file changed, 21 insertions(+) diff --git a/

Re: [PATCH] trace: events: fix error directive in argument list

2019-03-26 Thread Roopa Prabhu
On Mon, Mar 25, 2019 at 1:11 PM Steven Rostedt wrote: > > On Tue, 26 Mar 2019 01:23:03 +0530 > Hariprasad Kelam wrote: > > > > --- > > include/trace/events/neigh.h | 19 +-- > > 1 file changed, 5 insertions(+), 14 deletions(-) > > > > diff --git a/include/trace/events/neigh.h b/i

Re: [PATCH V31 25/25] debugfs: Disable open() when kernel is locked down

2019-03-26 Thread Greg KH
On Tue, Mar 26, 2019 at 12:20:24PM -0700, Andy Lutomirski wrote: > On Tue, Mar 26, 2019 at 11:28 AM Matthew Garrett > wrote: > > > > From: Matthew Garrett > > > > debugfs has not been meaningfully audited in terms of ensuring that > > userland cannot trample over the kernel. At Greg's request, di

Re: [PATCH V31 25/25] debugfs: Disable open() when kernel is locked down

2019-03-26 Thread Greg KH
On Tue, Mar 26, 2019 at 11:27:41AM -0700, Matthew Garrett wrote: > From: Matthew Garrett > > debugfs has not been meaningfully audited in terms of ensuring that > userland cannot trample over the kernel. At Greg's request, disable > access to it entirely when the kernel is locked down. This is do

Re: [PATCH 06/10] mm: vmscan: demote anon DRAM pages to PMEM node

2019-03-26 Thread Keith Busch
On Mon, Mar 25, 2019 at 12:49:21PM -0700, Yang Shi wrote: > On 3/24/19 3:20 PM, Keith Busch wrote: > > How do these pages eventually get to swap when migration fails? Looks > > like that's skipped. > > Yes, they will be just put back to LRU. Actually, I don't expect it would be > very often to hav

Re: [PATCH] HID: intel-ish-hid: ISH firmware loader client driver

2019-03-26 Thread Nick Crews
Hi Rushikesh, I know I've been reviewing this on Chromium, but I have some more larges-scale design thoughts. > > diff --git a/drivers/hid/intel-ish-hid/ishtp-fw-loader.c > > b/drivers/hid/intel-ish-hid/ishtp-fw-loader.c > > new file mode 100644 > > index 000..85d71d3 > > --- /dev/null > > +++

Re: [RFC PATCH v2 1/1] mm/vmap: keep track of free blocks for vmap allocation

2019-03-26 Thread Roman Gushchin
On Tue, Mar 26, 2019 at 03:51:53PM +0100, Uladzislau Rezki wrote: > Hello, Roman. > > > > > > > So, does it mean that this function always returns two following elements? > > > Can't it return a single element using the return statement instead? > > > The second one can be calculated as ->next? >

Re: [PATCH v4 2/2] staging: mt7621-mmc: Initialize completions a single time during probe

2019-03-26 Thread Greg Kroah-Hartman
On Tue, Mar 26, 2019 at 09:21:39AM -0600, George Hilliard wrote: > The module was initializing completions whenever it was going to wait on > them, and not when the completion was allocated. This is incorrect > according to the completion docs: > > Calling init_completion() on the same comple

Re: [PATCH 02/17] x86, lto: Mark all top level asm statements as .text

2019-03-26 Thread Andi Kleen
> Well, we better should know the real reason for this wreckage. I mean, the > default section for text is suprisingly .text. I don't see a reason why > this would be any different for an assembly function implemented in a C > file. What happens is that when the function before the asm changes the

Re: [PATCH 5.0 00/52] 5.0.5-stable review

2019-03-26 Thread Greg Kroah-Hartman
On Tue, Mar 26, 2019 at 05:18:04PM -0600, shuah wrote: > On 3/26/19 12:29 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.0.5 release. > > There are 52 patches in this series, all will be posted as a response > > to this one. If anyone has any issues with t

Re: [PATCH 5.0 00/52] 5.0.5-stable review

2019-03-26 Thread Greg Kroah-Hartman
On Tue, Mar 26, 2019 at 03:20:22PM +, Jon Hunter wrote: > > On 26/03/2019 06:29, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.0.5 release. > > There are 52 patches in this series, all will be posted as a response > > to this one. If anyone has any issue

[PATCH] vhost: zero vhost_vsock memory on allocation

2019-03-26 Thread Vitaly Mayatskikh
This fixes OOPS when using under-initialized vhost_vsock object. The code had a combo of kzalloc plus vmalloc as a fallback initially, but it has been replaced by plain kvmalloc in commit 6c5ab6511f71 ("mm: support __GFP_REPEAT in kvmalloc_node for >32kB") OOPS is easy to reproduce with open/ioct

Re: [PATCH 5.0 00/52] 5.0.5-stable review

2019-03-26 Thread Greg Kroah-Hartman
On Tue, Mar 26, 2019 at 10:50:11AM -0700, Guenter Roeck wrote: > On Tue, Mar 26, 2019 at 03:29:47PM +0900, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.0.5 release. > > There are 52 patches in this series, all will be posted as a response > > to this one. If

Re: [PATCH v2 0/4] Add new features for the Spreadtrum serial controller

2019-03-26 Thread Greg KH
On Tue, Mar 26, 2019 at 06:41:31PM +0800, Baolin Wang wrote: > Hi Greg, > > On Mon, 4 Mar 2019 at 16:59, Baolin Wang wrote: > > > > This patch set fixes the baud rate calculation formula issue, as well as > > adding power management support and DMA mode support for the Spreadtrum > > serial contr

[PATCH v4] kmemleak: survive in a low-memory situation

2019-03-26 Thread Qian Cai
Kmemleak could quickly fail to allocate an object structure and then disable itself below in a low-memory situation. For example, running a mmap() workload triggering swapping and OOM. This is especially problematic for running things like LTP testsuite where one OOM test case would disable the who

Re: [RFC][PATCH 03/16] sched: Wrap rq::lock access

2019-03-26 Thread Subhra Mazumdar
On 3/22/19 5:06 PM, Subhra Mazumdar wrote: On 3/21/19 2:20 PM, Julien Desfossez wrote: On Tue, Mar 19, 2019 at 10:31 PM Subhra Mazumdar wrote: On 3/18/19 8:41 AM, Julien Desfossez wrote: On further investigation, we could see that the contention is mostly in the way rq locks are taken.

Re: [PATCH 02/17] x86, lto: Mark all top level asm statements as .text

2019-03-26 Thread Andi Kleen
Following up to myself here... > > If it's the former, then we must backport those fixes. > > > > Could you please verify with the GCC people as you seem to have a > > reproducer of some sort. > > Okay. I filed https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89839 > > I thought I had already done

Re: [git pull v2] habanalabs fixes for 5.1-rc3

2019-03-26 Thread Greg KH
On Tue, Mar 26, 2019 at 10:13:35AM +0200, Oded Gabbay wrote: > Hi Greg, > > A couple of important fixes for habanalabs driver: > > - Fix host crash upon resume after suspend > - Fix MMU related bugs which result in user's jobs getting stuck > - Fix race between user context cleanup and hard-reset

Re: [patch 1/2] cpu/hotplug: Prevent crash when CPU bringup fails on CONFIG_HOTPLUG_CPU=n

2019-03-26 Thread Greg KH
On Tue, Mar 26, 2019 at 05:36:05PM +0100, Thomas Gleixner wrote: > Tianyu reported a crash in a CPU hotplug teardown callback when booting a > kernel which has CONFIG_HOTPLUG_CPU disabled with the 'nosmt' boot > parameter. > > It turns out that the SMP=y CONFIG_HOTPLUG_CPU=n case has been broken >

Re: [patch 2/2] x86/smp: Enforce CONFIG_HOTPLUG_CPU when SMP=y

2019-03-26 Thread Greg KH
On Tue, Mar 26, 2019 at 05:36:06PM +0100, Thomas Gleixner wrote: > The SMT disable 'nosmt' command line argument is not working properly when > CONFIG_HOTPLUG_CPU is disabled. The teardown of the sibling CPUs which are > required to be brought up due to the MCE issues, cannot work. The CPUs are > t

Re: [PATCH v2 3/3] rcu: validate arguments for rcu tracepoints

2019-03-26 Thread Yafang Shao
On Tue, Mar 26, 2019 at 11:30 PM Steven Rostedt wrote: > > On Tue, 26 Mar 2019 08:18:15 -0700 > "Paul E. McKenney" wrote: > > > On Tue, Mar 26, 2019 at 08:13:11PM +0800, Yafang Shao wrote: > > > When CONFIG_RCU_TRACE is not set, all these tracepoints are defined as > > > do-nothing macro. > > > W

Re: [PATCH v2] x86/syscalls: Mark expected switch fall-throughs

2019-03-26 Thread Dmitry V. Levin
On Tue, Mar 26, 2019 at 04:12:45PM +0100, Oleg Nesterov wrote: > On 03/23, Thomas Gleixner wrote: [...] > > 2) syscall_set_arguments() has been introduced in 2008 and we still have > > no caller. Instead of polishing it, can it be removed completely or are > > there plans to actually use i

[PATCH 1/2] regulator: as3722: Convert to use regulator_set/get_current_limit_regmap

2019-03-26 Thread Axel Lin
Use regulator_set/get_current_limit_regmap helpers to save some code. Signed-off-by: Axel Lin --- drivers/regulator/as3722-regulator.c | 212 --- 1 file changed, 60 insertions(+), 152 deletions(-) diff --git a/drivers/regulator/as3722-regulator.c b/drivers/regulator/as3

[PATCH 2/2] regulator: as3722: Slightly improve readability

2019-03-26 Thread Axel Lin
Add a local variable *desc to avoid too many change lines due to over 80 characters. Signed-off-by: Axel Lin --- drivers/regulator/as3722-regulator.c | 137 --- 1 file changed, 58 insertions(+), 79 deletions(-) diff --git a/drivers/regulator/as3722-regulator.c b/drivers

Investment Proposal.

2019-03-26 Thread Saleh Hussien Consultancy
Greetings, We are consultancy firm situated in Bahrain currently looking to finance new or existing projects in any industry. Currently we are sourcing for investment opportunities for our review and consideration and we provide financial and strategic advisory services to growing companies an

Re: [PATCH v4 2/2] staging: mt7621-mmc: Initialize completions a single time during probe

2019-03-26 Thread George Hilliard
On Tue, Mar 26, 2019 at 6:46 PM Greg Kroah-Hartman wrote: > > On Tue, Mar 26, 2019 at 09:21:39AM -0600, George Hilliard wrote: > > - init_completion(&host->cmd_done); > > + // The completion should have been consumed by the previous command > > + // response handler, because the mmc re

[PATCH v3 0/4] Add Apple SPI keyboard and trackpad driver

2019-03-26 Thread Ronald Tschalär
This changeset adds a driver for the SPI keyboard and trackpad on recent MacBook's and MacBook Pro's. The driver has seen a fair amount of use over the last 2 years (basically anybody running linux on these machines), with only relatively small changes in the last year or so. For those interested,

[PATCH v3 2/4] lib/hexdump.c: factor out generic hexdump formatting for reuse.

2019-03-26 Thread Ronald Tschalär
This introduces print_hex_dump_to_cb() which contains all the hexdump formatting minus the actual printk() call, allowing an arbitrary print function to be supplied instead. And print_hex_dump() is re-implemented using print_hex_dump_to_cb(). This allows other hex-dump logging functions to be prov

[PATCH v3 1/4] drm/bridge: sil_sii8620: depend on INPUT instead of selecting it.

2019-03-26 Thread Ronald Tschalär
commit d6abe6df706c66d803e6dd4fe98c1b6b7f125a56 (drm/bridge: sil_sii8620: do not have a dependency of RC_CORE) added a dependency on INPUT. However, this causes problems with other drivers, in particular an input driver that depends on MFD_INTEL_LPSS_PCI (to be added in a future commit): drivers

[PATCH v3 4/4] Input: add Apple SPI keyboard and trackpad driver.

2019-03-26 Thread Ronald Tschalär
The keyboard and trackpad on recent MacBook's (since 8,1) and MacBookPro's (13,* and 14,*) are attached to an SPI controller instead of USB, as previously. The higher level protocol is not publicly documented and hence has been reverse engineered. As a consequence there are still a number of unknow

[PATCH v3 3/4] driver core: add dev_print_hex_dump() logging function.

2019-03-26 Thread Ronald Tschalär
This is the dev_xxx() analog to print_hex_dump(), using dev_printk() instead of straight printk() to match other dev_xxx() logging functions. --- drivers/base/core.c| 43 ++ include/linux/device.h | 15 +++ 2 files changed, 58 insertions(+)

Re: [PATCH v2] x86/boot: Use EFI setup data if provided

2019-03-26 Thread b...@redhat.com
Hi Junichi, On 03/26/19 at 02:57pm, Borislav Petkov wrote: > On Mon, Mar 25, 2019 at 11:10:01PM +, Junichi Nomura wrote: > > efi_get_rsdp_addr() and kexec_get_rsdp_addr() could be implemented > > like this (sorry about the pseudo code): > > This doesn't look like what I suggested: > > > So e

[PATCH v5 0/2] staging: mt7621-mmc: correctness fixes

2019-03-26 Thread George Hilliard
Now formatted according to checkpatch.pl, not my own semi-coherent sense of what the kernel style should be. No functionality changes. George

[PATCH v5 2/2] staging: mt7621-mmc: Initialize completions a single time during probe

2019-03-26 Thread George Hilliard
The module was initializing completions whenever it was going to wait on them, and not when the completion was allocated. This is incorrect according to the completion docs: Calling init_completion() on the same completion object twice is most likely a bug [...] Re-initialization is also

RE: [PATCH 3.18 132/134] rcu: Do RCU GP kthread self-wakeup from softirq and interrupt

2019-03-26 Thread Zhang, Jun
Hello,Paul I use a new NUC (made in 2017) to test, meet the same hang. System run very slowly. But I use my PC (made before 2015), test V3.18.136+ patch for 12 hours, still well. Maybe V3.18.y don't support some new devices. -Original Message- From: Paul E. McKenney [mailto:paul...@l

[PATCH v5 1/2] staging: mt7621-mmc: Remove obsolete Kconfig flags

2019-03-26 Thread George Hilliard
These values are not referred to anywhere else in the kernel. Card detect is controlled by the device tree property "mediatek,cd-poll", and there is no driver support for eMMC whatsoever. Signed-off-by: George Hilliard --- v2: Rewrite of v1 v3: [Not present] v4: Resubmit of v2 v5: No change from

Re: [PATCH v2 0/4] Add new features for the Spreadtrum serial controller

2019-03-26 Thread Baolin Wang
On Wed, 27 Mar 2019 at 08:59, Greg KH wrote: > > On Tue, Mar 26, 2019 at 06:41:31PM +0800, Baolin Wang wrote: > > Hi Greg, > > > > On Mon, 4 Mar 2019 at 16:59, Baolin Wang wrote: > > > > > > This patch set fixes the baud rate calculation formula issue, as well as > > > adding power management sup

RE: [PATCHv4 16/28] PCI: mobiveil: refactor Mobiveil PCIe Host Bridge IP driver

2019-03-26 Thread Z.q. Hou
Hi Lorenzo, Thanks for your comments! > -Original Message- > From: Lorenzo Pieralisi > Sent: 2019年3月27日 1:34 > To: Z.q. Hou > Cc: linux-...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > devicet...@vger.kernel.org; linux-kernel@vger.kernel.org; > bhelg...@google.com; robh...@k

Re: [PATCH V31 25/25] debugfs: Disable open() when kernel is locked down

2019-03-26 Thread Matthew Garrett
On Tue, Mar 26, 2019 at 5:31 PM Greg KH wrote: > On Tue, Mar 26, 2019 at 11:27:41AM -0700, Matthew Garrett wrote: > > From: Matthew Garrett > > > > debugfs has not been meaningfully audited in terms of ensuring that > > userland cannot trample over the kernel. At Greg's request, disable > > acces

RE: [PATCHv4 00/28] PCI: refactor Mobiveil driver and add PCIe Gen4 driver for NXP Layerscape SoCs

2019-03-26 Thread Z.q. Hou
Hi Lorenzo, Thanks for your comments! > -Original Message- > From: Lorenzo Pieralisi > Sent: 2019年3月27日 1:38 > To: Z.q. Hou > Cc: linux-...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > devicet...@vger.kernel.org; linux-kernel@vger.kernel.org; > bhelg...@google.com; robh...@k

Re: [PATCH v2 00/11] LSM documentation update

2019-03-26 Thread James Morris
On Tue, 26 Feb 2019, Denis Efremov wrote: > Recent "New LSM Hooks" discussion has led me to the > thought that it might be a good idea to slightly > update the current documentation. The patchset adds > nothing new to the documentation, only fixes the old > description of hooks to reflect their cu

Re: [PATCH] HID: intel-ish-hid: ISH firmware loader client driver

2019-03-26 Thread Srinivas Pandruvada
On Tue, 2019-03-26 at 18:39 -0600, Nick Crews wrote: > Hi Rushikesh, I know I've been reviewing this on Chromium, but I have > some more larges-scale design thoughts. Hi Nick. Does this fundamentally change, the way it is done here or can wait for subsequent revisions later? Thanks, Srinivas >

Re: [PATCH V31 25/25] debugfs: Disable open() when kernel is locked down

2019-03-26 Thread Greg KH
On Tue, Mar 26, 2019 at 07:06:36PM -0700, Matthew Garrett wrote: > On Tue, Mar 26, 2019 at 5:31 PM Greg KH wrote: > > On Tue, Mar 26, 2019 at 11:27:41AM -0700, Matthew Garrett wrote: > > > From: Matthew Garrett > > > > > > debugfs has not been meaningfully audited in terms of ensuring that > > >

[PATCH v5 0/1] mm: introduce put_user_page*(), placeholder versions

2019-03-26 Thread john . hubbard
From: John Hubbard Hi Andrew and all, Can we please apply this for Linux 5.2? I'm adding a Reviewed-by from Christopher Lameter (thanks!), and an updated comment about a race condition (from Kirill's review feedback), and can now make the following statement more confidently: We seem to have p

[PATCH v5 1/1] mm: introduce put_user_page*(), placeholder versions

2019-03-26 Thread john . hubbard
From: John Hubbard Introduces put_user_page(), which simply calls put_page(). This provides a way to update all get_user_pages*() callers, so that they call put_user_page(), instead of put_page(). Also introduces put_user_pages(), and a few dirty/locked variations, as a replacement for release_p

Re: [PATCH v3 3/4] driver core: add dev_print_hex_dump() logging function.

2019-03-26 Thread Greg Kroah-Hartman
On Tue, Mar 26, 2019 at 06:48:06PM -0700, Ronald Tschalär wrote: > This is the dev_xxx() analog to print_hex_dump(), using dev_printk() > instead of straight printk() to match other dev_xxx() logging functions. > --- > drivers/base/core.c| 43 ++ > inclu

[PATCH] input: keyboard: snvs: make sure irq is handled correctly

2019-03-26 Thread Anson Huang
SNVS IRQ is requested before necessary driver data initialized, if there is a pending IRQ during driver probe phase, kernel NULL pointer panic will occur in IRQ handler. To avoid such scenario, need to move the IRQ request to after driver data initialization done. This patch is inspired by NXP's in

Re: [PATCH] ARM: dts: imx6qdl: Specify IMX6QDL_CLK_IPG as "ipg" clock for SDMA

2019-03-26 Thread Andrey Smirnov
On Mon, Mar 25, 2019 at 3:49 AM Fabio Estevam wrote: > > Hi Andrey, > > On Mon, Mar 25, 2019 at 2:01 AM Andrey Smirnov > wrote: > > > diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot/dts/imx6qdl.dtsi > > index 9f9aa6e7ed0e..354feba077b2 100644 > > --- a/arch/arm/boot/dts/imx6qdl.dtsi

Re: [RFC PATCH 0/10] Another Approach to Use PMEM as NUMA Node

2019-03-26 Thread Yang Shi
On 3/26/19 11:37 AM, Michal Hocko wrote: On Tue 26-03-19 11:33:17, Yang Shi wrote: On 3/26/19 6:58 AM, Michal Hocko wrote: On Sat 23-03-19 12:44:25, Yang Shi wrote: With Dave Hansen's patches merged into Linus's tree https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commi

linux-next: build failure after merge of the drm-intel tree

2019-03-26 Thread Stephen Rothwell
Hi all, After merging the drm-intel tree, today's linux-next build (i386 defconfig) failed like this: In file included from drivers/gpu/drm/i915/intel_guc.h:28:0, from drivers/gpu/drm/i915/intel_uc.h:27, from drivers/gpu/drm/i915/intel_uc.c:25: drivers/gpu/drm/i9

RE: [PATCH 8/8] vfio/mdev: Improve the create/remove sequence

2019-03-26 Thread Parav Pandit
Hi Alex, > -Original Message- > From: Alex Williamson > Sent: Tuesday, March 26, 2019 10:27 AM > To: Kirti Wankhede > Cc: Parav Pandit ; k...@vger.kernel.org; linux- > ker...@vger.kernel.org; Neo Jia > Subject: Re: [PATCH 8/8] vfio/mdev: Improve the create/remove sequence > > On Tue, 2

Re: [PATCH 06/10] mm: vmscan: demote anon DRAM pages to PMEM node

2019-03-26 Thread Yang Shi
On 3/26/19 5:35 PM, Keith Busch wrote: On Mon, Mar 25, 2019 at 12:49:21PM -0700, Yang Shi wrote: On 3/24/19 3:20 PM, Keith Busch wrote: How do these pages eventually get to swap when migration fails? Looks like that's skipped. Yes, they will be just put back to LRU. Actually, I don't expect

[PATCHv1 3/7] vfio/mdev: Drop redundant extern for exported symbols

2019-03-26 Thread Parav Pandit
There is no need use 'extern' for exported functions. Reviewed-by: Maxim Levitsky Signed-off-by: Parav Pandit --- include/linux/mdev.h | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/include/linux/mdev.h b/include/linux/mdev.h index d7aee90..4924d80 1

[PATCHv1 0/7] vfio/mdev: Improve vfio/mdev core module

2019-03-26 Thread Parav Pandit
As we would like to use mdev subsystem for wider use case as discussed in [1], [2] apart from an offline discussion. This use case is also discussed with wider forum in [4] in track 'Lightweight NIC HW functions for container offload use cases'. This series is prep-work and improves vfio/mdev modu

[PATCHv1 2/7] vfio/mdev: Removed unused kref

2019-03-26 Thread Parav Pandit
Remove unused kref from the mdev_device structure. Fixes: 7b96953bc640 ("vfio: Mediated device Core driver") Reviewed By: Kirti Wankhede Reviewed-by: Maxim Levitsky Signed-off-by: Parav Pandit --- drivers/vfio/mdev/mdev_core.c| 1 - drivers/vfio/mdev/mdev_private.h | 1 - 2 files changed,

[PATCHv1 7/7] vfio/mdev: Fix race conditions with mdev device life cycle APIs

2019-03-26 Thread Parav Pandit
Below race condition and call trace exist with current device life cycle sequence. 1. In following sequence, child devices created while removing mdev parent device can be left out, or it may lead to race of removing half initialized child mdev devices. issue-1: cpu-0

[PATCHv1 6/7] vfio/mdev: Fix aborting mdev child device removal if one fails

2019-03-26 Thread Parav Pandit
device_for_each_child() stops executing callback function for remaining child devices, if callback hits an error. Each child mdev device is independent of each other. While unregistering parent device, mdev core must remove all child mdev devices. Therefore, mdev_device_remove_cb() always returns s

[PATCHv1 1/7] vfio/mdev: Avoid release parent reference during error path

2019-03-26 Thread Parav Pandit
During mdev parent registration in mdev_register_device(), if parent device is duplicate, it releases the reference of existing parent device. This is incorrect. Existing parent device should not be touched. Fixes: 7b96953bc640 ("vfio: Mediated device Core driver") Reviewed By: Kirti Wankhede Rev

[PATCHv1 4/7] vfio/mdev: Avoid masking error code to EBUSY

2019-03-26 Thread Parav Pandit
Instead of masking return error to -EBUSY, return actual error returned by the driver. Reviewed-by: Maxim Levitsky Signed-off-by: Parav Pandit --- drivers/vfio/mdev/mdev_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/vfio/mdev/mdev_core.c b/drivers/vfio/mdev/

[PATCHv1 5/7] vfio/mdev: Follow correct remove sequence

2019-03-26 Thread Parav Pandit
mdev_remove_sysfs_files() should follow exact mirror sequence of a create, similar to what is followed in error unwinding path of mdev_create_sysfs_files(). Fixes: 6a62c1dfb5c7 ("vfio/mdev: Re-order sysfs attribute creation") Reviewed-by: Maxim Levitsky Signed-off-by: Parav Pandit --- drivers/v

linux-next: Tree for Mar 27

2019-03-26 Thread Stephen Rothwell
Hi all, Changes since 20190326: The bpf-next tree gained a conflict against the net tree. The sound-asoc tree lost its build failure but gained another for which I reverted 3 commits. The drm-intel tree gained a build failure for which I reverted some comits. Non-merge commits (relative to

Re: possible deadlock in acct_pin_kill

2019-03-26 Thread syzbot
syzbot has bisected this bug to: commit e950564b97fd0f541b02eb207685d0746f5ecf29 Author: Miklos Szeredi Date: Tue Jul 24 13:01:55 2018 + vfs: don't evict uninitialized inode bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=1212314320 start commit: da5322e6 Merge tag

Re: [PATCH 4.19 00/45] 4.19.32-stable review

2019-03-26 Thread Naresh Kamboju
On Tue, 26 Mar 2019 at 12:06, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.19.32 release. > There are 45 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. > > Res

Re: [PATCH 5.0 00/52] 5.0.5-stable review

2019-03-26 Thread Naresh Kamboju
On Tue, 26 Mar 2019 at 12:09, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.0.5 release. > There are 52 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. > > Respo

Re: [PATCH RESEND v3] tpm: fix an invalid condition in tpm_common_poll

2019-03-26 Thread Jarkko Sakkinen
On Tue, Mar 26, 2019 at 08:58:28AM -0700, Tadeusz Struk wrote: > Hi Jarkko, > On 3/25/19 7:09 AM, Jarkko Sakkinen wrote: > > It is still missing the comment I asked to add. Otherwise, it is good. > > > > Sorry, I didn't see your email with the suggestion earlier. > To be honest I'm not sure if th

Re: [PATCH] input: keyboard: snvs: make sure irq is handled correctly

2019-03-26 Thread dmitry.torok...@gmail.com
Hi Anson, On Wed, Mar 27, 2019 at 02:47:06AM +, Anson Huang wrote: > SNVS IRQ is requested before necessary driver data initialized, > if there is a pending IRQ during driver probe phase, kernel > NULL pointer panic will occur in IRQ handler. To avoid such > scenario, need to move the IRQ requ

Re: [PATCH V31 25/25] debugfs: Disable open() when kernel is locked down

2019-03-26 Thread Andy Lutomirski
On Tue, Mar 26, 2019 at 5:31 PM Greg KH wrote: > > On Tue, Mar 26, 2019 at 12:20:24PM -0700, Andy Lutomirski wrote: > > On Tue, Mar 26, 2019 at 11:28 AM Matthew Garrett > > wrote: > > > > > > From: Matthew Garrett > > > > > > debugfs has not been meaningfully audited in terms of ensuring that >

Re: linux-next: build failure after merge of the sound-asoc tree

2019-03-26 Thread Michael Ellerman
Mark Brown writes: > On Tue, Mar 26, 2019 at 01:33:49PM +1100, Stephen Rothwell wrote: > >> After merging the sound-asoc tree, today's linux-next build (powerpc >> allyesconfig) failed like this: > >> sound/soc/codecs/tlv320aic32x4-clk.c: In function 'clk_aic32x4_pll_prepare': >> include/linux/ker

Re: [PATCH] Input: elan_i2c - Add many hardware ID for lenovo laptop

2019-03-26 Thread Dmitry Torokhov
On Wed, Mar 13, 2019 at 08:17:43PM +0800, KT Liao wrote: > There are many Lenovo laptop which need elan_i2c support. > Elan collects the list ands add to add to elan_acpi_id[] > > Signed-off-by: KT Liao Applied, thank you. -- Dmitry

Re: [RFC PATCH] x86/entry/64: randomize kernel stack offset upon syscall

2019-03-26 Thread Andy Lutomirski
On Tue, Mar 26, 2019 at 3:35 AM Reshetova, Elena wrote: > > > On Mon, Mar 18, 2019 at 1:16 PM Andy Lutomirski wrote: > > > On Mon, Mar 18, 2019 at 2:41 AM Elena Reshetova > > > wrote: > > > > Performance: > > > > > > > > 1) lmbench: ./lat_syscall -N 100 null > > > > base:

Re: [PATCH] Input: elan_i2c - Add i2c_reset in sysfs for ELAN touchpad recovery

2019-03-26 Thread Dmitry Torokhov
Hi KT, On Sat, Feb 02, 2019 at 03:54:56PM +0800, KT Liao wrote: > Roger from SUSE reported the touchpad on Lenovo yoga2 crush sometimes. > He found that rmmod/modprobe elan_i2c will recover the issue. > He add the workaround on SUSE and solve the problem. > Recently, the workaround fails in kernel

Re: [PATCH 03/17] fpga: dfl: fme: support 512bit data width PR

2019-03-26 Thread Wu Hao
On Tue, Mar 26, 2019 at 04:22:34PM -0500, Scott Wood wrote: > On Tue, 2019-03-26 at 14:33 -0500, Alan Tull wrote: > > On Mon, Mar 25, 2019 at 5:58 PM Scott Wood wrote: > > > > Hi Scott, > > > > > On Mon, 2019-03-25 at 17:53 -0500, Scott Wood wrote: > > > > On Mon, 2019-03-25 at 11:07 +0800, Wu H

Re: Bad file pattern in MAINTAINERS section 'KEYS-TRUSTED'

2019-03-26 Thread Jarkko Sakkinen
On Tue, Mar 26, 2019 at 07:25:17AM -0700, James Bottomley wrote: > On Tue, 2019-03-26 at 08:10 -0400, Mimi Zohar wrote: > > Hi Jarrko, > > > > On Tue, 2019-03-26 at 13:37 +0200, Jarkko Sakkinen wrote: > > > Mimi, > > > > > > Can you fix this and I can ack and send PR through my tree? > > > > Mak

[PATCH v13 00/11] Introduce the for_each_set_clump8 macro

2019-03-26 Thread William Breathitt Gray
Changes in v13: - Reimplement find_next_clump8 to leverage find_next_bit - Restrict bitmap_get_value8/bitmap_set_value8 start argument to values that are multiples of 8; this prevents cases where a clump lands between word boundaries - Trim const qualifiers from bitmap_get_value8, bit

[PATCH v13 01/11] bitops: Introduce the for_each_set_clump8 macro

2019-03-26 Thread William Breathitt Gray
This macro iterates for each 8-bit group of bits (clump) with set bits, within a bitmap memory region. For each iteration, "start" is set to the bit offset of the found clump, while the respective clump value is stored to the location pointed by "clump". Additionally, the bitmap_get_value8 and bitm

[PATCH v13 02/11] lib/test_bitmap.c: Add for_each_set_clump8 test cases

2019-03-26 Thread William Breathitt Gray
The introduction of the for_each_set_clump8 macro warrants test cases to verify the implementation. This patch adds test case checks for whether an out-of-bounds clump index is returned, a zero clump is returned, or the returned clump value differs from the expected clump value. Cc: Rasmus Villemo

Re: Bad file pattern in MAINTAINERS section 'KEYS-TRUSTED'

2019-03-26 Thread Jarkko Sakkinen
On Tue, Mar 26, 2019 at 09:59:40AM -0500, Denis Kenzior wrote: > Hi James, > > On 03/26/2019 09:25 AM, James Bottomley wrote: > > Looking at the contents of linux/keys/trusted.h, it looks like the > > wrong decision to move it. The contents are way too improperly named > > and duplicative to be i

[PATCH v13 03/11] gpio: 104-dio-48e: Utilize for_each_set_clump8 macro

2019-03-26 Thread William Breathitt Gray
Replace verbose implementation in get_multiple/set_multiple callbacks with for_each_set_clump8 macro to simplify code and improve clarity. Reviewed-by: Linus Walleij Signed-off-by: William Breathitt Gray --- drivers/gpio/gpio-104-dio-48e.c | 73 ++--- 1 file changed,

[PATCH v13 04/11] gpio: 104-idi-48: Utilize for_each_set_clump8 macro

2019-03-26 Thread William Breathitt Gray
Replace verbose implementation in get_multiple/set_multiple callbacks with for_each_set_clump8 macro to simplify code and improve clarity. Reviewed-by: Linus Walleij Signed-off-by: William Breathitt Gray --- drivers/gpio/gpio-104-idi-48.c | 36 +++--- 1 file changed,

[PATCH v13 05/11] gpio: gpio-mm: Utilize for_each_set_clump8 macro

2019-03-26 Thread William Breathitt Gray
Replace verbose implementation in get_multiple/set_multiple callbacks with for_each_set_clump8 macro to simplify code and improve clarity. Reviewed-by: Linus Walleij Signed-off-by: William Breathitt Gray --- drivers/gpio/gpio-gpio-mm.c | 73 +++-- 1 file changed,

[PATCH v13 06/11] gpio: ws16c48: Utilize for_each_set_clump8 macro

2019-03-26 Thread William Breathitt Gray
Replace verbose implementation in get_multiple/set_multiple callbacks with for_each_set_clump8 macro to simplify code and improve clarity. Reviewed-by: Linus Walleij Signed-off-by: William Breathitt Gray --- drivers/gpio/gpio-ws16c48.c | 73 ++--- 1 file changed,

[PATCH v13 07/11] gpio: pci-idio-16: Utilize for_each_set_clump8 macro

2019-03-26 Thread William Breathitt Gray
Replace verbose implementation in get_multiple/set_multiple callbacks with for_each_set_clump8 macro to simplify code and improve clarity. Reviewed-by: Linus Walleij Signed-off-by: William Breathitt Gray --- drivers/gpio/gpio-pci-idio-16.c | 75 - 1 file changed,

[PATCH v13 08/11] gpio: pcie-idio-24: Utilize for_each_set_clump8 macro

2019-03-26 Thread William Breathitt Gray
Replace verbose implementation in get_multiple/set_multiple callbacks with for_each_set_clump8 macro to simplify code and improve clarity. Reviewed-by: Linus Walleij Signed-off-by: William Breathitt Gray --- drivers/gpio/gpio-pcie-idio-24.c | 109 --- 1 file changed,

[PATCH v13 09/11] gpio: uniphier: Utilize for_each_set_clump8 macro

2019-03-26 Thread William Breathitt Gray
Replace verbose implementation in set_multiple callback with for_each_set_clump8 macro to simplify code and improve clarity. An improvement in this case is that banks that are not masked will now be skipped. Cc: Masahiro Yamada Signed-off-by: William Breathitt Gray --- drivers/gpio/gpio-uniphie

[PATCH v13 10/11] gpio: 74x164: Utilize the for_each_set_clump8 macro

2019-03-26 Thread William Breathitt Gray
Replace verbose implementation in set_multiple callback with for_each_set_clump8 macro to simplify code and improve clarity. Suggested-by: Andy Shevchenko Cc: Geert Uytterhoeven Cc: Phil Reid Signed-off-by: William Breathitt Gray --- drivers/gpio/gpio-74x164.c | 19 +-- 1 file

[PATCH v13 11/11] thermal: intel: intel_soc_dts_iosf: Utilize for_each_set_clump8 macro

2019-03-26 Thread William Breathitt Gray
Utilize for_each_set_clump8 macro, and the bitmap_set_value8 and bitmap_get_value8 functions, where appropriate. In addition, remove the now unnecessary temp_mask and temp_shift members of the intel_soc_dts_sensor_entry structure. Suggested-by: Andy Shevchenko Tested-by: Andy Shevchenko Signed-o

Re: [PATCH v19,RESEND 16/27] x86/sgx: Add the Linux SGX Enclave Driver

2019-03-26 Thread Jarkko Sakkinen
On Tue, Mar 26, 2019 at 12:01:31PM +, Huang, Kai wrote: > On Wed, 2019-03-20 at 18:21 +0200, Jarkko Sakkinen wrote: > > Intel Software Guard eXtensions (SGX) is a set of CPU instructions that > > can be used by applications to set aside private regions of code and > > data. The code outside the

[PATCH] clocksource/drivers/timer-ti-dm: Remove omap_dm_timer_set_load_start

2019-03-26 Thread Nathan Chancellor
Commit 008258d995a6 ("clocksource/drivers/timer-ti-dm: Make omap_dm_timer_set_load_start() static") made omap_dm_time_set_load_start static because its prototype was not defined in a header. Unfortunately, this causes a build warning on multi_v7_defconfig because this function is not used anywhere

<    4   5   6   7   8   9   10   >