[GIT pull] scheduler updates for 4.17

2018-04-15 Thread Thomas Gleixner
Linus, please pull the latest sched-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched-urgent-for-linus A few scheduler fixes: - Prevent a bogus warning vs. runqueue clock update flags in do_sched_rt_period_timer() - Simplify the helper fun

[GIT pull] x86/pti updates for 4.17

2018-04-15 Thread Thomas Gleixner
Linus, please pull the latest x86-pti-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-pti-for-linus Another series of PTI related changes: - Remove the manual stack switch for user entries from the idtentry code. This debloats entry by 5k+ bytes of

Re: [regression v4.17-rc0] Re: FORTIFY_SOURCE breaks ARM compilation in -next -- was Re: ARM compile failure in Re: linux-next: Tree for Apr 4

2018-04-15 Thread Kees Cook
On Sun, Apr 15, 2018 at 10:39 AM, Pavel Machek wrote: > Hi! > >> Thanks. >> >> Ok, let me try to bisect it. Compile-problem should be easy... >> >> Hmm. And as it is compile-problem in single file, it should even be >> reasonably fast. I did not realize how easy it would be: >> >> #!/bin/bash >> s

[GIT pull] x86 updates for 4.17

2018-04-15 Thread Thomas Gleixner
Linus, please pull the latest x86-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-urgent-for-linus A set of fixes and updates for x86: - Address a swiotlb regression which was caused by the recent DMA rework and made driver fail because dma_

[PATCH] staging: vboxvideo: Fix line size exceeding 80 columns.

2018-04-15 Thread Daniel Junho
This patch fixes the checkpatch.pl warning: WARNING: line over 80 characters + vbva = (void __force *)vbox->vbva_buffers + i * VBVA_MIN_BUFFER_SIZE; Signed-off-by: Daniel Junho --- drivers/staging/vboxvideo/vbox_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

Re: [PATCH v3 1/7] iio:dac:ad5686: Style fixes no functional changes

2018-04-15 Thread Jonathan Cameron
On Wed, 11 Apr 2018 14:51:51 +0300 Stefan Popa wrote: > This patch fixes some indentation issues and does not modify the > functionality of the driver. > > Signed-off-by: Stefan Popa I'll try unwinding it this time, but please make absolutely sure you don't reply to an existing series with a ne

Re: [PATCH v4] dmaengine: pl330: flush before wait, and add dev burst support.

2018-04-15 Thread Frank Mori Hess
On Tue, Apr 10, 2018 at 11:37 AM, Vinod Koul wrote: >> >> Hi, what is the state of this patch? I just noticed in patchwork it >> is now listed as "Not applicable"? The original broken-by-wordwrap >> patch is listed as "Accepted"? >> >> https://patchwork.kernel.org/project/linux-dmaengine/list/?s

Re: [PATCH v3 2/7] iio:dac:ad5686: Change license description

2018-04-15 Thread Jonathan Cameron
On Wed, 11 Apr 2018 14:52:12 +0300 Stefan Popa wrote: > Add GPLv2+ SPDX identifier and remove license notice to keep the whole > purpose of using an SPDx id. > > Signed-off-by: Stefan Popa Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it. T

Re: [RFC PATCH 0/3] Dealing with the aliases of SI_USER

