RE: [PATCH V4 2/5] pwm: Add i.MX TPM PWM driver support

2019-03-18 Thread Anson Huang
Hi, Uwe Best Regards! Anson Huang > -Original Message- > From: Uwe Kleine-König [mailto:u.kleine-koe...@pengutronix.de] > Sent: 2019年3月18日 16:08 > To: Anson Huang > Cc: thierry.red...@gmail.com; robh...@kernel.org; mark.rutl...@arm.com; > shawn...@kernel.org; s.ha...@pengutronix.de;

Re: [PATCH v1 1/2] extcon: intel: Split out some definitions to a common header

2019-03-18 Thread Chanwoo Choi
Hi, Looks good to me. But just there is minor one comment as following: - 2018 -> 2019 On 19. 3. 18. 오후 6:52, Andy Shevchenko wrote: > We are going to use some definitions in the other Intel extcon drivers, > thus, split out them to a common header file. > > Signed-off-by: Andy Shevchenko >

[RESEND PATCH 5/7] bus: domainsctrl: Add driver for STM32 ETZPC controller

2019-03-18 Thread Benjamin Gaignard
STM32 Extended TrustZone Protection Controller (ETZPC) got 3 domains: - secure: hardware blocks are only accessible by software running on trust zone. - non-secure: hardware blocks are accessible by non-secure software (i.e. linux kernel). - coprocessor: hardware blocks are only accessible

[RESEND PATCH 4/7] devicetree: bindings: domainsctrl: Add STM32 ETZPC bindings

2019-03-18 Thread Benjamin Gaignard
Describe STM32 Extended TrustZone Protection bindings. Signed-off-by: Benjamin Gaignard --- .../devicetree/bindings/bus/domains/st,stm32-etzpc.txt | 14 ++ 1 file changed, 14 insertions(+) create mode 100644 Documentation/devicetree/bindings/bus/domains/st,stm32-etzpc.txt

[RESEND PATCH 6/7] ARM: dts: stm32: Add domainsctrl node for stm32mp157 SoC

2019-03-18 Thread Benjamin Gaignard
Declare ETZPC device as a domains controller node for stm32mp157 SoC Signed-off-by: Benjamin Gaignard --- arch/arm/boot/dts/stm32mp157c.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp157c.dtsi b/arch/arm/boot/dts/stm32mp157c.dtsi index

[RESEND PATCH 3/7] base: Add calls to domains controller

2019-03-18 Thread Benjamin Gaignard
To avoid modifying all the drivers call domainsctrl_set_default_config before probe to apply the configuration define in device node (if any). When unbinding the device try to apply configuration named "unbind". Signed-off-by: Benjamin Gaignard Reviewed-by: Mark Brown --- drivers/base/dd.c |

[RESEND PATCH 7/7] ARM: dts: stm32: enable domains controller node on stm32mp157c-ed1

2019-03-18 Thread Benjamin Gaignard
Enable ETZPC and set configuration for CEC node Signed-off-by: Benjamin Gaignard --- arch/arm/boot/dts/stm32mp157c-ev1.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp157c-ev1.dts b/arch/arm/boot/dts/stm32mp157c-ev1.dts index b6aca40b9b90..a69c171e6b69 100644

[RESEND PATCH 2/7] domainsctrl: Introduce domains controller framework

2019-03-18 Thread Benjamin Gaignard
The goal of this framework is to offer an interface for the hardware blocks controlling bus accesses rights. Bus domains controllers are typically used to control if a hardware block can perform read or write operations on bus. Smarter domains controllers could be able to define accesses rights

[RESEND PATCH 1/7] devicetree: bindings: Document domains controller bindings

2019-03-18 Thread Benjamin Gaignard
Document commons domains controller bindings for controller and client devices. Signed-off-by: Benjamin Gaignard --- .../bindings/bus/domains/domainsctrl.txt | 55 ++ 1 file changed, 55 insertions(+) create mode 100644

[RESEND PATCH 0/7] Introduce bus domains controller framework

2019-03-18 Thread Benjamin Gaignard
Bus domains controllers allow to divided system on chip into multiple domains that can be used to select by who hardware blocks could be accessed. A domain could be a cluster of CPUs (or coprocessors), a range of addresses or a group of hardware blocks. Framework architecture is inspirated by

[PATCH v2 00/11] arm64: dts: g12a: Add boards peripherals

2019-03-18 Thread Neil Armstrong
Following [1], add regulators, bluetooth, UART and ADC keys on : - meson-g12a-x96-max - meson-g12a-u200 - meson-g12a-sei510 Changes since v1: - Collected martin's reviewed-bys - Added missing regulators in commit logs - fixed x96 dc_in regulator - fixed includes overall - removed dwc2 enable

[PATCH v2 04/11] arm64: dts: meson-g12a-u200: add regulators

