[PATCH AUTOSEL 4.9 4/9] net: bmac: Fix read of MAC address from ROM

2020-05-28 Thread Sasha Levin
From: Jeremy Kerr [ Upstream commit ef01cee2ee1b369c57a936166483d40942bcc3e3 ] In bmac_get_station_address, We're reading two bytes at a time from ROM, but we do that six times, resulting in 12 bytes of read & writes. This means we will write off the end of the six-byte destination buffer. This

[PATCH AUTOSEL 5.4 15/26] net/ethernet/freescale: rework quiesce/activate for ucc_geth

2020-05-28 Thread Sasha Levin
From: Valentin Longchamp [ Upstream commit 79dde73cf9bcf1dd317a2667f78b758e9fe139ed ] ugeth_quiesce/activate are used to halt the controller when there is a link change that requires to reconfigure the mac. The previous implementation called netif_device_detach(). This however causes the initia

[PATCH AUTOSEL 4.9 1/9] ARC: Fix ICCM & DCCM runtime size checks

2020-05-28 Thread Sasha Levin
From: Eugeniy Paltsev [ Upstream commit 43900edf67d7ef3ac8909854d75b8a1fba2d570c ] As of today the ICCM and DCCM size checks are incorrectly using mismatched units (KiB checked against bytes). The CONFIG_ARC_DCCM_SZ and CONFIG_ARC_ICCM_SZ are in KiB, but the size calculated in runtime and stored

[PATCH AUTOSEL 4.9 2/9] net sched: fix reporting the first-time use timestamp

2020-05-28 Thread Sasha Levin
From: Roman Mashak [ Upstream commit b15e62631c5f19fea9895f7632dae9c1b27fe0cd ] When a new action is installed, firstuse field of 'tcf_t' is explicitly set to 0. Value of zero means "new action, not yet used"; as a packet hits the action, 'firstuse' is stamped with the current jiffies value. tc

[PATCH AUTOSEL 4.9 3/9] x86/mmiotrace: Use cpumask_available() for cpumask_var_t variables

