[PATCH AUTOSEL 4.20 101/304] thermal: Fix locking in cooling device sysfs update cur_state

2019-01-28 Thread Sasha Levin
From: Thara Gopinath [ Upstream commit 68000a0d983f539c95ebe5dccd4f29535c7ac0af ] Sysfs interface to update cooling device cur_state does not currently holding cooling device lock sometimes leading to stale values in cur_state if getting updated simultanelously from user space and thermal framew

[PATCH AUTOSEL 4.20 104/304] mt76x0: dfs: fix IBI_R11 configuration on non-radar channels

2019-01-28 Thread Sasha Levin
From: Lorenzo Bianconi [ Upstream commit 6bf4a8e902aad7df55d7f2b10b850cfa3f880996 ] Fix IBI_R11 configuration on non-radar channels for mt76x0e driver. This patch improve system stability under heavy load. Moreover use IBI_R11 name and remove magic numbers for 0x212c register Fixes: 0c3b3abc925

[PATCH AUTOSEL 4.20 103/304] s390/zcrypt: improve special ap message cmd handling

2019-01-28 Thread Sasha Levin
From: Harald Freudenberger [ Upstream commit be534791011100d204602e2e0496e9e6ce8edf63 ] There exist very few ap messages which need to have the 'special' flag enabled. This flag tells the firmware layer to do some pre- and maybe postprocessing. However, it may happen that this special flag is en

[PATCH AUTOSEL 4.20 111/304] ARM: dts: aspeed: add missing memory unit-address

2019-01-28 Thread Sasha Levin
From: Rob Herring [ Upstream commit 8ef86955fe59f7912a40d57ae4c6d511f0187b4d ] The base aspeed-g5.dtsi already defines a '/memory@8000' node, so '/memory' in the board files create a duplicate node. We're probably getting lucky that the bootloader fixes up the memory node that the kernel end

[PATCH AUTOSEL 4.20 109/304] nfp: add locking around representor changes

2019-01-28 Thread Sasha Levin
From: Jakub Kicinski [ Upstream commit 71844fac1ed459024dd2a448d63d5b28b8c87daa ] Up until now we never needed to keep a networking locks around representors accesses, we only accessed them when device was reconfigured (under nfp pf->lock) or on fast path (under RCU). Now we want to be able to i

[PATCH AUTOSEL 4.20 114/304] media: i2c: TDA1997x: select CONFIG_HDMI

2019-01-28 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit 79e89e36dc8a47ef965a35b484d737a5227feed1 ] Without CONFIG_HDMI, we get a link error for this driver: drivers/media/i2c/tda1997x.o: In function `tda1997x_parse_infoframe': tda1997x.c:(.text+0x2195): undefined reference to `hdmi_infoframe_unpack' tda1997x.c:(

[PATCH AUTOSEL 4.20 113/304] x86/fpu: Add might_fault() to user_insn()

2019-01-28 Thread Sasha Levin
From: Sebastian Andrzej Siewior [ Upstream commit 6637401c35b2f327a35d27f44bda05e327f2f017 ] Every user of user_insn() passes an user memory pointer to this macro. Add might_fault() to user_insn() so we can spot users which are using this macro in sections where page faulting is not allowed.

[PATCH AUTOSEL 4.20 108/304] ARM: dts: mmp2: fix TWSI2

2019-01-28 Thread Sasha Levin
From: Lubomir Rintel [ Upstream commit 1147e05ac9fc2ef86a3691e7ca5c2db7602d81dd ] Marvell keeps their MMP2 datasheet secret, but there are good clues that TWSI2 is not on 0xd4025000 on that platform, not does it use IRQ 58. In fact, the IRQ 58 on MMP2 seems to be a signal processor: arch/arm

[PATCH AUTOSEL 4.20 105/304] mt76x0: use band parameter for LC calibration

2019-01-28 Thread Sasha Levin
From: Stanislaw Gruszka [ Upstream commit ad3f993a0857ad3b792e7463828eb0d90cdd6f4d ] We use always 1 as band parameter for MCU_CAL_LC, this break 2GHz, we should use 0 for this band instead. Patch fixes problems happened sometimes when try to associate with 2GHz AP and manifest by errors like b

[PATCH AUTOSEL 4.20 106/304] arm64: ftrace: don't adjust the LR value

2019-01-28 Thread Sasha Levin
From: Mark Rutland [ Upstream commit 6e803e2e6e367db9a0d6ecae1bd24bb5752011bd ] The core ftrace code requires that when it is handed the PC of an instrumented function, this PC is the address of the instrumented instruction. This is necessary so that the core ftrace code can identify the specifi

[PATCH AUTOSEL 4.20 112/304] spi: fix spi-at91-usart.c build errors when PINCTRL is not set

2019-01-28 Thread Sasha Levin
From: Randy Dunlap [ Upstream commit c2b142cc3939e932d4fa2210c2a5155df5736590 ] Fix build errors when CONFIG_PINCTRL is not enabled. The header file handles both CONFIG_PINCTRL enabled and disabled cases. CC [M] drivers/spi/spi-at91-usart.o ../drivers/spi/spi-at91-usart.c: In function 'at91

[PATCH AUTOSEL 4.20 123/304] timekeeping: Use proper seqcount initializer

2019-01-28 Thread Sasha Levin
From: Bart Van Assche [ Upstream commit ce10a5b3954f2514af726beb78ed8d7350c5e41c ] tk_core.seq is initialized open coded, but that misses to initialize the lockdep map when lockdep is enabled. Lockdep splats involving tk_core seq consequently lack a name and are hard to read. Use the proper ini

[PATCH AUTOSEL 4.20 118/304] xtensa: xtfpga.dtsi: fix dtc warnings about SPI

2019-01-28 Thread Sasha Levin
From: Max Filippov [ Upstream commit f37598be4e3896359e87c824be57c280cc3f ] Rename SPI controller node in the XTFPGA DTS to spi@... This fixes the following build warnings: arch/xtensa/boot/dts/kc705_nommu.dtb: Warning (spi_bus_bridge): /soc/spi-master@0d0a: node name for SPI buses sho