2019-03-18 Thread Neil Armstrong
From: Jerome Brunet Add system regulators for the S905D U200 reference design. Add some regulators. Still missing * VDD_EE (0.8V - PWM controlled) * VDD_CPU (PWM controlled) Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- .../boot/dts/amlogic/meson-g12a-u200.dts | 79

[PATCH v2 02/11] arm64: dts: meson-g12a-sei510: add uart_AO pinctrl

2019-03-18 Thread Neil Armstrong
Add pinctrl on the always-enabled debug UART AO. Signed-off-by: Neil Armstrong Reviewed-by: Martin Blumenstingl --- arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts

[PATCH v2] USB: gadget: f_hid: fix deadlock in f_hidg_write()

2019-03-18 Thread Radoslav Gerganov
In f_hidg_write() the write_spinlock is acquired before calling usb_ep_queue() which causes a deadlock when dummy_hcd is being used. This is because dummy_queue() callbacks into f_hidg_req_complete() which tries to acquire the same spinlock. This is (part of) the backtrace when the deadlock

[PATCH v2 01/11] arm64: dts: meson-g12a-u200: add uart_AO pinctrl

2019-03-18 Thread Neil Armstrong
Add pinctrl on the always-enabled debug UART AO. Signed-off-by: Neil Armstrong Reviewed-by: Martin Blumenstingl --- arch/arm64/boot/dts/amlogic/meson-g12a-u200.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a-u200.dts

[PATCH v2 08/11] arm64: dts: meson-g12a-sei510: Add ADC Key and BT support

2019-03-18 Thread Neil Armstrong
Add support for the : - ADC Touch key - Bluetooth Module on UART A Signed-off-by: Neil Armstrong --- .../boot/dts/amlogic/meson-g12a-sei510.dts| 30 +++ 1 file changed, 30 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts

[PATCH v2 11/11] arm64: dts: meson-g12a-x96-max: Enable USB

2019-03-18 Thread Neil Armstrong
Enable the USB2 and USB3 Host ports on the X96 Max Set-Top-Box. Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts

[PATCH v2 06/11] arm64: dts: meson-g12a-x96-max: add regulators

2019-03-18 Thread Neil Armstrong
From: Guillaume La Roque Add system regulators for the X96 Max Set-Top-Box. Still missing * VDD_EE (0.8V - PWM controlled) * VDD_CPU (PWM controlled) Signed-off-by: Guillaume La Roque Signed-off-by: Neil Armstrong --- .../boot/dts/amlogic/meson-g12a-x96-max.dts | 67 +++ 1

[PATCH v2 05/11] arm64: dts: meson-g12a-sei510: add regulators

2019-03-18 Thread Neil Armstrong
From: Jerome Brunet Add some regulators. Still missing * VDD_EE (0.8V - PWM controlled) * VDD_CPU(PWM controlled) * VDDQ1_5 Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- .../boot/dts/amlogic/meson-g12a-sei510.dts| 57 +++ 1 file changed, 57 insertions(+)

[PATCH v2 03/11] arm64: dts: meson-g12a-x96-max: add uart_AO pinctrl

2019-03-18 Thread Neil Armstrong
Add pinctrl on the always-enabled debug UART AO. Signed-off-by: Neil Armstrong Reviewed-by: Martin Blumenstingl --- arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts

[PATCH v2 10/11] arm64: dts: meson-g12a-u200: Enable USB

2019-03-18 Thread Neil Armstrong
Enable the USB2 OTG and USB3 Host ports on the S905D2 Reference Design. Signed-off-by: Neil Armstrong Acked-by: Martin Blumenstingl --- arch/arm64/boot/dts/amlogic/meson-g12a-u200.dts | 12 1 file changed, 12 insertions(+) diff --git

[PATCH] dt-bindings: cpu: Fix JSON schema

2019-03-18 Thread Maxime Ripard
Commit fd73403a4862 ("dt-bindings: arm: Add SMP enable-method for Milbeaut") added support for a new cpu enable-method, but did so using tabulations to ident. This is however invalid in the syntax, and resulted in a failure when trying to use that schemas for validation. Use spaces instead of

[PATCH v2 09/11] arm64: dts: meson-g12a-sei510: Enable USB

2019-03-18 Thread Neil Armstrong
Enable the USB2 and USB3 Host ports on the SEI520 Set-Top-Box. Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts

[PATCH v2 07/11] arm64: dts: meson-g12a-x96-max: Enable BT Module

2019-03-18 Thread Neil Armstrong
Enable the Bluetooth Module on the X96 Max Set-Top-Box. Signed-off-by: Neil Armstrong Reviewed-by: Martin Blumenstingl --- arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts

Re: [PATCH v3 2/5] PCI: dwc: Free the page for MSI IRQ in dw_pcie_free_msi()

2019-03-18 Thread Gustavo Pimentel
Hi, On 18/03/2019 09:54, Jisheng Zhang wrote: > To avoid memory leak, we need to free the page for MSI in > dw_pcie_free_msi(). > > Signed-off-by: Jisheng Zhang > --- > drivers/pci/controller/dwc/pcie-designware-host.c | 12 > drivers/pci/controller/dwc/pcie-designware.h | 1

