[PATCH AUTOSEL 4.19 012/258] wil6210: fix memory leak in wil_find_tx_bcast_2

2019-01-28 Thread Sasha Levin
From: Lior David [ Upstream commit 664497400c89a4d40aee51bcf48bbd2e4dc71104 ] A successful call to wil_tx_ring takes skb reference so it will only be freed in wil_tx_complete. Consume the skb in wil_find_tx_bcast_2 to prevent memory leak. Signed-off-by: Lior David Signed-off-by: Maya Erez

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

2019-01-28 Thread Miroslav Benes
On Mon, 28 Jan 2019, Sasha Levin wrote: > From: Nicholas Mc Guire > > [ Upstream commit 5f30b2e823484ce6a79f2b59901b6351c15effa6 ] > > kzalloc() return should always be checked - notably in example code > where this may be seen as reference. On failure of allocation in >

[PATCH AUTOSEL 4.19 016/258] scsi: mpt3sas: Call sas_remove_host before removing the target devices

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

[PATCH AUTOSEL 4.19 017/258] scsi: lpfc: Fix LOGO/PLOGI handling when triggerd by ABTS Timeout event

2019-01-28 Thread Sasha Levin
From: James Smart [ Upstream commit 30e196cacefdd9a38c857caed23cefc9621bc5c1 ] After a LOGO in response to an ABTS timeout, a PLOGI wasn't issued to re-establish the login. An nlp_type check in the LOGO completion handler failed to restart discovery for NVME targets. Revised the nlp_type

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

2019-01-28 Thread Arnd Bergmann
On Mon, Jan 28, 2019 at 6:21 PM Sasha Levin wrote: > > On Mon, Jan 28, 2019 at 05:41:55PM +0100, Arnd Bergmann wrote: > >On Mon, Jan 28, 2019 at 4:52 PM Sasha Levin wrote: > >> > >> From: Arnd Bergmann > >> > >> [ Upstream commit 12d3a30db4a3b3df5fbadf5974b9cf50544a9950 ] > >> > >> The change

Re: [PATCH v5 2/4] genirq: Provide NMI management for percpu_devid interrupts

2019-01-28 Thread Julien Thierry
On 28/01/2019 16:41, Marc Zyngier wrote: > On Mon, 28 Jan 2019 15:38:25 +, > Julien Thierry wrote: >> >> Add support for percpu_devid interrupts treated as NMIs. >> >> Percpu_devid NMIs need to be setup/torn down on each CPU they target. >> >> The same restrictions as for global NMIs still

[PATCH AUTOSEL 4.19 024/258] srcu: Prevent __call_srcu() counter wrap with read-side critical section

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

[PATCH AUTOSEL 4.19 020/258] clk: boston: fix possible memory leak in clk_boston_setup()

2019-01-28 Thread Sasha Levin
From: Yi Wang [ Upstream commit 46fda5b5067a391912cf73bf3d32c26b6a22ad09 ] Smatch report warnings: drivers/clk/imgtec/clk-boston.c:76 clk_boston_setup() warn: possible memory leak of 'onecell' drivers/clk/imgtec/clk-boston.c:83 clk_boston_setup() warn: possible memory leak of 'onecell'

[PATCH AUTOSEL 4.19 023/258] powerpc/pseries: add of_node_put() in dlpar_detach_node()

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

[PATCH AUTOSEL 4.19 028/258] serial: fsl_lpuart: clear parity enable bit when disable parity

2019-01-28 Thread Sasha Levin
From: Andy Duan [ Upstream commit 397bd9211fe014b347ca8f95a8f4e1017bac1aeb ] Current driver only enable parity enable bit and never clear it when user set the termios. The fix clear the parity enable bit when PARENB flag is not set in termios->c_cflag. Cc: Lukas Wunner Signed-off-by: Andy

[PATCH] cgroup/pids: turn cgroup_subsys->free() into cgroup_subsys->release() to fix the accounting