[PATCH AUTOSEL 4.20 124/304] usb: mtu3: fix the issue about SetFeature(U1/U2_Enable)

2019-01-28 Thread Sasha Levin
From: Chunfeng Yun [ Upstream commit a0678e2eed41e81004308693ac84ea95614b0920 ] Fix the issue: device doesn't accept LGO_U1/U2: 1. set SW_U1/U2_ACCEPT_ENABLE to eanble controller to accept LGO_U1/U2 by default; 2. enable/disable controller to initiate requests for transition into U1/U2 b

[PATCH AUTOSEL 4.20 120/304] dmaengine: sprd: Support DMA link-list cyclic callback

2019-01-28 Thread Sasha Levin
From: Eric Long [ Upstream commit 97dbd6ea02beb3a7027c158e0a110b5095268d59 ] The Spreadtrum DMA link-list mode is always one cyclic transfer, so we should clear the SPRD_DMA_LLIST_END flag for the link-list configuration. Moreover add cyclic callback support for the cyclic transfer. Signed-off-

[PATCH AUTOSEL 4.20 122/304] usb: hub: delay hub autosuspend if USB3 port is still link training

2019-01-28 Thread Sasha Levin
From: Mathias Nyman [ Upstream commit e86108940e541febf35813402ff29fa6f4a9ac0b ] When initializing a hub we want to give a USB3 port in link training the same debounce delay time before autosuspening the hub as already trained, connected enabled ports. USB3 ports won't reach the enabled state w

[PATCH AUTOSEL 4.20 115/304] media: DaVinci-VPBE: fix error handling in vpbe_initialize()

2019-01-28 Thread Sasha Levin
From: Alexey Khoroshilov [ Upstream commit aa35dc3c71950e3fec3e230c06c27c0fbd0067f8 ] If vpbe_set_default_output() or vpbe_set_default_mode() fails, vpbe_initialize() returns error code without releasing resources. The patch adds error handling for that case. Found by Linux Driver Verification

[PATCH AUTOSEL 4.20 117/304] smack: fix access permissions for keyring

2019-01-28 Thread Sasha Levin
From: Zoran Markovic [ Upstream commit 5b841bfab695e3b8ae793172a9ff7990f99cc3e2 ] Function smack_key_permission() only issues smack requests for the following operations: - KEY_NEED_READ (issues MAY_READ) - KEY_NEED_WRITE (issues MAY_WRITE) - KEY_NEED_LINK (issues MAY_WRITE) - KEY_NEED_SETAT

[PATCH AUTOSEL 4.20 126/304] media: imx274: select REGMAP_I2C

2019-01-28 Thread Sasha Levin
From: Luca Ceresoli [ Upstream commit 4f9d7225c70dd9d3f406b79e60f8dbd2cd5ae743 ] The imx274 driver uses regmap and the build will fail without it. Fixes: drivers/media/i2c/imx274.c:142:21: error: variable ‘imx274_regmap_config’ has initializer but incomplete type static const struct regm

[PATCH AUTOSEL 4.20 128/304] pinctrl: nuvoton: check for devm_kasprintf() failure

2019-01-28 Thread Sasha Levin
From: Nicholas Mc Guire [ Upstream commit 4be1eaf322f07bb9694618fd2763a3a1f0a3dd25 ] devm_kasprintf() may return NULL on failure of internal allocation thus the assignment to .label is not safe if not checked. On error npcm7xx_gpio_of() returns negative values so -ENOMEM in the (unlikely) fail

[PATCH AUTOSEL 4.20 134/304] IB/hfi1: Unreserve a reserved request when it is completed

2019-01-28 Thread Sasha Levin
From: Kaike Wan [ Upstream commit ca95f802ef5139722acc8d30aeaab6fe5bbe939e ] Currently, When a reserved operation is completed, its entry in the send queue will not be unreserved, which leads to the miscalculation of qp->s_avail and thus the triggering of a WARN_ON call trace. This patch fixes t

[PATCH AUTOSEL 4.20 136/304] gpio: mt7621: report failure of devm_kasprintf()

