Re: [RFC 1/6] powerpc:/drc Define interface to acquire arch-specific drc info

2019-01-28 Thread Michael Bringmann
On 1/25/19 10:09 AM, Michael Bringmann wrote: > Adding Nathan Lynch > > On 1/24/19 6:04 PM, Tyrel Datwyler wrote: >> On 12/14/2018 12:50 PM, Michael Bringmann wrote: >>> Define interface to acquire arch-specific drc info to match against >>> hotpluggable devices. The current implementation

Re: [PATCH] mtd: rawnand: mark expected switch fall-throughs

2019-01-28 Thread Gustavo A. R. Silva
Miquel, Boris, On 1/28/19 3:13 AM, Miquel Raynal wrote: > Hi Boris, > > Boris Brezillon wrote on Sat, 26 Jan 2019 > 17:54:29 +0100: > >> On Sat, 26 Jan 2019 07:48:50 -0600 >> "Gustavo A. R. Silva" wrote: >> >>> Hey Boris, >>> >>> On 1/26/19 3:52 AM, Boris Brezillon wrote: On Fri, 25

[PATCH 1/2] arm64: meson: remove COMMON_CLK_AMLOGIC selection

2019-01-28 Thread Jerome Brunet
Selecting COMMON_CLK_AMLOGIC is not required as it is already selected by the SoC clock controller driver Signed-off-by: Jerome Brunet --- arch/arm64/Kconfig.platforms | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms index

[PATCH 2/2] ARM: meson: remove COMMON_CLK_AMLOGIC selection

2019-01-28 Thread Jerome Brunet
Selecting COMMON_CLK_AMLOGIC is not required as it is already selected by the SoC clock controller driver Signed-off-by: Jerome Brunet --- arch/arm/mach-meson/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/mach-meson/Kconfig b/arch/arm/mach-meson/Kconfig index

[PATCH 0/2] ARM: meson: do not select COMMON_CLK_AMLOGIC

2019-01-28 Thread Jerome Brunet
The patchset remove the selection of CONFIG_COMMON_CLK_AMLOGIC. This CONFIG symbol: * Is already selected by controller driver which requires it. * Is being removed by this changeset [0] Whether or not series [0] is merged, selecting CONFIG_COMMON_CLK_AMLOGIC is not necessary and it is safe to

Re: [PATCH v3 lora-next 3/4] dt-bindings: lora: sx125x: add clock bindings

2019-01-28 Thread Rob Herring
On Thu, Jan 24, 2019 at 8:54 AM Ben Whitten wrote: > > From: Ben Whitten > > The SX125x consumes a clock (FXOSC) ranging from 32 to 36 MHz as its main > XTAL. It may also consume a clock for the TX synthesizer or DAC input clock > (FCLK_IN). > If the radio is coupled with an SX130x the radio is

Re: [PATCH] mm: Prevent mapping slab pages to userspace

2019-01-28 Thread Andrew Morton
On Fri, 25 Jan 2019 09:38:27 -0800 Matthew Wilcox wrote: > It's never appropriate to map a page allocated by SLAB into userspace. > A buggy device driver might try this, or an attacker might be able to > find a way to make it happen. It wouldn't surprise me if someone somewhere is doing this.

Re: [PATCH v3 lora-next 2/4] dt-bindings: lora: sx125x: add basic documentation

2019-01-28 Thread Rob Herring
On Thu, Jan 24, 2019 at 8:53 AM Ben Whitten wrote: > > From: Ben Whitten > > The SX125x family are IQ radio transceivers from Semtech configured over > SPI, they are typically connected to an SX130x series concentrator however > may be connected to a host directly. > > Required properties

Re: [PATCH v2 3/3] Pinctrl: Ingenic: Unify the function name prefix to "ingenic_gpio_".

2019-01-28 Thread Paul Cercueil
Le lun. 28 janv. 2019 à 12:19, Zhou Yanjie a écrit : From: Zhou Yanjie In the original code, some function names begin with "ingenic_gpio_", and some with "gpio_ingenic_". For the sake of uniform style, all of them are changed to the beginning of "ingenic_gpio_". Signed-off-by: Zhou

Re: [PATCH v3 lora-next 1/4] dt-bindings: lora: sx130x: add basic documentation

2019-01-28 Thread Rob Herring
On Thu, Jan 24, 2019 at 8:53 AM Ben Whitten wrote: > > From: Ben Whitten > > Add basic documentation in YAML format for the SX130x series concentrators > from Semtech. > Required is; the location on the SPI bus and the compatible string. > > Signed-off-by: Ben Whitten > --- > v2 -> v3: > *

Re: [PATCH v2 1/3] Pinctrl: Ingenic: Fix bugs caused by differences between JZ4770 and JZ4780.

2019-01-28 Thread Paul Cercueil
Hi, Le lun. 28 janv. 2019 à 12:19, Zhou Yanjie a écrit : From: Zhou Yanjie Delete uart4 and i2c3/4 from JZ4770: According to the datasheet, only JZ4780 have uart4 and i2c3/4. So we remove it from the JZ4770 code and add a section corresponding the JZ4780. Fix bugs in i2c0/1: The pin

[PATCH v2] mtd: rawnand: mark expected switch fall-throughs

2019-01-28 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. This patch fixes the following warning: drivers/mtd/nand/onenand/onenand_base.c:3264:6: warning: this statement may fall through [-Wimplicit-fallthrough=]

Re: [PATCH v3] oom, oom_reaper: do not enqueue same task twice

2019-01-28 Thread Andrew Morton
On Sun, 27 Jan 2019 23:57:38 +0900 Tetsuo Handa wrote: > Arkadiusz reported that enabling memcg's group oom killing causes > strange memcg statistics where there is no task in a memcg despite > the number of tasks in that memcg is not 0. It turned out that there > is a bug in wake_oom_reaper()

