[PATCH v3 2/2] memcg, fsnotify: no oom-kill for remote memcg charging

2019-05-14 Thread Shakeel Butt
The commit d46eb14b735b ("fs: fsnotify: account fsnotify metadata to kmemcg") added remote memcg charging for fanotify and inotify event objects. The aim was to charge the memory to the listener who is interested in the events but without triggering the OOM killer. Otherwise there would be security

Re: [PATCH v2] ACPI / device_sysfs: change _ADR representation to 64 bits

2019-05-14 Thread Rafael J. Wysocki
On Monday, May 6, 2019 10:36:22 AM CEST Rafael J. Wysocki wrote: > On Thu, May 2, 2019 at 6:58 AM Vinod Koul wrote: > > > > On 01-05-19, 07:53, Pierre-Louis Bossart wrote: > > > Standards such as the MIPI DisCo for SoundWire 1.0 specification > > > assume the _ADR field is 64 bits. > > > > > > _AD

Re: [PATCH v3 1/3] platform/chrome: cros_ec_spi: Move to real time priority for transfers

2019-05-14 Thread Doug Anderson
Hi, On Tue, May 14, 2019 at 12:34 PM Guenter Roeck wrote: > On Tue, May 14, 2019 at 11:40 AM Douglas Anderson > wrote: > > +static void cros_ec_spi_high_pri_release(struct device *dev, void *res) > > +{ > > + struct cros_ec_spi *ec_spi = *(struct cros_ec_spi **)res; > > + > > + kth

[PATCH v2 1/3] mtd: spinand: Add #define-s for page-read ops with three-byte addresses

2019-05-14 Thread Jeff Kletsky
From: Jeff Kletsky The GigaDevice GD5F1GQ4UFxxG SPI NAND utilizes three-byte addresses for its page-read ops. http://www.gigadevice.com/datasheet/gd5f1gq4xfxxg/ Signed-off-by: Jeff Kletsky --- include/linux/mtd/spinand.h | 30 ++ 1 file changed, 30 insertions(+) d

Re: [PATCH] mm: don't expose page to fast gup before it's ready

2019-05-14 Thread Andrew Morton
On Tue, 9 Jan 2018 02:10:50 -0800 Yu Zhao wrote: > > Also what prevents reordering here? There do not seem to be any barriers > > to prevent __SetPageSwapBacked leak after set_pte_at with your patch. > > I assumed mem_cgroup_commit_charge() acted as full barrier. Since you > explicitly asked the

[PATCH v3 1/2] memcg, oom: no oom-kill for __GFP_RETRY_MAYFAIL

2019-05-14 Thread Shakeel Butt
The documentation of __GFP_RETRY_MAYFAIL clearly mentioned that the OOM killer will not be triggered and indeed the page alloc does not invoke OOM killer for such allocations. However we do trigger memcg OOM killer for __GFP_RETRY_MAYFAIL. Fix that. This flag will used later to not trigger oom-kill

Re: [PATCH] cpufreq: Update MAINTAINERS to include schedutil governor

2019-05-14 Thread Rafael J. Wysocki
On Monday, May 13, 2019 9:10:33 AM CEST Viresh Kumar wrote: > List cpufreq maintainers as well for schedutil governor apart from > scheduler maintainers. > > Signed-off-by: Viresh Kumar > --- > MAINTAINERS | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/MAINTAINERS b/MAINTAINERS > in

Re: [RFC KVM 00/27] KVM Address Space Isolation

2019-05-14 Thread Jan Setje-Eilers
On 5/14/19 12:37 AM, Peter Zijlstra wrote: On Mon, May 13, 2019 at 07:07:36PM -0700, Andy Lutomirski wrote: On Mon, May 13, 2019 at 2:09 PM Liran Alon wrote: The hope is that the very vast majority of #VMExit handlers will be able to completely run without requiring to switch to full address

Re: [alsa-devel] [PATCH v2] ACPI / device_sysfs: change _ADR representation to 64 bits

2019-05-14 Thread Pierre-Louis Bossart
diff --git a/drivers/acpi/device_sysfs.c b/drivers/acpi/device_sysfs.c index 8940054d6250..7dda0ee05cd1 100644 --- a/drivers/acpi/device_sysfs.c +++ b/drivers/acpi/device_sysfs.c @@ -428,8 +428,10 @@ static ssize_t acpi_device_adr_show(struct device *dev, { struct acpi_device *acpi_dev

Re: [PATCH 2/2] cifs:smbd Use the correct DMA direction when sending data

2019-05-14 Thread Pavel Shilovsky
пн, 13 мая 2019 г. в 21:02, : > > From: Long Li > > When sending data, use the DMA_TO_DEVICE to map buffers. Also log the number > of requests in a compounding request from upper layer. > > Signed-off-by: Long Li > --- > fs/cifs/smbdirect.c | 8 +--- > 1 file changed, 5 insertions(+), 3 dele

Re: [PATCH v10 09/12] perf record: implement -z,--compression_level[=] option

2019-05-14 Thread Arnaldo Carvalho de Melo
Em Tue, May 14, 2019 at 05:20:41PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Mon, Mar 18, 2019 at 08:44:42PM +0300, Alexey Budankov escreveu: > > > > Implemented -z,--compression_level[=] option that enables compression > > of mmaped kernel data buffers content in runtime during perf record >

[PATCH v2 1/3] mtd: spinand: Add #define-s for page-read ops with three-byte addresses

2019-05-14 Thread Jeff Kletsky
From: Jeff Kletsky The GigaDevice GD5F1GQ4UFxxG SPI NAND utilizes three-byte addresses for its page-read ops. http://www.gigadevice.com/datasheet/gd5f1gq4xfxxg/ Signed-off-by: Jeff Kletsky --- include/linux/mtd/spinand.h | 30 ++ 1 file changed, 30 insertions(+) d

Re: [RFC KVM 18/27] kvm/isolation: function to copy page table entries for percpu buffer

2019-05-14 Thread Andy Lutomirski
> On May 14, 2019, at 2:06 PM, Sean Christopherson > wrote: > >> On Tue, May 14, 2019 at 01:33:21PM -0700, Andy Lutomirski wrote: >> On Tue, May 14, 2019 at 11:09 AM Sean Christopherson >> wrote: >>> For IRQs it's somewhat feasible, but not for NMIs since NMIs are unblocked >>> on VMX immedi

[PATCH v2 2/3] mtd: spinand: Add support for two-byte device IDs

2019-05-14 Thread Jeff Kletsky
From: Jeff Kletsky The GigaDevice GD5F1GQ4UFxxG SPI NAND utilizes two-byte device IDs. http://www.gigadevice.com/datasheet/gd5f1gq4xfxxg/ Signed-off-by: Jeff Kletsky --- drivers/mtd/nand/spi/core.c | 2 +- include/linux/mtd/spinand.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)

[PATCH v2 3/3] mtd: spinand: Add support for GigaDevice GD5F1GQ4UFxxG

2019-05-14 Thread Jeff Kletsky
From: Jeff Kletsky The GigaDevice GD5F1GQ4UFxxG SPI NAND is in current production devices and, while it has the same logical layout as the E-series devices, it differs in the SPI interfacing in significant ways. This support is contingent on previous commits to: * Add support for two-byte dev

RE: [PATCH v20 00/28] Intel SGX1 support

2019-05-14 Thread Xing, Cedric
Hi Everyone, I think we are talking about 2 different kinds of criteria for determining the sanity of an enclave. The first kind determines an enclave's sanity by generally accepted good practices. For example, no executable pages shall ever be writable. The second kind determines an enclave'

Re: [PATCH] mtd: spinand: Add support for GigaDevice GD5F1GQ4UFxxG

2019-05-14 Thread Jeff Kletsky
On 5/14/19 1:01 PM, Miquel Raynal wrote: Hi Schrempf, Schrempf Frieder wrote on Tue, 14 May 2019 16:11:28 +: Hi Jeff, On 14.05.19 17:42, Jeff Kletsky wrote: On 5/13/19 6:56 AM, Schrempf Frieder wrote: Hi Jeff, [...] Maybe it would be better to split this patch into three parts: *

Re: [PATCH v2 1/2] KVM: Start populating /sys/hypervisor with KVM entries

2019-05-14 Thread Sironi, Filippo
> On 14. May 2019, at 18:09, Sironi, Filippo wrote: > >> On 14. May 2019, at 17:26, Christian Borntraeger >> wrote: >> >>> On 14.05.19 17:16, Filippo Sironi wrote: >>> Start populating /sys/hypervisor with KVM entries when we're running on >>> KVM. This is to replicate functionality that's

Re: Linux 5.1.2

2019-05-14 Thread Bhaskar Chowdhury
Thanks, a bunch Greg! On 20:04 Tue 14 May , Greg KH wrote: I'm announcing the release of the 5.1.2 kernel. All users of the 5.1 kernel series must upgrade. Well, kind of, let me rephrase that... All users of Intel processors made since 2011 must upgrade. Note, this release, and the other st

[PATCH v4 13/18] kunit: tool: add Python wrappers for running KUnit tests

2019-05-14 Thread Brendan Higgins
From: Felix Guo The ultimate goal is to create minimal isolated test binaries; in the meantime we are using UML to provide the infrastructure to run tests, so define an abstract way to configure and run tests that allow us to change the context in which tests are built without affecting the user.

Re: [PATCHv2 08/10] vfio/mdev: Improve the create/remove sequence

2019-05-14 Thread Alex Williamson
On Tue, 14 May 2019 20:34:12 + Parav Pandit wrote: > Hi Alex, Cornelia, > > > > -Original Message- > > From: linux-kernel-ow...@vger.kernel.org > ow...@vger.kernel.org> On Behalf Of Parav Pandit > > Sent: Thursday, May 9, 2019 2:20 PM > > To: Cornelia Huck > > Cc: k...@vger.kern

[PATCH v3 2/5] PCI/DPC: Allow dpc_probe() even if DPC is handled in firmware

2019-05-14 Thread sathyanarayanan . kuppuswamy
From: Kuppuswamy Sathyanarayanan Error Disconnect Recover (EDR) support allows OS to handle the error recovery even when DPC configuration is handled by firmware. So allow dpc_probe() to continue even if firmware first mode is enabed. This is a prepratory patch for adding EDR support. Signed-off

[PATCH v3 5/5] PCI/ACPI: Expose EDR support via _OSC to BIOS

2019-05-14 Thread sathyanarayanan . kuppuswamy
From: Kuppuswamy Sathyanarayanan As per PCI Firmware Specification, r3.2 ECN (https://members.pcisig.com/wg/PCI-SIG/document/12614), if OS supports EDR, it should expose its support to BIOS by setting bit 7 of _OSC Support Field. Signed-off-by: Kuppuswamy Sathyanarayanan --- drivers/acpi/pci_

Re: [PATCH] drm/pl111: Initialize clock spinlock early

2019-05-14 Thread Linus Walleij
On Mon, May 13, 2019 at 4:46 PM Guenter Roeck wrote: > The following warning is seen on systems with broken clock divider. > > INFO: trying to register non-static key. > the code is fine but needs lockdep annotation. > turning off the locking correctness validator. > CPU: 0 PID: 1 Comm: swapper N

[PATCH v3 0/5] Add Error Disconnect Recover (EDR) support

2019-05-14 Thread sathyanarayanan . kuppuswamy
From: Kuppuswamy Sathyanarayanan This patchset adds support for following features: 1. Error Disconnect Recover (EDR) support. 2. _OSC based negotiation support for DPC. You can find EDR spec in the following link. https://members.pcisig.com/wg/PCI-SIG/document/12614 Changes since v1: * Reba

[PATCH v3 4/5] PCI/DPC: Add Error Disconnect Recover (EDR) support

2019-05-14 Thread sathyanarayanan . kuppuswamy
From: Kuppuswamy Sathyanarayanan As per PCI firmware specification v3.2 ECN (https://members.pcisig.com/wg/PCI-SIG/document/12614), when firmware owns Downstream Port Containment (DPC), its expected to use the "Error Disconnect Recover" (EDR) notification to alert OSPM of a DPC event and if OS su

[PATCH v3 3/5] PCI/DPC: Add dpc_process_error() wrapper function

2019-05-14 Thread sathyanarayanan . kuppuswamy
From: Kuppuswamy Sathyanarayanan Add dpc_process_error() wrapper function for handling the DPC errors when receiving DPC IRQ or Error Disconnect Recover (EDR) event. This is a prepratory patch for adding EDR support. Signed-off-by: Kuppuswamy Sathyanarayanan --- drivers/pci/pcie/dpc.c | 10 ++

Re: [PATCH] nvme/pci: Use host managed power state for suspend

2019-05-14 Thread Keith Busch
On Tue, May 14, 2019 at 10:04:22AM +0200, Rafael J. Wysocki wrote: > On Mon, May 13, 2019 at 5:10 PM Keith Busch wrote: > > > > On Mon, May 13, 2019 at 03:05:42PM +, mario.limoncie...@dell.com wrote: > > > This system power state - suspend to idle is going to freeze threads. > > > But we're ta

[PATCH v3 1/5] PCI/ACPI: Add _OSC based negotiation support for DPC

2019-05-14 Thread sathyanarayanan . kuppuswamy
From: Kuppuswamy Sathyanarayanan As per PCI Firmware Specification, r3.2 ECN (https://members.pcisig.com/wg/PCI-SIG/document/12614), OS can use bit 7 of _OSC Control Field to negotiate control over Downstream Port Containment (DPC) configuration of PCIe port. After _OSC negotiation, firmware wil

RE: [PATCH v20 00/28] Intel SGX1 support

2019-05-14 Thread Xing, Cedric
Hi Andy, > Let me make sure I'm understanding this correctly: when an enclave tries > to execute code, it only works if *both* the EPCM and the page tables > grant the access, right? This seems to be that 37.3 is trying to say. > So we should probably just ignore SECINFO for these purposes. > >

Re: [PATCH] kernel/hung_task.c: Monitor killed tasks.

2019-05-14 Thread Paul E. McKenney
On Mon, May 13, 2019 at 08:02:11PM +0900, Tetsuo Handa wrote: > syzbot's second top report is "no output from test machine" where the > userspace process failed to spawn a new test process for 300 seconds > for some reason. One of reasons which can result in this report is that > an already spawned

Re: [RFC KVM 18/27] kvm/isolation: function to copy page table entries for percpu buffer

2019-05-14 Thread Sean Christopherson
On Tue, May 14, 2019 at 02:55:18PM -0700, Andy Lutomirski wrote: > > > On May 14, 2019, at 2:06 PM, Sean Christopherson > > wrote: > > > >> On Tue, May 14, 2019 at 01:33:21PM -0700, Andy Lutomirski wrote: > >> I suspect that the context switch is a bit of a red herring. A > >> PCID-don't-flush

[PATCH] objtool: Allow AR to be overridden with HOSTAR

2019-05-14 Thread Nathan Chancellor
Currently, this Makefile hardcodes GNU ar, meaning that if it is not available, there is no way to supply a different one and the build will fail. $ make AR=llvm-ar CC=clang LD=ld.lld HOSTAR=llvm-ar HOSTCC=clang \ HOSTLD=ld.lld HOSTLDFLAGS=-fuse-ld=lld defconfig modules_prepare ... AR

[PATCH] selftests: avoid KBUILD_OUTPUT dir cluttering with selftest objects

2019-05-14 Thread Shuah Khan
Running "make kselftest" or building selftests when KBUILD_OUTPUT is set, will create selftest objects in the KBUILD_OUTPUT directory. This could be undesirable especially when user didn't intend to relocate selftest objects. Use KBUILD_OUTPUT/kselftest to create selftest objects instead of clutte

Re: [PATCH] objtool: Allow AR to be overridden with HOSTAR

2019-05-14 Thread Nick Desaulniers
.On Tue, May 14, 2019 at 3:41 PM Nathan Chancellor wrote: > > Currently, this Makefile hardcodes GNU ar, meaning that if it is not > available, there is no way to supply a different one and the build will > fail. > > $ make AR=llvm-ar CC=clang LD=ld.lld HOSTAR=llvm-ar HOSTCC=clang \ >HOSTL

[PATCH] objtool: Fix whitelist documentation typo

2019-05-14 Thread Josh Poimboeuf
From: Raphael Gault The directive specified in the documentation to add an exception for a single file in a Makefile was inverted. Signed-off-by: Raphael Gault Signed-off-by: Josh Poimboeuf --- tools/objtool/Documentation/stack-validation.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion

Re: [PATCH] mm: filemap: correct the comment about VM_FAULT_RETRY

2019-05-14 Thread Yang Shi
Hi Josef, Any comment on this patch? I switched to my personal email since the mail may get bounced back with my work email sometime. On Wed, May 8, 2019 at 9:55 AM Yang Shi wrote: > > Ping. > > > Josef, any comment on this one? > > > Thanks, > > Yang > > > > On 4/25/19 4:22 PM, Yang Shi wrote:

[PATCH v6 0/3] media: v4l2-subdev: Verify arguments in v4l2_subdev_call()

2019-05-14 Thread Janusz Krzysztofik
Correctness of format type (try or active) and pad ID parameters passed to subdevice operation callbacks is now verified only for IOCTL calls. However, those callbacks are also used by drivers, e.g., V4L2 host interfaces. Since both subdev_do_ioctl() and drivers are using v4l2_subdev_call() ma

[PATCH v6 1/3] media: v4l2-subdev: Verify arguments in v4l2_subdev_call()

2019-05-14 Thread Janusz Krzysztofik
Correctness of format type (try or active) and pad number parameters passed to subdevice operation callbacks is now verified only for IOCTL calls. However, those callbacks are also used by drivers, e.g., V4L2 host interfaces. Since both subdev_do_ioctl() and drivers are using v4l2_subdev_call() m

[PATCH v6 2/3] media: v4l2-subdev: Verify v4l2_subdev_call() pointer arguments

2019-05-14 Thread Janusz Krzysztofik
Parameters passed to check helpers are now obtained by dereferencing unverified pointer arguments. Check validity of those pointers first. Signed-off-by: Janusz Krzysztofik --- drivers/media/v4l2-core/v4l2-subdev.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a

[PATCH v6 3/3] media: v4l2-subdev: Verify v4l2_subdev_call() pad config argument

2019-05-14 Thread Janusz Krzysztofik
Extend parameter checks performed by v4l2_subdev_call() with a check for a non-NULL pad config pointer if V4L2_SUBDEV_FORMAT_TRY format type is requested so drivers don't need to care. Signed-off-by: Janusz Krzysztofik --- drivers/media/v4l2-core/v4l2-subdev.c | 27 +-- 1

Re: [PATCH] mm: don't expose page to fast gup before it's ready

2019-05-14 Thread Yu Zhao
On Tue, May 14, 2019 at 02:25:27PM -0700, Andrew Morton wrote: > On Tue, 9 Jan 2018 02:10:50 -0800 Yu Zhao wrote: > > > > Also what prevents reordering here? There do not seem to be any barriers > > > to prevent __SetPageSwapBacked leak after set_pte_at with your patch. > > > > I assumed mem_cgr

RE

2019-05-14 Thread Ahmed Adama
-- I need your cooperation to transfer $7 million in your bank account and you will be entitled to 40% of the money, kindly reply me for more details if you are interested.

Re: [PATCH] selftests : netfilter: Wrote a error and exit code for a command which needed veth kernel module.

2019-05-14 Thread Pablo Neira Ayuso
On Sun, May 12, 2019 at 02:28:07AM +0530, Jeffrin Thalakkottoor wrote: > Hi Pablo, > > Please follow up on the mail you sent. > This is for my interest to see my patch upstream Please, pick a shorter patch subject, I'd suggest something like: "selftests: netfilter: missing error check when setti

Re: [PATCH] selftests: pidfd: Create .gitignore to include pidfd_test

2019-05-14 Thread Shuah Khan
Hi Kelsey, On 5/11/19 10:57 PM, Kelsey Skunberg wrote: Create /selftests/pidfd/.gitignore which holds the following file name created after compiling: This patch generates the following checkpatch warning. WARNING: use relative pathname instead of absolute in changelog text #85: Create /selft

Re: [PATCH] selftests: drivers: Create .gitignore to include /dma-buf/udmabuf

2019-05-14 Thread Shuah Khan
On 5/11/19 11:04 PM, Kelsey Skunberg wrote: Create /selftests/drivers/.gitignore which holds the following file name created after compiling: Thanks for the patch. Ran into the same relative path WARN from checkpatch for the commit log. Fixed it and applied. thanks, -- Shuah

Re: [PATCH v2 0/3] initramfs: add support for xattrs in the initial ram disk

2019-05-14 Thread Rob Landley
On 5/14/19 2:18 PM, James Bottomley wrote: >> I think Rob is right here. If /init was statically built into the >> kernel image, it has no more ability to compromise the kernel than >> anything else in the kernel. What's the problem here? > > The specific problem is that unless you own the kerne

Re: [PATCH] mm: filemap: correct the comment about VM_FAULT_RETRY

2019-05-14 Thread Song Liu
On Thu, Apr 25, 2019 at 4:22 PM Yang Shi wrote: > > The commit 6b4c9f446981 ("filemap: drop the mmap_sem for all blocking > operations") changed when mmap_sem is dropped during filemap page fault > and when returning VM_FAULT_RETRY. > > Correct the comment to reflect the change. > > Cc: Josef Baci

[PATCH] mm: refactor __vunmap() to avoid duplicated call to find_vm_area()

2019-05-14 Thread Roman Gushchin
__vunmap() calls find_vm_area() twice without an obvious reason: first directly to get the area pointer, second indirectly by calling vm_remove_mappings()->remove_vm_area(), which is again searching for the area. To remove this redundancy, let's split remove_vm_area() into __remove_vm_area(struct

[PATCH RESEND] mm: show number of vmalloc pages in /proc/meminfo

2019-05-14 Thread Roman Gushchin
Vmalloc() is getting more and more used these days (kernel stacks, bpf and percpu allocator are new top users), and the total % of memory consumed by vmalloc() can be pretty significant and changes dynamically. /proc/meminfo is the best place to display this information: its top goal is to show to

Re: [PATCH v2 0/3] initramfs: add support for xattrs in the initial ram disk

2019-05-14 Thread James Bottomley
On Tue, 2019-05-14 at 18:39 -0500, Rob Landley wrote: > On 5/14/19 2:18 PM, James Bottomley wrote: > > > I think Rob is right here. If /init was statically built into > > > the kernel image, it has no more ability to compromise the kernel > > > than anything else in the kernel. What's the problem

Re: [PATCH 1/1] ARM: dts: meson8b: fix the operating voltage of the Mali GPU

2019-05-14 Thread Kevin Hilman
Martin Blumenstingl writes: > Amlogic's vendor kernel defines an OPP for the GPU on Meson8b boards > with a voltage of 1.15V. It turns out that the vendor kernel relies on > the bootloader to set up the voltage. The bootloader however sets a > fixed voltage of 1.10V. > > Amlogic's patched u-boot

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

2019-05-14 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the thermal-soc tree got a conflict in: drivers/hwmon/pwm-fan.c between commits: 6b1ec4789fb1 ("hwmon: (pwm-fan) Add RPM support via external interrupt") 841cf6767bf6 ("hwmon: (pwm-fan) Report probe errors consistently") from Linus' tree and commit:

Re: [PATCH v4 5/7] mm: rework non-root kmem_cache lifecycle management

2019-05-14 Thread Shakeel Butt
From: Roman Gushchin Date: Tue, May 14, 2019 at 2:55 PM To: Andrew Morton, Shakeel Butt Cc: , , , Johannes Weiner, Michal Hocko, Rik van Riel, Christoph Lameter, Vladimir Davydov, , Roman Gushchin > This commit makes several important changes in the lifecycle > of a non-root kmem_cache, which als

Re: [PATCH v4 6/7] mm: reparent slab memory on cgroup removal

2019-05-14 Thread Shakeel Butt
From: Roman Gushchin Date: Tue, May 14, 2019 at 2:54 PM To: Andrew Morton, Shakeel Butt Cc: , , , Johannes Weiner, Michal Hocko, Rik van Riel, Christoph Lameter, Vladimir Davydov, , Roman Gushchin > Let's reparent memcg slab memory on memcg offlining. This allows us > to release the memory cgroup

Re: [PATCH 2/5] arm64: dts: meson: g12a: add ethernet pinctrl definitions

2019-05-14 Thread Kevin Hilman
Jerome Brunet writes: > On Sat, 2019-05-11 at 19:06 +0200, Martin Blumenstingl wrote: >> Hi Jerome, >> >> On Fri, May 10, 2019 at 6:49 PM Jerome Brunet wrote: >> > Add the ethernet pinctrl settings for RMII, RGMII and internal phy leds >> > >> > Signed-off-by: Jerome Brunet >> > --- >> > arc

Re: [PATCH v4 7/7] mm: fix /proc/kpagecgroup interface for slab pages

2019-05-14 Thread Shakeel Butt
From: Roman Gushchin Date: Tue, May 14, 2019 at 2:54 PM To: Andrew Morton, Shakeel Butt Cc: , , , Johannes Weiner, Michal Hocko, Rik van Riel, Christoph Lameter, Vladimir Davydov, , Roman Gushchin > Switching to an indirect scheme of getting mem_cgroup pointer for > !root slab pages broke /proc/k

Re: [PATCH] arm64: dts: meson: nanopi k2: add sd DDR50

2019-05-14 Thread Kevin Hilman
Jerome Brunet writes: > Add UHS ddr50 mode to the nanopi k2 > > Signed-off-by: Jerome Brunet Queued for v5.3, Thanks, Kevin

Re: [PATCH] arm64: dts: meson: g12a: set uart_ao clocks

2019-05-14 Thread Kevin Hilman
Jerome Brunet writes: > Now that the AO clock controller is available, make the uarts of the > always-on domain claim the appropriate peripheral clock. > > Signed-off-by: Jerome Brunet Queued for v5.3 with tags from Neil and Martin, Thanks, Kevin

Re: [PATCH 0/3] arm64: dts: meson: g12a: add mmc B and C

2019-05-14 Thread Kevin Hilman
Jerome Brunet writes: > This patchset adds the MMC controller B and C to the g12a SoC as well > as the u200 and sei510 boards. > > MMC controller A has been left out on purpose. This controller is > special on this SoC family and will be added later on. > > Notice the use of the pinconf DT proper

Re: [PATCH v2 0/3] initramfs: add support for xattrs in the initial ram disk

2019-05-14 Thread Arvind Sankar
On Tue, May 14, 2019 at 07:20:15PM +0200, Roberto Sassu wrote: > On 5/14/2019 6:58 PM, Greg KH wrote: > > On Tue, May 14, 2019 at 06:33:29PM +0200, Roberto Sassu wrote: > >> Right, the measurement/signature verification of the kernel image is > >> sufficient. > >> > >> Now, assuming that we defer t

[PATCH] perf/ring_buffer: Fix exposing a temporarily decreased data_head.

2019-05-14 Thread Yabin Cui
In perf_output_put_handle(), an IRQ/NMI can happen in below location and write records to the same ring buffer: ... local_dec_and_test(&rb->nest) ... <-- an IRQ/NMI can happen here rb->user_page->data_head = head; ... In this case, a

Re: undefined reference to `__aeabi_uldivmod' after 25c13324d03d ("IB/mlx5: Add steering SW ICM device memory type")

2019-05-14 Thread Jason Gunthorpe
On Tue, May 14, 2019 at 12:45:10PM -0700, Nathan Chancellor wrote: > DIV_ROUND_UP is u64 / u32 in this case. I think DIV_ROUND_UP_ULL is > needed but I am not sure if that has any unintended side effects so I > didn't want to send a patch. Hmm. Most likely those u64 length's should really be size_

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

2019-05-14 Thread Stephen Rothwell
Hi Eduardo, On Tue, 14 May 2019 07:15:33 -0700 Eduardo Valentin wrote: > > On Tue, May 14, 2019 at 02:40:06PM +1000, Stephen Rothwell wrote: > > Hi Eduardo, > > > > On Mon, 13 May 2019 20:44:11 -0700 Eduardo Valentin > > wrote: > > > > > > Thanks for spotting this. I am re-doing the branch b

[GIT PULL] Please pull RDMA subsystem changes

2019-05-14 Thread Jason Gunthorpe
Hi Linus, These are the 2nd proposed RDMA patches for 5.2. As requested the main reason to send this is to fix the gcc 9.1 warnings that many people may hit now that FC30 is out. Thanks, Jason The following changes since commit b79656ed44c6865e17bcd93472ec39488bcc4984: RDMA/ipoib: Allow user

Re: [PATCH RFC v2 3/4] mm/ksm: introduce force_madvise knob

2019-05-14 Thread Timofey Titovets
LGTM Reviewed-by: Timofey Titovets вт, 14 мая 2019 г. в 16:22, Aaron Tomlin : > > On Tue 2019-05-14 15:16 +0200, Oleksandr Natalenko wrote: > > Present a new sysfs knob to mark task's anonymous memory as mergeable. > > > > To force merging task's VMAs, its PID is echoed in a write-only file: > >

Re: [PATCH v2 0/3] initramfs: add support for xattrs in the initial ram disk

2019-05-14 Thread Arvind Sankar
On Tue, May 14, 2019 at 04:54:12PM -0700, James Bottomley wrote: > On Tue, 2019-05-14 at 18:39 -0500, Rob Landley wrote: > > On 5/14/19 2:18 PM, James Bottomley wrote: > > > > I think Rob is right here. If /init was statically built into > > > > the kernel image, it has no more ability to compromi

Re: [PATCH RFC v2 4/4] mm/ksm: add force merging/unmerging documentation

2019-05-14 Thread Timofey Titovets
LGTM for whole series Reviewed-by: Timofey Titovets вт, 14 мая 2019 г. в 16:17, Oleksandr Natalenko : > > Document respective sysfs knob. > > Signed-off-by: Oleksandr Natalenko > --- > Documentation/admin-guide/mm/ksm.rst | 11 +++ > 1 file changed, 11 insertions(+) > > diff --git a/Do

[PATCH 1/1] LZ4: Port LZ4 1.9.x FAST_DEC_LOOP and enable it on x86 and ARM64

2019-05-14 Thread Chenxi Mao
FAST_DEC_LOOP was introduced from LZ4 1.9. This change would be introduce 10% on decompress operation according to LZ4 benchmark result on X86 devices. Meanwhile, LZ4 with FAST_DEC_LOOP could get improvements, however clang compiler has downgrade if FAST_DEC_LOOP enabled. So FAST_DEC_LOOP only ena

[PATCH v3] driver core: Fix use-after-free and double free on glue directory

2019-05-14 Thread Muchun Song
There is a race condition between removing glue directory and adding a new device under the glue directory. It can be reproduced in following test: path 1: Add the child device under glue dir device_add() get_device_parent() mutex_lock(&gdp_mutex); /*find parent fr

Re: [PATCH v2 0/3] initramfs: add support for xattrs in the initial ram disk

2019-05-14 Thread Arvind Sankar
On Tue, May 14, 2019 at 07:44:42PM +0200, Roberto Sassu wrote: > On 5/14/2019 5:57 PM, Arvind Sankar wrote: > > On Tue, May 14, 2019 at 11:27:04AM -0400, Arvind Sankar wrote: > >> It's also much easier to change/customize it for the end > >> system's requirements rather than setting the process in

Re: INFO: task hung in __get_super

2019-05-14 Thread Tetsuo Handa
Since lo_ioctl() is calling sb_set_blocksize() immediately after udf_load_vrs() called sb_set_blocksize(), udf_tread() can't use expected i_blkbits settings... [ 48.685672][ T7322] fs/block_dev.c:135 bdev=14fa0ec2 12 -> 9 [ 48.694675][ T7322] CPU: 4 PID: 7322 Comm: a.out Not tainted 5.

[PATCH 3/3] arm64: dts: imx8mq: add clock for SNVS RTC node

2019-05-14 Thread Anson Huang
i.MX8MQ has clock gate for SNVS module, add clock info to SNVS RTC node for clock management. Signed-off-by: Anson Huang --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/

[PATCH 1/3] dt-bindings: clock: imx8mq: Add SNVS clock

2019-05-14 Thread Anson Huang
Add macro for the SNVS clock of the i.MX8MQ. Signed-off-by: Anson Huang --- include/dt-bindings/clock/imx8mq-clock.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/dt-bindings/clock/imx8mq-clock.h b/include/dt-bindings/clock/imx8mq-clock.h index 6677e92..0233bb1

[PATCH 2/3] clk: imx8mq: add SNVS clock to clock tree

2019-05-14 Thread Anson Huang
i.MX8MQ has clock gate for SNVS module, add it into clock tree for SNVS RTC driver to manage. Signed-off-by: Anson Huang --- drivers/clk/imx/clk-imx8mq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/imx/clk-imx8mq.c b/drivers/clk/imx/clk-imx8mq.c index daf1841..24c3464 100644

[PATCH 1/3] dt-bindings: clock: imx8mm: Add SNVS clock

2019-05-14 Thread Anson Huang
Add macro for the SNVS clock of the i.MX8MM. Signed-off-by: Anson Huang --- This patch is based on patch: https://patchwork.kernel.org/patch/10939997/ --- include/dt-bindings/clock/imx8mm-clock.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/dt-bindings/clock/imx

Re: [PATCH v20 00/28] Intel SGX1 support

2019-05-14 Thread Sean Christopherson
On Tue, May 14, 2019 at 02:27:08PM -0700, Andy Lutomirski wrote: > On Tue, May 14, 2019 at 1:45 PM Sean Christopherson > wrote: > > > > On Tue, May 14, 2019 at 08:13:36AM -0700, Andy Lutomirski wrote: > > > On Tue, May 14, 2019 at 3:43 AM Jarkko Sakkinen > > > wrote: > > > > > > > > On Mon, May 1

[PATCH 2/3] clk: imx8mm: add SNVS clock to clock tree

2019-05-14 Thread Anson Huang
i.MX8MM has clock gate for SNVS module, add it into clock tree for SNVS RTC driver to manage. Signed-off-by: Anson Huang --- drivers/clk/imx/clk-imx8mm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/imx/clk-imx8mm.c b/drivers/clk/imx/clk-imx8mm.c index 733ca20..7ffbd6e3 100644

Re: [PATCH v1] mtd: rawnand: Add Macronix NAND read retry support

2019-05-14 Thread masonccyang
Hi Thomas, > > > > > --- > > > > static void macronix_nand_onfi_init(struct nand_chip *chip) > > > > { > > > > struct nand_parameters *p = &chip->parameters; > > > > struct nand_onfi_vendor_macronix *mxic = (

[PATCH 3/3] arm64: dts: imx8mm: add clock for SNVS RTC node

2019-05-14 Thread Anson Huang
i.MX8MM has clock gate for SNVS module, add clock info to SNVS RTC node for clock management. Signed-off-by: Anson Huang --- arch/arm64/boot/dts/freescale/imx8mm.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi b/arch/arm64/boot/dts/freescale/

Re: [PATCH] sched: introduce configurable delay before entering idle

2019-05-14 Thread Wanpeng Li
On Mon, 13 May 2019 at 19:52, Raslan, KarimAllah wrote: > > On Mon, 2019-05-13 at 07:31 -0400, Konrad Rzeszutek Wilk wrote: > > On May 13, 2019 5:20:37 AM EDT, Wanpeng Li wrote: > > > > > > On Wed, 8 May 2019 at 02:57, Marcelo Tosatti > > > wrote: > > > > > > > > > > > > > > > > Certain workload

Re: [PATCH v4] x86/mm/KASLR: Fix the size of vmemmap section

2019-05-14 Thread Baoquan He
On 05/08/19 at 05:47pm, Kirill A. Shutemov wrote: > On Wed, May 08, 2019 at 05:35:20PM +0800, Baoquan He wrote: > > On 05/08/19 at 11:04am, Borislav Petkov wrote: > > > On Wed, May 08, 2019 at 04:24:18PM +0800, Baoquan He wrote: > > > > I think this's worth noticing stable tree: > > > > > > > > Cc

Re: [PATCH V3 2/4] arm64/mm: Hold memory hotplug lock while walking for kernel page table dump

2019-05-14 Thread Anshuman Khandual
On 05/14/2019 09:10 PM, Mark Rutland wrote: > On Tue, May 14, 2019 at 02:30:05PM +0530, Anshuman Khandual wrote: >> The arm64 pagetable dump code can race with concurrent modification of the >> kernel page tables. When a leaf entries are modified concurrently, the dump >> code may log stale or i

Re: [PATCH] sched: introduce configurable delay before entering idle

2019-05-14 Thread Wanpeng Li
On Wed, 15 May 2019 at 02:20, Marcelo Tosatti wrote: > > On Tue, May 14, 2019 at 11:20:15AM -0400, Konrad Rzeszutek Wilk wrote: > > On Tue, May 14, 2019 at 10:50:23AM -0300, Marcelo Tosatti wrote: > > > On Mon, May 13, 2019 at 05:20:37PM +0800, Wanpeng Li wrote: > > > > On Wed, 8 May 2019 at 02:57

Re: [PATCH 1/1] LZ4: Port LZ4 1.9.x FAST_DEC_LOOP and enable it on x86 and ARM64

2019-05-14 Thread Gao Xiang
Hi Chenxi, On 2019/5/15 8:43, Chenxi Mao wrote: > FAST_DEC_LOOP was introduced from LZ4 1.9. > This change would be introduce 10% on decompress operation > according to LZ4 benchmark result on X86 devices. > Meanwhile, LZ4 with FAST_DEC_LOOP could get improvements, > however clang compiler has dow

[for-next][PATCH 0/5] tracing: Final updates for this merge window

2019-05-14 Thread Steven Rostedt
git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git for-next Head SHA1: 693713cbdb3a4bda5a8a678c31f06560bbb14657 Jiri Kosina (1): livepatch: Remove klp_check_compiler_support() Linus Torvalds (1): tracing: Simplify "if" macro code Steven Rostedt (VMware) (3):

[for-next][PATCH 2/5] ftrace/x86_32: Remove support for non DYNAMIC_FTRACE

2019-05-14 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" When DYNAMIC_FTRACE is enabled in the kernel, all the functions that can be traced by the function tracer have a "nop" placeholder at the start of the function. When function tracing is enabled, the nop is converted into a call to the tracing infrastructure where t

[for-next][PATCH 3/5] ftrace/x86: Remove mcount support

2019-05-14 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" There's two methods of enabling function tracing in Linux on x86. One is with just "gcc -pg" and the other is "gcc -pg -mfentry". The former will use calls to a special function "mcount" after the frame is set up in all C functions. The latter will add calls to a s

[for-next][PATCH 1/5] tracing: Simplify "if" macro code

2019-05-14 Thread Steven Rostedt
From: Linus Torvalds Peter Zijlstra noticed that with CONFIG_PROFILE_ALL_BRANCHES, the "if" macro converts the conditional to an array index. This can cause GCC to create horrible code. When there are nested ifs, the generated code uses register values to encode branching decisions. Josh Poimb

[for-next][PATCH 5/5] x86: Hide the int3_emulate_call/jmp functions from UML

2019-05-14 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" User Mode Linux does not have access to the ip or sp fields of the pt_regs, and accessing them causes UML to fail to build. Hide the int3_emulate_jmp() and int3_emulate_call() instructions from UML, as it doesn't need them anyway. Reported-by: kbuild test robot S

[for-next][PATCH 4/5] livepatch: Remove klp_check_compiler_support()

2019-05-14 Thread Steven Rostedt
From: Jiri Kosina The only purpose of klp_check_compiler_support() is to make sure that we are not using ftrace on x86 via mcount (because that's executed only after prologue has already happened, and that's too late for livepatching purposes). Now that mcount is not supported by ftrace any more

Re: ext3/ext4 filesystem corruption under post 5.1.0 kernels

2019-05-14 Thread Arthur Marsh
On 14 May 2019 11:29:37 am ACST, Arthur Marsh wrote: >Apologies, I had forgotten to > >git bisect - - hard origin/master > >I am still seeing the corruption leading to the invalid block error on >5.1.0+ kernels on both my machines. > >Arthur. After the mm commits, the 32 bit kernel on Pentiu

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

2019-05-14 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm-current tree got a conflict in: include/linux/pid.h between commit: 51f1b521a515 ("pidfd: add polling support") from the pidfd tree and commit: c02e28a1bb18 ("kernel/pid.c: convert struct pid:count to refcount_t") from the akpm-current tree.

[PATCH v3] serial: sh-sci: disable DMA for uart_console

2019-05-14 Thread George G. Davis
As noted in commit 84b40e3b57ee ("serial: 8250: omap: Disable DMA for console UART"), UART console lines use low-level PIO only access functions which will conflict with use of the line when DMA is enabled, e.g. when the console line is also used for systemd messages. So disable DMA support for UAR

RE: [EXT] Re: [PATCH v1] arm64: ls1028: dtsi: Add esdhc node in dtsi

2019-05-14 Thread Yinbo Zhu
> -Original Message- > From: Yinbo Zhu > Sent: 2019年5月5日 14:07 > To: Rob Herring > Cc: Shawn Guo ; Leo Li ; Xiaobo > Xie ; Mark Rutland ; > linux-arm-ker...@lists.infradead.org; devicet...@vger.kernel.org; > linux-kernel@vger.kernel.org; linux-...@vger.kernel.org; Y.b. Lu > ; Jiafei Pan

RE: [PATCH 1/1] LZ4: Port LZ4 1.9.x FAST_DEC_LOOP and enable it on x86 and ARM64

2019-05-14 Thread Mao, Chenxi
Hi Xiang: Thanks for your reply, I will have a stress test on my device later. I didn't have chance to test LZ4 with clang build because of device limitation. I think I could do it later. I guess the clang performance downgrade is caused by some compiler optimization options. I will double check

[PATCH v2] arm64: dts: ls1028a: Add esdhc node in dts

2019-05-14 Thread Yinbo Zhu
From: Ashish Kumar This patch is to add esdhc node and enable SD UHS-I, eMMC HS200 for ls1028ardb/ls1028aqds board. Signed-off-by: Ashish Kumar Signed-off-by: Yangbo Lu Signed-off-by: Yinbo Zhu --- Change in v2: Update the patch title Add a commont in dts code

Re: [GIT PULL] Please pull RDMA subsystem changes

2019-05-14 Thread pr-tracker-bot
The pull request you sent on Wed, 15 May 2019 00:46:58 +: > git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git tags/for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/5ac94332248ee017964ba368cdda4ce647e3aba7 Thank you! -- Deet-doot-dot, I am a bot

Re: [PATCH] powerpc/boot: fix broken way to pass CONFIG options

2019-05-14 Thread Masahiro Yamada
On Mon, May 13, 2019 at 11:24 PM Oliver wrote: > > On Mon, May 13, 2019 at 9:23 PM Masahiro Yamada > wrote: > > > > Commit 5e9dcb6188a4 ("powerpc/boot: Expose Kconfig symbols to wrapper") > > was wrong, but commit e41b93a6be57 ("powerpc/boot: Fix build failures > > with -j 1") was also wrong. > >

[PATCH v2 2/4] KVM: LAPIC: Fix lapic_timer_advance_ns parameter overflow

2019-05-14 Thread Wanpeng Li
From: Wanpeng Li After commit c3941d9e0 (KVM: lapic: Allow user to disable adaptive tuning of timer advancement), '-1' enables adaptive tuning starting from default advancment of 1000ns. However, we should expose an int instead of an overflow uint module parameter. Before patch: /sys/module/kvm

<    1   2   3   4   5   6   7   >