2019-01-28 Thread Sasha Levin
From: Nicholas Mc Guire [ Upstream commit 59d646c775d6ae688ee90fda9f2a4270c47b7490 ] kasprintf() may return NULL on failure of internal allocation thus the assigned label is not safe if not explicitly checked. On error mediatek_gpio_bank_probe() returns negative values so -ENOMEM in the (unlik

[PATCH AUTOSEL 4.20 130/304] tipc: fix node keep alive interval calculation

2019-01-28 Thread Sasha Levin
From: Hoang Le [ Upstream commit f5d6c3e5a359c0507800e7ac68d565c21de9b5a1 ] When setting LINK tolerance, node timer interval will be calculated base on the LINK with lowest tolerance. But when calculated, the old node timer interval only updated if current setting value (tolerance/4) less than

[PATCH AUTOSEL 4.20 137/304] gpio: mt7621: pass mediatek_gpio_bank_probe() failure up the stack

2019-01-28 Thread Sasha Levin
From: Nicholas Mc Guire [ Upstream commit a109c2dbb571b10bb9969285b646f57309c98251 ] The error cases of mediatek_gpio_bank_probe() would go unnoticed (except for the dev_err() messages). The probe function should return an error if one of the banks failed to initialize properly indicated by not

Re: [PATCH] platform/x86: wmi: fix potential null pointer dereferences

2019-01-28 Thread Andy Shevchenko
On Mon, Jan 28, 2019 at 4:39 PM Mattias Jacobsson <2...@mok.nu> wrote: > On 2019-01-27, Andy Shevchenko wrote: > > On Tue, Jan 22, 2019 at 10:04 PM Mattias Jacobsson <2...@mok.nu> wrote: > > > - struct wmi_driver *wmi_driver = > > > - container_of(driver, struct wmi_driver, dri

[PATCH AUTOSEL 4.20 129/304] drm/amdgpu/powerplay: fix clock stretcher limits on polaris (v2)

2019-01-28 Thread Sasha Levin
From: Alex Deucher [ Upstream commit de4aaab5cc9770a8c4dc13d9bfb6a83b06bba57e ] Adjust limits for newer polaris variants. v2: fix polaris11 kicker (Jerry) Reviewed-by: Junwei Zhang Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- .../drm/amd/powerplay/smumgr/polaris10_smumgr.c |

[PATCH AUTOSEL 4.20 133/304] kobject: return error code if writing /sys/.../uevent fails

2019-01-28 Thread Sasha Levin
From: Peter Rajnoha [ Upstream commit df44b479654f62b478c18ee4d8bc4e9f897a9844 ] Propagate error code back to userspace if writing the /sys/.../uevent file fails. Before, the write operation always returned with success, even if we failed to recognize the input string or if we failed to generate

[PATCH AUTOSEL 4.20 140/304] media: v4l2-device: Link subdevices to their parent devices if available

2019-01-28 Thread Sasha Levin
From: Tomasz Figa [ Upstream commit ee494cf377e142f65f202fadf0d859f8e12119fb ] Currently v4l2_device_register_subdev_nodes() does not initialize the dev_parent field of the video_device structs it creates for subdevices being registered. This leads to __video_register_device() falling back to th

[PATCH AUTOSEL 4.20 138/304] pinctrl: sx150x: handle failure case of devm_kstrdup

2019-01-28 Thread Sasha Levin
From: Nicholas Mc Guire [ Upstream commit a9d9f6b83f1bb05da849b3540e6d1f70ef1c2343 ] devm_kstrdup() may return NULL if internal allocation failed. Thus using label, name is unsafe without checking. Therefor in the unlikely case of allocation failure, sx150x_probe() simply returns -ENOMEM. Sig

[PATCH AUTOSEL 4.20 142/304] ARM: dts: Fix OMAP4430 SDP Ethernet startup

2019-01-28 Thread Sasha Levin
From: Russell King - ARM Linux [ Upstream commit 84fb6c7feb1494ebb7d1ec8b95cfb7ada0264465 ] It was noticed that unbinding and rebinding the KSZ8851 ethernet resulted in the driver reporting "failed to read device ID" at probe. Probing the reset line with a 'scope while repeatedly attempting to b

[PATCH AUTOSEL 4.20 141/304] ARM: OMAP1: ams-delta: Fix audio permanently muted

2019-01-28 Thread Sasha Levin
From: Janusz Krzysztofik [ Upstream commit 2afdb4c41d7876e430b9bc6e2d7e2fe28609fd6a ] Since commit 1137ceee76ba ("ARM: OMAP1: ams-delta: Don't request unused GPIOs"), on-board audio has appeared muted. Believed to be unused GPIO pin "hookflash1", apparently set high regardless of the correspond

[PATCH AUTOSEL 4.20 143/304] mips: bpf: fix encoding bug for mm_srlv32_op

2019-01-28 Thread Sasha Levin
From: Jiong Wang [ Upstream commit 17f6c83fb5ebf7db4fcc94a5be4c22d5a7bfe428 ] For micro-mips, srlv inside POOL32A encoding space should use 0x50 sub-opcode, NOT 0x90. Some early version ISA doc describes the encoding as 0x90 for both srlv and srav, this looks to me was a typo. I checked Binutil

[PATCH AUTOSEL 4.20 145/304] arm64: dts: meson: Fix IRQ trigger type for macirq

2019-01-28 Thread Sasha Levin
From: Carlo Caione [ Upstream commit 8b3e6f8999f8d704fccce225b9455b3fa639d1c9 ] A long running stress test on a custom board shipping an AXG SoCs and a Realtek RTL8211F PHY revealed that after a few hours the connection speed would drop drastically, from ~1000Mbps to ~3Mbps. At the same time the

[PATCH AUTOSEL 4.20 144/304] media: coda: fix H.264 deblocking filter controls

2019-01-28 Thread Sasha Levin
From: Philipp Zabel [ Upstream commit 75fa6e4f83a0923fe753827d354998d448b4fd6a ] Add support for the third loop filter mode V4L2_MPEG_VIDEO_H264_LOOP_FILTER_MODE_DISABLED_AT_SLICE_BOUNDARY, and fix V4L2_CID_MPEG_VIDEO_H264_LOOP_FILTER_ALPHA and V4L2_CID_MPEG_VIDEO_H264_LOOP_FILTER_BETA controls.

[PATCH AUTOSEL 4.20 151/304] usb: dwc3: gadget: Disable CSP for stream OUT ep

2019-01-28 Thread Sasha Levin
From: Tejas Joglekar [ Upstream commit 244add8ebfb231c39db9e33b204bd0ce8f24f782 ] In stream mode, when fast-forwarding TRBs, the stream number is not cleared causing the new stream to not get assigned. So we don't want controller to carry on transfers when short packet is received. So disable th

[PATCH AUTOSEL 4.20 154/304] iommu/arm-smmu-v3: Use explicit mb() when moving cons pointer

2019-01-28 Thread Sasha Levin
From: Will Deacon [ Upstream commit a868e8530441286342f90c1fd9c5f24de3aa2880 ] After removing an entry from a queue (e.g. reading an event in arm_smmu_evtq_thread()) it is necessary to advance the MMIO consumer pointer to free the queue slot back to the SMMU. A memory barrier is required here so

[PATCH AUTOSEL 4.20 156/304] clk: imx6sl: ensure MMDC CH0 handshake is bypassed

2019-01-28 Thread Sasha Levin
From: Anson Huang [ Upstream commit 0efcc2c0fd2001a83240a8c3d71f67770484917e ] Same as other i.MX6 SoCs, ensure unused MMDC channel's handshake is bypassed, this is to make sure no request signal will be generated when periphe_clk_sel is changed or SRC warm reset is triggered. Signed-off-by: An

[PATCH AUTOSEL 4.20 159/304] OPP: Use opp_table->regulators to verify no regulator case

2019-01-28 Thread Sasha Levin
From: Viresh Kumar [ Upstream commit 90e3577b5feb42bac1269e16bb3d2bdd8f6df40f ] The value of opp_table->regulator_count is not very consistent right now and it may end up being 0 while we do have a "opp-microvolt" property in the OPP table. It was kept that way as we used to check if any regulat

[PATCH AUTOSEL 4.20 157/304] platform/x86: mlx-platform: Fix tachometer registers

2019-01-28 Thread Sasha Levin
From: Vadim Pasternak [ Upstream commit edd45cba5ed7f53974475ddc9a1453c2c87b3328 ] Shift by one the registers for tachometers (7 - 12). This fix is relevant for the same new systems MQMB7, MSN37, MSN34, which are about to be released to the customers. At the moment, none of them is at customers

[PATCH AUTOSEL 4.20 146/304] ARM: dts: Fix up the D-Link DIR-685 MTD partition info

2019-01-28 Thread Sasha Levin
From: Linus Walleij [ Upstream commit 738a05e673435afb986b53da43befd83ad87ec3b ] The vendor firmware was analyzed to get the right idea about this flash layout. /proc/mtd contains: dev:size erasesize name mtd0: 01e7ff40 0002 "rootfs" mtd1: 01f4 0002 "upgrade" mtd2: 0004 0

[PATCH AUTOSEL 4.20 152/304] iommu/arm-smmu-v3: Avoid memory corruption from Hisilicon MSI payloads

2019-01-28 Thread Sasha Levin
From: Zhen Lei [ Upstream commit 84a9a75774961612d0c7dd34a1777e8f98a65abd ] The GITS_TRANSLATER MMIO doorbell register in the ITS hardware is architected to be 4 bytes in size, yet on hi1620 and earlier, Hisilicon have allocated the adjacent 4 bytes to carry some IMPDEF sideband information whic

[PATCH AUTOSEL 4.20 165/304] lightnvm: pblk: add lock protection to list operations

2019-01-28 Thread Sasha Levin
From: Hua Su [ Upstream commit fde201a466c6ad5efd72cb54fdf2cefa8b6c6ad7 ] Protect the list_add on the pblk_line_init_bb() error path in case this code is used for some other purpose in the future. Signed-off-by: Hua Su Reviewed-by: Javier González Signed-off-by: Matias Bjørling Signed-off-by

[PATCH AUTOSEL 4.20 149/304] watchdog: renesas_wdt: don't set divider while watchdog is running

2019-01-28 Thread Sasha Levin
From: Wolfram Sang [ Upstream commit e990e12741877e9bfac402ca468f4007a75f6e2a ] The datasheet says we must stop the timer before changing the clock divider. This can happen when the restart handler is called while the watchdog is running. Signed-off-by: Wolfram Sang Reviewed-by: Fabrizio Castr

[PATCH AUTOSEL 4.20 162/304] drm/msm: dpu: Only check flush register against pending flushes

2019-01-28 Thread Sasha Levin
From: Sean Paul [ Upstream commit 5f79e03b1f7c1b2cf0019ce6365fe5d52629813d ] There exists a case where a flush of a plane/dma may have been triggered & started from an async commit. If that plane/dma is subsequently disabled by the next commit, the flush register will continue to hold the flush

[PATCH AUTOSEL 4.20 147/304] tracing: Have trace_stack nr_entries compare not be so subtle

2019-01-28 Thread Sasha Levin
From: Dan Carpenter [ Upstream commit ca16b0fbb05242f18da9d810c07d3882ffed831c ] Dan Carpenter reviewed the trace_stack.c code and figured he found an off by one bug. "From reviewing the code, it seems possible for stack_trace_max.nr_entries to be set to .max_entries and in that case we wo

[PATCH AUTOSEL 4.20 160/304] tee: optee: avoid possible double list_del()

2019-01-28 Thread Sasha Levin
From: Zhizhou Zhang [ Upstream commit b2d102bd0146d9eb1fa630ca0cd19a15ef2f74c8 ] This bug occurs when: - a new request arrives, one thread(let's call it A) is pending in optee_supp_req() with req->busy is initial value false. - tee-supplicant is killed, then optee_supp_release() is called, t

[PATCH AUTOSEL 4.20 161/304] drm/msm/dsi: fix dsi clock names in DSI 10nm PLL driver

2019-01-28 Thread Sasha Levin
From: Abhinav Kumar [ Upstream commit c1866d44d149a1ea5c303632114fb6aa08cfd263 ] Fix the dsi clock names in the DSI 10nm PLL driver to match the names in the dispcc driver as those are according to the clock plan of the chipset. Changes in v2: - Update the clock diagram with the new clock name

[PATCH AUTOSEL 4.20 164/304] lightnvm: pblk: fix resubmission of overwritten write err lbas

2019-01-28 Thread Sasha Levin
From: Hans Holmberg [ Upstream commit c12fa401ac8c94a74aff68bb5736b3f1dc695fa8 ] Make sure we only look up valid lba addresses on the resubmission path. If an lba is invalidated in the write buffer, that sector will be submitted to disk (as it is already mapped to a ppa), and that write might f

[PATCH AUTOSEL 4.20 167/304] lightnvm: Fix uninitialized return value in nvm_get_chunk_meta()

2019-01-28 Thread Sasha Levin
From: Geert Uytterhoeven [ Upstream commit 55e58c5e78aad9d3246f57e7718cf5ee7adde9e3 ] With gcc 4.1: drivers/lightnvm/core.c: In function ‘nvm_get_bb_meta’: drivers/lightnvm/core.c:977: warning: ‘ret’ may be used uninitialized in this function and drivers/nvme/host/lightnvm.c: In

[PATCH AUTOSEL 4.20 168/304] phy: sun4i-usb: add support for missing USB PHY index

2019-01-28 Thread Sasha Levin
From: Icenowy Zheng [ Upstream commit 2659392e5c08dff626e6db1d739adff58a94604d ] The new Allwinner H6 SoC's USB2 PHY has two holes -- USB1 (which is a 3.0 port with dedicated PHY) and USB2 (which doesn't exist at all). Add support for this kind of missing USB PHY index. Signed-off-by: Icenowy

[PATCH AUTOSEL 4.20 169/304] mlxsw: spectrum_acl: Limit priority value

2019-01-28 Thread Sasha Levin
From: Nir Dotan [ Upstream commit d7263ab35be25505ab57ebecd93cbc5dba8be717 ] In Spectrum-2, higher priority value wins and priority valid values are in the range of {1,cap_kvd_size-1}. mlxsw_sp_acl_tcam_priority_get converts from lower-bound priorities alike tc flower to Spectrum-2 HW range. Up

[PATCH AUTOSEL 4.20 171/304] switchtec: Fix SWITCHTEC_IOCTL_EVENT_IDX_ALL flags overwrite

2019-01-28 Thread Sasha Levin
From: Joey Zhang [ Upstream commit e4a7dca5de625018b29417ecc39dc5037d9a5a36 ] In the ioctl_event_ctl() SWITCHTEC_IOCTL_EVENT_IDX_ALL case, we call event_ctl() several times with the same "ctl" struct. Each call clobbers ctl.flags, which leads to the problem that we may not actually enable or di

[PATCH AUTOSEL 4.20 172/304] selftests/bpf: use __bpf_constant_htons in test_prog.c

2019-01-28 Thread Sasha Levin
From: Stanislav Fomichev [ Upstream commit a0517a0f7ef23550b4484c37e2b9c2d32abebf64 ] For some reason, my older GCC (< 4.8) isn't smart enough to optimize the !__builtin_constant_p() branch in bpf_htons, I see: error: implicit declaration of function '__builtin_bswap16' Let's use __bpf_consta

[PATCH AUTOSEL 4.20 177/304] clk: qcom: Leave mmss noc on for 8998

2019-01-28 Thread Sasha Levin
From: Jeffrey Hugo [ Upstream commit 12eced09cd301aa7b1868a67c50a651c2aacd363 ] Similar to other qcom targets, gcc_mmss_noc_cfg_ahb_clk should not be disabled. Any mmss access depends on this clock, and its been observed that enabling mmssnoc_axi_rpm_clk with rpmcc results in an implicit access

[PATCH AUTOSEL 4.20 179/304] ipv6: Fix handling of LLA with VRF and sockets bound to VRF

2019-01-28 Thread Sasha Levin
From: David Ahern [ Upstream commit c2027d1e17582903e368abf5d4838b22a98f2b7b ] A recent commit allows sockets bound to a VRF to receive ipv6 link local packets. However, it only works for UDP and worse TCP connection attempts to the LLA with the only listener bound to the VRF just hang where as

[PATCH AUTOSEL 4.20 178/304] f2fs: fix to reorder set_page_dirty and wait_on_page_writeback

2019-01-28 Thread Sasha Levin
From: Chao Yu [ Upstream commit 8d64d365aed355b2e2465d19ba61df02462fff4d ] This patch reorders flow from - update page - set_page_dirty - wait_on_page_writeback to - wait_on_page_writeback - update page - set_page_dirty The reason is: - set_page_dirty will increase reference of dirty page, t

[PATCH AUTOSEL 4.20 173/304] ARM: pxa: avoid section mismatch warning

2019-01-28 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit 88af3209aa0881aa5ffd99664b6080a4be5f24e5 ] WARNING: vmlinux.o(.text+0x19f90): Section mismatch in reference from the function littleton_init_lcd() to the function .init.text:pxa_set_fb_info() The function littleton_init_lcd() references the function __init

[PATCH AUTOSEL 4.20 175/304] ARM: mmp: fix timer_init calls

2019-01-28 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit 12d3a30db4a3b3df5fbadf5974b9cf50544a9950 ] The change to passing the timer frequency as a function argument was a good idea, but caused a build failure for one user that was missed in the update: arch/arm/mach-mmp/time.c: In function 'mmp_dt_init_timer': ar

