[PATCH 5.1 125/155] PCI: rcar: Fix a potential NULL pointer dereference

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit f0d14edd2ba43b995bef4dd5da5ffe0ae19321a1 ] In case __get_free_pages() fails and returns NULL, fix the return value to -ENOMEM and release resources to avoid dereferencing a NULL pointer. Signed-off-by: Kangjie Lu Signed-off-by: Lorenzo Pieralisi Reviewed-by: Ulrich Hecht Revi

[PATCH 5.1 145/155] pwm: Fix deadlock warning when removing PWM device

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 347ab9480313737c0f1aaa08e8f2e1a791235535 ] This patch fixes deadlock warning if removing PWM device when CONFIG_PROVE_LOCKING is enabled. This issue can be reproceduced by the following steps on the R-Car H3 Salvator-X board if the backlight is disabled: # cd /sys/class/pwm/pw

[PATCH 5.1 140/155] ice: Do not set LB_EN for prune switch rules

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit b58dafbc6f1089942c1e74b8ab9c616fe06dbfac ] LB_EN for prune switch rules was causing all TX traffic to loopback to the internal switch and dropped. When running bi-directional stress workloads with RDMA the RDPU would hang blocking tx and rx traffic. Signed-off-by: Christopher N

[PATCH 5.1 146/155] ARM: exynos: Fix undefined instruction during Exynos5422 resume

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 4d8e3e951a85620272ce27f2c738a3eeef8c ] During early system resume on Exynos5422 with performance counters enabled the following kernel oops happens: Internal error: Oops - undefined instruction: 0 [#1] PREEMPT SMP ARM Modules linked in: CPU: 0 PID: 1433 Comm: bas

Applied "spi: qup: fix PIO/DMA transfers." to the spi tree

2019-06-13 Thread Mark Brown
The patch spi: qup: fix PIO/DMA transfers. has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-5.2 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus du

[PATCH 5.1 143/155] media: v4l2-fwnode: Defaults may not override endpoint configuration in firmware

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 9d3863736a267068a0ae67c6695af8770ef330b7 ] The lack of defaults provided by the caller to v4l2_fwnode_endpoint_parse() signals the use of the default lane mapping. The default lane mapping must not be used however if the firmmare contains the lane mapping. Disable the default lan

Applied "regulator: max8952: Convert to use GPIO descriptors" to the regulator tree

2019-06-13 Thread Mark Brown
The patch regulator: max8952: Convert to use GPIO descriptors has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-5.3 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next

[PATCH 5.1 142/155] pwm: tiehrpwm: Update shadow register for disabling PWMs

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit b00ef53053191d3025c15e8041699f8c9d132daf ] It must be made sure that immediate mode is not already set, when modifying shadow register value in ehrpwm_pwm_disable(). Otherwise modifications to the action-qualifier continuous S/W force register(AQSFRC) will be done in the active r

[PATCH 5.1 144/155] ARM: dts: exynos: Always enable necessary APIO_1V8 and ABB_1V8 regulators on Arndale Octa

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 5ab99cf7d5e96e3b727c30e7a8524c976bd3723d ] The PVDD_APIO_1V8 (LDO2) and PVDD_ABB_1V8 (LDO8) regulators were turned off by Linux kernel as unused. However they supply critical parts of SoC so they should be always on: 1. PVDD_APIO_1V8 supplies SYS pins (gpx[0-3], PSHOLD), HDMI l

[PATCH 5.1 141/155] dmaengine: idma64: Use actual device for DMA transfers

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 5ba846b1ee0792f5a596b9b0b86d6e8cdebfab06 ] Intel IOMMU, when enabled, tries to find the domain of the device, assuming it's a PCI one, during DMA operations, such as mapping or unmapping. Since we are splitting the actual PCI device to couple of children via MFD framework (see dr

[PATCH 5.1 137/155] media: v4l2-ctrl: v4l2_ctrl_request_setup returns with error upon failure

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 09ca38a50795a263d2b16dc95794dc5bc17c1d5c ] If one of the controls fails to set, then 'v4l2_ctrl_request_setup' immediately returns with the error code. Signed-off-by: Dafna Hirschfeld Reviewed-by: Paul Kocialkowski Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Che

[PATCH 5.1 139/155] ice: Enable LAN_EN for the right recipes

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 277b3a4547b8afbbecdfc52fe7217f018de26c21 ] In VEB mode, enable LAN_EN bit in the action fields for filter rules corresponding to the right recipes. Signed-off-by: Yashaswini Raghuram Prathivadi Bhayankaram Reviewed-by: Bruce Allan Signed-off-by: Anirudh Venkataramanan Tested

[PATCH 5.1 122/155] f2fs: fix potential recursive call when enabling data_flush

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 186857c5a14aee85cace2ae7a36c6e43b9d3c7a5 ] As Hagbard Celine reported: Hi, this is a long standing bug that I've hit before on older kernels, but I was not able to get the syslog saved because of the nature of the bug. This time I had booted form a pen-drive, and was able to sav

