[PATCH v4 3/9] mm: Add write-protect and clean utilities for address space ranges

2019-06-11 Thread VMware
From: Thomas Hellstrom Add two utilities to a) write-protect and b) clean all ptes pointing into a range of an address space. The utilities are intended to aid in tracking dirty pages (either driver-allocated system memory or pci device memory). The write-protect utility should be used in

Re: [PATCH 08/15] x86/alternatives: Teach text_poke_bp() to emulate instructions

2019-06-11 Thread Peter Zijlstra
On Tue, Jun 11, 2019 at 02:08:34PM +0200, Peter Zijlstra wrote: > On Tue, Jun 11, 2019 at 10:03:07AM +0200, Peter Zijlstra wrote: > > On Fri, Jun 07, 2019 at 11:10:19AM -0700, Andy Lutomirski wrote: > > > > I am surely missing some kprobe context, but is it really safe to use > > > this mechanism

[PATCH v4 1/9] mm: Allow the [page|pfn]_mkwrite callbacks to drop the mmap_sem

2019-06-11 Thread VMware
From: Thomas Hellstrom Driver fault callbacks are allowed to drop the mmap_sem when expecting long hardware waits to avoid blocking other mm users. Allow the mkwrite callbacks to do the same by returning early on VM_FAULT_RETRY. In particular we want to be able to drop the mmap_sem when waiting

Re: [PATCH 0/4] 32-bit Meson: audio clock support

2019-06-11 Thread Jerome Brunet
On Mon, 2019-05-20 at 22:03 +0200, Martin Blumenstingl wrote: > The audio clocks on the 32-bit Meson8, Meson8b and Meson8m2 are > (probably) identical to the ones on GXBB, GXL and GXM. > > The first piece of evidence is that Amlogic's vendor kernel is using > the same basic driver (just slightly

Re: [PATCH v2 0/3] clk: meson: add support for Amlogic G12B