Re: PCI: dwc: Free MSI in the error code path of dw_pcie_host_init()

2019-03-18 Thread Jisheng Zhang
On Mon, 18 Mar 2019 17:47:49 +0800 Jisheng Zhang wrote: > If we ever did some msi related initializations, we need to call > dw_pcie_free_msi() in the error code path. Sorry, "PATCH" is missing in the email title, please ignore this one

Re: [PATCH v2] kbuild: add workaround for Debian make-kpkg

2019-03-18 Thread Andreas Schwab
On Mär 08 2019, Masahiro Yamada wrote: > +$(warning Do not include top Makefile of Linux Kernel) So how do I add additional targets then? Currently I create GNUmakefile, include Makefile, then add the targets I need. It seems this is now broken. Andreas. -- Andreas Schwab, SUSE Labs,

[PATCH v2 6/8] arm64: dts: meson: g12a: Add SAR ADC node

2019-03-18 Thread Neil Armstrong
This patch adds the SAR ADC controller node. Signed-off-by: Neil Armstrong Reviewed-by: Martin Blumenstingl --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi

[PATCH v2 2/8] arm64: dts: meson: g12a: add pinctrl support controllers

2019-03-18 Thread Neil Armstrong
From: Jerome Brunet Add the peripheral and always-on pinctrl controllers to the g12a soc. Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 42 + 1 file changed, 42 insertions(+) diff --git

[PATCH v2 4/8] arm64: dts: meson: g12a: add reset controller

2019-03-18 Thread Neil Armstrong
From: Jerome Brunet Add the reset controller device of g12a SoC family Signed-off-by: Jerome Brunet Reviewed-by: Martin Blumenstingl Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git

[PATCH v2 3/8] arm64: dts: meson: g12a: add uart_ao_a pinctrl

2019-03-18 Thread Neil Armstrong
From: Jerome Brunet Add the always on UART pinctrl setting to the g12a soc DT. Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git

[PATCH v2 8/8] arm64: dts: meson: g12a: Add mali-g31 gpu node

2019-03-18 Thread Neil Armstrong
This patch adds the ARM Mali G31 GPU node. Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 27 + 1 file changed, 27 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi index

[PATCH v2 5/8] arm64: dts: meson: g12a: Add UART A, B & C nodes and pins

2019-03-18 Thread Neil Armstrong
This patch adds the 3 UART nodes in the EE power domain with the corresponding pinctrl nodes. Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 72 + 1 file changed, 72 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi

[PATCH v2 0/8] arm64: dts: g12a: Add peripherals

2019-03-18 Thread Neil Armstrong
Add following peripherals : - AO Clock + Reset Controller - Pinctrl - UARTs - SAR-ADC - USB - Mali GPU USB depends on the PCIE clock and missing Reset bindings. SARADC bindings is merged. USB bindings has been reviewed, but not merged yet. Mali GPU bindings are still in review. Changes since

[PATCH v2 1/8] arm64: dts: meson: g12a: Add AO Clock + Reset Controller support

2019-03-18 Thread Neil Armstrong
Add nodes and properties for the AO Clocks and Resets. Signed-off-by: Neil Armstrong Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi

Re: [External] Re: vmscan: Reclaim unevictable pages

2019-03-18 Thread Pankaj Suryawanshi
From: Kirill Tkhai Sent: 18 March 2019 15:17:56 To: Pankaj Suryawanshi; Vlastimil Babka; Michal Hocko; aneesh.ku...@linux.ibm.com Cc: linux-kernel@vger.kernel.org; minc...@kernel.org; linux...@kvack.org; khand...@linux.vnet.ibm.com; hillf...@alibaba-inc.com Subject: Re: [External] Re:

Re: [PATCH V5 1/5] dt-bindings: pwm: Add i.MX TPM PWM binding

2019-03-18 Thread Thierry Reding
On Mon, Mar 18, 2019 at 07:41:32AM +, Anson Huang wrote: > Add i.MX TPM(Low Power Timer/Pulse Width Modulation Module) PWM binding. > > Signed-off-by: Anson Huang > --- > No changes. > --- > Documentation/devicetree/bindings/pwm/imx-tpm-pwm.txt | 19 > +++ > 1 file changed,

[PATCH v2 7/8] arm64: dts: meson: g12a: Add G12A USB nodes

2019-03-18 Thread Neil Armstrong
This patch adds the nodes for the USB Complex found in the Amlogic G12A SoC. It includes the : - 2 USB2 PHYs - 1 USB3 + PCIE Combo PHY - the USB Glue with it's DWC2 and DWC3 sub-nodes Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 75 + 1

[PATCH v3 5/5] PCI: dwc: Save root bus for driver remove