[PATCH AUTOSEL 4.20 174/304] ASoC: fsl: Fix SND_SOC_EUKREA_TLV320 build error on i.MX8M

2019-01-28 Thread Sasha Levin
From: Fabio Estevam [ Upstream commit add6883619a9e3bf9658eaff1a547354131bbcd9 ] eukrea-tlv320.c machine driver runs on non-DT platforms and include header file in order to be able to use some machine_is_eukrea_xxx() macros. Building it for ARM64 causes the following build error: sound/soc/fs

[PATCH AUTOSEL 4.20 182/304] mmc: bcm2835: Recover from MMC_SEND_EXT_CSD

2019-01-28 Thread Sasha Levin
From: Phil Elwell [ Upstream commit 07d405769afea5718529fc9e341f0b13b3189b6f ] If the user issues an "mmc extcsd read", the SD controller receives what it thinks is a SEND_IF_COND command with an unexpected data block. The resulting operations leave the FSM stuck in READWAIT, a state which persi

[PATCH AUTOSEL 4.20 185/304] memstick: Prevent memstick host from getting runtime suspended during card detection

2019-01-28 Thread Sasha Levin
From: Kai-Heng Feng [ Upstream commit e03e303edf1c63e6dd455ccd568c74e93ef3ba8c ] We can use MEMSTICK_POWER_{ON,OFF} along with pm_runtime_{get,put} helpers to let memstick host support runtime pm. The rpm count may go down to zero before the memstick host powers on, so the host can be runtime s