Re: [PATCH v2 2/3] Pinctrl: Ingenic: Add missing parts for JZ4770 and JZ4780.

2019-01-28 Thread Paul Cercueil
Hi, Le lun. 28 janv. 2019 à 12:19, Zhou Yanjie a écrit : From: Zhou Yanjie Add mmc2 for JZ4770 and JZ4780: According to the datasheet, both JZ4770 and JZ4780 have mmc2. But this part of the original code is missing. It is worth noting that JZ4770's mmc2 supports 8bit mode while JZ4780's

[PATCH v2 0/2] reset: meson: add g12a SoC support

2019-01-28 Thread Jerome Brunet
This patchset adds new dt-bindings for the reset lines of amlogic g12a SoC and the related compatible in the driver. Changes since v1 [0]: * Correct patch 2 commit message. [0]: https://lkml.kernel.org/r/20190128141330.21927-1-jbru...@baylibre.com Jerome Brunet (2): dt-bindings: reset: meson:

[PATCH v2 1/2] dt-bindings: reset: meson: add g12a bindings

2019-01-28 Thread Jerome Brunet
Add device tree bindings for the reset controller of g12a SoC family. Acked-by: Neil Armstrong Signed-off-by: Jerome Brunet --- .../bindings/reset/amlogic,meson-reset.txt| 7 +- .../reset/amlogic,meson-g12a-reset.h | 134 ++ 2 files changed, 139 insertions(+), 2

Re: [PATCH lora-next 01/11] dt-bindings: net: lora: sx130x: add power lut binding

2019-01-28 Thread Rob Herring
On Mon, Jan 28, 2019 at 10:13 AM Ben Whitten wrote: > > From: Ben Whitten > > Adding power lookup table for the concentrator specified in DT. > > These values are calibrated for the hardware and are unique to hardware > designs and certifications. > > First byte is signed power in dBm measured

[PATCH v2 2/2] reset: meson: add g12a compatible string

2019-01-28 Thread Jerome Brunet
Add a compatible for the new g12a SoC family. Tested-by: Neil Armstrong Signed-off-by: Jerome Brunet --- drivers/reset/reset-meson.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/reset/reset-meson.c b/drivers/reset/reset-meson.c index 5242e0679df7..a8f6549b3af4 100644 ---

Re: [PATCH v6 11/13] KVM: s390: add functions to (un)register GISC with GISA

2019-01-28 Thread Halil Pasic
On Thu, 24 Jan 2019 13:59:37 +0100 Michael Mueller wrote: > Add the Interruption Alert Mask (IAM) to the architecture specific > kvm struct. This mask in the GISA is used to define for which ISC > a GIB alert will be issued. > > The functions kvm_s390_gisc_register() and

Re: [PATCH AUTOSEL 4.19 174/258] livepatch: check kzalloc return values

2019-01-28 Thread Sasha Levin
On Mon, Jan 28, 2019 at 06:28:14PM +0100, Miroslav Benes wrote: On Mon, 28 Jan 2019, Sasha Levin wrote: From: Nicholas Mc Guire [ Upstream commit 5f30b2e823484ce6a79f2b59901b6351c15effa6 ] kzalloc() return should always be checked - notably in example code where this may be seen as

Re: [PATCH v3 1/2] spi: support inter-word delay requirement for devices

