Re: [PATCH 1/6] iio:pressure:ms5637: switch to probe_new

2020-12-12 Thread Andy Shevchenko
On Thu, Dec 10, 2020 at 2:01 AM Alexandre Belloni wrote: > > Switch to the modern i2c probe_new callback and drop the i2c_device_id > array. First part is okay. The second is interesting. It depends if we would like to keep a possibility to instantiate devices from user space (strictly speaking i

[PATCH] powerpc/mm: Fix hugetlb_free_pmd_range() and hugetlb_free_pud_range()

2020-12-12 Thread Christophe Leroy
Commit 7bfe54b5f165 ("powerpc/mm: Refactor the floor/ceiling check in hugetlb range freeing functions") inadvertely removed the mask applied to start parameter in those two functions, leading to the following crash on power9. [ 7703.114640][T58070] LTP: starting hugemmap05_1 (hugemmap05 -m) [ 7703

Re: [PATCH v5 2/2] net: dsa: qca: ar9331: export stats64

2020-12-12 Thread Vladimir Oltean
On Fri, Dec 11, 2020 at 11:53:22AM +0100, Oleksij Rempel wrote: > Add stats support for the ar9331 switch. > > Signed-off-by: Oleksij Rempel > --- > drivers/net/dsa/qca/ar9331.c | 256 ++- > 1 file changed, 255 insertions(+), 1 deletion(-) > > diff --git a/driver

Re: [PATCH v5 1/2] net: dsa: add optional stats64 support

2020-12-12 Thread Vladimir Oltean
On Fri, Dec 11, 2020 at 11:53:21AM +0100, Oleksij Rempel wrote: > Allow DSA drivers to export stats64 > > Signed-off-by: Oleksij Rempel > Reviewed-by: Vladimir Oltean > --- > include/net/dsa.h | 3 +++ > net/dsa/slave.c | 14 +- > 2 files changed, 16 insertions(+), 1 deletion(-)

[GIT PULL] irqchip updates for Linux 5.11

2020-12-12 Thread Marc Zyngier
Hi Thomas, Here the delivery from the irqchip department for 5.11. No new driver for once, but an assortment of support for new SoCs (Microsemi Ocelot derivatives, NXP SoCs), small fixes (QC PDC, TI SCI, Loongson HTPIC) and cleanups (EZChip dead platform). We also have some preliminary support for

[PATCH] clk: ingenic: Fix divider calculation with div tables

2020-12-12 Thread Paul Cercueil
The previous code assumed that a higher hardware value always resulted in a bigger divider, which is correct for the regular clocks, but is an invalid assumption when a divider table is provided for the clock. Perfect example of this is the PLL0_HALF clock, which applies a /2 divider with the hard

Re: [PATCH v14 10/10] secretmem: test: add basic selftest for memfd_secret(2)

2020-12-12 Thread Mike Rapoport
Hi John, On Fri, Dec 11, 2020 at 10:16:23PM -0800, John Hubbard wrote: > On 12/2/20 10:29 PM, Mike Rapoport wrote: > > From: Mike Rapoport > ... > > +#include "../kselftest.h" > > + > > +#define fail(fmt, ...) ksft_test_result_fail(fmt, ##__VA_ARGS__) > > +#define pass(fmt, ...) ksft_test_result_

RE: [PATCH v6 4/4] mmc: sdhci-of-arasan: Enable UHS-1 support for Keem Bay SOC

2020-12-12 Thread Zulkifli, Muhammad Husaini
Hi Linus, >-Original Message- >From: Linus Walleij >Sent: Sunday, December 6, 2020 7:02 AM >To: Zulkifli, Muhammad Husaini >Cc: Ulf Hansson ; Hunter, Adrian >; Michal Simek ; linux- >mmc ; Linux ARM ker...@lists.infradead.org>; linux-kernel@vger.kernel.org; Shevchenko, >Andriy ; Raja Sub

WARNING in ext4_xattr_set_entry

2020-12-12 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:cd796ed3 Merge tag 'trace-v5.10-rc7' of git://git.kernel.o.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1472128750 kernel config: https://syzkaller.appspot.com/x/.config?x=e597c2b53c984cd8 das

Re: [PATCH] net/netconsole: Support VLAN for netconsole

2020-12-12 Thread Vladimir Oltean
On Thu, Dec 10, 2020 at 09:55:16AM -0800, Florian Fainelli wrote: > > > On 12/10/2020 2:07 AM, Libing Zhou wrote: > > During kernel startup phase, current netconsole doesn’t support VLAN > > since there is no VLAN interface setup already. > > > > This patch provides VLAN ID and PCP as optional b

[tip: x86/urgent] x86/kprobes: Fix optprobe to detect INT3 padding correctly

2020-12-12 Thread tip-bot2 for Masami Hiramatsu
The following commit has been merged into the x86/urgent branch of tip: Commit-ID: 0d07c0ec4381f630c801539c79ad8dcc627f6e4a Gitweb: https://git.kernel.org/tip/0d07c0ec4381f630c801539c79ad8dcc627f6e4a Author:Masami Hiramatsu AuthorDate:Fri, 11 Dec 2020 16:04:17 +09:00 Commi

Re: [PATCH v8 4/8] IMA: add policy rule to measure critical data

2020-12-12 Thread Tyler Hicks
On 2020-12-11 17:17:22, Tushar Sugandhi wrote: > > > On 2020-12-11 4:25 p.m., Tyler Hicks wrote: > > On 2020-12-11 15:58:03, Tushar Sugandhi wrote: > > > A new IMA policy rule is needed for the IMA hook > > > ima_measure_critical_data() and the corresponding func CRITICAL_DATA for > > > measuring

[PATCH linux-next] drm/amd/display: Adding prototype for dccg21_update_dpp_dto()

2020-12-12 Thread Souptick Joarder
Kernel test robot throws below warning -> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn21/dcn21_dccg.c:46:6: warning: no previous prototype for 'dccg21_update_dpp_dto' [-Wmissing-prototypes] Adding prototype for dccg21_update_dpp_dto(). Reported-by: kernel test robot Signed-off-by: Souptick Joar

Re: [PATCH] mm/memory_hotplug: quieting offline operation

2020-12-12 Thread Souptick Joarder
On Fri, Dec 11, 2020 at 8:32 PM Laurent Dufour wrote: > > On PowerPC, when dymically removing memory from a system we can see in the > console a > lot of messages like this: > [ 186.575389] Offlined Pages 4096 Is it specific to PowerPC ? > > This message is displayed on each LMB (256MB) remove

Re: [PATCH v2 1/4] PCI: rockchip: Make 'ep-gpios' DT property optional

2020-12-12 Thread Chen-Yu Tsai
On Mon, Dec 7, 2020 at 10:11 PM Rob Herring wrote: > > On Wed, Nov 18, 2020 at 1:17 AM Chen-Yu Tsai wrote: > > > > From: Chen-Yu Tsai > > > > The Rockchip PCIe controller DT binding clearly states that 'ep-gpios' is > > an optional property. And indeed there are boards that don't require it. > >

Re: [RFC PATCH 3/4] arm64: Use common of_kexec_setup_new_fdt()

2020-12-12 Thread Lakshmi Ramasubramanian
On 12/11/20 2:10 PM, Rob Herring wrote: Signed-off-by: Rob Herring --- arch/arm64/kernel/machine_kexec_file.c | 123 + 1 file changed, 3 insertions(+), 120 deletions(-) This change looks good to me. Reviewed-by: Lakshmi Ramasubramanian -lakshmi diff --git a/ar

Re: [RFC PATCH 4/4] powerpc: Use common of_kexec_setup_new_fdt()

2020-12-12 Thread Lakshmi Ramasubramanian
On 12/11/20 2:10 PM, Rob Herring wrote: Signed-off-by: Rob Herring --- After the IMA changes, delete_fdt_mem_rsv() can also be removed. arch/powerpc/kexec/file_load.c | 125 ++--- 1 file changed, 6 insertions(+), 119 deletions(-) This change looks good to me.

Re: [Patch v2 6/6] dt-bindings: crypto: qcom-qce: Add v5.4 to binding

2020-12-12 Thread Thara Gopinath
On 12/7/20 5:09 PM, Rob Herring wrote: On Thu, Nov 19, 2020 at 10:52:33AM -0500, Thara Gopinath wrote: Add compatible string to support v5.4 crypto engine. Signed-off-by: Thara Gopinath Reviewed-by: Bjorn Andersson --- Documentation/devicetree/bindings/crypto/qcom-qce.txt | 4 +++- 1 fi

Re: [PATCH] driver core: platform: don't oops on unbound devices

2020-12-12 Thread Uwe Kleine-König
Hello, On Sat, Dec 12, 2020 at 12:41:32PM +0100, Greg Kroah-Hartman wrote: > On Sat, Dec 12, 2020 at 04:14:26AM +0300, Dmitry Baryshkov wrote: > > Platform code stopped checking if the device is bound to the actual > > platform driver, thus calling non-existing drv->shutdown(). Verify that > > _de

[GIT PULL] Final batch of KVM changes for Linux 5.10

2020-12-12 Thread Paolo Bonzini
Linus, The following changes since commit 9a2a0d3ca163fc645991804b8b032f7d59326bb5: kvm: x86/mmu: Fix get_mmio_spte() on CPUs supporting 5-level PT (2020-11-27 11:14:27 -0500) are available in the Git repository at: https://git.kernel.org/pub/scm/virt/kvm/kvm.git tags/for-linus for you to

Re: [PATCH RESEND net-next 1/2] dpaa2-eth: send a scatter-gather FD instead of realloc-ing

2020-12-12 Thread Jon Nettleton
On Fri, Dec 11, 2020 at 5:56 PM Ioana Ciornei wrote: > > On Fri, Dec 11, 2020 at 04:29:14PM +, Daniel Thompson wrote: > > On Fri, Dec 11, 2020 at 02:01:28PM +, Ioana Ciornei wrote: > > > On Thu, Dec 10, 2020 at 08:06:36PM +0200, Ioana Ciornei wrote: > > > > [Added also the netdev mailing l

Re: [PATCH 07/13] ia64: make SPARSEMEM default and disable DISCONTIGMEM

2020-12-12 Thread Guenter Roeck
On Tue, Oct 27, 2020 at 01:29:49PM +0200, Mike Rapoport wrote: > From: Mike Rapoport > > SPARSEMEM memory model suitable for systems with large holes in their > phyiscal memory layout. With SPARSEMEM_VMEMMAP enabled it provides > pfn_to_page() and page_to_pfn() as fast as FLATMEM. > > Make it th

[PATCH 1/2] dmaengine: fsldma: Fix a resource leak in the remove function

2020-12-12 Thread Christophe JAILLET
A 'irq_dispose_mapping()' call is missing in the remove function. Add it. This is needed to undo the 'irq_of_parse_and_map() call from the probe function and already part of the error handling path of the probe function. It was added in the probe function only in commit d3f620b2c4fe ("fsldma: sim

[PATCH 2/2] dmaengine: fsldma: Fix a resource leak in an error handling path of the probe function

2020-12-12 Thread Christophe JAILLET
In case of error, the previous 'fsl_dma_chan_probe()' calls must be undone by some 'fsl_dma_chan_remove()', as already done in the remove function. It was added in the remove function in commit 77cd62e8082b ("fsldma: allow Freescale Elo DMA driver to be compiled as a module") Fixes: d3f620b2c4fe

[PATCH AUTOSEL 5.9 11/23] habanalabs: put devices before driver removal

2020-12-12 Thread Sasha Levin
From: Ofir Bitton [ Upstream commit b7c56bdec7a29c789fec27f84d40f52fbdfa ] Driver never puts its device and control_device objects, hence a memory leak is introduced every driver removal. Signed-off-by: Ofir Bitton Reviewed-by: Oded Gabbay Signed-off-by: Oded Gabbay Signed-off-by: Sasha

[PATCH AUTOSEL 5.9 12/23] arm64: syscall: exit userspace before unmasking exceptions

2020-12-12 Thread Sasha Levin
From: Mark Rutland [ Upstream commit ca1314d73eed493c49bb1932c60a8605530db2e4 ] In el0_svc_common() we unmask exceptions before we call user_exit(), and so there's a window where an IRQ or debug exception can be taken while RCU is not watching. In do_debug_exception() we account for this in via

[PATCH AUTOSEL 5.9 23/23] tools/testing/selftests/vm: fix build error

2020-12-12 Thread Sasha Levin
From: Xingxing Su [ Upstream commit d8cbe8bfa7df3c680ddfd5e1eee3a5c86d8dc764 ] Only x86 and PowerPC implement the pkey-xxx.h, and an error was reported when compiling protection_keys.c. Add a Arch judgment to compile "protection_keys" in the Makefile. If other arch implement this, add the arch

[PATCH AUTOSEL 5.4 03/14] drm/tegra: sor: Disable clocks on error in tegra_sor_init()

2020-12-12 Thread Sasha Levin
From: Qinglang Miao [ Upstream commit bf3a3cdcad40e5928a22ea0fd200d17fd6d6308d ] Fix the missing clk_disable_unprepare() before return from tegra_sor_init() in the error handling case. Signed-off-by: Qinglang Miao Signed-off-by: Thierry Reding Signed-off-by: Sasha Levin --- drivers/gpu/drm/

[PATCH AUTOSEL 4.19 7/9] scsi: storvsc: Validate length of incoming packet in storvsc_on_channel_callback()

2020-12-12 Thread Sasha Levin
From: "Andrea Parri (Microsoft)" [ Upstream commit 3b8c72d076c42bf27284cda7b2b2b522810686f8 ] Check that the packet is of the expected size at least, don't copy data past the packet. Link: https://lore.kernel.org/r/20201118145348.109879-1-parri.and...@gmail.com Cc: "James E.J. Bottomley" Cc: "

[PATCH AUTOSEL 4.9 4/5] scsi: mpt3sas: Increase IOCInit request timeout to 30s

2020-12-12 Thread Sasha Levin
From: Sreekanth Reddy [ Upstream commit 85dad327d9b58b4c9ce08189a2707167de392d23 ] Currently the IOCInit request message timeout is set to 10s. This is not sufficient in some scenarios such as during HBA FW downgrade operations. Increase the IOCInit request timeout to 30s. Link: https://lore.

[PATCH AUTOSEL 4.19 6/9] vxlan: Copy needed_tailroom from lowerdev

2020-12-12 Thread Sasha Levin
From: Sven Eckelmann [ Upstream commit a5e74021e84bb5eadf760aaf2c583304f02269be ] While vxlan doesn't need any extra tailroom, the lowerdev might need it. In that case, copy it over to reduce the chance for additional (re)allocations in the transmit path. Signed-off-by: Sven Eckelmann Link: ht

[PATCH AUTOSEL 5.4 14/14] kbuild: avoid split lines in .mod files

2020-12-12 Thread Sasha Levin
From: Masahiro Yamada [ Upstream commit 7d32358be8acb119dcfe39b6cf67ec6d94bf1fe7 ] "xargs echo" is not a safe way to remove line breaks because the input may exceed the command line limit and xargs may break it up into multiple invocations of echo. This should never happen because scripts/gen_au

[PATCH AUTOSEL 5.9 15/23] scsi: storvsc: Validate length of incoming packet in storvsc_on_channel_callback()

2020-12-12 Thread Sasha Levin
From: "Andrea Parri (Microsoft)" [ Upstream commit 3b8c72d076c42bf27284cda7b2b2b522810686f8 ] Check that the packet is of the expected size at least, don't copy data past the packet. Link: https://lore.kernel.org/r/20201118145348.109879-1-parri.and...@gmail.com Cc: "James E.J. Bottomley" Cc: "

[PATCH AUTOSEL 4.4 2/2] dm table: Remove BUG_ON(in_interrupt())

2020-12-12 Thread Sasha Levin
From: Thomas Gleixner [ Upstream commit e7b624183d921b49ef0a96329f21647d38865ee9 ] The BUG_ON(in_interrupt()) in dm_table_event() is a historic leftover from a rework of the dm table code which changed the calling context. Issuing a BUG for a wrong calling context is frowned upon and in_interru

[PATCH AUTOSEL 5.9 16/23] scsi: mpt3sas: Increase IOCInit request timeout to 30s

2020-12-12 Thread Sasha Levin
From: Sreekanth Reddy [ Upstream commit 85dad327d9b58b4c9ce08189a2707167de392d23 ] Currently the IOCInit request message timeout is set to 10s. This is not sufficient in some scenarios such as during HBA FW downgrade operations. Increase the IOCInit request timeout to 30s. Link: https://lore.

[PATCH AUTOSEL 4.14 6/8] scsi: storvsc: Validate length of incoming packet in storvsc_on_channel_callback()

2020-12-12 Thread Sasha Levin
From: "Andrea Parri (Microsoft)" [ Upstream commit 3b8c72d076c42bf27284cda7b2b2b522810686f8 ] Check that the packet is of the expected size at least, don't copy data past the packet. Link: https://lore.kernel.org/r/20201118145348.109879-1-parri.and...@gmail.com Cc: "James E.J. Bottomley" Cc: "

Re: [PATCH] xfs: clean code for setting bma length in xfs_bmapi_write

2020-12-12 Thread Gao Xiang
On Sat, Dec 12, 2020 at 08:48:17PM +0800, chenle...@gmail.com wrote: > From: Lei Chen > > xfs_bmapi_write may need alloc blocks when it encounters a hole > or delay extent. When setting bma.length, it does not need comparing > MAXEXTLEN and the length that the caller wants, because > xfs_bmapi_al

[PATCH AUTOSEL 5.4 12/14] drm/amd/display: Init clock value by current vbios CLKs

2020-12-12 Thread Sasha Levin
From: Brandon Syu [ Upstream commit 7e0b367db85ef7b91399006253759a024eab7653 ] [Why] While booting into OS, driver updates DPP/DISP CLKs. But init clock value is zero which is invalid. [How] Get current clocks value to update init clocks. To avoid underflow. Signed-off-by: Brandon Syu Reviewe

[PATCH AUTOSEL 5.9 18/23] iwlwifi: pcie: add one missing entry for AX210

2020-12-12 Thread Sasha Levin
From: Luca Coelho [ Upstream commit 5febcdef30902fa870128b9789b873199f13aff1 ] The 0x0024 subsytem device ID was missing from the list, so some AX210 devices were not recognized. Add it. Signed-off-by: Luca Coelho Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/iwlwifi.20201202143

[PATCH AUTOSEL 5.9 22/23] kbuild: avoid split lines in .mod files

2020-12-12 Thread Sasha Levin
From: Masahiro Yamada [ Upstream commit 7d32358be8acb119dcfe39b6cf67ec6d94bf1fe7 ] "xargs echo" is not a safe way to remove line breaks because the input may exceed the command line limit and xargs may break it up into multiple invocations of echo. This should never happen because scripts/gen_au

[PATCH AUTOSEL 5.9 20/23] drm/amd/display: Init clock value by current vbios CLKs

2020-12-12 Thread Sasha Levin
From: Brandon Syu [ Upstream commit 7e0b367db85ef7b91399006253759a024eab7653 ] [Why] While booting into OS, driver updates DPP/DISP CLKs. But init clock value is zero which is invalid. [How] Get current clocks value to update init clocks. To avoid underflow. Signed-off-by: Brandon Syu Reviewe

[PATCH AUTOSEL 5.9 07/23] kernel/cpu: add arch override for clear_tasks_mm_cpumask() mm handling

2020-12-12 Thread Sasha Levin
From: Nicholas Piggin [ Upstream commit 8ff00399b153440c1c83e20c43020385b416415b ] powerpc/64s keeps a counter in the mm which counts bits set in mm_cpumask as well as other things. This means it can't use generic code to clear bits out of the mask and doesn't adjust the arch specific counter.

[PATCH AUTOSEL 5.4 09/14] scsi: mpt3sas: Increase IOCInit request timeout to 30s

2020-12-12 Thread Sasha Levin
From: Sreekanth Reddy [ Upstream commit 85dad327d9b58b4c9ce08189a2707167de392d23 ] Currently the IOCInit request message timeout is set to 10s. This is not sufficient in some scenarios such as during HBA FW downgrade operations. Increase the IOCInit request timeout to 30s. Link: https://lore.

[PATCH AUTOSEL 4.14 5/8] vxlan: Copy needed_tailroom from lowerdev

2020-12-12 Thread Sasha Levin
From: Sven Eckelmann [ Upstream commit a5e74021e84bb5eadf760aaf2c583304f02269be ] While vxlan doesn't need any extra tailroom, the lowerdev might need it. In that case, copy it over to reduce the chance for additional (re)allocations in the transmit path. Signed-off-by: Sven Eckelmann Link: ht

[PATCH AUTOSEL 4.14 2/8] drm/nouveau: make sure ret is initialized in nouveau_ttm_io_mem_reserve

2020-12-12 Thread Sasha Levin
From: Christian König [ Upstream commit aea656b0d05ec5b8ed5beb2f94c4dd42ea834e9d ] This wasn't initialized for pre NV50 hardware. Signed-off-by: Christian König Reported-and-Tested-by: Mark Hounschell Reviewed-by: Karol Herbst Link: https://patchwork.freedesktop.org/series/84298/ Signed-off-

[PATCH AUTOSEL 4.14 3/8] drm/tegra: sor: Disable clocks on error in tegra_sor_init()

2020-12-12 Thread Sasha Levin
From: Qinglang Miao [ Upstream commit bf3a3cdcad40e5928a22ea0fd200d17fd6d6308d ] Fix the missing clk_disable_unprepare() before return from tegra_sor_init() in the error handling case. Signed-off-by: Qinglang Miao Signed-off-by: Thierry Reding Signed-off-by: Sasha Levin --- drivers/gpu/drm/

Re: [PATCH -next] c6x: fix build of signal.c using _TIF_SIGNALs

2020-12-12 Thread Jens Axboe
On 12/9/20 8:17 PM, Randy Dunlap wrote: > kernel/signal.c in arch/c6x/ needs to build > since it contains _TIF_SIGNALfoobar #defines, so add it. > > Placates these build errors: > > ../arch/c6x/kernel/signal.c: In function 'do_notify_resume': > ../arch/c6x/kernel/signal.c:316:27: error: '_TIF_SI

Re: [PATCH v3] Compiler Attributes: remove CONFIG_ENABLE_MUST_CHECK

2020-12-12 Thread Guenter Roeck
On Sun, Nov 29, 2020 at 04:33:35AM +0900, Masahiro Yamada wrote: > Revert commit cebc04ba9aeb ("add CONFIG_ENABLE_MUST_CHECK"). > > A lot of warn_unused_result warnings existed in 2006, but until now > they have been fixed thanks to people doing allmodconfig tests. > > Our goal is to always enabl

[PATCH AUTOSEL 4.14 4/8] vxlan: Add needed_headroom for lower device

2020-12-12 Thread Sasha Levin
From: Sven Eckelmann [ Upstream commit 0a35dc41fea67ac4495ce7584406bf9557a6e7d0 ] It was observed that sending data via batadv over vxlan (on top of wireguard) reduced the performance massively compared to raw ethernet or batadv on raw ethernet. A check of perf data showed that the vxlan_build_s

[PATCH AUTOSEL 4.4 1/2] drm/nouveau: make sure ret is initialized in nouveau_ttm_io_mem_reserve

2020-12-12 Thread Sasha Levin
From: Christian König [ Upstream commit aea656b0d05ec5b8ed5beb2f94c4dd42ea834e9d ] This wasn't initialized for pre NV50 hardware. Signed-off-by: Christian König Reported-and-Tested-by: Mark Hounschell Reviewed-by: Karol Herbst Link: https://patchwork.freedesktop.org/series/84298/ Signed-off-

[PATCH AUTOSEL 4.9 3/5] drm/tegra: sor: Disable clocks on error in tegra_sor_init()

2020-12-12 Thread Sasha Levin
From: Qinglang Miao [ Upstream commit bf3a3cdcad40e5928a22ea0fd200d17fd6d6308d ] Fix the missing clk_disable_unprepare() before return from tegra_sor_init() in the error handling case. Signed-off-by: Qinglang Miao Signed-off-by: Thierry Reding Signed-off-by: Sasha Levin --- drivers/gpu/drm/

[PATCH AUTOSEL 5.9 13/23] vxlan: Add needed_headroom for lower device

2020-12-12 Thread Sasha Levin
From: Sven Eckelmann [ Upstream commit 0a35dc41fea67ac4495ce7584406bf9557a6e7d0 ] It was observed that sending data via batadv over vxlan (on top of wireguard) reduced the performance massively compared to raw ethernet or batadv on raw ethernet. A check of perf data showed that the vxlan_build_s

[PATCH AUTOSEL 4.9 2/5] drm/nouveau: make sure ret is initialized in nouveau_ttm_io_mem_reserve

2020-12-12 Thread Sasha Levin
From: Christian König [ Upstream commit aea656b0d05ec5b8ed5beb2f94c4dd42ea834e9d ] This wasn't initialized for pre NV50 hardware. Signed-off-by: Christian König Reported-and-Tested-by: Mark Hounschell Reviewed-by: Karol Herbst Link: https://patchwork.freedesktop.org/series/84298/ Signed-off-

[PATCH AUTOSEL 4.9 5/5] dm table: Remove BUG_ON(in_interrupt())

2020-12-12 Thread Sasha Levin
From: Thomas Gleixner [ Upstream commit e7b624183d921b49ef0a96329f21647d38865ee9 ] The BUG_ON(in_interrupt()) in dm_table_event() is a historic leftover from a rework of the dm table code which changed the calling context. Issuing a BUG for a wrong calling context is frowned upon and in_interru

[PATCH AUTOSEL 4.14 7/8] scsi: mpt3sas: Increase IOCInit request timeout to 30s

2020-12-12 Thread Sasha Levin
From: Sreekanth Reddy [ Upstream commit 85dad327d9b58b4c9ce08189a2707167de392d23 ] Currently the IOCInit request message timeout is set to 10s. This is not sufficient in some scenarios such as during HBA FW downgrade operations. Increase the IOCInit request timeout to 30s. Link: https://lore.

[PATCH AUTOSEL 4.9 1/5] kernel/cpu: add arch override for clear_tasks_mm_cpumask() mm handling

2020-12-12 Thread Sasha Levin
From: Nicholas Piggin [ Upstream commit 8ff00399b153440c1c83e20c43020385b416415b ] powerpc/64s keeps a counter in the mm which counts bits set in mm_cpumask as well as other things. This means it can't use generic code to clear bits out of the mask and doesn't adjust the arch specific counter.

[PATCH AUTOSEL 4.14 8/8] dm table: Remove BUG_ON(in_interrupt())

2020-12-12 Thread Sasha Levin
From: Thomas Gleixner [ Upstream commit e7b624183d921b49ef0a96329f21647d38865ee9 ] The BUG_ON(in_interrupt()) in dm_table_event() is a historic leftover from a rework of the dm table code which changed the calling context. Issuing a BUG for a wrong calling context is frowned upon and in_interru

[PATCH AUTOSEL 5.4 13/14] perf/x86/intel: Check PEBS status correctly

2020-12-12 Thread Sasha Levin
From: Stephane Eranian [ Upstream commit fc17db8aa4c53cbd2d5469bb0521ea0f0a6dbb27 ] The kernel cannot disambiguate when 2+ PEBS counters overflow at the same time. This is what the comment for this code suggests. However, I see the comparison is done with the unfiltered p->status which is a cop

[PATCH AUTOSEL 4.19 8/9] scsi: mpt3sas: Increase IOCInit request timeout to 30s

2020-12-12 Thread Sasha Levin
From: Sreekanth Reddy [ Upstream commit 85dad327d9b58b4c9ce08189a2707167de392d23 ] Currently the IOCInit request message timeout is set to 10s. This is not sufficient in some scenarios such as during HBA FW downgrade operations. Increase the IOCInit request timeout to 30s. Link: https://lore.

[PATCH AUTOSEL 4.19 1/9] drm/tegra: replace idr_init() by idr_init_base()

2020-12-12 Thread Sasha Levin
From: Deepak R Varma [ Upstream commit 41f71629b4c432f8dd47d70ace813be5f79d4d75 ] idr_init() uses base 0 which is an invalid identifier for this driver. The new function idr_init_base allows IDR to set the ID lookup from base 1. This avoids all lookups that otherwise starts from 0 since 0 is alw

[PATCH AUTOSEL 4.14 1/8] kernel/cpu: add arch override for clear_tasks_mm_cpumask() mm handling

2020-12-12 Thread Sasha Levin
From: Nicholas Piggin [ Upstream commit 8ff00399b153440c1c83e20c43020385b416415b ] powerpc/64s keeps a counter in the mm which counts bits set in mm_cpumask as well as other things. This means it can't use generic code to clear bits out of the mask and doesn't adjust the arch specific counter.

[PATCH AUTOSEL 4.19 9/9] dm table: Remove BUG_ON(in_interrupt())

2020-12-12 Thread Sasha Levin
From: Thomas Gleixner [ Upstream commit e7b624183d921b49ef0a96329f21647d38865ee9 ] The BUG_ON(in_interrupt()) in dm_table_event() is a historic leftover from a rework of the dm table code which changed the calling context. Issuing a BUG for a wrong calling context is frowned upon and in_interru

[PATCH AUTOSEL 5.9 10/23] habanalabs: free host huge va_range if not used

2020-12-12 Thread Sasha Levin
From: Ofir Bitton [ Upstream commit c8c39fbd01d42c30454e42c16bcd69c17260b90a ] If huge range is not valid, driver uses the host range also for huge page allocations, but driver never frees its allocation. This introduces a memory leak every time a user closes its context. Signed-off-by: Ofir Bi

[PATCH AUTOSEL 4.19 4/9] arm64: syscall: exit userspace before unmasking exceptions

2020-12-12 Thread Sasha Levin
From: Mark Rutland [ Upstream commit ca1314d73eed493c49bb1932c60a8605530db2e4 ] In el0_svc_common() we unmask exceptions before we call user_exit(), and so there's a window where an IRQ or debug exception can be taken while RCU is not watching. In do_debug_exception() we account for this in via

[PATCH AUTOSEL 4.19 3/9] drm/tegra: sor: Disable clocks on error in tegra_sor_init()

2020-12-12 Thread Sasha Levin
From: Qinglang Miao [ Upstream commit bf3a3cdcad40e5928a22ea0fd200d17fd6d6308d ] Fix the missing clk_disable_unprepare() before return from tegra_sor_init() in the error handling case. Signed-off-by: Qinglang Miao Signed-off-by: Thierry Reding Signed-off-by: Sasha Levin --- drivers/gpu/drm/

[PATCH AUTOSEL 4.19 2/9] kernel/cpu: add arch override for clear_tasks_mm_cpumask() mm handling

2020-12-12 Thread Sasha Levin
From: Nicholas Piggin [ Upstream commit 8ff00399b153440c1c83e20c43020385b416415b ] powerpc/64s keeps a counter in the mm which counts bits set in mm_cpumask as well as other things. This means it can't use generic code to clear bits out of the mask and doesn't adjust the arch specific counter.

[PATCH AUTOSEL 4.19 5/9] vxlan: Add needed_headroom for lower device

2020-12-12 Thread Sasha Levin
From: Sven Eckelmann [ Upstream commit 0a35dc41fea67ac4495ce7584406bf9557a6e7d0 ] It was observed that sending data via batadv over vxlan (on top of wireguard) reduced the performance massively compared to raw ethernet or batadv on raw ethernet. A check of perf data showed that the vxlan_build_s

[PATCH] dmaengine: owl-dma: Fix a resource leak in the remove function

2020-12-12 Thread Christophe JAILLET
A 'dma_pool_destroy()' call is missing in the remove function. Add it. This call is already made in the error handling path of the probe function. Fixes: 47e20577c24d ("dmaengine: Add Actions Semi Owl family S900 DMA driver") Signed-off-by: Christophe JAILLET --- drivers/dma/owl-dma.c | 1 + 1

[PATCH AUTOSEL 5.9 01/23] drm/tegra: sor: Don't warn on probe deferral

2020-12-12 Thread Sasha Levin
From: Jon Hunter [ Upstream commit cb7ff314e1d9f3d6c62fa2c392e41174721ed0b3 ] Deferred probe is an expected return value for tegra_output_probe(). Given that the driver deals with it properly, there's no need to output a warning that may potentially confuse users. Signed-off-by: Jon Hunter Sig

[PATCH AUTOSEL 5.4 06/14] vxlan: Add needed_headroom for lower device

2020-12-12 Thread Sasha Levin
From: Sven Eckelmann [ Upstream commit 0a35dc41fea67ac4495ce7584406bf9557a6e7d0 ] It was observed that sending data via batadv over vxlan (on top of wireguard) reduced the performance massively compared to raw ethernet or batadv on raw ethernet. A check of perf data showed that the vxlan_build_s

[PATCH AUTOSEL 5.4 11/14] iwlwifi: pcie: add one missing entry for AX210

2020-12-12 Thread Sasha Levin
From: Luca Coelho [ Upstream commit 5febcdef30902fa870128b9789b873199f13aff1 ] The 0x0024 subsytem device ID was missing from the list, so some AX210 devices were not recognized. Add it. Signed-off-by: Luca Coelho Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/iwlwifi.20201202143

[PATCH AUTOSEL 5.4 05/14] arm64: syscall: exit userspace before unmasking exceptions

2020-12-12 Thread Sasha Levin
From: Mark Rutland [ Upstream commit ca1314d73eed493c49bb1932c60a8605530db2e4 ] In el0_svc_common() we unmask exceptions before we call user_exit(), and so there's a window where an IRQ or debug exception can be taken while RCU is not watching. In do_debug_exception() we account for this in via

[PATCH AUTOSEL 5.4 04/14] habanalabs: put devices before driver removal

2020-12-12 Thread Sasha Levin
From: Ofir Bitton [ Upstream commit b7c56bdec7a29c789fec27f84d40f52fbdfa ] Driver never puts its device and control_device objects, hence a memory leak is introduced every driver removal. Signed-off-by: Ofir Bitton Reviewed-by: Oded Gabbay Signed-off-by: Oded Gabbay Signed-off-by: Sasha

[PATCH AUTOSEL 5.4 07/14] vxlan: Copy needed_tailroom from lowerdev

2020-12-12 Thread Sasha Levin
From: Sven Eckelmann [ Upstream commit a5e74021e84bb5eadf760aaf2c583304f02269be ] While vxlan doesn't need any extra tailroom, the lowerdev might need it. In that case, copy it over to reduce the chance for additional (re)allocations in the transmit path. Signed-off-by: Sven Eckelmann Link: ht

Re: [PATCH 4/4] MIPS: mm: Clean up setup of protection map

2020-12-12 Thread Guenter Roeck
On Fri, Nov 13, 2020 at 12:09:52PM +0100, Thomas Bogendoerfer wrote: > Protection map difference between RIXI and non RIXI cpus is _PAGE_NO_EXEC > and _PAGE_NO_READ usage. Both already take care of cpu_has_rixi while > setting up the page bits. So we just need one setup of protection map > and can

[PATCH AUTOSEL 5.4 08/14] scsi: storvsc: Validate length of incoming packet in storvsc_on_channel_callback()

2020-12-12 Thread Sasha Levin
From: "Andrea Parri (Microsoft)" [ Upstream commit 3b8c72d076c42bf27284cda7b2b2b522810686f8 ] Check that the packet is of the expected size at least, don't copy data past the packet. Link: https://lore.kernel.org/r/20201118145348.109879-1-parri.and...@gmail.com Cc: "James E.J. Bottomley" Cc: "

[PATCH AUTOSEL 5.4 10/14] dm table: Remove BUG_ON(in_interrupt())

2020-12-12 Thread Sasha Levin
From: Thomas Gleixner [ Upstream commit e7b624183d921b49ef0a96329f21647d38865ee9 ] The BUG_ON(in_interrupt()) in dm_table_event() is a historic leftover from a rework of the dm table code which changed the calling context. Issuing a BUG for a wrong calling context is frowned upon and in_interru

[PATCH AUTOSEL 5.9 17/23] dm table: Remove BUG_ON(in_interrupt())

2020-12-12 Thread Sasha Levin
From: Thomas Gleixner [ Upstream commit e7b624183d921b49ef0a96329f21647d38865ee9 ] The BUG_ON(in_interrupt()) in dm_table_event() is a historic leftover from a rework of the dm table code which changed the calling context. Issuing a BUG for a wrong calling context is frowned upon and in_interru

[PATCH AUTOSEL 5.4 02/14] kernel/cpu: add arch override for clear_tasks_mm_cpumask() mm handling

2020-12-12 Thread Sasha Levin
From: Nicholas Piggin [ Upstream commit 8ff00399b153440c1c83e20c43020385b416415b ] powerpc/64s keeps a counter in the mm which counts bits set in mm_cpumask as well as other things. This means it can't use generic code to clear bits out of the mask and doesn't adjust the arch specific counter.

[PATCH AUTOSEL 5.9 19/23] iwlwifi: pcie: add some missing entries for AX210

2020-12-12 Thread Sasha Levin
From: Golan Ben Ami [ Upstream commit 9b15596c5006d82b2f82810e8cbf80d8c6e7e7b4 ] Some subsytem device IDs were missing from the list, so some AX210 devices were not recognized. Add them. Signed-off-by: Golan Ben Ami Signed-off-by: Luca Coelho Signed-off-by: Kalle Valo Link: https://lore.ke

[PATCH AUTOSEL 5.9 21/23] perf/x86/intel: Check PEBS status correctly

2020-12-12 Thread Sasha Levin
From: Stephane Eranian [ Upstream commit fc17db8aa4c53cbd2d5469bb0521ea0f0a6dbb27 ] The kernel cannot disambiguate when 2+ PEBS counters overflow at the same time. This is what the comment for this code suggests. However, I see the comparison is done with the unfiltered p->status which is a cop

[PATCH AUTOSEL 5.4 01/14] drm/tegra: replace idr_init() by idr_init_base()

2020-12-12 Thread Sasha Levin
From: Deepak R Varma [ Upstream commit 41f71629b4c432f8dd47d70ace813be5f79d4d75 ] idr_init() uses base 0 which is an invalid identifier for this driver. The new function idr_init_base allows IDR to set the ID lookup from base 1. This avoids all lookups that otherwise starts from 0 since 0 is alw

[PATCH AUTOSEL 5.9 03/23] drm/tegra: replace idr_init() by idr_init_base()

2020-12-12 Thread Sasha Levin
From: Deepak R Varma [ Upstream commit 41f71629b4c432f8dd47d70ace813be5f79d4d75 ] idr_init() uses base 0 which is an invalid identifier for this driver. The new function idr_init_base allows IDR to set the ID lookup from base 1. This avoids all lookups that otherwise starts from 0 since 0 is alw

[PATCH AUTOSEL 5.9 14/23] vxlan: Copy needed_tailroom from lowerdev

2020-12-12 Thread Sasha Levin
From: Sven Eckelmann [ Upstream commit a5e74021e84bb5eadf760aaf2c583304f02269be ] While vxlan doesn't need any extra tailroom, the lowerdev might need it. In that case, copy it over to reduce the chance for additional (re)allocations in the transmit path. Signed-off-by: Sven Eckelmann Link: ht

[PATCH AUTOSEL 5.9 09/23] selftests: tc-testing: enable CONFIG_NET_SCH_RED as a module

2020-12-12 Thread Sasha Levin
From: Davide Caratti [ Upstream commit e14038a7ead09faa180eb072adc4a2157a0b475f ] a proper kernel configuration for running kselftest can be obtained with: $ yes | make kselftest-merge enable compile support for the 'red' qdisc: otherwise, tdc kselftest fail when trying to run tdc test items

[PATCH AUTOSEL 5.9 04/23] dm integrity: don't use drivers that have CRYPTO_ALG_ALLOCATES_MEMORY

2020-12-12 Thread Sasha Levin
From: Mikulas Patocka [ Upstream commit a7a10bce8a04f48238a8306ec97d430b77917015 ] Don't use crypto drivers that have the flag CRYPTO_ALG_ALLOCATES_MEMORY set. These drivers allocate memory and thus they are not suitable for block I/O processing. Signed-off-by: Mikulas Patocka Signed-off-by: M

[PATCH AUTOSEL 5.9 06/23] ASoC: rt5682: change SAR voltage threshold

2020-12-12 Thread Sasha Levin
From: Shuming Fan [ Upstream commit aa4cb898b80a28a610e26d1513e6dd42d995c225 ] To fix errors in some 4 poles headset detection cases, this patch adjusts the voltage threshold for mic detection. Signed-off-by: Shuming Fan Link: https://lore.kernel.org/r/20201126092759.9427-1-shumi...@realtek.co

[PATCH AUTOSEL 5.9 05/23] gfs2: set lockdep subclass for iopen glocks

2020-12-12 Thread Sasha Levin
From: Alexander Aring [ Upstream commit 515b269d5bd29a986d5e1c0a0cba87fa865a48b4 ] This patch introduce a new globs attribute to define the subclass of the glock lockref spinlock. This avoid the following lockdep warning, which occurs when we lock an inode lock while an iopen lock is held:

[PATCH AUTOSEL 5.9 02/23] drm/tegra: sor: Ensure regulators are disabled on teardown

2020-12-12 Thread Sasha Levin
From: Marc Zyngier [ Upstream commit 5c1d644c09dbc13b2dc652435786e42b05ac1bb7 ] The Tegra SOR driver uses the devm infrastructure to request regulators, but enables them without registering them with the infrastructure. This results in the following splat if probing fails for any odd resaon (su

[PATCH AUTOSEL 5.9 08/23] drm/tegra: sor: Disable clocks on error in tegra_sor_init()

2020-12-12 Thread Sasha Levin
From: Qinglang Miao [ Upstream commit bf3a3cdcad40e5928a22ea0fd200d17fd6d6308d ] Fix the missing clk_disable_unprepare() before return from tegra_sor_init() in the error handling case. Signed-off-by: Qinglang Miao Signed-off-by: Thierry Reding Signed-off-by: Sasha Levin --- drivers/gpu/drm/

Re: [PATCH linux hwmon-next v5 1/3] hwmon: (sbtsi) Add basic support for SB-TSI sensors

2020-12-12 Thread Guenter Roeck
On Fri, Dec 11, 2020 at 01:54:25PM -0800, Kun Yi wrote: > SB Temperature Sensor Interface (SB-TSI) is an SMBus compatible > interface that reports AMD SoC's Ttcl (normalized temperature), > and resembles a typical 8-pin remote temperature sensor's I2C interface > to BMC. > > This commit adds basic

Re: [PATCH linux hwmon-next v5 2/3] hwmon: (sbtsi) Add documentation

2020-12-12 Thread Guenter Roeck
On Fri, Dec 11, 2020 at 01:54:26PM -0800, Kun Yi wrote: > Document the SB-TSI sensor interface driver. > > Signed-off-by: Kun Yi Applied. Note that I added the SPDX identifier to match the one used in the source file. Guenter > --- > Documentation/hwmon/index.rst | 1 + > Documentation/

Re: [PATCH linux hwmon-next v5 3/3] dt-bindings: (hwmon/sbtsi_tmep) Add SB-TSI hwmon driver bindings

2020-12-12 Thread Guenter Roeck
On Fri, Dec 11, 2020 at 01:54:27PM -0800, Kun Yi wrote: > Document device tree bindings for AMD SB-TSI emulated temperature > sensor. > > Signed-off-by: Kun Yi Applied, after fixing the subject line. I also added Rob's Reviewed-by: tag from v2. Guenter > --- > .../devicetree/bindings/hwmon/am

[PATCH 3/3] kbuild: rewrite ld-version.sh in shell script

2020-12-12 Thread Masahiro Yamada
This script was written in awk in spite of the file extension '.sh'. Rewrite it as a shell script. The code was mostly copy-pasted from scripts/lld-version.sh. The two scripts can be merged, but I am keeping this as a separate file for now. I tested this script for some corner cases reported in t

[PATCH 1/3] kbuild: do not use scripts/ld-version.sh for checking spatch version

2020-12-12 Thread Masahiro Yamada
scripts/ld-version.sh was, as its file name implies, originally intended for the GNU ld version, but is (ab)used for the spatch version too. Use 'sort -CV' for the version comparison, then coccicheck does not need to use scripts/ld-version.sh. Fix nsdeps as well. Signed-off-by: Masahiro Yamada -

[PATCH 2/3] kbuild: LD_VERSION redenomination

2020-12-12 Thread Masahiro Yamada
Commit ccbef1674a15 ("Kbuild, lto: add ld-version and ld-ifversion macros") introduced scripts/ld-version.sh for GCC LTO. At that time, this script handled 5 version fields because GCC LTO needed the downstream binutils. (https://lkml.org/lkml/2014/4/8/272) The code snippet from the submitted pat

[RFC] ravb: Add support for optional txc_refclk

2020-12-12 Thread Adam Ford
The SoC expects the txv_refclk is provided, but if it is provided by a programmable clock, there needs to be a way to get and enable this clock to operate. It needs to be optional since it's only necessary for those with programmable clocks. Signed-off-by: Adam Ford diff --git a/drivers/net/eth

Re: [PATCH] net/mlx4: Use true,false for bool variable

2020-12-12 Thread Jakub Kicinski
On Fri, 11 Dec 2020 11:05:18 +0100 Vasyl Gomonovych wrote: > Fix en_rx.c:687:1-17: WARNING: Assignment of 0/1 to bool variable > Fix main.c:4465:5-13: WARNING: Comparison of 0/1 to bool variable Apart from addressing Joe's comment please name the tool which produced those.

Re: [PATCH -next] platform: surface: fix non-PM_SLEEP build warnings

2020-12-12 Thread Randy Dunlap
On 12/12/20 5:24 AM, Andy Shevchenko wrote: > On Fri, Dec 11, 2020 at 9:20 PM Randy Dunlap wrote: >> >> Fix build warnings when CONFIG_PM_SLEEP is not enabled and these >> functions are not used: >> >> ../drivers/platform/surface/surface_gpe.c:189:12: warning: >> ‘surface_gpe_resume’ defined but

Re: [PATCH net-next v3 0/4] vsock: Add flags field in the vsock address

2020-12-12 Thread Jakub Kicinski
On Fri, 11 Dec 2020 16:24:13 +0100 Stefano Garzarella wrote: > On Fri, Dec 11, 2020 at 12:32:37PM +0200, Andra Paraschiv wrote: > >vsock enables communication between virtual machines and the host they are > >running on. Nested VMs can be setup to use vsock channels, as the multi > >transport suppo

<    1   2   3   4   >