[PATCH AUTOSEL 4.20 181/304] KVM: PPC: Book3S: Only report KVM_CAP_SPAPR_TCE_VFIO on powernv machines

2019-01-28 Thread Sasha Levin
From: Suraj Jitindar Singh [ Upstream commit 693ac10a88a2219bde553b2e8460dbec97e594e6 ] The kvm capability KVM_CAP_SPAPR_TCE_VFIO is used to indicate the availability of in kernel tce acceleration for vfio. However it is currently the case that this is only available on a powernv machine, not fo

[PATCH AUTOSEL 4.20 189/304] mmc: jz4740: Get CD/WP GPIOs from descriptors

2019-01-28 Thread Sasha Levin
From: Linus Walleij [ Upstream commit 0c901c0566fb4edc2631c3786e5085a037be91f8 ] Modifty the JZ4740 driver to retrieve card detect and write protect GPIO pins from GPIO descriptors instead of hard-coded global numbers. Augment the only board file using this in the process and cut down on passed

[PATCH AUTOSEL 4.20 190/304] usb: renesas_usbhs: add support for RZ/G2E

2019-01-28 Thread Sasha Levin
From: Fabrizio Castro [ Upstream commit 1d6e81a288e28d8d0e38e0501a324216f79bba35 ] HS-USB found in RZ/G2E (a.k.a. r8a774c0) is very similar to the one found in R-Car E3 (a.k.a. r8a77990), as it needs to release the PLL reset by the UGCTRL register like R-Car E3, therefore add r8a774c0 support in