2019-03-18 Thread Jisheng Zhang
Currently dwc host doesn't support the remove, but nothing prevent us from supporting it. Save the root bus for clean up work in driver remove code path. After this patch, the dwc host users could implement its remove as: static int foo_pcie_remove(struct platform_device *pdev) { ...

Re: [PATCH] pinctrl: baytrail: Fix potential NULL pointer dereference

2019-03-18 Thread Andy Shevchenko
On Tue, Mar 12, 2019 at 10:05:52AM -0500, Aditya Pakki wrote: > saved-context in byt_gpio_probe is allocated via devm_kcalloc and is > used without checking for NULL in later functions. This patch avoids > such a scenario. Pushed to my review and testing queue, thanks! > > Signed-off-by: Aditya

[PATCH v3 4/5] PCI: dwc: Use devm_pci_alloc_host_bridge() to simplify the code

2019-03-18 Thread Jisheng Zhang
Use devm_pci_alloc_host_bridge() to simplify the error code path. Signed-off-by: Jisheng Zhang Acked-by: Gustavo Pimentel --- .../pci/controller/dwc/pcie-designware-host.c | 21 +++ 1 file changed, 8 insertions(+), 13 deletions(-) diff --git

[PATCH v3 3/5] PCI: dwc: Free MSI in the error code path of dw_pcie_host_init()

2019-03-18 Thread Jisheng Zhang
If we ever did some msi related initializations, we need to call dw_pcie_free_msi() in the error code path. Signed-off-by: Jisheng Zhang Acked-by: Gustavo Pimentel --- drivers/pci/controller/dwc/pcie-designware-host.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git

PCI: dwc: Free MSI in the error code path of dw_pcie_host_init()

2019-03-18 Thread Jisheng Zhang
If we ever did some msi related initializations, we need to call dw_pcie_free_msi() in the error code path. Signed-off-by: Jisheng Zhang Acked-by: Gustavo Pimentel --- drivers/pci/controller/dwc/pcie-designware-host.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git

[PATCH v3 2/5] PCI: dwc: Free the page for MSI IRQ in dw_pcie_free_msi()

2019-03-18 Thread Jisheng Zhang
To avoid memory leak, we need to free the page for MSI in dw_pcie_free_msi(). Signed-off-by: Jisheng Zhang --- drivers/pci/controller/dwc/pcie-designware-host.c | 12 drivers/pci/controller/dwc/pcie-designware.h | 1 + 2 files changed, 9 insertions(+), 4 deletions(-) diff

[PATCH v1] platform/x86: Add support for Basin Cove power button

2019-03-18 Thread Andy Shevchenko
This provides a new input driver for supporting the power button on Basin Cove PMIC, found on Intel Merrifield-based devices. The driver follows the design used in intel_chtdc_ti_pwrbtn.c module. Signed-off-by: Andy Shevchenko --- drivers/platform/x86/Kconfig | 11 +++

[PATCH v3 1/5] PCI: dwc: Fix dw_pcie_free_msi() if msi_irq is invalid

2019-03-18 Thread Jisheng Zhang
We should check msi_irq before calling irq_set_chained_handler() and irq_set_handler_data(). Signed-off-by: Jisheng Zhang Acked-by: Gustavo Pimentel --- drivers/pci/controller/dwc/pcie-designware-host.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git

[PATCH v3 0/5] PCI: dwc: Support remove

2019-03-18 Thread Jisheng Zhang
Currently, the PCI dwc host users don't support the remove, but nothing prevent us from supporting it. To achieve this goal, we need to ensure we can do necessary clean up work. Changes since v2: - address all Gustavo's comments - add Gustavo's ACK to patch1, patch3, patch4 Changes since v1:

[PATCH v1] mfd: Add support for Merrifield Basin Cove PMIC

2019-03-18 Thread Andy Shevchenko
Add an mfd driver for Intel Merrifield Basin Cove PMIC. Signed-off-by: Andy Shevchenko --- drivers/mfd/Kconfig | 11 ++ drivers/mfd/Makefile | 1 + drivers/mfd/intel_soc_pmic_mrfld.c | 157 +++

Re: [RFC PATCH v1 04/15] iommu: Add DOMAIN_ATTR_PTBASE

2019-03-18 Thread Joerg Roedel
On Fri, Mar 01, 2019 at 12:38:26PM -0700, Jordan Crouse wrote: > Add an attribute to return the base address of the pagetable. This is used > by auxiliary domains from arm-smmu to return the address of the pagetable > to the leaf driver so that it can set the appropriate pagetable through > it's

[PATCH v1 1/2] extcon: intel: Split out some definitions to a common header

2019-03-18 Thread Andy Shevchenko
We are going to use some definitions in the other Intel extcon drivers, thus, split out them to a common header file. Signed-off-by: Andy Shevchenko --- drivers/extcon/extcon-intel-cht-wc.c | 21 +++-- drivers/extcon/extcon-intel.h| 20 2 files