2019-01-28 Thread Oleg Nesterov
The only user of cgroup_subsys->free() callback is pids_cgrp_subsys which needs pids_free() to uncharge the pid. However, ->free() is called from __put_task_struct()->cgroup_free() and this is too late. Even the trivial program which does for (;;) { int pid = fork();

[PATCH AUTOSEL 4.19 018/258] platform/x86: asus-nb-wmi: Map 0x35 to KEY_SCREENLOCK

2019-01-28 Thread Sasha Levin
From: João Paulo Rechi Vita [ Upstream commit b3f2f3799a972d3863d0fdc2ab6287aef6ca631f ] When the OS registers to handle events from the display off hotkey the EC will send a notification with 0x35 for every key press, independent of the backlight state. The behavior of this key on Windows,

[PATCH AUTOSEL 4.19 025/258] of: overlay: do not duplicate properties from overlay for new nodes

2019-01-28 Thread Sasha Levin
From: Frank Rowand [ Upstream commit 8814dc46bd9e347d4de55ec5bf8f16ea54470499 ] When allocating a new node, add_changeset_node() was duplicating the properties from the respective node in the overlay instead of allocating a node with no properties. When this patch is applied the errors

[PATCH AUTOSEL 4.19 027/258] drm/vc4: ->x_scaling[1] should never be set to VC4_SCALING_NONE

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

[PATCH AUTOSEL 4.19 030/258] ptp: check gettime64 return code in PTP_SYS_OFFSET ioctl

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

[PATCH AUTOSEL 4.19 029/258] serial: core: Allow processing sysrq at port unlock time

2019-01-28 Thread Sasha Levin
From: Douglas Anderson [ Upstream commit d6e1935819db0c91ce4a5af82466f3ab50d17346 ] Right now serial drivers process sysrq keys deep in their character receiving code. This means that they've already grabbed their port->lock spinlock. This can end up getting in the way if we've go to do

[PATCH AUTOSEL 4.19 031/258] MIPS: Boston: Disable EG20T prefetch

2019-01-28 Thread Sasha Levin
From: Paul Burton [ Upstream commit 5ec17af7ead09701e23d2065e16db6ce4e137289 ] The Intel EG20T Platform Controller Hub used on the MIPS Boston development board supports prefetching memory to optimize DMA transfers. Unfortunately for unknown reasons this doesn't work well with some MIPS CPUs

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

2019-01-28 Thread Sasha Levin
From: "David S. Miller" [ Upstream commit e15e067d0656625c77c52b4e5f0cfbf0c0c3583f ] Same change as made to sctp_intl_store_reasm(). To be fully correct, an iterator has an undefined value when something like skb_queue_walk() naturally terminates. This will actually matter when SKB queues are

[PATCH AUTOSEL 4.19 032/258] dpaa2-ptp: defer probe when portal allocation failed

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

[PATCH AUTOSEL 4.19 036/258] staging:iio:ad2s90: Make probe handle spi_setup failure

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

Re: [PATCH v3 6/8] drm/panel: simple: Add support for the LeMaker BL035-RGB-002 3.5" LCD

2019-01-28 Thread Thierry Reding
On Wed, Nov 07, 2018 at 07:18:41PM +0100, Paul Kocialkowski wrote: > This adds support for the 3.5" LCD panel from LeMaker, sold for use with > BananaPi boards. It comes with a 24-bit RGB888 parallel interface and > requires an active-low DE signal > > Signed-off-by: Paul Kocialkowski > --- >

[PATCH AUTOSEL 4.19 040/258] vbox: fix link error with 'gcc -Og'

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

[PATCH AUTOSEL 4.19 039/258] fpga: altera-cvp: fix 'bad IO access' on x86_64

2019-01-28 Thread Sasha Levin
From: Anatolij Gustschin [ Upstream commit 187fade88ca0ff2df9d360ca751d948d73db7095 ] If mapping the CvP BAR fails, we still can configure the FPGA via PCI config space access. In this case the iomap pointer is NULL. On x86_64, passing NULL address to pci_iounmap() generates "Bad IO access at

[PATCH AUTOSEL 4.19 044/258] staging: iio: ad7780: update voltage on read

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

[PATCH AUTOSEL 4.19 048/258] drm/amd/display: fix gamma not being applied correctly

2019-01-28 Thread Sasha Levin
From: Murton Liu [ Upstream commit 8ce504b9389be846bcdf512ed5be8f661b3bf097 ] [why] Gamma was always being set as identity on SDR monitor, leading to no changes in gamma. This caused nightlight to not apply correctly. [how] Added a default gamma structure to compare against in the sdr case.

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

2019-01-28 Thread Martin Kepplinger
Am 28.01.2019 17:53 schrieb Greg KH: On Mon, Jan 28, 2019 at 05:38:43PM +0100, Martin Kepplinger wrote: From: Manfred Schlaegl The default value for this was 64K. We increase this by a factor of 10 to 640K to prevent data loss when using fast serial interfaces. What fast serial interface

[PATCH AUTOSEL 4.19 056/258] media: video-i2c: avoid accessing released memory area when removing driver

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

[PATCH AUTOSEL 4.19 055/258] media: rc: ensure close() is called on rc_unregister_device

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

[PATCH AUTOSEL 4.19 050/258] bpf: libbpf: retry map creation without the name

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

[PATCH AUTOSEL 4.19 062/258] clk: meson: meson8b: mark the CPU clock as CLK_IS_CRITICAL

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

[PATCH AUTOSEL 4.19 061/258] clk: meson: meson8b: fix the width of the cpu_scale_div clock

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

[PATCH AUTOSEL 4.19 069/258] media: adv*/tc358743/ths8200: fill in min width/height/pixelclock

2019-01-28 Thread Sasha Levin
From: Hans Verkuil [ Upstream commit 2912289a518077ddb8214e05336700148e97e235 ] The v4l2_dv_timings_cap struct is used to do sanity checks when setting and enumerating DV timings, ensuring that only valid timings as per the HW capabilities are allowed. However, many drivers just filled in 0

Re: 4.14 revert "seccomp: add a selftest for get_metadata"

2019-01-28 Thread Tycho Andersen
On Mon, Jan 28, 2019 at 05:13:11PM +, Rantala, Tommi T. (Nokia - FI/Espoo) wrote: > Hi Greg, > > Can you please revert this commit in 4.14? > > commit e65cd9a20343ea90f576c24c38ee85ab6e7d5fec > Author: Tycho Andersen > Date: Tue Feb 20 19:47:47 2018 -0700 > > seccomp: add a selftest

[PATCH 1/3] input: keyboard: allow to select IMX SNVS Power Key driver for i.MX 7D

2019-01-28 Thread Stefan Agner
The i.MX SNVS Power Key driver supports the i.MX 7D SoC family too. Allow to enable the i.MX SNVS Power Key driver even if only i.MX 7D SoC is selected. Signed-off-by: Stefan Agner --- drivers/input/keyboard/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH AUTOSEL 4.19 075/258] f2fs: fix wrong return value of f2fs_acl_create

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