2018-04-15 Thread Linus Torvalds
( On Sun, Apr 15, 2018 at 8:56 AM, Eric W. Biederman wrote: > > Would you consider the patchset below for -rc2? Ugh. I have an irrational dislike of "clear_siginfo()". It's a nasty broken interface, which just mis-spells "memset()", and makes it non-obvious that you could clear it other ways to

Re: [PATCH v3 3/7] iio:dac:ad5686: Add support for various number of channels

2018-04-15 Thread Jonathan Cameron
On Wed, 11 Apr 2018 14:52:31 +0300 Stefan Popa wrote: > This patch adds a new num_channels attribute as part of the > ad5686_chip_info struct which replaces the AD5686_DAC_CHANNELS define. This > is a necessary step, since this driver should support similar devices which > differ only in the numb

Re: [PATCH v3 4/7] iio:dac:ad5686: Add support for AD5685R

2018-04-15 Thread Jonathan Cameron
On Wed, 11 Apr 2018 14:52:48 +0300 Stefan Popa wrote: > This driver acctually supports the AD5685R device and NOT the AD5685, which > does not exist. > > More information can be found in the datasheet: > http://www.analog.com/media/en/technical-documentation/data-sheets/AD5686_5684.pdf > > Sign

[PATCH v4 1/3] mm/shmem: add __rcu annotations and properly deref radix entry

2018-04-15 Thread Mike Kravetz
In preparation for memfd code restucture, clean up sparse warnings. Most changes required adding __rcu annotations. The routine find_swap_entry was modified to properly deference radix tree entries. Signed-off-by: Mike Kravetz Signed-off-by: Matthew Wilcox --- mm/shmem.c | 20 +

[PATCH v4 2/3] mm/shmem: update file sealing comments and file checking

2018-04-15 Thread Mike Kravetz
In preparation for memfd code restructure, update comments, definitions and function names dealing with file sealing to indicate that tmpfs and hugetlbfs are the supported filesystems. Also, change file pointer checks in memfd_file_seals_ptr to use defined interfaces instead of directly referencing

[PATCH v4 0/3] restructure memfd code

2018-04-15 Thread Mike Kravetz
This is a replacement for "Patch series restructure memfd code, v2" which was previously in mmotm. This previous series incorrectly moved the memfd code out of shemm.c as a separate commit. Please let me know if there are any issues with the way code is restructured/moved in this series. Specifi

[PATCH v4 3/3] mm: restructure memfd code

2018-04-15 Thread Mike Kravetz
With the addition of memfd hugetlbfs support, we now have the situation where memfd depends on TMPFS -or- HUGETLBFS. Previously, memfd was only supported on tmpfs, so it made sense that the code resided in shmem.c. In the current code, memfd is only functional if TMPFS is defined. If HUGETLFS is

Re: [PATCH v3 5/7] iio:dac:ad5686: Add AD5672R/76/76R/84R/86R support

2018-04-15 Thread Jonathan Cameron
On Wed, 11 Apr 2018 14:53:01 +0300 Stefan Popa wrote: > The AD5684R/AD5686R are a family of 4 channel DACs with 12-bit, 14-bit and > 16-bit precision respectively. The devices come either with a built-in > reference or no built-in reference. > > The AD5672R/AD5676/AD5676R are similar, except tha

[PATCH] fpga-manager: altera-ps-spi: preserve nCONFIG state

2018-04-15 Thread Moritz Fischer
From: Anatolij Gustschin If the driver module is loaded when FPGA is configured, the FPGA is reset because nconfig is pulled low (low-active gpio inited with GPIOD_OUT_HIGH activates the signal which means setting its value to low). Init nconfig with GPIOD_OUT_LOW to prevent this. Signed-off-by:

Re: [PATCH] fs/dcache.c: re-add cond_resched() in shrink_dcache_parent()

2018-04-15 Thread Linus Torvalds
On Sat, Apr 14, 2018 at 5:51 PM, Al Viro wrote: >> if (!list_empty(&data.select.found)) That was obviously meant to be just if (data.select.found) I had just cut-and-pasted a bit too much. > You would have to do the same in check_and_drop() as well, > and that b

Re: [PATCH v3 6/7] iio:dac:ad5686: Refactor the driver

2018-04-15 Thread Jonathan Cameron
On Wed, 11 Apr 2018 14:53:17 +0300 Stefan Popa wrote: > In this patch restructures the existing ad5686 driver by adding a module > for SPI and a header file, while the baseline module deals with the > chip-logic. > > This is a necessary step, as this driver should support in the future > similar

Re: [PATCH v2 13/14] Move ad7746 out of staging

2018-04-15 Thread Joe Perches
On Sun, 2018-04-15 at 18:04 +0100, Jonathan Cameron wrote: > On Fri, 13 Apr 2018 13:36:50 -0300 > Hernán Gonzalez wrote: > > > Signed-off-by: Hernán Gonzalez > > A few comments inline. And a trivial typo and other bits > > diff --git a/drivers/iio/cdc/Makefile b/drivers/iio/cdc/Makefile [] >

[PATCH] PCI: dwc: artpec6: Add reset-gpios for PERST# control

2018-04-15 Thread Jesper Nilsson
Some devices need an optional external gpio for controlling the PERST# signal to bring up for example a PCIe switch after a soft reset. Without this, some boards (the ARTPEC-6 master devboard) would not get the PCIe link back after a soft reset. Signed-off-by: Jesper Nilsson --- .../devicetree/

Re: [PATCH] ARM: dts: da850: use gpio-ranges

2018-04-15 Thread David Lechner
On 02/23/2018 05:44 AM, Sekhar Nori wrote: On Thursday 22 February 2018 09:04 PM, Linus Walleij wrote: On Mon, Feb 19, 2018 at 11:29 PM, David Lechner wrote: This makes use of the gpio-ranges feature that connects GPIO controllers and PINMUX controllers. In da850.dtsi, pinctrl-single,gpio-ra

Re: [PATCH v3 3/3] ALSA: hda: Disabled unused audio controller for Dell platforms with Switchable Graphics

2018-04-15 Thread Lukas Wunner
On Sun, Apr 15, 2018 at 07:17:46PM +0200, Pali Rohár wrote: > On Saturday 14 April 2018 13:17:11 Lukas Wunner wrote: > > On Sat, Apr 14, 2018 at 12:49:50PM +0200, Pali Rohár wrote: > > > On Saturday 14 April 2018 12:45:12 Lukas Wunner wrote: > > > > On Thu, Apr 12, 2018 at 10:15:41PM +0800, Kai-Hen

[RFC] Passing luks passphrase from grub to systemd

2018-04-15 Thread Hansjoerg Lipp
Hello, as I'm stuck with a (non-EFI x86_64) system with encrypted root partition, I have to enter the passphrase twice (grub needs it for getting the kernel etc., systemd needs it for mounting the root partition). This can be quite inconvenient, especially if the passphrase is long and contains sp

Re: [PATCH v3 7/7] iio:dac:ad5686: Add AD5671R/75R/94/94R/95R/96/96R support

2018-04-15 Thread Jonathan Cameron
On Wed, 11 Apr 2018 14:53:39 +0300 Stefan Popa wrote: > The AD5694/AD5694R/AD5695R/AD5696/AD5696R are a family of 4 channel DACs > with 12-bit, 14-bit and 16-bit precision respectively. The devices have > either no built-in reference, or built-in 2.5V reference. > > The AD5671R/AD5675R are simil

Re: Softlockup and Hardlockup sample test module

2018-04-15 Thread valdis . kletnieks
On Sun, 15 Apr 2018 13:17:27 +0530, Ivid Suvarna said: > I had tried with the module where I put a busy loop inside spinlock > but was not able to cause any lockups. Maybe this is because of SMP > which schedule the job to other CPU. "How do I make a task to run on > single CPU only?" So you get

Re: [PATCH v2 1/2] iio: sca3000: Fix an error handling path in 'sca3000_probe()'

2018-04-15 Thread Jonathan Cameron
On Sun, 8 Apr 2018 21:44:01 +0200 Christophe JAILLET wrote: > Use 'devm_iio_kfifo_allocate()' instead of 'iio_kfifo_allocate()' in order > to simplify code and avoid a memory leak in an error path in > 'sca3000_probe()'. A call to 'sca3000_unconfigure_ring()' was missing. > > Signed-off-by: Chr

Re: [PATCH v2 2/2] iio: sca3000: Handle errors returned by 'sca3000_configure_ring()' in 'sca3000_probe()'

2018-04-15 Thread Jonathan Cameron
On Sun, 8 Apr 2018 21:44:15 +0200 Christophe JAILLET wrote: > 'sca3000_configure_ring()' can fail, so test its return value and > propagate it if needed. > > Signed-off-by: Christophe JAILLET Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it

Re: [PATCH v3 01/11] iio: adc: at91-sama5d2_adc: fix channel configuration for differential channels

2018-04-15 Thread Jonathan Cameron
On Tue, 10 Apr 2018 11:57:47 +0300 Eugen Hristev wrote: > When iterating through the channels, the index in the array is not the > scan index. Added an xlate function to translate to the proper index. > The result of the bug is that the channel array is indexed with a wrong index, > thus instead

Re: [PATCH v2 14/14] staging: iio: Remove ad7746 from staging

2018-04-15 Thread Joe Perches
On Sun, 2018-04-15 at 16:43 +0100, Jonathan Cameron wrote: > On Fri, 13 Apr 2018 13:36:51 -0300 > Hernán Gonzalez wrote: > > > Signed-off-by: Hernán Gonzalez > > Please have a single patch (with move detection turned off) for this and the > previous. > Allows easy review by showing us the code

Re: [PATCH v3 03/11] iio: Add channel for Position Relative

2018-04-15 Thread Jonathan Cameron
On Tue, 10 Apr 2018 11:57:49 +0300 Eugen Hristev wrote: > Add new channel type for relative position on a pad. > > These type of analog sensor offers the position of a pen > on a touchpad, and is represented as a voltage, which can be > converted to a position on X and Y axis on the pad. > The c

Re: [PATCH v3 06/11] iio: inkern: add module put/get on iio dev module when requesting channels

2018-04-15 Thread Jonathan Cameron
On Tue, 10 Apr 2018 11:57:52 +0300 Eugen Hristev wrote: > When requesting channels for a particular consumer device, > besides requesting the device (incrementing the reference counter), also > do it for the driver module of the iio dev. This will avoid the situation > where the producer IIO devi

Re: [PATCH v3 07/11] iio: adc: at91-sama5d2_adc: add support for position and pressure channels

2018-04-15 Thread Jonathan Cameron
On Tue, 10 Apr 2018 11:57:53 +0300 Eugen Hristev wrote: > This implements the support for position and pressure for the included > touchscreen support in the SAMA5D2 SOC ADC block. > Two position channels are added and one for pressure. > They can be read in raw format, or through a buffer. > A n

Re: [PATCH v2 13/14] Move ad7746 out of staging

2018-04-15 Thread Jonathan Cameron
On Sun, 15 Apr 2018 11:46:09 -0700 Joe Perches wrote: > On Sun, 2018-04-15 at 18:04 +0100, Jonathan Cameron wrote: > > On Fri, 13 Apr 2018 13:36:50 -0300 > > Hernán Gonzalez wrote: > > > > > Signed-off-by: Hernán Gonzalez > > > > A few comments inline. > > And a trivial typo and other

Re: [PATCH v2 14/14] staging: iio: Remove ad7746 from staging

2018-04-15 Thread Jonathan Cameron
On Sun, 15 Apr 2018 12:24:23 -0700 Joe Perches wrote: > On Sun, 2018-04-15 at 16:43 +0100, Jonathan Cameron wrote: > > On Fri, 13 Apr 2018 13:36:51 -0300 > > Hernán Gonzalez wrote: > > > > > Signed-off-by: Hernán Gonzalez > > > > Please have a single patch (with move detection turned off)

Re: [PATCH] fs/dcache.c: re-add cond_resched() in shrink_dcache_parent()

2018-04-15 Thread Al Viro
On Sun, Apr 15, 2018 at 11:34:17AM -0700, Linus Torvalds wrote: > No, it's obviously not type-safe, but at least it's _legible_, and is > a pattern, while that "let's randomly just do a cast in the middle of > the code" is just nasty. Sure, no problem... I really wish there was a way to say voi

Re: [PATCH v4] X86/KVM: Properly update 'tsc_offset' to represent the running guest

2018-04-15 Thread Raslan, KarimAllah
On Sat, 2018-04-14 at 05:10 +0200, KarimAllah Ahmed wrote: > Update 'tsc_offset' on vmentry/vmexit of L2 guests to ensure that it always > captures the TSC_OFFSET of the running guest whether it is the L1 or L2 > guest. > > Cc: Jim Mattson > Cc: Paolo Bonzini > Cc: Radim Krčmář > Cc: k...@vger.

Re: [v4 PATCH] mm: introduce arg_lock to protect arg_start|end and env_start|end in mm_struct

2018-04-15 Thread Cyrill Gorcunov
On Sun, Apr 15, 2018 at 02:24:51AM +0800, Yang Shi wrote: > mmap_sem is on the hot path of kernel, and it very contended, but it is > abused too. It is used to protect arg_start|end and evn_start|end when > reading /proc/$PID/cmdline and /proc/$PID/environ, but it doesn't make > sense since those p

Re: [regression v4.17-rc0] Re: FORTIFY_SOURCE breaks ARM compilation in -next -- was Re: ARM compile failure in Re: linux-next: Tree for Apr 4

2018-04-15 Thread Pavel Machek
On Sun 2018-04-15 11:00:06, Kees Cook wrote: > On Sun, Apr 15, 2018 at 10:39 AM, Pavel Machek wrote: > > Hi! > > > >> Thanks. > >> > >> Ok, let me try to bisect it. Compile-problem should be easy... > >> > >> Hmm. And as it is compile-problem in single file, it should even be > >> reasonably fast.

[PATCH v4 02/15] KVM: s390: reset crypto attributes for all vcpus

2018-04-15 Thread Tony Krowiak
Introduces a new function to reset the crypto attributes for all vcpus whether they are running or not. Each vcpu in KVM will be removed from SIE prior to resetting the crypto attributes in its SIE state description. After all vcpus have had their crypto attributes reset the vcpus will be restored

[PATCH v4 07/15] s390: vfio-ap: register matrix device with VFIO mdev framework

2018-04-15 Thread Tony Krowiak
Registers the matrix device created by the VFIO AP device driver with the VFIO mediated device framework. Registering the matrix device will create the sysfs structures needed to create mediated matrix devices each of which will be used to configure the AP matrix for a guest and connect it to the V

[PATCH v4 15/15] s390: doc: detailed specifications for AP virtualization

2018-04-15 Thread Tony Krowiak
This patch provides documentation describing the AP architecture and design concepts behind the virtualization of AP devices. It also includes an example of how to configure AP devices for exclusive use of KVM guests. Signed-off-by: Tony Krowiak --- Documentation/s390/vfio-ap.txt | 567

[PATCH v4 14/15] s390: vfio-ap: implement VFIO_DEVICE_GET_INFO ioctl

2018-04-15 Thread Tony Krowiak
Introduces ioctl access to the VFIO AP Matrix device driver by implementing the VFIO_DEVICE_GET_INFO ioctl. This ioctl provides the VFIO AP Matrix device driver information to the guest machine. Reviewed-by: Pierre Morel Signed-off-by: Tony Krowiak --- drivers/s390/crypto/vfio_ap_ops.c | 43 +

[PATCH v4 10/15] s390: vfio-ap: sysfs interfaces to configure domains

2018-04-15 Thread Tony Krowiak
Provides the sysfs interfaces for assigning AP domains to and unassigning AP domains from a mediated matrix device. An AP domain ID corresponds to an AP queue index (APQI). For each domain assigned to the mediated matrix device, its corresponging APQI is stored in an AP queue mask (AQM). The bits

[PATCH v4 09/15] s390: vfio-ap: sysfs interfaces to configure adapters

2018-04-15 Thread Tony Krowiak
Provides the sysfs interfaces for assigning AP adapters to and unassigning AP adapters from a mediated matrix device. The IDs of the AP adapters assigned to the mediated matrix device are stored in an AP mask (APM). The bits in the APM, from most significant to least significant bit, correspond to

[PATCH v4 12/15] s390: vfio-ap: sysfs interface to view matrix mdev matrix

2018-04-15 Thread Tony Krowiak
Provides a sysfs interface to view the AP matrix configured for the mediated matrix device. The relevant sysfs structures are: /sys/devices/vfio_ap ... [matrix] .. [mdev_supported_types] . [vfio_ap-passthrough] [devices] ...[$uuid] .. matrix T

[PATCH v4 11/15] s390: vfio-ap: sysfs interfaces to configure control domains

2018-04-15 Thread Tony Krowiak
Provides the sysfs interfaces for assigning AP control domains to and unassigning AP control domains from a mediated matrix device. The IDs of the AP control domains assigned to the mediated matrix device are stored in an AP domain mask (ADM). The bits in the ADM, from most significant to least si

[PATCH v4 13/15] KVM: s390: configure the guest's AP devices

2018-04-15 Thread Tony Krowiak
Registers a group notifier during the open of the mediated matrix device to get information on KVM presence through the VFIO_GROUP_NOTIFY_SET_KVM event. When notified, the pointer to the kvm structure is saved inside the mediated matrix device. Once the VFIO AP device driver has access to KVM, acce

[PATCH v4 08/15] KVM: s390: interfaces to (de)configure guest's AP matrix

2018-04-15 Thread Tony Krowiak
Provides interfaces to assign AP adapters, usage domains and control domains to a KVM guest. A KVM guest is started by executing the Start Interpretive Execution (SIE) instruction. The SIE state description is a control block that contains the state information for a KVM guest and is supplied as i

[PATCH v4 06/15] s390: vfio-ap: base implementation of VFIO AP device driver

2018-04-15 Thread Tony Krowiak
Introduces a new AP device driver. This device driver is built on the VFIO mediated device framework. The framework provides sysfs interfaces that facilitate passthrough access by guests to devices installed on the linux host. The VFIO AP device driver will serve two purposes: 1. Provide the inte

[PATCH v4 05/15] KVM: s390: enable/disable AP interpretive execution

2018-04-15 Thread Tony Krowiak
The VFIO AP device model exploits interpretive execution of AP instructions (APIE) to provide guests passthrough access to AP devices. This patch introduces a new interface to enable and disable APIE. Signed-off-by: Tony Krowiak --- arch/s390/include/asm/kvm-ap.h | 16 arch/

[PATCH v4 03/15] KVM: s390: refactor crypto initialization

2018-04-15 Thread Tony Krowiak
This patch refactors the code that initializes the crypto configuration for a guest. The crypto configuration is contained in a crypto control block (CRYCB) which is a satellite control block to our main hardware virtualization control block. The CRYCB is attached to the main virtualization control

[PATCH v4 04/15] KVM: s390: CPU model support for AP virtualization

2018-04-15 Thread Tony Krowiak
Introduces a new CPU model feature and two CPU model facilities to support AP virtualization for KVM guests. CPU model feature: The KVM_S390_VM_CPU_FEAT_AP feature indicates that AP instructions are available on the guest. This feature will be enabled by the kernel only if the AP instructions are

[PATCH v4 00/15] s390: vfio-ap: guest dedicated crypto adapters

2018-04-15 Thread Tony Krowiak
On s390, we have cryptographic coprocessor cards, which are modeled on Linux as devices on the AP bus. Each card can be partitioned into domains which can be thought of as a set of hardware registers for processing crypto commands. Crypto commands are sent to a specific domain within a card is via

[PATCH v4 01/15] s390: zcrypt: externalize AP instructions available function

2018-04-15 Thread Tony Krowiak
If the AP instructions are not available on the linux host, then AP devices can not be interpreted by the SIE. The AP bus has a function it uses to determine if the AP instructions are available. This patch provides a new function that wraps the AP bus's function to externalize it for use by KVM.

[PATCH v2 00/12] KVM/X86: Introduce a new guest mapping interface

2018-04-15 Thread KarimAllah Ahmed
Guest memory can either be directly managed by the kernel (i.e. have a "struct page") or they can simply live outside kernel control (i.e. do not have a "struct page"). KVM mostly support these two modes, except in a few places where the code seems to assume that guest memory must have a "struct pa

[PATCH v2 04/12] X86/KVM: Handle PFNs outside of kernel reach when touching GPTEs

2018-04-15 Thread KarimAllah Ahmed
From: Filippo Sironi cmpxchg_gpte() calls get_user_pages_fast() to retrieve the number of pages and the respective struct page to map in the kernel virtual address space. This doesn't work if get_user_pages_fast() is invoked with a userspace virtual address that's backed by PFNs outside of kernel

[PATCH v2 12/12] KVM/nSVM: Use the new mapping API for mapping guest memory

2018-04-15 Thread KarimAllah Ahmed
Use the new mapping API for mapping guest memory to avoid depending on "struct page". Signed-off-by: KarimAllah Ahmed --- arch/x86/kvm/svm.c | 97 +++--- 1 file changed, 49 insertions(+), 48 deletions(-) diff --git a/arch/x86/kvm/svm.c b/arch/x86/

[PATCH v2 10/12] KVM/X86: hyperv: Use kvm_vcpu_map in synic_clear_sint_msg_pending

2018-04-15 Thread KarimAllah Ahmed
Use kvm_vcpu_map in synic_clear_sint_msg_pending since using kvm_vcpu_gpa_to_page() and kmap() will only work for guest memory that has a "struct page". Signed-off-by: KarimAllah Ahmed --- v1 -> v2: - Update to match the new API return codes --- arch/x86/kvm/hyperv.c | 16 ++-- 1 fil

[PATCH v2 11/12] KVM/X86: hyperv: Use kvm_vcpu_map in synic_deliver_msg

2018-04-15 Thread KarimAllah Ahmed
Use kvm_vcpu_map in synic_deliver_msg since using kvm_vcpu_gpa_to_page() and kmap() will only work for guest memory that has a "struct page". Signed-off-by: KarimAllah Ahmed --- v1 -> v2: - Update to match the new API return codes --- arch/x86/kvm/hyperv.c | 12 ++-- 1 file changed, 6 in

[PATCH v2 01/12] X86/nVMX: handle_vmon: Read 4 bytes from guest memory

2018-04-15 Thread KarimAllah Ahmed
Read the data directly from guest memory instead instead of the map->read->unmap sequence. This also avoids using kvm_vcpu_gpa_to_page() and kmap() which assumes that there is a "struct page" for guest memory. Suggested-by: Jim Mattson Signed-off-by: KarimAllah Ahmed --- v1 -> v2: - Massage comm

[PATCH v2 08/12] KVM/nVMX: Use kvm_vcpu_map when mapping the posted interrupt descriptor table

2018-04-15 Thread KarimAllah Ahmed
Use kvm_vcpu_map when mapping the posted interrupt descriptor table since using kvm_vcpu_gpa_to_page() and kmap() will only work for guest memory that has a "struct page". One additional semantic change is that the virtual host mapping lifecycle has changed a bit. It now has the same lifetime of t

[PATCH v2 05/12] KVM: Introduce a new guest mapping API

2018-04-15 Thread KarimAllah Ahmed
In KVM, specially for nested guests, there is a dominant pattern of: => map guest memory -> do_something -> unmap guest memory In addition to all this unnecessarily noise in the code due to boiler plate code, most of the time the mapping function does not properly handle memory that is no

[PATCH v2 09/12] KVM/X86: Use kvm_vcpu_map in emulator_cmpxchg_emulated

2018-04-15 Thread KarimAllah Ahmed
Use kvm_vcpu_map in emulator_cmpxchg_emulated since using kvm_vcpu_gpa_to_page() and kmap() will only work for guest memory that has a "struct page". Signed-off-by: KarimAllah Ahmed --- v1 -> v2: - Update to match the new API return codes --- arch/x86/kvm/x86.c | 13 ++--- 1 file changed

[PATCH v2 03/12] X86/nVMX: Update the PML table without mapping and unmapping the page

2018-04-15 Thread KarimAllah Ahmed
Update the PML table without mapping and unmapping the page. This also avoids using kvm_vcpu_gpa_to_page(..) which assumes that there is a "struct page" for guest memory. Signed-off-by: KarimAllah Ahmed --- v1 -> v2: - Use kvm_write_guest_page instead of kvm_write_guest (pbonzini) - Do not use po

[PATCH v2 02/12] X86/nVMX: handle_vmptrld: Copy the VMCS12 directly from guest memory

2018-04-15 Thread KarimAllah Ahmed
Copy the VMCS12 directly from guest memory instead of the map->copy->unmap sequence. This also avoids using kvm_vcpu_gpa_to_page() and kmap() which assumes that there is a "struct page" for guest memory. Signed-off-by: KarimAllah Ahmed --- v1 -> v2: - Massage commit message a bit. --- arch/x86/k

[PATCH v2 07/12] KVM/nVMX: Use kvm_vcpu_map when mapping the virtual APIC page

2018-04-15 Thread KarimAllah Ahmed
Use kvm_vcpu_map when mapping the virtual APIC page since using kvm_vcpu_gpa_to_page() and kmap() will only work for guest memory that has a "struct page". One additional semantic change is that the virtual host mapping lifecycle has changed a bit. It now has the same lifetime of the pinning of th

Re: [PATCH] fs/dcache.c: re-add cond_resched() in shrink_dcache_parent()

2018-04-15 Thread Al Viro
On Sun, Apr 15, 2018 at 09:40:54PM +0100, Al Viro wrote: > BTW, the current placement of cond_resched() looks bogus; suppose we > have collected a lot of victims and ran into need_resched(). We leave > d_walk() and call shrink_dentry_list(). At that point there's a lot > of stuff on our shrink l

[PATCH v2 06/12] KVM/nVMX: Use kvm_vcpu_map when mapping the L1 MSR bitmap

2018-04-15 Thread KarimAllah Ahmed
Use kvm_vcpu_map when mapping the L1 MSR bitmap since using kvm_vcpu_gpa_to_page() and kmap() will only work for guest memory that has a "struct page". Signed-off-by: KarimAllah Ahmed --- v1 -> v2: - Do not change the lifecycle of the mapping (pbonzini) --- arch/x86/kvm/vmx.c | 14 --

Re: Softlockup and Hardlockup sample test module

2018-04-15 Thread Cong Wang
On Sun, Apr 15, 2018 at 12:47 AM, Ivid Suvarna wrote: > Hi All, > > Could you please provide some sample test module for causing a > Softlockup and Hardlockup in latest kernel for SMP for testing > purposes. I assume there are some Kconfigs to be enabled as well for > this. https://github.com/to

Re: [RFC] Passing luks passphrase from grub to systemd

2018-04-15 Thread Oleksandr Natalenko
Hi. > as I'm stuck with a (non-EFI x86_64) system with encrypted root > partition, I have to enter the passphrase twice (grub needs it for > getting the kernel etc., systemd needs it for mounting the root > partition). This can be quite inconvenient, especially if the passphrase > is long and cont

Re: [PATCH] fs/dcache.c: re-add cond_resched() in shrink_dcache_parent()

2018-04-15 Thread Al Viro
On Sun, Apr 15, 2018 at 10:54:55PM +0100, Al Viro wrote: > On Sun, Apr 15, 2018 at 09:40:54PM +0100, Al Viro wrote: > > > BTW, the current placement of cond_resched() looks bogus; suppose we > > have collected a lot of victims and ran into need_resched(). We leave > > d_walk() and call shrink_den

Re: [RFC] Passing luks passphrase from grub to systemd

2018-04-15 Thread Gabriel C
2018-04-15 21:06 GMT+02:00 Hansjoerg Lipp : > Hello, > Hello, > as I'm stuck with a (non-EFI x86_64) system with encrypted root > partition, I have to enter the passphrase twice (grub needs it for > getting the kernel etc., systemd needs it for mounting the root > partition). This can be quite in

[PATCH] VFS: simplify seq_file iteration code and interface

2018-04-15 Thread NeilBrown
The documentation for seq_file suggests that it is necessary to be able to move the iterator to a given offset, however that is not the case. If the iterator is stored in the private data and is stable from one read() syscall to the next, it is only necessary to support first/next interactions.

Re: [RFC] Passing luks passphrase from grub to systemd

2018-04-15 Thread Hansjoerg Lipp
Hello Gabriel, On Mon, Apr 16, 2018 at 12:35:33AM +0200, Gabriel C wrote: > 2018-04-15 21:06 GMT+02:00 Hansjoerg Lipp : > > as I'm stuck with a (non-EFI x86_64) system with encrypted root > > partition, I have to enter the passphrase twice (grub needs it for > > getting the kernel etc., systemd ne

[PATCH v2] mtd: spi-nor: clear Winbond Extended Address Reg on switch to 3-byte addressing.

2018-04-15 Thread NeilBrown
Winbond spi-nor flash 32MB and larger have an 'Extended Address Register' as one option for addressing beyond 16MB (Macronix has the same concept, Spansion has EXTADD bits in the Bank Address Register). According to section 8.2.7 Write Extended Address Register (C5h) of the Winbond W25Q256FV

Re: [PATCH v2] phy: core: Allow phy_pm_runtime_xxx API calls with NULL phy

2018-04-15 Thread Manu Gautam
Hi Kishon, On 3/20/2018 11:31 AM, Manu Gautam wrote: > phy_init() and phy_exit() calls, and phy_power_on() and > phy_power_off() already accept NULL as valid PHY reference > and act as NOP. Extend same concept to phy runtime_pm APIs > to keep drivers (e.g. dwc3) code simple while dealing with > o

Re: [RFC] Passing luks passphrase from grub to systemd

2018-04-15 Thread Hansjoerg Lipp
Hello Oleksandr. Am 16.04.2018 um 00:25 schrieb Oleksandr Natalenko: >> as I'm stuck with a (non-EFI x86_64) system with encrypted root >> partition, I have to enter the passphrase twice (grub needs it for >> getting the kernel etc., systemd needs it for mounting the root >> partition). This can b

[PATCH 0/6] staging: lustre: code rearrangement

2018-04-15 Thread NeilBrown
This series rearranges some code and manages to delete four files in the process, all from directories called "linux". This results in drivers/staging/lustre/include/linux/libcfs/linux becoming empty, so it disappears too. These patches depend on [PATCH] staging: lustre: libcfs: use dynamic mi

[PATCH 2/6] staging: lustre: remove libcfs/linux/libcfs.h

2018-04-15 Thread NeilBrown
This include file is only included in one place, and only contains a list of other include directives. So just move all those to the place where this file is included, and discard the file. One include directive uses a local name ("linux-cpu.h"), so that needs to be given a proper path. Probably

[PATCH 3/6] staging: lustre: remove include/linux/libcfs/linux/linux-cpu.h

2018-04-15 Thread NeilBrown
This include file contains definitions used when CONFIG_SMP is in effect. Other includes contain corresponding definitions for when it isn't. This can be hard to follow, so move the definitions to the one place. As HAVE_LIBCFS_CPT is defined precisely when CONFIG_SMP, we discard that macro and ju

[PATCH 4/6] staging: lustre: rearrange placement of CPU partition management code.

2018-04-15 Thread NeilBrown
Currently the code for cpu-partition tables lives in various places. The non-SMP code is partly in libcfs/libcfs_cpu.h as static inlines, and partly in lnet/libcfs/libcfs_cpu.c - some of the functions are tiny and could well be inlines. The SMP code is all in lnet/libcfs/linux/linux-cpu.c. This p

[PATCH 5/6] staging: lustre: move misc-device registration closer to related code.

2018-04-15 Thread NeilBrown
The ioctl handler for the misc device is in lnet/libcfs/module.c but is it registered in lnet/libcfs/linux/linux-module.c. Keeping related code together make maintenance easier, so move the code. Signed-off-by: NeilBrown --- .../staging/lustre/include/linux/libcfs/libcfs.h |2 - .../lust

[PATCH 1/6] staging: lustre: move stack-check macros to libcfs_debug.h

2018-04-15 Thread NeilBrown
CDEBUG_STACK() and CHECK_STACK() are macros to help with debugging, so move them from drivers/staging/lustre/include/linux/libcfs/linux/libcfs.h to drivers/staging/lustre/include/linux/libcfs/libcfs_debug.h This seems a more fitting location, and is a step towards removing linux/libcfs.h and

[PATCH 6/6] staging: lustre: move remaining code from linux-module.c to module.c

2018-04-15 Thread NeilBrown
There is no longer any need to keep this code separate, and now we can remove linux-module.c Signed-off-by: NeilBrown --- .../staging/lustre/include/linux/libcfs/libcfs.h |4 drivers/staging/lustre/lnet/libcfs/Makefile|1 .../lustre/lnet/libcfs/linux/linux-module.c|

Re: [PATCH v4 6/7] dt-bindings: phy-qcom-usb2: Add support to override tuning values

2018-04-15 Thread Manu Gautam
Hi, On 4/13/2018 2:17 AM, Doug Anderson wrote: >> Thanks for review Rob. I too agree with both the viewpoints. >> Doug, if it is not of much concern then can I stick with current approach? > I certainly would appreciate the #defines and believe they add to the > readability, but if you're dead se

Re: [PATCH] mm: allow to decrease swap.max below actual swap usage

2018-04-15 Thread Tejun Heo
Hello, Roman. The reclaim behavior is a bit worrisome. * It disables an entire swap area while reclaim is in progress. Most systems only have one swap area, so this would disable allocating new swap area for everyone. * The reclaim seems very inefficient. IIUC, it has to read every swap

Re: [PATCH] printk: Ratelimit messages printed by console drivers

2018-04-15 Thread Sergey Senozhatsky
On (04/14/18 11:35), Sergey Senozhatsky wrote: > On (04/13/18 10:12), Steven Rostedt wrote: > > > > > The interval is set to one hour. It is rather arbitrary selected time. > > > It is supposed to be a compromise between never print these messages, > > > do not lockup the machine, do not fill the

Re: [PATCH] f2fs: clear PageError on writepage

2018-04-15 Thread Chao Yu
On 2018/4/13 9:07, Jaegeuk Kim wrote: > This patch clears PageError in some pages tagged by read path, but when we > write the pages with valid contents, writepage should clear the bit likewise > ext4. > > Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu Thanks,

Linux 4.17-rc1

2018-04-15 Thread Linus Torvalds
So two weeks have passed, and the merge window was pretty normal and is now closed. This does not seem to be shaping up to be a particularly big release, and there seems to be nothing particularly special about it. The most special thing that happened is purely numerology: we've passed the six mil

Re: [RFC PATCH 0/3] Dealing with the aliases of SI_USER

2018-04-15 Thread Eric W. Biederman
Linus Torvalds writes: > ( > > On Sun, Apr 15, 2018 at 8:56 AM, Eric W. Biederman > wrote: >> >> Would you consider the patchset below for -rc2? > > Ugh. The point of this series is to squash the potential for regressions even from the weird broken code that fills in fields for si_code 0 that d

Dear Talented

2018-04-15 Thread Ms.Lisa Clement
Dear Talented, I am Talent Scout For BLUE SKY FILM STUDIO, Present Blue sky Studio a Film Corporation Located in the United State, is Soliciting for the Right to use Your Photo/Face and Personality as One of the Semi -Major Role/ Character in our Upcoming ANIMATED Stereoscope 3D Movie-The Story of

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

2018-04-15 Thread Stephen Rothwell
Hi all, After merging the bpf tree, today's linux-next build (arm multi_v7_defconfig) failed like this: kernel/bpf/core.o: In function `sock_map_release': core.c:(.text+0xd04): multiple definition of `sock_map_release' kernel/sysctl.o:sysctl.c:(.text+0x1a50): first defined here kernel/events/core

[PATCH] pinctrl: mediatek: update pinmux defintions for MT7623

2018-04-15 Thread Ryder Lee
Fulfill the pinmux macros for MT7623 Signed-off-by: Ryder Lee --- include/dt-bindings/pinctrl/mt7623-pinfunc.h | 90 +++- 1 file changed, 87 insertions(+), 3 deletions(-) diff --git a/include/dt-bindings/pinctrl/mt7623-pinfunc.h b/include/dt-bindings/pinctrl/mt7623-pinf

[PATCH] clk: mediatek: correct the clocks for MT2701 HDMI PHY module

2018-04-15 Thread Ryder Lee
The hdmitx_dig_cts clock signal is not a child of clk26m, and the actual output of the PLL block is derived from the tvdpll via a configurable PLL post-divider. It is used as the PLL reference input to the HDMI PHY module. Signed-off-by: Chunhui Dai Signed-off-by: Ryder Lee --- drivers/clk/med

[PATCH] spi: mediatek: Use of_device_get_match_data()

2018-04-15 Thread Ryder Lee
The usage of of_device_get_match_data() reduce the code size a bit. Also, the only way to call mtk_spi_probe() is to match an entry in mtk_spi_of_match[], so of_id cannot be NULL. Signed-off-by: Ryder Lee --- drivers/spi/spi-mt65xx.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletio

[PATCH] i2c: mediatek: use of_device_get_match_data()

2018-04-15 Thread Ryder Lee
The usage of of_device_get_match_data() reduce the code size a bit. Also, the only way to call mtk_i2c_probe() is to match an entry in mtk_i2c_of_match[], so of_id cannot be NULL. Signed-off-by: Ryder Lee --- drivers/i2c/busses/i2c-mt65xx.c | 8 ++-- 1 file changed, 2 insertions(+), 6 delet

[PATCH] mmc: mediatek: use of_device_get_match_data()

2018-04-15 Thread Ryder Lee
The usage of of_device_get_match_data() reduce the code size a bit. Also, the only way to call msdc_drv_probe() is to match an entry in msdc_of_ids[], so of_id cannot be NULL. Signed-off-by: Ryder Lee --- drivers/mmc/host/mtk-sd.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) di

[PATCH] mtd: nand: mtk: use of_device_get_match_data()

2018-04-15 Thread Ryder Lee
The usage of of_device_get_match_data() reduce the code size a bit. Also, the only way to call .probe() is to match an entry in .of_match_table[], so of_device_id cannot be NULL. Signed-off-by: Ryder Lee --- drivers/mtd/nand/raw/mtk_ecc.c | 7 +-- drivers/mtd/nand/raw/mtk_nand.c | 10 +---

[PATCH] soc: mediatek: use of_device_get_match_data()

2018-04-15 Thread Ryder Lee
The usage of of_device_get_match_data() reduce the code size a bit. Also, the only way to call pwrap_probe() is to match an entry in of_pwrap_match_tbl[], so of_id cannot be NULL. Signed-off-by: Ryder Lee --- drivers/soc/mediatek/mtk-pmic-wrap.c | 13 +++-- drivers/soc/mediatek/mtk-scps

<    1   2   3   4   >