[PATCH AUTOSEL 4.18 073/126] thermal: da9062/61: Prevent hardware access during system suspend

2018-10-31 Thread Sasha Levin
From: Geert Uytterhoeven [ Upstream commit 760eea43f8c6d48684f1f34b8a02fddc1456e849 ] The workqueue used for monitoring the hardware may run while the device is already suspended. Fix this by using the freezable system workqueue instead, cfr. commit 51e20d0e3a60cf46 ("thermal: Prevent polling

[PATCH AUTOSEL 4.18 073/126] thermal: da9062/61: Prevent hardware access during system suspend

2018-10-31 Thread Sasha Levin
From: Geert Uytterhoeven [ Upstream commit 760eea43f8c6d48684f1f34b8a02fddc1456e849 ] The workqueue used for monitoring the hardware may run while the device is already suspended. Fix this by using the freezable system workqueue instead, cfr. commit 51e20d0e3a60cf46 ("thermal: Prevent polling

Re: [PATCH 1/2] i2c: Remove unnecessary call to irq_find_mapping

2018-10-31 Thread Wolfram Sang
On Fri, Oct 19, 2018 at 09:59:57AM +0100, Charles Keepax wrote: > irq_create_mapping calls irq_find_mapping internally and will use the > found mapping if one exists, so there is no need to manually call this > from i2c_smbus_host_notify_to_irq. > > Signed-off-by: Charles Keepax Applied to

[PATCH AUTOSEL 4.18 071/126] libata: Apply NOLPM quirk for SAMSUNG MZ7TD256HAFV-000L9

2018-10-31 Thread Sasha Levin
From: Diego Viola [ Upstream commit a435ab4f80f983c53b4ca4f8c12b3ddd3ca17670 ] med_power_with_dipm causes my T450 to freeze with a SAMSUNG MZ7TD256HAFV-000L9 SSD (firmware DXT02L5Q). Switching the LPM to max_performance fixes this issue. Acked-by: Hans de Goede Signed-off-by: Diego Viola

[PATCH AUTOSEL 4.18 075/126] net: stmmac: dwmac-sun8i: fix OF child-node lookup

2018-10-31 Thread Sasha Levin
From: Johan Hovold [ Upstream commit ac63043d8cb5503c7e0fe110f947eacf2663804e ] Use the new of_get_compatible_child() helper to lookup the mdio-internal child node instead of using of_find_compatible_node(), which searches the entire tree from a given start node and thus can return an unrelated

[PATCH AUTOSEL 4.18 077/126] MD: Memory leak when flush bio size is zero

2018-10-31 Thread Sasha Levin
From: Xiao Ni [ Upstream commit af9b926de9c5986ab009e64917de87c9758bab10 ] flush_pool is leaked when flush bio size is zero Fixes: 5a409b4f56d5 ("MD: fix lock contention for flush bios") Signed-off-by: David Jeffery Signed-off-by: Xiao Ni Signed-off-by: Shaohua Li Signed-off-by: Sasha Levin

[PATCH AUTOSEL 4.18 068/126] ixgbe: disallow IPsec Tx offload when in SR-IOV mode

2018-10-31 Thread Sasha Levin
From: Shannon Nelson [ Upstream commit 47b6f50077e68bcd544f657526dad4bfdce7e87d ] There seems to be a problem in the x540's internal switch wherein if SR-IOV mode is enabled and an offloaded IPsec packet is sent to a local VF, the packet is silently dropped. This might never be a problem as it

[PATCH AUTOSEL 4.18 069/126] ixgbevf: VF2VF TCP RSS

2018-10-31 Thread Sasha Levin
From: Sebastian Basierski [ Upstream commit 7fb94bd58dd6650a0158e68d414e185077d8b57a ] While VF2VF with RSS communication, RSS Type were wrongly recognized and RSS hash was not calculated as it should be. Packets was distributed on various queues by accident. This commit fixes that behaviour

[PATCH AUTOSEL 4.18 070/126] ath10k: schedule hardware restart if WMI command times out

2018-10-31 Thread Sasha Levin
From: Martin Willi [ Upstream commit a9911937e7d332761e8c4fcbc7ba0426bdc3956f ] When running in AP mode, ath10k sometimes suffers from TX credit starvation. The issue is hard to reproduce and shows up once in a few days, but has been repeatedly seen with QCA9882 and a large range of firmwares,

[PATCH AUTOSEL 4.18 076/126] f2fs: fix to account IO correctly for cgroup writeback

2018-10-31 Thread Sasha Levin
From: Chao Yu [ Upstream commit 78efac537de33faab9a4302cc05a70bb4a8b3b63 ] Now, we have supported cgroup writeback, it depends on correctly IO account of specified filesystem. But in commit d1b3e72d5490 ("f2fs: submit bio of in-place-update pages"), we split write paths from

[PATCH AUTOSEL 4.18 071/126] libata: Apply NOLPM quirk for SAMSUNG MZ7TD256HAFV-000L9

2018-10-31 Thread Sasha Levin
From: Diego Viola [ Upstream commit a435ab4f80f983c53b4ca4f8c12b3ddd3ca17670 ] med_power_with_dipm causes my T450 to freeze with a SAMSUNG MZ7TD256HAFV-000L9 SSD (firmware DXT02L5Q). Switching the LPM to max_performance fixes this issue. Acked-by: Hans de Goede Signed-off-by: Diego Viola

[PATCH AUTOSEL 4.18 075/126] net: stmmac: dwmac-sun8i: fix OF child-node lookup

2018-10-31 Thread Sasha Levin
From: Johan Hovold [ Upstream commit ac63043d8cb5503c7e0fe110f947eacf2663804e ] Use the new of_get_compatible_child() helper to lookup the mdio-internal child node instead of using of_find_compatible_node(), which searches the entire tree from a given start node and thus can return an unrelated

[PATCH AUTOSEL 4.18 077/126] MD: Memory leak when flush bio size is zero

2018-10-31 Thread Sasha Levin
From: Xiao Ni [ Upstream commit af9b926de9c5986ab009e64917de87c9758bab10 ] flush_pool is leaked when flush bio size is zero Fixes: 5a409b4f56d5 ("MD: fix lock contention for flush bios") Signed-off-by: David Jeffery Signed-off-by: Xiao Ni Signed-off-by: Shaohua Li Signed-off-by: Sasha Levin

[PATCH AUTOSEL 4.18 068/126] ixgbe: disallow IPsec Tx offload when in SR-IOV mode

2018-10-31 Thread Sasha Levin
From: Shannon Nelson [ Upstream commit 47b6f50077e68bcd544f657526dad4bfdce7e87d ] There seems to be a problem in the x540's internal switch wherein if SR-IOV mode is enabled and an offloaded IPsec packet is sent to a local VF, the packet is silently dropped. This might never be a problem as it

[PATCH AUTOSEL 4.18 069/126] ixgbevf: VF2VF TCP RSS

2018-10-31 Thread Sasha Levin
From: Sebastian Basierski [ Upstream commit 7fb94bd58dd6650a0158e68d414e185077d8b57a ] While VF2VF with RSS communication, RSS Type were wrongly recognized and RSS hash was not calculated as it should be. Packets was distributed on various queues by accident. This commit fixes that behaviour

[PATCH AUTOSEL 4.18 070/126] ath10k: schedule hardware restart if WMI command times out

2018-10-31 Thread Sasha Levin
From: Martin Willi [ Upstream commit a9911937e7d332761e8c4fcbc7ba0426bdc3956f ] When running in AP mode, ath10k sometimes suffers from TX credit starvation. The issue is hard to reproduce and shows up once in a few days, but has been repeatedly seen with QCA9882 and a large range of firmwares,

[PATCH AUTOSEL 4.18 076/126] f2fs: fix to account IO correctly for cgroup writeback

2018-10-31 Thread Sasha Levin
From: Chao Yu [ Upstream commit 78efac537de33faab9a4302cc05a70bb4a8b3b63 ] Now, we have supported cgroup writeback, it depends on correctly IO account of specified filesystem. But in commit d1b3e72d5490 ("f2fs: submit bio of in-place-update pages"), we split write paths from

Re: [PATCH 1/2] i2c: Remove unnecessary call to irq_find_mapping

2018-10-31 Thread Wolfram Sang
On Fri, Oct 19, 2018 at 09:59:57AM +0100, Charles Keepax wrote: > irq_create_mapping calls irq_find_mapping internally and will use the > found mapping if one exists, so there is no need to manually call this > from i2c_smbus_host_notify_to_irq. > > Signed-off-by: Charles Keepax Applied to

[PATCH AUTOSEL 4.18 086/126] RDMA/bnxt_re: Avoid accessing nq->bar_reg_iomem in failure case

2018-10-31 Thread Sasha Levin
From: Selvin Xavier [ Upstream commit ed51efd2ce44091a858ad829f666727e7c95695e ] In the failure path, nq->bar_reg_iomem gets accessed without initializing. Avoid this by calling the bnxt_qplib_nq_stop_irq only if the initialization is complete. Reported-by: Dan Carpenter Fixes: 1ac5a4047975

[PATCH AUTOSEL 4.18 082/126] KVM: nVMX: Clear reserved bits of #DB exit qualification

2018-10-31 Thread Sasha Levin
From: Jim Mattson [ Upstream commit cfb634fe3052aefc4e1360fa322018c9a0b49755 ] According to volume 3 of the SDM, bits 63:15 and 12:4 of the exit qualification field for debug exceptions are reserved (cleared to 0). However, the SDM is incorrect about bit 16 (corresponding to DR6.RTM). This bit

[PATCH AUTOSEL 4.18 079/126] scsi: esp_scsi: Track residual for PIO transfers

2018-10-31 Thread Sasha Levin
From: Finn Thain [ Upstream commit fd47d919d0c336e7c22862b51ee94927ffea227a ] If a target disconnects during a PIO data transfer the command may fail when the target reconnects: scsi host1: DMA length is zero! scsi host1: cur adr[0438] len[] The scsi bus is then reset. This

[PATCH AUTOSEL 4.18 084/126] RDMA/core: Do not expose unsupported counters

2018-10-31 Thread Sasha Levin
From: Parav Pandit [ Upstream commit 0f6ef65d1c6ec8deb5d0f11f86631ec4cfe8f22e ] If the provider driver (such as rdma_rxe) doesn't support pma counters, avoid exposing its directory similar to optional hw_counters directory. If core fails to read the PMA counter, return an error so that user can

[PATCH AUTOSEL 4.18 086/126] RDMA/bnxt_re: Avoid accessing nq->bar_reg_iomem in failure case

2018-10-31 Thread Sasha Levin
From: Selvin Xavier [ Upstream commit ed51efd2ce44091a858ad829f666727e7c95695e ] In the failure path, nq->bar_reg_iomem gets accessed without initializing. Avoid this by calling the bnxt_qplib_nq_stop_irq only if the initialization is complete. Reported-by: Dan Carpenter Fixes: 1ac5a4047975

[PATCH AUTOSEL 4.18 082/126] KVM: nVMX: Clear reserved bits of #DB exit qualification

2018-10-31 Thread Sasha Levin
From: Jim Mattson [ Upstream commit cfb634fe3052aefc4e1360fa322018c9a0b49755 ] According to volume 3 of the SDM, bits 63:15 and 12:4 of the exit qualification field for debug exceptions are reserved (cleared to 0). However, the SDM is incorrect about bit 16 (corresponding to DR6.RTM). This bit

[PATCH AUTOSEL 4.18 079/126] scsi: esp_scsi: Track residual for PIO transfers

2018-10-31 Thread Sasha Levin
From: Finn Thain [ Upstream commit fd47d919d0c336e7c22862b51ee94927ffea227a ] If a target disconnects during a PIO data transfer the command may fail when the target reconnects: scsi host1: DMA length is zero! scsi host1: cur adr[0438] len[] The scsi bus is then reset. This

[PATCH AUTOSEL 4.18 084/126] RDMA/core: Do not expose unsupported counters

2018-10-31 Thread Sasha Levin
From: Parav Pandit [ Upstream commit 0f6ef65d1c6ec8deb5d0f11f86631ec4cfe8f22e ] If the provider driver (such as rdma_rxe) doesn't support pma counters, avoid exposing its directory similar to optional hw_counters directory. If core fails to read the PMA counter, return an error so that user can

[PATCH AUTOSEL 4.18 080/126] scsi: ufs: Schedule clk gating work on correct queue

2018-10-31 Thread Sasha Levin
From: Evan Green [ Upstream commit f4bb7704699beee9edfbee875daa9089c86cf724 ] With commit 10e5e37581fc ("scsi: ufs: Add clock ungating to a separate workqueue"), clock gating work was moved to a separate work queue with WQ_MEM_RECLAIM set, since clock gating could occur from a memory reclaim

[PATCH AUTOSEL 4.18 083/126] scsi: megaraid_sas: fix a missing-check bug

2018-10-31 Thread Sasha Levin
From: Wenwen Wang [ Upstream commit 47db7873136a9c57c45390a53b57019cf73c8259 ] In megasas_mgmt_compat_ioctl_fw(), to handle the structure compat_megasas_iocpacket 'cioc', a user-space structure megasas_iocpacket 'ioc' is allocated before megasas_mgmt_ioctl_fw() is invoked to handle the packet.

[PATCH AUTOSEL 4.18 080/126] scsi: ufs: Schedule clk gating work on correct queue

2018-10-31 Thread Sasha Levin
From: Evan Green [ Upstream commit f4bb7704699beee9edfbee875daa9089c86cf724 ] With commit 10e5e37581fc ("scsi: ufs: Add clock ungating to a separate workqueue"), clock gating work was moved to a separate work queue with WQ_MEM_RECLAIM set, since clock gating could occur from a memory reclaim

[PATCH AUTOSEL 4.18 083/126] scsi: megaraid_sas: fix a missing-check bug

2018-10-31 Thread Sasha Levin
From: Wenwen Wang [ Upstream commit 47db7873136a9c57c45390a53b57019cf73c8259 ] In megasas_mgmt_compat_ioctl_fw(), to handle the structure compat_megasas_iocpacket 'cioc', a user-space structure megasas_iocpacket 'ioc' is allocated before megasas_mgmt_ioctl_fw() is invoked to handle the packet.

[PATCH AUTOSEL 4.18 081/126] UAPI: ndctl: Fix g++-unsupported initialisation in headers

2018-10-31 Thread Sasha Levin
From: David Howells [ Upstream commit 9607871f37dc3e717639694b8d0dc738f2a68efc ] The following code in the linux/ndctl header file: static inline const char *nvdimm_bus_cmd_name(unsigned cmd) { static const char * const names[] = {

[PATCH AUTOSEL 4.18 081/126] UAPI: ndctl: Fix g++-unsupported initialisation in headers

2018-10-31 Thread Sasha Levin
From: David Howells [ Upstream commit 9607871f37dc3e717639694b8d0dc738f2a68efc ] The following code in the linux/ndctl header file: static inline const char *nvdimm_bus_cmd_name(unsigned cmd) { static const char * const names[] = {

[PATCH AUTOSEL 4.18 090/126] PCI: cadence: Use AXI region 0 to signal interrupts from EP

2018-10-31 Thread Sasha Levin
From: Alan Douglas [ Upstream commit 0652d4b6b56f73c81abbdbc7e26f772cb2dfe370 ] The IRQ physical address is allocated from region 0, rather than the highest region. Update the driver to reserve this region in the bitmap and to use region 0 for all types of interrupt. This corrects a problem

[PATCH AUTOSEL 4.18 090/126] PCI: cadence: Use AXI region 0 to signal interrupts from EP

2018-10-31 Thread Sasha Levin
From: Alan Douglas [ Upstream commit 0652d4b6b56f73c81abbdbc7e26f772cb2dfe370 ] The IRQ physical address is allocated from region 0, rather than the highest region. Update the driver to reserve this region in the bitmap and to use region 0 for all types of interrupt. This corrects a problem

RE: [PATCH AUTOSEL 4.19 109/146] Drivers: hv: kvp: Fix two "this statement may fall through" warnings

2018-10-31 Thread Dexuan Cui
> From: Sasha Levin > Sent: Wednesday, October 31, 2018 16:05 > To: sta...@vger.kernel.org; linux-kernel@vger.kernel.org > Cc: Dexuan Cui ; KY Srinivasan ; > Haiyang Zhang ; Stephen Hemminger > ; sta...@vger.kernel.org; Greg Kroah-Hartman > ; Sasha Levin > Subject: [PATCH AUTOSEL 4.19 109/146]

RE: [PATCH AUTOSEL 4.19 109/146] Drivers: hv: kvp: Fix two "this statement may fall through" warnings

2018-10-31 Thread Dexuan Cui
> From: Sasha Levin > Sent: Wednesday, October 31, 2018 16:05 > To: sta...@vger.kernel.org; linux-kernel@vger.kernel.org > Cc: Dexuan Cui ; KY Srinivasan ; > Haiyang Zhang ; Stephen Hemminger > ; sta...@vger.kernel.org; Greg Kroah-Hartman > ; Sasha Levin > Subject: [PATCH AUTOSEL 4.19 109/146]

[PATCH AUTOSEL 4.18 088/126] usb: host: ohci-at91: fix request of irq for optional gpio

2018-10-31 Thread Sasha Levin
From: "tudor.amba...@microchip.com" [ Upstream commit 325b9313ec3be56c8e2fe03f977fee19cec75820 ] atmel,oc-gpio is optional. Request its irq only when atmel,oc is set in device tree. devm_gpiod_get_index_optional returns NULL if -ENOENT. Check its return value for NULL before error, because it

[PATCH AUTOSEL 4.18 089/126] PCI: mediatek: Fix mtk_pcie_find_port() endpoint/port matching logic

2018-10-31 Thread Sasha Levin
From: Honghui Zhang [ Upstream commit 074d6f32689ce05a084b6fa3db38445745bf11cc ] The Mediatek's host controller has two slots, each with its own control registers. The host driver needs to identify what slot is connected to what port in order to access the device's configuration space. Current

Re: [RFC] sunrpc: Fix flood of warnings from iov_iter_kvec in linux-next

2018-10-31 Thread Stephen Rothwell
linux-next like this: > > [ cut here ] > WARNING: CPU: 0 PID: 110 at ../lib/iov_iter.c:1082 iov_iter_kvec+0x4c/0x5c > Modules linked in: > CPU: 0 PID: 110 Comm: kworker/u3:2 Tainted: GW > 4.19.0-next-20181031 #157 > Hardware name: Freescale i.MX6 So

[PATCH AUTOSEL 4.18 087/126] RDMA/bnxt_re: Fix recursive lock warning in debug kernel

2018-10-31 Thread Sasha Levin
From: Selvin Xavier [ Upstream commit d455f29f6d76a5f94881ca1289aaa1e90617ff5d ] Fix possible recursive lock warning. Its a false warning as the locks are part of two differnt HW Queue data structure - cmdq and creq. Debug kernel is throwing the following warning and stack trace. [

[PATCH AUTOSEL 4.18 092/126] tpm: suppress transmit cmd error logs when TPM 1.2 is disabled/deactivated

2018-10-31 Thread Sasha Levin
From: Javier Martinez Canillas [ Upstream commit 0d6d0d62d9505a9816716aa484ebd0b04c795063 ] For TPM 1.2 chips the system setup utility allows to set the TPM device in one of the following states: * Active: Security chip is functional * Inactive: Security chip is visible, but is not

[PATCH AUTOSEL 4.18 088/126] usb: host: ohci-at91: fix request of irq for optional gpio

2018-10-31 Thread Sasha Levin
From: "tudor.amba...@microchip.com" [ Upstream commit 325b9313ec3be56c8e2fe03f977fee19cec75820 ] atmel,oc-gpio is optional. Request its irq only when atmel,oc is set in device tree. devm_gpiod_get_index_optional returns NULL if -ENOENT. Check its return value for NULL before error, because it

[PATCH AUTOSEL 4.18 089/126] PCI: mediatek: Fix mtk_pcie_find_port() endpoint/port matching logic

2018-10-31 Thread Sasha Levin
From: Honghui Zhang [ Upstream commit 074d6f32689ce05a084b6fa3db38445745bf11cc ] The Mediatek's host controller has two slots, each with its own control registers. The host driver needs to identify what slot is connected to what port in order to access the device's configuration space. Current

Re: [RFC] sunrpc: Fix flood of warnings from iov_iter_kvec in linux-next

2018-10-31 Thread Stephen Rothwell
linux-next like this: > > [ cut here ] > WARNING: CPU: 0 PID: 110 at ../lib/iov_iter.c:1082 iov_iter_kvec+0x4c/0x5c > Modules linked in: > CPU: 0 PID: 110 Comm: kworker/u3:2 Tainted: GW > 4.19.0-next-20181031 #157 > Hardware name: Freescale i.MX6 So

[PATCH AUTOSEL 4.18 087/126] RDMA/bnxt_re: Fix recursive lock warning in debug kernel

2018-10-31 Thread Sasha Levin
From: Selvin Xavier [ Upstream commit d455f29f6d76a5f94881ca1289aaa1e90617ff5d ] Fix possible recursive lock warning. Its a false warning as the locks are part of two differnt HW Queue data structure - cmdq and creq. Debug kernel is throwing the following warning and stack trace. [

[PATCH AUTOSEL 4.18 092/126] tpm: suppress transmit cmd error logs when TPM 1.2 is disabled/deactivated

2018-10-31 Thread Sasha Levin
From: Javier Martinez Canillas [ Upstream commit 0d6d0d62d9505a9816716aa484ebd0b04c795063 ] For TPM 1.2 chips the system setup utility allows to set the TPM device in one of the following states: * Active: Security chip is functional * Inactive: Security chip is visible, but is not

[PATCH AUTOSEL 4.18 097/126] PCI / ACPI: Enable wake automatically for power managed bridges

2018-10-31 Thread Sasha Levin
From: Mika Westerberg [ Upstream commit 6299cf9ec3985cac70bede8a855b5087b81a6640 ] We enable power management automatically for bridges where pci_bridge_d3_possible() returns true. However, these bridges may have ACPI methods such as _DSW that need to be called before D3 entry. For example in

[PATCH AUTOSEL 4.18 093/126] f2fs: clear PageError on the read path

2018-10-31 Thread Sasha Levin
From: Jaegeuk Kim [ Upstream commit fb7d70db305a1446864227abf711b756568f8242 ] When running fault injection test, I hit somewhat wrong behavior in f2fs_gc -> gc_data_segment(): 0. fault injection generated some PageError'ed pages 1. gc_data_segment -> f2fs_get_read_data_page(REQ_RAHEAD) 2.

[PATCH AUTOSEL 4.18 097/126] PCI / ACPI: Enable wake automatically for power managed bridges

2018-10-31 Thread Sasha Levin
From: Mika Westerberg [ Upstream commit 6299cf9ec3985cac70bede8a855b5087b81a6640 ] We enable power management automatically for bridges where pci_bridge_d3_possible() returns true. However, these bridges may have ACPI methods such as _DSW that need to be called before D3 entry. For example in

[PATCH AUTOSEL 4.18 093/126] f2fs: clear PageError on the read path

2018-10-31 Thread Sasha Levin
From: Jaegeuk Kim [ Upstream commit fb7d70db305a1446864227abf711b756568f8242 ] When running fault injection test, I hit somewhat wrong behavior in f2fs_gc -> gc_data_segment(): 0. fault injection generated some PageError'ed pages 1. gc_data_segment -> f2fs_get_read_data_page(REQ_RAHEAD) 2.

[PATCH AUTOSEL 4.18 102/126] ext4: fix argument checking in EXT4_IOC_MOVE_EXT

2018-10-31 Thread Sasha Levin
From: Theodore Ts'o [ Upstream commit f18b2b83a727a3db208308057d2c7945f368e625 ] If the starting block number of either the source or destination file exceeds the EOF, EXT4_IOC_MOVE_EXT should return EINVAL. Also fixed the helper function mext_check_coverage() so that if the logical block is

[PATCH AUTOSEL 4.18 096/126] VMCI: Resource wildcard match fixed

2018-10-31 Thread Sasha Levin
From: Jorgen Hansen [ Upstream commit 11924ba5e671d6caef1516923e2bd8c72929a3fe ] When adding a VMCI resource, the check for an existing entry would ignore that the new entry could be a wildcard. This could result in multiple resource entries that would match a given handle. One disastrous

[PATCH AUTOSEL 4.18 102/126] ext4: fix argument checking in EXT4_IOC_MOVE_EXT

2018-10-31 Thread Sasha Levin
From: Theodore Ts'o [ Upstream commit f18b2b83a727a3db208308057d2c7945f368e625 ] If the starting block number of either the source or destination file exceeds the EOF, EXT4_IOC_MOVE_EXT should return EINVAL. Also fixed the helper function mext_check_coverage() so that if the logical block is

[PATCH AUTOSEL 4.18 096/126] VMCI: Resource wildcard match fixed

2018-10-31 Thread Sasha Levin
From: Jorgen Hansen [ Upstream commit 11924ba5e671d6caef1516923e2bd8c72929a3fe ] When adding a VMCI resource, the check for an existing entry would ignore that the new entry could be a wildcard. This could result in multiple resource entries that would match a given handle. One disastrous

[PATCH AUTOSEL 4.18 100/126] usb: dwc2: fix a race with external vbus supply

2018-10-31 Thread Sasha Levin
From: Fabrice Gasnier [ Upstream commit 41ee1ea21052583eaf5487dfa0d0c907c9667548 ] There's a race with root hub resume, when using external vbus supply. Root hub gets resumed, but runtime pm autosuspend runs as external vbus supply isn't enabled. So, host never exit from power down properly.

[PATCH AUTOSEL 4.18 099/126] irqchip/pdc: Setup all edge interrupts as rising edge at GIC

2018-10-31 Thread Sasha Levin
From: Lina Iyer [ Upstream commit 7bae48b22c8d38c5cd50f52b6e15d134e2bb3935 ] The PDC irqchp can convert a falling edge or level low interrupt to a rising edge or level high interrupt at the GIC. We just need to setup the GIC correctly. Set up the interrupt type for the IRQ_TYPE_EDGE_BOTH as

[PATCH AUTOSEL 4.18 094/126] Drivers: hv: vmbus: Use cpumask_var_t for on-stack cpu mask

2018-10-31 Thread Sasha Levin
From: Dexuan Cui [ Upstream commit 25355252607ca288f329ee033f387764883393f6 ] A cpumask structure on the stack can cause a warning with CONFIG_NR_CPUS=8192 (e.g. Ubuntu 16.04 and 18.04 use this): drivers/hv//channel_mgmt.c: In function ‘init_vp_index’: drivers/hv//channel_mgmt.c:702:1:

[PATCH AUTOSEL 4.18 103/126] MD: fix invalid stored role for a disk

2018-10-31 Thread Sasha Levin
From: Shaohua Li [ Upstream commit d595567dc4f0c1d90685ec1e2e296e2cad2643ac ] If we change the number of array's device after device is removed from array, then add the device back to array, we can see that device is added as active role instead of spare which we expected. Please see the below

[PATCH AUTOSEL 4.18 105/126] xhci: Avoid USB autosuspend when resuming USB2 ports.

2018-10-31 Thread Sasha Levin
From: Anshuman Gupta [ Upstream commit 330e2d61cdd58363eb5e66b2e72f76fe3c5492e0 ] When USB bus host controller root hub resumes from autosuspend, it immediately tries to enter auto-suspend, but there can be a scenario when root hub is resuming its usb2 ports, in that particular case USB host

[PATCH AUTOSEL 4.18 098/126] xprtrdma: Reset credit grant properly after a disconnect

2018-10-31 Thread Sasha Levin
From: Chuck Lever [ Upstream commit ef739b2175dde9c05594f768cb78149f1ce2ac36 ] On a fresh connection, an RPC/RDMA client is supposed to send only one RPC Call until it gets a credit grant in the first RPC Reply from the server [RFC 8166, Section 3.3.3]. There is a bug in the Linux client's

[PATCH AUTOSEL 4.18 104/126] nvmem: check the return value of nvmem_add_cells()

2018-10-31 Thread Sasha Levin
From: Bartosz Golaszewski [ Upstream commit fa72d847d68d7833b77a4bef944cf2c5baf56f49 ] This function can fail so check its return value in nvmem_register() and act accordingly. Signed-off-by: Bartosz Golaszewski Signed-off-by: Srinivas Kandagatla Signed-off-by: Greg Kroah-Hartman

[PATCH AUTOSEL 4.18 095/126] Drivers: hv: kvp: Fix two "this statement may fall through" warnings

2018-10-31 Thread Sasha Levin
From: Dexuan Cui [ Upstream commit fc62c3b1977d62e6374fd6e28d371bb42dfa5c9d ] We don't need to call process_ib_ipinfo() if message->kvp_hdr.operation is KVP_OP_GET_IP_INFO in kvp_send_key(), because here we just need to pass on the op code from the host to the userspace; when the userspace

[PATCH AUTOSEL 4.18 103/126] MD: fix invalid stored role for a disk

2018-10-31 Thread Sasha Levin
From: Shaohua Li [ Upstream commit d595567dc4f0c1d90685ec1e2e296e2cad2643ac ] If we change the number of array's device after device is removed from array, then add the device back to array, we can see that device is added as active role instead of spare which we expected. Please see the below

[PATCH AUTOSEL 4.18 105/126] xhci: Avoid USB autosuspend when resuming USB2 ports.

2018-10-31 Thread Sasha Levin
From: Anshuman Gupta [ Upstream commit 330e2d61cdd58363eb5e66b2e72f76fe3c5492e0 ] When USB bus host controller root hub resumes from autosuspend, it immediately tries to enter auto-suspend, but there can be a scenario when root hub is resuming its usb2 ports, in that particular case USB host

[PATCH AUTOSEL 4.18 098/126] xprtrdma: Reset credit grant properly after a disconnect

2018-10-31 Thread Sasha Levin
From: Chuck Lever [ Upstream commit ef739b2175dde9c05594f768cb78149f1ce2ac36 ] On a fresh connection, an RPC/RDMA client is supposed to send only one RPC Call until it gets a credit grant in the first RPC Reply from the server [RFC 8166, Section 3.3.3]. There is a bug in the Linux client's

[PATCH AUTOSEL 4.18 104/126] nvmem: check the return value of nvmem_add_cells()

2018-10-31 Thread Sasha Levin
From: Bartosz Golaszewski [ Upstream commit fa72d847d68d7833b77a4bef944cf2c5baf56f49 ] This function can fail so check its return value in nvmem_register() and act accordingly. Signed-off-by: Bartosz Golaszewski Signed-off-by: Srinivas Kandagatla Signed-off-by: Greg Kroah-Hartman

[PATCH AUTOSEL 4.18 095/126] Drivers: hv: kvp: Fix two "this statement may fall through" warnings

2018-10-31 Thread Sasha Levin
From: Dexuan Cui [ Upstream commit fc62c3b1977d62e6374fd6e28d371bb42dfa5c9d ] We don't need to call process_ib_ipinfo() if message->kvp_hdr.operation is KVP_OP_GET_IP_INFO in kvp_send_key(), because here we just need to pass on the op code from the host to the userspace; when the userspace

[PATCH AUTOSEL 4.18 100/126] usb: dwc2: fix a race with external vbus supply

2018-10-31 Thread Sasha Levin
From: Fabrice Gasnier [ Upstream commit 41ee1ea21052583eaf5487dfa0d0c907c9667548 ] There's a race with root hub resume, when using external vbus supply. Root hub gets resumed, but runtime pm autosuspend runs as external vbus supply isn't enabled. So, host never exit from power down properly.

[PATCH AUTOSEL 4.18 099/126] irqchip/pdc: Setup all edge interrupts as rising edge at GIC

2018-10-31 Thread Sasha Levin
From: Lina Iyer [ Upstream commit 7bae48b22c8d38c5cd50f52b6e15d134e2bb3935 ] The PDC irqchp can convert a falling edge or level low interrupt to a rising edge or level high interrupt at the GIC. We just need to setup the GIC correctly. Set up the interrupt type for the IRQ_TYPE_EDGE_BOTH as

[PATCH AUTOSEL 4.18 094/126] Drivers: hv: vmbus: Use cpumask_var_t for on-stack cpu mask

2018-10-31 Thread Sasha Levin
From: Dexuan Cui [ Upstream commit 25355252607ca288f329ee033f387764883393f6 ] A cpumask structure on the stack can cause a warning with CONFIG_NR_CPUS=8192 (e.g. Ubuntu 16.04 and 18.04 use this): drivers/hv//channel_mgmt.c: In function ‘init_vp_index’: drivers/hv//channel_mgmt.c:702:1:

[PATCH AUTOSEL 4.18 111/126] crypto: caam - fix implicit casts in endianness helpers

2018-10-31 Thread Sasha Levin
From: Horia Geantă [ Upstream commit aae733a3f46f5ef338fbdde26e14cbb205a23de0 ] Fix the following sparse endianness warnings: drivers/crypto/caam/regs.h:95:1: sparse: incorrect type in return expression (different base types) @@expected unsigned int @@got restricted __le32unsigned

[PATCH AUTOSEL 4.18 109/126] coresight: etb10: Fix handling of perf mode

2018-10-31 Thread Sasha Levin
From: Suzuki K Poulose [ Upstream commit 987d1e8dcd370d96029a3d76a0031b043c4a69ae ] If the ETB is already enabled in sysfs mode, the ETB reports success even if a perf mode is requested. Fix this by checking the requested mode. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose

[PATCH AUTOSEL 4.18 107/126] f2fs: fix to recover inode's i_flags during POR

2018-10-31 Thread Sasha Levin
From: Chao Yu [ Upstream commit 19c73a691ccf6fb2f12d4e9cf9830023966cec88 ] Testcase to reproduce this bug: 1. mkfs.f2fs /dev/sdd 2. mount -t f2fs /dev/sdd /mnt/f2fs 3. touch /mnt/f2fs/file 4. sync 5. chattr +A /mnt/f2fs/file 6. xfs_io -f /mnt/f2fs/file -c "fsync" 7. godown /mnt/f2fs 8. umount

[PATCH AUTOSEL 4.18 110/126] PCI: dwc: pci-dra7xx: Enable errata i870 for both EP and RC mode

2018-10-31 Thread Sasha Levin
From: Vignesh R [ Upstream commit 726d75a6d243bf6730da3216f3592503f6f0f588 ] Errata i870 is applicable in both EP and RC mode. Therefore rename function dra7xx_pcie_ep_unaligned_memaccess(), that implements errata workaround, to dra7xx_pcie_unaligned_memaccess() and call it for both RC and EP.

[PATCH AUTOSEL 4.18 109/126] coresight: etb10: Fix handling of perf mode

2018-10-31 Thread Sasha Levin
From: Suzuki K Poulose [ Upstream commit 987d1e8dcd370d96029a3d76a0031b043c4a69ae ] If the ETB is already enabled in sysfs mode, the ETB reports success even if a perf mode is requested. Fix this by checking the requested mode. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose

[PATCH AUTOSEL 4.18 107/126] f2fs: fix to recover inode's i_flags during POR

2018-10-31 Thread Sasha Levin
From: Chao Yu [ Upstream commit 19c73a691ccf6fb2f12d4e9cf9830023966cec88 ] Testcase to reproduce this bug: 1. mkfs.f2fs /dev/sdd 2. mount -t f2fs /dev/sdd /mnt/f2fs 3. touch /mnt/f2fs/file 4. sync 5. chattr +A /mnt/f2fs/file 6. xfs_io -f /mnt/f2fs/file -c "fsync" 7. godown /mnt/f2fs 8. umount

[PATCH AUTOSEL 4.18 110/126] PCI: dwc: pci-dra7xx: Enable errata i870 for both EP and RC mode

2018-10-31 Thread Sasha Levin
From: Vignesh R [ Upstream commit 726d75a6d243bf6730da3216f3592503f6f0f588 ] Errata i870 is applicable in both EP and RC mode. Therefore rename function dra7xx_pcie_ep_unaligned_memaccess(), that implements errata workaround, to dra7xx_pcie_unaligned_memaccess() and call it for both RC and EP.

[PATCH AUTOSEL 4.18 111/126] crypto: caam - fix implicit casts in endianness helpers

2018-10-31 Thread Sasha Levin
From: Horia Geantă [ Upstream commit aae733a3f46f5ef338fbdde26e14cbb205a23de0 ] Fix the following sparse endianness warnings: drivers/crypto/caam/regs.h:95:1: sparse: incorrect type in return expression (different base types) @@expected unsigned int @@got restricted __le32unsigned

[PATCH AUTOSEL 4.18 112/126] usb: chipidea: Prevent unbalanced IRQ disable

2018-10-31 Thread Sasha Levin
From: Loic Poulain [ Upstream commit 8b97d73c4d72a2abf58f8e49062a7ee1e5f1334e ] The ChipIdea IRQ is disabled before scheduling the otg work and re-enabled on otg work completion. However if the job is already scheduled we have to undo the effect of disable_irq int order to balance the IRQ

[PATCH AUTOSEL 4.18 112/126] usb: chipidea: Prevent unbalanced IRQ disable

2018-10-31 Thread Sasha Levin
From: Loic Poulain [ Upstream commit 8b97d73c4d72a2abf58f8e49062a7ee1e5f1334e ] The ChipIdea IRQ is disabled before scheduling the otg work and re-enabled on otg work completion. However if the job is already scheduled we have to undo the effect of disable_irq int order to balance the IRQ

[PATCH AUTOSEL 4.18 114/126] driver/dma/ioat: Call del_timer_sync() without holding prep_lock

2018-10-31 Thread Sasha Levin
From: Waiman Long [ Upstream commit cfb03be6c7e8a1591285849c361d67b09f5149f7 ] The following lockdep splat was observed: [ 1222.241750] == [ 1222.271301] WARNING: possible circular locking dependency detected [ 1222.301060]

Re: [PATCH] drm: Rename crtc_idr as object_idr to KMS cleanups

2018-10-31 Thread Emil Velikov
Hi Shayenne, Welcome to DRM. As far as I can see you're a newcomer to kernel development, so I'd recommend watch a recent talk from Marc [1] He provides a very good introduction, both for newbies and for people willing the know the deeper reasons behind. That said, here's some suggestions: On

[PATCH AUTOSEL 4.18 117/126] uio: ensure class is registered before devices

2018-10-31 Thread Sasha Levin
From: Alexandre Belloni [ Upstream commit ae61cf5b9913027c6953a79ed3894da4f47061bd ] When both uio and the uio drivers are built in the kernel, it is possible for a driver to register devices before the uio class is registered. This may result in a NULL pointer dereference later on in

[PATCH AUTOSEL 4.18 114/126] driver/dma/ioat: Call del_timer_sync() without holding prep_lock

2018-10-31 Thread Sasha Levin
From: Waiman Long [ Upstream commit cfb03be6c7e8a1591285849c361d67b09f5149f7 ] The following lockdep splat was observed: [ 1222.241750] == [ 1222.271301] WARNING: possible circular locking dependency detected [ 1222.301060]

Re: [PATCH] drm: Rename crtc_idr as object_idr to KMS cleanups

2018-10-31 Thread Emil Velikov
Hi Shayenne, Welcome to DRM. As far as I can see you're a newcomer to kernel development, so I'd recommend watch a recent talk from Marc [1] He provides a very good introduction, both for newbies and for people willing the know the deeper reasons behind. That said, here's some suggestions: On

[PATCH AUTOSEL 4.18 117/126] uio: ensure class is registered before devices

2018-10-31 Thread Sasha Levin
From: Alexandre Belloni [ Upstream commit ae61cf5b9913027c6953a79ed3894da4f47061bd ] When both uio and the uio drivers are built in the kernel, it is possible for a driver to register devices before the uio class is registered. This may result in a NULL pointer dereference later on in

[PATCH AUTOSEL 4.18 123/126] mfd: menelaus: Fix possible race condition and leak

2018-10-31 Thread Sasha Levin
From: Alexandre Belloni [ Upstream commit 9612f8f503804d2fd2f63aa6ba1e58bba4612d96 ] The IRQ work is added before the struct rtc is allocated and registered, but this struct is used in the IRQ handler. This may lead to a NULL pointer dereference. Switch to

[PATCH AUTOSEL 4.18 121/126] f2fs: report error if quota off error during umount

2018-10-31 Thread Sasha Levin
From: Yunlei He [ Upstream commit cda9cc595f0bb6ffa51a4efc4b6533dfa4039b4c ] Now, we depend on fsck to ensure quota file data is ok, so we scan whole partition if checkpoint without umount flag. It's same for quota off error case, which may make quota file data inconsistent. generic/019

[PATCH AUTOSEL 4.18 123/126] mfd: menelaus: Fix possible race condition and leak

2018-10-31 Thread Sasha Levin
From: Alexandre Belloni [ Upstream commit 9612f8f503804d2fd2f63aa6ba1e58bba4612d96 ] The IRQ work is added before the struct rtc is allocated and registered, but this struct is used in the IRQ handler. This may lead to a NULL pointer dereference. Switch to

[PATCH AUTOSEL 4.18 121/126] f2fs: report error if quota off error during umount

2018-10-31 Thread Sasha Levin
From: Yunlei He [ Upstream commit cda9cc595f0bb6ffa51a4efc4b6533dfa4039b4c ] Now, we depend on fsck to ensure quota file data is ok, so we scan whole partition if checkpoint without umount flag. It's same for quota off error case, which may make quota file data inconsistent. generic/019

Re: [PATCH anybus v2 2/5] dt-bindings: anybus-bridge: document devicetree binding.

2018-10-31 Thread Andreas Färber
Hi Sven, Am 31.10.18 um 20:44 schrieb thesve...@gmail.com: > From: Sven Van Asbroeck > > This patch adds devicetree binding documentation for the > Arcx anybus bridge. > > Signed-off-by: Sven Van Asbroeck > --- > .../bindings/misc/arcx,anybus-bridge.txt | 34 +++ >

[PATCH AUTOSEL 4.18 116/126] IB/mlx5: Allow transition of DCI QP to reset

2018-10-31 Thread Sasha Levin
From: Moni Shoua [ Upstream commit 99ed748e878a99c6c7b87bbec063eefd9e47cb42 ] The transition is allowed from any state and the atrribute mask must be IB_QP_STATE. Fixes: c32a4f296e1d ("IB/mlx5: Add support for DC Initiator QP") Signed-off-by: Moni Shoua Reviewed-by: Artemy Kovalyov

[PATCH AUTOSEL 4.18 118/126] scsi: lpfc: Correct soft lockup when running mds diagnostics

2018-10-31 Thread Sasha Levin
From: James Smart [ Upstream commit 0ef01a2d95fd62bb4f536e7ce4d5e8e74b97a244 ] When running an mds diagnostic that passes frames with the switch, soft lockups are detected. The driver is in a CQE processing loop and has sufficient amount of traffic that it never exits the ring processing

Re: [PATCH anybus v2 2/5] dt-bindings: anybus-bridge: document devicetree binding.

2018-10-31 Thread Andreas Färber
Hi Sven, Am 31.10.18 um 20:44 schrieb thesve...@gmail.com: > From: Sven Van Asbroeck > > This patch adds devicetree binding documentation for the > Arcx anybus bridge. > > Signed-off-by: Sven Van Asbroeck > --- > .../bindings/misc/arcx,anybus-bridge.txt | 34 +++ >

[PATCH AUTOSEL 4.18 116/126] IB/mlx5: Allow transition of DCI QP to reset

2018-10-31 Thread Sasha Levin
From: Moni Shoua [ Upstream commit 99ed748e878a99c6c7b87bbec063eefd9e47cb42 ] The transition is allowed from any state and the atrribute mask must be IB_QP_STATE. Fixes: c32a4f296e1d ("IB/mlx5: Add support for DC Initiator QP") Signed-off-by: Moni Shoua Reviewed-by: Artemy Kovalyov

[PATCH AUTOSEL 4.18 118/126] scsi: lpfc: Correct soft lockup when running mds diagnostics

2018-10-31 Thread Sasha Levin
From: James Smart [ Upstream commit 0ef01a2d95fd62bb4f536e7ce4d5e8e74b97a244 ] When running an mds diagnostic that passes frames with the switch, soft lockups are detected. The driver is in a CQE processing loop and has sufficient amount of traffic that it never exits the ring processing

[PATCH AUTOSEL 4.18 125/126] IB/rxe: fix for duplicate request processing and ack psns

2018-10-31 Thread Sasha Levin
From: Vijay Immanuel [ Upstream commit b97db58557f4aa6d9903f8e1deea6b3d1ed0ba43 ] Don't reset the resp opcode for a replayed read response. The resp opcode could be in the middle of a write or send sequence, when the duplicate read request was received. An example sequence is as follows: -

[PATCH AUTOSEL 4.18 120/126] f2fs: avoid sleeping under spin_lock

2018-10-31 Thread Sasha Levin
From: Zhikang Zhang [ Upstream commit b430f7263673eab1dc40e662ae3441a9619d16b8 ] In the call trace below, we might sleep in function dput(). So in order to avoid sleeping under spin_lock, we remove f2fs_mark_inode_dirty_sync from __try_update_largest_extent && __drop_largest_extent. BUG:

[PATCH AUTOSEL 4.18 122/126] signal: Always deliver the kernel's SIGKILL and SIGSTOP to a pid namespace init

2018-10-31 Thread Sasha Levin
From: "Eric W. Biederman" [ Upstream commit 3597dfe01d12f570bc739da67f857fd222a3ea66 ] Instead of playing whack-a-mole and changing SEND_SIG_PRIV to SEND_SIG_FORCED throughout the kernel to ensure a pid namespace init gets signals sent by the kernel, stop allowing a pid namespace init to ignore

[PATCH AUTOSEL 4.18 125/126] IB/rxe: fix for duplicate request processing and ack psns

2018-10-31 Thread Sasha Levin
From: Vijay Immanuel [ Upstream commit b97db58557f4aa6d9903f8e1deea6b3d1ed0ba43 ] Don't reset the resp opcode for a replayed read response. The resp opcode could be in the middle of a write or send sequence, when the duplicate read request was received. An example sequence is as follows: -

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