[PATCH AUTOSEL 4.20 191/304] btrfs: harden agaist duplicate fsid on scanned devices

2019-01-28 Thread Sasha Levin
From: Anand Jain [ Upstream commit a9261d4125c97ce8624e9941b75dee1b43ad5df9 ] It's not that impossible to imagine that a device OR a btrfs image is copied just by using the dd or the cp command. Which in case both the copies of the btrfs will have the same fsid. If on the system with automount e

[PATCH AUTOSEL 4.20 195/304] tty: serial: samsung: Properly set flags in autoCTS mode

2019-01-28 Thread Sasha Levin
From: Beomho Seo [ Upstream commit 31e933645742ee6719d37573a27cce0761dcf92b ] Commit 391f93f2ec9f ("serial: core: Rework hw-assited flow control support") has changed the way the autoCTS mode is handled. According to that change, serial drivers which enable H/W autoCTS mode must set UPSTAT_AUTO

[PATCH AUTOSEL 4.20 188/304] mmc: sdhci-xenon: Fix timeout checks

2019-01-28 Thread Sasha Levin
From: Adrian Hunter [ Upstream commit 0e6e7c2ff397e1bbebc882ca3132148aaaef1ddd ] Always check the wait condition before returning timeout. Signed-off-by: Adrian Hunter Reviewed-by: Zhoujie Wu Signed-off-by: Ulf Hansson Signed-off-by: Sasha Levin --- drivers/mmc/host/sdhci-xenon-phy.c | 10

[PATCH AUTOSEL 4.20 194/304] serial: sh-sci: Resume PIO in sci_rx_interrupt() on DMA failure

2019-01-28 Thread Sasha Levin
From: Geert Uytterhoeven [ Upstream commit 71ab1c0336c71ace5725740f200beca9667a339f ] On (H)SCIF, sci_submit_rx() is called in the receive interrupt handler. Hence if DMA submission fails, the interrupt handler should resume handling reception using PIO, else no more data is received. Make sci_

[PATCH AUTOSEL 4.20 187/304] mmc: sdhci-omap: Fix timeout checks

2019-01-28 Thread Sasha Levin
From: Adrian Hunter [ Upstream commit 9f0ea0bda1d06120b053bb0c283f54afec59293d ] Always check the wait condition before returning timeout. Signed-off-by: Adrian Hunter Acked-by: Kishon Vijay Abraham I Signed-off-by: Ulf Hansson Signed-off-by: Sasha Levin --- drivers/mmc/host/sdhci-omap.c |

[PATCH AUTOSEL 4.20 198/304] perf dso: Fix unchecked usage of strncpy()

2019-01-28 Thread Sasha Levin
From: Arnaldo Carvalho de Melo [ Upstream commit fca5085c15255bbde203b7322c15f07ebb12f63e ] The strncpy() function may leave the destination string buffer unterminated, better use strlcpy() that we have a __weak fallback implementation for systems without it. This fixes this warning on an Alpin

[PATCH AUTOSEL 4.20 199/304] perf header: Fix unchecked usage of strncpy()

2019-01-28 Thread Sasha Levin
From: Arnaldo Carvalho de Melo [ Upstream commit 7572588085a13d5db02bf159542189f52fdb507e ] The strncpy() function may leave the destination string buffer unterminated, better use strlcpy() that we have a __weak fallback implementation for systems without it. This fixes this warning on an Alpin

[PATCH AUTOSEL 4.20 196/304] perf stat: Fix CSV mode column output for non-cgroup events