[PATCH v1 2/2] extcon: mrfld: Introduce extcon driver for Basin Cove PMIC

2019-03-18 Thread Andy Shevchenko
TBD Signed-off-by: Andy Shevchenko --- drivers/extcon/Kconfig | 7 + drivers/extcon/Makefile | 1 + drivers/extcon/extcon-intel-mrfld.c | 256 3 files changed, 264 insertions(+) create mode 100644 drivers/extcon/extcon-intel-mrfld.c

Re: [PATCH v9 2/2] pwm: sifive: Add a driver for SiFive SoC PWM

2019-03-18 Thread Thierry Reding
On Tue, Mar 12, 2019 at 02:17:12PM +0100, Uwe Kleine-König wrote: > On Tue, Mar 12, 2019 at 01:12:18PM +0100, Thierry Reding wrote: > > On Tue, Mar 12, 2019 at 10:17:39AM +0100, Uwe Kleine-König wrote: [...] > > > There are a few other things that could be improved, but I think they > > > could be

RE: [PATCH V5 1/5] dt-bindings: pwm: Add i.MX TPM PWM binding

2019-03-18 Thread Anson Huang
Hi, Stefan Best Regards! Anson Huang > -Original Message- > From: Stefan Agner [mailto:ste...@agner.ch] > Sent: 2019年3月18日 16:19 > To: Anson Huang > Cc: thierry.red...@gmail.com; robh...@kernel.org; mark.rutl...@arm.com; > shawn...@kernel.org; s.ha...@pengutronix.de;

[PATCH 5.0 25/43] net/mlx4_core: Fix locking in SRIOV mode when switching between events and polling

2019-03-18 Thread Greg Kroah-Hartman
5.0-stable review patch. If anyone has any objections, please let me know. -- From: Jack Morgenstein [ Upstream commit c07d27927f2f2e96fcd27bb9fb330c9ea65612d0 ] In procedures mlx4_cmd_use_events() and mlx4_cmd_use_polling(), we need to guarantee that there are no FW commands

[PATCH 5.0 10/43] net/hsr: fix possible crash in add_timer()

2019-03-18 Thread Greg Kroah-Hartman
5.0-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet [ Upstream commit 1e027960edfaa6a43f9ca31081729b716598112b ] syzbot found another add_timer() issue, this time in net/hsr [1] Let's use mod_timer() which is safe. [1] kernel BUG

[PATCH 5.0 21/43] tcp: handle inet_csk_reqsk_queue_add() failures

2019-03-18 Thread Greg Kroah-Hartman
5.0-stable review patch. If anyone has any objections, please let me know. -- From: Guillaume Nault [ Upstream commit 9d3e1368bb45893a75a5dfb7cd21fdebfa6b47af ] Commit 7716682cc58e ("tcp/dccp: fix another race at listener dismantle") let inet_csk_reqsk_queue_add() fail, and

[PATCH 5.0 32/43] perf/x86: Fixup typo in stub functions

2019-03-18 Thread Greg Kroah-Hartman
5.0-stable review patch. If anyone has any objections, please let me know. -- From: Peter Zijlstra commit f764c58b7faa26f5714e6907f892abc2bc0de4f8 upstream. Guenter reported a build warning for CONFIG_CPU_SUP_INTEL=n: > With allmodconfig-CONFIG_CPU_SUP_INTEL, this patch

Re: [External] Re: vmscan: Reclaim unevictable pages

2019-03-18 Thread Kirill Tkhai
On 18.03.2019 12:43, Pankaj Suryawanshi wrote: > Hi Kirill Tkhai, > Please, do not top posting: https://kernelnewbies.org/mailinglistguidelines > Please see mm/vmscan.c in which it first added to list and than throw the > error : >

[PATCH 5.0 40/43] perf/x86/intel: Fix memory corruption

2019-03-18 Thread Greg Kroah-Hartman
5.0-stable review patch. If anyone has any objections, please let me know. -- From: Peter Zijlstra commit ede271b059463731cbd6dffe55ffd70d7dbe8392 upstream. Through: validate_event() x86_pmu.get_event_constraints(.idx=-1) tfa_get_event_constraints()

[PATCH 2/2] w1: fix the resume command API

2019-03-18 Thread Mariusz Bialonczyk
>From the DS2408 datasheet [1]: "Resume Command function checks the status of the RC flag and, if it is set, directly transfers control to the control functions, similar to a Skip ROM command. The only way to set the RC flag is through successfully executing the Match ROM, Search ROM,

[PATCH 1/2] w1: ds2408: add a missing reset when retrying in output_write()

2019-03-18 Thread Mariusz Bialonczyk
When we have success in 'Channel Access Write' but reading back the latch state has failed, then the code continues but without doing a proper slave reset. This was leading to protocol errors as the slave treats the next 'Channel Access Write' as the continuation of previous command. This commit

[PATCH REBASED 0/4] mm: Generalize putback functions