2019-06-11 Thread Jerome Brunet
On Tue, 2019-05-28 at 10:07 +0200, Neil Armstrong wrote: > The Amlogic G12B SoC is very similar with the G12A SoC, sharing > most of the features and architecture. > G12B clock tree is very close, the main differences are : > - SYS_PLL is used for the second cluster (otherwise used fir the first

[PATCH v4 2/9] mm: Add an apply_to_pfn_range interface

2019-06-11 Thread VMware
From: Thomas Hellstrom This is basically apply_to_page_range with added functionality: Allocating missing parts of the page table becomes optional, which means that the function can be guaranteed not to error if allocation is disabled. Also passing of the closure struct and callback function

Re: [PATCH v3 0/2] Add support of Temperature sensor Clock for G12 SoC

2019-06-11 Thread Jerome Brunet
On Fri, 2019-04-12 at 12:02 +0200, Guillaume La Roque wrote: > This patch series add support of Clock for temperature sensor > on Amlogic G12a SoC. > > Guillaume > > cahnges sinve v2: > - rebase on good branch > > changes since v1: > - fix .width value > > Guillaume La Roque (2): >

[PATCH v4 5/7] i2c: core: Move ACPI IRQ handling to probe time

2019-06-11 Thread Charles Keepax
Bring the ACPI path in sync with the device tree path and handle all the IRQ fetching at probe time. This leaves the only IRQ handling at device registration time being that which is passed directly through the board info as either a resource or an actual IRQ number. Reviewed-by: Mika Westerberg

[PATCH v4 3/7] i2c: acpi: Factor out getting the IRQ from ACPI

2019-06-11 Thread Charles Keepax
In preparation for future refactoring factor out the fetch of the IRQ into its own helper function. Reviewed-by: Mika Westerberg Signed-off-by: Charles Keepax --- No changes since v3. Thanks, Charles drivers/i2c/i2c-core-acpi.c | 33 + 1 file changed, 21

[PATCH v4 7/7] i2c: core: Tidy up handling of init_irq

2019-06-11 Thread Charles Keepax
Only set init_irq during i2c_device_new and only handle client->irq on the probe/remove paths. Suggested-by: Benjamin Tissoires Reviewed-by: Mika Westerberg Signed-off-by: Charles Keepax --- No change since v3. Thanks, Charles drivers/i2c/i2c-core-base.c | 5 +++-- 1 file changed, 3

[PATCH v4 2/7] i2c: acpi: Use available IRQ helper functions

2019-06-11 Thread Charles Keepax
Use the available IRQ helper functions, most of the functions have additional helpful side affects like configuring the trigger type of the IRQ. Reviewed-by: Mika Westerberg Signed-off-by: Charles Keepax --- No changes since v3. Apologies Andy but I really can't see a sensible way to split

[PATCH v4 6/7] i2c: core: Move ACPI gpio IRQ handling into i2c_acpi_get_irq

2019-06-11 Thread Charles Keepax
It makes sense to contain all the ACPI IRQ handling in a single helper function. Reviewed-by: Mika Westerberg Signed-off-by: Charles Keepax --- No change since v3. Thanks, Charles drivers/i2c/i2c-core-acpi.c | 3 +++ drivers/i2c/i2c-core-base.c | 3 --- 2 files changed, 3 insertions(+), 3

[PATCH v4 4/7] i2c: core: Make i2c_acpi_get_irq available to the rest of the I2C core

2019-06-11 Thread Charles Keepax
In preparation for more refactoring make i2c_acpi_get_irq available outside i2c-core-acpi.c. Signed-off-by: Charles Keepax --- Changes since v3: - Move the change to use the helper function from i2c-core-base into its own patch. Thanks, Charles drivers/i2c/i2c-core-acpi.c | 15

[PATCH v4 0/7] I2C IRQ Probe Improvements

2019-06-11 Thread Charles Keepax
This series attempts to align as much IRQ handling into the probe path as possible. Note that I don't have a great setup for testing these patches so they are mostly just build tested and need careful review and testing before any of them are merged. The series brings the ACPI path inline with

[PATCH v4 1/7] i2c: core: Allow whole core to use i2c_dev_irq_from_resources

2019-06-11 Thread Charles Keepax
Remove the static from i2c_dev_irq_from _resources so that other parts of the core code can use this helper function. Reviewed-by: Mika Westerberg Signed-off-by: Charles Keepax --- No changes since v3. Thanks, Charles drivers/i2c/i2c-core-base.c | 4 ++-- drivers/i2c/i2c-core.h | 2 ++

Question - check in runtime which architecture am I running on

2019-06-11 Thread Oded Gabbay
Hello POWER developers, I'm trying to find out if there is an internal kernel API so that a PCI driver can call it to check if its PCI device is running inside a POWER9 machine. Alternatively, if that's not available, if it is running on a machine with powerpc architecture. I need this

[PATCH 2/2] ASoC: ti: davinci-mcasp: Support for auxclk-fs-ratio

2019-06-11 Thread Peter Ujfalusi
When McASP is bus master and it's AUXCLK clock is not static, but it is a multiple of the frame sync the constraint rules should take it account when validating possible stream formats. Signed-off-by: Peter Ujfalusi --- sound/soc/ti/davinci-mcasp.c | 52 ++-- 1

Re: [PATCHv3 1/2] mm/gup: fix omission of check on FOLL_LONGTERM in get_user_pages_fast()

2019-06-11 Thread Pingfan Liu
On Fri, Jun 07, 2019 at 02:10:15PM +0800, Pingfan Liu wrote: > On Fri, Jun 7, 2019 at 5:17 AM John Hubbard wrote: > > > > On 6/5/19 7:19 PM, Pingfan Liu wrote: > > > On Thu, Jun 6, 2019 at 5:49 AM Andrew Morton > > > wrote: > > ... > > >>> --- a/mm/gup.c > > >>> +++ b/mm/gup.c > > >>> @@

[PATCH 1/2] bindings: sound: davinci-mcasp: Add support for optional auxclk-fs-ratio

2019-06-11 Thread Peter Ujfalusi
When McASP is bus master it's reference clock (AUXCLK) might not be a static clock, but running at a specific FS ratio. Signed-off-by: Peter Ujfalusi --- .../devicetree/bindings/sound/davinci-mcasp-audio.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH 1/1] sched: Deduplicate code with do-while

2019-06-11 Thread Pavel Begunkov (Silence)
From: Pavel Begunkov Statements in the loop's body and before it are identical. Use do-while to not repeat it. Signed-off-by: Pavel Begunkov --- kernel/sched/wait.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/kernel/sched/wait.c b/kernel/sched/wait.c index

[PATCH 0/2] ASoC: ti: davinci-mcasp: Master AUXCLK FS ration support

2019-06-11 Thread Peter Ujfalusi
Hi, The AUXCLK of McASP which is used as the master clock for I2S signal generation usually is a static clock. The driver (and bindings) assumes this setup, however if the AUXCLK can change with the stream's FS then this assumption breaks the audio support as it sets constraint rules in startup,

Re: [PATCH 2/2] i3c: master: Add driver for MediaTek IP

2019-06-11 Thread Boris Brezillon
On Tue, 11 Jun 2019 20:25:22 +0800 Qii Wang wrote: > On Tue, 2019-06-04 at 20:26 +0800, Qii Wang wrote: > > On Tue, 2019-06-04 at 09:58 +0200, Boris Brezillon wrote: > > > On Mon, 3 Jun 2019 11:51:03 +0800 > > > Qii Wang wrote: > > > > > > > > > > +static int mtk_i3c_master_probe(struct

[PATCH v2 06/10] serial: stm32: add support for no_console_suspend

2019-06-11 Thread Erwan Le Ray
In order to display console messages in low power mode, console pins must be kept active after suspend call. Signed-off-by: Bich Hemon Signed-off-by: Erwan Le Ray diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32-usart.c index 0d43711..00e4d7a 100644 ---

[PATCH v2.5 0/3] firmware: Add support for loading compressed files

2019-06-11 Thread Takashi Iwai
[resubmitted with the missing patch] Hi, here are the rest and the main part of patches to add the support for loading the compressed firmware files. The patch was slightly refactored for more easily enhancing for other compression formats (if anyone wants). Also the selftest patch is

[PATCH v2 09/10] ARM: dts: stm32: Update UART4 pin states on stm32mp157a-dk1

2019-06-11 Thread Erwan Le Ray
From: Bich Hemon Add idle and no_console_suspend states to uart4 pin configuration. Signed-off-by: Bich Hemon Signed-off-by: Erwan Le Ray diff --git a/arch/arm/boot/dts/stm32mp157a-dk1.dts b/arch/arm/boot/dts/stm32mp157a-dk1.dts index 098dbfb..b851f80 100644 ---

[PATCH v2 02/10] dt-bindings: serial: add optional pinctrl states

2019-06-11 Thread Erwan Le Ray
From: Bich Hemon Add options for pinctrl states: - "sleep" for low power - "idle" for low power and wakeup capabilities enabled - "no_console_suspend" for enabling console messages in low power Signed-off-by: Bich Hemon Signed-off-by: Erwan Le Ray diff --git

[PATCH v2 10/10] ARM: dts: stm32: add wakeup capability on each usart/uart on stm32mp157c

2019-06-11 Thread Erwan Le Ray
- Mark all usart/uart devices as wakeup source. - Identify all dedicated interrupts with a specific interrupt name (either "event" or "wakeup"). - add interrupts-extended wakeup interrupt Signed-off-by: Erwan Le Ray diff --git a/arch/arm/boot/dts/stm32mp157c.dtsi

[PATCH v2 05/10] serial: stm32: Use __maybe_unused instead of #if CONFIG_PM_SLEEP

2019-06-11 Thread Erwan Le Ray
Use __maybe_unused for power management related functionsinstead of fixes: 270e5a74fe4c ("serial: stm32: add wakeup mechanism") Signed-off-by: Erwan Le Ray diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32-usart.c index 60f3faf..0d43711 100644 ---

[PATCH v2 07/10] ARM: dts: stm32: update uart4 pin configurations for low power

2019-06-11 Thread Erwan Le Ray
Currently, pinctrl states defines only one "sleep" configuration for pins, no matter the possible uart low power modes (Rx pin always kept active). Sleep pin configuration is refined for low power modes: - "sleep" (no wakeup & console suspend enabled): put pins in analog state to optimize power

[PATCH v2.5 1/3] firmware: Factor out the paged buffer handling code

2019-06-11 Thread Takashi Iwai
This is merely a preparation for the upcoming compressed firmware support and no functional changes. It moves the code to handle the paged buffer allocation and mapping out of fallback.c into the main code, so that they can be used commonly. Signed-off-by: Takashi Iwai ---

[PATCH v2.5 3/3] selftests: firmware: Add compressed firmware tests

2019-06-11 Thread Takashi Iwai
This patch adds the test cases for checking compressed firmware load. Two more cases are added to fw_filesystem.sh: - Both a plain file and an xz file are present, and load the former - Only an xz file is present, and load without '.xz' suffix The tests are enabled only when

[PATCH v2.5 2/3] firmware: Add support for loading compressed files

2019-06-11 Thread Takashi Iwai
This patch adds the support for loading compressed firmware files. The primary motivation is to reduce the storage size; e.g. currently the files in /lib/firmware on my machine counts up to 419MB, while they can be reduced to 130MB by file compression. The patch introduces a new kconfig option

[PATCH v2 01/10] dt-bindings: serial: stm32: add wakeup option

2019-06-11 Thread Erwan Le Ray
Add a note for enabling wakeup capabilities of usart Signed-off-by: Bich Hemon Signed-off-by: Erwan Le Ray diff --git a/Documentation/devicetree/bindings/serial/st,stm32-usart.txt b/Documentation/devicetree/bindings/serial/st,stm32-usart.txt index 9d3efed..5ec80c1 100644 ---

[PATCH v2 03/10] serial: stm32: select pinctrl state in each suspend/resume function

2019-06-11 Thread Erwan Le Ray
From: Bich Hemon Select either pinctrl sleep state in suspend function or default state in resume function. Signed-off-by: Bich Hemon Signed-off-by: Erwan Le Ray diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32-usart.c index 9c2b04e..04eda75 100644 ---

[PATCH v2 04/10] serial: stm32: add pm_runtime support

2019-06-11 Thread Erwan Le Ray
Use pm_runtime for clock management. Signed-off-by: Bich Hemon Signed-off-by: Erwan Le Ray diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32-usart.c index 04eda75..60f3faf 100644 --- a/drivers/tty/serial/stm32-usart.c +++ b/drivers/tty/serial/stm32-usart.c @@ -809,13

Re: [PATCH v2] kasan: add memory corruption identification for software tag-based mode

2019-06-11 Thread Walter Wu
On Tue, 2019-06-11 at 13:32 +0200, Dmitry Vyukov wrote: > On Tue, Jun 11, 2019 at 12:44 PM Walter Wu wrote: > > > > On Tue, 2019-06-11 at 10:47 +0200, Dmitry Vyukov wrote: > > > On Tue, Jun 11, 2019 at 9:05 AM Walter Wu > > > wrote: > > > > > > > > On Mon, 2019-06-10 at 13:46 +0200, Dmitry

Re: [PATCH 2/2] i3c: master: Add driver for MediaTek IP

2019-06-11 Thread Qii Wang
On Tue, 2019-06-04 at 20:26 +0800, Qii Wang wrote: > On Tue, 2019-06-04 at 09:58 +0200, Boris Brezillon wrote: > > On Mon, 3 Jun 2019 11:51:03 +0800 > > Qii Wang wrote: > > > > > > > +static int mtk_i3c_master_probe(struct platform_device *pdev) > > > +{ > > > + struct device *dev = >dev; > > >

[PATCH v2 08/10] ARM: dts: stm32: Update pin states for uart4 on stm32mp157c-ed1

2019-06-11 Thread Erwan Le Ray
From: Bich Hemon Add idle and no_console_suspend states to uart4 pin configuration Signed-off-by: Bich Hemon Signed-off-by: Erwan Le Ray diff --git a/arch/arm/boot/dts/stm32mp157c-ed1.dts b/arch/arm/boot/dts/stm32mp157c-ed1.dts index 62a8c78..34cc847 100644 ---

[PATCH v2 00/10] STM32 usart power improvements

2019-06-11 Thread Erwan Le Ray
This series delivers power improvements for stm32-usart driver. Bich Hemon (4): dt-bindings: serial: add optional pinctrl states serial: stm32: select pinctrl state in each suspend/resume function ARM: dts: stm32: Update pin states for uart4 on stm32mp157c-ed1 ARM: dts: stm32: Update

[PATCH V2 3/3] arm64: defconfig: Select CONFIG_PINCTRL_IMX8MN by default

2019-06-11 Thread Anson . Huang
From: Anson Huang Enable CONFIG_PINCTRL_IMX8MN by default to support i.MX8MN pinctrl driver. Signed-off-by: Anson Huang Reviewed-by: Dong Aisheng --- Changes since V1: - sort the change in alphabet order. --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff

[PATCH v4 3/3] KVM: X86: Expose PV_SCHED_YIELD CPUID feature bit to guest

2019-06-11 Thread Wanpeng Li
From: Wanpeng Li Expose PV_SCHED_YIELD feature bit to guest, the guest can check this feature bit before using paravirtualized sched yield. Cc: Paolo Bonzini Cc: Radim Krčmář Cc: Liran Alon Signed-off-by: Wanpeng Li --- Documentation/virtual/kvm/cpuid.txt | 4 arch/x86/kvm/cpuid.c

[PATCH V2 2/3] pinctrl: freescale: Add i.MX8MN pinctrl driver support

2019-06-11 Thread Anson . Huang
From: Anson Huang Add the pinctrl driver support for i.MX8MN. Signed-off-by: Anson Huang Acked-by: Dong Aisheng --- Changes since V1: - Fix some nitpicks like sorting the change in alphabet order and improve the headfile included. --- drivers/pinctrl/freescale/Kconfig

[PATCH V2 1/3] dt-bindings: imx: Add pinctrl binding doc for i.MX8MN

2019-06-11 Thread Anson . Huang
From: Anson Huang Add binding doc for i.MX8MN pinctrl driver. Signed-off-by: Anson Huang Acked-by: Dong Aisheng --- No change. --- .../bindings/pinctrl/fsl,imx8mn-pinctrl.txt| 39 ++ arch/arm64/boot/dts/freescale/imx8mn-pinfunc.h | 646 + 2 files changed, 685

[PATCH v4 0/3] KVM: Yield to IPI target if necessary

2019-06-11 Thread Wanpeng Li
The idea is from Xen, when sending a call-function IPI-many to vCPUs, yield if any of the IPI target vCPUs was preempted. 17% performance increasement of ebizzy benchmark can be observed in an over-subscribe environment. (w/ kvm-pv-tlb disabled, testing TLB flush call-function IPI-many since

[PATCH v4 2/3] KVM: X86: Implement PV sched yield hypercall

2019-06-11 Thread Wanpeng Li
From: Wanpeng Li The target vCPUs are in runnable state after vcpu_kick and suitable as a yield target. This patch implements the sched yield hypercall. 17% performance increasement of ebizzy benchmark can be observed in an over-subscribe environment. (w/ kvm-pv-tlb disabled, testing TLB

[PATCH v4 1/3] KVM: X86: Yield to IPI target if necessary

2019-06-11 Thread Wanpeng Li
From: Wanpeng Li When sending a call-function IPI-many to vCPUs, yield if any of the IPI target vCPUs was preempted, we just select the first preempted target vCPU which we found since the state of target vCPUs can change underneath and to avoid race conditions. Cc: Paolo Bonzini Cc: Radim

Re: [PATCH v2 0/2] firmware: Add support for loading compressed files

2019-06-11 Thread Takashi Iwai
On Tue, 11 Jun 2019 14:19:54 +0200, Takashi Iwai wrote: > > Hi, > > here are the rest and the main part of patches to add the support for > loading the compressed firmware files. The patch was slightly > refactored for more easily enhancing for other compression formats (if > anyone wants).

Re: [PATCH v6 0/5] LM36274 Introduction

2019-06-11 Thread Dan Murphy
Jacek Reviewed and tested the updated branch.  Looks good to me. Dan On 6/5/19 2:31 PM, Jacek Anaszewski wrote: Hi Dan, Thank you for the v6. Patches 4/5 and 5/5 don't contain amendments I made to the respective patches on the ib-leds-mfd-regulator branch (that address issues raised by

Re: [PATCH bpf v3] xdp: fix hang while unregistering device bound to xdp socket

2019-06-11 Thread Björn Töpel
On Tue, 11 Jun 2019 at 10:42, Ilya Maximets wrote: > > On 11.06.2019 11:09, Björn Töpel wrote: > > On Mon, 10 Jun 2019 at 22:49, Jonathan Lemon > > wrote: > >> > >> On 10 Jun 2019, at 9:15, Ilya Maximets wrote: > >> > >>> Device that bound to XDP socket will not have zero refcount until the >

[PATCH v3 1/4] KVM: LAPIC: Make lapic timer unpinned when timer is injected by pi

2019-06-11 Thread Wanpeng Li
From: Wanpeng Li Make lapic timer unpinned when timer is injected by posted-interrupt, the emulated timer can be offload to the housekeeping cpus. The host admin should fine tuned, e.g. dedicated instances scenario w/ nohz_full cover the pCPUs which vCPUs resident, several pCPUs surplus for

[PATCH v2] HID: input: fix a4tech horizontal wheel custom usage

2019-06-11 Thread Nicolas Saenz Julienne
Some a4tech mice use the 'GenericDesktop.00b8' usage to inform whether the previous wheel report was horizontal or vertical. Before c01908a14bf73 ("HID: input: add mapping for "Toggle Display" key") this usage was being mapped to 'Relative.Misc'. After the patch it's simply ignored (usage->type ==

Re: [PATCH] mm: align up min_free_kbytes to multipy of 4

2019-06-11 Thread Chengang (L)
Hi Michal >On Sun 09-06-19 17:10:28, ChenGang wrote: >> Usually the value of min_free_kbytes is multiply of 4, and in this >> case ,the right shift is ok. >> But if it's not, the right-shifting operation will lose the low 2 >> bits, and this cause kernel don't reserve enough memory. >> So it's

[PATCH v3 3/4] KVM: LAPIC: Ignore timer migration when lapic timer is injected by posted-interrupt

2019-06-11 Thread Wanpeng Li
From: Wanpeng Li When lapic timer is injected by posted-interrupt, the emulated timer is offload to the housekeeping cpu. The timer interrupt will be delivered properly, no need to migrate timer. Cc: Paolo Bonzini Cc: Radim Krčmář Signed-off-by: Wanpeng Li --- arch/x86/kvm/lapic.c | 3 ++-

Re: [alsa-devel] [RFC PATCH 6/6] soundwire: qcom: add support for SoundWire controller

2019-06-11 Thread Pierre-Louis Bossart
On 6/11/19 5:29 AM, Srinivas Kandagatla wrote: On 10/06/2019 15:12, Pierre-Louis Bossart wrote: + +    if (dev_addr == SDW_BROADCAST_DEV_NUM) { +    ctrl->fifo_status = 0; +    ret = wait_for_completion_timeout(>sp_cmd_comp, +  msecs_to_jiffies(TIMEOUT_MS));

[PATCH v2 0/2] firmware: Add support for loading compressed files

2019-06-11 Thread Takashi Iwai
Hi, here are the rest and the main part of patches to add the support for loading the compressed firmware files. The patch was slightly refactored for more easily enhancing for other compression formats (if anyone wants). Also the selftest patch is included. The functionality doesn't change

[PATCH v2 1/2] firmware: Add support for loading compressed files

2019-06-11 Thread Takashi Iwai
This patch adds the support for loading compressed firmware files. The primary motivation is to reduce the storage size; e.g. currently the files in /lib/firmware on my machine counts up to 419MB, while they can be reduced to 130MB by file compression. The patch introduces a new kconfig option

Re: [RFC][Patch v10 0/2] mm: Support for page hinting

2019-06-11 Thread Nitesh Narayan Lal
On 6/3/19 2:04 PM, Michael S. Tsirkin wrote: > On Mon, Jun 03, 2019 at 01:03:04PM -0400, Nitesh Narayan Lal wrote: >> This patch series proposes an efficient mechanism for communicating free >> memory >> from a guest to its hypervisor. It especially enables guests with no page >> cache >>

[PATCH v2 2/2] selftests: firmware: Add compressed firmware tests

2019-06-11 Thread Takashi Iwai
This patch adds the test cases for checking compressed firmware load. Two more cases are added to fw_filesystem.sh: - Both a plain file and an xz file are present, and load the former - Only an xz file is present, and load without '.xz' suffix The tests are enabled only when

[PATCH v3 0/4] KVM: LAPIC: Implement Exitless Timer

2019-06-11 Thread Wanpeng Li
Dedicated instances are currently disturbed by unnecessary jitter due to the emulated lapic timers fire on the same pCPUs which vCPUs resident. There is no hardware virtual timer on Intel for guest like ARM. Both programming timer in guest and the emulated timer fires incur vmexits. This

[PATCH v3 2/4] KVM: LAPIC: lapic timer interrupt is injected by posted interrupt

2019-06-11 Thread Wanpeng Li
From: Wanpeng Li Dedicated instances are currently disturbed by unnecessary jitter due to the emulated lapic timers fire on the same pCPUs which vCPUs resident. There is no hardware virtual timer on Intel for guest like ARM. Both programming timer in guest and the emulated timer fires incur

Re: [PATCH v2 2/3] KVM: LAPIC: lapic timer interrupt is injected by posted interrupt

2019-06-11 Thread Wanpeng Li
On Tue, 11 Jun 2019 at 19:40, Paolo Bonzini wrote: > > On 06/06/19 07:31, Wanpeng Li wrote: > > +static inline bool can_posted_interrupt_inject_timer(struct kvm_vcpu *vcpu) > > +{ > > + return posted_interrupt_inject_timer_enabled(vcpu) && > > + !vcpu_halt_in_guest(vcpu); > > +} >

[PATCH v3 4/4] KVM: LAPIC: add advance timer support to pi_inject_timer

2019-06-11 Thread Wanpeng Li
From: Wanpeng Li Wait before calling posted-interrupt deliver function directly to add advance timer support to pi_inject_timer. Cc: Paolo Bonzini Cc: Radim Krčmář Signed-off-by: Wanpeng Li --- arch/x86/kvm/lapic.c | 6 -- arch/x86/kvm/lapic.h | 2 +- arch/x86/kvm/svm.c | 2 +-

Re: [PATCH v2 0/2] ARM errata 814220

2019-06-11 Thread Russell King - ARM Linux admin
On Tue, Jun 11, 2019 at 01:42:34PM +0200, Benjamin Gaignard wrote: > Le mer. 24 avr. 2019 à 09:25, Benjamin Gaignard > a écrit : > > > > Le mar. 23 avr. 2019 à 19:46, Fabio Estevam a écrit : > > > > > > On Wed, Feb 27, 2019 at 1:21 PM Alexandre Torgue > > > wrote: > > > > > > > > > > > > On

Re: [PATCH] mm: align up min_free_kbytes to multipy of 4

2019-06-11 Thread Chengang (L)
Hi Wei Yang >On Sun, Jun 09, 2019 at 05:10:28PM +0800, ChenGang wrote: >>Usually the value of min_free_kbytes is multiply of 4, and in this case >>,the right shift is ok. >>But if it's not, the right-shifting operation will lose the low 2 bits, >But PAGE_SHIFT is not always 12. You are

Re: [PATCH 08/15] x86/alternatives: Teach text_poke_bp() to emulate instructions

2019-06-11 Thread Peter Zijlstra
On Tue, Jun 11, 2019 at 10:03:07AM +0200, Peter Zijlstra wrote: > On Fri, Jun 07, 2019 at 11:10:19AM -0700, Andy Lutomirski wrote: > > I am surely missing some kprobe context, but is it really safe to use > > this mechanism to replace more than one instruction? > > I'm not entirely up-to-scratch

Re: [PATCH trivial] mm/balloon_compaction: Grammar s/the its/its/

2019-06-11 Thread David Hildenbrand
On 07.06.19 13:35, Geert Uytterhoeven wrote: > Signed-off-by: Geert Uytterhoeven > --- > mm/balloon_compaction.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/mm/balloon_compaction.c b/mm/balloon_compaction.c > index ba739b76e6c52e55..17ac81d8d26bcb50 100644 > ---

Re: [PATCH v2 00/17] net: introduce Qualcomm IPA driver

2019-06-11 Thread Arnd Bergmann
On Tue, Jun 11, 2019 at 10:12 AM Johannes Berg wrote: > > As I've made clear before, my work on this has been focused on the IPA > > transport, > > and some of this higher-level LTE architecture is new to me. But it > > seems pretty clear that an abstracted WWAN subsystem is a good plan, > >

Re: [PATCH v2] kasan: add memory corruption identification for software tag-based mode

2019-06-11 Thread Walter Wu
On Tue, 2019-06-11 at 13:39 +0200, Dmitry Vyukov wrote: > I should have been asked this earlier, but: what is your use-case? We need KASAN to help us to detect memory corruption at mobile phone. It is powerful tool. > Could you use CONFIG_KASAN_GENERIC instead? Why not? > CONFIG_KASAN_GENERIC

Re: [PATCH 2/2] edac: add support for Amazon's Annapurna Labs EDAC

2019-06-11 Thread Borislav Petkov
On Tue, Jun 11, 2019 at 10:29:55AM +0300, Hawa, Hanna wrote: > In the near future we plan to push EDAC drivers for L1/L2 and memory > controller. There's no common resources/shared data between them. Ok, you should be safe then. If you need to do more involved interaction in the future, you know

Re: [PATCH v5 3/5] mtd: Add support for HyperBus memory devices

2019-06-11 Thread Vignesh Raghavendra
On 10/06/19 11:27 PM, Sergei Shtylyov wrote: > On 06/09/2019 01:32 PM, Vignesh Raghavendra wrote: > >> Cypress' HyperBus is Low Signal Count, High Performance Double Data Rate >> Bus interface between a host system master and one or more slave >> interfaces. HyperBus is used to connect

Re: [PATCH 2/2] edac: add support for Amazon's Annapurna Labs EDAC

2019-06-11 Thread Borislav Petkov
On Tue, Jun 11, 2019 at 05:21:39PM +1000, Benjamin Herrenschmidt wrote: > So looking again ... all the registration/removal of edac devices seem > to already be protected by mutexes, so that's not a problem. > > Tell me more about what specific races you think we might have here, > I'm not sure I

Re: [PATCH v2 2/3] media: imx7-media-csi: add i.MX6UL support

2019-06-11 Thread Rui Miguel Silva
Hi Sebastien, On Tue 11 Jun 2019 at 11:03, Sébastien Szymanski wrote: > On 6/11/19 11:40 AM, Rui Miguel Silva wrote: >> Hi Sebastien, >> On Tue 11 Jun 2019 at 09:16, Sébastien Szymanski wrote: >>> Hi Rui, >>> >>> thanks for the review! >>> >>> On 6/10/19 12:28 PM, Rui Miguel Silva wrote: Hi

Re: [PATCH v2 8/8] habanalabs: enable 64-bit DMA mask in POWER9

2019-06-11 Thread Oded Gabbay
On Tue, Jun 11, 2019 at 12:59 PM Greg KH wrote: > > On Tue, Jun 11, 2019 at 12:21:44PM +0300, Oded Gabbay wrote: > > +bool hl_pci_parent_is_phb4(struct hl_device *hdev) > > +{ > > + struct pci_dev *parent_port = hdev->pdev->bus->self; > > + > > + if ((parent_port->vendor ==

Re: [PATCH 2/2] edac: add support for Amazon's Annapurna Labs EDAC

2019-06-11 Thread Borislav Petkov
On Tue, Jun 11, 2019 at 03:50:40PM +1000, Benjamin Herrenschmidt wrote: > Should we fix that then instead ? Sure. > What are the big issues with adding some basic locking ? being called > from NMIs ? That is one possible issue. I know we don't call the error decoding routines in NMI context on

[PATCH] ARM: dts: stm32: add sai id registers to stm32mp157c

2019-06-11 Thread Olivier Moysan
Add identification registers to address range of SAI DT parent node, for stm32mp157c. Change-Id: I696363794fab59ba8d7869b3ffbc041dacdf28de Signed-off-by: Olivier Moysan --- arch/arm/boot/dts/stm32mp157c.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

Re: [patch 2/3] timers: do not raise softirq unconditionally (spinlockless version)

2019-06-11 Thread Anna-Maria Gleixner
On Fri, 31 May 2019, Anna-Maria Gleixner wrote: [...] > I will think about the problem and your solution a little bit more and > give you feedback hopefully on monday. I'm sorry for the delay. But now I'm able to give you a detailed feedback: The general problem is, that your solution is

Re: memory leak in create_ctx

2019-06-11 Thread Dmitry Vyukov
,On Sun, Jun 9, 2019 at 4:56 AM Hillf Danton wrote: > > > Hi > > On Sat, 08 Jun 2019 12:13:06 -0700 (PDT) syzbot wrote: > > Hello, > > > > syzbot found the following crash on: > > > > HEAD commit:79c3ba32 Merge tag 'drm-fixes-2019-06-07-1' of git://anong.. > > git tree: upstream > >

Re: [PATCH v1 0/3] iio: afe: rescale: Add INFO_PROCESSED support

2019-06-11 Thread Jonathan Cameron
On Tue, 11 Jun 2019 11:02:14 + Peter Rosin wrote: > On 2019-06-11 11:56, Mylène Josserand wrote: > > Hello everyone, > > > > You will find a small series that add the support of processed values > > for iio-rescale driver. > > Thanks to that, it is possible to read processed values in sysfs

RE: [PATCH v2 0/3] Add ST lsm6dso i3c support

2019-06-11 Thread Vitor Soares
Hi, Since the regmap-i3c.c was already applied in: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git tags/regmap-i3c I wonder what is clean way to submit this patch set? And since the i3c-regmap was merge in From: Vitor Soares Date: Thu, Jun 06, 2019 at 16:12:01 > This

Re: [PATCH v2 0/2] ARM errata 814220

2019-06-11 Thread Benjamin Gaignard
Le mer. 24 avr. 2019 à 09:25, Benjamin Gaignard a écrit : > > Le mar. 23 avr. 2019 à 19:46, Fabio Estevam a écrit : > > > > On Wed, Feb 27, 2019 at 1:21 PM Alexandre Torgue > > wrote: > > > > > > > > > On 2/14/19 9:31 AM, Benjamin Gaignard wrote: > > > > Implement ARM errata 814220 for Cortex

Re: [PATCH v2 2/3] KVM: LAPIC: lapic timer interrupt is injected by posted interrupt

2019-06-11 Thread Paolo Bonzini
On 06/06/19 07:31, Wanpeng Li wrote: > +static inline bool can_posted_interrupt_inject_timer(struct kvm_vcpu *vcpu) > +{ > + return posted_interrupt_inject_timer_enabled(vcpu) && > + !vcpu_halt_in_guest(vcpu); > +} > + I agree with Radim, what you want here is just use

Re: [PATCH v2] kasan: add memory corruption identification for software tag-based mode

2019-06-11 Thread Dmitry Vyukov
I should have been asked this earlier, but: what is your use-case? Could you use CONFIG_KASAN_GENERIC instead? Why not? CONFIG_KASAN_GENERIC already has quarantine. On Tue, Jun 11, 2019 at 1:32 PM Dmitry Vyukov wrote: > > On Tue, Jun 11, 2019 at 12:44 PM Walter Wu wrote: > > > > On Tue,

Re: [PATCH V5 7/7] i2c: tegra: remove BUG, BUG_ON

2019-06-11 Thread Dmitry Osipenko
11.06.2019 13:51, Bitan Biswas пишет: > Remove redundant BUG_ON calls or replace with WARN_ON_ONCE > as needed. Remove BUG() and make Rx and Tx case handling > similar. Add WARN_ON_ONCE check for non-zero rx_fifo_avail > in tegra_i2c_empty_rx_fifo() and return new error >

Re: [PATCH v2 2/3] KVM: X86: Provide a capability to disable cstate msr read intercepts

2019-06-11 Thread Wanpeng Li
On Tue, 11 Jun 2019 at 19:09, Paolo Bonzini wrote: > > On 11/06/19 09:38, Wanpeng Li wrote: > > MSR_CORE_C1_RES is unreadable except for ATOM platform, so I think we > > can avoid the complex logic to handle C1 now. :) > > I disagree. Linux uses it on all platforms is available, and virtual >

Re: [PATCH V4 6/6] i2c: tegra: remove BUG, BUG_ON

2019-06-11 Thread Dmitry Osipenko
11.06.2019 10:38, Bitan Biswas пишет: > > > On 6/10/19 2:00 PM, Dmitry Osipenko wrote: >> 10.06.2019 22:41, Bitan Biswas пишет: >>> >>> >>> On 6/10/19 11:12 AM, Dmitry Osipenko wrote: 10.06.2019 20:08, Bitan Biswas пишет: > Remove redundant BUG_ON calls or replace with WARN_ON_ONCE

Re: [PATCH] HID: input: fix a4tech horizontal wheel custom usage id

2019-06-11 Thread Nicolas Saenz Julienne
On Tue, 2019-06-11 at 10:43 +0200, Benjamin Tissoires wrote: > Hi Nicolas, > > On Mon, Jun 10, 2019 at 8:54 PM Nicolas Saenz Julienne > wrote: > > Some a4tech mice use the 'GenericDesktop.00b8' usage id to inform > > whether the previous wheel report was horizontal or vertical. Before > >

Re: [PATCH v2] kasan: add memory corruption identification for software tag-based mode

2019-06-11 Thread Dmitry Vyukov
On Tue, Jun 11, 2019 at 12:44 PM Walter Wu wrote: > > On Tue, 2019-06-11 at 10:47 +0200, Dmitry Vyukov wrote: > > On Tue, Jun 11, 2019 at 9:05 AM Walter Wu wrote: > > > > > > On Mon, 2019-06-10 at 13:46 +0200, Dmitry Vyukov wrote: > > > > On Mon, Jun 10, 2019 at 9:28 AM Walter Wu > > > >

Re: [PATCH] iio: humidity: Replace older GPIO APIs with GPIO Consumer APIs for the dht11 sensor

2019-06-11 Thread Harald Geyer
Shobhit Kukreti writes: > The dht11 driver uses a single gpio to make measurements. It was > using the older global gpio numberspace. The patch replaces the > old gpio api with the new gpio descriptor based api. > > Removed header files "linux/gpio.h" and "linux/of_gpio.h" > > Signed-off-by:

[PATCH v1 2/2] arm64: dts: mt8183: add systimer0 device node

2019-06-11 Thread Dehui Sun
Add systimer0 device node for MT8183. Signed-off-by: Dehui Sun --- This patch is based on the following patches: https://patchwork.kernel.org/cover/10962385/ https://patchwork.kernel.org/patch/10983939/ --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 9 + 1 file changed, 9 insertions(+)

[PATCH v1 1/2] dt-bindings: mediatek: update bindings for MT8183 systimer

2019-06-11 Thread Dehui Sun
This commit adds mt8183 compatible node in mtk-timer binding document. Signed-off-by: Dehui Sun --- Documentation/devicetree/bindings/timer/mediatek,mtk-timer.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/timer/mediatek,mtk-timer.txt

[PATCH v1 0/2] add systimer node for MT8183 SoC

2019-06-11 Thread Dehui Sun
This series are based on 5.2-rc1 and add systimer node for MT8183, and this timer will serve as a wakeup-up source for cpu-idle feature. Dehui Sun (2): dt-bindings: mediatek: update bindings for MT8183 systimer arm64: dts: mt8183: add systimer0 device node

[PATCH V5 - Rebased] mm/hotplug: Reorder memblock_[free|remove]() calls in try_remove_memory()

2019-06-11 Thread Anshuman Khandual
nbrand Reviewed-by: Oscar Salvador Acked-by: Mark Rutland Acked-by: Michal Hocko Signed-off-by: Anshuman Khandual --- Changes in PATCH V5 - Rebased (from V5) - Rebased on linux-next (next-20190611) - s/__remove_memory/try_remove_memory in the subject line - s/arch_remove_memory/memblock_[free|

Re: [PATCH 0/4] irqchip: renesas: Use proper irq_chip name and parent

2019-06-11 Thread Marc Zyngier
On 07/06/2019 10:58, Geert Uytterhoeven wrote: > Hi all, > > Recently, Marc pointed out some common misconceptions w.r.t. the .name > and .parent_device fields in struct irq_chip. This patch series fixes > them in the Renesas interrupt controller drivers. > > The first two patches are

Re: [PATCH/RFC 2/3] s390: improve wait logic of stop_machine

2019-06-11 Thread Heiko Carstens
On Tue, Jun 11, 2019 at 11:15:46AM +0200, Peter Zijlstra wrote: > On Sat, Jun 08, 2019 at 01:08:52PM +0200, Heiko Carstens wrote: > > --- a/arch/s390/kernel/processor.c > > +++ b/arch/s390/kernel/processor.c > > @@ -31,6 +31,7 @@ struct cpu_info { > > }; > > > > static DEFINE_PER_CPU(struct

Re: [PATCH v3 0/3] meson-gpio-irqc: Add support for the Meson-G12A SoC

2019-06-11 Thread Marc Zyngier
On 08/06/2019 20:04, Martin Blumenstingl wrote: > This series adds GPIO interrupt controller support for Meson-G12A SoCs. > Although the total number of pins is the same as the Meson-AXG SoC, the > GPIO banks and IRQ numbers are different. Add a new compatible string > to avoid confusion when

[RESEND PATCH net-next] net: ethernet: ti: cpts: fix build failure for powerpc

2019-06-11 Thread Grygorii Strashko
Add dependency to TI CPTS from Common CLK framework COMMON_CLK to fix allyesconfig build for Powerpc: drivers/net/ethernet/ti/cpts.c: In function 'cpts_of_mux_clk_setup': drivers/net/ethernet/ti/cpts.c:567:2: error: implicit declaration of function 'of_clk_parent_fill'; did you mean

RE: [RFC PATCH 1/5] signal: Teach sigsuspend to use set_user_sigmask

2019-06-11 Thread David Laight
From: David Laight > Sent: 11 June 2019 10:52 ... > If I have an application that has a loop with a pselect call that > enables SIGINT (without a handler) and, for whatever reason, > one of the fd is always 'ready' then I'd expect a SIGINT > (from ^C) to terminate the program. > > A quick test

Re: [PATCH v1 3/3] dt-bindings: iio: afe: Add hwmon example

2019-06-11 Thread Peter Rosin
On 2019-06-11 11:56, Mylène Josserand wrote: > With the support of CHAN_INFO_PROCESSED in voltage-divider, > it is possible to read the processed values directly from iio's > sysfs entries or by using iio-hwmon. Add an example for this last > use case. As I wrote in response to the cover letter,

Re: [PATCH v2 2/3] KVM: X86: Provide a capability to disable cstate msr read intercepts

2019-06-11 Thread Paolo Bonzini
On 11/06/19 09:38, Wanpeng Li wrote: > MSR_CORE_C1_RES is unreadable except for ATOM platform, so I think we > can avoid the complex logic to handle C1 now. :) I disagree. Linux uses it on all platforms is available, and virtual machines that don't pass mwait through _only_ have C1, so it would

Re: [PATCH 1/2] arm64: defconfig: enable Lima driver

2019-06-11 Thread Neil Armstrong
On 06/06/2019 10:56, Neil Armstrong wrote: > A bunch of arm64 boards can now use the Lima driver, let's enable it > in defconfig, it will be useful to have it enabled for KernelCI > boot and runtime testing. > > Signed-off-by: Neil Armstrong > --- > arch/arm64/configs/defconfig | 1 + > 1 file

<    4   5   6   7   8   9   10   11   12   >