[PATCH AUTOSEL 4.19 073/258] f2fs: avoid build warn of fall_through

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

[PATCH AUTOSEL 4.19 077/258] arm64: io: Ensure calls to delay routines are ordered against prior readX()

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

[PATCH AUTOSEL 4.19 078/258] net: aquantia: return 'err' if set MPI_DEINIT state fails

2019-01-28 Thread Sasha Levin
From: YueHaibing [ Upstream commit 4e3c7c00bba0636b97eb23d582c20b0f5d95ce20 ] Fixes gcc '-Wunused-but-set-variable' warning: drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c:260:7: warning: variable 'err' set but not used [-Wunused-but-set-variable] 'err' should be returned while

[PATCH AUTOSEL 4.19 085/258] arm64: io: Ensure value passed to __iormb() is held in a 64-bit register

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

[PATCH AUTOSEL 4.19 082/258] drm: Clear state->acquire_ctx before leaving drm_atomic_helper_commit_duplicated_state()

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

[PATCH AUTOSEL 4.19 084/258] perf: arm_spe: handle devm_kasprintf() failure

2019-01-28 Thread Sasha Levin
From: Nicholas Mc Guire [ Upstream commit 754a58db6a556e6e5f5e32f3e84e7d67b5bf9c8e ] devm_kasprintf() may return NULL on failure of internal allocation thus the assignment to 'name' is not safe if unchecked. If NULL is passed in for name then perf_pmu_register() would not fail but rather

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

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

[PATCH AUTOSEL 4.19 089/258] 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

Re: [PATCH AUTOSEL 4.19 094/258] nfp: add locking around representor changes

2019-01-28 Thread Sasha Levin
On Mon, Jan 28, 2019 at 08:28:25AM -0800, Jakub Kicinski wrote: On Mon, 28 Jan 2019 10:56:40 -0500, Sasha Levin wrote: From: Jakub Kicinski [ Upstream commit 71844fac1ed459024dd2a448d63d5b28b8c87daa ] Up until now we never needed to keep a networking locks around representors accesses, we

[PATCH v1] mm: migrate: don't rely on PageMovable() of newpage after unlocking it

2019-01-28 Thread David Hildenbrand
While debugging some crashes related to virtio-balloon deflation that happened under the old balloon migration code, I stumbled over a race that still exists today. What we experienced: drivers/virtio/virtio_balloon.c:release_pages_balloon(): - WARNING: CPU: 13 PID: 6586 at lib/list_debug.c:59

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

