[PATCH 5.8 248/255] mm/page_counter: fix various data races at memsw

2020-09-01 Thread Greg Kroah-Hartman
From: Qian Cai commit 6e4bd50f3888fa8fea8bc66a0ad4ad5f1c862961 upstream. Commit 3e32cb2e0a12 ("mm: memcontrol: lockless page counters") could had memcg->memsw->watermark and memcg->memsw->failcnt been accessed concurrently as reported by KCSAN, BUG: KCSAN: data-race in page_counter_try_charge

Re: [PATCH 3/3] watchdog: rti: Simplify with dev_err_probe()

2020-09-01 Thread Guenter Roeck
On Tue, Sep 01, 2020 at 05:31:41PM +0200, Krzysztof Kozlowski wrote: > Common pattern of handling deferred probe can be simplified with > dev_err_probe(). Less code and the error value gets printed. > > Signed-off-by: Krzysztof Kozlowski Reviewed-by: Guenter Roeck > > --- > > It is unusual

Re: [PATCH 2/3] watchdog: davinci: Simplify with dev_err_probe()

2020-09-01 Thread Guenter Roeck
On Tue, Sep 01, 2020 at 05:31:40PM +0200, Krzysztof Kozlowski wrote: > Common pattern of handling deferred probe can be simplified with > dev_err_probe(). Less code and the error value gets printed. > > Signed-off-by: Krzysztof Kozlowski Reviewed-by: Guenter Roeck > --- > drivers/watchdog/da

Re: [PATCH] net: ipv6: fix __rt6_purge_dflt_routers when forwarding is not set on all ifaces

2020-09-01 Thread Brian Vazquez
Hey David, On Tue, Sep 1, 2020 at 7:57 AM David Ahern wrote: > > On 9/1/20 1:56 AM, Eric Dumazet wrote: > > On Tue, Sep 1, 2020 at 8:58 AM Brian Vazquez wrote: > >> > >> The problem is exposed when the system has multiple ifaces and > >> forwarding is enabled on a subset of them, __rt6_purge_dfl

Re: [PATCH 1/3] watchdog: cadence: Simplify with dev_err_probe()

2020-09-01 Thread Guenter Roeck
On Tue, Sep 01, 2020 at 05:31:39PM +0200, Krzysztof Kozlowski wrote: > Common pattern of handling deferred probe can be simplified with > dev_err_probe(). Less code and the error value gets printed. > > Signed-off-by: Krzysztof Kozlowski Reviewed-by: Guenter Roeck > --- > drivers/watchdog/ca

[PATCH 5.8 241/255] usb: typec: ucsi: Hold con->lock for the entire duration of ucsi_register_port()

2020-09-01 Thread Greg Kroah-Hartman
From: Hans de Goede commit bed97b30968ba354035a020989df0623e52b5536 upstream. Commit 081da1325d35 ("usb: typec: ucsi: displayport: Fix a potential race during registration") made the ucsi code hold con->lock in ucsi_register_displayport(). But we really don't want any interactions with the conne

[PATCH 5.8 244/255] io_uring: dont use poll handler if file cant be nonblocking read/written

2020-09-01 Thread Greg Kroah-Hartman
From: Jens Axboe [ Upstream commit 9dab14b81807a40dab8e464ec87043935c562c2c ] There's no point in using the poll handler if we can't do a nonblocking IO attempt of the operation, since we'll need to go async anyway. In fact this is actively harmful, as reading from eg pipes won't return 0 to ind

Re: WARNING: suspicious RCU usage - sdhci-pltfm: SDHCI platform and OF driver helper

2020-09-01 Thread peterz
On Tue, Sep 01, 2020 at 09:44:17AM -0600, Lina Iyer wrote: > > > > > > I could add RCU_NONIDLE for the calls to > > > > > > pm_runtime_put_sync_suspend() > > > > > > and pm_runtime_get_sync() in psci_enter_domain_idle_state(). Perhaps > > > > > > that's the easiest approach, at least to start with

Re: [PATCH: 1/2] gpio: tc35894: fix up tc35894 interrupt configuration

2020-09-01 Thread Bartosz Golaszewski
On Mon, Aug 31, 2020 at 9:14 AM wrote: > > From: dillon min > > The offset of regmap is incorrect, j * 8 is move to the > wrong register. > > for example: > > asume i = 0, j = 1. we want to set KPY5 as interrupt > falling edge mode, regmap[0][1] should be TC3589x_GPIOIBE1 0xcd > but, regmap[i] +

[PATCH 5.8 234/255] USB: cdc-acm: rework notification_buffer resizing

2020-09-01 Thread Greg Kroah-Hartman
From: Tom Rix commit f4b9d8a582f738c24ebeabce5cc15f4b8159d74e upstream. Clang static analysis reports this error cdc-acm.c:409:3: warning: Use of memory after it is freed acm_process_notification(acm, (unsigned char *)dr); There are three problems, the first one is that dr is not reset

[PATCH 5.8 235/255] usb: storage: Add unusual_uas entry for Sony PSZ drives

2020-09-01 Thread Greg Kroah-Hartman
From: Alan Stern commit 20934c0de13b49a072fb1e0ca79fe0fe0e40eae5 upstream. The PSZ-HA* family of USB disk drives from Sony can't handle the REPORT OPCODES command when using the UAS protocol. This patch adds an appropriate quirks entry. Reported-and-tested-by: Till Dörges Signed-off-by: Alan

[PATCH 5.8 218/255] drm/amd/pm: correct Vega10 swctf limit setting

2020-09-01 Thread Greg Kroah-Hartman
From: Evan Quan commit b05d71b51078fc428c6b72582126d9d75d3c1f4c upstream. Correct the Vega10 thermal swctf limit. Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1267 Signed-off-by: Evan Quan Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher Cc: sta...@vger.kernel.org Signed-off-by

[PATCH 5.8 240/255] usb: typec: ucsi: Rework ppm_lock handling

