[PATCH 5.4 50/50] PM / devfreq: Add missing locking while setting suspend_freq

2020-05-08 Thread Greg Kroah-Hartman
From: Marek Szyprowski commit e1e047ace8cef6d143f38c7d769753f133becbe6 upstream. Commit 2abb0d5268ae ("PM / devfreq: Lock devfreq in trans_stat_show") revealed a missing locking while calling devfreq_update_status() function during suspend/resume cycle. Code analysis revealed that

[PATCH 5.4 28/50] net: bcmgenet: suppress warnings on failed Rx SKB allocations

2020-05-08 Thread Greg Kroah-Hartman
From: Doug Berger [ Upstream commit ecaeceb8a8a145d93c7e136f170238229165348f ] The driver is designed to drop Rx packets and reclaim the buffers when an allocation fails, and the network interface needs to safely handle this packet loss. Therefore, an allocation failure of Rx SKBs is relatively

[PATCH 5.6 11/49] selftests: vm: Fix 64-bit test builds for powerpc64le

2020-05-08 Thread Greg Kroah-Hartman
From: Sandipan Das [ Upstream commit 963e3e9c9a127013eb4d3c82eb997068b1adbb89 ] Some tests are built only for 64-bit systems. This makes sure that these tests are built for both big and little endian variants of powerpc64. Fixes: 7549b3364201 ("selftests: vm: Build/Run 64bit tests only on

[PATCH 5.4 34/50] lib: devres: add a helper function for ioremap_uc

2020-05-08 Thread Greg Kroah-Hartman
From: Tuowen Zhao [ Upstream commit e537654b7039aacfe8ae629d49655c0e5692ad44 ] Implement a resource managed strongly uncachable ioremap function. Cc: # v4.19+ Tested-by: AceLan Kao Signed-off-by: Tuowen Zhao Acked-by: Mika Westerberg Acked-by: Andy Shevchenko Acked-by: Luis Chamberlain

[PATCH 5.6 10/49] selftests: vm: Do not override definition of ARCH

2020-05-08 Thread Greg Kroah-Hartman
From: Sandipan Das [ Upstream commit 24c3f063c57b2a8ae21b259bcfa7690e2eb56dd9 ] Independent builds of the vm selftests is currently broken because commit 7549b3364201 ("selftests: vm: Build/Run 64bit tests only on 64bit arch") overrides the value of ARCH with the machine name from uname. This

[PATCH 5.6 14/49] drm/bridge: anx6345: set correct BPC for display_info of connector

2020-05-08 Thread Greg Kroah-Hartman
From: Vasily Khoruzhick [ Upstream commit 1e8a6ce9186dbf342eebc07cf14cae5e82164e03 ] Some drivers (e.g. sun4i-drm) need this info to decide whether they need to enable dithering. Currently driver reports what panel supports and if panel supports 8 we don't get dithering enabled. Hardcode BPC

[PATCH 5.6 04/49] ASoC: topology: Check return value of soc_tplg_create_tlv

2020-05-08 Thread Greg Kroah-Hartman
From: Amadeusz Sławiński [ Upstream commit 482db55ae87f3749db05810a38b1d618dfd4407c ] Function soc_tplg_create_tlv can fail, so we should check if it succeded or not and proceed appropriately. Signed-off-by: Amadeusz Sławiński Reviewed-by: Ranjani Sridharan Reviewed-by: Pierre-Louis Bossart

[PATCH 5.6 36/49] lib/mpi: Fix building for powerpc with clang

2020-05-08 Thread Greg Kroah-Hartman
From: Nathan Chancellor [ Upstream commit 5990cdee689c6885b27c6d969a3d58b09002b0bc ] 0day reports over and over on an powerpc randconfig with clang: lib/mpi/generic_mpih-mul1.c:37:13: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with

Re: [PATCH] staging: iio: ad5933: rework probe to use devm_ function variants

2020-05-08 Thread Mark Brown
On Fri, May 08, 2020 at 01:43:07PM +0100, Jonathan Cameron wrote: > Dan Carpenter wrote: > > It feels like we should just make a devm_ version of regulator_enable(). > > Or potentially this is more complicated than it seems, but in that case > > probably adding devm_add_action_or_reset() is more

[PATCH 5.6 29/49] ASoC: rsnd: Fix "status check failed" spam for multi-SSI

2020-05-08 Thread Greg Kroah-Hartman
From: Matthias Blankertz [ Upstream commit 54cb6221688660670a2e430892d7f4e6370263b8 ] Fix the rsnd_ssi_stop function to skip disabling the individual SSIs of a multi-SSI setup, as the actual stop is performed by rsnd_ssiu_stop_gen2 - the same logic as in rsnd_ssi_start. The attempt to disable

[PATCH 5.6 33/49] tracing: Fix memory leaks in trace_events_hist.c

2020-05-08 Thread Greg Kroah-Hartman
From: Vamshi K Sthambamkadi [ Upstream commit 9da73974eb9c965dd9989befb593b8c8da9e4bdc ] kmemleak report 1: [<9092c50b>] kmem_cache_alloc_trace+0x138/0x270 [<05a2c9ed>] create_field_var+0xcf/0x180 [<528a2d68>] action_create+0xe2/0xc80 [<63f50b61>]

[PATCH 5.6 30/49] cifs: protect updating server->dstaddr with a spinlock

2020-05-08 Thread Greg Kroah-Hartman
From: Ronnie Sahlberg [ Upstream commit fada37f6f62995cc449b36ebba1220594bfe55fe ] We use a spinlock while we are reading and accessing the destination address for a server. We need to also use this spinlock to protect when we are modifying this address from reconn_set_ipaddr().

[PATCH 5.6 06/49] ASoC: topology: Check soc_tplg_add_route return value

2020-05-08 Thread Greg Kroah-Hartman
From: Amadeusz Sławiński [ Upstream commit 6856e887eae3efc0fe56899cb3f969fe063171c5 ] Function soc_tplg_add_route can propagate error code from callback, we should check its return value and handle fail in correct way. Signed-off-by: Amadeusz Sławiński Reviewed-by: Ranjani Sridharan

[PATCH 5.6 21/49] ASoC: codecs: hdac_hdmi: Fix incorrect use of list_for_each_entry

2020-05-08 Thread Greg Kroah-Hartman
From: Amadeusz Sławiński [ Upstream commit 326b509238171d37402dbe308e154cc234ed1960 ] If we don't find any pcm, pcm will point at address at an offset from the the list head and not a meaningful structure. Fix this by returning correct pcm if found and NULL if not. Found with coccinelle.

[PATCH 5.6 37/49] mac80211: sta_info: Add lockdep condition for RCU list usage

2020-05-08 Thread Greg Kroah-Hartman
From: Madhuparna Bhowmik [ Upstream commit 8ca47eb9f9e4e10e7e7fa695731a88941732c38d ] The function sta_info_get_by_idx() uses RCU list primitive. It is called with local->sta_mtx held from mac80211/cfg.c. Add lockdep expression to avoid any false positive RCU list warnings. Signed-off-by:

[PATCH 5.6 16/49] ASoC: sgtl5000: Fix VAG power-on handling

2020-05-08 Thread Greg Kroah-Hartman
From: Sebastian Reichel [ Upstream commit aa7812737f2877e192d57626cbe8825cc7cf6de9 ] As mentioned slightly out of patch context in the code, there is no reset routine for the chip. On boards where the chip is supplied by a fixed regulator, it might not even be resetted during (e.g. watchdog)

[PATCH 5.6 42/49] drm/amdgpu: Fix oops when pp_funcs is unset in ACPI event

2020-05-08 Thread Greg Kroah-Hartman
From: Aaron Ma commit 5932d260a8d85a103bd6c504fbb85ff58b156bf9 upstream. On ARCTURUS and RENOIR, powerplay is not supported yet. When plug in or unplug power jack, ACPI event will issue. Then kernel NULL pointer BUG will be triggered. Check for NULL pointers before calling. Signed-off-by:

[PATCH 5.6 39/49] net: systemport: suppress warnings on failed Rx SKB allocations

2020-05-08 Thread Greg Kroah-Hartman
From: Doug Berger [ Upstream commit 3554e54a46125030c534820c297ed7f6c3907e24 ] The driver is designed to drop Rx packets and reclaim the buffers when an allocation fails, and the network interface needs to safely handle this packet loss. Therefore, an allocation failure of Rx SKBs is relatively

[PATCH 5.6 28/49] ASoC: rsnd: Dont treat master SSI in multi SSI setup as parent

2020-05-08 Thread Greg Kroah-Hartman
From: Matthias Blankertz [ Upstream commit 0c258657ddfe81b4fc0183378d800c97ba0b7cdd ] The master SSI of a multi-SSI setup was attached both to the RSND_MOD_SSI slot and the RSND_MOD_SSIP slot of the rsnd_dai_stream. This is not correct wrt. the meaning of being "parent" in the rest of the SSI

[PATCH 5.6 27/49] net: stmmac: Fix sub-second increment

2020-05-08 Thread Greg Kroah-Hartman
From: Julien Beraud [ Upstream commit 91a2559c1dc5b0f7e1256d42b1508935e8eabfbf ] In fine adjustement mode, which is the current default, the sub-second increment register is the number of nanoseconds that will be added to the clock when the accumulator overflows. At each clock cycle,

[PATCH 5.6 48/49] cgroup, netclassid: remove double cond_resched

2020-05-08 Thread Greg Kroah-Hartman
From: Jiri Slaby commit 526f3d96b8f83b1b13d73bd0b5c79cc2c487ec8e upstream. Commit 018d26fcd12a ("cgroup, netclassid: periodically release file_lock on classid") added a second cond_resched to write_classid indirectly by update_classid_task. Remove the one in write_classid. Signed-off-by: Jiri

[PATCH 5.6 25/49] wimax/i2400m: Fix potential urb refcnt leak

2020-05-08 Thread Greg Kroah-Hartman
From: Xiyu Yang [ Upstream commit 7717cbec172c3554d470023b4020d5781961187e ] i2400mu_bus_bm_wait_for_ack() invokes usb_get_urb(), which increases the refcount of the "notif_urb". When i2400mu_bus_bm_wait_for_ack() returns, local variable "notif_urb" becomes invalid, so the refcount should be

[PATCH 5.6 26/49] net: stmmac: fix enabling socfpgas ptp_ref_clock

2020-05-08 Thread Greg Kroah-Hartman
From: Julien Beraud [ Upstream commit 15ce30609d1e88d42fb1cd948f453e6d5f188249 ] There are 2 registers to write to enable a ptp ref clock coming from the fpga. One that enables the usage of the clock from the fpga for emac0 and emac1 as a ptp ref clock, and the other to allow signals from the

[PATCH 5.6 45/49] platform/x86: GPD pocket fan: Fix error message when temp-limits are out of range

2020-05-08 Thread Greg Kroah-Hartman
From: Hans de Goede commit 1d6f8c5bac93cceb2d4ac8e6331050652004d802 upstream. Commit 1f27dbd8265d ("platform/x86: GPD pocket fan: Allow somewhat lower/higher temperature limits") changed the module-param sanity check to accept temperature limits between 20 and 90 degrees celcius. But the error

[PATCH 5.6 22/49] remoteproc: qcom_q6v5_mss: fix a bug in q6v5_probe()

2020-05-08 Thread Greg Kroah-Hartman
From: Alex Elder [ Upstream commit 13c060b50a341dd60303e5264d12108b5747f200 ] If looking up the DT "firmware-name" property fails in q6v6_probe(), the function returns without freeing the remoteproc structure that has been allocated. Fix this by jumping to the free_rproc label, which takes

[PATCH 5.6 47/49] mac80211: add ieee80211_is_any_nullfunc()

2020-05-08 Thread Greg Kroah-Hartman
From: Thomas Pedersen commit 30b2f0be23fb40e58d0ad2caf8702c2a44cda2e1 upstream. commit 08a5bdde3812 ("mac80211: consider QoS Null frames for STA_NULLFUNC_ACKED") Fixed a bug where we failed to take into account a nullfunc frame can be either non-QoS or QoS. It turns out there is at least one

[PATCH 5.6 44/49] x86/kvm: fix a missing-prototypes "vmread_error"

2020-05-08 Thread Greg Kroah-Hartman
From: Qian Cai commit 514ccc194971d0649e4e7ec8a9b3a6e33561d7bf upstream. The commit 842f4be95899 ("KVM: VMX: Add a trampoline to fix VMREAD error handling") removed the declaration of vmread_error() causes a W=1 build failure with KVM_WERROR=y. Fix it by adding it back.

[PATCH 5.6 49/49] mm/mremap: Add comment explaining the untagging behaviour of mremap()

2020-05-08 Thread Greg Kroah-Hartman
From: Will Deacon commit b2a84de2a2deb76a6a51609845341f508c518c03 upstream. Commit dcde237319e6 ("mm: Avoid creating virtual address aliases in brk()/mmap()/mremap()") changed mremap() so that only the 'old' address is untagged, leaving the 'new' address in the form it was passed from

[PATCH 5.6 24/49] drm/amdgpu: Correctly initialize thermal controller for GPUs with Powerplay table v0 (e.g Hawaii)

2020-05-08 Thread Greg Kroah-Hartman
From: Sandeep Raghuraman [ Upstream commit bbc25dadc7ed19f9d6b2e30980f0eb4c741bb8bf ] Initialize thermal controller fields in the PowerPlay table for Hawaii GPUs, so that fan speeds are reported. Signed-off-by: Sandeep Raghuraman Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin ---

[PATCH 5.6 19/49] ASoC: rsnd: Fix parent SSI start/stop in multi-SSI mode

2020-05-08 Thread Greg Kroah-Hartman
From: Matthias Blankertz [ Upstream commit a09fb3f28a60ba3e928a1fa94b0456780800299d ] The parent SSI of a multi-SSI setup must be fully setup, started and stopped since it is also part of the playback/capture setup. So only skip the SSI (as per commit 203cdf51f288 ("ASoC: rsnd: SSI parent cares

[PATCH 5.6 46/49] ACPI: PM: s2idle: Fix comment in acpi_s2idle_prepare_late()

2020-05-08 Thread Greg Kroah-Hartman
From: Rafael J. Wysocki commit 243a98894dc525ad2fbeb608722fcb682be3186d upstream. Fix a comment in acpi_s2idle_prepare_late() that has become outdated after commit f0ac20c3f613 ("ACPI: EC: Fix flushing of pending work"). Fixes: f0ac20c3f613 ("ACPI: EC: Fix flushing of pending work")

[PATCH 5.6 23/49] drm/amd/powerplay: fix resume failed as smu table initialize early exit

2020-05-08 Thread Greg Kroah-Hartman
From: Prike Liang [ Upstream commit 45a5e639548c459a5accebad340078e4e6e0e512 ] When the amdgpu in the suspend/resume loop need notify the dpm disabled, otherwise the smu table will be uninitialize and result in resume failed. Signed-off-by: Prike Liang Tested-by: Mengbing Wang Reviewed-by:

[PATCH 5.6 43/49] ALSA: hda: Match both PCI ID and SSID for driver blacklist

2020-05-08 Thread Greg Kroah-Hartman
From: Takashi Iwai commit 977dfef40c8996b69afe23a9094d184049efb7bb upstream. The commit 3c6fd1f07ed0 ("ALSA: hda: Add driver blacklist") added a new blacklist for the devices that are known to have empty codecs, and one of the entries was ASUS ROG Zenith II (PCI SSID 1043:874f). However, it

[PATCH 5.6 38/49] net: bcmgenet: suppress warnings on failed Rx SKB allocations

2020-05-08 Thread Greg Kroah-Hartman
From: Doug Berger [ Upstream commit ecaeceb8a8a145d93c7e136f170238229165348f ] The driver is designed to drop Rx packets and reclaim the buffers when an allocation fails, and the network interface needs to safely handle this packet loss. Therefore, an allocation failure of Rx SKBs is relatively

[PATCH 5.6 34/49] ftrace: Fix memory leak caused by not freeing entry in unregister_ftrace_direct()

2020-05-08 Thread Greg Kroah-Hartman
From: Steven Rostedt (VMware) [ Upstream commit 353da87921a5ec654e7e9024e083f099f1b33c97 ] kmemleak reported the following: unreferenced object 0x90d47127a920 (size 32): comm "modprobe", pid 1766, jiffies 4294792031 (age 162.568s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00

[PATCH 5.6 40/49] tools/runqslower: Ensure own vmlinux.h is picked up first

2020-05-08 Thread Greg Kroah-Hartman
From: Andrii Nakryiko [ Upstream commit dfc55ace9939e1e8703ad37ddbba41aaa31cc0cb ] Reorder include paths to ensure that runqslower sources are picking up vmlinux.h, generated by runqslower's own Makefile. When runqslower is built from selftests/bpf, due to current -I$(BPF_INCLUDE) -I$(OUTPUT)

[PATCH 5.6 41/49] sctp: Fix SHUTDOWN CTSN Ack in the peer restart case

2020-05-08 Thread Greg Kroah-Hartman
From: Jere Leppänen commit 12dfd78e3a74825e6f0bc8df7ef9f938fbc6bfe3 upstream. When starting shutdown in sctp_sf_do_dupcook_a(), get the value for SHUTDOWN Cumulative TSN Ack from the new association, which is reconstructed from the cookie, instead of the old association, which the peer doesn't

[PATCH 5.6 35/49] net: phy: bcm84881: clear settings on link down

2020-05-08 Thread Greg Kroah-Hartman
From: Russell King [ Upstream commit 796a8fa28980050bf1995617f0876484f3dc1026 ] Clear the link partner advertisement, speed, duplex and pause when the link goes down, as other phylib drivers do. This avoids the stale link partner, speed and duplex settings being reported via ethtool.

[PATCH 5.6 09/49] SUNRPC/cache: Fix unsafe traverse caused double-free in cache_purge

2020-05-08 Thread Greg Kroah-Hartman
From: Yihao Wu [ Upstream commit 43e33924c38e8faeb0c12035481cb150e602e39d ] Deleting list entry within hlist_for_each_entry_safe is not safe unless next pointer (tmp) is protected too. It's not, because once hash_lock is released, cache_clean may delete the entry that tmp points to. Then

[PATCH 5.6 20/49] ASoC: rsnd: Fix HDMI channel mapping for multi-SSI mode

2020-05-08 Thread Greg Kroah-Hartman
From: Matthias Blankertz [ Upstream commit b94e164759b82d0c1c80d4b1c8f12c9bee83f11d ] The HDMI?_SEL register maps up to four stereo SSI data lanes onto the sdata[0..3] inputs of the HDMI output block. The upper half of the register contains four blocks of 4 bits, with the most significant

[PATCH 5.6 02/49] drm/bridge: analogix_dp: Split bind() into probe() and real bind()

2020-05-08 Thread Greg Kroah-Hartman
From: Marek Szyprowski [ Upstream commit 83a196773b8bc6702f49df1eddc848180e350340 ] Analogix_dp driver acquires all its resources in the ->bind() callback, what is a bit against the component driver based approach, where the driver initialization is split into a probe(), where all resources are

[PATCH 5.6 00/49] 5.6.12-rc1 review

2020-05-08 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.6.12 release. There are 49 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 Sun, 10 May 2020 12:29:44 +. Anything

[PATCH 5.6 05/49] ASoC: topology: Check return value of soc_tplg_*_create

2020-05-08 Thread Greg Kroah-Hartman
From: Amadeusz Sławiński [ Upstream commit 2ae548f30d7f6973388fc3769bb3c2f6fd13652b ] Functions soc_tplg_denum_create, soc_tplg_dmixer_create, soc_tplg_dbytes_create can fail, so their return values should be checked and error should be propagated. Signed-off-by: Amadeusz Sławiński

[PATCH 5.6 31/49] scripts/config: allow colons in option strings for sed

2020-05-08 Thread Greg Kroah-Hartman
From: Jeremie Francois (on alpha) [ Upstream commit e461bc9f9ab105637b86065d24b0b83f182d477c ] Sed broke on some strings as it used colon as a separator. I made it more robust by using \001, which is legit POSIX AFAIK. E.g. ./config --set-str CONFIG_USBNET_DEVADDR "de:ad:be:ef:00:01" failed

[PATCH 5.6 07/49] ASoC: topology: Check return value of pcm_new_ver

2020-05-08 Thread Greg Kroah-Hartman
From: Amadeusz Sławiński [ Upstream commit b3677fc3d68dd942c92de52f0bd9dd8b472a40e6 ] Function pcm_new_ver can fail, so we should check it's return value and handle possible error. Signed-off-by: Amadeusz Sławiński Reviewed-by: Ranjani Sridharan Reviewed-by: Pierre-Louis Bossart Link:

[PATCH 5.6 32/49] cifs: do not share tcons with DFS

2020-05-08 Thread Greg Kroah-Hartman
From: Paulo Alcantara [ Upstream commit 65303de829dd6d291a4947c1a31de31896f8a060 ] This disables tcon re-use for DFS shares. tcon->dfs_path stores the path that the tcon should connect to when doing failing over. If that tcon is used multiple times e.g. 2 mounts using it with different

[PATCH 5.6 08/49] ASoC: topology: Check return value of soc_tplg_dai_config

2020-05-08 Thread Greg Kroah-Hartman
From: Amadeusz Sławiński [ Upstream commit dd8e871d4e560eeb8d22af82dde91457ad835a63 ] Function soc_tplg_dai_config can fail, check for and handle possible failure. Signed-off-by: Amadeusz Sławiński Reviewed-by: Ranjani Sridharan Reviewed-by: Pierre-Louis Bossart Link:

[PATCH 5.4 32/50] drm/amdgpu: Fix oops when pp_funcs is unset in ACPI event

2020-05-08 Thread Greg Kroah-Hartman
From: Aaron Ma commit 5932d260a8d85a103bd6c504fbb85ff58b156bf9 upstream. On ARCTURUS and RENOIR, powerplay is not supported yet. When plug in or unplug power jack, ACPI event will issue. Then kernel NULL pointer BUG will be triggered. Check for NULL pointers before calling. Signed-off-by:

[PATCH 5.6 01/49] vhost: vsock: kick send_pkt worker once device is started

2020-05-08 Thread Greg Kroah-Hartman
From: Jia He commit 0b841030625cde5f784dd62aec72d6a766faae70 upstream. Ning Bo reported an abnormal 2-second gap when booting Kata container [1]. The unconditional timeout was caused by VSOCK_DEFAULT_CONNECT_TIMEOUT of connecting from the client side. The vhost vsock client tries to connect an

[PATCH 5.6 18/49] usb: dwc3: gadget: Properly set maxpacket limit

2020-05-08 Thread Greg Kroah-Hartman
From: Thinh Nguyen [ Upstream commit d94ea5319813658ad5861d161ae16a194c2abf88 ] Currently the calculation of max packet size limit for IN endpoints is too restrictive. This prevents a matching of a capable hardware endpoint during configuration. Below is the minimum recommended HW configuration

[PATCH 5.4 33/50] Revert "software node: Simplify software_node_release() function"

2020-05-08 Thread Greg Kroah-Hartman
From: Brendan Higgins commit 7589238a8cf37331607c3222a64ac3140b29532d upstream. This reverts commit 3df85a1ae51f6b256982fe9d17c2dc5bfb4cc402. The reverted commit says "It's possible to release the node ID immediately when fwnode_remove_software_node() is called, no need to wait for

[PATCH 5.4 25/50] tracing: Fix memory leaks in trace_events_hist.c

2020-05-08 Thread Greg Kroah-Hartman
From: Vamshi K Sthambamkadi [ Upstream commit 9da73974eb9c965dd9989befb593b8c8da9e4bdc ] kmemleak report 1: [<9092c50b>] kmem_cache_alloc_trace+0x138/0x270 [<05a2c9ed>] create_field_var+0xcf/0x180 [<528a2d68>] action_create+0xe2/0xc80 [<63f50b61>]

[PATCH 5.6 13/49] selftests/ipc: Fix test failure seen after initial test run

2020-05-08 Thread Greg Kroah-Hartman
From: Tyler Hicks [ Upstream commit b87080eab4c1377706c113fc9c0157f19ea8fed1 ] After successfully running the IPC msgque test once, subsequent runs result in a test failure: $ sudo ./run_kselftest.sh TAP version 13 1..1 # selftests: ipc: msgque # Failed to get stats for IPC queue

[PATCH 5.6 12/49] Revert "Kernel selftests: tpm2: check for tpm support"

2020-05-08 Thread Greg Kroah-Hartman
From: Jarkko Sakkinen [ Upstream commit aaa2d92efe1f972567f1691b423ab8dc606ab3a9 ] This reverts commit b32694cd0724d4ceca2c62cc7c3d3a8d1ffa11fc. The original comment was neither reviewed nor tested. Thus, this the *only* possible action to take. Cc: Nikita Sobolev Signed-off-by: Jarkko

[PATCH 5.6 03/49] ASoC: topology: Add missing memory checks

2020-05-08 Thread Greg Kroah-Hartman
From: Amadeusz Sławiński [ Upstream commit abc3caac24501008465fdb55c5e89e16d58d5a3d ] kstrdup is an allocation function and it can fail, so its return value should be checked and handled appropriately. In order to check all cases, we need to modify set_stream_info to return a value, so check

[PATCH 5.4 49/50] udp: document udp_rcv_segment special case for looped packets

2020-05-08 Thread Greg Kroah-Hartman
From: Willem de Bruijn commit d0208bf4da97f76237300afb83c097de25645de6 upstream. Commit 6cd021a58c18a ("udp: segment looped gso packets correctly") fixes an issue with rare udp gso multicast packets looped onto the receive path. The stable backport makes the narrowest change to target only

[PATCH 5.4 47/50] Revert "drm/amd/display: setting the DIG_MODE to the correct value."

2020-05-08 Thread Greg Kroah-Hartman
From: Zhan Liu commit b73b7f48895a6a944a76a2d8cdd7feee72bb1f0b upstream. This reverts commit 967a3b85bac91c55eff740e61bf270c2732f48b2. Reason for revert: Root cause of this issue is found. The workaround is not needed anymore. Signed-off-by: Zhan Liu Reviewed-by: Hersen Wu Signed-off-by:

[PATCH 5.4 45/50] libbpf: Fix readelf output parsing for Fedora

2020-05-08 Thread Greg Kroah-Hartman
From: Thadeu Lima de Souza Cascardo commit aa915931ac3e53ccf371308e6750da510e3591dd upstream. Fedora binutils has been patched to show "other info" for a symbol at the end of the line. This was done in order to support unmaintained scripts that would break with the extra info. [1] [1]

[PATCH 5.6 15/49] scsi: sg: add sg_remove_request in sg_write

2020-05-08 Thread Greg Kroah-Hartman
From: Wu Bo [ Upstream commit 83c6f2390040f188cc25b270b4befeb5628c1aee ] If the __copy_from_user function failed we need to call sg_remove_request in sg_write. Link: https://lore.kernel.org/r/610618d9-e983-fd56-ed0f-639428343...@huawei.com Acked-by: Douglas Gilbert Signed-off-by: Wu Bo

[PATCH 5.6 17/49] ASoC: topology: Fix endianness issue

2020-05-08 Thread Greg Kroah-Hartman
From: Amadeusz Sławiński [ Upstream commit 26d87881590fd55ccdd8f829498d7b3033f81990 ] As done in already existing cases, we should use le32_to_cpu macro while accessing hdr->magic. Found with sparse. Signed-off-by: Amadeusz Sławiński Link:

[PATCH 5.4 46/50] mm/mremap: Add comment explaining the untagging behaviour of mremap()

2020-05-08 Thread Greg Kroah-Hartman
From: Will Deacon commit b2a84de2a2deb76a6a51609845341f508c518c03 upstream. Commit dcde237319e6 ("mm: Avoid creating virtual address aliases in brk()/mmap()/mremap()") changed mremap() so that only the 'old' address is untagged, leaving the 'new' address in the form it was passed from

[PATCH 5.4 44/50] cgroup, netclassid: remove double cond_resched

2020-05-08 Thread Greg Kroah-Hartman
From: Jiri Slaby commit 526f3d96b8f83b1b13d73bd0b5c79cc2c487ec8e upstream. Commit 018d26fcd12a ("cgroup, netclassid: periodically release file_lock on classid") added a second cond_resched to write_classid indirectly by update_classid_task. Remove the one in write_classid. Signed-off-by: Jiri

[PATCH 5.4 29/50] net: systemport: suppress warnings on failed Rx SKB allocations

2020-05-08 Thread Greg Kroah-Hartman
From: Doug Berger [ Upstream commit 3554e54a46125030c534820c297ed7f6c3907e24 ] The driver is designed to drop Rx packets and reclaim the buffers when an allocation fails, and the network interface needs to safely handle this packet loss. Therefore, an allocation failure of Rx SKBs is relatively

[PATCH 5.4 40/50] dma-direct: exclude dma_direct_map_resource from the min_low_pfn check

2020-05-08 Thread Greg Kroah-Hartman
From: Christoph Hellwig commit 68a33b1794665ba8a1d1ef1d3bfcc7c587d380a6 upstream. The valid memory address check in dma_capable only makes sense when mapping normal memory, not when using dma_map_resource to map a device resource. Add a new boolean argument to dma_capable to exclude that check

[PATCH 5.4 09/50] ASoC: sgtl5000: Fix VAG power-on handling

2020-05-08 Thread Greg Kroah-Hartman
From: Sebastian Reichel [ Upstream commit aa7812737f2877e192d57626cbe8825cc7cf6de9 ] As mentioned slightly out of patch context in the code, there is no reset routine for the chip. On boards where the chip is supplied by a fixed regulator, it might not even be resetted during (e.g. watchdog)

[PATCH 5.4 04/50] ASoC: topology: Check return value of soc_tplg_*_create

2020-05-08 Thread Greg Kroah-Hartman
From: Amadeusz Sławiński [ Upstream commit 2ae548f30d7f6973388fc3769bb3c2f6fd13652b ] Functions soc_tplg_denum_create, soc_tplg_dmixer_create, soc_tplg_dbytes_create can fail, so their return values should be checked and error should be propagated. Signed-off-by: Amadeusz Sławiński

[PATCH 5.4 08/50] selftests/ipc: Fix test failure seen after initial test run

2020-05-08 Thread Greg Kroah-Hartman
From: Tyler Hicks [ Upstream commit b87080eab4c1377706c113fc9c0157f19ea8fed1 ] After successfully running the IPC msgque test once, subsequent runs result in a test failure: $ sudo ./run_kselftest.sh TAP version 13 1..1 # selftests: ipc: msgque # Failed to get stats for IPC queue

[PATCH 5.4 36/50] hexagon: clean up ioremap

2020-05-08 Thread Greg Kroah-Hartman
From: Christoph Hellwig commit ac32292c8552f7e8517be184e65dd09786e991f9 upstream. Use ioremap as the main implemented function, and defined ioremap_nocache to it as a deprecated alias. Signed-off-by: Christoph Hellwig Signed-off-by: Greg Kroah-Hartman --- arch/hexagon/include/asm/io.h

[PATCH 5.4 41/50] platform/x86: GPD pocket fan: Fix error message when temp-limits are out of range

2020-05-08 Thread Greg Kroah-Hartman
From: Hans de Goede commit 1d6f8c5bac93cceb2d4ac8e6331050652004d802 upstream. Commit 1f27dbd8265d ("platform/x86: GPD pocket fan: Allow somewhat lower/higher temperature limits") changed the module-param sanity check to accept temperature limits between 20 and 90 degrees celcius. But the error

[PATCH 5.4 05/50] ASoC: topology: Check soc_tplg_add_route return value

2020-05-08 Thread Greg Kroah-Hartman
From: Amadeusz Sławiński [ Upstream commit 6856e887eae3efc0fe56899cb3f969fe063171c5 ] Function soc_tplg_add_route can propagate error code from callback, we should check its return value and handle fail in correct way. Signed-off-by: Amadeusz Sławiński Reviewed-by: Ranjani Sridharan

[PATCH 5.4 07/50] ASoC: topology: Check return value of soc_tplg_dai_config

2020-05-08 Thread Greg Kroah-Hartman
From: Amadeusz Sławiński [ Upstream commit dd8e871d4e560eeb8d22af82dde91457ad835a63 ] Function soc_tplg_dai_config can fail, check for and handle possible failure. Signed-off-by: Amadeusz Sławiński Reviewed-by: Ranjani Sridharan Reviewed-by: Pierre-Louis Bossart Link:

[PATCH 5.4 18/50] net: stmmac: fix enabling socfpgas ptp_ref_clock

2020-05-08 Thread Greg Kroah-Hartman
From: Julien Beraud [ Upstream commit 15ce30609d1e88d42fb1cd948f453e6d5f188249 ] There are 2 registers to write to enable a ptp ref clock coming from the fpga. One that enables the usage of the clock from the fpga for emac0 and emac1 as a ptp ref clock, and the other to allow signals from the

[PATCH 5.4 10/50] ASoC: topology: Fix endianness issue

2020-05-08 Thread Greg Kroah-Hartman
From: Amadeusz Sławiński [ Upstream commit 26d87881590fd55ccdd8f829498d7b3033f81990 ] As done in already existing cases, we should use le32_to_cpu macro while accessing hdr->magic. Found with sparse. Signed-off-by: Amadeusz Sławiński Link:

[PATCH 5.4 16/50] drm/amdgpu: Correctly initialize thermal controller for GPUs with Powerplay table v0 (e.g Hawaii)

2020-05-08 Thread Greg Kroah-Hartman
From: Sandeep Raghuraman [ Upstream commit bbc25dadc7ed19f9d6b2e30980f0eb4c741bb8bf ] Initialize thermal controller fields in the PowerPlay table for Hawaii GPUs, so that fan speeds are reported. Signed-off-by: Sandeep Raghuraman Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin ---

[PATCH 4.19 08/32] ASoC: rsnd: Fix HDMI channel mapping for multi-SSI mode

2020-05-08 Thread Greg Kroah-Hartman
From: Matthias Blankertz [ Upstream commit b94e164759b82d0c1c80d4b1c8f12c9bee83f11d ] The HDMI?_SEL register maps up to four stereo SSI data lanes onto the sdata[0..3] inputs of the HDMI output block. The upper half of the register contains four blocks of 4 bits, with the most significant

[PATCH 5.4 03/50] ASoC: topology: Check return value of soc_tplg_create_tlv

2020-05-08 Thread Greg Kroah-Hartman
From: Amadeusz Sławiński [ Upstream commit 482db55ae87f3749db05810a38b1d618dfd4407c ] Function soc_tplg_create_tlv can fail, so we should check if it succeded or not and proceed appropriately. Signed-off-by: Amadeusz Sławiński Reviewed-by: Ranjani Sridharan Reviewed-by: Pierre-Louis Bossart

[PATCH 4.19 04/32] selftests/ipc: Fix test failure seen after initial test run

2020-05-08 Thread Greg Kroah-Hartman
From: Tyler Hicks [ Upstream commit b87080eab4c1377706c113fc9c0157f19ea8fed1 ] After successfully running the IPC msgque test once, subsequent runs result in a test failure: $ sudo ./run_kselftest.sh TAP version 13 1..1 # selftests: ipc: msgque # Failed to get stats for IPC queue

[PATCH 5.4 23/50] scripts/config: allow colons in option strings for sed

2020-05-08 Thread Greg Kroah-Hartman
From: Jeremie Francois (on alpha) [ Upstream commit e461bc9f9ab105637b86065d24b0b83f182d477c ] Sed broke on some strings as it used colon as a separator. I made it more robust by using \001, which is legit POSIX AFAIK. E.g. ./config --set-str CONFIG_USBNET_DEVADDR "de:ad:be:ef:00:01" failed

[PATCH 4.19 27/32] hexagon: define ioremap_uc

2020-05-08 Thread Greg Kroah-Hartman
From: Nick Desaulniers commit 7312b70699252074d753c5005fc67266c547bbe3 upstream. Similar to commit 38e45d81d14e ("sparc64: implement ioremap_uc") define ioremap_uc for hexagon to avoid errors from -Wimplicit-function-definition. Link:

[PATCH 5.4 14/50] ASoC: codecs: hdac_hdmi: Fix incorrect use of list_for_each_entry

2020-05-08 Thread Greg Kroah-Hartman
From: Amadeusz Sławiński [ Upstream commit 326b509238171d37402dbe308e154cc234ed1960 ] If we don't find any pcm, pcm will point at address at an offset from the the list head and not a meaningful structure. Fix this by returning correct pcm if found and NULL if not. Found with coccinelle.

[PATCH 4.19 32/32] drm/atomic: Take the atomic toys away from X

2020-05-08 Thread Greg Kroah-Hartman
From: Daniel Vetter commit 26b1d3b527e7bf3e24b814d617866ac5199ce68d upstream. The -modesetting ddx has a totally broken idea of how atomic works: - doesn't disable old connectors, assuming they get auto-disable like with the legacy setcrtc - assumes ASYNC_FLIP is wired through for the atomic

[PATCH 5.4 20/50] ASoC: rsnd: Dont treat master SSI in multi SSI setup as parent

2020-05-08 Thread Greg Kroah-Hartman
From: Matthias Blankertz [ Upstream commit 0c258657ddfe81b4fc0183378d800c97ba0b7cdd ] The master SSI of a multi-SSI setup was attached both to the RSND_MOD_SSI slot and the RSND_MOD_SSIP slot of the rsnd_dai_stream. This is not correct wrt. the meaning of being "parent" in the rest of the SSI

[PATCH 5.4 15/50] remoteproc: qcom_q6v5_mss: fix a bug in q6v5_probe()

2020-05-08 Thread Greg Kroah-Hartman
From: Alex Elder [ Upstream commit 13c060b50a341dd60303e5264d12108b5747f200 ] If looking up the DT "firmware-name" property fails in q6v6_probe(), the function returns without freeing the remoteproc structure that has been allocated. Fix this by jumping to the free_rproc label, which takes

[PATCH 5.4 17/50] wimax/i2400m: Fix potential urb refcnt leak

2020-05-08 Thread Greg Kroah-Hartman
From: Xiyu Yang [ Upstream commit 7717cbec172c3554d470023b4020d5781961187e ] i2400mu_bus_bm_wait_for_ack() invokes usb_get_urb(), which increases the refcount of the "notif_urb". When i2400mu_bus_bm_wait_for_ack() returns, local variable "notif_urb" becomes invalid, so the refcount should be

[PATCH 4.19 09/32] ASoC: codecs: hdac_hdmi: Fix incorrect use of list_for_each_entry

2020-05-08 Thread Greg Kroah-Hartman
From: Amadeusz Sławiński [ Upstream commit 326b509238171d37402dbe308e154cc234ed1960 ] If we don't find any pcm, pcm will point at address at an offset from the the list head and not a meaningful structure. Fix this by returning correct pcm if found and NULL if not. Found with coccinelle.

[PATCH 4.19 10/32] drm/amdgpu: Correctly initialize thermal controller for GPUs with Powerplay table v0 (e.g Hawaii)

2020-05-08 Thread Greg Kroah-Hartman
From: Sandeep Raghuraman [ Upstream commit bbc25dadc7ed19f9d6b2e30980f0eb4c741bb8bf ] Initialize thermal controller fields in the PowerPlay table for Hawaii GPUs, so that fan speeds are reported. Signed-off-by: Sandeep Raghuraman Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin ---

[PATCH 4.19 14/32] ASoC: rsnd: Dont treat master SSI in multi SSI setup as parent

2020-05-08 Thread Greg Kroah-Hartman
From: Matthias Blankertz [ Upstream commit 0c258657ddfe81b4fc0183378d800c97ba0b7cdd ] The master SSI of a multi-SSI setup was attached both to the RSND_MOD_SSI slot and the RSND_MOD_SSIP slot of the rsnd_dai_stream. This is not correct wrt. the meaning of being "parent" in the rest of the SSI

[PATCH 4.19 11/32] wimax/i2400m: Fix potential urb refcnt leak

2020-05-08 Thread Greg Kroah-Hartman
From: Xiyu Yang [ Upstream commit 7717cbec172c3554d470023b4020d5781961187e ] i2400mu_bus_bm_wait_for_ack() invokes usb_get_urb(), which increases the refcount of the "notif_urb". When i2400mu_bus_bm_wait_for_ack() returns, local variable "notif_urb" becomes invalid, so the refcount should be

[PATCH 4.19 15/32] ASoC: rsnd: Fix "status check failed" spam for multi-SSI

2020-05-08 Thread Greg Kroah-Hartman
From: Matthias Blankertz [ Upstream commit 54cb6221688660670a2e430892d7f4e6370263b8 ] Fix the rsnd_ssi_stop function to skip disabling the individual SSIs of a multi-SSI setup, as the actual stop is performed by rsnd_ssiu_stop_gen2 - the same logic as in rsnd_ssi_start. The attempt to disable

[PATCH 4.19 16/32] cifs: protect updating server->dstaddr with a spinlock

2020-05-08 Thread Greg Kroah-Hartman
From: Ronnie Sahlberg [ Upstream commit fada37f6f62995cc449b36ebba1220594bfe55fe ] We use a spinlock while we are reading and accessing the destination address for a server. We need to also use this spinlock to protect when we are modifying this address from reconn_set_ipaddr().

[PATCH 4.19 13/32] net: stmmac: Fix sub-second increment

2020-05-08 Thread Greg Kroah-Hartman
From: Julien Beraud [ Upstream commit 91a2559c1dc5b0f7e1256d42b1508935e8eabfbf ] In fine adjustement mode, which is the current default, the sub-second increment register is the number of nanoseconds that will be added to the clock when the accumulator overflows. At each clock cycle,

[PATCH 4.14 22/22] cgroup, netclassid: remove double cond_resched

2020-05-08 Thread Greg Kroah-Hartman
From: Jiri Slaby commit 526f3d96b8f83b1b13d73bd0b5c79cc2c487ec8e upstream. Commit 018d26fcd12a ("cgroup, netclassid: periodically release file_lock on classid") added a second cond_resched to write_classid indirectly by update_classid_task. Remove the one in write_classid. Signed-off-by: Jiri

[PATCH 4.19 21/32] net: systemport: suppress warnings on failed Rx SKB allocations

2020-05-08 Thread Greg Kroah-Hartman
From: Doug Berger [ Upstream commit 3554e54a46125030c534820c297ed7f6c3907e24 ] The driver is designed to drop Rx packets and reclaim the buffers when an allocation fails, and the network interface needs to safely handle this packet loss. Therefore, an allocation failure of Rx SKBs is relatively

[PATCH 4.19 19/32] lib/mpi: Fix building for powerpc with clang

2020-05-08 Thread Greg Kroah-Hartman
From: Nathan Chancellor [ Upstream commit 5990cdee689c6885b27c6d969a3d58b09002b0bc ] 0day reports over and over on an powerpc randconfig with clang: lib/mpi/generic_mpih-mul1.c:37:13: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with

[PATCH 4.14 06/22] ASoC: rsnd: Fix HDMI channel mapping for multi-SSI mode

2020-05-08 Thread Greg Kroah-Hartman
From: Matthias Blankertz [ Upstream commit b94e164759b82d0c1c80d4b1c8f12c9bee83f11d ] The HDMI?_SEL register maps up to four stereo SSI data lanes onto the sdata[0..3] inputs of the HDMI output block. The upper half of the register contains four blocks of 4 bits, with the most significant

[PATCH 4.14 21/22] mac80211: add ieee80211_is_any_nullfunc()

2020-05-08 Thread Greg Kroah-Hartman
From: Thomas Pedersen commit 30b2f0be23fb40e58d0ad2caf8702c2a44cda2e1 upstream. commit 08a5bdde3812 ("mac80211: consider QoS Null frames for STA_NULLFUNC_ACKED") Fixed a bug where we failed to take into account a nullfunc frame can be either non-QoS or QoS. It turns out there is at least one

[PATCH 4.14 00/22] 4.14.180-rc1 review

2020-05-08 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.14.180 release. There are 22 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 Sun, 10 May 2020 12:29:44 +. Anything

[PATCH 4.19 22/32] sctp: Fix SHUTDOWN CTSN Ack in the peer restart case

2020-05-08 Thread Greg Kroah-Hartman
From: Jere Leppänen commit 12dfd78e3a74825e6f0bc8df7ef9f938fbc6bfe3 upstream. When starting shutdown in sctp_sf_do_dupcook_a(), get the value for SHUTDOWN Cumulative TSN Ack from the new association, which is reconstructed from the cookie, instead of the old association, which the peer doesn't

[PATCH 4.14 08/22] wimax/i2400m: Fix potential urb refcnt leak

2020-05-08 Thread Greg Kroah-Hartman
From: Xiyu Yang [ Upstream commit 7717cbec172c3554d470023b4020d5781961187e ] i2400mu_bus_bm_wait_for_ack() invokes usb_get_urb(), which increases the refcount of the "notif_urb". When i2400mu_bus_bm_wait_for_ack() returns, local variable "notif_urb" becomes invalid, so the refcount should be

[PATCH 4.19 17/32] s390/ftrace: fix potential crashes when switching tracers

2020-05-08 Thread Greg Kroah-Hartman
From: Philipp Rudo [ Upstream commit 8ebf6da9db1b2a20bb86cc1bee2552e894d03308 ] Switching tracers include instruction patching. To prevent that a instruction is patched while it's read the instruction patching is done in stop_machine 'context'. This also means that any function called during

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