2019-01-28 Thread Sasha Levin
On Mon, Jan 28, 2019 at 05:41:55PM +0100, Arnd Bergmann wrote: On Mon, Jan 28, 2019 at 4:52 PM Sasha Levin wrote: From: Arnd Bergmann [ Upstream commit 12d3a30db4a3b3df5fbadf5974b9cf50544a9950 ] The change to passing the timer frequency as a function argument was a good idea, but caused a

[PATCH AUTOSEL 4.19 099/258] 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

[PATCH AUTOSEL 4.19 096/258] 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

[PATCH AUTOSEL 4.19 102/258] usb: dwc3: Correct the logic for checking TRB full in __dwc3_prepare_one_trb()

2019-01-28 Thread Sasha Levin
From: Anurag Kumar Vulisha [ Upstream commit b7a4fbe2300a8965ea760c7e871507b84aea17f6 ] Availability of TRB's is calculated using dwc3_calc_trbs_left(), which determines total available TRB's based on the HWO bit set in a TRB. In the present code, __dwc3_prepare_one_trb() is called with a TRB

[PATCH AUTOSEL 4.19 105/258] 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

[PATCH AUTOSEL 4.19 103/258] usb: dwc2: Disable power down feature on Samsung SoCs

2019-01-28 Thread Sasha Levin
From: Marek Szyprowski [ Upstream commit 35a6054132286a4ab92b536595093b82e6bdfcbc ] Power down feature of DWC2 module integrated in Samsung SoCs doesn't work properly or needs some additional handling in PHY or SoC glue layer, so disable it for now. Without disabling power down, DWC2 causes

[PATCH v6 1/3] dmaengine: imx-sdma: add clock ratio 1:1 check

2019-01-28 Thread Angus Ainslie (Purism)
On i.mx8 mscale B0 chip, AHB/SDMA clock ratio 2:1 can't be supportted, since SDMA clock ratio has to be increased to 250Mhz, AHB can't reach to 500Mhz, so use 1:1 instead. Based on NXP commit MLK-16841-1 by Robin Gong Signed-off-by: Angus Ainslie (Purism) Reviewed-by: Lucas Stach ---

[PATCH AUTOSEL 4.19 104/258] 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

Re: [PATCH 2/5] swiotlb: Add is_swiotlb_active() function

2019-01-28 Thread Michael S. Tsirkin
On Thu, Jan 24, 2019 at 04:00:00PM +0100, Joerg Roedel wrote: > On Thu, Jan 24, 2019 at 09:41:07AM +0100, Christoph Hellwig wrote: > > On Thu, Jan 24, 2019 at 09:29:23AM +0100, Joerg Roedel wrote: > > > > As I've just introduced and fixed a bug in this area in the current > > > > cycle - I don't

[PATCH AUTOSEL 4.19 107/258] clk: sunxi-ng: a33: Set CLK_SET_RATE_PARENT for all audio module clocks

2019-01-28 Thread Sasha Levin
From: Chen-Yu Tsai [ Upstream commit 6e6da2039c82271dd873b9ad2b902a692a7dd554 ] All the audio interfaces on Allwinner SoCs need to change their module clocks during operation, to switch between support for 44.1 kHz and 48 kHz family sample rates. The clock rate for the module clocks is governed

[PATCH AUTOSEL 4.19 106/258] 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

[PATCH AUTOSEL 4.19 113/258] 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

[PATCH AUTOSEL 4.19 114/258] usb: dwc3: trace: add missing break statement to make compiler happy

2019-01-28 Thread Sasha Levin
From: Andy Shevchenko [ Upstream commit 54d48183d21e03f780053d7129312049cb5dd591 ] The missed break statement in the outer switch makes the code fall through always and thus always same value will be printed. Besides that, compiler warns about missed fall through marker:

[PATCH AUTOSEL 4.19 110/258] 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.19 108/258] 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

Re: [PATCH AUTOSEL 4.20 163/304] sched/topology: Add lowest CPU asymmetry sched_domain level pointer

2019-01-28 Thread Sasha Levin
On Mon, Jan 28, 2019 at 04:14:17PM +, Quentin Perret wrote: Hi Sasha, On Monday 28 Jan 2019 at 10:41:20 (-0500), Sasha Levin wrote: From: Quentin Perret [ Upstream commit 011b27bb5d3139e8b5fe9ceff1fc7f6dc3145071 ] Add another member to the family of per-cpu sched_domain shortcut