2020-09-01 Thread Greg Kroah-Hartman
From: Hans de Goede commit 25794e3079d2a98547b6bf5764ef0240aa89b798 upstream. The ppm_lock really only needs to be hold during 2 functions: ucsi_reset_ppm() and ucsi_run_command(). Push the taking of the lock down into these 2 functions, renaming ucsi_run_command() to ucsi_send_command() which

[PATCH 5.8 183/255] serial: stm32: avoid kernel warning on absence of optional IRQ

2020-09-01 Thread Greg Kroah-Hartman
From: Holger Assmann commit fdf16d78941b4f380753053d229955baddd00712 upstream. stm32_init_port() of the stm32-usart may trigger a warning in platform_get_irq() when the device tree specifies no wakeup interrupt. The wakeup interrupt is usually a board-specific GPIO and the driver functions corr

[PATCH 5.8 211/255] drm/etnaviv: fix external abort seen on GC600 rev 0x19

2020-09-01 Thread Greg Kroah-Hartman
From: Christian Gmeiner commit 2c5bf028ef34745e7b3fe768f9c9355ecc7df101 upstream. It looks like that this GPU core triggers an abort when reading VIVS_HI_CHIP_PRODUCT_ID and/or VIVS_HI_CHIP_ECO_ID. I looked at different versions of Vivante's kernel driver and did not found anything about this i

[PATCH 5.8 210/255] drm/i915: Fix cmd parser desc matching with masks

2020-09-01 Thread Greg Kroah-Hartman
From: Mika Kuoppala commit e5f10d6385cda083037915c12b130887c8831d2b upstream. Our variety of defined gpu commands have the actual command id field and possibly length and flags applied. We did start to apply the mask during initialization of the cmd descriptors but forgot to also apply it on co

[PATCH 5.8 189/255] writeback: Fix sync livelock due to b_dirty_time processing

2020-09-01 Thread Greg Kroah-Hartman
From: Jan Kara commit f9cae926f35e8230330f28c7b743ad088611a8de upstream. When we are processing writeback for sync(2), move_expired_inodes() didn't set any inode expiry value (older_than_this). This can result in writeback never completing if there's steady stream of inodes added to b_dirty_time

[PATCH 5.8 228/255] USB: gadget: u_f: add overflow checks to VLA macros

2020-09-01 Thread Greg Kroah-Hartman
From: Brooke Basile commit b1cd1b65afba95971fa457dfdb2c941c60d38c5b upstream. size can potentially hold an overflowed value if its assigned expression is left unchecked, leading to a smaller than needed allocation when vla_group_size() is used by callers to allocate memory. To fix this, add a te

Re: [RFC RESEND PATCH 0/1] USB EHCI: repeated resets on full and low speed devices

2020-09-01 Thread Khalid Aziz
On 8/31/20 8:31 PM, Alan Stern wrote: > On Mon, Aug 31, 2020 at 10:23:30AM -0600, Khalid Aziz wrote: >> [Resending since I screwed up linux-usb mailing list address in >> cut-n-paste in original email] >> >> >> I recently replaced the motherboard on my desktop with an MSI B450-A >> Pro Max motherbo

[PATCH 5.8 201/255] powerpc/32s: Disable VMAP stack which CONFIG_ADB_PMU

2020-09-01 Thread Greg Kroah-Hartman
From: Christophe Leroy commit 4a133eb351ccc275683ad49305d0b04dde903733 upstream. low_sleep_handler() can't restore the context from virtual stack because the stack can hardly be accessed with MMU OFF. For now, disable VMAP stack when CONFIG_ADB_PMU is selected. Fixes: cd08f109e262 ("powerpc/32

[PATCH 5.8 208/255] x86/irq: Unbreak interrupt affinity setting

2020-09-01 Thread Greg Kroah-Hartman
From: Thomas Gleixner commit e027f799cdd70400c5485b1a54f482255985 upstream. Several people reported that 5.8 broke the interrupt affinity setting mechanism. The consolidation of the entry code reused the regular exception entry code for device interrupts and changed the way how the vector n

[PATCH 5.8 255/255] ALSA: usb-audio: Update documentation comment for MS2109 quirk

2020-09-01 Thread Greg Kroah-Hartman
From: Hector Martin commit 74a2a7de81a2ef20732ec02087314e92692a7a1b upstream. As the recent fix addressed the channel swap problem more properly, update the comment as well. Fixes: 1b7ecc241a67 ("ALSA: usb-audio: work around streaming quirk for MacroSilicon MS2109") Signed-off-by: Hector Marti

[PATCH 5.8 253/255] libbpf: Fix build on ppc64le architecture

2020-09-01 Thread Greg Kroah-Hartman
From: Andrii Nakryiko commit 3fb1a96a91120877488071a167d26d76be4be977 upstream. On ppc64le we get the following warning: In file included from btf_dump.c:16:0: btf_dump.c: In function ‘btf_dump_emit_struct_def’: ../include/linux/kernel.h:20:17: error: comparison of distinct pointer types

[PATCH 5.8 252/255] drm/vmwgfx/ldu: Use drm_mode_config_reset

2020-09-01 Thread Greg Kroah-Hartman
From: Roland Scheidegger commit 981243371a5d832af5bc572071172e955d02fe88 upstream. Same problem as in stdu, same fix. Fixes: 51f644b40b4b ("drm/atomic-helper: reset vblank on crtc reset") Acked-by: Charmaine Lee Reviewed-by: Zack Rusin Signed-off-by: Roland Scheidegger Signed-off-by: Greg Kr

[PATCH 5.8 246/255] drm/atomic-helper: reset vblank on crtc reset

2020-09-01 Thread Greg Kroah-Hartman
From: Daniel Vetter [ Upstream commit 51f644b40b4b794b28b982fdd5d0dd8ee63f9272 ] Only when vblanks are supported ofc. Some drivers do this already, but most unfortunately missed it. This opens up bugs after driver load, before the crtc is enabled for the first time. syzbot spotted this when loa