2019-01-28 Thread Sasha Levin
From: Stephane Eranian [ Upstream commit bc4da38a4789e7819fca4c7723ded0b86aea27c0 ] When using the -x option, perf stat prints CSV-style output with one event per line. For each event, it prints the count, the unit, the event name, the cgroup, and a bunch of other event specific fields (such as

[PATCH AUTOSEL 4.20 197/304] perf test: Fix perf_event_attr test failure

2019-01-28 Thread Sasha Levin
From: Adrian Hunter [ Upstream commit 741dad88dde296999da30332157ca47f0543747d ] Fix inconsistent use of tabs and spaces error: # perf test 16 -v 16: Setup struct perf_event_attr : --- start --- test child forked, pid 20224 File "/usr/libexec/perf-core/tests

[PATCH AUTOSEL 4.20 203/304] bnxt_en: Disable MSIX before re-reserving NQs/CMPL rings.

2019-01-28 Thread Sasha Levin
From: Michael Chan [ Upstream commit 36d65be9a88052cdfc8524eb591baf0e6c878408 ] When bringing up a device, the code checks to see if the number of MSIX has changed. pci_disable_msix() should be called first before changing the number of reserved NQs/CMPL rings. This ensures that the MSIX vecto

[PATCH AUTOSEL 4.20 205/304] tools/power/x86/intel_pstate_tracer: Fix non root execution for post processing a trace file

2019-01-28 Thread Sasha Levin
From: Doug Smythies [ Upstream commit 663546903c835fe46308b1b1e53d32d1f2b33da9 ] This script is supposed to be allowed to run with regular user privileges if a previously captured trace is being post processed. Commit fbe313884d7d (tools/power/x86/intel_pstate_tracer: Free the trace buffer memo

[PATCH AUTOSEL 4.20 209/304] arm64: KVM: Skip MMIO insn after emulation

2019-01-28 Thread Sasha Levin
From: Mark Rutland [ Upstream commit 0d640732dbebed0f10f18526de21652931f0b2f2 ] When we emulate an MMIO instruction, we advance the CPU state within decode_hsr(), before emulating the instruction effects. Having this logic in decode_hsr() is opaque, and advancing the state before emulation is p

[PATCH AUTOSEL 4.20 208/304] livepatch: check kzalloc return values

2019-01-28 Thread Sasha Levin
From: Nicholas Mc Guire [ Upstream commit 5f30b2e823484ce6a79f2b59901b6351c15effa6 ] kzalloc() return should always be checked - notably in example code where this may be seen as reference. On failure of allocation in livepatch_fix1_dummy_alloc() respectively dummy_alloc() previous allocation is

[PATCH AUTOSEL 4.20 217/304] net: hns3: fix incomplete uninitialization of IRQ in the hns3_nic_uninit_vector_data()

2019-01-28 Thread Sasha Levin
From: Huazhong Tan [ Upstream commit ae6017a71115ebc4e5c1a3f0f451319ab3f5c447 ] In the hns3_nic_uninit_vector_data(), the procedure of uninitializing the tqp_vector's IRQ has not set affinity_notify to NULL and changes its init flag. This patch fixes it. And for simplificaton, local variable tqp

[PATCH AUTOSEL 4.20 210/304] usb: musb: dsps: fix otg state machine

2019-01-28 Thread Sasha Levin
From: Bin Liu [ Upstream commit 6010abf2c2c0e382d7e8ee44bd11f343aae90cce ] Due to lack of ID pin interrupt event on AM335x devices, the musb dsps driver uses polling to detect usb device attach for dual-role port. But in the case if a micro-A cable adapter is attached without a USB device attac

[PATCH AUTOSEL 4.20 212/304] perf header: Fix up argument to ctime()

2019-01-28 Thread Sasha Levin
From: Arnaldo Carvalho de Melo [ Upstream commit 0afcf29bab35d3785204cd9bd51693b231ad7181 ] Reducing this noise when cross building to the Android NDK: util/header.c: In function 'perf_header__fprintf_info': util/header.c:2710:45: warning: pointer targets in passing argument 1 of 'ctime' d

[PATCH AUTOSEL 4.20 211/304] usb: musb: dsps: fix runtime pm for peripheral mode

2019-01-28 Thread Sasha Levin
From: Bin Liu [ Upstream commit 54578ee883e34d2d1c518d48f1c1e2dd3f387188 ] Since the runtime PM support was added in musb, dsps relies on the timer calling otg_timer() to activate the usb subsystem. However the driver doesn't enable the timer for peripheral port, then the peripheral port is unab

[PATCH AUTOSEL 4.20 215/304] tools uapi asm: Update asm-generic/unistd.h copy

2019-01-28 Thread Sasha Levin
From: Arnaldo Carvalho de Melo [ Upstream commit 89a0948984896352cac1ebe079cb3d64d6c3adc6 ] To get the change in: b7d624ab4312 ("asm-generic: unistd.h: fixup broken macro include.") That doesn't imply in any changes in the tools. This silences the following perf build warning: Warning: K

[PATCH AUTOSEL 4.20 213/304] perf tools: Cast off_t to s64 to avoid warning on bionic libc

2019-01-28 Thread Sasha Levin
From: Arnaldo Carvalho de Melo [ Upstream commit 866053bb644f754d1a93aaa9db9998fecf7a8978 ] To avoid this warning: CC /tmp/build/perf/util/s390-cpumsf.o util/s390-cpumsf.c: In function 's390_cpumsf_samples': util/s390-cpumsf.c:508:3: warning: format '%llx' expects argument of type

[PATCH AUTOSEL 4.20 228/304] scsi: smartpqi: increase fw status register read timeout

2019-01-28 Thread Sasha Levin
From: Mahesh Rajashekhara [ Upstream commit 65111785acccb836ec75263b03b0e33f21e74f47 ] Problem: - during the driver initialization, driver will poll fw for KERNEL_UP in a 30 seconds timeout. - if the firmware is not ready after 30 seconds, driver will not be loaded. Fix: - change time

[PATCH AUTOSEL 4.20 226/304] scsi: smartpqi: correct host serial num for ssa

2019-01-28 Thread Sasha Levin
From: Mahesh Rajashekhara [ Upstream commit b2346b5030cf9458f30a84028d9fe904b8c942a7 ] Reviewed-by: Scott Benesh Reviewed-by: Ajish Koshy Reviewed-by: Murthy Bhat Reviewed-by: Mahesh Rajashekhara Reviewed-by: Dave Carroll Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: M

Re: [PATCH v6 05/13] KVM: s390: use pending_irqs_no_gisa() where appropriate

2019-01-28 Thread Halil Pasic
On Thu, 24 Jan 2019 13:59:31 +0100 Michael Mueller wrote: > Interruption types that are not represented in GISA shall > use pending_irqs_no_gisa() to test pending interruptions. > > Signed-off-by: Michael Mueller > Reviewed-by: Cornelia Huck > Reviewed-by: Pierre Morel I guess this is just a

[PATCH AUTOSEL 4.20 227/304] scsi: smartpqi: correct volume status

2019-01-28 Thread Sasha Levin
From: Dave Carroll [ Upstream commit 7ff44499bafbd376115f0bb6b578d980f56ee13b ] - fix race condition when a unit is deleted after an RLL, and before we have gotten the LV_STATUS page of the unit. - In this case we will get a standard inquiry, rather than the desired page. This will resu

[PATCH 01/13] nvmem: sc27xx: Convert nvmem offset to block index

2019-01-28 Thread Srinivas Kandagatla
From: Freeman Liu The Spreadtrum SC27XX efuse data are organized by blocks and each block contains 2 bytes data. Moreover the nvmem core always pass the offset in byte to the controller, so we should change the offset in byte to the correct block index and block offset to read the data. Signed-o

[PATCH 07/13] nvmem: core: Set the provider read-only when no write callback is given

2019-01-28 Thread Srinivas Kandagatla
From: Alban Bedel If no write callback is given the device should be marked as read-only. While at it also move from a bit or to a logical or as that is a logical expression. Signed-off-by: Alban Bedel Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/core.c | 4 ++-- 1 file changed, 2 ins

[PATCH 11/13] nvmem: core: Always reference the device returned by nvmem_device_get()

2019-01-28 Thread Srinivas Kandagatla
From: Alban Bedel In nvmem_device_get(), when the device lookup fails with DT it currently fallback on nvmem_find() which is wrong for two reasons. First nvmem_find() return NULL when nothing is found instead of an ERR_PTR. But nvmem_find() also just lookup the device, it doesn't reference the mo

[PATCH AUTOSEL 4.20 231/304] net: hns3: fix the descriptor index when get rss type

2019-01-28 Thread Sasha Levin
From: Peng Li [ Upstream commit 31a16f99e02c2e0b40a5fb05d66f5e56721027e2 ] Driver gets rss information from the last descriptor of the packet. When driver handle the rss type, ring->next_to_clean indicates the first descriptor of next packet. This patch fix the descriptor index with "ring->next

[PATCH AUTOSEL 4.20 218/304] drm/amd/display: Add retry to read ddc_clock pin

2019-01-28 Thread Sasha Levin
From: Paul Hsieh [ Upstream commit bd4905a9583c760da31ded7256dca6f71483c3dc ] [WHY] On customer board, there is one pluse (1v , < 1ms) on DDC_CLK pin when plug / unplug DP cable. Driver will read it and config DP to HDMI/DVI dongle. [HOW] If there is a real dongle, DDC_CLK should be always pull

[PATCH AUTOSEL 4.20 219/304] drm/amd/display: Wait edp HPD to high in detect_sink

2019-01-28 Thread Sasha Levin
From: Dale Zhao [ Upstream commit 0a6414e75d231ee1bb7ffb2f5eb246b682a884cd ] [Why] In 99% user case, edp will be post by vbios. In 1% / current case: Lenovo don't light up edp panel in vbios post stage, vbios won't be lit up. Thus in dal when we init DCN 10 hw, we power up edp, then we start det

[PATCH AUTOSEL 4.20 222/304] powerpc/uaccess: fix warning/error with access_ok()

2019-01-28 Thread Sasha Levin
From: Christophe Leroy [ Upstream commit 05a4ab823983d9136a460b7b5e0d49ee709a6f86 ] With the following piece of code, the following compilation warning is encountered: if (_IOC_DIR(ioc) != _IOC_NONE) { int verify = _IOC_DIR(ioc) & _IOC_READ ? VERIFY_WRITE : VERIFY_READ;

[PATCH AUTOSEL 4.20 221/304] drm/amd/display: fix YCbCr420 blank color

2019-01-28 Thread Sasha Levin
From: Eric Yang [ Upstream commit 12750d1647f118496f1da727146f255f5e44d500 ] [Why] YCbCr420 packing format uses two chanels for luma, and 1 channel for both chroma component. Our previous implementation did not account for this and results in every other pixel having very high luma value, showin

[PATCH AUTOSEL 4.20 220/304] Bluetooth: hci_bcm: Handle deferred probing for the clock supply

2019-01-28 Thread Sasha Levin
From: Chen-Yu Tsai [ Upstream commit 28ac03b9ac3f784c2f048a910c8d0a7a87483b66 ] On some systems that actually have the bluetooth controller wired up with an extra clock signal, it's possible the bluetooth controller probes before the clock provider. clk_get would return a defer probe error, whic

[PATCH AUTOSEL 4.20 241/304] ath10k: fix kernel panic due to use after free

2019-01-28 Thread Sasha Levin
From: Karthikeyan Periyasamy [ Upstream commit 553a7cca769d551f1317186760631487c47e23bf ] This issue arise in a race condition between ath10k_sta_state() and ath10k_htt_fetch_peer_stats(), explained in below scenario Steps: 1. In ath10k_sta_state(), arsta->tx_stats get deallocated before peer d

[PATCH AUTOSEL 4.20 235/304] powerpc/powernv/ioda: Allocate indirect TCE levels of cached userspace addresses on demand

2019-01-28 Thread Sasha Levin
From: Alexey Kardashevskiy [ Upstream commit bdbf649efe21173cae63b4b71db84176420f9039 ] The powernv platform maintains 2 TCE tables for VFIO - a hardware TCE table and a table with userspace addresses; the latter is used for marking pages dirty when corresponging TCEs are unmapped from the hardw

Re: [PATCH v6 06/13] KVM: s390: remove kvm_s390_ from gisa static inline functions

2019-01-28 Thread Halil Pasic
On Thu, 24 Jan 2019 13:59:32 +0100 Michael Mueller wrote: > Tags: inv, patch, s390 > From: Michael Mueller > To: KVM Mailing List > Cc: Linux-S390 Mailing List , > linux-kernel@vger.kernel.org, Martin Schwidefsky , > Heiko Carstens , Christian Borntraeger > , Janosch Frank , David > Hilden

[PATCH 13/13] nvmem: core: Avoid useless iterations in nvmem_cell_get_from_lookup()

2019-01-28 Thread Srinivas Kandagatla
From: Alban Bedel Once the correct cell has been found there is no need to continue iterating, just stop there. While at it replace the goto used to leave the loop with simple break statements. Signed-off-by: Alban Bedel Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/core.c | 5 ++--- 1

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