[PATCH v6 0/3] dmaengine: imx-sdma: add the sdma engine to the imx8mq

2019-01-28 Thread Angus Ainslie (Purism)
Add sdma support for the imx8mq Changes since V5 Dropped device tree bindings. Added reviewed by tags. Changes since V4 Builds against 5.0-rc4. Dropped device tree additions, will send a separate patch. Fixed sdma1 alignement. Dropped phandles in favour of of_nodes. Refactored SDMA_H_CONFIG

[PATCH AUTOSEL 4.19 119/258] 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

[PATCH AUTOSEL 4.19 117/258] 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.

Re: [PATCH] bpf/core.c - silence warning messages

2019-01-28 Thread Song Liu
On Sun, Jan 27, 2019 at 8:43 PM wrote: > > Compiling kernel/bpf/core.c with W=1 causes a flood of warnings: > > kernel/bpf/core.c:1198:65: warning: initialized field overwritten > [-Woverride-init] > 1198 | #define BPF_INSN_3_TBL(x, y, z) [BPF_##x | BPF_##y | BPF_##z] = true > |

[PATCH AUTOSEL 4.19 122/258] 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

[PATCH AUTOSEL 4.19 129/258] iommu/arm-smmu: Add support for qcom,smmu-v2 variant

2019-01-28 Thread Sasha Levin
From: Vivek Gautam [ Upstream commit 89cddc563743cb1e0068867ac97013b2a5bf86aa ] qcom,smmu-v2 is an arm,smmu-v2 implementation with specific clock and power requirements. On msm8996, multiple cores, viz. mdss, video, etc. use this smmu. On sdm845, this smmu is used with gpu. Add bindings for the

[PATCH AUTOSEL 4.19 125/258] 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

[PATCH AUTOSEL 4.19 123/258] 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

Re: tsc: Fast TSC calibration failed with sever AMD Ryzen processor (2200G, 2400G, Ryzen 7 1700)

2019-01-28 Thread Paul Menzel
Dear Tom, On 01/24/19 00:33, Lendacky, Thomas wrote: > On 1/23/19 6:56 AM, Paul Menzel wrote: >> On 01/22/19 21:24, Lendacky, Thomas wrote: >>> On 1/22/19 10:53 AM, Paul Menzel wrote: [Adding Tom to CC] >> On 01/14/19 11:09, Paul Menzel wrote: > On 01/11/19 21:43, Thomas

[PATCH AUTOSEL 4.19 127/258] 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

[PATCH AUTOSEL 4.19 131/258] sata_rcar: fix deferred probing

2019-01-28 Thread Sasha Levin
From: Sergei Shtylyov [ Upstream commit 9f83cfdb1ace3ef268ecc6fda50058d2ec37d603 ] The driver overrides the error codes returned by platform_get_irq() to -EINVAL, so if it returns -EPROBE_DEFER, the driver would fail the probe permanently instead of the deferred probing. Switch to propagating

[PATCH AUTOSEL 4.19 128/258] 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

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

2019-01-28 Thread Doug Anderson
Hi, On Mon, Jan 28, 2019 at 7:44 AM Sasha Levin wrote: > > From: Douglas Anderson > > [ Upstream commit d6e1935819db0c91ce4a5af82466f3ab50d17346 ] > > Right now serial drivers process sysrq keys deep in their character > receiving code. This means that they've already grabbed their >

[PATCH AUTOSEL 4.19 134/258] cpuidle: big.LITTLE: fix refcount leak

2019-01-28 Thread Sasha Levin
From: Yangtao Li [ Upstream commit 9456823c842f346c74265fcd98d008d87a7eb6f5 ] of_find_node_by_path() acquires a reference to the node returned by it and that reference needs to be dropped by its caller. bl_idle_init() doesn't do that, so fix it. Signed-off-by: Yangtao Li Acked-by: Daniel

[PATCH AUTOSEL 4.19 132/258] 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:

[PATCH AUTOSEL 4.19 136/258] 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,

[PATCH AUTOSEL 4.19 141/258] i2c-axxia: check for error conditions first

2019-01-28 Thread Sasha Levin
From: "Adamski, Krzysztof (Nokia - PL/Wroclaw)" [ Upstream commit 4f5c85fe3a60ace555d09898166af372547f97fc ] It was observed that when using seqentional mode contrary to the documentation, the SS bit (which is supposed to only be set if automatic/sequence command completed normally), is

