[PATCHv2 4/4] coresight: etm3x: Add support to exclude kernel mode tracing

2021-03-01 Thread Sai Prakash Ranjan
On production systems with ETMs enabled, it is preferred to exclude kernel mode(NS EL1) tracing for security concerns and support only userspace(NS EL0) tracing. Perf subsystem interface uses the newly introduced kernel config CONFIG_EXCLUDE_KERNEL_PMU_TRACE to exclude kernel mode tracing, but

[PATCH 5.11 124/775] net: axienet: Handle deferred probe on clock properly

2021-03-01 Thread Greg Kroah-Hartman
From: Robert Hancock [ Upstream commit 57baf8cc70ea4cf5503c9d42f31f6a86d7f5ff1a ] This driver is set up to use a clock mapping in the device tree if it is present, but still work without one for backward compatibility. However, if getting the clock returns -EPROBE_DEFER, then we need to abort

[PATCH 5.11 245/775] drm/nouveau: bail out of nouveau_channel_new if channel init fails

2021-03-01 Thread Greg Kroah-Hartman
From: Frantisek Hrbata [ Upstream commit eaba3b28401f50e22d64351caa8afe8d29509f27 ] Unprivileged user can crash kernel by using DRM_IOCTL_NOUVEAU_CHANNEL_ALLOC ioctl. This was reported by trinity[1] fuzzer. [ 71.073906] nouveau :01:00.0: crashme[1329]: channel failed to initialise, -17

RE: [PATCH v3] x86/fault: Send a SIGBUS to user process always for hwpoison page access.

2021-03-01 Thread Luck, Tony
> Some programs may use read(2), write(2), etc as ways to check if > memory is valid without getting a signal. They might not want > signals, which means that this feature might need to be configurable. That sounds like an appalling hack. If users need such a mechanism we should create some

[PATCH 5.10 262/663] clk: meson: clk-pll: propagate the error from meson_clk_pll_set_rate()

2021-03-01 Thread Greg Kroah-Hartman
From: Martin Blumenstingl [ Upstream commit ccdc1f0836f8e37b558a424f1e491f929b2e7ede ] Popagate the error code from meson_clk_pll_set_rate() when the PLL does not lock with the new settings. Fixes: 722825dcd54b2e ("clk: meson: migrate plls clocks to clk_regmap") Signed-off-by: Martin

[PATCH 5.10 572/663] rcu: Pull deferred rcuog wake up to rcu_eqs_enter() callers

2021-03-01 Thread Greg Kroah-Hartman
From: Frederic Weisbecker commit 54b7429efffc99e845ba9381bee3244f012a06c2 upstream. Deferred wakeup of rcuog kthreads upon RCU idle mode entry is going to be handled differently whether initiated by idle, user or guest. Prepare with pulling that control up to rcu_eqs_enter() callers.

[PATCH 5.10 636/663] spi: spi-synquacer: fix set_cs handling

2021-03-01 Thread Greg Kroah-Hartman
From: Masahisa Kojima commit 1c9f1750f0305bf605ff22686fc0ac89c06deb28 upstream. When the slave chip select is deasserted, DMSTOP bit must be set. Fixes: b0823ee35cf9 ("spi: Add spi driver for Socionext SynQuacer platform") Signed-off-by: Masahisa Kojima Signed-off-by: Jassi Brar Cc:

[PATCH 5.10 551/663] seccomp: Add missing return in non-void function

2021-03-01 Thread Greg Kroah-Hartman
From: Paul Cercueil commit 04b38d012556199ba4c31195940160e0c44c64f0 upstream. We don't actually care about the value, since the kernel will panic before that; but a value should nonetheless be returned, otherwise the compiler will complain. Fixes: 8112c4f140fa ("seccomp: remove 2-phase API")

[PATCH 5.11 382/775] objtool: Fix ".cold" section suffix check for newer versions of GCC

2021-03-01 Thread Greg Kroah-Hartman
From: Josh Poimboeuf [ Upstream commit 34ca59e109bdf69704c33b8eeffaa4c9f71076e5 ] With my version of GCC 9.3.1 the ".cold" subfunctions no longer have a numbered suffix, so the trailing period is no longer there. Presumably this doesn't yet trigger a user-visible bug since most of the

[PATCH 5.4 296/340] mtd: spi-nor: sfdp: Fix wrong erase type bitmask for overlaid region

2021-03-01 Thread Greg Kroah-Hartman
From: Takahiro Kuwano commit abdf5a5ef9652bad4d58058bc22ddf23543ba3e1 upstream. At the time spi_nor_region_check_overlay() is called, the erase types are sorted in ascending order of erase size. The 'erase_type' should be masked with 'BIT(erase[i].idx)' instead of 'BIT(i)'. Fixes: b038e8e3be72

[PATCH 5.11 315/775] i2c: iproc: handle only slave interrupts which are enabled

2021-03-01 Thread Greg Kroah-Hartman
From: Rayagonda Kokatanur [ Upstream commit 545f4011e156554d704d6278245d54543f6680d1 ] Handle only slave interrupts which are enabled. The IS_OFFSET register contains the interrupt status bits which will be set regardless of the enabling of the corresponding interrupt condition. One must

[PATCH 5.10 236/663] drm/dp_mst: Dont cache EDIDs for physical ports

2021-03-01 Thread Greg Kroah-Hartman
From: Imre Deak [ Upstream commit 4b8878eefa0a3b65e2e016db49014ea66fb9fd45 ] Caching EDIDs for physical ports prevents updating the EDID if a port gets reconnected via a Connection Status Notification message, fix this. Fixes: db1a07956968 ("drm/dp_mst: Handle SST-only branch device case") Cc:

[PATCH 5.10 407/663] mei: hbm: call mei_set_devstate() on hbm stop response