[PATCH 5.8 213/255] drm/modeset-lock: Take the modeset BKL for legacy drivers

2020-09-01 Thread Greg Kroah-Hartman
From: Daniel Vetter commit 77ef38574beb3e0b414db48e9c0f04633df68ba6 upstream. This fell off in the conversion in commit 9bcaa3fe58ab7559e71df798bcff6e0795158695 Author: Michal Orzel Date: Tue Apr 28 19:10:04 2020 +0200 drm: Replace drm_modeset_lock/unlock_all with DRM_MODESET_LOCK_ALL_*

Re: [PATCH RESEND v1 05/11] perf mem: Support AUX trace

2020-09-01 Thread James Clark
Hi Leo, > > +static int process_attr(struct perf_tool *tool __maybe_unused, > + union perf_event *event, > + struct evlist **pevlist) > +{ > + int err; > + > + err = perf_event__process_attr(tool, event, pevlist); > + if (err) > + r

[PATCH 5.8 247/255] fbmem: pull fbcon_update_vcs() out of fb_set_var()

2020-09-01 Thread Greg Kroah-Hartman
From: Tetsuo Handa [ Upstream commit d88ca7e1a27eb2df056bbf37ddef62e1c73d37ea ] syzbot is reporting OOB read bug in vc_do_resize() [1] caused by memcpy() based on outdated old_{rows,row_size} values, for resize_screen() can recurse into vc_do_resize() which changes vc->vc_{cols,rows} that outdat

[PATCH 5.8 254/255] dma-pool: Fix an uninitialized variable bug in atomic_pool_expand()

2020-09-01 Thread Greg Kroah-Hartman
From: Dan Carpenter commit 892fc9f6835ecf075efac20789b012c5c9997fcc upstream. The "page" pointer can be used with out being initialized. Fixes: d7e673ec2c8e ("dma-pool: Only allocate from CMA when in same memory zone") Signed-off-by: Dan Carpenter Signed-off-by: Christoph Hellwig Signed-off-

[PATCH 5.8 250/255] drm/vmwgfx/stdu: Use drm_mode_config_reset

2020-09-01 Thread Greg Kroah-Hartman
From: Daniel Vetter commit 68745d1edf1700a668c15ecbed466d18f14c7e9b upstream. When converting to atomic the state reset was done by directly calling the functions, and before the modeset object was fully initialized. This means the various ->dev pointers weren't set up. After commit 51f644b40b

Re: [PATCH 06/19] drm/msm/gpu: add dev_to_gpu() helper

2020-09-01 Thread Rob Clark
On Mon, Aug 31, 2020 at 9:32 PM Bjorn Andersson wrote: > > On Thu 13 Aug 21:41 CDT 2020, Rob Clark wrote: > > > From: Rob Clark > > > > In a later patch, the drvdata will not directly be 'struct msm_gpu *', > > so add a helper to reduce the churn. > > > > Signed-off-by: Rob Clark > > --- > > dr

[PATCH 5.8 150/255] scsi: qla2xxx: Indicate correct supported speeds for Mezz card

2020-09-01 Thread Greg Kroah-Hartman
From: Quinn Tran [ Upstream commit 4709272f6327cc4a8ee1dc55771bcf9718346980 ] Correct the supported speeds for 16G Mezz card. Link: https://lore.kernel.org/r/20200806111014.28434-4-njav...@marvell.com Reviewed-by: Himanshu Madhani Signed-off-by: Quinn Tran Signed-off-by: Nilesh Javali Signed

[PATCH 5.8 251/255] drm/vmwgfx/sou: Use drm_mode_config_reset

2020-09-01 Thread Greg Kroah-Hartman
From: Roland Scheidegger commit 1338441cf166e2ef789af5915b961d4e13a4ec31 upstream. Same problem as in stdu, same fix. Fixes: 51f644b40b4b ("drm/atomic-helper: reset vblank on crtc reset") Acked-by: Charmaine Lee Reviewed-by: Zack Rusin Signed-off-by: Roland Scheidegger Signed-off-by: Greg Kr

[PATCH 5.8 219/255] drm/amd/pm: correct Vega12 swctf limit setting

2020-09-01 Thread Greg Kroah-Hartman
From: Evan Quan commit e0ffd340249699ad27a6c91abdfa3e89f7823941 upstream. Correct the Vega12 thermal swctf limit. Signed-off-by: Evan Quan Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher Cc: sta...@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/powerplay/h

[PATCH 5.8 173/255] btrfs: check the right error variable in btrfs_del_dir_entries_in_log

2020-09-01 Thread Greg Kroah-Hartman
From: Josef Bacik commit fb2fecbad50964b9f27a3b182e74e437b40753ef upstream. With my new locking code dbench is so much faster that I tripped over a transaction abort from ENOSPC. This turned out to be because btrfs_del_dir_entries_in_log was checking for ret == -ENOSPC, but this function sets e

[PATCH 5.8 242/255] usb: typec: tcpm: Fix Fix source hard reset response for TDA 2.3.1.1 and TDA 2.3.1.2 failures

2020-09-01 Thread Greg Kroah-Hartman
From: Badhri Jagan Sridharan commit 23e26d0577535f5ffe4ff8ed6d06e009553c0bca upstream. The patch addresses the compliance test failures while running TDA 2.3.1.1 and TDA 2.3.1.2 of the "PD Communications Engine USB PD Compliance MOI" test plan published in https://www.usb.org/usbc. For a produ

[PATCH 5.8 216/255] drm/amdgpu/gfx10: refine mgcg setting

2020-09-01 Thread Greg Kroah-Hartman
From: Jiansong Chen commit de7a1b0b8753e1b084f0e339ffab295d27ef upstream. 1. enable ENABLE_CGTS_LEGACY to fix specviewperf11 random hang. 2. remove obsolete RLC_CGTT_SCLK_OVERRIDE workaround. Signed-off-by: Jiansong Chen Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher Cc: sta...@v

Re: [PATCH] x86/uaccess: Use pointer masking to limit uaccess speculation

2020-09-01 Thread Christoph Hellwig
On Tue, Sep 01, 2020 at 05:05:53PM +0200, Christoph Hellwig wrote: > > Is there anything in particular that's tricky, or do you just want > > someone to look generally? From a quick grep arch/arm64/* looks clean, but > > I suspect that's misleading. > > Yes, it should be mostly trivial. I just be

[PATCH 5.8 245/255] io_uring: make offset == -1 consistent with preadv2/pwritev2

2020-09-01 Thread Greg Kroah-Hartman
From: Jens Axboe [ Upstream commit 0fef948363f62494d779cf9dc3c0a86ea1e5f7cd ] The man page for io_uring generally claims were consistent with what preadv2 and pwritev2 accept, but turns out there's a slight discrepancy in how offset == -1 is handled for pipes/streams. preadv doesn't allow it, bu

[PATCH 5.8 217/255] drm/amd/powerplay: Fix hardmins not being sent to SMU for RV

2020-09-01 Thread Greg Kroah-Hartman
From: Nicholas Kazlauskas commit e2bf3723db563457c0abe4eaeedac25d1d76 upstream. [Why] DC uses these to raise the voltage as needed for higher dispclk/dppclk and to ensure that we have enough bandwidth to drive the displays. There's a bug preventing these from actuially sending messages sinc

[PATCH 5.8 222/255] USB: yurex: Fix bad gfp argument

2020-09-01 Thread Greg Kroah-Hartman
From: Alan Stern commit f176ede3a3bde5b398a6777a7f9ff091baa2d3ff upstream. The syzbot fuzzer identified a bug in the yurex driver: It passes GFP_KERNEL as a memory-allocation flag to usb_submit_urb() at a time when its state is TASK_INTERRUPTIBLE, not TASK_RUNNING: do not call blocking ops when

[PATCH 5.8 237/255] USB: Fix device driver race

2020-09-01 Thread Greg Kroah-Hartman
From: Bastien Nocera commit d5643d2249b279077427b2c2b2ffae9b70c95b0b upstream. When a new device with a specialised device driver is plugged in, the new driver will be modprobe()'d but the driver core will attach the "generic" driver to the device. After that, nothing will trigger a reprobe whe

[PATCH 5.8 149/255] scsi: qla2xxx: Flush I/O on zone disable

2020-09-01 Thread Greg Kroah-Hartman
From: Quinn Tran [ Upstream commit a117579d0205b5a0592a3a98493e2b875e4da236 ] Perform implicit logout to flush I/O on zone disable. Link: https://lore.kernel.org/r/20200806111014.28434-3-njav...@marvell.com Reviewed-by: Himanshu Madhani Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhan

[PATCH 5.8 236/255] USB: Also match device drivers using the ->match vfunc

2020-09-01 Thread Greg Kroah-Hartman
From: Bastien Nocera commit adb6e6ac20eedcf1dce19dc75b224e63c0828ea1 upstream. We only ever used the ID table matching before, but we should also support open-coded match functions. Fixes: 88b7381a939de ("USB: Select better matching USB drivers when available") Signed-off-by: Bastien Nocera Cc

Re: [RFC PATCH v7 17/23] kernel/entry: Add support for core-wide protection of kernel-mode

2020-09-01 Thread Thomas Gleixner
On Fri, Aug 28 2020 at 15:51, Julien Desfossez wrote: > @@ -112,59 +113,84 @@ static __always_inline void exit_to_user_mode(void) > /* Workaround to allow gradual conversion of architecture code */ > void __weak arch_do_signal(struct pt_regs *regs) { } > > -static unsigned long exit_to_user_mod

[PATCH 5.8 225/255] USB: quirks: Ignore duplicate endpoint on Sound Devices MixPre-D

2020-09-01 Thread Greg Kroah-Hartman
From: Alan Stern commit 068834a2773b6a12805105cfadbb3d4229fc6e0a upstream. The Sound Devices MixPre-D audio card suffers from the same defect as the Sound Devices USBPre2: an endpoint shared between a normal audio interface and a vendor-specific interface, in violation of the USB spec. Since th

[PATCH 5.8 214/255] drm/amdgpu: Fix buffer overflow in INFO ioctl

2020-09-01 Thread Greg Kroah-Hartman
From: Alex Deucher commit b5b97cab55eb71daba3283c8b1d2cce456d511a1 upstream. The values for "se_num" and "sh_num" come from the user in the ioctl. They can be in the 0-255 range but if they're more than AMDGPU_GFX_MAX_SE (4) or AMDGPU_GFX_MAX_SH_PER_SE (2) then it results in an out of bounds rea

[PATCH 5.8 123/255] drm/amd/powerplay: correct UVD/VCE PG state on custom pptable uploading

2020-09-01 Thread Greg Kroah-Hartman
From: Evan Quan [ Upstream commit 2c5b8080d810d98e3e59617680218499b17c84a1 ] The UVD/VCE PG state is managed by UVD and VCE IP. It's error-prone to assume the bootup state in SMU based on the dpm status. Signed-off-by: Evan Quan Acked-by: Alex Deucher Signed-off-by: Alex Deucher Signed-off-b

Re: [git pull] habanalabs fixes pull request for kernel 5.9-rc4

2020-09-01 Thread Greg KH
On Mon, Aug 31, 2020 at 03:58:29PM +0300, Oded Gabbay wrote: > Hello Greg, > > This is the pull request for habanalabs driver fixes for 5.9-rc4. > Two small fixes, details are in the tag. > > Thanks, > Oded > > The following changes since commit f75aef392f869018f78cfedf3c320a6b3fcfda6b: > > L

[PATCH 5.8 115/255] ext4: handle error of ext4_setup_system_zone() on remount

2020-09-01 Thread Greg Kroah-Hartman
From: Jan Kara [ Upstream commit d176b1f62f242ab259ff665a26fbac69db1aecba ] ext4_setup_system_zone() can fail. Handle the failure in ext4_remount(). Reviewed-by: Lukas Czerner Signed-off-by: Jan Kara Link: https://lore.kernel.org/r/20200728130437.7804-2-j...@suse.cz Signed-off-by: Theodore Ts

[PATCH 5.8 227/255] usb: host: ohci-exynos: Fix error handling in exynos_ohci_probe()

2020-09-01 Thread Greg Kroah-Hartman
From: Tang Bin commit 1d4169834628d18b2392a2da92b7fbf5e8e2ce89 upstream. If the function platform_get_irq() failed, the negative value returned will not be detected here. So fix error handling in exynos_ohci_probe(). And when get irq failed, the function platform_get_irq() logs an error message,

[PATCH 5.8 230/255] USB: gadget: u_f: Unbreak offset calculation in VLAs

2020-09-01 Thread Greg Kroah-Hartman
From: Andy Shevchenko commit bfd08d06d978d0304eb6f7855b548aa2cd1c5486 upstream. Inadvertently the commit b1cd1b65afba ("USB: gadget: u_f: add overflow checks to VLA macros") makes VLA macros to always return 0 due to different scope of two variables of the same name. Obviously we need to have on

[PATCH 5.8 180/255] serial: samsung: Removes the IRQ not found warning

2020-09-01 Thread Greg Kroah-Hartman
From: Tamseel Shams commit 8c6c378b0cbe0c9f1390986b5f8ffb5f6ff7593b upstream. In few older Samsung SoCs like s3c2410, s3c2412 and s3c2440, UART IP is having 2 interrupt lines. However, in other SoCs like s3c6400, s5pv210, exynos5433, and exynos4210 UART is having only 1 interrupt line. Due to th

[PATCH 5.8 122/255] drm/amd/powerplay: correct Vega20 cached smu feature state

2020-09-01 Thread Greg Kroah-Hartman
From: Evan Quan [ Upstream commit 266d81d9eed30f4994d76a2b237c63ece062eefe ] Correct the cached smu feature state on pp_features sysfs setting. Signed-off-by: Evan Quan Acked-by: Alex Deucher Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- .../drm/amd/powerplay/hwmgr/vega20_hwmg

[PATCH 5.8 223/255] usb: uas: Add quirk for PNY Pro Elite

2020-09-01 Thread Greg Kroah-Hartman
From: Thinh Nguyen commit 9a469bc9f32dd33c7aac5744669d21a023a719cd upstream. PNY Pro Elite USB 3.1 Gen 2 device (SSD) doesn't respond to ATA_12 pass-through command (i.e. it just hangs). If it doesn't support this command, it should respond properly to the host. Let's just add a quirk to be able

[PATCH 5.8 212/255] drm/dp_mst: Dont return error code when crtc is null

2020-09-01 Thread Greg Kroah-Hartman
From: Bhawanpreet Lakha commit 88fee1c9007a38c19f2c558dc0ab1ddb4c323dc5 upstream. [Why] In certain cases the crtc can be NULL and returning -EINVAL causes atomic check to fail when it shouln't. This leads to valid configurations failing because atomic check fails. [How] Don't early return if cr

[PATCH 5.8 204/255] crypto: af_alg - Work around empty control messages without MSG_MORE

2020-09-01 Thread Greg Kroah-Hartman
From: Herbert Xu commit c195d66a8a75c60515819b101975f38b7ec6577f upstream. The iwd daemon uses libell which sets up the skcipher operation with two separate control messages. As the first control message is sent without MSG_MORE, it is interpreted as an empty request. While libell should be fi

Re: [RFC PATCH v2] coresight: etm4x: Modify core-commit of cpu to avoid the overflow of HiSilicon ETM

2020-09-01 Thread Mathieu Poirier
On Mon, 31 Aug 2020 at 19:57, Qi Liu wrote: > > Hi Mathieu, > > Thanks for your review. > > On 2020/9/1 6:13, Mathieu Poirier wrote: > > Following Al's comment I have the following recommendations... > > > > On Wed, Aug 19, 2020 at 04:06:37PM +0800, Qi Liu wrote: > >> When too much trace informati

[PATCH 5.8 188/255] writeback: Avoid skipping inode writeback

2020-09-01 Thread Greg Kroah-Hartman
From: Jan Kara commit 5afced3bf28100d81fb2fe7e98918632a08feaf5 upstream. Inode's i_io_list list head is used to attach inode to several different lists - wb->{b_dirty, b_dirty_time, b_io, b_more_io}. When flush worker prepares a list of inodes to writeback e.g. for sync(2), it moves inodes to b_

[PATCH 5.8 184/255] serial: 8250_exar: Fix number of ports for Commtech PCIe cards

2020-09-01 Thread Greg Kroah-Hartman
From: Valmer Huhn commit c6b9e95dde7b54e6a53c47241201ab5a4035c320 upstream. The following in 8250_exar.c line 589 is used to determine the number of ports for each Exar board: nr_ports = board->num_ports ? board->num_ports : pcidev->device & 0x0f; If the number of ports a card has is not expli

[PATCH 5.8 185/255] serial: 8250: change lock order in serial8250_do_startup()

2020-09-01 Thread Greg Kroah-Hartman
From: Sergey Senozhatsky commit 205d300aea75623e1ae4aa43e0d265ab9cf195fd upstream. We have a number of "uart.port->desc.lock vs desc.lock->uart.port" lockdep reports coming from 8250 driver; this causes a bit of trouble to people, so let's fix it. The problem is reverse lock order in two differ

[PATCH 5.8 121/255] spi: stm32: always perform registers configuration prior to transfer

2020-09-01 Thread Greg Kroah-Hartman
From: Alain Volmat [ Upstream commit 60ccb3515fc61a0124c70aa37317f75b67560024 ] SPI registers content may have been lost upon suspend/resume sequence. So, always compute and apply the necessary configuration in stm32_spi_transfer_one_setup routine. Signed-off-by: Alain Volmat Link: https://lo

[PATCH 5.8 205/255] usbip: Implement a match function to fix usbip

2020-09-01 Thread Greg Kroah-Hartman
From: M. Vefa Bicakci commit 7a2f2974f26542b4e7b9b4321edb3cbbf3eeb91a upstream. Commit 88b7381a939d ("USB: Select better matching USB drivers when available") introduced the use of a "match" function to select a non-generic/better driver for a particular USB device. This unfortunately breaks the

[PATCH 5.8 209/255] x86/hotplug: Silence APIC only after all interrupts are migrated

2020-09-01 Thread Greg Kroah-Hartman
From: Ashok Raj commit 52d6b926aabc47643cd910c85edb262b7f44c168 upstream. There is a race when taking a CPU offline. Current code looks like this: native_cpu_disable() { ... apic_soft_disable(); /* * Any existing set bits for pending interrupt to * this

[PATCH 5.8 203/255] device property: Fix the secondary firmware node handling in set_primary_fwnode()

2020-09-01 Thread Greg Kroah-Hartman
From: Heikki Krogerus commit c15e1bdda4365a5f17cdadf22bf1c1df13884a9e upstream. When the primary firmware node pointer is removed from a device (set to NULL) the secondary firmware node pointer, when it exists, is made the primary node for the device. However, the secondary firmware node pointer

Re: [PATCH 00/10] dt-bindings: Convert SP805 to Json-schema (and fix users)

2020-09-01 Thread André Przywara
On 28/08/2020 22:32, Florian Fainelli wrote: Hi, Florian, thanks for queueing the Broadcom specific patches! > On 8/28/20 2:28 PM, Rob Herring wrote: >> On Fri, Aug 28, 2020 at 1:34 PM Florian Fainelli >> wrote: >>> >>> On 8/28/20 6:05 AM, Andre Przywara wrote: This is an attempt to conve

[PATCH 5.8 117/255] fs: prevent BUG_ON in submit_bh_wbc()

2020-09-01 Thread Greg Kroah-Hartman
From: Xianting Tian [ Upstream commit 377254b2cd2252c7c3151b113cbdf93a7736c2e9 ] If a device is hot-removed --- for example, when a physical device is unplugged from pcie slot or a nbd device's network is shutdown --- this can result in a BUG_ON() crash in submit_bh_wbc(). This is because the w

[PATCH 5.8 131/255] selftest/bpf: Fix compilation warnings in 32-bit mode

2020-09-01 Thread Greg Kroah-Hartman
From: Andrii Nakryiko [ Upstream commit 9028bbcc3e12510cac13a9554f1a1e39667a4387 ] Fix compilation warnings emitted when compiling selftests for 32-bit platform (x86 in my case). Signed-off-by: Andrii Nakryiko Signed-off-by: Alexei Starovoitov Link: https://lore.kernel.org/bpf/20200813204945.

[PATCH 5.8 198/255] KVM: arm64: Set HCR_EL2.PTW to prevent AT taking synchronous exception

2020-09-01 Thread Greg Kroah-Hartman
From: James Morse commit 71a7f8cb1ca4ca7214a700b1243626759b6c11d4 upstream. AT instructions do a translation table walk and return the result, or the fault in PAR_EL1. KVM uses these to find the IPA when the value is not provided by the CPU in HPFAR_EL1. If a translation table walk causes an ex

[PATCH 5.8 194/255] usb: host: xhci: fix ep context print mismatch in debugfs

2020-09-01 Thread Greg Kroah-Hartman
From: Li Jun commit 0077b1b2c8d9ad5f7a08b62fb8524cdb9938388f upstream. dci is 0 based and xhci_get_ep_ctx() will do ep index increment to get the ep context. [rename dci to ep_index -Mathias] Cc: stable # v4.15+ Fixes: 02b6fdc2a153 ("usb: xhci: Add debugfs interface for xHCI driver") Signed-of

[PATCH 5.8 139/255] s390/cio: add cond_resched() in the slow_eval_known_fn() loop

2020-09-01 Thread Greg Kroah-Hartman
From: Vineeth Vijayan [ Upstream commit 0b8eb2ee9da1e8c9b8082f404f3948aa82a057b2 ] The scanning through subchannels during the time of an event could take significant amount of time in case of platforms with lots of known subchannels. This might result in higher scheduling latencies for other ta

Re: [PATCH 4/5] mm: fix check_move_unevictable_pages() on THP

2020-09-01 Thread Yang Shi
On Sun, Aug 30, 2020 at 2:08 PM Hugh Dickins wrote: > > check_move_unevictable_pages() is used in making unevictable shmem pages > evictable: by shmem_unlock_mapping(), drm_gem_check_release_pagevec() and > i915/gem check_release_pagevec(). Those may pass down subpages of a huge > page, when /sys

[PATCH 5.8 193/255] usb: host: xhci-tegra: fix tegra_xusb_get_phy()

2020-09-01 Thread Greg Kroah-Hartman
From: JC Kuo commit d54343a87732726b04ac5af873916b5ed4f52932 upstream. tegra_xusb_get_phy() should take input argument "name". Signed-off-by: JC Kuo Cc: stable Link: https://lore.kernel.org/r/20200811092553.657762-1-jc...@nvidia.com Signed-off-by: Greg Kroah-Hartman --- drivers/usb/host/xh

[PATCH 5.8 147/255] scsi: scsi_debug: Fix scp is NULL errors

2020-09-01 Thread Greg Kroah-Hartman
From: Douglas Gilbert [ Upstream commit 223f91b48079227f914657f07d2d686f7b60aa26 ] John Garry reported 'sdebug_q_cmd_complete: scp is NULL' failures that were mainly seen on aarch64 machines (e.g. RPi 4 with four A72 CPUs). The problem was tracked down to a missing critical section on a "short c

[PATCH 5.8 202/255] powerpc/perf: Fix crashes with generic_compat_pmu & BHRB

2020-09-01 Thread Greg Kroah-Hartman
From: Alexey Kardashevskiy commit b460b512417ae9c8b51a3bdcc09020cd6c60ff69 upstream. The bhrb_filter_map ("The Branch History Rolling Buffer") callback is only defined in raw CPUs' power_pmu structs. The "architected" CPUs use generic_compat_pmu, which does not have this callback, and crashes oc

[PATCH 8/9] nvdimm: simplify revalidate_disk handling

2020-09-01 Thread Christoph Hellwig
The nvdimm block driver abuse revalidate_disk in a strange way, and totally unrelated to what other drivers do. Simplify this by just calling nvdimm_revalidate_disk (which seems rather misnamed) from the probe routines, as the additional bdev size revalidation is pointless at this point, and remov

[PATCH 7/9] sd: open code revalidate_disk

2020-09-01 Thread Christoph Hellwig
Instead of calling revalidate_disk just do the work directly by calling sd_revalidate_disk, and revalidate_disk_size where needed. Signed-off-by: Christoph Hellwig --- drivers/scsi/sd.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.

[PATCH 5/9] block: use revalidate_disk_size in set_capacity_revalidate_and_notify

2020-09-01 Thread Christoph Hellwig
Only virtio_blk and xen-blkfront set the revalidate argument to true, and both do not implement the ->revalidate_disk method. So switch to the helper that just updates the size instead. Signed-off-by: Christoph Hellwig --- block/genhd.c | 7 +++ include/linux/genhd.h | 4 ++-- 2 fil

Re: [PATCH] perf: correct SNOOPX field offset

2020-09-01 Thread Arnaldo Carvalho de Melo
Em Tue, Sep 01, 2020 at 05:12:04PM +0200, pet...@infradead.org escreveu: > On Tue, Sep 01, 2020 at 12:06:30PM -0300, Arnaldo Carvalho de Melo wrote: > > > Also you mixed up tools/ with include/ things, the perf part of the > > kernel is maintained by Ingo, PeterZ. > > Right, it helps if the right

Re: [PATCH] net: ipv6: fix __rt6_purge_dflt_routers when forwarding is not set on all ifaces

2020-09-01 Thread Brian Vazquez
On Tue, Sep 1, 2020 at 1:20 AM Eric Dumazet wrote: > > On Tue, Sep 1, 2020 at 8:58 AM Brian Vazquez wrote: > > > > The problem is exposed when the system has multiple ifaces and > > forwarding is enabled on a subset of them, __rt6_purge_dflt_routers will > > clean the default route on all the ifa

[PATCH 6/9] nvme: opencode revalidate_disk in nvme_validate_ns

2020-09-01 Thread Christoph Hellwig
Keep control in the NVMe driver instead of going through an indirect call back into ->revalidate_disk. Also reorder the function a bit to be easier to follow with the additional code. And now that we have removed all callers of revalidate_disk() in the nvme code, ->revalidate_disk is only called

[PATCH 2/9] block: don't clear bd_invalidated in check_disk_size_change

2020-09-01 Thread Christoph Hellwig
bd_invalidated is set by check_disk_change or in add_disk to initiate a partition scan. Move it from check_disk_size_change which is called from both revalidate_disk() and bdev_disk_changed() to only the latter, as that is what is called from the block device open code (and nbd) to deal with the b

[PATCH 9/9] block: remove revalidate_disk()

2020-09-01 Thread Christoph Hellwig
Remove the now unused helper. Signed-off-by: Christoph Hellwig --- drivers/md/md.h | 2 +- fs/block_dev.c| 19 --- include/linux/genhd.h | 1 - 3 files changed, 1 insertion(+), 21 deletions(-) diff --git a/drivers/md/md.h b/drivers/md/md.h index d9c4e6b7e9398d..f

[PATCH 3/9] block: rename bd_invalidated

2020-09-01 Thread Christoph Hellwig
Replace bd_invalidate with a new BDEV_NEED_PART_SCAN flag in a bd_flags variable to better describe the condition. Signed-off-by: Christoph Hellwig --- block/genhd.c | 2 +- drivers/block/nbd.c | 8 fs/block_dev.c| 10 +- include/linux/blk_types.h

[PATCH 5.4 097/214] ALSA: usb-audio: Add capture support for Saffire 6 (USB 1.1)

2020-09-01 Thread Greg Kroah-Hartman
From: Alexander Tsoy [ Upstream commit 470757f5b3a46bd85741bb0d8c1fd3f21048a2af ] Capture and playback endpoints on Saffire 6 (USB 1.1) resides on the same interface. This was not supported by the composite quirk back in the day when initial support for this device was added, thus only playback

[PATCH 5.8 084/255] ALSA: usb-audio: Add capture support for Saffire 6 (USB 1.1)

2020-09-01 Thread Greg Kroah-Hartman
From: Alexander Tsoy [ Upstream commit 470757f5b3a46bd85741bb0d8c1fd3f21048a2af ] Capture and playback endpoints on Saffire 6 (USB 1.1) resides on the same interface. This was not supported by the composite quirk back in the day when initial support for this device was added, thus only playback

[PATCH 4/9] block: add a new revalidate_disk_size helper

2020-09-01 Thread Christoph Hellwig
revalidate_disk is a relative awkward helper for driver use, as it first calls an optional driver method and then updates the block device size, while most callers either don't need the method call at all, or want to keep state between the caller and the called method. Add a revalidate_disk_size h

remove revalidate_disk()

2020-09-01 Thread Christoph Hellwig
Hi Jens, this series removes the revalidate_disk() function, which has been a really odd duck in the last years. The prime reason why most people use it is because it propagates a size change from the gendisk to the block_device structure. But it also calls into the rather ill defined ->revalida

[PATCH] arm64/module: set trampoline section flags regardless of CONFIG_DYNAMIC_FTRACE

2020-09-01 Thread Jessica Yu
In the arm64 module linker script, the section .text.ftrace_trampoline is specified unconditionally regardless of whether CONFIG_DYNAMIC_FTRACE is enabled (this is simply due to the limitation that module linker scripts are not preprocessed like the vmlinux one). Normally, for .plt and .text.ftrac

[PATCH 5.8 102/255] vdpa: ifcvf: return err when fail to request config irq

2020-09-01 Thread Greg Kroah-Hartman
From: Jason Wang [ Upstream commit 9f4ce5d72b8e7a1f750598407c99f9e39dfb12fc ] We ignore the err of requesting config interrupt, fix this. Fixes: e7991f376a4d ("ifcvf: implement config interrupt in IFCVF") Cc: Zhu Lingshan Signed-off-by: Jason Wang Link: https://lore.kernel.org/r/2020072309125

[PATCH 1/9] Documentation/filesystems/locking.rst: remove an incorrect sentence

2020-09-01 Thread Christoph Hellwig
unlock_native_capacity is never called from check_disk_change(), and while revalidate_disk can be called from it, it can also be called from two other places at the moment. Signed-off-by: Christoph Hellwig --- Documentation/filesystems/locking.rst | 3 --- 1 file changed, 3 deletions(-) diff --

[PATCH 5.8 103/255] vdpa: ifcvf: free config irq in ifcvf_free_irq()

2020-09-01 Thread Greg Kroah-Hartman
From: Jason Wang [ Upstream commit 2b9f28d5e8efad34f472542315911c5ee9a65b6c ] We don't free config irq in ifcvf_free_irq() which will trigger a BUG() in pci core since we try to free the vectors that has an action. Fixing this by recording the config irq in ifcvf_hw structure and free it in ifcv

[PATCH 5.8 126/255] selftests/bpf: Fix segmentation fault in test_progs

2020-09-01 Thread Greg Kroah-Hartman
From: Jianlin Lv [ Upstream commit 0390c429dbed4068bd2cd8dded937d9a5ec24cd2 ] test_progs reports the segmentation fault as below: $ sudo ./test_progs -t mmap --verbose test_mmap:PASS:skel_open_and_load 0 nsec [...] test_mmap:PASS:adv_mmap1 0 nsec test_mmap:PASS:adv_mmap2 0 nsec test

[PATCH 5.8 154/255] Revert "scsi: qla2xxx: Fix crash on qla2x00_mailbox_command"

2020-09-01 Thread Greg Kroah-Hartman
From: Saurav Kashyap [ Upstream commit de7e6194301ad31c4ce95395eb678e51a1b907e5 ] FCoE adapter initialization failed for ISP8021 with the following patch applied. In addition, reproduction of the issue the patch originally tried to address has been unsuccessful. This reverts commit 3cb182b3fa8b

[RESEND PATCH 0/2] Add DT to get PCIe working in J721E SoC

2020-09-01 Thread Kishon Vijay Abraham I
Now that J721E PCIe support is merged (including the YAML bindings), add PCIe device tree nodes to get PCIe working in J721E SoC both in RC mode and EP mode. Series has been rebased to: git://git.kernel.org/pub/scm/linux/kernel/git/nmenon/linux ti-k3-dts-next No changes from the previous version

[PATCH 5.8 130/255] tools/bpftool: Fix compilation warnings in 32-bit mode

2020-09-01 Thread Greg Kroah-Hartman
From: Andrii Nakryiko [ Upstream commit 09f44b753a7d120becc80213c3459183c8acd26b ] Fix few compilation warnings in bpftool when compiling in 32-bit mode. Abstract away u64 to pointer conversion into a helper function. Signed-off-by: Andrii Nakryiko Signed-off-by: Alexei Starovoitov Link: http

[PATCH 5.8 153/255] scsi: qla2xxx: Fix null pointer access during disconnect from subsystem

2020-09-01 Thread Greg Kroah-Hartman
From: Quinn Tran [ Upstream commit 83949613fac61e8e37eadf8275bf072342302f4e ] NVMEAsync command is being submitted to QLA while the same NVMe controller is in the middle of reset. The reset path has deleted the association and freed aen_op->fcp_req.private. Add a check for this private pointer b

Re: [PATCH v2] iio: sx9310: Prefer async probe

2020-09-01 Thread Stephen Boyd
Quoting Douglas Anderson (2020-09-01 08:19:43) > On one board I found that: > probe of 5-0028 returned 1 after 259547 usecs > > While some of this time is attributable to the pile of i2c transfers > that we do at probe time, the lion's share (over 200 ms) is sitting > waiting in the polling loop

[PATCH 5.8 152/255] scsi: qla2xxx: Check if FW supports MQ before enabling

2020-09-01 Thread Greg Kroah-Hartman
From: Saurav Kashyap [ Upstream commit dffa11453313a115157b19021cc2e27ea98e624c ] OS boot during Boot from SAN was stuck at dracut emergency shell after enabling NVMe driver parameter. For non-MQ support the driver was enabling MQ. Add a check to confirm if FW supports MQ. Link: https://lore.ke

[PATCH 5.8 127/255] libbpf: Handle GCC built-in types for Arm NEON

2020-09-01 Thread Greg Kroah-Hartman
From: Jean-Philippe Brucker [ Upstream commit 702eddc77a905782083b14ccd05b23840675fd18 ] When building Arm NEON (SIMD) code from lib/raid6/neon.uc, GCC emits DWARF information using a base type "__Poly8_t", which is internal to GCC and not recognized by Clang. This causes build failures when bui

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