2019-03-18 Thread Kirill Tkhai
(This is resending of the patchset, rebased on next-20190318). Functions putback_inactive_pages() and move_active_pages_to_lru() are almost similar, so this patchset merges them in only function. v3: Replace list_del_init() with list_del() v2.5: Update comment v2: Fix tracing. Return

[PATCH 5.0 39/43] ALSA: hda/realtek: Enable headset MIC of Acer TravelMate X514-51T with ALC255

2019-03-18 Thread Greg Kroah-Hartman
5.0-stable review patch. If anyone has any objections, please let me know. -- From: Jian-Hong Pan commit cbc05fd6708c1744ee6a61cb4c461ff956d30524 upstream. The Acer TravelMate X514-51T with ALC255 cannot detect the headset MIC until ALC255_FIXUP_ACER_HEADSET_MIC quirk

[PATCH REBASED 1/4] mm: Move recent_rotated pages calculation to shrink_inactive_list()

2019-03-18 Thread Kirill Tkhai
The patch moves the calculation from putback_inactive_pages() to shrink_inactive_list(). This makes putback_inactive_pages() looking more similar to move_active_pages_to_lru(). To do that, we account activated pages in reclaim_stat::nr_activate. Since a page may change its LRU type from anon to

[PATCH 5.0 38/43] ALSA: hda/realtek - Reduce click noise on Dell Precision 5820 headphone

2019-03-18 Thread Greg Kroah-Hartman
5.0-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit c0ca5eced22215c1e03e3ad479f8fab0bbb30772 upstream. Dell Precision 5820 with ALC3234 codec (which is equivalent with ALC255) shows click noises at (runtime) PM resume on the

[PATCH 5.0 42/43] Its wrong to add len to sector_nr in raid10 reshape twice

2019-03-18 Thread Greg Kroah-Hartman
5.0-stable review patch. If anyone has any objections, please let me know. -- From: Xiao Ni commit b761dcf1217760a42f7897c31dcb649f59b2333e upstream. In reshape_request it already adds len to sector_nr already. It's wrong to add len to sector_nr again after adding pages to

Re: [RFC PATCH 2/2] x86/perf/amd: Resolve NMI latency issues when multiple PMCs are active

2019-03-18 Thread Peter Zijlstra
On Fri, Mar 15, 2019 at 01:03:11PM +0100, Peter Zijlstra wrote: > Anyway, we already had code to deal with spurious NMIs from AMD; see > commit: > > 63e6be6d98e1 ("perf, x86: Catch spurious interrupts after disabling > counters") > > And that looks to be doing something very much the same.

[PATCH 4.20 18/52] tcp: do not report TCP_CM_INQ of 0 for closed connections

2019-03-18 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Soheil Hassas Yeganeh [ Upstream commit 6466e715651f9f358e60c5ea4880e4731325827f ] Returning 0 as inq to userspace indicates there is no more data to read, and the application needs to wait

[PATCH 4.20 15/52] route: set the deleted fnhe fnhe_daddr to 0 in ip_del_fnhe to fix a race

2019-03-18 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Xin Long [ Upstream commit ee60ad219f5c7c4fb2f047f88037770063ef785f ] The race occurs in __mkroute_output() when 2 threads lookup a dst: CPU A CPU B find_exception()

[PATCH 5.0 05/43] l2tp: fix infoleak in l2tp_ip6_recvmsg()