2021-03-01 Thread Greg Kroah-Hartman
From: Alexander Usyskin [ Upstream commit 3a77df62deb2e62de0dc26c1cb763cc152329287 ] Use mei_set_devstate() wrapper upon hbm stop command response, to trigger sysfs event. Fixes: 43b8a7ed4739 ("mei: expose device state in sysfs") Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Winkler

[PATCH 5.10 591/663] mtd: spi-nor: core: Add erase size check for erase command initialization

2021-03-01 Thread Greg Kroah-Hartman
From: Takahiro Kuwano commit 58fa22f68fcaff20ce4d08a6adffa64f65ccd37d upstream. Even if erase type is same as previous region, erase size can be different if the previous region is overlaid region. Since 'region->size' is assigned to 'cmd->size' for overlaid region, comparing 'erase->size' and

[PATCH 5.10 510/663] bcache: Give btree_io_wq correct semantics again

2021-03-01 Thread Greg Kroah-Hartman
From: Kai Krakow commit d797bd9897e3559eb48d68368550d637d32e468c upstream. Before killing `btree_io_wq`, the queue was allocated using `create_singlethread_workqueue()` which has `WQ_MEM_RECLAIM`. After killing it, it no longer had this property but `system_wq` is not single threaded. Let's

[PATCH 5.10 393/663] ARM: 9065/1: OABI compat: fix build when EPOLL is not enabled

2021-03-01 Thread Greg Kroah-Hartman
From: Randy Dunlap [ Upstream commit fd749fe4bcb00ad80d9eece709f804bb4ac6bf1e ] When CONFIG_EPOLL is not set/enabled, sys_oabi-compat.c has build errors. Fix these by surrounding them with ifdef CONFIG_EPOLL/endif and providing stubs for the "EPOLL is not set" case.

[PATCH 5.10 472/663] proc: use kvzalloc for our kernel buffer

2021-03-01 Thread Greg Kroah-Hartman
From: Josef Bacik [ Upstream commit 4508943794efdd94171549c0bd52810e2f4ad9fe ] Since sysctl: pass kernel pointers to ->proc_handler we have been pre-allocating a buffer to copy the data from the proc handlers into, and then copying that to userspace. The problem is this just blindly

[PATCH 5.11 304/775] Input: imx_keypad - add dependency on HAS_IOMEM

2021-03-01 Thread Greg Kroah-Hartman
From: Dmitry Torokhov [ Upstream commit f5cace4b93d736cef348211ae0814cabdd26d86a ] devm_platform_ioremap_resource() depends on CONFIG_HAS_IOMEM, so let's add it to the dependencies when COMPILE_TEST is enabled. Reported-by: kernel test robot Fixes: c8834032ffe2 ("Input: imx_keypad - add

[PATCH 5.10 542/663] crypto: arm64/sha - add missing module aliases

2021-03-01 Thread Greg Kroah-Hartman
From: Ard Biesheuvel commit 0df07d8117c3576f1603b05b84089742a118d10a upstream. The accelerated, instruction based implementations of SHA1, SHA2 and SHA3 are autoloaded based on CPU capabilities, given that the code is modest in size, and widely used, which means that resolving the algo name,

[PATCH 5.10 629/663] um: defer killing userspace on page table update failures

2021-03-01 Thread Greg Kroah-Hartman
From: Johannes Berg commit a7d48886cacf8b426e0079bca9639d2657cf2d38 upstream. In some cases we can get to fix_range_common() with mmap_sem held, and in others we get there without it being held. For example, we get there with it held from sys_mprotect(), and without it held from fork_handler().

[PATCH 5.10 145/663] crypto: sun4i-ss - fix kmap usage

2021-03-01 Thread Greg Kroah-Hartman
From: Corentin Labbe [ Upstream commit 9bc3dd24e7dccd50757db743a3635ad5b0497e6e ] With the recent kmap change, some tests which were conditional on CONFIG_DEBUG_HIGHMEM now are enabled by default. This permit to detect a problem in sun4i-ss usage of kmap. sun4i-ss uses two kmap via sg_miter

[PATCH 5.10 313/663] power: supply: smb347-charger: Fix interrupt usage if interrupt is unavailable

2021-03-01 Thread Greg Kroah-Hartman
From: Dmitry Osipenko [ Upstream commit 6996312642d2dad3070c3d276c7621f35e721f30 ] The IRQ=0 could be a valid interrupt number in kernel because interrupt numbers are virtual in a modern kernel. Hence fix the interrupt usage in a case if interrupt is unavailable by not overriding the interrupt

[PATCH 5.11 203/775] media: tm6000: Fix memleak in tm6000_start_stream

2021-03-01 Thread Greg Kroah-Hartman
From: Dinghao Liu [ Upstream commit 76aaf8a96771c16365b8510f1fb97738dc88026e ] When usb_clear_halt() fails, dvb->bulk_urb->transfer_buffer and dvb->bulk_urb should be freed just like when usb_submit_urb() fails. Fixes: 3169c9b26fffa ("V4L/DVB (12788): tm6000: Add initial DVB-T support")

[PATCH 5.10 271/663] clk: sunxi-ng: h6: Fix CEC clock

2021-03-01 Thread Greg Kroah-Hartman
From: Andre Przywara [ Upstream commit 756650820abd4770c4200763505b634a3c04e05e ] The CEC clock on the H6 SoC is a bit special, since it uses a fixed pre-dividier for one source clock (the PLL), but conveys the other clock (32K OSC) directly. We are using a fixed predivider array for that, but

Re: [PATCH V3 XRT Alveo 10/18] fpga: xrt: VSEC platform driver

