Re: [PATCH 6/7] mm: Pass pvec directly to find_get_entries

2020-08-24 Thread Matthew Wilcox
On Mon, Aug 24, 2020 at 06:16:20PM +0200, Jan Kara wrote: > On Wed 19-08-20 16:05:54, Matthew Wilcox (Oracle) wrote: > > All callers of find_get_entries() use a pvec, so pass it directly > > instead of manipulating it in the caller. > > > > Signed-off-by: Matthew Wilcox (Oracle) > > Rather than

Re: [PATCH 0/4] -ffreestanding/-fno-builtin-* patches

2020-08-24 Thread Arvind Sankar
On Tue, Aug 25, 2020 at 12:57:22AM +0900, Masahiro Yamada wrote: > > > To prevent transformation from foo() into bar(), > there are two ways in Clang to do that; > -fno-builtin-foo, and -fno-builtin-bar. > There is only one in GCC; -fno-buitin-foo. > > Is this correct? > It looked that way

Re: [PATCH 1/1] dt-bindings: riscv: sifive-l2-cache: convert bindings to json-schema

2020-08-24 Thread Rob Herring
On Mon, 24 Aug 2020 13:20:21 +0530, Sagar Kadam wrote: > Convert the device tree bindings for the SiFive's FU540-C000 SoC's L2 Cache > controller to YAML format. > > Signed-off-by: Sagar Kadam > --- > .../devicetree/bindings/riscv/sifive-l2-cache.txt | 51 >

[PATCH v2] PM: sleep: core: Fix the handling of pending runtime resume requests

2020-08-24 Thread Rafael J. Wysocki
From: Rafael J. Wysocki It has been reported that system-wide suspend may be aborted in the absence of any wakeup events due to unforseen interactions of it with the runtume PM framework. One failing scenario is when there are multiple devices sharing an ACPI power resource and runtime-resume

Re: KASAN: use-after-free Write in page_counter_uncharge

2020-08-24 Thread Shakeel Butt
On Thu, Aug 20, 2020 at 2:03 AM Michal Hocko wrote: > > On Wed 19-08-20 08:34:22, Michal Hocko wrote: > [...] > > diff --git a/mm/memcontrol.c b/mm/memcontrol.c > > index b807952b4d43..11b6dd1c4f64 100644 > > --- a/mm/memcontrol.c > > +++ b/mm/memcontrol.c > > @@ -6753,6 +6753,7 @@ struct

Re: [PATCH v7 09/10] arm64: efi: Export screen_info

2020-08-24 Thread Greg KH
On Mon, Aug 24, 2020 at 09:46:22AM -0700, Michael Kelley wrote: > The Hyper-V frame buffer driver may be built as a module, and > it needs access to screen_info. So export screen_info. > > Signed-off-by: Michael Kelley > --- > arch/arm64/kernel/efi.c | 1 + > 1 file changed, 1 insertion(+) > >

[PATCH v2 03/19] dt-bindings: gpio: fsl-imx-gpio: Add parsing of hogs

2020-08-24 Thread Krzysztof Kozlowski
Allow parsing GPIO controller children nodes with GPIO hogs to fix warning: arch/arm64/boot/dts/freescale/imx8mq-evk.dt.yaml: gpio@3024: 'wl-reg-on' does not match any of the regexes: 'pinctrl-[0-9]+' From schema: Documentation/devicetree/bindings/gpio/fsl-imx-gpio.yaml Signed-off-by:

[PATCH v2 02/19] dt-bindings: gpio: fsl-imx-gpio: Add gpio-ranges property

2020-08-24 Thread Krzysztof Kozlowski
The GPIO controller node can have gpio-ranges property. This fixes dtbs_check warnings like: arch/arm64/boot/dts/freescale/imx8mm-evk.dt.yaml: gpio@3020: 'gpio-ranges' does not match any of the regexes: 'pinctrl-[0-9]+' From schema:

[PATCH 07/12] MIPS: Convert R10000_LLSC_WAR info a config option

2020-08-24 Thread Thomas Bogendoerfer
Use a new config option to enabel R1000_LLSC workaound and remove define from different war.h files. Signed-off-by: Thomas Bogendoerfer --- arch/mips/Kconfig | 8 arch/mips/include/asm/futex.h | 4 ++-- arch/mips/include/asm/llsc.h

Re: [PATCH 2/2] media: uvcvideo: Convey full ycbcr colorspace information to v4l2