2020-05-28 Thread Sasha Levin
From: Nathan Chancellor [ Upstream commit d7110a26e5905ec2fe3fc88bc6a538901accb72b ] When building with Clang + -Wtautological-compare and CONFIG_CPUMASK_OFFSTACK unset: arch/x86/mm/mmio-mod.c:375:6: warning: comparison of array 'downed_cpus' equal to a null pointer is always false [-Wtauto

[PATCH AUTOSEL 4.9 6/9] net: ethernet: stmmac: Enable interface clocks on probe for IPQ806x

2020-05-28 Thread Sasha Levin
From: Jonathan McDowell [ Upstream commit a96ac8a0045e3cbe3e5af6d1b3c78c6c2065dec5 ] The ipq806x_gmac_probe() function enables the PTP clock but not the appropriate interface clocks. This means that if the bootloader hasn't done so attempting to bring up the interface will fail with an error lik

[PATCH AUTOSEL 4.9 7/9] net: sun: fix missing release regions in cas_init_one().

2020-05-28 Thread Sasha Levin
From: Qiushi Wu [ Upstream commit 5a730153984dd13f82ffae93d7170d76eba204e9 ] In cas_init_one(), "pdev" is requested by "pci_request_regions", but it was not released after a call of the function “pci_write_config_byte” failed. Thus replace the jump target “err_write_cacheline” by "err_out_free_r

[PATCH AUTOSEL 4.14 12/13] net/mlx4_core: fix a memory leak bug.

2020-05-28 Thread Sasha Levin
From: Qiushi Wu [ Upstream commit febfd9d3c7f74063e8e630b15413ca91b567f963 ] In function mlx4_opreq_action(), pointer "mailbox" is not released, when mlx4_cmd_box() return and error, causing a memory leak bug. Fix this issue by going to "out" label, mlx4_free_cmd_mailbox() can free this pointer.

[PATCH AUTOSEL 4.14 11/13] net/mlx5: Add command entry handling completion

2020-05-28 Thread Sasha Levin
From: Moshe Shemesh [ Upstream commit 17d00e839d3b592da9659c1977d45f85b77f986a ] When FW response to commands is very slow and all command entries in use are waiting for completion we can have a race where commands can get timeout before they get out of the queue and handled. Timeout completion

[PATCH AUTOSEL 5.4 02/26] ARC: [plat-eznps]: Restrict to CONFIG_ISA_ARCOMPACT

2020-05-28 Thread Sasha Levin
From: Vineet Gupta [ Upstream commit 799587d5731db9dcdafaac4002463aa7d9cd6cf7 ] Elide invalid configuration EZNPS + ARCv2, triggered by a make allyesconfig build. Granted the root cause is in source code (asm/barrier.h) where we check for ARCv2 before PLAT_EZNPS, but it is better to avoid such

[PATCH AUTOSEL 4.14 09/13] net: ethernet: stmmac: Enable interface clocks on probe for IPQ806x

2020-05-28 Thread Sasha Levin
From: Jonathan McDowell [ Upstream commit a96ac8a0045e3cbe3e5af6d1b3c78c6c2065dec5 ] The ipq806x_gmac_probe() function enables the PTP clock but not the appropriate interface clocks. This means that if the bootloader hasn't done so attempting to bring up the interface will fail with an error lik

[PATCH AUTOSEL 4.14 10/13] net: sun: fix missing release regions in cas_init_one().

2020-05-28 Thread Sasha Levin
From: Qiushi Wu [ Upstream commit 5a730153984dd13f82ffae93d7170d76eba204e9 ] In cas_init_one(), "pdev" is requested by "pci_request_regions", but it was not released after a call of the function “pci_write_config_byte” failed. Thus replace the jump target “err_write_cacheline” by "err_out_free_r

[PATCH AUTOSEL 4.14 06/13] net: bmac: Fix read of MAC address from ROM

2020-05-28 Thread Sasha Levin
From: Jeremy Kerr [ Upstream commit ef01cee2ee1b369c57a936166483d40942bcc3e3 ] In bmac_get_station_address, We're reading two bytes at a time from ROM, but we do that six times, resulting in 12 bytes of read & writes. This means we will write off the end of the six-byte destination buffer. This

[PATCH AUTOSEL 5.4 16/26] net: ethernet: stmmac: Enable interface clocks on probe for IPQ806x

2020-05-28 Thread Sasha Levin
From: Jonathan McDowell [ Upstream commit a96ac8a0045e3cbe3e5af6d1b3c78c6c2065dec5 ] The ipq806x_gmac_probe() function enables the PTP clock but not the appropriate interface clocks. This means that if the bootloader hasn't done so attempting to bring up the interface will fail with an error lik

[PATCH AUTOSEL 4.19 10/17] s390/mm: fix set_huge_pte_at() for empty ptes

2020-05-28 Thread Sasha Levin
From: Gerald Schaefer [ Upstream commit ac8372f3b4e41015549b331a4f350224661e7fc6 ] On s390, the layout of normal and large ptes (i.e. pmds/puds) differs. Therefore, set_huge_pte_at() does a conversion from a normal pte to the corresponding large pmd/pud. So, when converting an empty pte, this sh

[PATCH AUTOSEL 4.19 08/17] r8152: support additional Microsoft Surface Ethernet Adapter variant

2020-05-28 Thread Sasha Levin
From: Marc Payne [ Upstream commit c27a204383616efba5a4194075e90819961ff66a ] Device id 0927 is the RTL8153B-based component of the 'Surface USB-C to Ethernet and USB Adapter' and may be used as a component of other devices in future. Tested and working with the r8152 driver. Update the cdc_eth

[PATCH AUTOSEL 5.4 08/26] x86/mmiotrace: Use cpumask_available() for cpumask_var_t variables

2020-05-28 Thread Sasha Levin
From: Nathan Chancellor [ Upstream commit d7110a26e5905ec2fe3fc88bc6a538901accb72b ] When building with Clang + -Wtautological-compare and CONFIG_CPUMASK_OFFSTACK unset: arch/x86/mm/mmio-mod.c:375:6: warning: comparison of array 'downed_cpus' equal to a null pointer is always false [-Wtauto

[PATCH AUTOSEL 4.19 09/17] drm/edid: Add Oculus Rift S to non-desktop list

2020-05-28 Thread Sasha Levin
From: Jan Schmidt [ Upstream commit 5a3f610877e9d08968ea7237551049581f02b163 ] Add a quirk for the Oculus Rift S OVR0012 display so it shows up as a non-desktop display. Signed-off-by: Jan Schmidt Signed-off-by: Dave Airlie Link: https://patchwork.freedesktop.org/patch/msgid/20200507180628.7

[PATCH AUTOSEL 4.14 03/13] i2c: altera: Fix race between xfer_msg and isr thread

2020-05-28 Thread Sasha Levin
From: Atsushi Nemoto [ Upstream commit 5d4c7977499a736f3f80826bdc9744344ad55589 ] Use a mutex to protect access to idev->msg_len, idev->buf, etc. which are modified by both altr_i2c_xfer_msg() and altr_i2c_isr(). This is the minimal fix for easy backporting. A cleanup to remove the spinlock wil

[PATCH AUTOSEL 4.19 17/17] net: smsc911x: Fix runtime PM imbalance on error

2020-05-28 Thread Sasha Levin
From: Dinghao Liu [ Upstream commit 539d39ad0c61b35f69565a037d7586deaf6d6166 ] Remove runtime PM usage counter decrement when the increment function has not been called to keep the counter balanced. Signed-off-by: Dinghao Liu Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- dri

[PATCH AUTOSEL 4.19 16/17] net/mlx4_core: fix a memory leak bug.

2020-05-28 Thread Sasha Levin
From: Qiushi Wu [ Upstream commit febfd9d3c7f74063e8e630b15413ca91b567f963 ] In function mlx4_opreq_action(), pointer "mailbox" is not released, when mlx4_cmd_box() return and error, causing a memory leak bug. Fix this issue by going to "out" label, mlx4_free_cmd_mailbox() can free this pointer.

[PATCH AUTOSEL 4.19 12/17] net/ethernet/freescale: rework quiesce/activate for ucc_geth

2020-05-28 Thread Sasha Levin
From: Valentin Longchamp [ Upstream commit 79dde73cf9bcf1dd317a2667f78b758e9fe139ed ] ugeth_quiesce/activate are used to halt the controller when there is a link change that requires to reconfigure the mac. The previous implementation called netif_device_detach(). This however causes the initia

Re: [PATCH] Revert "ath: add support for special 0x0 regulatory domain"

2020-05-28 Thread Julian Calaby
Hi Brian, On Thu, May 28, 2020 at 5:18 AM Brian Norris wrote: > > This reverts commit 2dc016599cfa9672a147528ca26d70c3654a5423. > > Users are reporting regressions in regulatory domain detection and > channel availability. > > The problem this was trying to resolve was fixed in firmware anyway:

[PATCH AUTOSEL 4.19 15/17] net/mlx5: Add command entry handling completion

2020-05-28 Thread Sasha Levin
From: Moshe Shemesh [ Upstream commit 17d00e839d3b592da9659c1977d45f85b77f986a ] When FW response to commands is very slow and all command entries in use are waiting for completion we can have a race where commands can get timeout before they get out of the queue and handled. Timeout completion

[PATCH AUTOSEL 4.19 11/17] null_blk: return error for invalid zone size

2020-05-28 Thread Sasha Levin
From: Chaitanya Kulkarni [ Upstream commit e274832590211c4b1b1e807ca66fad8b5bb8b328 ] In null_init_zone_dev() check if the zone size is larger than device capacity, return error if needed. This also fixes the following oops :- null_blk: changed the number of conventional zones to 4294967295 BU

[PATCH AUTOSEL 4.19 06/17] x86/mmiotrace: Use cpumask_available() for cpumask_var_t variables

2020-05-28 Thread Sasha Levin
From: Nathan Chancellor [ Upstream commit d7110a26e5905ec2fe3fc88bc6a538901accb72b ] When building with Clang + -Wtautological-compare and CONFIG_CPUMASK_OFFSTACK unset: arch/x86/mm/mmio-mod.c:375:6: warning: comparison of array 'downed_cpus' equal to a null pointer is always false [-Wtauto

[PATCH AUTOSEL 4.19 07/17] net: bmac: Fix read of MAC address from ROM

2020-05-28 Thread Sasha Levin
From: Jeremy Kerr [ Upstream commit ef01cee2ee1b369c57a936166483d40942bcc3e3 ] In bmac_get_station_address, We're reading two bytes at a time from ROM, but we do that six times, resulting in 12 bytes of read & writes. This means we will write off the end of the six-byte destination buffer. This

[PATCH AUTOSEL 4.19 05/17] net sched: fix reporting the first-time use timestamp

2020-05-28 Thread Sasha Levin
From: Roman Mashak [ Upstream commit b15e62631c5f19fea9895f7632dae9c1b27fe0cd ] When a new action is installed, firstuse field of 'tcf_t' is explicitly set to 0. Value of zero means "new action, not yet used"; as a packet hits the action, 'firstuse' is stamped with the current jiffies value. tc

[PATCH AUTOSEL 4.19 01/17] ARC: Fix ICCM & DCCM runtime size checks

2020-05-28 Thread Sasha Levin
From: Eugeniy Paltsev [ Upstream commit 43900edf67d7ef3ac8909854d75b8a1fba2d570c ] As of today the ICCM and DCCM size checks are incorrectly using mismatched units (KiB checked against bytes). The CONFIG_ARC_DCCM_SZ and CONFIG_ARC_ICCM_SZ are in KiB, but the size calculated in runtime and stored

[PATCH AUTOSEL 5.4 25/26] net/mlx4_core: fix a memory leak bug.

2020-05-28 Thread Sasha Levin
From: Qiushi Wu [ Upstream commit febfd9d3c7f74063e8e630b15413ca91b567f963 ] In function mlx4_opreq_action(), pointer "mailbox" is not released, when mlx4_cmd_box() return and error, causing a memory leak bug. Fix this issue by going to "out" label, mlx4_free_cmd_mailbox() can free this pointer.

[PATCH AUTOSEL 4.19 03/17] evm: Fix RCU list related warnings

2020-05-28 Thread Sasha Levin
From: Madhuparna Bhowmik [ Upstream commit 770f60586d2af0590be263f55fd079226313922c ] This patch fixes the following warning and few other instances of traversal of evm_config_xattrnames list: [ 32.848432] = [ 32.848707] WARNING: suspicious RCU usage [ 32.84896

[PATCH AUTOSEL 4.19 02/17] ARC: [plat-eznps]: Restrict to CONFIG_ISA_ARCOMPACT

2020-05-28 Thread Sasha Levin
From: Vineet Gupta [ Upstream commit 799587d5731db9dcdafaac4002463aa7d9cd6cf7 ] Elide invalid configuration EZNPS + ARCv2, triggered by a make allyesconfig build. Granted the root cause is in source code (asm/barrier.h) where we check for ARCv2 before PLAT_EZNPS, but it is better to avoid such

[PATCH AUTOSEL 5.4 19/26] net/mlx5: Add command entry handling completion

2020-05-28 Thread Sasha Levin
From: Moshe Shemesh [ Upstream commit 17d00e839d3b592da9659c1977d45f85b77f986a ] When FW response to commands is very slow and all command entries in use are waiting for completion we can have a race where commands can get timeout before they get out of the queue and handled. Timeout completion

[PATCH AUTOSEL 5.4 23/26] net/mlx5: Fix error flow in case of function_setup failure

2020-05-28 Thread Sasha Levin
From: Shay Drory [ Upstream commit 4f7400d5cbaef676e00cdffb0565bf731c6bb09e ] Currently, if an error occurred during mlx5_function_setup(), we keep dev->state as DEVICE_STATE_UP. Fixing it by adding a goto label. Fixes: e161105e58da ("net/mlx5: Function setup/teardown procedures") Signed-off-by

[PATCH AUTOSEL 5.4 22/26] net/mlx5e: Update netdev txq on completions during closure

2020-05-28 Thread Sasha Levin
From: Moshe Shemesh [ Upstream commit 5e911e2c06bd8c17df29147a5e2d4b17fafda024 ] On sq closure when we free its descriptors, we should also update netdev txq on completions which would not arrive. Otherwise if we reopen sqs and attach them back, for example on fw fatal recovery flow, we may get

Re: [PATCH] debugfs: Add mount restriction option

2020-05-28 Thread Enderborg, Peter
On 5/28/20 11:27 AM, Greg Kroah-Hartman wrote: > On Thu, May 28, 2020 at 08:39:02AM +, Enderborg, Peter wrote: >> On 5/28/20 10:27 AM, Greg Kroah-Hartman wrote: >>> On Thu, May 28, 2020 at 10:00:31AM +0200, Peter Enderborg wrote: Since debugfs include sensitive information it need to be tr

[PATCH AUTOSEL 5.6 40/47] net/mlx5: Fix memory leak in mlx5_events_init

2020-05-28 Thread Sasha Levin
From: Moshe Shemesh [ Upstream commit df14ad1eccb04a4a28c90389214dbacab085b244 ] Fix memory leak in mlx5_events_init(), in case create_single_thread_workqueue() fails, events struct should be freed. Fixes: 5d3c537f9070 ("net/mlx5: Handle event of power detection in the PCIE slot") Signed-off-b

Re: next-20200515: Xorg killed due to "OOM"

2020-05-28 Thread Pavel Machek
On Thu 2020-05-28 11:05:17, Michal Hocko wrote: > On Tue 26-05-20 11:10:54, Pavel Machek wrote: > [...] > > [38617.276517] oom_reaper: reaped process 31769 (chromium), now > > anon-rss:0kB, file-rss:0kB, shmem-rss:7968kB > > [38617.277232] Xorg invoked oom-killer: gfp_mask=0x0(), order=0, > > oom

[PATCH AUTOSEL 5.4 17/26] selftests: mlxsw: qos_mc_aware: Specify arping timeout as an integer

2020-05-28 Thread Sasha Levin
From: Amit Cohen [ Upstream commit 46ca11177ed593f39d534f8d2c74ec5344e90c11 ] Starting from iputils s20190709 (used in Fedora 31), arping does not support timeout being specified as a decimal: $ arping -c 1 -I swp1 -b 192.0.2.66 -q -w 0.1 arping: invalid argument: '0.1' Previously, such timeou

[PATCH AUTOSEL 5.4 10/26] r8152: support additional Microsoft Surface Ethernet Adapter variant

2020-05-28 Thread Sasha Levin
From: Marc Payne [ Upstream commit c27a204383616efba5a4194075e90819961ff66a ] Device id 0927 is the RTL8153B-based component of the 'Surface USB-C to Ethernet and USB Adapter' and may be used as a component of other devices in future. Tested and working with the r8152 driver. Update the cdc_eth

[PATCH AUTOSEL 5.4 13/26] null_blk: return error for invalid zone size

2020-05-28 Thread Sasha Levin
From: Chaitanya Kulkarni [ Upstream commit e274832590211c4b1b1e807ca66fad8b5bb8b328 ] In null_init_zone_dev() check if the zone size is larger than device capacity, return error if needed. This also fixes the following oops :- null_blk: changed the number of conventional zones to 4294967295 BU

[PATCH AUTOSEL 5.4 18/26] net: sun: fix missing release regions in cas_init_one().

2020-05-28 Thread Sasha Levin
From: Qiushi Wu [ Upstream commit 5a730153984dd13f82ffae93d7170d76eba204e9 ] In cas_init_one(), "pdev" is requested by "pci_request_regions", but it was not released after a call of the function “pci_write_config_byte” failed. Thus replace the jump target “err_write_cacheline” by "err_out_free_r

[PATCH AUTOSEL 5.4 14/26] net: mvpp2: fix RX hashing for non-10G ports

2020-05-28 Thread Sasha Levin
From: Russell King [ Upstream commit 3138a07ce219acde4c0d7ea0b6d54ba64153328b ] When rxhash is enabled on any ethernet port except the first in each CP block, traffic flow is prevented. The analysis is below: I've been investigating this afternoon, and what I've found, comparing a kernel witho

[PATCH AUTOSEL 5.6 43/47] net/mlx5: Fix error flow in case of function_setup failure

2020-05-28 Thread Sasha Levin
From: Shay Drory [ Upstream commit 4f7400d5cbaef676e00cdffb0565bf731c6bb09e ] Currently, if an error occurred during mlx5_function_setup(), we keep dev->state as DEVICE_STATE_UP. Fixing it by adding a goto label. Fixes: e161105e58da ("net/mlx5: Function setup/teardown procedures") Signed-off-by

[PATCH AUTOSEL 5.4 11/26] drm/edid: Add Oculus Rift S to non-desktop list

2020-05-28 Thread Sasha Levin
From: Jan Schmidt [ Upstream commit 5a3f610877e9d08968ea7237551049581f02b163 ] Add a quirk for the Oculus Rift S OVR0012 display so it shows up as a non-desktop display. Signed-off-by: Jan Schmidt Signed-off-by: Dave Airlie Link: https://patchwork.freedesktop.org/patch/msgid/20200507180628.7

[PATCH AUTOSEL 5.6 23/47] wireguard: selftests: use newer iproute2 for gcc-10

2020-05-28 Thread Sasha Levin
From: "Jason A. Donenfeld" [ Upstream commit ee3c1aa3f34b7842c1557cfe5d8c3f7b8c692de8 ] gcc-10 switched to defaulting to -fno-common, which broke iproute2-5.4. This was fixed in iproute-5.6, so switch to that. Because we're after a stable testing surface, we generally don't like to bump these un

[PATCH AUTOSEL 5.4 09/26] net: bmac: Fix read of MAC address from ROM

2020-05-28 Thread Sasha Levin
From: Jeremy Kerr [ Upstream commit ef01cee2ee1b369c57a936166483d40942bcc3e3 ] In bmac_get_station_address, We're reading two bytes at a time from ROM, but we do that six times, resulting in 12 bytes of read & writes. This means we will write off the end of the six-byte destination buffer. This

[PATCH AUTOSEL 5.4 06/26] io_uring: initialize ctx->sqo_wait earlier

2020-05-28 Thread Sasha Levin
From: Jens Axboe [ Upstream commit 583863ed918136412ddf14de2e12534f17cfdc6f ] Ensure that ctx->sqo_wait is initialized as soon as the ctx is allocated, instead of deferring it to the offload setup. This fixes a syzbot reported lockdep complaint, which is really due to trying to wake_up on an uni

[PATCH AUTOSEL 5.6 20/47] io_uring: reset -EBUSY error when io sq thread is waken up

2020-05-28 Thread Sasha Levin
From: Xiaoguang Wang [ Upstream commit d4ae271dfaae2a5f41c015f2f20d62a1deeec734 ] In io_sq_thread(), currently if we get an -EBUSY error and go to sleep, we will won't clear it again, which will result in io_sq_thread() will never have a chance to submit sqes again. Below test program test.c can

[PATCH AUTOSEL 5.4 04/26] scsi: pm: Balance pm_only counter of request queue during system resume

2020-05-28 Thread Sasha Levin
From: Can Guo [ Upstream commit 05d18ae1cc8a0308b12f37b4ab94afce3535fac9 ] During system resume, scsi_resume_device() decreases a request queue's pm_only counter if the scsi device was quiesced before. But after that, if the scsi device's RPM status is RPM_SUSPENDED, the pm_only counter is still

[PATCH AUTOSEL 5.4 03/26] evm: Fix RCU list related warnings

2020-05-28 Thread Sasha Levin
From: Madhuparna Bhowmik [ Upstream commit 770f60586d2af0590be263f55fd079226313922c ] This patch fixes the following warning and few other instances of traversal of evm_config_xattrnames list: [ 32.848432] = [ 32.848707] WARNING: suspicious RCU usage [ 32.84896

[PATCH AUTOSEL 5.6 26/47] net: ethernet: ti: fix some return value check of cpsw_ale_create()

2020-05-28 Thread Sasha Levin
From: Wei Yongjun [ Upstream commit 3469660d1b15ccfdf7b33295c306b6298ca730aa ] cpsw_ale_create() can return both NULL and PTR_ERR(), but all of the caller only check NULL for error handling. This patch convert it to only return PTR_ERR() in all error cases, and the caller using IS_ERR() instead

[PATCH AUTOSEL 5.4 05/26] i2c: altera: Fix race between xfer_msg and isr thread

2020-05-28 Thread Sasha Levin
From: Atsushi Nemoto [ Upstream commit 5d4c7977499a736f3f80826bdc9744344ad55589 ] Use a mutex to protect access to idev->msg_len, idev->buf, etc. which are modified by both altr_i2c_xfer_msg() and altr_i2c_isr(). This is the minimal fix for easy backporting. A cleanup to remove the spinlock wil

Re: [PATCH] btrfs: select FS_IOMAP

2020-05-28 Thread David Sterba
On Thu, May 28, 2020 at 11:16:42AM +0200, Arnd Bergmann wrote: > As btrfs now calls iomap_dio_rw, the helper code actually has > to be enabled to avoid a link error: > > ERROR: modpost: "iomap_dio_rw" [fs/btrfs/btrfs.ko] undefined! > > Fixes: f31e5f70919f ("btrfs: switch to iomap_dio_rw() for dio

[PATCH AUTOSEL 5.6 47/47] net: smsc911x: Fix runtime PM imbalance on error

2020-05-28 Thread Sasha Levin
From: Dinghao Liu [ Upstream commit 539d39ad0c61b35f69565a037d7586deaf6d6166 ] Remove runtime PM usage counter decrement when the increment function has not been called to keep the counter balanced. Signed-off-by: Dinghao Liu Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- dri

[PATCH AUTOSEL 5.6 18/47] drm/edid: Add Oculus Rift S to non-desktop list

2020-05-28 Thread Sasha Levin
From: Jan Schmidt [ Upstream commit 5a3f610877e9d08968ea7237551049581f02b163 ] Add a quirk for the Oculus Rift S OVR0012 display so it shows up as a non-desktop display. Signed-off-by: Jan Schmidt Signed-off-by: Dave Airlie Link: https://patchwork.freedesktop.org/patch/msgid/20200507180628.7

[PATCH v2 3/3] scsi: ufs: cleanup ufs initialization path

2020-05-28 Thread Bean Huo
From: Bean Huo At UFS initialization stage, to get the length of the descriptor, ufshcd_read_desc_length() being called 6 times. This patch is to delete unnecessary reduntant code, remove ufshcd_read_desc_length() and boost UFS initialization. Signed-off-by: Bean Huo --- drivers/scsi/ufs/ufshc

RE: [PATCH] RDMA/qib: Fix several reference count leak qib_create_port_files

2020-05-28 Thread Wan, Kaike
> -Original Message- > From: linux-rdma-ow...@vger.kernel.org ow...@vger.kernel.org> On Behalf Of wu000...@umn.edu > Sent: Wednesday, May 27, 2020 10:41 PM > To: k...@umn.edu > Cc: wu000...@umn.edu; Dalessandro, Dennis > ; Marciniszyn, Mike > ; Doug Ledford ; > Jason Gunthorpe ; linux-r...

[PATCH AUTOSEL 5.6 41/47] net/mlx5: Fix cleaning unmanaged flow tables

2020-05-28 Thread Sasha Levin
From: Roi Dayan [ Upstream commit aee37f3d940ca732df71c3df49347bccaafc0b24 ] Unmanaged flow tables doesn't have a parent and tree_put_node() assume there is always a parent if cleaning is needed. fix that. Fixes: 5281a0c90919 ("net/mlx5: fs_core: Introduce unmanaged flow tables") Signed-off-by:

[PATCH AUTOSEL 5.6 39/47] net/mlx5e: Fix inner tirs handling

2020-05-28 Thread Sasha Levin
From: Roi Dayan [ Upstream commit a16b8e0dcf7043bee46174bed0553cc9e36b63a5 ] In the cited commit inner_tirs argument was added to create and destroy inner tirs, and no indication was added to mlx5e_modify_tirs_hash() function. In order to have a consistent handling, use inner_indir_tir[0].tirn i

Re: TSC problems with Acer TravelMate 5735Z

2020-05-28 Thread Thomas Gleixner
Peter Zijlstra writes: > On Sun, May 24, 2020 at 07:09:18PM +0200, Paul Menzel wrote: >> Dear Linux folks, >> >> >> I got my hands on an old Acer TravelMate 5735Z (Intel GM45/Cantiga) and >> installed Debian Sid/unstable with Linux 5.6.7 on it. >> >> Booting the system it takes a long time, and

[PATCH AUTOSEL 5.6 42/47] net/mlx5e: Update netdev txq on completions during closure

2020-05-28 Thread Sasha Levin
From: Moshe Shemesh [ Upstream commit 5e911e2c06bd8c17df29147a5e2d4b17fafda024 ] On sq closure when we free its descriptors, we should also update netdev txq on completions which would not arrive. Otherwise if we reopen sqs and attach them back, for example on fw fatal recovery flow, we may get

[PATCH AUTOSEL 5.6 37/47] net/mlx5: Add command entry handling completion

2020-05-28 Thread Sasha Levin
From: Moshe Shemesh [ Upstream commit 17d00e839d3b592da9659c1977d45f85b77f986a ] When FW response to commands is very slow and all command entries in use are waiting for completion we can have a race where commands can get timeout before they get out of the queue and handled. Timeout completion

[PATCH v2 2/3] scsi: ufs: delete ufshcd_read_desc()

2020-05-28 Thread Bean Huo
From: Bean Huo Delete ufshcd_read_desc(). Instead, let caller directly call ufshcd_read_desc_param(). Signed-off-by: Bean Huo --- drivers/scsi/ufs/ufshcd.c | 27 --- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/

[PATCH AUTOSEL 5.6 36/47] net: sun: fix missing release regions in cas_init_one().

2020-05-28 Thread Sasha Levin
From: Qiushi Wu [ Upstream commit 5a730153984dd13f82ffae93d7170d76eba204e9 ] In cas_init_one(), "pdev" is requested by "pci_request_regions", but it was not released after a call of the function “pci_write_config_byte” failed. Thus replace the jump target “err_write_cacheline” by "err_out_free_r

[PATCH AUTOSEL 5.6 35/47] net: mscc: ocelot: fix address ageing time (again)

2020-05-28 Thread Sasha Levin
From: Vladimir Oltean [ Upstream commit bf655ba212dfd10d1c86afeee3f3372dbd731d46 ] ocelot_set_ageing_time has 2 callers: - felix_set_ageing_time: from drivers/net/dsa/ocelot/felix.c - ocelot_port_attr_ageing_set: from drivers/net/ethernet/mscc/ocelot.c The issue described in the fixed commit

Re: next-20200515: Xorg killed due to "OOM"

2020-05-28 Thread Michal Hocko
On Thu 28-05-20 14:03:54, Pavel Machek wrote: > On Thu 2020-05-28 11:05:17, Michal Hocko wrote: > > On Tue 26-05-20 11:10:54, Pavel Machek wrote: > > [...] > > > [38617.276517] oom_reaper: reaped process 31769 (chromium), now > > > anon-rss:0kB, file-rss:0kB, shmem-rss:7968kB > > > [38617.277232]

[PATCH AUTOSEL 5.6 34/47] r8169: fix OCP access on RTL8117

2020-05-28 Thread Sasha Levin
From: Heiner Kallweit [ Upstream commit 561535b0f23961ced071b82575d5e83e6351a814 ] According to r8168 vendor driver DASHv3 chips like RTL8168fp/RTL8117 need a special addressing for OCP access. Fix is compile-tested only due to missing test hardware. Fixes: 1287723aa139 ("r8169: add support for

[PATCH AUTOSEL 5.6 33/47] selftests: mlxsw: qos_mc_aware: Specify arping timeout as an integer

2020-05-28 Thread Sasha Levin
From: Amit Cohen [ Upstream commit 46ca11177ed593f39d534f8d2c74ec5344e90c11 ] Starting from iputils s20190709 (used in Fedora 31), arping does not support timeout being specified as a decimal: $ arping -c 1 -I swp1 -b 192.0.2.66 -q -w 0.1 arping: invalid argument: '0.1' Previously, such timeou

[PATCH AUTOSEL 5.6 29/47] net: mvpp2: fix RX hashing for non-10G ports

2020-05-28 Thread Sasha Levin
From: Russell King [ Upstream commit 3138a07ce219acde4c0d7ea0b6d54ba64153328b ] When rxhash is enabled on any ethernet port except the first in each CP block, traffic flow is prevented. The analysis is below: I've been investigating this afternoon, and what I've found, comparing a kernel witho

[PATCH AUTOSEL 5.6 32/47] mlxsw: spectrum: Fix use-after-free of split/unsplit/type_set in case reload fails

2020-05-28 Thread Sasha Levin
From: Jiri Pirko [ Upstream commit 4340f42f207eacb81e7a6b6bb1e3b6afad9a2e26 ] In case of reload fail, the mlxsw_sp->ports contains a pointer to a freed memory (either by reload_down() or reload_up() error path). Fix this by initializing the pointer to NULL and checking it before dereferencing in

[PATCH v2 0/3] scsi: ufs: cleanup ufs initialization

2020-05-28 Thread Bean Huo
From: Bean Huo This patchset is to cleanup UFS descriptor access, and delete some unnecessary code. Changelog: v1 - v2: 1. split patch 2. fix one compiling WARNING (Reported-by: kbuild test robot ) Bean Huo (3): scsi: ufs: remove max_t in ufs_get_device_desc scsi: ufs: delete ufsh

[PATCH AUTOSEL 5.6 31/47] net: ethernet: stmmac: Enable interface clocks on probe for IPQ806x

2020-05-28 Thread Sasha Levin
From: Jonathan McDowell [ Upstream commit a96ac8a0045e3cbe3e5af6d1b3c78c6c2065dec5 ] The ipq806x_gmac_probe() function enables the PTP clock but not the appropriate interface clocks. This means that if the bootloader hasn't done so attempting to bring up the interface will fail with an error lik

[PATCH AUTOSEL 5.6 30/47] net/ethernet/freescale: rework quiesce/activate for ucc_geth

2020-05-28 Thread Sasha Levin
From: Valentin Longchamp [ Upstream commit 79dde73cf9bcf1dd317a2667f78b758e9fe139ed ] ugeth_quiesce/activate are used to halt the controller when there is a link change that requires to reconfigure the mac. The previous implementation called netif_device_detach(). This however causes the initia

Re: Re: [PATCH] media: staging: tegra-vde: fix runtime pm imbalance on error

2020-05-28 Thread Dan Carpenter
On Fri, May 22, 2020 at 04:43:12PM +0200, Thierry Reding wrote: > On Fri, May 22, 2020 at 04:23:18PM +0300, Dan Carpenter wrote: > > On Fri, May 22, 2020 at 03:10:31PM +0200, Thierry Reding wrote: > > > On Thu, May 21, 2020 at 08:39:02PM +0300, Dan Carpenter wrote: > > > > On Thu, May 21, 2020 at 0

Re: 回复: [PATCH v5] workqueue: Remove unnecessary kfree() call in rcu_free_wq()

2020-05-28 Thread Lai Jiangshan
On Thu, May 28, 2020 at 5:57 PM Dan Carpenter wrote: > > Guys, the patch is wrong. The kfree is harmless when this is called > from destroy_workqueue() and required when it's called from > pwq_unbound_release_workfn(). Lai Jiangshan already explained this > already. Why are we still discussing

[PATCH AUTOSEL 5.6 27/47] net: sgi: ioc3-eth: Fix return value check in ioc3eth_probe()

2020-05-28 Thread Sasha Levin
From: Tang Bin [ Upstream commit a7654211d0ffeaa8eb0545ea00f8445242cbce05 ] In the function devm_platform_ioremap_resource(), if get resource failed, the return value is ERR_PTR() not NULL. Thus it must be replaced by IS_ERR(), or else it may result in crashes if a critical error path is encount

[PATCH AUTOSEL 5.6 24/47] wireguard: queueing: preserve flow hash across packet scrubbing

2020-05-28 Thread Sasha Levin
From: "Jason A. Donenfeld" [ Upstream commit c78a0b4a78839d572d8a80f6a62221c0d7843135 ] It's important that we clear most header fields during encapsulation and decapsulation, because the packet is substantially changed, and we don't want any info leak or logic bug due to an accidental correlati

[PATCH AUTOSEL 5.6 09/47] i2c: altera: Fix race between xfer_msg and isr thread

2020-05-28 Thread Sasha Levin
From: Atsushi Nemoto [ Upstream commit 5d4c7977499a736f3f80826bdc9744344ad55589 ] Use a mutex to protect access to idev->msg_len, idev->buf, etc. which are modified by both altr_i2c_xfer_msg() and altr_i2c_isr(). This is the minimal fix for easy backporting. A cleanup to remove the spinlock wil

[PATCH AUTOSEL 5.6 05/47] scsi: pm: Balance pm_only counter of request queue during system resume

2020-05-28 Thread Sasha Levin
From: Can Guo [ Upstream commit 05d18ae1cc8a0308b12f37b4ab94afce3535fac9 ] During system resume, scsi_resume_device() decreases a request queue's pm_only counter if the scsi device was quiesced before. But after that, if the scsi device's RPM status is RPM_SUSPENDED, the pm_only counter is still

[PATCH AUTOSEL 5.6 25/47] null_blk: return error for invalid zone size

2020-05-28 Thread Sasha Levin
From: Chaitanya Kulkarni [ Upstream commit e274832590211c4b1b1e807ca66fad8b5bb8b328 ] In null_init_zone_dev() check if the zone size is larger than device capacity, return error if needed. This also fixes the following oops :- null_blk: changed the number of conventional zones to 4294967295 BU

[PATCH AUTOSEL 5.6 07/47] x86/hyperv: Properly suspend/resume reenlightenment notifications

2020-05-28 Thread Sasha Levin
From: Vitaly Kuznetsov [ Upstream commit 38dce4195f0daefb566279fd9fd51e1fbd62ae1b ] Errors during hibernation with reenlightenment notifications enabled were reported: [ 51.730435] PM: hibernation entry [ 51.737435] PM: Syncing filesystems ... ... [ 54.102216] Disabling non-boot CPUs

[PATCH AUTOSEL 5.6 10/47] io_uring: initialize ctx->sqo_wait earlier

2020-05-28 Thread Sasha Levin
From: Jens Axboe [ Upstream commit 583863ed918136412ddf14de2e12534f17cfdc6f ] Ensure that ctx->sqo_wait is initialized as soon as the ctx is allocated, instead of deferring it to the offload setup. This fixes a syzbot reported lockdep complaint, which is really due to trying to wake_up on an uni

[PATCH AUTOSEL 5.6 08/47] dmaengine: ti: k3-udma: Fix TR mode flags for slave_sg and memcpy

2020-05-28 Thread Sasha Levin
From: Peter Ujfalusi [ Upstream commit be4054b8b6671ebc977eb7774b8e889d2d05d3e3 ] cppi5_tr_csf_set() clears previously set Configuration Specific Flags. Setting the EOP flag clears the SUPR_EVT flag for the last TR which is not desirable as we do not want to have events from the TR. Signed-off-

[PATCH AUTOSEL 5.6 14/47] net sched: fix reporting the first-time use timestamp

2020-05-28 Thread Sasha Levin
From: Roman Mashak [ Upstream commit b15e62631c5f19fea9895f7632dae9c1b27fe0cd ] When a new action is installed, firstuse field of 'tcf_t' is explicitly set to 0. Value of zero means "new action, not yet used"; as a packet hits the action, 'firstuse' is stamped with the current jiffies value. tc

[PATCH AUTOSEL 5.6 16/47] net: bmac: Fix read of MAC address from ROM

2020-05-28 Thread Sasha Levin
From: Jeremy Kerr [ Upstream commit ef01cee2ee1b369c57a936166483d40942bcc3e3 ] In bmac_get_station_address, We're reading two bytes at a time from ROM, but we do that six times, resulting in 12 bytes of read & writes. This means we will write off the end of the six-byte destination buffer. This

[PATCH AUTOSEL 5.6 22/47] riscv: Fix print_vm_layout build error if NOMMU

2020-05-28 Thread Sasha Levin
From: Kefeng Wang [ Upstream commit 8fa3cdff05f009855a6a99a7d77a41004009bbab ] arch/riscv/mm/init.c: In function ‘print_vm_layout’: arch/riscv/mm/init.c:68:37: error: ‘FIXADDR_START’ undeclared (first use in this function); arch/riscv/mm/init.c:69:20: error: ‘FIXADDR_TOP’ undeclared arch/riscv/

RE: [RFC PATCH] iommu/arm-smmu: Add module parameter to set msi iova address

2020-05-28 Thread Shameerali Kolothum Thodi
> -Original Message- > From: Auger Eric [mailto:eric.au...@redhat.com] > Sent: 28 May 2020 12:48 > To: Shameerali Kolothum Thodi ; > Jean-Philippe Brucker > Cc: Robin Murphy ; Joerg Roedel > ; io...@lists.linux-foundation.org; Linux Kernel Mailing > List ; Alex Williamson > ; Srinath Man

[PATCH AUTOSEL 5.6 15/47] x86/mmiotrace: Use cpumask_available() for cpumask_var_t variables

2020-05-28 Thread Sasha Levin
From: Nathan Chancellor [ Upstream commit d7110a26e5905ec2fe3fc88bc6a538901accb72b ] When building with Clang + -Wtautological-compare and CONFIG_CPUMASK_OFFSTACK unset: arch/x86/mm/mmio-mod.c:375:6: warning: comparison of array 'downed_cpus' equal to a null pointer is always false [-Wtauto

[PATCH 2/2] perf intel-pt: Refine kernel decoding only warning message

2020-05-28 Thread Adrian Hunter
Stop the message displaying when user space is not being traced. Example: Prerequisites: sudo setcap "cap_sys_rawio,cap_sys_admin,cap_sys_ptrace,cap_syslog,cap_ipc_lock=ep" ~/bin/perf sudo chmod +r /proc/kcore Before: $ perf record --no-switch-events --kcore -a -e intel_pt//k

Re: [PATCH] KVM: selftests: Add .gitignore entry for KVM_SET_GUEST_DEBUG test

2020-05-28 Thread Paolo Bonzini
On 28/05/20 04:16, Sean Christopherson wrote: > Add the KVM_SET_GUEST_DEBUG test's output binary to .gitignore. > > Fixes: 449aa906e67e ("KVM: selftests: Add KVM_SET_GUEST_DEBUG test") > Signed-off-by: Sean Christopherson > --- > tools/testing/selftests/kvm/.gitignore | 1 + > 1 file changed, 1

[PATCH AUTOSEL 5.6 19/47] s390/mm: fix set_huge_pte_at() for empty ptes

2020-05-28 Thread Sasha Levin
From: Gerald Schaefer [ Upstream commit ac8372f3b4e41015549b331a4f350224661e7fc6 ] On s390, the layout of normal and large ptes (i.e. pmds/puds) differs. Therefore, set_huge_pte_at() does a conversion from a normal pte to the corresponding large pmd/pud. So, when converting an empty pte, this sh

[PATCH 1/2] perf record: Respect --no-switch-events

2020-05-28 Thread Adrian Hunter
Context switch events are added automatically by Intel PT and Coresight. Make it possible to suppress them. That is useful for tracing the scheduler without the disturbance that the switch event processing creates. Example: Prerequisites: $ which perf ~/bin/perf $ sudo setcap "cap

[PATCH net] net: mvpp2: Enable autoneg bypass for 1000BaseX/2500BaseX ports

2020-05-28 Thread Thomas Bogendoerfer
Commit d14e078f23cc ("net: marvell: mvpp2: only reprogram what is necessary on mac_config") disabled auto negotiation bypass completely, which breaks platforms enabling bypass via firmware (not the best option, but it worked). Since 1000BaseX/2500BaseX ports neither negotiate speed nor duplex mode

[PATCH AUTOSEL 5.6 06/47] efi/earlycon: Fix early printk for wider fonts

2020-05-28 Thread Sasha Levin
From: Dave Young [ Upstream commit 8f592ada59b321d248391bae175cd78a12972223 ] When I play with terminus fonts I noticed the efi early printk does not work because the earlycon code assumes font width is 8. Here add the code to adapt with larger fonts. Tested with all kinds of kernel built-in f

[PATCH AUTOSEL 5.6 02/47] ARC: [plat-eznps]: Restrict to CONFIG_ISA_ARCOMPACT

2020-05-28 Thread Sasha Levin
From: Vineet Gupta [ Upstream commit 799587d5731db9dcdafaac4002463aa7d9cd6cf7 ] Elide invalid configuration EZNPS + ARCv2, triggered by a make allyesconfig build. Granted the root cause is in source code (asm/barrier.h) where we check for ARCv2 before PLAT_EZNPS, but it is better to avoid such

Re: [PATCH] twist: allow converting pr_devel()/pr_debug() into printk(KERN_DEBUG)

2020-05-28 Thread Petr Mladek
On Thu 2020-05-28 20:33:10, Tetsuo Handa wrote: > On 2020/05/28 19:59, Petr Mladek wrote: > > 2. Add twist into vprintk_store(). In the current, implementation > >it would do: > > > > #if TWIST > > return text_len; > > #endif > > > > return log_output(facility, level, lflags, > >

Re: [PATCH v3 4/6] bus: Add Baikal-T1 AXI-bus driver

2020-05-28 Thread Arnd Bergmann
On Thu, May 28, 2020 at 12:01 AM Andy Shevchenko wrote: > On Tuesday, May 26, 2020, Serge Semin > wrote: >> >> AXI3-bus is the main communication bus connecting all high-speed >> peripheral IP-cores with RAM controller and MIPS P5600 cores on Baikal-T1 >> SoC. Bus traffic arbitration is done by

Re: [PATCH v3 5/6] bus: Add Baikal-T1 APB-bus driver

2020-05-28 Thread Arnd Bergmann
On Tue, May 26, 2020 at 2:59 PM Serge Semin wrote: > > Baikal-T1 AXI-APB bridge is used to access the SoC subsystem CSRs. > IO requests are routed to this bus by means of the DW AMBA 3 AXI > Interconnect. In case if an attempted APB transaction stays with no > response for a pre-defined time an in

[PATCH v2 3/4] dt-bindings: power: Add BQ28z610 compatible

2020-05-28 Thread Dan Murphy
Add the Texas Instruments bq28z610 battery monitor to the bq27xxx binding. Signed-off-by: Dan Murphy --- Documentation/devicetree/bindings/power/supply/bq27xxx.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/power/supply/bq27xxx.yaml b/Documentation/de

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