2021-03-01 Thread Tom Rix
On 2/17/21 10:40 PM, Lizhi Hou wrote: > Add VSEC driver. VSEC is a hardware function discovered by walking > PCI Express configure space. A platform device node will be created > for it. VSEC provides board logic UUID and few offset of other hardware > functions. Is this vsec walking infra or is

[PATCH 5.11 261/775] ASoC: Intel: sof_sdw: add missing TGL_HDMI quirk for Dell SKU 0A5E

2021-03-01 Thread Greg Kroah-Hartman
From: Pierre-Louis Bossart [ Upstream commit f12bbc50f3b14c9b8ed902c6d1da980dd5addcce ] We missed adding the TGL_HDMI quirk which is very much needed to expose the 4 display pipelines and will be required on TGL topologies. Fixes: 9ad9bc59dde10 ('ASoC: Intel: sof_sdw: set proper flags for Dell

[PATCH 5.10 432/663] PCI: pci-bridge-emul: Fix array overruns, improve safety

2021-03-01 Thread Greg Kroah-Hartman
From: Russell King [ Upstream commit f8ee579d53aca887d93f5f411462f25c085a5106 ] We allow up to PCI_EXP_SLTSTA2 registers to be accessed, but the pcie_cap_regs_behavior[] array only covers up to PCI_EXP_RTSTA. Expand this array to avoid walking off the end of it. Do the same for

[PATCH 5.10 304/663] platform/chrome: cros_ec_proto: Use EC_HOST_EVENT_MASK not BIT

2021-03-01 Thread Greg Kroah-Hartman
From: Evan Benn [ Upstream commit 0944ea07baa748741563c8842122010fa9017d16 ] The host_event_code enum is 1-based, use EC_HOST_EVENT_MASK not BIT to generate the intended mask. This patch changes the behaviour of the mask, a following patch will restore the intended behaviour: 'Add LID and

Re: [PATCH v21 08/26] x86/mm: Introduce _PAGE_COW

2021-03-01 Thread Yu, Yu-cheng
On 3/1/2021 7:52 AM, Borislav Petkov wrote: On Wed, Feb 17, 2021 at 02:27:12PM -0800, Yu-cheng Yu wrote: @@ -182,7 +206,7 @@ static inline int pud_young(pud_t pud) static inline int pte_write(pte_t pte) { - return pte_flags(pte) & _PAGE_RW; Put here a comment along the lines of:

Re: [PATCH v6 1/9] smp: Run functions concurrently in smp_call_function_many_cond()

2021-03-01 Thread Nadav Amit
> On Mar 1, 2021, at 9:10 AM, Peter Zijlstra wrote: > > On Sat, Feb 20, 2021 at 03:17:04PM -0800, Nadav Amit wrote: >> +/* >> + * Choose the most efficient way to send an IPI. Note that the >> + * number of CPUs might be zero due to concurrent changes to the

[PATCH 5.11 221/775] drm/amd/display: Fix 10/12 bpc setup in DCE output bit depth reduction.

2021-03-01 Thread Greg Kroah-Hartman
From: Mario Kleiner [ Upstream commit 1916866dfa4aaceba1a70db83fde569387649d93 ] In set_clamp(), the comments and definitions for the COLOR_DEPTH_101010 and COLOR_DEPTH_121212 cases directly contradict the code comment which explains how this should work, whereas the COLOR_DEPTH_888 case is

[PATCH 5.10 211/663] f2fs: fix to avoid inconsistent quota data

2021-03-01 Thread Greg Kroah-Hartman
From: Yi Chen [ Upstream commit 25fb04dbce6a0e165d28fd1fa8a1d7018c637fe8 ] Occasionally, quota data may be corrupted detected by fsck: Info: checkpoint state = 45 : crc compacted_summary unmount [QUOTA WARNING] Usage inconsistent for ID 0:actual (1543036928, 762) != expected (1543032832,

[PATCH 5.11 334/775] scsi: ufs: Fix a possible NULL pointer issue

2021-03-01 Thread Greg Kroah-Hartman
From: Can Guo [ Upstream commit fb7afe24ba1b7e27483be7d2ac3ed002e67eecd5 ] During system resume/suspend, hba could be NULL. In this case, do not touch eh_sem. Fixes: 88a92d6ae4fe ("scsi: ufs: Serialize eh_work with system PM events and async scan") Link:

[PATCH 5.11 375/775] regulator: core: Avoid debugfs: Directory ... already present! error

2021-03-01 Thread Greg Kroah-Hartman
From: Hans de Goede [ Upstream commit dbe954d8f1635f949a1d9a5d6e6fb749ae022b47 ] Sometimes regulator_get() gets called twice for the same supply on the same device. This may happen e.g. when a framework / library is used which uses the regulator; and the driver itself also needs to enable the

[PATCH 5.4 294/340] watchdog: mei_wdt: request stop on unregister

2021-03-01 Thread Greg Kroah-Hartman
From: Alexander Usyskin commit 740c0a57b8f1e36301218bf549f3c9cc833a60be upstream. The MEI bus has a special behavior on suspend it destroys all the attached devices, this is due to the fact that also firmware context is not persistent across power flows. If watchdog on MEI bus is ticking

[PATCH 5.11 157/775] arm64: dts: mt8183: Fix GCE include path

2021-03-01 Thread Greg Kroah-Hartman
From: Matthias Brugger [ Upstream commit 18d6e3f6744d6105ab61de790170cb60534eeebc ] The header file of GCE should be for MT8183 SoC instead of MT8173. Fixes: 91f9c963ce79 ("arm64: dts: mt8183: Add display nodes for MT8183") Reported-by: CK Hu Signed-off-by: Matthias Brugger Reviewed-by:

[PATCH 5.10 443/663] pwm: iqs620a: Fix overflow and optimize calculations

2021-03-01 Thread Greg Kroah-Hartman
From: Uwe Kleine-König [ Upstream commit 72d6b2459dbd539c1369149e501fdc3dc8ddef16 ] If state->duty_cycle is 0x100, the previous calculation of duty_scale overflows and yields a duty cycle ratio of 0% instead of 100%. Fix this by clamping the requested duty cycle to the maximal

[PATCH 5.10 449/663] net: stmmac: fix CBS idleslope and sendslope calculation

2021-03-01 Thread Greg Kroah-Hartman
From: Song, Yoong Siang [ Upstream commit 24877687b375f2c476ffb726ea915fc85df09e3d ] When link speed is not 100 Mbps, port transmit rate and speed divider are set to 8 and 100 respectively. These values are incorrect for CBS idleslope and sendslope HW values calculation if the link speed is

[PATCH 5.4 330/340] drm/i915: Reject 446-480MHz HDMI clock on GLK

2021-03-01 Thread Greg Kroah-Hartman
From: Ville Syrjälä commit 7a6c6243b44a439bda4bf099032be35ebcf53406 upstream. The BXT/GLK DPLL can't generate certain frequencies. We already reject the 233-240MHz range on both. But on GLK the DPLL max frequency was bumped from 300MHz to 594MHz, so now we get to also worry about the 446-480MHz

[PATCH 5.10 501/663] ALSA: hda: Add another CometLake-H PCI ID

2021-03-01 Thread Greg Kroah-Hartman
From: Kai Vehmanen commit 0d3070f5e6551d8a759619e85736e49a3bf40398 upstream. Add one more HD Audio PCI ID for CometLake-H PCH. Signed-off-by: Kai Vehmanen Reviewed-by: Pierre-Louis Bossart Cc: Link: https://lore.kernel.org/r/20210212151022.2568567-1-kai.vehma...@linux.intel.com

[PATCH v2 1/1] xfrm: Use actual socket sk instead of skb socket for xfrm_output_resume

2021-03-01 Thread Evan Nimmo
A situation can occur where the interface bound to the sk is different to the interface bound to the sk attached to the skb. The interface bound to the sk is the correct one however this information is lost inside xfrm_output2 and instead the sk on the skb is used in xfrm_output_resume instead.

[PATCH 5.10 131/663] net: amd-xgbe: Fix NETDEV WATCHDOG transmit queue timeout warning

2021-03-01 Thread Greg Kroah-Hartman
From: Shyam Sundar S K [ Upstream commit 186edbb510bd60e748f93975989ccba25ee99c50 ] The current driver calls netif_carrier_off() late in the link tear down which can result in a netdev watchdog timeout. Calling netif_carrier_off() immediately after netif_tx_stop_all_queues() avoids the

[PATCH 5.10 033/663] arm64: dts: exynos: correct PMIC interrupt trigger level on TM2

2021-03-01 Thread Greg Kroah-Hartman
From: Krzysztof Kozlowski [ Upstream commit e98e2367dfb4b6d7a80c8ce795c644124eff5f36 ] The Samsung PMIC datasheets describe the interrupt line as active low with a requirement of acknowledge from the CPU. Without specifying the interrupt type in Devicetree, kernel might apply some fixed

[PATCH 5.10 234/663] drm/vc4: hdmi: Update the CEC clock divider on HSM rate change

2021-03-01 Thread Greg Kroah-Hartman
From: Maxime Ripard [ Upstream commit 47fa9a80270e20a0c4ddaffca1f144d22cc59620 ] As part of the enable sequence we might change the HSM clock rate if the pixel rate is different than the one we were already dealing with. On the BCM2835 however, the CEC clock derives from the HSM clock so any

[PATCH 5.10 398/663] PCI: rcar: Always allocate MSI addresses in 32bit space

2021-03-01 Thread Greg Kroah-Hartman
From: Marek Vasut [ Upstream commit c4e0fec2f7ee013dbf86445394ff47f719408f99 ] This fixes MSI operation on legacy PCI cards, which cannot issue 64bit MSIs. The R-Car controller only has one MSI trigger address instead of two, one for 64bit and one for 32bit MSI, set the address to 32bit PCIe

[PATCH 5.10 372/663] perf symbols: Fix return value when loading PE DSO

2021-03-01 Thread Greg Kroah-Hartman
From: Nicholas Fraser [ Upstream commit 1a97011fa9146ccfaf2983a3a2885dc57b6f ] The first time dso__load() was called on a PE file it always returned -1 error. This caused the first call to map__find_symbol() to always fail on a PE file so the first sample from each PE file always had symbol

[PATCH 5.10 541/663] drm/i915/gt: Correct surface base address for renderclear

2021-03-01 Thread Greg Kroah-Hartman
From: Chris Wilson commit 81ce8f04aa96f7f6cae05770f68b5d15be91f5a2 upstream. The surface_state_base is an offset into the batch, so we need to pass the correct batch address for STATE_BASE_ADDRESS. Fixes: 47f8253d2b89 ("drm/i915/gen7: Clear all EU/L3 residual contexts") Signed-off-by: Chris

[PATCH 5.11 290/775] ASoC: SOF: sof-pci-dev: add missing Up-Extreme quirk

2021-03-01 Thread Greg Kroah-Hartman
From: Pierre-Louis Bossart [ Upstream commit bd8036eb15263a720b8f846861c180b27d050a09 ] The UpExtreme board supports the community key and was missed in previous contributions. Add it to make sure the open firmware is picked by default without needing a symlink on the target. Fixes:

[PATCH 5.10 577/663] kprobes: Fix to delay the kprobes jump optimization

2021-03-01 Thread Greg Kroah-Hartman
From: Masami Hiramatsu commit c85c9a2c6e368dc94907e63babb18a9788e5c9b6 upstream. Commit 36dadef23fcc ("kprobes: Init kprobes in early_initcall") moved the kprobe setup in early_initcall(), which includes kprobe jump optimization. The kprobes jump optimizer involves synchronize_rcu_tasks() which

Re: [PATCH v6 00/16] remoteproc: Add support for detaching a remote processor

2021-03-01 Thread Mathieu Poirier
On Fri, Feb 26, 2021 at 05:40:49PM +0100, Arnaud POULIQUEN wrote: > Hi Mathieu, > > On 2/24/21 12:34 AM, Mathieu Poirier wrote: > > Following the work done here [1], this set provides support for the > > remoteproc core to release resources associated with a remote processor > > without having to

[PATCH 5.11 376/775] isofs: release buffer head before return

2021-03-01 Thread Greg Kroah-Hartman
From: Pan Bian [ Upstream commit 0a6dc67a6aa45f19bd4ff89b4f468fc50c4b8daa ] Release the buffer_head before returning error code in do_isofs_readdir() and isofs_find_entry(). Fixes: 2deb1acc653c ("isofs: fix access to unallocated memory when reading corrupted filesystem") Link:

[PATCH 5.10 617/663] printk: fix deadlock when kernel panic

2021-03-01 Thread Greg Kroah-Hartman
From: Muchun Song commit 8a8109f303e25a27f92c1d8edd67d7cbbc60a4eb upstream. printk_safe_flush_on_panic() caused the following deadlock on our server: CPU0: CPU1: panic rcu_dump_cpu_stacks kdump_nmi_shootdown_cpus

[PATCH 5.11 341/775] RDMA/rtrs-clt: Set mininum limit when create QP

2021-03-01 Thread Greg Kroah-Hartman
From: Jack Wang [ Upstream commit f47e4e3e71724f625958b0059f6c8ac5d44d27ef ] Currently rtrs when create_qp use a coarse numbers (bigger in general), which leads to hardware create more resources which only waste memory with no benefits. - SERVICE con, For max_send_wr/max_recv_wr, it's 2 times

[PATCH 5.10 514/663] drm/amd/display: Remove Assert from dcn10_get_dig_frontend

2021-03-01 Thread Greg Kroah-Hartman
From: Eric Bernstein commit 83e6667b675f101fb66659dfa72e45d08773d763 upstream. [Why] In some cases, this function is called when DIG BE is not connected to DIG FE, in which case a value of zero isn't invalid and assert should not be hit. [How] Remove assert and handle ENGINE_ID_UNKNOWN result

[PATCH 5.11 116/775] net/mlx5e: Check tunnel offload is required before setting SWP

2021-03-01 Thread Greg Kroah-Hartman
From: Moshe Shemesh [ Upstream commit e1c3940c6003d820c787473c65711b49c2d1bc42 ] Check that tunnel offload is required before setting Software Parser offsets to get Geneve HW offload. In case of Geneve packet we check HW offload support of SWP in mlx5e_tunnel_features_check() and set features

[PATCH 5.11 318/775] spi: cadence-quadspi: Abort read if dummy cycles required are too many

2021-03-01 Thread Greg Kroah-Hartman
From: Pratyush Yadav [ Upstream commit ceeda328edac7579e9dbf0610785a3b83d39 ] The controller can only support up to 31 dummy cycles. If the command requires more it falls back to using 31. This command is likely to fail because the correct number of cycles are not waited upon. Rather than

Re: [PATCH v6 16/16] remoteproc: Refactor rproc delete and cdev release path

2021-03-01 Thread Mathieu Poirier
On Fri, Feb 26, 2021 at 05:23:45PM +0100, Arnaud POULIQUEN wrote: > > > On 2/24/21 12:35 AM, Mathieu Poirier wrote: > > Refactor function rproc_del() and rproc_cdev_release() to take > > into account the current state of the remote processor when choosing > > the state to transition to. > > > >

[PATCH 5.11 338/775] RDMA/rtrs: Extend ibtrs_cq_qp_create

2021-03-01 Thread Greg Kroah-Hartman
From: Jack Wang [ Upstream commit 7490fd1fe836ba3c7eda7a4b1cfd9e44389ffda5 ] rtrs does not have same limit for both max_send_wr and max_recv_wr, To allow client and server set different values, export in a separate parameter for rtrs_cq_qp_create. Also fix the type accordingly, u32 should be

[PATCH 5.10 486/663] Input: raydium_ts_i2c - do not send zero length

2021-03-01 Thread Greg Kroah-Hartman
From: jeffrey.lin commit fafd320ae51b9c72d371585b2501f86640ea7b7d upstream. Add default write command package to prevent i2c quirk error of zero data length as Raydium touch firmware update is executed. Signed-off-by: jeffrey.lin Link:

[PATCH 5.10 560/663] staging: rtl8188eu: Add Edimax EW-7811UN V2 to device table

2021-03-01 Thread Greg Kroah-Hartman
From: Martin Kaiser commit 7a8d2f1908a59003e55ef8691d09efb7fbc51625 upstream. The Edimax EW-7811UN V2 uses an RTL8188EU chipset and works with this driver. Signed-off-by: Martin Kaiser Cc: stable Link: https://lore.kernel.org/r/20210204085217.9743-1-mar...@kaiser.cx Signed-off-by: Greg

[PATCH 5.10 120/663] tcp: fix SO_RCVLOWAT related hangs under mem pressure

2021-03-01 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit f969dc5a885736842c3511ecdea240fbb02d25d9 ] While commit 24adbc1676af ("tcp: fix SO_RCVLOWAT hangs with fat skbs") fixed an issue vs too small sk_rcvbuf for given sk_rcvlowat constraint, it missed to address issue caused by memory pressure. 1) If we are

[PATCH 5.11 128/775] ibmvnic: add memory barrier to protect long term buffer

2021-03-01 Thread Greg Kroah-Hartman
From: Lijun Pan [ Upstream commit 42557dab78edc8235aba5b441f2eb35f725a0ede ] dma_rmb() barrier is added to load the long term buffer before copying it to socket buffer; and dma_wmb() barrier is added to update the long term buffer before it being accessed by VIOS (virtual i/o server). Fixes:

[PATCH 5.11 174/775] drm/panel: mantix: Tweak init sequence

2021-03-01 Thread Greg Kroah-Hartman
From: Guido Günther [ Upstream commit dd396dbc4d7811c1567cc43faa4b9ad68094c44d ] We've seen some (non permanent) burn in and bad white balance on some of the panels. Adding this bit from a vendor supplied sequence fixes it. Fixes: 72967d5616d3 ("drm/panel: Add panel driver for the Mantix

[PATCH 5.11 042/775] net: stmmac: dwmac-meson8b: fix enabling the timing-adjustment clock

2021-03-01 Thread Greg Kroah-Hartman
From: Martin Blumenstingl [ Upstream commit 025822884a4fd2d0af51dcf77ddc494e60c5ff63 ] The timing-adjustment clock only has to be enabled when a) there is a 2ns RX delay configured using device-tree and b) the phy-mode indicates that the RX delay should be enabled. Only enable the RX delay if

[PATCH 5.10 354/663] kunit: tool: fix unit test cleanup handling

2021-03-01 Thread Greg Kroah-Hartman
From: Daniel Latypov [ Upstream commit cfd607e43da4a20753744f134e201310262b827a ] * Stop leaking file objects. * Use self.addCleanup() to ensure we call cleanup functions even if setUp() fails. * use mock.patch.stopall instead of more error-prone manual approach Signed-off-by: Daniel Latypov

[PATCH 5.10 193/663] media: mtk-vcodec: fix argument used when DEBUG is defined

2021-03-01 Thread Greg Kroah-Hartman
From: Tom Rix [ Upstream commit a04e187d231086a1313fd635ac42bdbc997137ad ] When DEBUG is defined this error occurs drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c:306:41: error: ‘i’ undeclared (first use in this function) mtk_v4l2_debug(2, "reg[%d] base=0x%p", i,

[PATCH 5.11 100/775] bnxt_en: reverse order of TX disable and carrier off

2021-03-01 Thread Greg Kroah-Hartman
From: Edwin Peer [ Upstream commit 132e0b65dc2b8bfa9721bfce834191f24fd1d7ed ] A TX queue can potentially immediately timeout after it is stopped and the last TX timestamp on that queue was more than 5 seconds ago with carrier still up. Prevent these intermittent false TX timeouts by bringing

[PATCH 5.10 461/663] mm/compaction: fix misbehaviors of fast_find_migrateblock()

2021-03-01 Thread Greg Kroah-Hartman
From: Wonhyuk Yang [ Upstream commit 15d28d0d11609c7a4f217b3d85e26456d9beb134 ] In the fast_find_migrateblock(), it iterates ocer the freelist to find the proper pageblock. But there are some misbehaviors. First, if the page we found is equal to cc->migrate_pfn, it is considered that we

[PATCH 5.10 169/663] media: aspeed: fix error return code in aspeed_video_setup_video()

2021-03-01 Thread Greg Kroah-Hartman
From: Zhang Changzhong [ Upstream commit d497fcdab02996a4510d5dd0d743447c737c317a ] Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Fixes: d2b4387f3bdf ("media: platform: Add Aspeed Video Engine driver") Reported-by: Hulk Robot

Re: [PATCH v2] bus: mhi: core: Add unique qrtr node id support

2021-03-01 Thread Bhaumik Bhatt
Hi Kalle, On 2021-03-01 10:26 AM, Kalle Valo wrote: Bhaumik Bhatt writes: On 2021-03-01 03:14 AM, Kalle Valo wrote: + ath11k list Manivannan Sadhasivam writes: On Fri, Feb 26, 2021 at 04:12:49PM +0530, Gokul Sriram Palanisamy wrote: On platforms with two or more identical mhi devices,

[PATCH 5.11 189/775] MIPS: c-r4k: Fix section mismatch for loongson2_sc_init

2021-03-01 Thread Greg Kroah-Hartman
From: Nathan Chancellor [ Upstream commit c58734eee6a2151ba033c0dcb31902c89e310374 ] When building with clang, the following section mismatch warning occurs: WARNING: modpost: vmlinux.o(.text+0x24490): Section mismatch in reference from the function r4k_cache_init() to the function

[PATCH] Perf: Clean generated directory.

2021-03-01 Thread Gon Solo
From: Andreas Wendleder Remove generated directory tools/perf/arch/x86/include/generated. Signed-off-by: Andreas Wendleder --- tools/perf/arch/x86/Makefile | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tools/perf/arch/x86/Makefile

[PATCH 5.11 000/775] 5.11.3-rc1 review

2021-03-01 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.11.3 release. There are 775 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Wed, 03 Mar 2021 16:09:49 +. Anything

[PATCH 5.11 305/775] capabilities: Dont allow writing ambiguous v3 file capabilities

2021-03-01 Thread Greg Kroah-Hartman
From: Eric W. Biederman [ Upstream commit 95ebabde382c371572297915b104e55403674e73 ] The v3 file capabilities have a uid field that records the filesystem uid of the root user of the user namespace the file capabilities are valid in. When someone is silly enough to have the same underlying uid

[PATCH 5.11 279/775] drm/lima: fix reference leak in lima_pm_busy

2021-03-01 Thread Greg Kroah-Hartman
From: Qinglang Miao [ Upstream commit de4248b744e8394f239c0dd0af34088399d27d94 ] pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to putting operation will result in a reference leak here. A new function pm_runtime_resume_and_get is introduced in [0] to keep usage

[PATCH 5.10 428/663] regmap: sdw: use _no_pm functions in regmap_read/write

2021-03-01 Thread Greg Kroah-Hartman
From: Bard Liao [ Upstream commit d288a5712ef961e16d588bbdb2d846e00b5ef154 ] sdw_update_slave_status will be invoked when a codec is attached, and the codec driver will initialize the codec with regmap functions while the codec device is pm_runtime suspended. regmap routines currently rely on

[PATCH 5.4 299/340] mtd: spi-nor: hisi-sfc: Put child node np on error path

2021-03-01 Thread Greg Kroah-Hartman
From: Pan Bian commit fe6653460ee7a7dbe0cd5fd322992af862ce5ab0 upstream. Put the child node np when it fails to get or register device. Fixes: e523f11141bd ("mtd: spi-nor: add hisilicon spi-nor flash controller driver") Cc: sta...@vger.kernel.org Signed-off-by: Pan Bian [ta: Add Fixes tag

[PATCH 5.10 379/663] RDMA/rtrs: Only allow addition of path to an already established session

2021-03-01 Thread Greg Kroah-Hartman
From: Md Haris Iqbal [ Upstream commit 03e9b33a0fd677f554b03352646c13459bf60458 ] While adding a path from the client side to an already established session, it was possible to provide the destination IP to a different server. This is dangerous. This commit adds an extra member to the

[PATCH 5.11 049/775] arm64: dts: allwinner: H6: Allow up to 150 MHz MMC bus frequency

2021-03-01 Thread Greg Kroah-Hartman
From: Andre Przywara [ Upstream commit cfe6c487b9a1abc6197714ec5605716a5428cf03 ] The H6 manual explicitly lists a frequency limit of 150 MHz for the bus frequency of the MMC controllers. So far we had no explicit limits in the DT, which limited eMMC to the spec defined frequencies, or whatever

[PATCH 5.10 280/663] mfd: bd9571mwv: Use devm_mfd_add_devices()

2021-03-01 Thread Greg Kroah-Hartman
From: Yoshihiro Shimoda [ Upstream commit c58ad0f2b052b5675d6394e03713ee41e721b44c ] To remove mfd devices when unload this driver, should use devm_mfd_add_devices() instead. Fixes: d3ea21272094 ("mfd: Add ROHM BD9571MWV-M MFD PMIC driver") Signed-off-by: Yoshihiro Shimoda Acked-for-MFD-by:

[PATCH 5.10 073/663] opp: Correct debug message in _opp_add_static_v2()

2021-03-01 Thread Greg Kroah-Hartman
From: Dmitry Osipenko [ Upstream commit d7b9d9b31a3e55dcc9b5c289abfafe31efa5b5c4 ] The debug message always prints rate=0 instead of a proper value, fix it. Fixes: 6c591eec67cb ("OPP: Add helpers for reading the binding properties") Tested-by: Peter Geis Tested-by: Nicolas Chauvet Tested-by:

[PATCH 5.10 237/663] hwrng: timeriomem - Fix cooldown period calculation

2021-03-01 Thread Greg Kroah-Hartman
From: Jan Henrik Weinstock [ Upstream commit e145f5565dc48ccaf4cb50b7cfc48777bed8c100 ] Ensure cooldown period tolerance of 1% is actually accounted for. Fixes: ca3bff70ab32 ("hwrng: timeriomem - Improve performance...") Signed-off-by: Jan Henrik Weinstock Signed-off-by: Herbert Xu

[PATCH 5.10 269/663] i2c: iproc: handle master read request

2021-03-01 Thread Greg Kroah-Hartman
From: Rayagonda Kokatanur [ Upstream commit e21d79778768e4e187b2892d662c6aaa01e1d399 ] Handle single or multi byte master read request with or without repeated start. Fixes: c245d94ed106 ("i2c: iproc: Add multi byte read-write support for slave mode") Signed-off-by: Rayagonda Kokatanur

[PATCH 5.10 369/663] spi: dw: Avoid stack content exposure

2021-03-01 Thread Greg Kroah-Hartman
From: Kees Cook [ Upstream commit 386f771aad15dd535f2368b4adc9958c0160edd4 ] Since "data" is u32, is a "u32 *" type, which means pointer math will move in u32-sized steps. This was meant to be a byte offset, so cast to "char *" to aim the copy into the correct location. Seen with

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

2021-03-01 Thread Greg Kroah-Hartman
From: Christophe JAILLET [ Upstream commit 1f0a16f04113f9f0ab0c8e6d3abe661edab549e6 ] 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

[PATCH 5.11 194/775] media: i2c: ov5670: Fix PIXEL_RATE minimum value

2021-03-01 Thread Greg Kroah-Hartman
From: Jacopo Mondi [ Upstream commit dc1eb7c9c290cba52937c9a224b22a400bb0ffd7 ] The driver currently reports a single supported value for V4L2_CID_PIXEL_RATE and initializes the control's minimum value to 0, which is very risky, as userspace might accidentally use it as divider when calculating

[PATCH 5.11 150/775] x86/sgx: Fix the return type of sgx_init()

2021-03-01 Thread Greg Kroah-Hartman
From: Sami Tolvanen [ Upstream commit 31bf92881714fe9962d43d097b5114a9b4ad0a12 ] device_initcall() expects a function of type initcall_t, which returns an integer. Change the signature of sgx_init() to match. Fixes: e7e0545299d8c ("x86/sgx: Initialize metadata for Enclave Page Cache (EPC)

[PATCH 5.10 659/663] wireguard: selftests: test multiple parallel streams

2021-03-01 Thread Greg Kroah-Hartman
From: Jason A. Donenfeld commit d5a49aa6c3e264a93a7d08485d66e346be0969dd upstream. In order to test ndo_start_xmit being called in parallel, explicitly add separate tests, which should all run on different cores. This should help tease out bugs associated with queueing up packets from different

[PATCH 5.10 556/663] dts64: mt7622: fix slow sd card access

2021-03-01 Thread Greg Kroah-Hartman
From: Frank Wunderlich commit dc2e76175417e69c41d927dba75a966399f18354 upstream. Fix extreme slow speed (200MB takes ~20 min) on writing sdcard on bananapi-r64 by adding reset-control for mmc1 like it's done for mmc0/emmc. Fixes: 2c002a3049f7 ("arm64: dts: mt7622: add mmc related device

[PATCH 5.11 231/775] media: pxa_camera: declare variable when DEBUG is defined

2021-03-01 Thread Greg Kroah-Hartman
From: Tom Rix [ Upstream commit 031b9212365443aaef013360ea6cded7b2c4 ] When DEBUG is defined this error occurs drivers/media/platform/pxa_camera.c:1410:7: error: ‘i’ undeclared (first use in this function) for (i = 0; i < vb->num_planes; i++) ^ The variable 'i' is missing, so

[PATCH 5.11 145/775] selftests/bpf: Sync RCU before unloading bpf_testmod

2021-03-01 Thread Greg Kroah-Hartman
From: Andrii Nakryiko [ Upstream commit 635599bace259a2c42741c3ea61bfa7be6f15556 ] If some of the subtests use module BTFs through ksyms, they will cause bpf_prog to take a refcount on bpf_testmod module, which will prevent it from successfully unloading. Module's refcnt is decremented when

[PATCH 5.10 413/663] drm/msm/dp: trigger unplug event in msm_dp_display_disable

2021-03-01 Thread Greg Kroah-Hartman
From: Judy Hsiao [ Upstream commit c703d5789590935c573bbd080a2166b72d51a017 ] 1. Trigger the unplug event in msm_dp_display_disable() to shutdown audio properly. 2. Reset the completion before signal the disconnect event. Fixes: 158b9aa74479 ("drm/msm/dp: wait for audio notification before

[PATCH 5.10 656/663] kgdb: fix to kill breakpoints on initmem after boot

2021-03-01 Thread Greg Kroah-Hartman
From: Sumit Garg commit d54ce6158e354f5358a547b96299ecd7f3725393 upstream. Currently breakpoints in kernel .init.text section are not handled correctly while allowing to remove them even after corresponding pages have been freed. Fix it via killing .init.text section breakpoints just prior to

[PATCH 5.11 176/775] drm/panel: s6e63m0: Support max-brightness

2021-03-01 Thread Greg Kroah-Hartman
From: Linus Walleij [ Upstream commit 1f20bf5921de420071fdb1d55cda7550ae137bcd ] The "max-brightness" is a standard backlight property that we need to support for the Samsung GT-I8190 Golden because the display will go black if we crank up the brightness too high. As the platform needs this

[PATCH 5.11 083/775] staging: wfx: fix possible panic with re-queued frames

2021-03-01 Thread Greg Kroah-Hartman
From: Jérôme Pouiller [ Upstream commit 26df933d9b83ea668304dc4ec641d52ea1fc4091 ] When the firmware rejects a frame (because station become asleep or disconnected), the frame is re-queued in mac80211. However, the re-queued frame was 8 bytes longer than the original one (the size of the ICV

[PATCH 5.11 028/775] arm64: dts: renesas: beacon: Fix audio-1.8V pin enable

2021-03-01 Thread Greg Kroah-Hartman
From: Adam Ford [ Upstream commit 5a5da0b758b327b727c5392d7f11e046e113a195 ] The fact the audio worked at all was a coincidence because the wrong gpio enable was used. Use the correct GPIO pin to ensure its operation. Fixes: a1d8a344f1ca ("arm64: dts: renesas: Introduce

[PATCH 5.10 172/663] evm: Fix memleak in init_desc

2021-03-01 Thread Greg Kroah-Hartman
From: Dinghao Liu [ Upstream commit ccf11dbaa07b328fa469415c362d33459c140a37 ] tmp_tfm is allocated, but not freed on subsequent kmalloc failure, which leads to a memory leak. Free tmp_tfm. Fixes: d46eb3699502b ("evm: crypto hash replaced by shash") Signed-off-by: Dinghao Liu

[PATCH 5.10 295/663] rtc: s5m: select REGMAP_I2C

2021-03-01 Thread Greg Kroah-Hartman
From: Bartosz Golaszewski [ Upstream commit 1f0cbda3b452b520c5f3794f8f0e410e8bc7386a ] The rtc-s5m uses the I2C regmap but doesn't select it in Kconfig so depending on the configuration the build may fail. Fix it. Fixes: 959df7778bbd ("rtc: Enable compile testing for Maxim and Samsung

[PATCH 5.10 352/663] powerpc/8xx: Fix software emulation interrupt

2021-03-01 Thread Greg Kroah-Hartman
From: Christophe Leroy [ Upstream commit 903178d0ce6bb30ef80a3604ab9ee2b57869fbc9 ] For unimplemented instructions or unimplemented SPRs, the 8xx triggers a "Software Emulation Exception" (0x1000). That interrupt doesn't set reason bits in SRR1 as the "Program Check Exception" does. Go through

[PATCH 5.4 306/340] media: smipcie: fix interrupt handling and IR timeout

2021-03-01 Thread Greg Kroah-Hartman
From: Sean Young commit 6532923237b427ed30cc7b4486f6f1ccdee3c647 upstream. After the first IR message, interrupts are no longer received. In addition, the code generates a timeout IR message of 10ms but sets the timeout value to 100ms, so no timeout was ever generated. Link:

<    8   9   10   11   12   13   14   15   16   17   >