2020-08-24 Thread Adam Goode
On Mon, Aug 24, 2020 at 10:38 AM Hans Verkuil wrote: > > On 24/08/2020 15:56, Adam Goode wrote: > > On Mon, Aug 24, 2020 at 4:48 AM Hans Verkuil > > wrote: > >> > >> On 23/08/2020 17:08, Laurent Pinchart wrote: > >>> Hi Adam, > >>> > >>> (CC'ing Hans Verkuil) > >>> > >>> On Sun, Aug 23, 2020 at

[PATCH AUTOSEL 5.8 04/63] ext4: handle read only external journal device

2020-08-24 Thread Sasha Levin
From: Lukas Czerner [ Upstream commit 273108fa5015eeffc4bacfa5ce272af3434b96e4 ] Ext4 uses blkdev_get_by_dev() to get the block_device for journal device which does check to see if the read-only block device was opened read-only. As a result ext4 will hapily proceed mounting the file system

[PATCH 04/12] MIPS: Remove MIPS4K_ICACHE_REFILL_WAR and MIPS_CACHE_SYNC_WAR

2020-08-24 Thread Thomas Bogendoerfer
Neither MIPS4K_ICACHE_REFILL_WAR nor MIPS_CACHE_SYNC_WAR are implemented, so removing defines for it won't change anything. Signed-off-by: Thomas Bogendoerfer --- arch/mips/include/asm/mach-cavium-octeon/war.h | 2 -- arch/mips/include/asm/mach-generic/war.h | 2 --

[PATCH AUTOSEL 5.8 03/63] ext4: don't BUG on inconsistent journal feature

2020-08-24 Thread Sasha Levin
From: Jan Kara [ Upstream commit 11215630aada28307ba555a43138db6ac54fa825 ] A customer has reported a BUG_ON in ext4_clear_journal_err() hitting during an LTP testing. Either this has been caused by a test setup issue where the filesystem was being overwritten while LTP was mounting it or the

[PATCH AUTOSEL 5.8 02/63] jbd2: make sure jh have b_transaction set in refile/unfile_buffer

2020-08-24 Thread Sasha Levin
From: Lukas Czerner [ Upstream commit 24dc9864914eb5813173cfa53313fcd02e4aea7d ] Callers of __jbd2_journal_unfile_buffer() and __jbd2_journal_refile_buffer() assume that the b_transaction is set. In fact if it's not, we can end up with journal_head refcounting errors leading to crash much later

[PATCH 05/12] MIPS: Convert TX49XX_ICACHE_INDEX_INV into a config option

2020-08-24 Thread Thomas Bogendoerfer
Use a new config option to enable TX49XX I-cache index invalidate workaround and remove define from different war.h files. Signed-off-by: Thomas Bogendoerfer --- arch/mips/Kconfig | 9 + arch/mips/include/asm/mach-cavium-octeon/war.h | 1 -

[PATCH AUTOSEL 5.8 07/63] ext4: abort the filesystem if failed to async write metadata buffer

2020-08-24 Thread Sasha Levin
From: "zhangyi (F)" [ Upstream commit bc71726c725767205757821df364acff87f92ac5 ] There is a risk of filesystem inconsistency if we failed to async write back metadata buffer in the background. Because of current buffer's end io procedure is handled by end_buffer_async_write() in the block

Re: [RFC v2 4/5] dt-bindings: of: Add plumbing for restricted DMA pool

2020-08-24 Thread Tomasz Figa
On Tue, Aug 11, 2020 at 11:15 AM Tomasz Figa wrote: > > On Mon, Aug 3, 2020 at 5:15 PM Tomasz Figa wrote: > > > > Hi Claire and Rob, > > > > On Mon, Aug 3, 2020 at 4:26 PM Claire Chang wrote: > > > > > > On Sat, Aug 1, 2020 at 4:58 AM Rob Herring wrote: > > > > > > > > On Tue, Jul 28, 2020 at

Re: [PATCH] PM: sleep: core: Fix the handling of pending runtime resume requests

2020-08-24 Thread Rafael J. Wysocki
On Monday, August 24, 2020 5:04:21 PM CEST Alan Stern wrote: > On Mon, Aug 24, 2020 at 03:36:36PM +0200, Rafael J. Wysocki wrote: > > > Furthermore, by the logic used in this patch, the call to > > > pm_wakeup_event() in the original code is also redundant: Any required > > > wakeup event should

[PATCH AUTOSEL 5.8 06/63] drm/virtio: fix memory leak in virtio_gpu_cleanup_object()

2020-08-24 Thread Sasha Levin
From: Xin He [ Upstream commit 836b194d65782aaec4485a07d2aab52d3f698505 ] Before setting shmem->pages to NULL, kfree() should be called. Signed-off-by: Xin He Reviewed-by: Qi Liu Link: http://patchwork.freedesktop.org/patch/msgid/20200722051851.72662-1-hexin...@bytedance.com Signed-off-by:

[PATCH AUTOSEL 5.8 10/63] ext4: handle error of ext4_setup_system_zone() on remount

2020-08-24 Thread Sasha Levin
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

[PATCH AUTOSEL 5.8 09/63] ext4: handle option set by mount flags correctly

2020-08-24 Thread Sasha Levin
From: Lukas Czerner [ Upstream commit f25391ebb475d3ffb3aa61bb90e3594c841749ef ] Currently there is a problem with mount options that can be both set by vfs using mount flags or by a string parsing in ext4. i_version/iversion options gets lost after remount, for example $ mount -o i_version

[PATCH AUTOSEL 5.8 12/63] fs: prevent BUG_ON in submit_bh_wbc()

2020-08-24 Thread Sasha Levin
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

Re: [PATCH 00/12] Convert WAR defines to config options

2020-08-24 Thread Thomas Bogendoerfer
On Mon, Aug 24, 2020 at 10:10:07AM -0700, Florian Fainelli wrote: > On 8/24/20 9:32 AM, Thomas Bogendoerfer wrote: > > This patches convert workaround (WAR) defines into config options and > > gets rid of mach-*/war.h files. > > Most (all but octeon?) of those platforms are not particularly

Re: [patch V9 21/39] x86/irq: Convey vector as argument and not in ptregs

2020-08-24 Thread Alexander Graf
Hi Thomas, On 21.05.20 22:05, Thomas Gleixner wrote: From: Thomas Gleixner Device interrupts which go through do_IRQ() or the spurious interrupt handler have their separate entry code on 64 bit for no good reason. Both 32 and 64 bit transport the vector number through ORIG_[RE]AX in pt_regs.

[PATCH AUTOSEL 5.8 19/63] drm/amd/display: Fix LFC multiplier changing erratically

2020-08-24 Thread Sasha Levin
From: Anthony Koo [ Upstream commit e4ed4dbbc8383d42a197da8fe7ca6434b0f14def ] [Why] 1. There is a calculation that is using frame_time_in_us instead of last_render_time_in_us to calculate whether choosing an LFC multiplier would cause the inserted frame duration to be outside of range. 2. We

RE: [PATCH v7 10/10] Drivers: hv: Enable Hyper-V code to be built on ARM64

2020-08-24 Thread Michael Kelley
From: Ard Biesheuvel Sent: Monday, August 24, 2020 10:24 AM > > On Mon, 24 Aug 2020 at 18:48, Michael Kelley wrote: > > > > Update drivers/hv/Kconfig so CONFIG_HYPERV can be selected on > > ARM64, causing the Hyper-V specific code to be built. > > > > Signed-off-by: Michael Kelley > > --- > >

[PATCH AUTOSEL 5.8 17/63] drm/amd/powerplay: correct Vega20 cached smu feature state

2020-08-24 Thread Sasha Levin
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 ---

Re: [PATCH v3 05/11] genirq: Shutdown irq chips in suspend/resume during hibernation

2020-08-24 Thread Anchal Agarwal
On Sat, Aug 22, 2020 at 02:36:37AM +0200, Thomas Gleixner wrote: > CAUTION: This email originated from outside of the organization. Do not click > links or open attachments unless you can confirm the sender and know the > content is safe. > > > > On Fri, Aug 21 2020 at 22:27, Thomas Gleixner

[PATCH AUTOSEL 5.8 23/63] netfilter: avoid ipv6 -> nf_defrag_ipv6 module dependency

2020-08-24 Thread Sasha Levin
From: Florian Westphal [ Upstream commit 2404b73c3f1a5f15726c6ecd226b56f6f992767f ] nf_ct_frag6_gather is part of nf_defrag_ipv6.ko, not ipv6 core. The current use of the netfilter ipv6 stub indirections causes a module dependency between ipv6 and nf_defrag_ipv6. This prevents nf_defrag_ipv6

[PATCH 11/12] MIPS: Get rid of CAVIUM_OCTEON_DCACHE_PREFETCH_WAR

2020-08-24 Thread Thomas Bogendoerfer
CAVIUM_OCTEON_DCACHE_PREFETCH_WAR is a check for Octeon model CN6. By using the version check we can remove the define. Signed-off-by: Thomas Bogendoerfer --- arch/mips/cavium-octeon/setup.c| 2 +- arch/mips/include/asm/mach-cavium-octeon/war.h | 3 --- arch/mips/mm/uasm.c

Re: [RFC PATCH v3 2/2] dt-bindings: cpufreq: Document Krait CPU Cache scaling

2020-08-24 Thread Rob Herring
On Fri, 21 Aug 2020 16:00:21 +0200, Ansuel Smith wrote: > Document dedicated Krait CPU Cache Scaling driver. > > Signed-off-by: Ansuel Smith > --- > .../bindings/cpufreq/krait-cache-scale.yaml | 79 +++ > 1 file changed, 79 insertions(+) > create mode 100644 >

[PATCH AUTOSEL 5.8 21/63] selftests/bpf: Fix segmentation fault in test_progs

2020-08-24 Thread Sasha Levin
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

drivers/gpu/drm/drm_bufs.c:343:36: sparse: sparse: incorrect type in argument 1 (different address spaces)

2020-08-24 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: d012a7190fc1fd72ed48911e77ca97ba4521bccd commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces date: 10 weeks ago config: arc-randconfig-s032-20200824 (attached

[PATCH AUTOSEL 5.8 24/63] libbpf: Prevent overriding errno when logging errors

2020-08-24 Thread Sasha Levin
From: Toke Høiland-Jørgensen [ Upstream commit 23ab656be263813acc3c20623757d3cd1496d9e1 ] Turns out there were a few more instances where libbpf didn't save the errno before writing an error message, causing errno to be overridden by the printf() return and the error disappearing if logging is

[PATCH AUTOSEL 5.8 25/63] tools/bpftool: Fix compilation warnings in 32-bit mode

2020-08-24 Thread Sasha Levin
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:

Re: [PATCH 1/2] veth: Initialize dev->perm_addr

2020-08-24 Thread David Miller
From: Mira Ressel Date: Mon, 24 Aug 2020 14:38:26 + > Set the perm_addr of veth devices to whatever MAC has been assigned to > the device. Otherwise, it remains all zero, with the consequence that > ipv6_generate_stable_address() (which is used if the sysctl > net.ipv6.conf.DEV.addr_gen_mode

[PATCH AUTOSEL 5.8 26/63] selftest/bpf: Fix compilation warnings in 32-bit mode

2020-08-24 Thread Sasha Levin
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:

Re: [PATCH v7 10/10] Drivers: hv: Enable Hyper-V code to be built on ARM64

2020-08-24 Thread Ard Biesheuvel
On Mon, 24 Aug 2020 at 18:48, Michael Kelley wrote: > > Update drivers/hv/Kconfig so CONFIG_HYPERV can be selected on > ARM64, causing the Hyper-V specific code to be built. > > Signed-off-by: Michael Kelley > --- > drivers/hv/Kconfig | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >

[PATCH AUTOSEL 5.8 27/63] selftests/bpf: Fix btf_dump test cases on 32-bit arches

2020-08-24 Thread Sasha Levin
From: Andrii Nakryiko [ Upstream commit eed7818adf03e874994b966aa33bc00204dd275a ] Fix btf_dump test cases by hard-coding BPF's pointer size of 8 bytes for cases where it's impossible to deterimne the pointer size (no long type in BTF). In cases where it's known, validate libbpf correctly

[PATCH AUTOSEL 5.8 28/63] selftests/bpf: Correct various core_reloc 64-bit assumptions

2020-08-24 Thread Sasha Levin
From: Andrii Nakryiko [ Upstream commit 5705d705832f74395c5465ce93192688f543006a ] Ensure that types are memory layout- and field alignment-compatible regardless of 32/64-bitness mix of libbpf and BPF architecture. Signed-off-by: Andrii Nakryiko Signed-off-by: Alexei Starovoitov Link:

[PATCH AUTOSEL 5.8 29/63] can: j1939: transport: j1939_xtp_rx_dat_one(): compare own packets to detect corruptions

2020-08-24 Thread Sasha Levin
From: Oleksij Rempel [ Upstream commit e052d0540298bfe0f6cbbecdc7e2ea9b859575b2 ] Since the stack relays on receiving own packets, it was overwriting own transmit buffer from received packets. At least theoretically, the received echo buffer can be corrupt or changed and the session partner

[PATCH AUTOSEL 5.8 32/63] drivers/net/wan/hdlc_x25: Added needed_headroom and a skb->len check

2020-08-24 Thread Sasha Levin
From: Xie He [ Upstream commit 77b981c82c1df7c7ad32a046f17f007450b46954 ] 1. Added a skb->len check This driver expects upper layers to include a pseudo header of 1 byte when passing down a skb for transmission. This driver will read this 1-byte header. This patch added a skb->len check before

[PATCH AUTOSEL 5.8 31/63] dma-pool: Only allocate from CMA when in same memory zone

2020-08-24 Thread Sasha Levin
From: Nicolas Saenz Julienne [ Upstream commit d7e673ec2c8e0ea39c4c70fc490d67d7fbda869d ] There is no guarantee to CMA's placement, so allocating a zone specific atomic pool from CMA might return memory from a completely different memory zone. To get around this double check CMA's placement

[PATCH AUTOSEL 5.8 30/63] dma-pool: fix coherent pool allocations for IOMMU mappings

2020-08-24 Thread Sasha Levin
From: Christoph Hellwig [ Upstream commit 9420139f516d7fbc248ce17f35275cb005ed98ea ] When allocating coherent pool memory for an IOMMU mapping we don't care about the DMA mask. Move the guess for the initial GFP mask into the dma_direct_alloc_pages and pass dma_coherent_ok as a function

[PATCH AUTOSEL 5.8 35/63] ASoC: wm8994: Avoid attempts to read unreadable registers

2020-08-24 Thread Sasha Levin
From: Sylwester Nawrocki [ Upstream commit f082bb59b72039a2326ec1a44496899fb8aa6d0e ] The driver supports WM1811, WM8994, WM8958 devices but according to documentation and the regmap definitions the WM8958_DSP2_* registers are only available on WM8958. In current code these registers are being

Re: [PATCH v7 09/10] arm64: efi: Export screen_info

2020-08-24 Thread Ard Biesheuvel
On Mon, 24 Aug 2020 at 18:48, Michael Kelley wrote: > > The Hyper-V frame buffer driver may be built as a module, and > it needs access to screen_info. So export screen_info. > > Signed-off-by: Michael Kelley Acked-by: Ard Biesheuvel > --- > arch/arm64/kernel/efi.c | 1 + > 1 file changed, 1

Re: [RESEND PATCH v3 5/8] mtd: spi-nor: cadence-quadspi: Handle probe deferral while requesting DMA channel

2020-08-24 Thread Jan Kiszka
On 24.08.20 14:49, Jan Kiszka wrote: > On 24.08.20 13:45, Vignesh Raghavendra wrote: >> >> >> On 8/22/20 11:35 PM, Jan Kiszka wrote: >>> On 01.06.20 09:04, Vignesh Raghavendra wrote: dma_request_chan_by_mask() can throw EPROBE_DEFER if DMA provider is not yet probed. Currently driver

[PATCH AUTOSEL 5.8 34/63] s390/cio: add cond_resched() in the slow_eval_known_fn() loop

2020-08-24 Thread Sasha Levin
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

[PATCH AUTOSEL 5.8 52/63] drm/amdgpu: disable gfxoff for navy_flounder

2020-08-24 Thread Sasha Levin
From: Jiansong Chen [ Upstream commit 9c9b17a7d19a8e21db2e378784fff1128b46c9d3 ] gfxoff is temporarily disabled for navy_flounder, since at present the feature has broken some basic amdgpu test. Signed-off-by: Jiansong Chen Reviewed-by: Tao Zhou Signed-off-by: Alex Deucher Signed-off-by:

[PATCH AUTOSEL 5.8 36/63] ALSA: usb-audio: ignore broken processing/extension unit

2020-08-24 Thread Sasha Levin
From: Tom Yan [ Upstream commit d8d0db7bb358ef65d60726a61bfcd08eccff0bc0 ] Some devices have broken extension unit where getting current value doesn't work. Attempt that once when creating mixer control for it. If it fails, just ignore it, so that it won't cripple the device entirely (and/or

[PATCH AUTOSEL 5.8 44/63] scsi: qla2xxx: Flush I/O on zone disable

2020-08-24 Thread Sasha Levin
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

[PATCH AUTOSEL 5.8 37/63] selftests: disable rp_filter for icmp_redirect.sh

2020-08-24 Thread Sasha Levin
From: David Ahern [ Upstream commit bcf7ddb0186d366f761f86196b480ea6dd2dc18c ] h1 is initially configured to reach h2 via r1 rather than the more direct path through r2. If rp_filter is set and inherited for r2, forwarding fails since the source address of h1 is reachable from eth0 vs the

[PATCH AUTOSEL 5.8 39/63] scsi: ufs: Fix possible infinite loop in ufshcd_hold

2020-08-24 Thread Sasha Levin
From: Stanley Chu [ Upstream commit 93b6c5db06028a3b55122bbb74d0715dd8ca4ae0 ] In ufshcd_suspend(), after clk-gating is suspended and link is set as Hibern8 state, ufshcd_hold() is still possibly invoked before ufshcd_suspend() returns. For example, MediaTek's suspend vops may issue UIC

[PATCH AUTOSEL 5.8 49/63] Revert "scsi: qla2xxx: Fix crash on qla2x00_mailbox_command"

2020-08-24 Thread Sasha Levin
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

[PATCH AUTOSEL 5.8 40/63] scsi: ufs: Improve interrupt handling for shared interrupts

2020-08-24 Thread Sasha Levin
From: Adrian Hunter [ Upstream commit 127d5f7c4b653b8be5eb3b2c7bbe13728f9003ff ] For shared interrupts, the interrupt status might be zero, so check that first. Link: https://lore.kernel.org/r/20200811133936.19171-2-adrian.hun...@intel.com Reviewed-by: Avri Altman Signed-off-by: Adrian Hunter

[PATCH RFC] mmc: sdhci-msm: enable compile-testing on !ARM

2020-08-24 Thread Alex Dewar
There seems to be no particular reason to only test for ARM, so allow for build-testing on other platforms to increase coverage. Build-tested on x86 with allyesconfig. Signed-off-by: Alex Dewar --- Let me know if there is some extra dependency needed for COMPILE_TEST! I don't want to break

[PATCH AUTOSEL 5.8 51/63] net: gianfar: Add of_node_put() before goto statement

2020-08-24 Thread Sasha Levin
From: Sumera Priyadarsini [ Upstream commit 989e4da042ca4a56bbaca9223d1a93639ad11e17 ] Every iteration of for_each_available_child_of_node() decrements reference count of the previous node, however when control is transferred from the middle of the loop, as in the case of a return or break or

[PATCH AUTOSEL 5.8 55/63] bpf: Fix a rcu_sched stall issue with bpf task/task_file iterator

2020-08-24 Thread Sasha Levin
From: Yonghong Song [ Upstream commit e679654a704e5bd676ea6446fa7b764cbabf168a ] In our production system, we observed rcu stalls when 'bpftool prog` is running. rcu: INFO: rcu_sched self-detected stall on CPU rcu: \x097-: (20999 ticks this GP) idle=302/1/0x4000

[PATCH AUTOSEL 5.8 60/63] libbpf: Fix map index used in error message

2020-08-24 Thread Sasha Levin
From: Toke Høiland-Jørgensen [ Upstream commit 1e891e513e16c145cc9b45b1fdb8bf4a4f2f9557 ] The error message emitted by bpf_object__init_user_btf_maps() was using the wrong section ID. Signed-off-by: Toke Høiland-Jørgensen Signed-off-by: Daniel Borkmann Acked-by: Yonghong Song Link:

[PATCH AUTOSEL 5.8 46/63] scsi: qla2xxx: Fix login timeout

2020-08-24 Thread Sasha Levin
From: Quinn Tran [ Upstream commit abb31aeaa9b20680b0620b23fea5475ea4591e31 ] Multipath errors were seen during failback due to login timeout. The remote device sent LOGO, the local host tore down the session and did relogin. The RSCN arrived indicates remote device is going through failover

[PATCH AUTOSEL 5.8 58/63] Revert "drm/amdgpu: disable gfxoff for navy_flounder"

2020-08-24 Thread Sasha Levin
From: Jiansong Chen [ Upstream commit da2446b66b5e2c7f3ab63912c8d999810e35e8b3 ] This reverts commit 9c9b17a7d19a8e21db2e378784fff1128b46c9d3. Newly released sdma fw (51.52) provides a fix for the issue. Signed-off-by: Jiansong Chen Reviewed-by: Kenneth Feng Reviewed-by: Tao Zhou Acked-by:

[PATCH AUTOSEL 5.8 59/63] powerpc/perf: Fix soft lockups due to missed interrupt accounting

2020-08-24 Thread Sasha Levin
From: Athira Rajeev [ Upstream commit 17899eaf88d689529b866371344c8f269ba79b5f ] Performance monitor interrupt handler checks if any counter has overflown and calls record_and_restart() in core-book3s which invokes perf_event_overflow() to record the sample information. Apart from creating

[PATCH AUTOSEL 5.8 47/63] scsi: qla2xxx: Check if FW supports MQ before enabling

2020-08-24 Thread Sasha Levin
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:

[PATCH AUTOSEL 5.8 54/63] drm/amdkfd: fix the wrong sdma instance query for renoir

2020-08-24 Thread Sasha Levin
From: Huang Rui [ Upstream commit 34174b89bfa495bed9cddcc504fb38feca90fab7 ] Renoir only has one sdma instance, it will get failed once query the sdma1 registers. So use switch-case instead of static register array. Signed-off-by: Huang Rui Reviewed-by: Alex Deucher Reviewed-by: Felix

[PATCH AUTOSEL 5.8 56/63] bpf: Avoid visit same object multiple times

2020-08-24 Thread Sasha Levin
From: Yonghong Song [ Upstream commit e60572b8d4c39572be6857d1ec91fdf979f8775f ] Currently when traversing all tasks, the next tid is always increased by one. This may result in visiting the same task multiple times in a pid namespace. This patch fixed the issue by seting the next tid as

[PATCH AUTOSEL 5.8 41/63] scsi: ufs: Clean up completed request without interrupt notification

2020-08-24 Thread Sasha Levin
From: Stanley Chu [ Upstream commit b10178ee7fa88b68a9e8adc06534d2605cb0ec23 ] If somehow no interrupt notification is raised for a completed request and its doorbell bit is cleared by host, UFS driver needs to cleanup its outstanding bit in ufshcd_abort(). Otherwise, system may behave

[PATCH AUTOSEL 5.8 50/63] macvlan: validate setting of multiple remote source MAC addresses

2020-08-24 Thread Sasha Levin
From: Alvin Šipraga [ Upstream commit 8b61fba503904acae24aeb2bd5569b4d6544d48f ] Remote source MAC addresses can be set on a 'source mode' macvlan interface via the IFLA_MACVLAN_MACADDR_DATA attribute. This commit tightens the validation of these MAC addresses to match the validation already

[PATCH AUTOSEL 5.8 42/63] scsi: scsi_debug: Fix scp is NULL errors

2020-08-24 Thread Sasha Levin
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

[PATCH AUTOSEL 5.8 45/63] scsi: qla2xxx: Indicate correct supported speeds for Mezz card

2020-08-24 Thread Sasha Levin
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

[PATCH AUTOSEL 5.8 43/63] scsi: qla2xxx: Flush all sessions on zone disable

2020-08-24 Thread Sasha Levin
From: Quinn Tran [ Upstream commit 10ae30ba664822f62de169a61628e31c999c7cc8 ] On Zone Disable, certain switches would ignore all commands. This causes timeout for both switch scan command and abort of that command. On detection of this condition, all sessions will be shutdown. Link:

[PATCH AUTOSEL 5.8 48/63] scsi: qla2xxx: Fix null pointer access during disconnect from subsystem

2020-08-24 Thread Sasha Levin
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

[PATCH AUTOSEL 5.8 53/63] drm/amdgpu: fix NULL pointer access issue when unloading driver

2020-08-24 Thread Sasha Levin
From: Guchun Chen [ Upstream commit 1a68d96f81b8e7eb2a121fbf9abf9e5974e58832 ] When unloading driver by "modprobe -r amdgpu", one NULL pointer dereference bug occurs in ras debugfs releasing. The cause is the duplicated debugfs_remove, as drm debugfs_root dir has been cleaned up already by

[PATCH AUTOSEL 5.8 57/63] ext4: limit the length of per-inode prealloc list

2020-08-24 Thread Sasha Levin
From: brookxu [ Upstream commit 27bc446e2def38db3244a6eb4bb1d6312936610a ] In the scenario of writing sparse files, the per-inode prealloc list may be very long, resulting in high overhead for ext4_mb_use_preallocated(). To circumvent this problem, we limit the maximum length of per-inode

[PATCH AUTOSEL 5.8 62/63] arm64: Move handling of erratum 1418040 into C code

2020-08-24 Thread Sasha Levin
From: Marc Zyngier [ Upstream commit d49f7d7376d0c0daf8680984a37bd07581ac7d38 ] Instead of dealing with erratum 1418040 on each entry and exit, let's move the handling to __switch_to() instead, which has several advantages: - It can be applied when it matters (switching between 32 and 64 bit

[PATCH AUTOSEL 5.7 04/54] ext4: handle read only external journal device

2020-08-24 Thread Sasha Levin
From: Lukas Czerner [ Upstream commit 273108fa5015eeffc4bacfa5ce272af3434b96e4 ] Ext4 uses blkdev_get_by_dev() to get the block_device for journal device which does check to see if the read-only block device was opened read-only. As a result ext4 will hapily proceed mounting the file system

[PATCH AUTOSEL 5.7 02/54] jbd2: make sure jh have b_transaction set in refile/unfile_buffer

2020-08-24 Thread Sasha Levin
From: Lukas Czerner [ Upstream commit 24dc9864914eb5813173cfa53313fcd02e4aea7d ] Callers of __jbd2_journal_unfile_buffer() and __jbd2_journal_refile_buffer() assume that the b_transaction is set. In fact if it's not, we can end up with journal_head refcounting errors leading to crash much later

[PATCH AUTOSEL 5.7 01/54] spi: stm32: clear only asserted irq flags on interrupt

2020-08-24 Thread Sasha Levin
From: Tobias Schramm [ Upstream commit ae1ba50f1e706dfd7ce402ac52c1f1f10becad68 ] Previously the stm32h7 interrupt thread cleared all non-masked interrupts. If an interrupt was to occur during the handling of another interrupt its flag would be unset, resulting in a lost interrupt. This patches

[PATCH AUTOSEL 5.7 03/54] ext4: don't BUG on inconsistent journal feature

2020-08-24 Thread Sasha Levin
From: Jan Kara [ Upstream commit 11215630aada28307ba555a43138db6ac54fa825 ] A customer has reported a BUG_ON in ext4_clear_journal_err() hitting during an LTP testing. Either this has been caused by a test setup issue where the filesystem was being overwritten while LTP was mounting it or the

[PATCH] mmc: sdhci: Don't enable presets while tuning

2020-08-24 Thread Raul E Rangel
SDHCI presets are not currently used for eMMC HS/HS200/HS400, but are used for DDR52. The HS400 retuning sequence is: HS400->DDR52->HS->HS200->Perform Tuning->HS->HS400 This means that when HS400 tuning happens, we transition through DDR52 for a very brief period. This causes presets to be

[PATCH AUTOSEL 5.8 63/63] arm64: Allow booting of late CPUs affected by erratum 1418040

2020-08-24 Thread Sasha Levin
From: Marc Zyngier [ Upstream commit bf87bb0881d0f59181fe3bbcf29c609f36483ff8 ] As we can now switch from a system that isn't affected by 1418040 to a system that globally is affected, let's allow affected CPUs to come in at a later time. Signed-off-by: Marc Zyngier Tested-by: Sai Prakash

Re: [PATCH] seccomp: Use current_pt_regs()

2020-08-24 Thread Kees Cook
On Mon, Aug 24, 2020 at 03:59:21PM +0300, Denis Efremov wrote: > Modify seccomp_do_user_notification(), __seccomp_filter(), > __secure_computing() to use current_pt_regs(). This looks okay. It seems some architectures have a separate define for current_pt_regs(), though it's overlapped directly

[PATCH AUTOSEL 5.7 10/54] ext4: correctly restore system zone info when remount fails

2020-08-24 Thread Sasha Levin
From: Jan Kara [ Upstream commit 0f5bde1db174f6c471f0bd27198575719dabe3e5 ] When remounting filesystem fails late during remount handling and block_validity mount option is also changed during the remount, we fail to restore system zone information to a state matching the mount option. This is

[PATCH AUTOSEL 5.7 05/54] drm/virtio: fix memory leak in virtio_gpu_cleanup_object()

2020-08-24 Thread Sasha Levin
From: Xin He [ Upstream commit 836b194d65782aaec4485a07d2aab52d3f698505 ] Before setting shmem->pages to NULL, kfree() should be called. Signed-off-by: Xin He Reviewed-by: Qi Liu Link: http://patchwork.freedesktop.org/patch/msgid/20200722051851.72662-1-hexin...@bytedance.com Signed-off-by:

[PATCH AUTOSEL 5.7 06/54] ext4: abort the filesystem if failed to async write metadata buffer

2020-08-24 Thread Sasha Levin
From: "zhangyi (F)" [ Upstream commit bc71726c725767205757821df364acff87f92ac5 ] There is a risk of filesystem inconsistency if we failed to async write back metadata buffer in the background. Because of current buffer's end io procedure is handled by end_buffer_async_write() in the block

[PATCH AUTOSEL 5.7 09/54] ext4: handle error of ext4_setup_system_zone() on remount

2020-08-24 Thread Sasha Levin
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

[PATCH AUTOSEL 5.7 08/54] ext4: handle option set by mount flags correctly

2020-08-24 Thread Sasha Levin
From: Lukas Czerner [ Upstream commit f25391ebb475d3ffb3aa61bb90e3594c841749ef ] Currently there is a problem with mount options that can be both set by vfs using mount flags or by a string parsing in ext4. i_version/iversion options gets lost after remount, for example $ mount -o i_version

[PATCH AUTOSEL 5.7 07/54] jbd2: abort journal if free a async write error metadata buffer

2020-08-24 Thread Sasha Levin
From: "zhangyi (F)" [ Upstream commit c044f3d8360d2ecf831ba2cc9f08cf9fb2c699fb ] If we free a metadata buffer which has been failed to async write out in the background, the jbd2 checkpoint procedure will not detect this failure in jbd2_log_do_checkpoint(), so it may lead to filesystem

[PATCH AUTOSEL 5.7 12/54] spi: stm32h7: fix race condition at end of transfer

2020-08-24 Thread Sasha Levin
From: Antonio Borneo [ Upstream commit 135dd873d3c76d812ae64c668adef3f2c59ed27f ] The caller of stm32_spi_transfer_one(), spi_transfer_one_message(), is waiting for us to call spi_finalize_current_transfer() and will eventually schedule a new transfer, if available. We should guarantee that the

[PATCH AUTOSEL 5.7 13/54] spi: stm32: fix fifo threshold level in case of short transfer

2020-08-24 Thread Sasha Levin
From: Amelie Delaunay [ Upstream commit 3373e9004acc0603242622b4378c64bc01d21b5f ] When transfer is shorter than half of the fifo, set the data packet size up to transfer size instead of up to half of the fifo. Check also that threshold is set at least to 1 data frame. Signed-off-by: Amelie

Re: [PATCH 2/4] mm: support nesting memalloc_use_memcg()

2020-08-24 Thread Dan Schatzberg
On Mon, Aug 24, 2020 at 09:19:01AM -0700, Roman Gushchin wrote: > Hi Dan, > > JFYI: I need a similar patch for the bpf memory accounting rework, > so I ended up sending it separately (with some modifications including > different naming): https://lkml.org/lkml/2020/8/21/1464 . > > Can you

[PATCH AUTOSEL 5.7 17/54] drm/amd/powerplay: correct UVD/VCE PG state on custom pptable uploading

2020-08-24 Thread Sasha Levin
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

[PATCH AUTOSEL 5.7 14/54] spi: stm32: fix stm32_spi_prepare_mbr in case of odd clk_rate

2020-08-24 Thread Sasha Levin
From: Amelie Delaunay [ Upstream commit 9cc61973bf9385b19ff5dda4a2a7e265fcba85e4 ] Fix spi->clk_rate when it is odd to the nearest lowest even value because minimum SPI divider is 2. Signed-off-by: Amelie Delaunay Signed-off-by: Alain Volmat Link:

[PATCH AUTOSEL 5.7 15/54] spi: stm32: always perform registers configuration prior to transfer

2020-08-24 Thread Sasha Levin
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:

[PATCH AUTOSEL 5.7 11/54] fs: prevent BUG_ON in submit_bh_wbc()

2020-08-24 Thread Sasha Levin
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

[PATCH AUTOSEL 5.7 23/54] libbpf: Prevent overriding errno when logging errors

2020-08-24 Thread Sasha Levin
From: Toke Høiland-Jørgensen [ Upstream commit 23ab656be263813acc3c20623757d3cd1496d9e1 ] Turns out there were a few more instances where libbpf didn't save the errno before writing an error message, causing errno to be overridden by the printf() return and the error disappearing if logging is

[PATCH AUTOSEL 5.7 18/54] drm/amd/display: Fix LFC multiplier changing erratically

2020-08-24 Thread Sasha Levin
From: Anthony Koo [ Upstream commit e4ed4dbbc8383d42a197da8fe7ca6434b0f14def ] [Why] 1. There is a calculation that is using frame_time_in_us instead of last_render_time_in_us to calculate whether choosing an LFC multiplier would cause the inserted frame duration to be outside of range. 2. We

[PATCH AUTOSEL 5.7 16/54] drm/amd/powerplay: correct Vega20 cached smu feature state

2020-08-24 Thread Sasha Levin
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 ---

[PATCH AUTOSEL 5.7 19/54] drm/amd/display: Switch to immediate mode for updating infopackets

2020-08-24 Thread Sasha Levin
From: Anthony Koo [ Upstream commit abba907c7a20032c2d504fd5afe3af7d440a09d0 ] [Why] Using FRAME_UPDATE will result in infopacket to be potentially updated one frame late. In commit stream scenarios for previously active stream, some stale infopacket data from previous config might be

[PATCH AUTOSEL 5.7 20/54] selftests/bpf: Fix segmentation fault in test_progs

2020-08-24 Thread Sasha Levin
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

[PATCH AUTOSEL 5.7 21/54] libbpf: Handle GCC built-in types for Arm NEON

2020-08-24 Thread Sasha Levin
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

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