Re: [PATCH v1 05/10] powerpc/mm: Do early ioremaps from top to bottom on PPC64 too.

2019-08-13 Thread Christoph Hellwig
On Tue, Aug 13, 2019 at 08:11:38PM +, Christophe Leroy wrote: > Until vmalloc system is up and running, ioremap basically > allocates addresses at the border of the IOREMAP area. Note that while a few other architectures have a magic hack like powerpc to make ioremap work before vmalloc, the

RE: [PATCH v2 0/2] Simplify mtty driver and mdev core

2019-08-13 Thread Parav Pandit
> -Original Message- > From: Alex Williamson > Sent: Tuesday, August 13, 2019 10:42 PM > To: Parav Pandit > Cc: Kirti Wankhede ; k...@vger.kernel.org; linux- > ker...@vger.kernel.org; coh...@redhat.com; c...@nvidia.com > Subject: Re: [PATCH v2 0/2] Simplify mtty driver and mdev core >

Re: [PATCH v1 10/10] powerpc/mm: refactor ioremap_range() and use ioremap_page_range()

2019-08-13 Thread Christoph Hellwig
Somehow this series is missing a cover letter. While you are touching all this "fun" can you also look into killing __ioremap? It seems to be a weird non-standard version of ioremap_prot (probably predating ioremap_prot) that is missing a few lines of code setting attributes that might not even

Re: [alsa-devel] [PATCH] soundwire: Don't build sound.o without CONFIG_ACPI

2019-08-13 Thread Vinod Koul
On 13-08-19, 21:24, Nathan Chancellor wrote: > On Wed, Aug 14, 2019 at 09:29:47AM +0530, Vinod Koul wrote: > > On 13-08-19, 09:22, Pierre-Louis Bossart wrote: > > > On 8/13/19 1:10 AM, Nathan Chancellor wrote: > > > I am fine with the change, but we might as well rename the file > > >

Re: [Linux-kernel-mentees] [PATCH v2 0/3] PCI: pci-sysfs.c cleanup

2019-08-13 Thread Bjorn Helgaas
[+cc Greg] On Tue, Aug 13, 2019 at 02:45:10PM -0600, Kelsey Skunberg wrote: > This series is designed to clean up device attributes and permissions in > pci-sysfs.c. Then move the sysfs SR-IOV functions from pci-sysfs.c to > iov.c for better organization. Patches build off of each other. > >

Re: [Linux-kernel-mentees] [PATCH v2 2/3] PCI: sysfs: Change permissions from symbolic to octal

2019-08-13 Thread Bjorn Helgaas
[+cc Bodong, Don, Greg for permission question] On Tue, Aug 13, 2019 at 02:45:12PM -0600, Kelsey Skunberg wrote: > Symbolic permissions such as "(S_IWUSR | S_IWGRP)" are not > preferred and octal permissions should be used instead. Change all > symbolic permissions to octal permissions. > >

Re: [PATCH v1 02/10] powerpc/mm: rework io-workaround invocation.

2019-08-13 Thread Christoph Hellwig
On Tue, Aug 13, 2019 at 08:11:34PM +, Christophe Leroy wrote: > ppc_md.ioremap() is only used for I/O workaround on CELL platform, > so indirect function call can be avoided. > > This patch reworks the io-workaround and ioremap() functions to > use static keys for the activation of

Re: [PATCH] powerpc/32s: fix boot failure with DEBUG_PAGEALLOC without KASAN.

2019-08-13 Thread Christoph Hellwig
On Wed, Aug 14, 2019 at 05:28:35AM +, Christophe Leroy wrote: > When KASAN is selected, the definitive hash table has to be > set up later, but there is already an early temporary one. > > When KASAN is not selected, there is no early hash table, > so the setup of the definitive hash table

RE: [PATCH v2 0/2] Simplify mtty driver and mdev core

2019-08-13 Thread Parav Pandit
Hi Christoph, Greg, > -Original Message- > From: Greg Kroah-Hartman > Sent: Tuesday, August 13, 2019 11:10 PM > To: Christoph Hellwig ; Parav Pandit > > Cc: Kirti Wankhede ; Alex Williamson > ; k...@vger.kernel.org; linux- > ker...@vger.kernel.org; coh...@redhat.com; c...@nvidia.com >

[PATCH] powerpc/32s: fix boot failure with DEBUG_PAGEALLOC without KASAN.

2019-08-13 Thread Christophe Leroy
When KASAN is selected, the definitive hash table has to be set up later, but there is already an early temporary one. When KASAN is not selected, there is no early hash table, so the setup of the definitive hash table cannot be delayed. Reported-by: Jonathan Neuschafer Fixes: 72f208c6a8f7

RECEIVE AND KEEP THIS MONEY FOR ME IN YOUR BANK ACCOUNT,REPLY TO fta447...@gmail.com FOR DETAILS

2019-08-13 Thread RECEIVE AND SECURE THIS MONEY FOR ME

Re: [PATCH v1 08/10] powerpc/mm: move __ioremap_at() and __iounmap_at() into ioremap.c

2019-08-13 Thread Christoph Hellwig
> +/** > + * __iounmap_from - Low level function to tear down the page tables > + * for an IO mapping. This is used for mappings that > + * are manipulated manually, like partial unmapping of > + * PCI IOs or ISA space. > + */ > +void

[rcu:dev.2019.08.12a 35/61] ERROR: "tick_nohz_full_running" [kernel/rcu/rcutorture.ko] undefined!

2019-08-13 Thread kbuild test robot
tree: https://kernel.googlesource.com/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2019.08.12a head: 8d14501a5112fd15204344f54985b2b4a5c4c5f3 commit: 76a2095343cd23efe62ca248c098dc351c74aed5 [35/61] rcutorture: Force on tick for readers and callback flooders config: x86_64-rhel

Re: [PATCH v1 01/10] powerpc/mm: drop ppc_md.iounmap()