[PATCH 5.1 138/155] batman-adv: Adjust name for batadv_dat_send_data

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit c2d8b9a6c17a3848136b3eb31f26d3c5880acd89 ] The send functions in batman-adv are expected to consume the skb when either the data is queued up for the underlying driver or when some precondition failed. batadv_dat_send_data didn't do this and instead created a copy of the skb, mod

[PATCH 5.1 136/155] ice: Add missing case in print_link_msg for printing flow control

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 203a068ac9e2722e4d118116acaa3a5586f9468a ] Currently we aren't checking for the ICE_FC_NONE case for the current flow control mode. This is causing "Unknown" to be printed for the current flow control method if flow control is disabled. Fix this by adding the case for ICE_FC_NONE

Re: [PATCH v17 03/15] arm64: Introduce prctl() options to control the tagged user addresses ABI

2019-06-13 Thread Catalin Marinas
On Thu, Jun 13, 2019 at 04:45:54PM +0100, Vincenzo Frascino wrote: > On 13/06/2019 16:35, Catalin Marinas wrote: > > On Thu, Jun 13, 2019 at 12:16:59PM +0100, Dave P Martin wrote: > >> On Wed, Jun 12, 2019 at 01:43:20PM +0200, Andrey Konovalov wrote: > >>> + > >>> +/* > >>> + * Control the relaxed

[PATCH 5.1 134/155] gpio: gpio-omap: add check for off wake capable gpios

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit da38ef3ed10a09248e13ae16530c2c6d448dc47d ] We are currently assuming all GPIOs are non-wakeup capable GPIOs as we not configuring the bank->non_wakeup_gpios like we used to earlier with platform_data. Let's add omap_gpio_is_off_wakeup_capable() to make the handling clearer while

[PATCH 5.1 135/155] gpio: gpio-omap: limit errata 1.101 handling to wkup domain gpios only

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 21e2118f470302f16bee7ebd1444505eadbc2c20 ] We need to only apply errata 1.101 handling to clear non-wakeup edge gpios for idle to the gpio bank(s) in the wkup domain to prevent spurious wake-up events. And we must restore what we did after idle manually as the gpio bank in wkup

[PATCH 5.1 133/155] arm64: dts: qcom: qcs404: Fix regulator supply names

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit f95f57e4372207ede83ac28f300aba719b271ed5 ] The regulator definition got their supply names cleaned up during upstreaming, so they no longer match the driver defined names. Update the supply names. Also fill out the missing voltage of SMPS 5. Fixes: 0b363f5b871c ("arm64: dts: qc

[PATCH 5.1 131/155] block, bfq: increase idling for weight-raised queues

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 778c02a236a8728bb992de10ed1f12c0be5b7b0e ] If a sync bfq_queue has a higher weight than some other queue, and remains temporarily empty while in service, then, to preserve the bandwidth share of the queue, it is necessary to plug I/O dispatching until a new request arrives for th

[PATCH 5.1 130/155] video: imsttfb: fix potential NULL pointer dereferences

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 1d84353d205a953e2381044953b7fa31c8c9702d ] In case ioremap fails, the fix releases resources and returns -ENOMEM to avoid NULL pointer dereferences. Signed-off-by: Kangjie Lu Cc: Aditya Pakki Cc: Finn Thain Cc: Rob Herring Cc: Greg Kroah-Hartman [b.zolnierkie: minor patch s

[PATCH 5.1 100/155] clk: rockchip: Turn on "aclk_dmac1" for suspend on rk3288

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 57a20248ef3e429dc822f0774bc4e00136c46c83 ] Experimentally it can be seen that going into deep sleep (specifically setting PMU_CLR_DMA and PMU_CLR_BUS in RK3288_PMU_PWRMODE_CON1) appears to fail unless "aclk_dmac1" is on. The failure is that the system never signals that it made

[PATCH 5.1 132/155] PCI: xilinx: Check for __get_free_pages() failure

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 699ca30162686bf305cdf94861be02eb0cf9bda2 ] If __get_free_pages() fails, return -ENOMEM to avoid a NULL pointer dereference. Signed-off-by: Kangjie Lu Signed-off-by: Lorenzo Pieralisi Reviewed-by: Steven Price Reviewed-by: Mukesh Ojha Signed-off-by: Sasha Levin --- drivers/

Re: [PATCH] lib: dynamic_debug: no need to check return value of debugfs_create functions

2019-06-13 Thread Greg Kroah-Hartman
On Thu, Jun 13, 2019 at 10:33:23AM -0400, Jason Baron wrote: > On 6/12/19 11:35 AM, Greg Kroah-Hartman wrote: > > When calling debugfs functions, there is no need to ever check the > > return value. The function can work or not, but the code logic should > > never do something different based on t

[PATCH 5.1 098/155] PCI: keystone: Prevent ARM32 specific code to be compiled for ARM64

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit f316a2b53cd7f37963ae20ec7072eb27a349a4ce ] hook_fault_code() is an ARM32 specific API for hooking into data abort. AM65X platforms (that integrate ARM v8 cores and select CONFIG_ARM64 as arch) rely on pci-keystone.c but on them the enumeration of a non-present BDF does not trigg

[PATCH 5.1 099/155] soc: mediatek: pwrap: Zero initialize rdata in pwrap_init_cipher

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 89e28da82836530f1ac7a3a32fecc31f22d79b3e ] When building with -Wsometimes-uninitialized, Clang warns: drivers/soc/mediatek/mtk-pmic-wrap.c:1358:6: error: variable 'rdata' is used uninitialized whenever '||' condition is true [-Werror,-Wsometimes-uninitialized] If pwrap_write re

[PATCH 5.1 121/155] power: supply: max14656: fix potential use-before-alloc

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 0cd0e49711556d2331a06b1117b68dd786cb54d2 ] Call order on probe(): - max14656_hw_init() enables interrupts on the chip - devm_request_irq() starts processing interrupts, isr could be called immediately -isr: schedules delayed work (irq_work) -irq_work: calls power_supply

[PATCH 5.1 095/155] power: supply: cpcap-battery: Fix signed counter sample register

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit c68b901ac4fa969db8917b6a9f9b40524a690d20 ] The accumulator sample register is signed 32-bits wide register on droid 4. And only the earlier version of cpcap has a signed 24-bits wide register. We're currently passing it around as unsigned, so let's fix that and use sign_extend32(

[PATCH 5.1 118/155] ARM: OMAP2+: pm33xx-core: Do not Turn OFF CEFUSE as PPA may be using it

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 72aff4ecf1cb85a3c6e6b42ccbda0bc631b090b3 ] This area is used to store keys by HSPPA in case of AM438x SOC. Leave it active. Signed-off-by: Kabir Sahane Signed-off-by: Andrew F. Davis Signed-off-by: Tony Lindgren Signed-off-by: Sasha Levin --- arch/arm/mach-omap2/pm33xx-core

[PATCH 5.1 119/155] pinctrl: pinctrl-intel: move gpio suspend/resume to noirq phase

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 2fef32766861c6e171f436ab99c89198cf0ca6e1 ] In current driver, SET_LATE_SYSTEM_SLEEP_PM_OPS is used to install the callbacks for suspend/resume. GPIO pin may be used as the interrupt pin by some device. However, using SET_LATE_SYSTEM_SLEEP_PM_OPS() to install the callbacks, the re

[PATCH 5.1 096/155] platform/chrome: cros_ec_proto: check for NULL transfer function

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 94d4e7af14a1170e34cf082d92e4c02de9e9fb88 ] As new transfer mechanisms are added to the EC codebase, they may not support v2 of the EC protocol. If the v3 initial handshake transfer fails, the kernel will try and call cmd_xfer as a fallback. If v2 is not supported, cmd_xfer will

[PATCH 5.1 092/155] x86/PCI: Fix PCI IRQ routing table memory leak

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit ea094d53580f40c2124cef3d072b73b2425e7bfd ] In pcibios_irq_init(), the PCI IRQ routing table 'pirq_table' is first found through pirq_find_routing_table(). If the table is not found and CONFIG_PCI_BIOS is defined, the table is then allocated in pcibios_get_irq_routing_table() usi

[PATCH 5.1 097/155] PCI: keystone: Invoke phy_reset() API before enabling PHY

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit b22af42b3e57c3a49a4c4a54c7d8a1363af75e90 ] SERDES connected to the PCIe controller in AM654 requires power on reset enable (POR_EN) to be set in the SERDES. The SERDES driver sets POR_EN in the reset ops and it has to be invoked before init or enable ops. In order for SERDES driv

[PATCH 5.1 101/155] usb: ohci-da8xx: disable the regulator if the overcurrent irq fired

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit d327330185f192411be80563a3c8398f4538cdb2 ] Historically the power supply management in this driver has been handled in two separate places in parallel. Device-tree users simply defined an appropriate regulator, while two boards with no DT support (da830-evm and omapl138-hawk) pas

[PATCH 5.1 117/155] ALSA: seq: Protect in-kernel ioctl calls with mutex

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit feb689025fbb6f0aa6297d3ddf97de945ea4ad32 ] ALSA OSS sequencer calls the ioctl function indirectly via snd_seq_kernel_client_ctl(). While we already applied the protection against races between the normal ioctls and writes via the client's ioctl_mutex, this code path was left unt

[PATCH 5.1 116/155] drm/amd/display: Use plane->color_space for dpp if specified

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit a1e07ba89d49581471d64c48152dbe03b42bd025 ] [Why] The input color space for the plane was previously ignored even if it was set. If a limited range YUV format was given to DC then the wrong color transformation matrix was being used since DC assumed that it was full range instead

[PATCH 5.1 113/155] ARM: dts: imx6qdl: Specify IMX6QDL_CLK_IPG as "ipg" clock to SDMA

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit b14c872eebc501b9640b04f4a152df51d6eaf2fc ] Since 25aaa75df1e6 SDMA driver uses clock rates of "ipg" and "ahb" clock to determine if it needs to configure the IP block as operating at 1:1 or 1:2 clock ratio (ACR bit in SDMAARM_CONFIG). Specifying both clocks as IMX6QDL_CLK_SDMA re

[PATCH 5.1 115/155] drm/amd/display: disable link before changing link settings

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 15ae3b28f8ca406b449d36d36021e96b66aedb5d ] [Why] If link is already enabled at a different rate (for example 5.4 Gbps) then calling VBIOS command table to switch to a new rate (for example 2.7 Gbps) will not take effect. This can lead to link training failure to occur. [How] If

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

2019-06-13 Thread Charles Keepax
On Wed, Jun 12, 2019 at 06:27:18PM +0300, Mika Westerberg wrote: > On Tue, Jun 11, 2019 at 01:30:58PM +0100, Charles Keepax wrote: > > In preparation for more refactoring make i2c_acpi_get_irq available > > outside i2c-core-acpi.c. > > > > Signed-off-by: Charles Keepax > > --- > > > > Changes si

[PATCH 5.1 114/155] PCI: rpadlpar: Fix leaked device_node references in add/remove paths

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit fb26228bfc4ce3951544848555c0278e2832e618 ] The find_dlpar_node() helper returns a device node with its reference incremented. Both the add and remove paths use this helper for find the appropriate node, but fail to release the reference when done. Annotate the find_dlpar_node()

[PATCH 5.1 094/155] i40e: Queues are reserved despite "Invalid argument" error

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 3e957b377bf4262aec2dd424f28ece94e36814d4 ] Added a new local variable in the i40e_setup_tc function named old_queue_pairs so num_queue_pairs can be restored to the correct value in case configuring queue channels fails. Additionally, moved the exit label in the i40e_setup_tc func

[PATCH 5.1 112/155] ARM: dts: imx6sx: Specify IMX6SX_CLK_IPG as "ipg" clock to SDMA

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 8979117765c19edc3b01cc0ef853537bf93eea4b ] Since 25aaa75df1e6 SDMA driver uses clock rates of "ipg" and "ahb" clock to determine if it needs to configure the IP block as operating at 1:1 or 1:2 clock ratio (ACR bit in SDMAARM_CONFIG). Specifying both clocks as IMX6SX_CLK_SDMA res

[PATCH 5.1 108/155] ARM: dts: imx6sx: Specify IMX6SX_CLK_IPG as "ahb" clock to SDMA

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit cc839d0f8c284fcb7591780b568f13415bbb737c ] Since 25aaa75df1e6 SDMA driver uses clock rates of "ipg" and "ahb" clock to determine if it needs to configure the IP block as operating at 1:1 or 1:2 clock ratio (ACR bit in SDMAARM_CONFIG). Specifying both clocks as IMX6SL_CLK_SDMA res

[PATCH 5.1 111/155] ARM: dts: imx6ul: Specify IMX6UL_CLK_IPG as "ipg" clock to SDMA

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 7b3132ecefdd1fcdf6b86e62021d0e55ea8034db ] Since 25aaa75df1e6 SDMA driver uses clock rates of "ipg" and "ahb" clock to determine if it needs to configure the IP block as operating at 1:1 or 1:2 clock ratio (ACR bit in SDMAARM_CONFIG). Specifying both clocks as IMX6UL_CLK_SDMA res

[PATCH 5.1 109/155] ARM: dts: imx6sll: Specify IMX6SLL_CLK_IPG as "ipg" clock to SDMA

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit c5ed5daa65d5f665e666b76c3dbfa503066defde ] Since 25aaa75df1e6 SDMA driver uses clock rates of "ipg" and "ahb" clock to determine if it needs to configure the IP block as operating at 1:1 or 1:2 clock ratio (ACR bit in SDMAARM_CONFIG). Specifying both clocks as IMX6SLL_CLK_SDMA re

[PATCH 5.1 110/155] ARM: dts: imx7d: Specify IMX7D_CLK_IPG as "ipg" clock to SDMA

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 412b032a1dc72fc9d1c258800355efa6671b6315 ] Since 25aaa75df1e6 SDMA driver uses clock rates of "ipg" and "ahb" clock to determine if it needs to configure the IP block as operating at 1:1 or 1:2 clock ratio (ACR bit in SDMAARM_CONFIG). Specifying both clocks as IMX7D_CLK_SDMA resu

[PATCH 5.1 106/155] ARM: dts: imx50: Specify IMX5_CLK_IPG as "ahb" clock to SDMA

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit b7b4fda2636296471e29b78c2aa9535d7bedb7a0 ] Since 25aaa75df1e6 SDMA driver uses clock rates of "ipg" and "ahb" clock to determine if it needs to configure the IP block as operating at 1:1 or 1:2 clock ratio (ACR bit in SDMAARM_CONFIG). Specifying both clocks as IMX5_CLK_SDMA resul

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

2019-06-13 Thread David Laight
From: David Laight > Sent: 12 June 2019 15:18 > From: Oleg Nesterov > > Sent: 12 June 2019 14:46 > > On 06/11, David Laight wrote: > > > > > > If I have an application that has a loop with a pselect call that > > > enables SIGINT (without a handler) and, for whatever reason, > > > one of the fd is

[PATCH 5.1 107/155] ARM: dts: imx53: Specify IMX5_CLK_IPG as "ahb" clock to SDMA

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 28c168018e0902c67eb9c60d0fc4c8aa166c4efe ] Since 25aaa75df1e6 SDMA driver uses clock rates of "ipg" and "ahb" clock to determine if it needs to configure the IP block as operating at 1:1 or 1:2 clock ratio (ACR bit in SDMAARM_CONFIG). Specifying both clocks as IMX5_CLK_SDMA resul

[PATCH 5.1 104/155] arm64: dts: imx8mq: Mark iomuxc_gpr as i.MX6Q compatible

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit beea0f22566cb32c35de89ab0980852b5bbc1c60 ] Mark iomuxc_gpr as compatible with "fsl,imx6q-iomuxc-gpr" in order for to allow i.MX6 PCIe driver to use it. Signed-off-by: Andrey Smirnov Acked-by: Lucas Stach Reviewed-by: Fabio Estevam Cc: Shawn Guo Cc: Fabio Estevam Cc: Chris H

[PATCH 5.1 103/155] soc: rockchip: Set the proper PWM for rk3288

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit bbdc00a7de24cc90315b1775fb74841373fe12f7 ] The rk3288 SoC has two PWM implementations available, the "old" implementation and the "new" one. You can switch between the two of them by flipping a bit in the grf. The "old" implementation is the default at chip power up but isn't t

[PATCH 5.1 105/155] ARM: dts: imx51: Specify IMX5_CLK_IPG as "ahb" clock to SDMA

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 918bbde8085ae147a43dcb491953e0dd8f3e9d6a ] Since 25aaa75df1e6 SDMA driver uses clock rates of "ipg" and "ahb" clock to determine if it needs to configure the IP block as operating at 1:1 or 1:2 clock ratio (ACR bit in SDMAARM_CONFIG). Specifying both clocks as IMX5_CLK_SDMA resul

[PATCH 5.1 102/155] iommu/vt-d: Flush IOTLB for untrusted device in time

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit f7b0c4ce8cb3c09cb3cbfc0c663268bf99e5fa9c ] By default, for performance consideration, Intel IOMMU driver won't flush IOTLB immediately after a buffer is unmapped. It schedules a thread and flushes IOTLB in a batched mode. This isn't suitable for untrusted device since it still ca

[PATCH 5.1 074/155] PCI: designware-ep: Use aligned ATU window for raising MSI interrupts

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 6b7330303a8186fb211357e6d379237fe9d2ece1 ] Certain platforms like K2G reguires the outbound ATU window to be aligned. The alignment size is already present in mem->page_size. Use the alignment size present in mem->page_size to configure an aligned ATU window. In order to raise an

[PATCH 5.1 088/155] vfio: Fix WARNING "do not call blocking ops when !TASK_RUNNING"

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 41be3e2618174fdf3361e49e64f2bf530f40c6b0 ] vfio_dev_present() which is the condition to wait_event_interruptible_timeout(), will call vfio_group_get_device and try to acquire the mutex group->device_lock. wait_event_interruptible_timeout() will set the state of the current task

[PATCH 5.1 070/155] blk-mq: move cancel of requeue_work into blk_mq_release

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit fbc2a15e3433058582e5635aabe48a3011a644a8 ] With holding queue's kobject refcount, it is safe for driver to schedule requeue. However, blk_mq_kick_requeue_list() may be called after blk_sync_queue() is done because of concurrent requeue activities, then requeue work may not be com

[PATCH 5.1 071/155] iommu/vt-d: Set intel_iommu_gfx_mapped correctly

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit cf1ec4539a50bdfe688caad4615ca47646884316 ] The intel_iommu_gfx_mapped flag is exported by the Intel IOMMU driver to indicate whether an IOMMU is used for the graphic device. In a virtualized IOMMU environment (e.g. QEMU), an include-all IOMMU is used for graphic device. This flag

[PATCH 5.1 072/155] vfio-pci/nvlink2: Fix potential VMA leak

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 2c85f2bd519457073444ec28bbb4743a4e4237a7 ] If vfio_pci_register_dev_region() fails then we should rollback previous changes, ie. unmap the ATSD registers. Fixes: 7f92891778df ("vfio_pci: Add NVIDIA GV100GL [Tesla V100 SXM2] subdriver") Signed-off-by: Greg Kurz Reviewed-by: Alex

[PATCH 5.1 087/155] nfsd: avoid uninitialized variable warning

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 0ab88ca4bcf18ba21058d8f19220f60afe0d34d8 ] clang warns that 'contextlen' may be accessed without an initialization: fs/nfsd/nfs4xdr.c:2911:9: error: variable 'contextlen' is uninitialized when used here [-Werror,-Wuninitialized]

[PATCH 5.1 089/155] iommu/arm-smmu-v3: Dont disable SMMU in kdump kernel

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 3f54c447df34ff9efac7809a4a80fd3208efc619 ] Disabling the SMMU when probing from within a kdump kernel so that all incoming transactions are terminated can prevent the core of the crashed kernel from being transferred off the machine if all I/O devices are behind the SMMU. Instea

[PATCH 5.1 086/155] nfsd: allow fh_want_write to be called twice

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 0b8f62625dc309651d0efcb6a6247c933acd8b45 ] A fuzzer recently triggered lockdep warnings about potential sb_writers deadlocks caused by fh_want_write(). Looks like we aren't careful to pair each fh_want_write() with an fh_drop_write(). It's not normally a problem since fh_put()

[PATCH 5.1 093/155] soc/tegra: pmc: Remove reset sysfs entries on error

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit a46b51cd2a57d52d5047e1d48240536243eeab34 ] Commit 5f84bb1a4099 ("soc/tegra: pmc: Add sysfs entries for reset info") added sysfs entries for Tegra reset source and level. However, these sysfs are not removed on error and so if the registering of PMC device is probe deferred, then

[PATCH 5.1 073/155] misc: pci_endpoint_test: Fix test_reg_bar to be updated in pci_endpoint_test

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 8f220664570e755946db1282f48e07f26e1f2cb4 ] commit 834b90519925 ("misc: pci_endpoint_test: Add support for PCI_ENDPOINT_TEST regs to be mapped to any BAR") while adding test_reg_bar in order to map PCI_ENDPOINT_TEST regs to be mapped to any BAR failed to update test_reg_bar in pci

[PATCH 5.1 065/155] netfilter: nf_conntrack_h323: restore boundary check correctness

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit f5e85ce8e733c2547827f6268136b70b802eabdb ] Since commit bc7d811ace4a ("netfilter: nf_ct_h323: Convert CHECK_BOUND macro to function"), NAT traversal for H.323 doesn't work, failing to parse H323-UserInformation. nf_h323_error_boundary() compares contents of the bitstring, not the

[PATCH 5.1 091/155] net: thunderbolt: Unregister ThunderboltIP protocol handler when suspending

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 9872760eb7b1d4f6066ad8b560714a5d0a728fdb ] The XDomain protocol messages may start as soon as Thunderbolt control channel is started. This means that if the other host starts sending ThunderboltIP packets early enough they will be passed to the network driver which then gets conf

[PATCH 5.1 068/155] watchdog: imx2_wdt: Fix set_timeout for big timeout values

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit b07e228eee69601addba98b47b1a3850569e5013 ] The documentated behavior is: if max_hw_heartbeat_ms is implemented, the minimum of the set_timeout argument and max_hw_heartbeat_ms should be used. This patch implements this behavior. Previously only the first 7bits were used and the i

[PATCH 5.1 082/155] iommu/vt-d: Dont request page request irq under dmar_global_lock

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit a7755c3cfa5df755e39447b08c28203e011fb98c ] Requesting page reqest irq under dmar_global_lock could cause potential lock race condition (caught by lockdep). [4.100055] == [4.100063] WARNING: possible circular locking dep

Re: [PATCH V3 4/4] soc/tegra: select pinctrl for Tegra194

2019-06-13 Thread Thierry Reding
On Thu, May 16, 2019 at 05:23:14PM +0530, Krishna Yarlagadda wrote: > Select PINCTRL_TEGRA194 by default for Tegra194 SOC needed > for dynamically controlling PCIe pins > > Signed-off-by: Krishna Yarlagadda > --- > drivers/soc/tegra/Kconfig | 1 + > 1 file changed, 1 insertion(+) Applied to for

[PATCH 5.1 067/155] netfilter: nf_tables: fix base chain stat rcu_dereference usage

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit edbd82c5fba009f68d20b5db585be1e667c605f6 ] Following splat gets triggered when nfnetlink monitor is running while xtables-nft selftests are running: net/netfilter/nf_tables_api.c:1272 suspicious rcu_dereference_check() usage! other info that might help us debug this: 1 lock hel

[PATCH 5.1 090/155] switchtec: Fix unintended mask of MRPC event

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 083c1b5e50b701899dc32445efa8b153685260d5 ] When running application tool switchtec-user's `firmware update` and `event wait` commands concurrently, sometimes the firmware update speed reduced significantly. It is because when the MRPC event happened after MRPC event occurrence c

[PATCH 5.1 085/155] fuse: retrieve: cap requested size to negotiated max_write

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 7640682e67b33cab8628729afec8ca92b851394f ] FUSE filesystem server and kernel client negotiate during initialization phase, what should be the maximum write size the client will ever issue. Correspondingly the filesystem server then queues sys_read calls to read requests with buff

[PATCH 5.1 084/155] nvmem: sunxi_sid: Support SID on A83T and H5

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit da75b8909756160b8e785104ba421a20b756c975 ] The device tree binding already lists compatible strings for these two SoCs. They don't have the defect as seen on the H3, and the size and register layout is the same as the A64. Furthermore, the driver does not include nvmem cell defin

Re: linux-next: Tree for Jun 12 (amdgpu: dcn10_hw_sequencer)

2019-06-13 Thread Alex Deucher
On Thu, Jun 13, 2019 at 3:27 AM Randy Dunlap wrote: > > On 6/12/19 12:00 AM, Stephen Rothwell wrote: > > Hi all, > > > > Changes since 20190611: > > > > on x86_64: > > ../drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c: In > function ‘dcn10_apply_ctx_for_surface’: > ../drivers

[PATCH 5.1 083/155] nvmem: core: fix read buffer in place

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 2fe518fecb3a4727393be286db9804cd82ee2d91 ] When the bit_offset in the cell is zero, the pointer to the msb will not be properly initialized (ie, will still be pointing to the first byte in the buffer). This being the case, if there are bits to clear in the msb, those will be lef

[PATCH 5.1 080/155] powerpc/pseries: Track LMB nid instead of using device tree

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit b2d3b5ee66f2a04a918cc043cec0c9ed3de58f40 ] When removing memory we need to remove the memory from the node it was added to instead of looking up the node it should be in in the device tree. During testing we have seen scenarios where the affinity for a LMB changes due to a parti

[PATCH 5.1 081/155] arm64: defconfig: Update UFSHCD for Hi3660 soc

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 7b3320e6b1795d68b7e30eb3fad0860f2664aedd ] Commit 7ee7ef24d02d ("scsi: arm64: defconfig: enable configs for Hisilicon ufs") set 'CONFIG_SCSI_UFS_HISI=y', but the configs it depends on (CONFIG_SCSI_HFSHCD_PLATFORM && CONFIG_SCSI_UFSHCD) were left to being built as modules. Co

[PATCH 5.1 079/155] ALSA: hda - Register irq handler after the chip initialization

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit f495222e28275222ab6fd93813bd3d462e16d340 ] Currently the IRQ handler in HD-audio controller driver is registered before the chip initialization. That is, we have some window opened between the azx_acquire_irq() call and the CORB/RIRB setup. If an interrupt is triggered in this

Re: [PATCH] vfs: fsmount: add missing mntget()

2019-06-13 Thread Miklos Szeredi
On Wed, Jun 12, 2019 at 11:43:13AM -0700, Eric Biggers wrote: > From: Eric Biggers > > sys_fsmount() needs to take a reference to the new mount when adding it > to the anonymous mount namespace. Otherwise the filesystem can be > unmounted while it's still in use, as found by syzkaller. So it ne

[PATCH 5.1 076/155] nvme-pci: shutdown on timeout during deletion

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 9dc1a38ef1925d23c2933c5867df816386d92ff8 ] We do not restart a controller in a deleting state for timeout errors. When in this state, unblock potential request dispatchers with failed completions by shutting down the controller on timeout detection. Reported-by: Yufen Yu Signed

[PATCH 5.1 038/155] EDAC/mpc85xx: Prevent building as a module

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 2b8358a951b1e2a534a54924cd8245e58a1c5fb8 ] The mpc85xx EDAC driver can be configured as a module but then fails to build because it uses two unexported symbols: ERROR: ".pci_find_hose_for_OF_device" [drivers/edac/mpc85xx_edac_mod.ko] undefined! ERROR: ".early_find_capabilit

[PATCH 5.1 078/155] netfilter: nf_flow_table: fix netdev refcnt leak

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 26a302afbe328ecb7507cae2035d938e6635131b ] flow_offload_alloc() calls nf_route() to get a dst_entry. Internally, nf_route() calls ip_route_output_key() that allocates a dst_entry and holds it. So, a dst_entry should be released by dst_release() if nf_route() is successful. Other

[PATCH 5.1 077/155] netfilter: nf_flow_table: check ttl value in flow offload data path

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 33cc3c0cfa64c86b6c4bbee86997aea638534931 ] nf_flow_offload_ip_hook() and nf_flow_offload_ipv6_hook() do not check ttl value. So, ttl value overflow may occur. Fixes: 97add9f0d66d ("netfilter: flow table support for IPv4") Fixes: 0995210753a2 ("netfilter: flow table support for I

[PATCH 5.1 066/155] mips: Make sure dt memory regions are valid

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 93fa5b280761a4dbb14c5330f260380385ab2b49 ] There are situations when memory regions coming from dts may be too big for the platform physical address space. This especially concerns XPA-capable systems. Bootloader may determine more than 4GB memory available and pass it to the ker

[PATCH 5.1 075/155] nvme-pci: unquiesce admin queue on shutdown

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit c8e9e9b7646ebe1c5066ddc420d7630876277eb4 ] Just like IO queues, the admin queue also will not be restarted after a controller shutdown. Unquiesce this queue so that we do not block request dispatch on a permanently disabled controller. Reported-by: Yufen Yu Signed-off-by: Keith

[PATCH 5.1 047/155] f2fs: fix to clear dirty inode in error path of f2fs_iget()

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 546d22f070d64a7b96f57c9772085d3a5e6d ] As Jungyeon reported in bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=203217 - Overview When mounting the attached crafted image and running program, I got this error. Additionally, it hangs on sync after running the program.

[PATCH 5.1 046/155] f2fs: fix to do sanity check on free nid

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 626bcf2b7ce87211dba565f2bfa7842ba5be5c1b ] As Jungyeon reported in bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=203225 - Overview When mounting the attached crafted image and unmounting it, following errors are reported. Additionally, it hangs on sync after unmounting

[PATCH 5.1 044/155] f2fs: fix error path of recovery

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 988385795c7f46b231982d54750587f204bd558b ] There are some places in where we missed to unlock page or unlock page incorrectly, fix them. Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/recovery.c | 15 +++ 1 file changed,

[PATCH 5.1 045/155] f2fs: fix to avoid panic in f2fs_remove_inode_page()

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 8b6810f8acfe429fde7c7dad4714692cc5f75651 ] As Jungyeon reported in bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=203219 - Overview When mounting the attached crafted image and running program, I got this error. Additionally, it hangs on sync after running the program.

[PATCH 5.1 043/155] f2fs: fix to avoid panic in f2fs_inplace_write_data()

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 05573d6ccf702df549a7bdeabef31e4753df1a90 ] As Jungyeon reported in bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=203239 - Overview When mounting the attached crafted image and running program, following errors are reported. Additionally, it hangs on sync after running

[PATCH 5.1 041/155] ntp: Allow TAI-UTC offset to be set to zero

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit fdc6bae940ee9eb869e493990540098b8c0fd6ab ] The ADJ_TAI adjtimex mode sets the TAI-UTC offset of the system clock. It is typically set by NTP/PTP implementations and it is automatically updated by the kernel on leap seconds. The initial value is zero (which applications may interp

[PATCH 5.1 064/155] netfilter: nf_flow_table: fix missing error check for rhashtable_insert_fast

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 43c8f131184faf20c07221f3e09724611c6525d8 ] rhashtable_insert_fast() may return an error value when memory allocation fails, but flow_offload_add() does not check for errors. This patch just adds missing error checking. Fixes: ac2a5e23 ("netfilter: add generic flow table infr

[PATCH] ALSA: pci: echoaudio: remove variable which is a constant

2019-06-13 Thread Wolfram Sang
Checking a variable which is always '1' has no use. Signed-off-by: Wolfram Sang --- Only build tested. Found by static code analysis of similar patterns. sound/pci/echoaudio/echoaudio_dsp.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sound/pci/echoaudio/echoaudio

[PATCH 5.1 042/155] f2fs: fix to avoid panic in do_recover_data()

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 22d61e286e2d9097dae36f75ed48801056b77cac ] As Jungyeon reported in bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=203227 - Overview When mounting the attached crafted image, following errors are reported. Additionally, it hangs on sync after trying to mount it. The imag

[PATCH 5.1 040/155] mailbox: stm32-ipcc: check invalid irq

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 68a1c8485cf83734d4da9d81cd3b5d2ae7c0339b ] On failure of_irq_get() returns a negative value or zero, which is not handled as an error in the existing implementation. Instead of using this API, use platform_get_irq() that returns exclusively a negative value on failure. Also, do n

[PATCH 5.1 062/155] ovl: do not generate duplicate fsnotify events for "fake" path

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit d989903058a83e8536cc7aadf9256a47d5c173fe ] Overlayfs "fake" path is used for stacked file operations on underlying files. Operations on files with "fake" path must not generate fsnotify events with path data, because those events have already been generated at overlayfs layer an

Re: [GIT PULL] HID fixes for 5.2-rc

2019-06-13 Thread pr-tracker-bot
The pull request you sent on Thu, 13 Jun 2019 16:37:20 +0200 (CEST): > git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/c11fb13a117e5a6736481c779cb971249ed96016 Thank you! -- Deet-doot-dot, I am a bot

[PATCH 5.1 056/155] percpu: remove spurious lock dependency between percpu and sched

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 198790d9a3aeaef5792d33a560020861126edc22 ] In free_percpu() we sometimes call pcpu_schedule_balance_work() to queue a work item (which does a wakeup) while holding pcpu_lock. This creates an unnecessary lock dependency between pcpu_lock and the scheduler's pi_lock. There are oth

[PATCH 5.1 055/155] media: atmel: atmel-isc: fix asd memory allocation

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 1e4e25c4959c10728fbfcc6a286f9503d32dfe02 ] The subsystem will free the asd memory on notifier cleanup, if the asd is added to the notifier. However the memory is freed using kfree. Thus, we cannot allocate the asd using devm_* This can lead to crashes and problems. To test this i

[PATCH 5.1 061/155] fbcon: Dont reset logo_shown when logo is currently shown

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit 3c5a1b111373e669c8220803464c3a508a87e254 ] When the logo is currently drawn on a virtual console, and the console loglevel is reduced to quiet, logo_shown must be left alone, so that it the scrolling region on that virtual console is properly reset. Fixes: 10993504d647 ("fbcon:

[PATCH 5.1 060/155] PCI: dwc: Free MSI IRQ page in dw_pcie_free_msi()

2019-06-13 Thread Greg Kroah-Hartman
[ Upstream commit dc69a3d567941784c3d00e1d0834582b42b0b3e7 ] To avoid a memory leak, free the page allocated for MSI IRQ in dw_pcie_free_msi(). Signed-off-by: Jisheng Zhang Signed-off-by: Lorenzo Pieralisi Signed-off-by: Bjorn Helgaas Acked-by: Gustavo Pimentel Signed-off-by: Sasha Levin ---

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