2019-01-28 Thread Mark Brown
On Sat, Jan 26, 2019 at 05:32:19PM +0100, Jonas Bonn wrote: > @@ -164,6 +166,7 @@ struct spi_device { > charmodalias[SPI_NAME_SIZE]; > const char *driver_override; > int cs_gpio;/* chip select gpio */ > + uint16_t

Re: [PATCH AUTOSEL 4.19 033/258] sctp: Fix SKB list traversal in sctp_intl_store_ordered().

2019-01-28 Thread Marcelo Ricardo Leitner
On Mon, Jan 28, 2019 at 10:55:39AM -0500, Sasha Levin wrote: > From: "David S. Miller" > > [ Upstream commit e15e067d0656625c77c52b4e5f0cfbf0c0c3583f ] > > Same change as made to sctp_intl_store_reasm(). > > To be fully correct, an iterator has an undefined value when something > like

[PATCH 12/14] clk: meson: clkc must die

2019-01-28 Thread Jerome Brunet
Signed-off-by: Jerome Brunet --- drivers/clk/meson/axg-aoclk.c | 1 - drivers/clk/meson/axg.c | 1 - drivers/clk/meson/clkc-audio.h | 3 ++- drivers/clk/meson/clkc.h| 17 - drivers/clk/meson/gxbb-aoclk.c | 1 - drivers/clk/meson/gxbb.c| 1 -

[PATCH 07/14] clk: meson: take the mpll driver out of clkc

2019-01-28 Thread Jerome Brunet
Signed-off-by: Jerome Brunet --- drivers/clk/meson/axg.c | 1 + drivers/clk/meson/clk-mpll.c | 12 +++- drivers/clk/meson/clk-mpll.h | 30 ++ drivers/clk/meson/clkc.h | 14 -- drivers/clk/meson/gxbb.c | 1 +

[PATCH 09/14] clk: meson: take vid-pll-div out of clkc

2019-01-28 Thread Jerome Brunet
Signed-off-by: Jerome Brunet --- drivers/clk/meson/clkc.h| 6 -- drivers/clk/meson/gxbb.c| 1 + drivers/clk/meson/vid-pll-div.c | 10 +- drivers/clk/meson/vid-pll-div.h | 20 4 files changed, 30 insertions(+), 7 deletions(-) create mode 100644

[PATCH 05/14] clk: meson: move parm out of clkc

2019-01-28 Thread Jerome Brunet
Signed-off-by: Jerome Brunet --- drivers/clk/meson/clkc.h | 34 + drivers/clk/meson/parm.h | 46 2 files changed, 47 insertions(+), 33 deletions(-) create mode 100644 drivers/clk/meson/parm.h diff --git

[PATCH 02/14] clk: meson: use CONFIG_ARCH_MESON to enter meson clk directory

2019-01-28 Thread Jerome Brunet
Use CONFIG_ARCH_MESON to let make enter the meson clock directory. As part of a rework, CONFIG_COMMON_CLK_AMLOGIC is about to be removed. Signed-off-by: Jerome Brunet --- drivers/clk/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/Makefile

[PATCH 06/14] clk: meson: take the pll driver out of clkc

2019-01-28 Thread Jerome Brunet
Signed-off-by: Jerome Brunet --- drivers/clk/meson/axg.c | 1 + drivers/clk/meson/clk-pll.c | 13 +++ drivers/clk/meson/clk-pll.h | 43 + drivers/clk/meson/clkc.h| 30 -- drivers/clk/meson/gxbb.c| 1 +

[PATCH 01/14] clk: export some clk_hw function symbols for module drivers

2019-01-28 Thread Jerome Brunet
clk-provider.h provides clk_hw_is_prepared(), clk_hw_is_enabled() and clk_hw_is_prepared() but these symbols are not exported for the modules which prevents a clock driver using them to be compiled as a module. Export them to fix the problem. Signed-off-by: Jerome Brunet --- drivers/clk/clk.c |

Re: [PATCH v2] sysctl: Add panic-fatal-signals

2019-01-28 Thread Andrew Morton
On Mon, 28 Jan 2019 09:49:59 +0100 Vincent Whitchurch wrote: > Add a sysctl which asks the kernel to panic when any userspace process > receives a fatal signal which would trigger a core dump. This has > proven to be quite useful when debugging problems seen during testing of > embedded

[PATCH 13/14] clk: meson: move sclk-div out of clkc-audio

2019-01-28 Thread Jerome Brunet
Signed-off-by: Jerome Brunet --- drivers/clk/meson/axg-audio.c | 2 +- drivers/clk/meson/sclk-div.c | 9 - drivers/clk/meson/{clkc-audio.h => sclk-div.h} | 6 +++--- 3 files changed, 12 insertions(+), 5 deletions(-) rename

[PATCH 11/14] clk: meson: take clk-input out of clkc

2019-01-28 Thread Jerome Brunet
Signed-off-by: Jerome Brunet --- drivers/clk/meson/axg-audio.c | 1 + drivers/clk/meson/axg.c | 1 + drivers/clk/meson/clk-input.c | 7 ++- drivers/clk/meson/clk-input.h | 19 +++ drivers/clk/meson/clkc.h| 5 - drivers/clk/meson/gxbb.c|

Re: [PATCH AUTOSEL 4.19 034/258] sctp: Fix SKB list traversal in sctp_intl_store_reasm().

2019-01-28 Thread Sasha Levin
On Mon, Jan 28, 2019 at 03:04:34PM -0200, Marcelo Ricardo Leitner wrote: On Mon, Jan 28, 2019 at 10:55:40AM -0500, Sasha Levin wrote: From: "David S. Miller" [ Upstream commit 348bbc25c40844c5efa083a3842c7f53d70a815e ] To be fully correct, an iterator has an undefined value when something

[PATCH 14/14] clk: meson: rework and clean drivers dependencies

2019-01-28 Thread Jerome Brunet
Initially, the meson clock directory only hosted 2 controllers drivers, for meson8 and gxbb. At the time, both used the same set of clock drivers so managing the dependencies was not a big concern. Since this ancient time, entropy did its job, controllers with different requirement and specific

[PATCH 08/14] clk: meson: merge phase driver and remove from clkc

2019-01-28 Thread Jerome Brunet
Signed-off-by: Jerome Brunet --- drivers/clk/meson/Makefile | 2 +- drivers/clk/meson/axg-audio.c| 2 + drivers/clk/meson/clk-phase.c| 75 +--- drivers/clk/meson/clk-phase.h| 26 +++ drivers/clk/meson/clk-triphase.c | 68

[PATCH 10/14] clk: meson: take dualdiv out of clkc

2019-01-28 Thread Jerome Brunet
Signed-off-by: Jerome Brunet --- drivers/clk/meson/axg-aoclk.c | 3 +++ drivers/clk/meson/clk-dualdiv.c | 10 +- drivers/clk/meson/clk-dualdiv.h | 33 + drivers/clk/meson/clkc.h| 19 --- drivers/clk/meson/gxbb-aoclk.c | 3 +++

[PATCH 04/14] clk: meson: move MESON_GATE to clk-regmap.h

2019-01-28 Thread Jerome Brunet
Signed-off-by: Jerome Brunet --- drivers/clk/meson/axg.c| 1 + drivers/clk/meson/clk-regmap.c | 5 + drivers/clk/meson/clk-regmap.h | 15 +++ drivers/clk/meson/clkc.h | 15 --- 4 files changed, 21 insertions(+), 15 deletions(-) diff --git

[PATCH 03/14] clk: meson: axg-audio does not require syscon

2019-01-28 Thread Jerome Brunet
The axg audio clock controller uses regmap mmio, not syscon. Fixes: 1cd50181750f ("clk: meson: axg: add the audio clock controller driver") Signed-off-by: Jerome Brunet --- drivers/clk/meson/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/meson/Kconfig

[PATCH 00/14] clk: meson: rework drivers dependencies

2019-01-28 Thread Jerome Brunet
The goal of this patchset to clean-up the dependencies between the controllers and the different clock drivers provided in the meson directory. The expected result is that each controllers can pick the the clock drivers they need, without necessarily pulling everything. This is becoming important

Re: [PATCH AUTOSEL 4.20 035/304] serial: core: Allow processing sysrq at port unlock time

2019-01-28 Thread Sasha Levin
On Mon, Jan 28, 2019 at 09:21:31AM -0800, Doug Anderson wrote: Hi, On Mon, Jan 28, 2019 at 9:16 AM Sasha Levin wrote: On Mon, Jan 28, 2019 at 08:05:13AM -0800, Doug Anderson wrote: >Hi, > >On Mon, Jan 28, 2019 at 7:44 AM Sasha Levin wrote: >> >> From: Douglas Anderson >> >> [ Upstream

[PATCH v2] tty: increase the default flip buffer limit to 2*640K

2019-01-28 Thread Martin Kepplinger
From: Manfred Schlaegl We increase the default limit for buffer memory allocation by a factor of 10 to 640K to prevent data loss when using fast serial interfaces. For example when using RS485 without flow-control at speeds of 1Mbit/s an upwards we've run into problems such as applications

[PATCH AUTOSEL 4.20 005/304] pinctrl: bcm2835: Use raw spinlock for RT compatibility

2019-01-28 Thread Sasha Levin
From: Lukas Wunner [ Upstream commit 3c7b30f704b6f5e53eed6bf89cf2c8d1b38b02c0 ] The BCM2835 pinctrl driver acquires a spinlock in its ->irq_enable, ->irq_disable and ->irq_set_type callbacks. Spinlocks become sleeping locks with CONFIG_PREEMPT_RT_FULL=y, therefore invocation of one of the

[PATCH AUTOSEL 4.20 008/304] gpiolib: Fix possible use after free on label

2019-01-28 Thread Sasha Levin
From: Muchun Song [ Upstream commit 18534df419041e6c1f4b41af56ee7d41f757815c ] gpiod_request_commit() copies the pointer to the label passed as an argument only to be used later. But there's a chance the caller could immediately free the passed string(e.g., local variable). This could trigger a

[PATCH AUTOSEL 4.20 006/304] clk: sunxi-ng: h6: Set video PLLs limits

2019-01-28 Thread Sasha Levin
From: Jernej Skrabec [ Upstream commit ed4433419d45bf8b58aef34c4450a27e1c8699e8 ] Video PLL factors can be set in a way that final PLL rate is outside stable range. H6 user manual specifically says that N factor should not be below 12. While it doesn't says anything about maximum stable rate,

[PATCH AUTOSEL 4.20 003/304] staging: iio: adc: ad7280a: handle error from __ad7280_read32()

2019-01-28 Thread Sasha Levin
From: Slawomir Stepien [ Upstream commit 0559ef7fde67bc6c83c6eb6329dbd6649528263e ] Inside __ad7280_read32(), the spi_sync_transfer() can fail with negative error code. This change will ensure that this error is being passed up in the call stack, so it can be handled. Signed-off-by: Slawomir

[PATCH AUTOSEL 4.20 010/304] ath10k: fixup extended per sta tx statistics

2019-01-28 Thread Sasha Levin
From: Dan Carpenter [ Upstream commit 539b44e70c5b4ad82d2c0c97a4dfb37523d891f6 ] I had a couple concerns with this code. First, we definitely need to set the error code if the kzalloc() fails. Secondly, I was worried that if we didn't set "arsta->tx_stats" to NULL after freeing it, then it

[PATCH AUTOSEL 4.20 009/304] drm/sun4i: Initialize registers in tcon-top driver

2019-01-28 Thread Sasha Levin
From: Jernej Skrabec [ Upstream commit c96d62215fb540e2ae61de44cb7caf4db50958e3 ] It turns out that TCON TOP registers in H6 SoC have non-zero reset value. This may cause issues if bits are not changed during configuration. To prevent that, initialize registers to 0. Signed-off-by: Jernej

[PATCH AUTOSEL 4.20 013/304] drm/amd/display: Fix potential nullptr error

2019-01-28 Thread Sasha Levin
From: Bhawanpreet Lakha [ Upstream commit 4f7129112c2a30331f3045a42026fad82e6cb72b ] [Why] Fix surface/plane potential nullptr [How] add null check Signed-off-by: Bhawanpreet Lakha Reviewed-by: Aric Cyr Acked-by: Leo Li Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin ---

Re: [PATCH v16 0/7] Parse ACPI table and limit KASLR to choosing immovable memory

2019-01-28 Thread Borislav Petkov
On Wed, Jan 23, 2019 at 07:08:43PM +0800, Chao Fan wrote: > PATCH 1/7 Copy kstrtoull() to boot/string.c to instead of using > old simple_strtoull() > PATCH 2/7 Introduce get_acpi_rsdp() to parse RSDP in cmdline from KEXEC > PATCH 3/6 Introduce efi_get_rsdp_addr() to find RSDP from EFI

[PATCH AUTOSEL 4.20 015/304] wil6210: fix reset flow for Talyn-mb

2019-01-28 Thread Sasha Levin
From: Alexei Avshalom Lazar [ Upstream commit d083b2e2b7db5cca1791643d036e6597af27f49b ] With current reset flow, Talyn sometimes get stuck causing PCIe enumeration to fail. Fix this by removing some reset flow operations that are not relevant for Talyn. Setting bit 15 in RGF_HP_CTRL is WBE

[PATCH] KVM: Ignore LBR MSRs with no effect

2019-01-28 Thread Anton Kuchin
Win10 attempts to save these registers during KiSaveDebugRegisterState if LBR or BTF bits are set in MSR_IA32_DEBUGCTLMSR. It uses DR7 GE and LE flags for per-thread switching of these these features so zero value that is returned for MSR_IA32_DEBUGCTLMSR has no effect. These registers are used

[PATCH AUTOSEL 4.20 020/304] scsi: mpt3sas: Call sas_remove_host before removing the target devices

2019-01-28 Thread Sasha Levin
From: Suganath Prabu [ Upstream commit dc730212e8a378763cb182b889f90c8101331332 ] Call sas_remove_host() before removing the target devices in the driver's .remove() callback function(i.e. during driver unload time). So that driver can provide a way to allow SYNC CACHE, START STOP unit

Re: [PATCH 0/2] mm, memory_hotplug: fix uninitialized pages fallouts.

2019-01-28 Thread Andrew Morton
On Mon, 28 Jan 2019 15:45:04 +0100 Michal Hocko wrote: > Mikhail has posted fixes for the two bugs quite some time ago [1]. I > have pushed back on those fixes because I believed that it is much > better to plug the problem at the initialization time rather than play > whack-a-mole all over the

[PATCH AUTOSEL 4.20 019/304] scsi: lpfc: Correct LCB RJT handling

2019-01-28 Thread Sasha Levin
From: James Smart [ Upstream commit b114d9009d386276bfc3352289fc235781ae3353 ] When LCB's are rejected, if beaconing was already in progress, the Reason Code Explanation was not being set. Should have been set to command in progress. Signed-off-by: Dick Kennedy Signed-off-by: James Smart

[PATCH AUTOSEL 4.20 023/304] ARM: 8808/1: kexec:offline panic_smp_self_stop CPU

2019-01-28 Thread Sasha Levin
From: Yufen Wang [ Upstream commit 82c08c3e7f171aa7f579b231d0abbc1d62e91974 ] In case panic() and panic() called at the same time on different CPUS. For example: CPU 0: panic() __crash_kexec machine_crash_shutdown crash_smp_send_stop machine_kexec

[PATCH AUTOSEL 4.20 033/304] drm/vc4: ->x_scaling[1] should never be set to VC4_SCALING_NONE

2019-01-28 Thread Sasha Levin
From: Boris Brezillon [ Upstream commit 0560054da5673b25d56bea6c57c8d069673af73b ] For the YUV conversion to work properly, ->x_scaling[1] should never be set to VC4_SCALING_NONE, but vc4_get_scaling_mode() might return VC4_SCALING_NONE if the horizontal scaling ratio exactly matches the

[PATCH AUTOSEL 4.20 027/304] powerpc/pseries: add of_node_put() in dlpar_detach_node()

2019-01-28 Thread Sasha Levin
From: Frank Rowand [ Upstream commit 5b3f5c408d8cc59b87e47f1ab9803dbd006e4a91 ] The previous commit, "of: overlay: add missing of_node_get() in __of_attach_node_sysfs" added a missing of_node_get() to __of_attach_node_sysfs(). This results in a refcount imbalance for nodes attached with

[PATCH AUTOSEL 4.20 028/304] srcu: Prevent __call_srcu() counter wrap with read-side critical section

2019-01-28 Thread Sasha Levin
From: "Paul E. McKenney" [ Upstream commit 0607ba8403c4cdb253f8c5200ecf654dfb7790cc ] Ever since cdf7abc4610a ("srcu: Allow use of Tiny/Tree SRCU from both process and interrupt context"), it has been permissible to use SRCU read-side critical sections in interrupt context. This allows

[PATCH AUTOSEL 4.20 025/304] dlm: Don't swamp the CPU with callbacks queued during recovery

2019-01-28 Thread Sasha Levin
From: Bob Peterson [ Upstream commit 216f0efd19b9cc32207934fd1b87a45f2c4c593e ] Before this patch, recovery would cause all callbacks to be delayed, put on a queue, and afterward they were all queued to the callback work queue. This patch does the same thing, but occasionally takes a break

[PATCH AUTOSEL 4.20 026/304] x86/PCI: Fix Broadcom CNB20LE unintended sign extension (redux)

2019-01-28 Thread Sasha Levin
From: Colin Ian King [ Upstream commit 53bb565fc5439f2c8c57a786feea5946804aa3e9 ] In the expression "word1 << 16", word1 starts as u16, but is promoted to a signed int, then sign-extended to resource_size_t, which is probably not what was intended. Cast to resource_size_t to avoid the sign

[PATCH AUTOSEL 4.20 036/304] ptp: check gettime64 return code in PTP_SYS_OFFSET ioctl

2019-01-28 Thread Sasha Levin
From: Miroslav Lichvar [ Upstream commit 83d0bdc7390b890905634186baaa294475cd6a06 ] If a gettime64 call fails, return the error and avoid copying data back to user. Cc: Richard Cochran Cc: Jacob Keller Signed-off-by: Miroslav Lichvar Signed-off-by: David S. Miller Signed-off-by: Sasha

[PATCH AUTOSEL 4.20 032/304] crypto: aes_ti - disable interrupts while accessing S-box

2019-01-28 Thread Sasha Levin
From: Eric Biggers [ Upstream commit 0a6a40c2a8c184a2fb467efacfb1cd338d719e0b ] In the "aes-fixed-time" AES implementation, disable interrupts while accessing the S-box, in order to make cache-timing attacks more difficult. Previously it was possible for the CPU to be interrupted while the

[PATCH AUTOSEL 4.20 042/304] staging:iio:ad2s90: Make probe handle spi_setup failure

2019-01-28 Thread Sasha Levin
From: Matheus Tavares [ Upstream commit b3a3eafeef769c6982e15f83631dcbf8d1794efb ] Previously, ad2s90_probe ignored the return code from spi_setup, not handling its possible failure. This patch makes ad2s90_probe check if the code is an error code and, if so, do the following: - Call dev_err

[PATCH AUTOSEL 4.20 043/304] fpga: altera-cvp: Fix registration for CvP incapable devices

2019-01-28 Thread Sasha Levin
From: Andreas Puhm [ Upstream commit 68f60538daa4bc3da5d0764d46f391916fba20fd ] The probe function needs to verify the CvP enable bit in order to properly determine if FPGA Manager functionality can be safely enabled. Fixes: 34d1dc17ce97 ("fpga manager: Add Altera CvP driver") Signed-off-by:

[PATCH AUTOSEL 4.20 038/304] dpaa2-ptp: defer probe when portal allocation failed

2019-01-28 Thread Sasha Levin
From: Ioana Ciornei [ Upstream commit 5500598abbfb5b46201b9768bd9ea873a5eeaece ] The fsl_mc_portal_allocate can fail when the requested MC portals are not yet probed by the fsl_mc_allocator. In this situation, the driver should defer the probe. Signed-off-by: Ioana Ciornei Signed-off-by:

[PATCH AUTOSEL 4.20 050/304] scsi: hisi_sas: change the time of SAS SSP connection

2019-01-28 Thread Sasha Levin
From: Xiang Chen [ Upstream commit 15bc43f31a074076f114e0b87931e3b220b7bff1 ] Currently the time of SAS SSP connection is 1ms, which means the link connection will fail if no IO response after this period. For some disks handling large IO (such as 512k), 1ms is not enough, so change it to 5ms.

[PATCH AUTOSEL 4.20 041/304] iwlwifi: fw: do not set sgi bits for HE connection

2019-01-28 Thread Sasha Levin
From: Naftali Goldstein [ Upstream commit 5c2dbebb446539eb9640bf59a02756d6e7f1fc53 ] If the association supports HE, HT/VHT rates will never be used for Tx and therefore there's no need to set the sgi-per-channel-width-support bits, so don't set them in this case. Fixes: 110b32f065f3

[PATCH AUTOSEL 4.20 047/304] platform/chrome: don't report EC_MKBP_EVENT_SENSOR_FIFO as wakeup

2019-01-28 Thread Sasha Levin
From: Brian Norris [ Upstream commit 6ad16b78a039b45294b1ad5d69c14ac57b2fe706 ] EC_MKBP_EVENT_SENSOR_FIFO events can be triggered for a variety of reasons, and there are very few cases in which they should be treated as wakeup interrupts (particularly, when a certain MOTIONSENSE_MODULE_FLAG_*

[PATCH AUTOSEL 4.20 044/304] Tools: hv: kvp: Fix a warning of buffer overflow with gcc 8.0.1

2019-01-28 Thread Sasha Levin
From: Dexuan Cui [ Upstream commit 4fcba7802c3e15a6e56e255871d6c72f829b9dd8 ] The patch fixes: hv_kvp_daemon.c: In function 'kvp_set_ip_info': hv_kvp_daemon.c:1305:2: note: 'snprintf' output between 41 and 4136 bytes into a destination of size 4096 The "(unsigned int)str_len" is to avoid:

Re: [PATCH 2/2] mm: Consider subtrees in memory.events

2019-01-28 Thread Tejun Heo
Hello, Michal. On Mon, Jan 28, 2019 at 06:05:26PM +0100, Michal Hocko wrote: > Yeah, that is quite clear. But it also assumes that the hierarchy is > pretty stable but cgroups might go away at any time. I am not saying > that the aggregated events are not useful I am just saying that it is >

[PATCH AUTOSEL 4.20 046/304] vbox: fix link error with 'gcc -Og'

2019-01-28 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit b8ae30a7020d61e0504529adf45abb08fa5c59f5 ] With the new CONFIG_CC_OPTIMIZE_FOR_DEBUGGING option, we get a link error in the vboxguest driver, when that fails to optimize out the call to the compat handler: drivers/virt/vboxguest/vboxguest_core.o: In

[PATCH AUTOSEL 4.20 048/304] i40e: suppress bogus error message

2019-01-28 Thread Sasha Levin
From: Mitch Williams [ Upstream commit 7cd8eb0861981ad212ce4242a1870c4b5831ceff ] The i40e driver complains about unprivileged VFs trying to configure promiscuous mode each time a VF reset occurs. This isn't the fault of the poor VF driver - the PF driver itself is making the request. To fix

[PATCH AUTOSEL 4.20 049/304] i40e: prevent overlapping tx_timeout recover

2019-01-28 Thread Sasha Levin
From: Alan Brady [ Upstream commit d5585b7b6846a6d0f9517afe57be3843150719da ] If a TX hang occurs, we attempt to recover by incrementally resetting. If we're starved for CPU time, it's possible the reset doesn't actually complete (or even fire) before another tx_timeout fires causing us to fly

[PATCH AUTOSEL 4.20 051/304] staging: iio: ad7780: update voltage on read

2019-01-28 Thread Sasha Levin
From: Renato Lui Geh [ Upstream commit 336650c785b62c3bea7c8cf6061c933a90241f67 ] The ad7780 driver previously did not read the correct device output, as it read an outdated value set at initialization. It now updates its voltage on read. Signed-off-by: Renato Lui Geh Acked-by: Alexandru

[PATCH AUTOSEL 4.20 053/304] drm/rockchip: fix for mailbox read size

2019-01-28 Thread Sasha Levin
From: Damian Kos [ Upstream commit fa68d4f8476bea4cdf441062b614b41bb85ef1da ] Some of the functions (like cdn_dp_dpcd_read, cdn_dp_get_edid_block) allow to read 64KiB, but the cdn_dp_mailbox_read_receive, that is used by them, can read only up to 255 bytes at once. Normally, it's not a big

Re: [PATCH v9 1/3] Bluetooth: hci_qca: use wait_until_sent() for power pulses

2019-01-28 Thread Matthias Kaehlcke
On Mon, Jan 28, 2019 at 07:19:56PM +0530, Balakrishna Godavarthi wrote: > Hi Matthias, > > On 2019-01-25 06:44, Matthias Kaehlcke wrote: > > On Thu, Jan 24, 2019 at 05:38:06PM +0530, Balakrishna Godavarthi wrote: > > > wcn3990 requires a power pulse to turn ON/OFF along with > > > regulators.

[PATCH AUTOSEL 4.20 057/304] bpf: libbpf: retry map creation without the name

2019-01-28 Thread Sasha Levin
From: Stanislav Fomichev [ Upstream commit 23499442c319412aa8e54e7a939e2eb531bdd77d ] Since commit 88cda1c9da02 ("bpf: libbpf: Provide basic API support to specify BPF obj name"), libbpf unconditionally sets bpf_attr->name for maps. Pre v4.14 kernels don't know about map names and return an

[PATCH AUTOSEL 4.20 065/304] media: mtk-vcodec: Release device nodes in mtk_vcodec_init_enc_pm()

2019-01-28 Thread Sasha Levin
From: Alexey Khoroshilov [ Upstream commit 8ea0f2ba0fa3f91ea1b8d823a54b042026ada6b3 ] of_parse_phandle() returns the device node with refcount incremented. There are two nodes that are used temporary in mtk_vcodec_init_enc_pm(), but their refcounts are not decremented. The patch adds one

Re: [PATCH 04/13] dt-bindings: mailbox: qcom: Add clock-name optional property

2019-01-28 Thread Jorge Ramirez
On 1/28/19 17:57, Jorge Ramirez wrote: > On 1/17/19 07:44, Bjorn Andersson wrote: >> On Mon 17 Dec 01:46 PST 2018, Jorge Ramirez-Ortiz wrote: >> >>> When the APCS clock is registered (platform dependent), it retrieves >>> its parent names from hardcoded values in the driver. >>> >>> The following

[PATCH AUTOSEL 4.20 063/304] media: rc: ensure close() is called on rc_unregister_device

2019-01-28 Thread Sasha Levin
From: Sean Young [ Upstream commit 8e782fcf78275f505194e767c515202d4fd274bc ] If userspace has an open file descriptor on the rc input device or lirc device when rc_unregister_device() is called, then the rc close() is never called. This ensures that the receiver is turned off on the

[PATCH AUTOSEL 4.20 064/304] media: video-i2c: avoid accessing released memory area when removing driver

2019-01-28 Thread Sasha Levin
From: Akinobu Mita [ Upstream commit c764da98a600a4b068d25c77164f092f159cecec ] The video device release() callback for video-i2c driver frees the whole struct video_i2c_data. If there is no user left for the video device when video_unregister_device() is called, the release callback is

[PATCH AUTOSEL 4.20 075/304] clk: meson: meson8b: mark the CPU clock as CLK_IS_CRITICAL

2019-01-28 Thread Sasha Levin
From: Martin Blumenstingl [ Upstream commit 0dad1ec65bc30a549aba38d34a727309bbf41bc8 ] We don't want the common clock framework to disable the "cpu_clk" if it's not used by any device. The cpufreq-dt driver does not enable the CPU clocks. However, even if it would we would still want the CPU

[PATCH AUTOSEL 4.20 074/304] clk: meson: meson8b: fix the width of the cpu_scale_div clock

2019-01-28 Thread Sasha Levin
From: Martin Blumenstingl [ Upstream commit a8662eadd1032018f31e37deda811790b2326662 ] According to the public S805 datasheet HHI_SYS_CPU_CLK_CNTL1[29:20] is the register for the CPU scale_div clock. This matches the code in Amlogic's 3.10 GPL kernel sources: N =

[PATCH AUTOSEL 4.20 073/304] clk: meson: meson8b: do not use cpu_div3 for cpu_scale_out_sel

2019-01-28 Thread Sasha Levin
From: Martin Blumenstingl [ Upstream commit a5ac1ead32c9aac285f6436e09b4f6111996e9b8 ] The cpu_div3 clock (cpu_in divided by 3) generates a signal with a duty cycle of 33%. The CPU clock however requires a clock signal with a duty cycle of 50% to run stable. cpu_div3 was observed to be

[PATCH AUTOSEL 4.20 077/304] dmaengine: xilinx_dma: Remove __aligned attribute on zynqmp_dma_desc_ll

2019-01-28 Thread Sasha Levin
From: Nathan Chancellor [ Upstream commit aeaebcc17cdf37065d2693865eeb1ff1c7dc5bf3 ] Clang warns: drivers/dma/xilinx/zynqmp_dma.c:166:4: warning: attribute 'aligned' is ignored, place it after "struct" to apply attribute to type declaration [-Wignored-attributes] }; __aligned(64) ^

[PATCH AUTOSEL 4.20 080/304] iio: adc: meson-saradc: fix internal clock names

2019-01-28 Thread Sasha Levin
From: Martin Blumenstingl [ Upstream commit 50314f98b0ac468218e7c9af8c99f215a35436df ] Before this patch we are registering the internal clocks (for example on Meson8b, where the SAR ADC IP block implements the divider and gate clocks) with the following names: -

[PATCH AUTOSEL 4.20 087/304] f2fs: avoid build warn of fall_through

2019-01-28 Thread Sasha Levin
From: Jaegeuk Kim [ Upstream commit f5d5510e7389fa264337fb524346bac9eb93adc8 ] After merging the f2fs tree, today's linux-next build (x86_64_allmodconfig) produced this warning: In file included from fs/f2fs/dir.c:11: fs/f2fs/f2fs.h: In function '__mark_inode_dirty_flag':

[PATCH AUTOSEL 4.20 085/304] f2fs: avoid GC causing encrypted file corrupted

2019-01-28 Thread Sasha Levin
From: Yunlong Song [ Upstream commit 9bf1a3f73927492c8be127b642197125e9d52be8 ] The encrypted file may be corrupted by GC in following case: Time 1: | segment 1 blkaddr = A | GC -> | segment 2 blkaddr = B | Encrypted block 1 is moved from blkaddr A of segment 1 to blkaddr B of segment 2,

[PATCH AUTOSEL 4.20 089/304] f2fs: fix wrong return value of f2fs_acl_create

2019-01-28 Thread Sasha Levin
From: Tiezhu Yang [ Upstream commit f6176473a0c7472380eef72ebeb330cf9485bf0a ] When call f2fs_acl_create_masq() failed, the caller f2fs_acl_create() should return -EIO instead of -ENOMEM, this patch makes it consistent with posix_acl_create() which has been fixed in commit beaf226b863a

[PATCH AUTOSEL 4.20 091/304] arm64: io: Ensure calls to delay routines are ordered against prior readX()

2019-01-28 Thread Sasha Levin
From: Will Deacon [ Upstream commit 6460d32014717686d3b7963595950ba2c6d1bb5e ] A relatively standard idiom for ensuring that a pair of MMIO writes to a device arrive at that device with a specified minimum delay between them is as follows: writel_relaxed(42, dev_base + CTL1);

[PATCH AUTOSEL 4.20 110/304] ARM: mmp/mmp2: dt: enable the clock

2019-01-28 Thread Sasha Levin
From: Lubomir Rintel [ Upstream commit f36797ee43802b367e59f0f9a9805304a4ff0c98 ] The device-tree booted MMP2 needs to enable the timer clock, otherwise it would stop ticking when the boot finishes. It can also use the clock rate from the clk, the non-DT boards need to keep using the hardcoded

[PATCH AUTOSEL 4.20 100/304] Thermal: do not clear passive state during system sleep

2019-01-28 Thread Sasha Levin
From: Wei Wang [ Upstream commit 964f4843a455d2ffb199512b08be8d5f077c4cac ] commit ff140fea847e ("Thermal: handle thermal zone device properly during system sleep") added PM hook to call thermal zone reset during sleep. However resetting thermal zone will also clear the passive state and thus

Re: [PATCH] lib/div64: off by one in shift

2019-01-28 Thread Andrew Morton
On Mon, 28 Jan 2019 15:49:04 +0100 Stanislaw Gruszka wrote: > fls counts bits starting from 1 to 32 (returns 0 for zero argument). > If we add 1 we shift right one bit more and loose precision from > divisor, what cause function incorect results with some numbers. > > Corrected code was tested

[PATCH AUTOSEL 4.20 099/304] arm64: io: Ensure value passed to __iormb() is held in a 64-bit register

2019-01-28 Thread Sasha Levin
From: Will Deacon [ Upstream commit 1b57ec8c75279b873639eb44a215479236f93481 ] As of commit 6460d3201471 ("arm64: io: Ensure calls to delay routines are ordered against prior readX()"), MMIO reads smaller than 64 bits fail to compile under clang because we end up mixing 32-bit and 64-bit

[PATCH AUTOSEL 4.20 096/304] drm: Clear state->acquire_ctx before leaving drm_atomic_helper_commit_duplicated_state()

2019-01-28 Thread Sasha Levin
From: Sean Paul [ Upstream commit aa394b0dd68cb00c483e151dcd84713d4d517ed1 ] drm_atomic_helper_commit_duplicated_state() sets state->acquire_ctx to the context given in the argument and leaves it in state after it quits. The lifetime of state and context are not guaranteed to be the same, so we

[PATCH AUTOSEL 4.20 094/304] soc: bcm: brcmstb: Don't leak device tree node reference

2019-01-28 Thread Sasha Levin
From: Yangtao Li [ Upstream commit 1861a7f07e02292830a1ca256328d370deefea30 ] of_find_node_by_path() acquires a reference to the node returned by it and that reference needs to be dropped by its caller. soc_is_brcmstb() doesn't do that, so fix it. [treding: slightly rewrite to avoid inline

[PATCH AUTOSEL 4.20 095/304] nfsd4: fix crash on writing v4_end_grace before nfsd startup

2019-01-28 Thread Sasha Levin
From: "J. Bruce Fields" [ Upstream commit 62a063b8e7d1db684db3f207261a466fa3194e72 ] Anatoly Trosinenko reports that this: 1) Checkout fresh master Linux branch (tested with commit e195ca6cb) 2) Copy x84_64-config-4.14 to .config, then enable NFS server v4 and build 3) From `kvm-xfstests

[PATCH AUTOSEL 4.20 107/304] drm/v3d: Fix prime imports of buffers from other drivers.

2019-01-28 Thread Sasha Levin
From: Eric Anholt [ Upstream commit 62d1a752874962f072de8a779e960fcd2ab4847b ] v3d_bo_get_pages() checks this to decide to map the imported buffer instead of the backing shmem file. The caller was about to set this value anyway, and there's no error path in between. Ideally we wouldn't even

[PATCH AUTOSEL 4.20 116/304] platform/x86: Fix config space access for intel_atomisp2_pm

2019-01-28 Thread Sasha Levin
From: Ville Syrjälä [ Upstream commit 6a31061833a52a79c99221b6251db08cf377470e ] We lose even config space access when we power gate the ISP via the PUNIT. That makes lspci & co. produce gibberish. To fix that let's try to implement actual runtime pm hooks and inform the pci core that the

[PATCH AUTOSEL 4.20 127/304] mac80211: fix deauth TX when we disconnect

2019-01-28 Thread Sasha Levin
From: Emmanuel Grumbach [ Upstream commit f6c7f03f69f7422bc237bc79599e152d390b74e0 ] The iTXQs stop/wake queue mechanism involves a whole bunch of locks and this is probably why the call to ieee80211_wake_txqs is deferred to a tasklet when called from __ieee80211_wake_queue. Another advantage

<    1   2   3   4   5   6   7   8   9   10   >