2019-08-13 Thread Christoph Hellwig
On Tue, Aug 13, 2019 at 08:11:33PM +, Christophe Leroy wrote: > ppc_md.iounmap() is never set, drop it. > > Signed-off-by: Christophe Leroy Hah, I was just going to send the same patch as part of an tree-wide ioremap related series.. Reviewed-by: Christoph Hellwig

Re: [PATCH 3/3] mm/mmap.c: extract __vma_unlink_list as counter part for __vma_link_list

2019-08-13 Thread Christoph Hellwig
Btw, is there any good reason we don't use a list_head for vma linkage?

GREETING BELOVED ONE,

2019-08-13 Thread Mrs. Aisha
Dear Friend, I came across your e-mail contact prior a private search whilst in need of your partnership for investment assistance in your country. I am opportune to use this medium to exhibit my legal intentions towards investing to your country under your management. I am fully convinced that

[PATCH] liquidio: add cleanup in octeon_setup_iq()

2019-08-13 Thread Wenwen Wang
If oct->fn_list.enable_io_queues() fails, no cleanup is executed, leading to memory/resource leaks. To fix this issue, invoke octeon_delete_instr_queue() before returning from the function. Signed-off-by: Wenwen Wang --- drivers/net/ethernet/cavium/liquidio/request_manager.c | 4 +++- 1 file

Re: [PATCH 5/5] ARM: dts: sunxi: Add missing watchdog interrupts

2019-08-13 Thread Chen-Yu Tsai
On Tue, Aug 13, 2019 at 8:48 PM Maxime Ripard wrote: > > From: Maxime Ripard > > The watchdog has an interrupt on all our SoCs, but it wasn't always listed. > Add it to the devicetree where it's missing. > > Signed-off-by: Maxime Ripard Acked-by: Chen-Yu Tsai On a separate note, the A31 has

Re: [PATCH 03/15] riscv: refactor the IPI code

2019-08-13 Thread Paul Walmsley
On Tue, 13 Aug 2019, Christoph Hellwig wrote: > This prepare for adding native non-SBI IPI code. > > Signed-off-by: Christoph Hellwig Thanks, queued for v5.4-rc1. - Paul

Re: [PATCH 4/5] ARM: dts: sun8i: a83t: Remove the watchdog clock

2019-08-13 Thread Chen-Yu Tsai
On Tue, Aug 13, 2019 at 8:47 PM Maxime Ripard wrote: > > From: Maxime Ripard > > The watchdog binding doesn't define a clock, and it indeed looks like > there's no explicit clock feeding it. The diagram on page 133 of the manual shows OSC24M / 750 feeding the watchdog. Other manuals, such as

Re: [PATCH 13/15] riscv: clear the instruction cache and all registers when booting

2019-08-13 Thread Christoph Hellwig
On Wed, Aug 14, 2019 at 09:00:14AM +0800, Alan Kao wrote: > But it doesn't really mean that the running system has an FPU given CONFIG_FPU > enabled. Normally the existence of an FPU is checked in riscv_fill_hwcap by > searching device tree, where the code looks like > > > bool has_fpu = false;

Re: [PATCH v4,1/2] PCI: hv: Detect and fix Hyper-V PCI domain number collision

2019-08-13 Thread Bjorn Helgaas
Thanks for splitting these; I think that makes more sense. On Wed, Aug 14, 2019 at 12:38:54AM +, Haiyang Zhang wrote: > Currently in Azure cloud, for passthrough devices including GPU, the host > sets the device instance ID's bytes 8 - 15 to a value derived from the host > HWID, which is the

Re: [alsa-devel] [PATCH 06/17] soundwire: cadence_master: use firmware defaults for frame shape

2019-08-13 Thread Vinod Koul
On 06-08-19, 18:06, Cezary Rojewski wrote: > On 2019-08-06 17:36, Pierre-Louis Bossart wrote: > > > > > > On 8/6/19 10:27 AM, Cezary Rojewski wrote: > > > On 2019-08-06 02:55, Pierre-Louis Bossart wrote: > > > > diff --git a/drivers/soundwire/cadence_master.c > > > >

Re: [alsa-devel] [PATCH] soundwire: Don't build sound.o without CONFIG_ACPI

2019-08-13 Thread Nathan Chancellor
On Wed, Aug 14, 2019 at 09:29:47AM +0530, Vinod Koul wrote: > On 13-08-19, 09:22, Pierre-Louis Bossart wrote: > > On 8/13/19 1:10 AM, Nathan Chancellor wrote: > > > clang warns when CONFIG_ACPI is unset: > > > > > > ../drivers/soundwire/slave.c:16:12: warning: unused function > > >

[PATCH] ARM: dts: sunxi: Add mdio bus sub-node to GMAC

2019-08-13 Thread Chen-Yu Tsai
From: Chen-Yu Tsai The DWMAC binding never supported having the Ethernet PHY node as a direct child to the controller, nor did it support the "phy" property as a way to specify which Ethernet PHY to use. What seemed to work was simply the implementation ignoring the "phy" property and instead

Re: [alsa-devel] [PATCH v2 3/5] ASoC: core: add support to snd_soc_dai_get_sdw_stream()

2019-08-13 Thread Vinod Koul
On 13-08-19, 20:58, Mark Brown wrote: > On Tue, Aug 13, 2019 at 02:38:53PM -0500, Pierre-Louis Bossart wrote: > > > Indeed. I don't have a full understanding of that part to be honest, nor why > > we need something SoundWire-specific. We already abused the set_tdm_slot API > > to store an HDaudio

Re: [PATCH v2 1/5] soundwire: Add compute_params callback

2019-08-13 Thread Vinod Koul
On 13-08-19, 14:08, Pierre-Louis Bossart wrote: > On 8/13/19 1:17 PM, Srinivas Kandagatla wrote: > > > > > > On 13/08/2019 15:34, Pierre-Louis Bossart wrote: > > > On 8/13/19 3:35 AM, Srinivas Kandagatla wrote: > > > > From: Vinod Koul > > > > > > > > This callback allows masters to compute