[PATCH AUTOSEL 4.19 144/258] udf: Fix BUG on corrupted inode

2019-01-28 Thread Sasha Levin
From: Jan Kara [ Upstream commit d288d95842f1503414b7eebce3773bac3390457e ] When inode is corrupted so that extent type is invalid, some functions (such as udf_truncate_extents()) will just BUG. Check that extent type is valid when loading the inode to memory. Reported-by: Anatoly Trosinenko

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

2019-01-28 Thread Sasha Levin
On Mon, Jan 28, 2019 at 08:05:13AM -0800, Doug Anderson wrote: Hi, On Mon, Jan 28, 2019 at 7:44 AM Sasha Levin wrote: From: Douglas Anderson [ Upstream commit d6e1935819db0c91ce4a5af82466f3ab50d17346 ] Right now serial drivers process sysrq keys deep in their character receiving code.

[PATCH AUTOSEL 4.19 142/258] 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.19 140/258] 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

[PATCH AUTOSEL 4.19 150/258] 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

[PATCH AUTOSEL 4.19 145/258] 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

[PATCH AUTOSEL 4.19 160/258] 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

[PATCH AUTOSEL 4.19 154/258] 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

[PATCH AUTOSEL 4.19 158/258] 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

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

2019-01-28 Thread Michael Mueller
On 28.01.19 16:45, Pierre Morel wrote: On 24/01/2019 13:59, Michael Mueller wrote: Add the Interruption Alert Mask (IAM) to the architecture specific kvm struct. This mask in the GISA is used to define for which ISC a GIB alert will be issued. The functions kvm_s390_gisc_register() and

Re: [PATCHv4 1/4] arm64: dts: qcom: sdm845: Add Coresight support

2019-01-28 Thread Mathieu Poirier
On Thu, 24 Jan 2019 at 11:21, Sai Prakash Ranjan wrote: > > Hi Suzuki, > > On 1/24/2019 4:49 PM, Suzuki K Poulose wrote: > > Hi Sai, > > > > > > That looks fine with me. But as Mathieu said, this needs to be a separate > > patch. But before all that please could you provide me the PIDR4 value for

[PATCH AUTOSEL 4.19 159/258] 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

[PATCH AUTOSEL 4.19 162/258] serial: sh-sci: Fix locking in sci_submit_rx()

2019-01-28 Thread Sasha Levin
From: Geert Uytterhoeven [ Upstream commit dd1f2250da95e87cb3e612858f94b14f99445a7c ] Some callers of sci_submit_rx() hold the port spinlock, others don't. During fallback to PIO, the driver needs to obtain the port spinlock. If the lock was already held, spinlock recursion is detected, causing

[PATCH AUTOSEL 4.19 164/258] 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

[PATCH AUTOSEL 4.19 166/258] 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

[PATCH AUTOSEL 4.19 171/258] 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

[PATCH AUTOSEL 4.19 169/258] perf probe: Fix unchecked usage of strncpy()

2019-01-28 Thread Sasha Levin
From: Arnaldo Carvalho de Melo [ Upstream commit bef0b8970f27da5ca223e522a174d03e2587761d ] The strncpy() function may leave the destination string buffer unterminated, better use strlcpy() that we have a __weak fallback implementation for systems without it. In this case the 'target' buffer

[PATCH AUTOSEL 4.19 172/258] KVM: s390: unregister debug feature on failing arch init

2019-01-28 Thread Sasha Levin
From: Michael Mueller [ Upstream commit 308c3e6673b012beecb96ef04cc65f4a0e7cdd99 ] Make sure the debug feature and its allocated resources get released upon unsuccessful architecture initialization. A related indication of the issue will be reported as kernel message. Signed-off-by: Michael

[PATCH AUTOSEL 4.19 167/258] 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

[PATCH AUTOSEL 4.19 185/258] 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,

Re: [PATCH 5/5] virtio-blk: Consider virtio_max_dma_size() for maximum segment size

2019-01-28 Thread Michael S. Tsirkin
On Mon, Jan 28, 2019 at 09:05:26AM +0100, Christoph Hellwig wrote: > On Thu, Jan 24, 2019 at 10:51:51AM +0100, Joerg Roedel wrote: > > On Thu, Jan 24, 2019 at 09:42:21AM +0100, Christoph Hellwig wrote: > > > Yes. But more importantly it would fix the limit for all other block > > > drivers that

[PATCH AUTOSEL 4.19 177/258] 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

<    3   4   5   6   7   8   9   10   11   12   >