2019-03-18 Thread Greg Kroah-Hartman
5.0-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet [ Upstream commit 163d1c3d6f17556ed3c340d3789ea93be95d6c28 ] Back in 2013 Hannes took care of most of such leaks in commit bceaa90240b6 ("inet: prevent leakage of uninitialized

[PATCH 5.0 43/43] drm: Block fb changes for async plane updates

2019-03-18 Thread Greg Kroah-Hartman
5.0-stable review patch. If anyone has any objections, please let me know. -- From: Nicholas Kazlauskas commit 25dc194b34dd5919dd07b8873ee338182e15df9d upstream. The prepare_fb call always happens on new_plane_state. The drm_atomic_helper_cleanup_planes checks to see if

[PATCH 5.0 08/43] net: hns3: add dma_rmb() for rx description

2019-03-18 Thread Greg Kroah-Hartman
5.0-stable review patch. If anyone has any objections, please let me know. -- From: Jian Shen [ Upstream commit d394d33bee22421b39a0bcdc51ca6d68ba308625 ] HW can not guarantee complete write desc->rx.size, even though HNS3_RXD_VLD_B has been set. Driver needs to add dma_rmb()

[PATCH REBASED 3/4] mm: Remove pages_to_free argument of move_active_pages_to_lru()

2019-03-18 Thread Kirill Tkhai
We may use input argument list as output argument too. This makes the function more similar to putback_inactive_pages(). Signed-off-by: Kirill Tkhai Reviewed-by: Daniel Jordan v2: Fix comment spelling. --- mm/vmscan.c | 19 +-- 1 file changed, 13 insertions(+), 6

[PATCH 4.20 25/52] net/mlx4_core: Fix qp mtt size calculation

2019-03-18 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Jack Morgenstein [ Upstream commit 8511a653e9250ef36b95803c375a7be0e2edb628 ] Calculation of qp mtt size (in function mlx4_RST2INIT_wrapper) ultimately depends on function roundup_pow_of_two.

Re: [PATCH net-next 2/3] net: phy: add amlogic g12a mdio mux support

2019-03-18 Thread Neil Armstrong
Hi Andrew, On 17/03/2019 16:48, Andrew Lunn wrote: > On Sat, Mar 16, 2019 at 06:02:45PM +0100, Jerome Brunet wrote: >> On Sat, 2019-03-16 at 03:54 +0100, Andrew Lunn wrote: >>> On Thu, Mar 14, 2019 at 03:01:34PM +0100, Jerome Brunet wrote: > +static int _g12a_enable_internal_mdio(struct

[PATCH 4.20 29/52] mdio_bus: Fix use-after-free on device_register fails

2019-03-18 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: YueHaibing [ Upstream commit 6ff7b060535e87c2ae14dd8548512abfdda528fb ] KASAN has found use-after-free in fixed_mdio_bus_init, commit 0c692d07842a ("drivers/net/phy/mdio_bus.c: call

[PATCH 4.20 34/52] ipv6: route: enforce RCU protection in rt6_update_exception_stamp_rt()

2019-03-18 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Paolo Abeni [ Upstream commit 193f3685d0546b0cea20c99894aadb70098e47bf ] We must access rt6_info->from under RCU read lock: move the dereference under such lock, with proper annotation. v1

[PATCH 4.20 35/52] ipv6: route: enforce RCU protection in ip6_route_check_nh_onlink()

2019-03-18 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Paolo Abeni [ Upstream commit bf1dc8bad1d42287164d216d8efb51c5cd381b18 ] We need a RCU critical section around rt6_info->from deference, and proper annotation. Fixes: 4ed591c8ab44

Re: [PATCH v2 01/19] locking/lockdep: Change all print_*() return type to void

2019-03-18 Thread Joe Perches
On Mon, 2019-03-18 at 16:57 +0800, Yuyang Du wrote: > Since none of the print_*() function's return value is necessary, change > their return type to void. No functional change. > > In cases where an invariable return value is used, this change slightly > improves readability, i.e.: [] > diff

Re: [PATCH] hostfs: fix mismatch between link_file definition and declaration

2019-03-18 Thread Richard Weinberger
Am Montag, 18. März 2019, 09:41:28 CET schrieb Colin Ian King: > On 17/03/2019 23:49, Richard Weinberger wrote: > > Am Montag, 18. März 2019, 00:09:09 CET schrieb Colin King: > >> From: Colin Ian King > >> > >> The function link_file declaration in the header file has the order > >> of the two

[PATCH 4.20 08/52] net: hsr: fix memory leak in hsr_dev_finalize()

2019-03-18 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Mao Wenan [ Upstream commit 3dc6da493a29dbeda9f13b637bd9c02c414b2261 ] If hsr_add_port(hsr, hsr_dev, HSR_PT_MASTER) failed to add port, it directly returns res and forgets to free the node

[PATCH 4.20 36/52] bonding: fix PACKET_ORIGDEV regression

2019-03-18 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Michal Soltys [ Upstream commit 3c963a3306eada999be5ebf4f293dfa3d3945487 ] This patch fixes a subtle PACKET_ORIGDEV regression which was a side effect of fixes introduced by: 6a9e461f6fe4

[PATCH 4.20 43/52] ALSA: hda: Extend i915 component bind timeout

2019-03-18 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit cfc35f9c128cea8fce6a5513b1de50d36f3b209f upstream. I set 10 seconds for the timeout of the i915 audio component binding with a hope that recent machines are fast enough to

[PATCH 4.20 45/52] ALSA: hda/realtek: Enable audio jacks of ASUS UX362FA with ALC294

2019-03-18 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Jian-Hong Pan commit 8bb37a2a4d7c02affef554f5dc05f6d2e39c31f9 upstream. The ASUS UX362FA with ALC294 cannot detect the headset MIC and outputs through the internal speaker and the headphone.

[PATCH 4.20 12/52] net/x25: reset state in x25_connect()

2019-03-18 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet [ Upstream commit ee74d0bd4325efb41e38affe5955f920ed973f23 ] In case x25_connect() fails and frees the socket neighbour, we also need to undo the change done to x25->state.

[PATCH 4.20 48/52] perf/x86/intel: Fix memory corruption

2019-03-18 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Peter Zijlstra commit ede271b059463731cbd6dffe55ffd70d7dbe8392 upstream. Through: validate_event() x86_pmu.get_event_constraints(.idx=-1) tfa_get_event_constraints()

[PATCH 4.20 11/52] net/x25: fix use-after-free in x25_device_event()

2019-03-18 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet [ Upstream commit 95d6ebd53c79522bf9502dbc7e89e0d63f94dae4 ] In case of failure x25_connect() does a x25_neigh_put(x25->neighbour) but forgets to clear x25->neighbour pointer,

[PATCH 4.20 52/52] vhost/vsock: fix vhost vsock cid hashing inconsistent

2019-03-18 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Zha Bin commit 7fbe078c37aba3088359c9256c1a1d0c3e39ee81 upstream. The vsock core only supports 32bit CID, but the Virtio-vsock spec define CID (dst_cid and src_cid) as u64 and the upper

[PATCH 4.20 05/52] lan743x: Fix RX Kernel Panic

2019-03-18 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Bryan Whitehead [ Upstream commit dd9d9f5907bb475f8b1796c47d4ecc7fb9b72136 ] It has been noticed that running the speed test at www.speedtest.net occasionally causes a kernel panic.

Re: [PATCH] doc: add boot protocol 2.13 description to Documentation/x86/boot.txt

2019-03-18 Thread Matt Fleming
On Fri, 08 Mar, at 12:43:10PM, Juergen Gross wrote: > Documentation/x86/boot.txt is missing protocol 2.13 description. > > Signed-off-by: Juergen Gross > --- > Documentation/x86/boot.txt | 4 > 1 file changed, 4 insertions(+) > > diff --git a/Documentation/x86/boot.txt

[PATCH 4.19 01/52] connector: fix unsafe usage of ->real_parent

2019-03-18 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Li RongQing [ Upstream commit 6d2b0f02f5a07a4bf02e4cbc90d7eaa85cac2986 ] proc_exit_connector() uses ->real_parent lockless. This is not safe that its parent can go away at any moment, so use

[PATCH 4.19 14/52] route: set the deleted fnhe fnhe_daddr to 0 in ip_del_fnhe to fix a race

2019-03-18 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Xin Long [ Upstream commit ee60ad219f5c7c4fb2f047f88037770063ef785f ] The race occurs in __mkroute_output() when 2 threads lookup a dst: CPU A CPU B find_exception()

Re: [External] Re: vmscan: Reclaim unevictable pages

2019-03-18 Thread Pankaj Suryawanshi
Hi Kirill Tkhai, Please see mm/vmscan.c in which it first added to list and than throw the error : -- keep: list_add(>lru, _pages); VM_BUG_ON_PAGE(PageLRU(page) ||

[PATCH 4.19 19/52] tcp: handle inet_csk_reqsk_queue_add() failures

2019-03-18 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Guillaume Nault [ Upstream commit 9d3e1368bb45893a75a5dfb7cd21fdebfa6b47af ] Commit 7716682cc58e ("tcp/dccp: fix another race at listener dismantle") let inet_csk_reqsk_queue_add() fail, and

[PATCH 4.19 17/52] tcp: do not report TCP_CM_INQ of 0 for closed connections

2019-03-18 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Soheil Hassas Yeganeh [ Upstream commit 6466e715651f9f358e60c5ea4880e4731325827f ] Returning 0 as inq to userspace indicates there is no more data to read, and the application needs to wait

[PATCH 4.19 12/52] pptp: dst_release sk_dst_cache in pptp_sock_destruct

2019-03-18 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Xin Long [ Upstream commit 9417d81f4f8adfe20a12dd1fadf73a618cbd945d ] sk_setup_caps() is called to set sk->sk_dst_cache in pptp_connect, so we have to dst_release(sk->sk_dst_cache) in

[PATCH 4.19 27/52] net: Set rtm_table to RT_TABLE_COMPAT for ipv6 for tables > 255

2019-03-18 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Kalash Nainwal [ Upstream commit 97f0082a0592212fc15d4680f5a4d80f79a1687c ] Set rtm_table to RT_TABLE_COMPAT for ipv6 for tables > 255 to keep legacy software happy. This is similar to what

[PATCH 4.19 25/52] net/x25: fix a race in x25_bind()

2019-03-18 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet [ Upstream commit 797a22bd5298c2674d927893f46cadf619dad11d ] syzbot was able to trigger another soft lockup [1] I first thought it was the O(N^2) issue I mentioned in my prior

[PATCH 4.19 31/52] ipv6: route: enforce RCU protection in rt6_update_exception_stamp_rt()

2019-03-18 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Paolo Abeni [ Upstream commit 193f3685d0546b0cea20c99894aadb70098e47bf ] We must access rt6_info->from under RCU read lock: move the dereference under such lock, with proper annotation. v1

[PATCH 4.19 22/52] net/mlx4_core: Fix reset flow when in command polling mode

2019-03-18 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Jack Morgenstein [ Upstream commit e15ce4b8d11227007577e6dc1364d288b8874fbe ] As part of unloading a device, the driver switches from FW command event mode to FW command polling mode. Part

<    2   3   4   5   6   7   8   9   10   >