Re: [alsa-devel] [PATCH] soundwire: Don't build sound.o without CONFIG_ACPI

2019-08-13 Thread Vinod Koul
On 13-08-19, 09:22, Pierre-Louis Bossart wrote: > On 8/13/19 1:10 AM, Nathan Chancellor wrote: > > clang warns when CONFIG_ACPI is unset: > > > > ../drivers/soundwire/slave.c:16:12: warning: unused function > > 'sdw_slave_add' [-Wunused-function] > > static int sdw_slave_add(struct sdw_bus *bus,

[PATCH] x86/apic: reset LDR in clear_local_APIC

2019-08-13 Thread Bandan Das
On a 32 bit RHEL6 guest with greater than 8 cpus, the kdump kernel hangs when calibrating apic. This happens because when apic initializes bigsmp, it also initializes LDR even though it probably wouldn't be used. When booting into kdump, KVM apic incorrectly reads the stale LDR values from the

Re: [PATCH 1/2] riscv: Correct the initialized flow of FP register

2019-08-13 Thread Anup Patel
On Wed, Aug 14, 2019 at 7:15 AM Vincent Chen wrote: > > On Thu, Aug 8, 2019 at 11:50 PM Paul Walmsley > wrote: > > > > On Thu, 8 Aug 2019, Anup Patel wrote: > > > > > On Thu, Aug 8, 2019 at 1:30 PM Vincent Chen > > > wrote: > > > > > > > > +static inline void fstate_off(struct task_struct

Re: [PATCH POC] printk_ringbuffer: Alternative implementation of lockless printk ringbuffer

2019-08-13 Thread John Ogness
Hi Petr, FWIW, I hacked a patch against my RFCv4[0] series to implement your POC. Some parts of the patch are not particularly pretty, as I had to "mold" it to fit numlist usage. And I was extreme with heavy memory barrier usage to save time. But it boots, runs, and passes all my printk interface

[PATCH] nds32: Fix typo in Kconfig.cpu

2019-08-13 Thread Masanari Iida
This patch fixes some spelling typo in Kconfig.cpu Signed-off-by: Masanari Iida --- arch/nds32/Kconfig.cpu | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/nds32/Kconfig.cpu b/arch/nds32/Kconfig.cpu index f80a4ab63da2..f88a12fdf0f3 100644 ---

Re: [PATCH RFC v1 1/2] rcu/tree: Add basic support for kfree_rcu batching

2019-08-13 Thread Byungchul Park
On Tue, Aug 13, 2019 at 07:53:49PM -0700, Paul E. McKenney wrote: > On Wed, Aug 14, 2019 at 09:11:03AM +0900, Byungchul Park wrote: > > On Tue, Aug 13, 2019 at 08:41:45AM -0700, Paul E. McKenney wrote: > > > On Tue, Aug 13, 2019 at 02:29:54PM +0900, Byungchul Park wrote: > > > > On Mon, Aug 12,

Re: [PATCH 1/2] riscv: Add memmove string operation.

2019-08-13 Thread Nick Hu
On Wed, Aug 14, 2019 at 10:22:15AM +0800, Paul Walmsley wrote: > On Tue, 13 Aug 2019, Palmer Dabbelt wrote: > > > On Mon, 12 Aug 2019 08:04:46 PDT (-0700), Christoph Hellwig wrote: > > > On Wed, Aug 07, 2019 at 03:19:14PM +0800, Nick Hu wrote: > > > > There are some features which need this

[PATCH] arm64: dts: qcom: qcs404-evb: Mark WCSS clocks protected

2019-08-13 Thread Bjorn Andersson
'7d0c76bdf227 ("clk: qcom: Add WCSS gcc clock control for QCS404")' introduces two new clocks to gcc. These are not used before clk_disable_unused() and as such the clock framework tries to disable them. But on the EVB these registers are only accessible through TrustZone, so these clocks must be

Re: [PATCH v5 08/18] thermal: sun8i: support mod clocks

2019-08-13 Thread Vasily Khoruzhick
On Tue, Aug 13, 2019 at 1:06 PM Ondřej Jirman wrote: > > On Mon, Aug 12, 2019 at 04:54:15PM -0700, Vasily Khoruzhick wrote: > > On Mon, Aug 12, 2019 at 4:46 PM Frank Lee wrote: > > > > > > HI Vasily, > > > > > > On Sat, Aug 10, 2019 at 2:17 PM Vasily Khoruzhick > > > wrote: > > > > > > > > On

Re: [PATCH RFC v1 1/2] rcu/tree: Add basic support for kfree_rcu batching

2019-08-13 Thread Paul E. McKenney
On Wed, Aug 14, 2019 at 09:11:03AM +0900, Byungchul Park wrote: > On Tue, Aug 13, 2019 at 08:41:45AM -0700, Paul E. McKenney wrote: > > On Tue, Aug 13, 2019 at 02:29:54PM +0900, Byungchul Park wrote: > > > On Mon, Aug 12, 2019 at 09:12:34AM -0400, Joel Fernandes wrote: > > > > On Mon, Aug 12, 2019

Re: [PATCH V38 15/29] acpi: Ignore acpi_rsdp kernel param when the kernel has been locked down

2019-08-13 Thread Dave Young
On 08/07/19 at 05:07pm, Matthew Garrett wrote: > From: Josh Boyer > > This option allows userspace to pass the RSDP address to the kernel, which > makes it possible for a user to modify the workings of hardware. Reject > the option when the kernel is locked down. This requires some reworking >

Re: [PATCH v2] net/mlx4_en: fix a memory leak bug

2019-08-13 Thread Jakub Kicinski
On Mon, 12 Aug 2019 14:11:35 -0500, Wenwen Wang wrote: > In mlx4_en_config_rss_steer(), 'rss_map->indir_qp' is allocated through > kzalloc(). After that, mlx4_qp_alloc() is invoked to configure RSS > indirection. However, if mlx4_qp_alloc() fails, the allocated > 'rss_map->indir_qp' is not

[PATCH AUTOSEL 5.2 005/123] ASoC: audio-graph-card: fix an use-after-free in graph_get_dai_id()

2019-08-13 Thread Sasha Levin
From: Wen Yang [ Upstream commit c152f8491a8d9a4b25afd65a86eb5e55e2a8c380 ] After calling of_node_put() on the node variable, it is still being used, which may result in use-after-free. Fix this issue by calling of_node_put() after the last usage. Fixes: a0c426fe1433 ("ASoC: simple-card-utils:

[PATCH AUTOSEL 5.2 010/123] iio: imu: mpu6050: add missing available scan masks

2019-08-13 Thread Sasha Levin
From: Jean-Baptiste Maneyrol [ Upstream commit 1244a720572fd1680ac8d6b8a4235f2e8557b810 ] Driver only supports 3-axis gyro and/or 3-axis accel. For icm20602, temp data is mandatory for all configurations. Fix all single and double axis configurations (almost never used) and more importantly

[PATCH AUTOSEL 5.2 007/123] iio: adc: max9611: Fix misuse of GENMASK macro

2019-08-13 Thread Sasha Levin
From: Joe Perches [ Upstream commit ae8cc91a7d85e018c0c267f580820b2bb558cd48 ] Arguments are supposed to be ordered high then low. Signed-off-by: Joe Perches Fixes: 69780a3bbc0b ("iio: adc: Add Maxim max9611 ADC driver") Cc: Signed-off-by: Jonathan Cameron Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 5.2 012/123] regulator: axp20x: fix DCDC5 and DCDC6 for AXP803

2019-08-13 Thread Sasha Levin
From: Jernej Skrabec [ Upstream commit 8f46e22b5ac692b48d04bb722547ca17b66dda02 ] Refactoring of axp20x driver introduced a bug in AXP803's DCDC6 regulator definition. AXP803_DCDC6_1120mV_STEPS was obtained by subtracting 0x47 and 0x33. This should be 0x14 (hex) and not 14 (dec). Refactoring

[PATCH AUTOSEL 5.2 004/123] ASoC: audio-graph-card: fix use-after-free in graph_dai_link_of_dpcm()

2019-08-13 Thread Sasha Levin
From: Wen Yang [ Upstream commit aa2e362cb6b3f5ca88093ada01e1a0ace8a517b2 ] After calling of_node_put() on the ports, port, and node variables, they are still being used, which may result in use-after-free. Fix this issue by calling of_node_put() after the last usage. Fixes: dd98fbc558a0

Re: [PATCH linux-next] drivers: dma: Fix sparse warning for mux_configure32

2019-08-13 Thread maowenan
On 2019/8/13 12:43, Vinod Koul wrote: > On 12-08-19, 15:42, Mao Wenan wrote: > > Patch title is incorrect, it should mention the changes in patch, for > example make mux_configure32 static > > Do read up on Documentation/process/submitting-patches.rst again! > >> There is one sparse warning

[PATCH AUTOSEL 5.2 029/123] ASoC: dapm: fix a memory leak bug

2019-08-13 Thread Sasha Levin
From: Wenwen Wang [ Upstream commit 45004d66f2a28d78f543fb2ffbc133e31dc2d162 ] In snd_soc_dapm_new_control_unlocked(), a kernel buffer is allocated in dapm_cnew_widget() to hold the new dapm widget. Then, different actions are taken according to the id of the widget, i.e., 'w->id'. If any

[PATCH AUTOSEL 5.2 017/123] HID: Add 044f:b320 ThrustMaster, Inc. 2 in 1 DT

2019-08-13 Thread Sasha Levin
From: Ilya Trukhanov [ Upstream commit 65f11c72780fa9d598df88def045ccb6a885cf80 ] Enable force feedback for the Thrustmaster Dual Trigger 2 in 1 Rumble Force gamepad. Compared to other Thrustmaster devices, left and right rumble motors here are swapped. Signed-off-by: Ilya Trukhanov

[PATCH AUTOSEL 5.2 024/123] spi: pxa2xx: Balance runtime PM enable/disable on error

2019-08-13 Thread Sasha Levin
From: Lubomir Rintel [ Upstream commit 1274204542f683e1d8491ebe9cc86284d5a8ebcc ] Don't undo the PM initialization if we error out before we managed to initialize it. The call to pm_runtime_disable() without being preceded by pm_runtime_enable() would disturb the balance of the Force. In

[PATCH AUTOSEL 5.2 015/123] ASoC: Intel: bytcht_es8316: Add quirk for Irbis NB41 netbook

2019-08-13 Thread Sasha Levin
From: Hans de Goede [ Upstream commit aa2ba991c4206d5b778dcaa7b4997396e79f8e90 ] The Irbis NB41 netbook has its internal mic on IN2, inverted jack-detect and stereo speakers, add a quirk for this. Cc: russianneuroman...@ya.ru Reported-and-tested-by: russianneuroman...@ya.ru Signed-off-by: Hans

[PATCH AUTOSEL 5.2 023/123] ASoC: SOF: use __u32 instead of uint32_t in uapi headers

2019-08-13 Thread Sasha Levin
From: Masahiro Yamada [ Upstream commit 62ec3d13601bd626ca7a0edef6d45dbb753d94e8 ] When CONFIG_UAPI_HEADER_TEST=y, exported headers are compile-tested to make sure they can be included from user-space. Currently, header.h and fw.h are excluded from the test coverage. To make them join the

[PATCH AUTOSEL 5.2 018/123] MIPS: kernel: only use i8253 clocksource with periodic clockevent

2019-08-13 Thread Sasha Levin
From: Thomas Bogendoerfer [ Upstream commit a07e3324538a989b7cdbf2c679be6a7f9df2544f ] i8253 clocksource needs a free running timer. This could only be used, if i8253 clockevent is set up as periodic. Signed-off-by: Thomas Bogendoerfer Signed-off-by: Paul Burton Cc: Ralf Baechle Cc: James

[PATCH AUTOSEL 5.2 014/123] ASoC: samsung: odroid: fix a double-free issue for cpu_dai

2019-08-13 Thread Sasha Levin
From: Wen Yang [ Upstream commit 2abee12c0ab1924a69993d2c063a39a952e7d836 ] The cpu_dai variable is still being used after the of_node_put() call, which may result in double-free: of_node_put(cpu_dai);---> released here ret = devm_snd_soc_register_card(dev, card);

[PATCH AUTOSEL 5.2 013/123] ASoC: samsung: odroid: fix an use-after-free issue for codec

2019-08-13 Thread Sasha Levin
From: Wen Yang [ Upstream commit 9b6d104a6b150bd4d3e5b039340e1f6b20c2e3c1 ] The codec variable is still being used after the of_node_put() call, which may result in use-after-free. Fixes: bc3cf17b575a ("ASoC: samsung: odroid: Add support for secondary CPU DAI") Signed-off-by: Wen Yang Cc:

[PATCH AUTOSEL 5.2 020/123] libbpf: sanitize VAR to conservative 1-byte INT

2019-08-13 Thread Sasha Levin
From: Andrii Nakryiko [ Upstream commit 1d4126c4e1190d2f7d3f388552f9bd17ae0c64fc ] If VAR in non-sanitized BTF was size less than 4, converting such VAR into an INT with size=4 will cause BTF validation failure due to violationg of STRUCT (into which DATASEC was converted) member size. Fix by

[PATCH AUTOSEL 5.2 019/123] mips: fix cacheinfo

2019-08-13 Thread Sasha Levin
From: Vladimir Kondratiev [ Upstream commit b8bea8a5e5d942e62203416ab41edecaed4fda02 ] Because CONFIG_OF defined for MIPS, cacheinfo attempts to fill information from DT, ignoring data filled by architecture routine. This leads to error reported cacheinfo: Unable to detect cache hierarchy for

[PATCH AUTOSEL 5.2 022/123] ASoC: dapm: Fix handling of custom_stop_condition on DAPM graph walks

2019-08-13 Thread Sasha Levin
From: Charles Keepax [ Upstream commit 8dd26dff00c0636b1d8621acaeef3f6f3a39dd77 ] DPCM uses snd_soc_dapm_dai_get_connected_widgets to build a list of the widgets connected to a specific front end DAI so it can search through this list for available back end DAIs. The custom_stop_condition was

[PATCH AUTOSEL 5.2 033/123] selftests: forwarding: gre_multipath: Fix flower filters

2019-08-13 Thread Sasha Levin
From: Ido Schimmel [ Upstream commit 1be79d89b7ae96e004911bd228ce8c2b5cc6415f ] The TC filters used in the test do not work with veth devices because the outer Ethertype is 802.1Q and not IPv4. The test passes with mlxsw netdevs since the hardware always looks at "The first Ethertype that does

[PATCH AUTOSEL 5.2 025/123] bpf: sockmap, sock_map_delete needs to use xchg

2019-08-13 Thread Sasha Levin
From: John Fastabend [ Upstream commit 45a4521dcbd92e71c9e53031b40e34211d3b4feb ] __sock_map_delete() may be called from a tcp event such as unhash or close from the following trace, tcp_bpf_close() tcp_bpf_remove() sk_psock_unlink() sock_map_delete_from_link()

[PATCH AUTOSEL 5.2 026/123] bpf: sockmap, synchronize_rcu before free'ing map

2019-08-13 Thread Sasha Levin
From: John Fastabend [ Upstream commit 2bb90e5cc90e1d09f631aeab041a9cf913a5bbe5 ] We need to have a synchronize_rcu before free'ing the sockmap because any outstanding psock references will have a pointer to the map and when they use this could trigger a use after free. Fixes: 604326b41a6fb

[PATCH AUTOSEL 5.2 030/123] bonding: Force slave speed check after link state recovery for 802.3ad

2019-08-13 Thread Sasha Levin
From: Thomas Falcon [ Upstream commit 12185dfe44360f814ac4ead9d22ad2af7511b2e9 ] The following scenario was encountered during testing of logical partition mobility on pseries partitions with bonded ibmvnic adapters in LACP mode. 1. Driver receives a signal that the device has been swapped,

[PATCH AUTOSEL 5.2 046/123] ASoC: ti: davinci-mcasp: Fix clk PDIR handling for i2s master mode

2019-08-13 Thread Sasha Levin
From: Peter Ujfalusi [ Upstream commit 34a2a80ff30b5d2330abfa8980c7f0cc15a8158a ] When running McASP as master capture alone will not record any audio unless a parallel playback stream is running. As soon as the playback stops the captured data is going to be silent again. In McASP master mode

[PATCH AUTOSEL 5.2 044/123] st_nci_hci_connectivity_event_received: null check the allocation

2019-08-13 Thread Sasha Levin
From: Navid Emamdoost [ Upstream commit 3008e06fdf0973770370f97d5f1fba3701d8281d ] devm_kzalloc may fail and return NULL. So the null check is needed. Signed-off-by: Navid Emamdoost Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/nfc/st-nci/se.c | 2 ++ 1 file

[PATCH AUTOSEL 5.2 043/123] st21nfca_connectivity_event_received: null check the allocation

2019-08-13 Thread Sasha Levin
From: Navid Emamdoost [ Upstream commit 9891d06836e67324c9e9c4675ed90fc8b8110034 ] devm_kzalloc may fail and return null. So the null check is needed. Signed-off-by: Navid Emamdoost Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/nfc/st21nfca/se.c | 2 ++ 1 file

[PATCH AUTOSEL 5.2 050/123] qed: RDMA - Fix the hw_ver returned in device attributes

2019-08-13 Thread Sasha Levin
From: Michal Kalderon [ Upstream commit 81af04b432fdfabcdbd2c06be2ee647e3ca41a22 ] The hw_ver field was initialized to zero. Return the chip revision. This is relevant for rdma driver. Signed-off-by: Michal Kalderon Signed-off-by: David S. Miller Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 5.2 048/123] ASoC: ti: davinci-mcasp: Correct slot_width posed constraint

2019-08-13 Thread Sasha Levin
From: Peter Ujfalusi [ Upstream commit 1e112c35e3c96db7c8ca6ddaa96574f00c06e7db ] The slot_width is a property for the bus while the constraint for SNDRV_PCM_HW_PARAM_SAMPLE_BITS is for the in memory format. Applying slot_width constraint to sample_bits works most of the time, but it will

[PATCH AUTOSEL 5.2 049/123] net: usb: qmi_wwan: Add the BroadMobi BM818 card

2019-08-13 Thread Sasha Levin
From: Bob Ham [ Upstream commit 9a07406b00cdc6ec689dc142540739575c717f3c ] The BroadMobi BM818 M.2 card uses the QMI protocol Signed-off-by: Bob Ham Signed-off-by: Angus Ainslie (Purism) Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/usb/qmi_wwan.c | 1 + 1 file

[PATCH AUTOSEL 5.2 052/123] habanalabs: fix F/W download in BE architecture

2019-08-13 Thread Sasha Levin
From: Ben Segal [ Upstream commit 75035fe22b808a520e1d712ebe913684ba406e01 ] writeX macros might perform byte-swapping in BE architectures. As our F/W is in LE format, we need to make sure no byte-swapping will occur. There is a standard kernel function (called memcpy_toio) for copying data to

[PATCH AUTOSEL 5.2 056/123] netfilter: ipset: Copy the right MAC address in bitmap:ip,mac and hash:ip,mac sets

2019-08-13 Thread Sasha Levin
From: Stefano Brivio [ Upstream commit 1b4a75108d5bc153daf965d334e77e8e94534f96 ] In commit 8cc4ccf58379 ("ipset: Allow matching on destination MAC address for mac and ipmac sets"), ipset.git commit 1543514c46a7, I added to the KADT functions for sets matching on MAC addreses the copy of source

[PATCH] Fix an OOB bug in parse_audio_mixer_unit

2019-08-13 Thread Hui Peng
The `uac_mixer_unit_descriptor` shown as below is read from the device side. In `parse_audio_mixer_unit`, `baSourceID` field is accessed from index 0 to `bNrInPins` - 1, the current implementation assumes that descriptor is always valid (the length of descriptor is no shorter than 5 +

[PATCH AUTOSEL 5.2 054/123] net: stmmac: manage errors returned by of_get_mac_address()

2019-08-13 Thread Sasha Levin
From: Martin Blumenstingl [ Upstream commit 195b2919ccd7ffcaf6b6bbcb39444a53ab8308c7 ] Commit d01f449c008a ("of_net: add NVMEM support to of_get_mac_address") added support for reading the MAC address from an nvmem-cell. This required changing the logic to return an error pointer upon failure.

[PATCH AUTOSEL 5.2 058/123] netfilter: ebtables: also count base chain policies

2019-08-13 Thread Sasha Levin
From: Florian Westphal [ Upstream commit 3b48300d5cc7c7bed63fddb006c4046549ed4aec ] ebtables doesn't include the base chain policies in the rule count, so we need to add them manually when we call into the x_tables core to allocate space for the comapt offset table. This lead syzbot to

[PATCH AUTOSEL 5.2 055/123] netfilter: ipset: Actually allow destination MAC address for hash:ip,mac sets too

2019-08-13 Thread Sasha Levin
From: Stefano Brivio [ Upstream commit b89d15480d0cacacae1a0fe0b3da01b529f2914f ] In commit 8cc4ccf58379 ("ipset: Allow matching on destination MAC address for mac and ipmac sets"), ipset.git commit 1543514c46a7, I removed the KADT check that prevents matching on destination MAC addresses for

[PATCH AUTOSEL 5.2 057/123] netfilter: ipset: Fix rename concurrency with listing

2019-08-13 Thread Sasha Levin
From: Jozsef Kadlecsik [ Upstream commit 6c1f7e2c1b96ab9b09ac97c4df2bd9dc327206f6 ] Shijie Luo reported that when stress-testing ipset with multiple concurrent create, rename, flush, list, destroy commands, it can result ipset : Broken LIST kernel message: missing DATA part! error messages

[PATCH AUTOSEL 5.2 068/123] enetc: Fix build error without PHYLIB

2019-08-13 Thread Sasha Levin
From: YueHaibing [ Upstream commit 5f4e4203add2b860d2345312509a160f8292063b ] If PHYLIB is not set, build enetc will fails: drivers/net/ethernet/freescale/enetc/enetc.o: In function `enetc_open': enetc.c: undefined reference to `phy_disconnect' enetc.c: undefined reference to `phy_start'

[PATCH AUTOSEL 5.2 067/123] driver core: Fix use-after-free and double free on glue directory

2019-08-13 Thread Sasha Levin
From: Muchun Song [ Upstream commit ac43432cb1f5c2950408534987e57c2071e24d8f ] There is a race condition between removing glue directory and adding a new device under the glue dir. It can be reproduced in following test: CPU1: CPU2: device_add()

[PATCH AUTOSEL 5.2 063/123] iwlwifi: dbg_ini: move iwl_dbg_tlv_load_bin out of debug override ifdef

2019-08-13 Thread Sasha Levin
From: Shahar S Matityahu [ Upstream commit 072b30642f90b01d139131ec7bf763778a3a3f41 ] ini debug mode should work even if debug override is not defined. Signed-off-by: Shahar S Matityahu Fixes: 68f6f492c4fa ("iwlwifi: trans: support loading ini TLVs from external file") Signed-off-by: Luca

[PATCH AUTOSEL 5.2 064/123] iwlwifi: dbg_ini: move iwl_dbg_tlv_free outside of debugfs ifdef

2019-08-13 Thread Sasha Levin
From: Shahar S Matityahu [ Upstream commit abcbef5977df1fb61026ba429964cd6b9a085699 ] The driver should call iwl_dbg_tlv_free even if debugfs is not defined since ini mode does not depend on debugfs ifdef. Signed-off-by: Shahar S Matityahu Fixes: 68f6f492c4fa ("iwlwifi: trans: support loading

[PATCH AUTOSEL 5.2 073/123] net: usb: pegasus: fix improper read if get_registers() fail

2019-08-13 Thread Sasha Levin
From: Denis Kirjanov [ Upstream commit 224c04973db1125fcebefffd86115f99f50f8277 ] get_registers() may fail with -ENOMEM and in this case we can read a garbage from the status variable tmp. Reported-by: syzbot+3499a83b2d062ae40...@syzkaller.appspotmail.com Signed-off-by: Denis Kirjanov

[PATCHv6 2/2] PCI: layerscape: Add CONFIG_PCI_LAYERSCAPE_EP to build EP/RC separately

2019-08-13 Thread Xiaowei Bao
Add CONFIG_PCI_LAYERSCAPE_EP to build EP/RC separately. Signed-off-by: Xiaowei Bao --- v2: - No change. v3: - modify the commit message. v4: - send the patch again with '--to'. v5: - No change. v6: - remove the [EXT] tag of the $SUBJECT in email. drivers/pci/controller/dwc/Kconfig | 20

[PATCH AUTOSEL 5.2 069/123] isdn: hfcsusb: Fix mISDN driver crash caused by transfer buffer on the stack

2019-08-13 Thread Sasha Levin
From: Juliana Rodrigueiro [ Upstream commit d8a1de3d5bb881507602bc02e004904828f88711 ] Since linux 4.9 it is not possible to use buffers on the stack for DMA transfers. During usb probe the driver crashes with "transfer buffer is on stack" message. This fix k-allocates a buffer to be used on

[PATCH AUTOSEL 5.2 070/123] net: phy: phy_led_triggers: Fix a possible null-pointer dereference in phy_led_trigger_change_speed()

2019-08-13 Thread Sasha Levin
From: Jia-Ju Bai [ Upstream commit 271da132e29b5341c31eca6ba6a72ea1302ebac8 ] In phy_led_trigger_change_speed(), there is an if statement on line 48 to check whether phy->last_triggered is NULL: if (!phy->last_triggered) When phy->last_triggered is NULL, it is used on line 52:

[PATCH AUTOSEL 5.2 066/123] iwlwifi: mvm: send LQ command always ASYNC

2019-08-13 Thread Sasha Levin
From: Gregory Greenman [ Upstream commit cd4d6b0bcd51580efda9ae54ab7b2d630b4147dc ] The only place where the command was sent as SYNC is during init and this is not really critical. This change is required for replacing RS mutex with a spinlock (in the subsequent patch), since SYNC comamnd

[PATCH AUTOSEL 5.2 074/123] spi: pxa2xx: Add support for Intel Tiger Lake

2019-08-13 Thread Sasha Levin
From: Jarkko Nikula [ Upstream commit a4127952859a869cf3fc5a49547dbe2ffa2eac89 ] Intel Tiger Lake -LP LPSS SPI controller is otherwise similar than Cannon Lake but has more controllers and up to two chip selects per controller. Signed-off-by: Jarkko Nikula Link:

[PATCH AUTOSEL 5.2 080/123] NFSv4: Fix a credential refcount leak in nfs41_check_delegation_stateid

2019-08-13 Thread Sasha Levin
From: Trond Myklebust [ Upstream commit 8c39a39e28b86a4021d9be314ce01019bafa5fdc ] It is unsafe to dereference delegation outside the rcu lock, and in any case, the refcount is guaranteed held if cred is non-zero. Signed-off-by: Trond Myklebust Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 5.2 079/123] enetc: Select PHYLIB while CONFIG_FSL_ENETC_VF is set

2019-08-13 Thread Sasha Levin
From: YueHaibing [ Upstream commit 2802d2cf24b1ca7ea4c54dde266ded6a16020eb5 ] Like FSL_ENETC, when CONFIG_FSL_ENETC_VF is set, we should select PHYLIB, otherwise building still fails: drivers/net/ethernet/freescale/enetc/enetc.o: In function `enetc_open': enetc.c:(.text+0x2744): undefined

[PATCH AUTOSEL 5.2 082/123] NFSv4.1: Fix open stateid recovery

2019-08-13 Thread Sasha Levin
From: Trond Myklebust [ Upstream commit 27a30cf64a5cbe2105e4ff9613246b32d584766a ] The logic for checking in nfs41_check_open_stateid() whether the state is supported by a delegation is inverted. In addition, it makes more sense to perform that check before we check for expired locks. Fixes:

[PATCH AUTOSEL 5.2 081/123] NFSv4: When recovering state fails with EAGAIN, retry the same recovery

2019-08-13 Thread Sasha Levin
From: Trond Myklebust [ Upstream commit c34fae003c79570b6c930b425fea3f0b7b1e7056 ] If the server returns with EAGAIN when we're trying to recover from a server reboot, we currently delay for 1 second, but then mark the stateid as needing recovery after the grace period has expired. Instead, we

[PATCH AUTOSEL 5.2 077/123] ASoC: amd: acp3x: use dma_ops of parent device for acp3x dma driver

2019-08-13 Thread Sasha Levin
From: Vijendar Mukunda [ Upstream commit 88639051017fb61a414b636dd0fc490da2b62b64 ] AMD platform device acp3x_rv_i2s created by parent PCI device driver. Pass struct device of the parent to snd_pcm_lib_preallocate_pages() so dma_alloc_coherent() can use correct dma_ops. Otherwise, it will use

[PATCH AUTOSEL 5.2 085/123] NFS: Fix regression whereby fscache errors are appearing on 'nofsc' mounts

2019-08-13 Thread Sasha Levin
From: Trond Myklebust [ Upstream commit dea1bb35c5f35e0577cfc61f79261d80b8715221 ] People are reporing seeing fscache errors being reported concerning duplicate cookies even in cases where they are not setting up fscache at all. The rule needs to be that if fscache is not enabled, then it

[PATCH AUTOSEL 5.2 086/123] HID: quirks: Set the INCREMENT_USAGE_ON_DUPLICATE quirk on Saitek X52

2019-08-13 Thread Sasha Levin
From: István Váradi [ Upstream commit 7bc74853fd61432ec59f812a40425bf6d8c986a4 ] The Saitek X52 joystick has a pair of axes that are originally (by the Windows driver) used as mouse pointer controls. The corresponding usage->hid values are 0x50024 and 0x50026. Thus they are handled as unknown

[PATCH AUTOSEL 5.2 100/123] ata: rb532_cf: Fix unused variable warning in rb532_pata_driver_probe

2019-08-13 Thread Sasha Levin
From: "Gustavo A. R. Silva" [ Upstream commit db341a049ec7e87053c91008cb452d0bfa6dde72 ] Fix the following warning (Building: rb532_defconfig mips): drivers/ata/pata_rb532_cf.c: In function ‘rb532_pata_driver_remove’: drivers/ata/pata_rb532_cf.c:161:24: warning: unused variable ‘info’

[PATCH AUTOSEL 5.2 095/123] sched/psi: Reduce psimon FIFO priority

2019-08-13 Thread Sasha Levin
From: Peter Zijlstra [ Upstream commit 14f5c7b46a41a595fc61db37f55721714729e59e ] PSI defaults to a FIFO-99 thread, reduce this to FIFO-1. FIFO-99 is the very highest priority available to SCHED_FIFO and it not a suitable default; it would indicate the psi work is the most important work on

[PATCH AUTOSEL 5.2 099/123] s390: put _stext and _etext into .text section

2019-08-13 Thread Sasha Levin
From: Vasily Gorbik [ Upstream commit 24350fdadbdec780406a1ef988e6cd3875e374a8 ] Perf relies on _etext and _stext symbols being one of 't', 'T', 'v' or 'V'. Put them into .text section to guarantee that. Also moves padding to page boundary inside .text which has an effect that .text section is

[PATCH AUTOSEL 5.2 091/123] SMB3: Kernel oops mounting a encryptData share with CONFIG_DEBUG_VIRTUAL

2019-08-13 Thread Sasha Levin
From: Sebastien Tisserant [ Upstream commit ee9d66182392695535cc9fccfcb40c16f72de2a9 ] Fix kernel oops when mounting a encryptData CIFS share with CONFIG_DEBUG_VIRTUAL Signed-off-by: Sebastien Tisserant Reviewed-by: Pavel Shilovsky Signed-off-by: Steve French Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 5.2 089/123] drm/rockchip: Suspend DP late

2019-08-13 Thread Sasha Levin
From: Douglas Anderson [ Upstream commit f7ccbed656f78212593ca965d9a8f34bf24e0aab ] In commit fe64ba5c6323 ("drm/rockchip: Resume DP early") we moved resume to be early but left suspend at its normal time. This seems like it could be OK, but casues problems if a suspend gets interrupted

[PATCH AUTOSEL 5.2 096/123] sched/psi: Do not require setsched permission from the trigger creator

2019-08-13 Thread Sasha Levin
From: Suren Baghdasaryan [ Upstream commit 04e048cf09d7b5fc995817cdc5ae1acd4482429c ] When a process creates a new trigger by writing into /proc/pressure/* files, permissions to write such a file should be used to determine whether the process is allowed to do so or not. Current implementation

[PATCH AUTOSEL 5.2 103/123] net: stmmac: Fix issues when number of Queues >= 4

2019-08-13 Thread Sasha Levin
From: Jose Abreu [ Upstream commit e8df7e8c233a18d2704e37ecff47583b494789d3 ] When queues >= 4 we use different registers but we were not subtracting the offset of 4. Fix this. Found out by Coverity. Signed-off-by: Jose Abreu Signed-off-by: David S. Miller Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 5.2 105/123] drm/amdgpu: pin the csb buffer on hw init for gfx v8

2019-08-13 Thread Sasha Levin
From: Likun Gao [ Upstream commit 72cda9bb5e219aea0f2f62f56ae05198c59022a7 ] Without this pin, the csb buffer will be filled with inconsistent data after S3 resume. And that will causes gfx hang on gfxoff exit since this csb will be executed then. Signed-off-by: Likun Gao Tested-by: Paul

[PATCH AUTOSEL 5.2 101/123] Input: iforce - add sanity checks

2019-08-13 Thread Sasha Levin
From: Oliver Neukum [ Upstream commit 849f5ae3a513c550cad741c68dd3d7eb2bcc2a2c ] The endpoint type should also be checked before a device is accepted. Reported-by: syzbot+5efc10c005014d061...@syzkaller.appspotmail.com Signed-off-by: Oliver Neukum Signed-off-by: Dmitry Torokhov Signed-off-by:

[PATCH AUTOSEL 4.19 10/68] net: mvpp2: Don't check for 3 consecutive Idle frames for 10G links

2019-08-13 Thread Sasha Levin
From: Maxime Chevallier [ Upstream commit bba18318e7d1d5c8b0bbafd65010a0cee3c65608 ] PPv2's XLGMAC can wait for 3 idle frames before triggering a link up event. This can cause the link to be stuck low when there's traffic on the interface, so disable this feature. Fixes: 4bb043262878 ("net:

  1   2   3   4   5   6   7   8   9   10   >