[PATCH AUTOSEL for 4.9 025/190] platform/x86: asus-nb-wmi: Add wapf4 quirk for the X302UA

2018-03-07 Thread Sasha Levin
From: Santeri Toivonen [ Upstream commit f35823619db8bbaa2afea8705f239c3cecb9d22f ] Asus laptop X302UA starts up with Wi-Fi disabled, without a way to enable it. Set wapf=4 to fix the problem. Signed-off-by: Santeri Toivonen

[PATCH AUTOSEL for 4.9 025/190] platform/x86: asus-nb-wmi: Add wapf4 quirk for the X302UA

2018-03-07 Thread Sasha Levin
From: Santeri Toivonen [ Upstream commit f35823619db8bbaa2afea8705f239c3cecb9d22f ] Asus laptop X302UA starts up with Wi-Fi disabled, without a way to enable it. Set wapf=4 to fix the problem. Signed-off-by: Santeri Toivonen Signed-off-by: Darren Hart (VMware) Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL for 4.9 020/190] ath10k: fix compile time sanity check for CE4 buffer size

2018-03-07 Thread Sasha Levin
From: Mohammed Shafi Shajakhan [ Upstream commit 62ca0690cd495bb7c1414cdf0cf790c2922a1d79 ] In 'ath10k_ce_alloc_pipe' the compile time sanity check to ensure that there is sufficient buffers in CE4 for HTT Tx MSDU descriptors, but this did not take into account of the

[PATCH AUTOSEL for 4.9 020/190] ath10k: fix compile time sanity check for CE4 buffer size

2018-03-07 Thread Sasha Levin
From: Mohammed Shafi Shajakhan [ Upstream commit 62ca0690cd495bb7c1414cdf0cf790c2922a1d79 ] In 'ath10k_ce_alloc_pipe' the compile time sanity check to ensure that there is sufficient buffers in CE4 for HTT Tx MSDU descriptors, but this did not take into account of the case with 'peer flow

[PATCH AUTOSEL for 4.9 026/190] bonding: handle link transition from FAIL to UP correctly

2018-03-07 Thread Sasha Levin
From: Mahesh Bandewar [ Upstream commit fb9eb899a6dc663e4a2deed9af2ac28f507d0ffb ] When link transitions from LINK_FAIL to LINK_UP, the commit phase is not called. This leads to an erroneous state causing slave-link state to get stuck in "going down" state while its speed

[PATCH AUTOSEL for 4.9 026/190] bonding: handle link transition from FAIL to UP correctly

2018-03-07 Thread Sasha Levin
From: Mahesh Bandewar [ Upstream commit fb9eb899a6dc663e4a2deed9af2ac28f507d0ffb ] When link transitions from LINK_FAIL to LINK_UP, the commit phase is not called. This leads to an erroneous state causing slave-link state to get stuck in "going down" state while its speed and duplex are

[PATCH AUTOSEL for 4.9 028/190] power: supply: bq24190_charger: Limit over/under voltage fault logging

2018-03-07 Thread Sasha Levin
From: Liam Breck [ Upstream commit d63d07c6fc25182af6d3ab5b3b8737b0c1025ebd ] If the charger is unplugged before the battery is full we may see an over/under voltage fault. Ignore this rather then emitting a message or uevent. This fixes messages like these getting

[PATCH AUTOSEL for 4.9 028/190] power: supply: bq24190_charger: Limit over/under voltage fault logging

2018-03-07 Thread Sasha Levin
From: Liam Breck [ Upstream commit d63d07c6fc25182af6d3ab5b3b8737b0c1025ebd ] If the charger is unplugged before the battery is full we may see an over/under voltage fault. Ignore this rather then emitting a message or uevent. This fixes messages like these getting logged on charger unplug +

[PATCH AUTOSEL for 4.9 027/190] regulator: anatop: set default voltage selector for pcie

2018-03-07 Thread Sasha Levin
From: Dong Aisheng [ Upstream commit 9bf944548169f6153c3d3778cf983cb5db251a0e ] Set the initial voltage selector for vddpcie in case it's disabled by default. This fixes the below warning: 20c8000.anatop:regulator-vddpcie: Failed to read a valid default voltage selector.

[PATCH AUTOSEL for 4.9 027/190] regulator: anatop: set default voltage selector for pcie

2018-03-07 Thread Sasha Levin
From: Dong Aisheng [ Upstream commit 9bf944548169f6153c3d3778cf983cb5db251a0e ] Set the initial voltage selector for vddpcie in case it's disabled by default. This fixes the below warning: 20c8000.anatop:regulator-vddpcie: Failed to read a valid default voltage selector. anatop_regulator:

[PATCH AUTOSEL for 4.9 030/190] rtc: cmos: Do not assume irq 8 for rtc when there are no legacy irqs

2018-03-07 Thread Sasha Levin
From: Hans de Goede [ Upstream commit a1e23a42f1bdc00e32fc4869caef12e4e6272f26 ] On some systems (e.g. Intel Bay Trail systems) the legacy PIC is not used, in this case virq 8 will be a random irq, rather then hw_irq 8 from the PIC. Requesting virq 8 in this case will not

[PATCH AUTOSEL for 4.9 030/190] rtc: cmos: Do not assume irq 8 for rtc when there are no legacy irqs

2018-03-07 Thread Sasha Levin
From: Hans de Goede [ Upstream commit a1e23a42f1bdc00e32fc4869caef12e4e6272f26 ] On some systems (e.g. Intel Bay Trail systems) the legacy PIC is not used, in this case virq 8 will be a random irq, rather then hw_irq 8 from the PIC. Requesting virq 8 in this case will not help us to get alarm

Re: [PATCH net-next 00/23] net: hns3: HNS3 bug fixes & code improvements

2018-03-07 Thread David Miller
Sorry, this is way too large of a patch series. Please keep your series to about a dozen or so changes. Anything longer puts an unreasonable burdon upon patch reviewers, and such a large series will often make it so that nearly all reviewers are discouraged from taking a look at all. Thank

[PATCH AUTOSEL for 4.9 019/190] mac80211_hwsim: use per-interface power level

2018-03-07 Thread Sasha Levin
From: Johannes Berg [ Upstream commit 1d5e9f80ab021e3e1f9436627a4ad07a143ccb2c ] When channel contexts are used, there's no global power level (the power_level is always 0). Use the per-interface TX power in mac80211_hwsim to have a proper setting for both cases. This

[GIT PULL] chrome-platform fixes on v4.16-rc4

2018-03-07 Thread Benson Leung
Hi Linus, The following changes since commit 661e50bc853209e41a5c14a290ca4decc43cbfd1: Linux 4.16-rc4 (2018-03-04 14:54:11 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/bleung/chrome-platform.git tags/chrome-platform-4.16-rc4-fixes for you

Re: [PATCH net-next 00/23] net: hns3: HNS3 bug fixes & code improvements

2018-03-07 Thread David Miller
Sorry, this is way too large of a patch series. Please keep your series to about a dozen or so changes. Anything longer puts an unreasonable burdon upon patch reviewers, and such a large series will often make it so that nearly all reviewers are discouraged from taking a look at all. Thank

[PATCH AUTOSEL for 4.9 019/190] mac80211_hwsim: use per-interface power level

2018-03-07 Thread Sasha Levin
From: Johannes Berg [ Upstream commit 1d5e9f80ab021e3e1f9436627a4ad07a143ccb2c ] When channel contexts are used, there's no global power level (the power_level is always 0). Use the per-interface TX power in mac80211_hwsim to have a proper setting for both cases. This fixes the bgscan_simple

[GIT PULL] chrome-platform fixes on v4.16-rc4

2018-03-07 Thread Benson Leung
Hi Linus, The following changes since commit 661e50bc853209e41a5c14a290ca4decc43cbfd1: Linux 4.16-rc4 (2018-03-04 14:54:11 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/bleung/chrome-platform.git tags/chrome-platform-4.16-rc4-fixes for you

[PATCH AUTOSEL for 4.9 033/190] ACPI/processor: Fix error handling in __acpi_processor_start()

2018-03-07 Thread Sasha Levin
From: Thomas Gleixner [ Upstream commit a5cbdf693a60d5b86d4d21dfedd90f17754eb273 ] When acpi_install_notify_handler() fails the cooling device stays registered and the sysfs files created via acpi_pss_perf_init() are leaked and the function returns success. Undo

[PATCH AUTOSEL for 4.9 033/190] ACPI/processor: Fix error handling in __acpi_processor_start()

2018-03-07 Thread Sasha Levin
From: Thomas Gleixner [ Upstream commit a5cbdf693a60d5b86d4d21dfedd90f17754eb273 ] When acpi_install_notify_handler() fails the cooling device stays registered and the sysfs files created via acpi_pss_perf_init() are leaked and the function returns success. Undo acpi_pss_perf_init() and return

[PATCH AUTOSEL for 4.9 032/190] time: Change posix clocks ops interfaces to use timespec64

2018-03-07 Thread Sasha Levin
From: Deepa Dinamani [ Upstream commit d340266e19ddb70dbd608f9deedcfb35fdb9d419 ] struct timespec is not y2038 safe on 32 bit machines. The posix clocks apis use struct timespec directly and through struct itimerspec. Replace the posix clock interfaces to use struct

[PATCH AUTOSEL for 4.9 032/190] time: Change posix clocks ops interfaces to use timespec64

2018-03-07 Thread Sasha Levin
From: Deepa Dinamani [ Upstream commit d340266e19ddb70dbd608f9deedcfb35fdb9d419 ] struct timespec is not y2038 safe on 32 bit machines. The posix clocks apis use struct timespec directly and through struct itimerspec. Replace the posix clock interfaces to use struct timespec64 and struct

[PATCH AUTOSEL for 4.9 031/190] Input: ar1021_i2c - fix too long name in driver's device table

2018-03-07 Thread Sasha Levin
From: Dmitry Torokhov [ Upstream commit 95123fc43560d6f4a60e74f72836e63cd8848f76 ] The name field in structure i2c_device_id is 20 characters, and we expect it to be NULL-terminated, however we are trying to stuff it with 21 bytes and thus NULL-terminator is lost.

[PATCH AUTOSEL for 4.9 036/190] genirq: Use irqd_get_trigger_type to compare the trigger type for shared IRQs

2018-03-07 Thread Sasha Levin
From: Hans de Goede [ Upstream commit 382bd4de61827dbaaf5fb4fb7b1f4be4a86505e7 ] When requesting a shared irq with IRQF_TRIGGER_NONE then the irqaction flags get filled with the trigger type from the irq_data: if (!(new->flags & IRQF_TRIGGER_MASK))

[PATCH AUTOSEL for 4.9 036/190] genirq: Use irqd_get_trigger_type to compare the trigger type for shared IRQs

2018-03-07 Thread Sasha Levin
From: Hans de Goede [ Upstream commit 382bd4de61827dbaaf5fb4fb7b1f4be4a86505e7 ] When requesting a shared irq with IRQF_TRIGGER_NONE then the irqaction flags get filled with the trigger type from the irq_data: if (!(new->flags & IRQF_TRIGGER_MASK)) new->flags |=

[PATCH AUTOSEL for 4.9 031/190] Input: ar1021_i2c - fix too long name in driver's device table

2018-03-07 Thread Sasha Levin
From: Dmitry Torokhov [ Upstream commit 95123fc43560d6f4a60e74f72836e63cd8848f76 ] The name field in structure i2c_device_id is 20 characters, and we expect it to be NULL-terminated, however we are trying to stuff it with 21 bytes and thus NULL-terminator is lost. This causes issues when one

[PATCH AUTOSEL for 4.9 035/190] cpufreq/sh: Replace racy task affinity logic

2018-03-07 Thread Sasha Levin
From: Thomas Gleixner [ Upstream commit 205dcc1ecbc566cbc20acf246e68de3b080b3ecf ] The target() callback must run on the affected cpu. This is achieved by temporarily setting the affinity of the calling thread to the requested CPU and reset it to the original affinity

[PATCH AUTOSEL for 4.9 035/190] cpufreq/sh: Replace racy task affinity logic

2018-03-07 Thread Sasha Levin
From: Thomas Gleixner [ Upstream commit 205dcc1ecbc566cbc20acf246e68de3b080b3ecf ] The target() callback must run on the affected cpu. This is achieved by temporarily setting the affinity of the calling thread to the requested CPU and reset it to the original affinity afterwards. That's racy

[PATCH AUTOSEL for 4.9 037/190] i2c: i2c-scmi: add a MS HID

2018-03-07 Thread Sasha Levin
From: Edgar Cherkasov [ Upstream commit e058e7a4bc89104540a8a303682248614b5df6f1 ] Description of the problem: - i2c-scmi driver contains only two identifiers "SMBUS01" and "SMBUSIBM"; - the fist HID (SMBUS01) is clearly defined in "SMBus Control Method Interface

[PATCH AUTOSEL for 4.9 037/190] i2c: i2c-scmi: add a MS HID

2018-03-07 Thread Sasha Levin
From: Edgar Cherkasov [ Upstream commit e058e7a4bc89104540a8a303682248614b5df6f1 ] Description of the problem: - i2c-scmi driver contains only two identifiers "SMBUS01" and "SMBUSIBM"; - the fist HID (SMBUS01) is clearly defined in "SMBus Control Method Interface Specification, version

[PATCH AUTOSEL for 4.9 038/190] net: ipv6: send unsolicited NA on admin up

2018-03-07 Thread Sasha Levin
From: David Ahern [ Upstream commit 4a6e3c5def13c91adf2acc613837001f09af3baa ] ndisc_notify is the ipv6 equivalent to arp_notify. When arp_notify is set to 1, gratuitous arp requests are sent when the device is brought up. The same is expected when ndisc_notify is set

[PATCH AUTOSEL for 4.9 038/190] net: ipv6: send unsolicited NA on admin up

2018-03-07 Thread Sasha Levin
From: David Ahern [ Upstream commit 4a6e3c5def13c91adf2acc613837001f09af3baa ] ndisc_notify is the ipv6 equivalent to arp_notify. When arp_notify is set to 1, gratuitous arp requests are sent when the device is brought up. The same is expected when ndisc_notify is set to 1 (per ndisc_notify in

[PATCH AUTOSEL for 4.9 044/190] powerpc/64s: Remove SAO feature from Power9 DD1

2018-03-07 Thread Sasha Levin
From: Nicholas Piggin [ Upstream commit ca80d5d0a8175c9be04cfbce24180b8f5e0a744b ] Power9 DD1 does not implement SAO. Although it's not widely used, its presence or absence is visible to user space via arch_validate_prot() so it's moderately important that we get the value

[PATCH AUTOSEL for 4.9 039/190] [media] media/dvb-core: Race condition when writing to CAM

2018-03-07 Thread Sasha Levin
From: Jasmin J [ Upstream commit e7080d4471d805d921a9ea21b32f911a91e248cb ] It started with a sporadic message in syslog: "CAM tried to send a buffer larger than the ecount size" This message is not the fault itself, but a consecutive fault, after a read error from the CAM. This

[PATCH AUTOSEL for 4.9 044/190] powerpc/64s: Remove SAO feature from Power9 DD1

2018-03-07 Thread Sasha Levin
From: Nicholas Piggin [ Upstream commit ca80d5d0a8175c9be04cfbce24180b8f5e0a744b ] Power9 DD1 does not implement SAO. Although it's not widely used, its presence or absence is visible to user space via arch_validate_prot() so it's moderately important that we get the value right. Fixes:

[PATCH AUTOSEL for 4.9 039/190] [media] media/dvb-core: Race condition when writing to CAM

2018-03-07 Thread Sasha Levin
From: Jasmin J [ Upstream commit e7080d4471d805d921a9ea21b32f911a91e248cb ] It started with a sporadic message in syslog: "CAM tried to send a buffer larger than the ecount size" This message is not the fault itself, but a consecutive fault, after a read error from the CAM. This happens only on

Re: [PATCH 2/2] mm: Add kvmalloc_ab_c and kvzalloc_struct

2018-03-07 Thread Julia Lawall
On Wed, 7 Mar 2018, Matthew Wilcox wrote: > On Wed, Mar 07, 2018 at 10:18:21PM +0100, Julia Lawall wrote: > > > Otherwise, yes, please. We could build a coccinelle rule for > > > additional replacements... > > > > A potential semantic patch and the changes it generates are attached > > below.

Re: [PATCH 2/2] mm: Add kvmalloc_ab_c and kvzalloc_struct

2018-03-07 Thread Julia Lawall
On Wed, 7 Mar 2018, Matthew Wilcox wrote: > On Wed, Mar 07, 2018 at 10:18:21PM +0100, Julia Lawall wrote: > > > Otherwise, yes, please. We could build a coccinelle rule for > > > additional replacements... > > > > A potential semantic patch and the changes it generates are attached > > below.

[PATCH v3] ssb: use put_device() if device_register fail

2018-03-07 Thread Arvind Yadav
Never directly free @dev after calling device_register(), even if it returned an error! Always use put_device() to give up the reference initialized. Signed-off-by: Arvind Yadav --- changes in v2: Removed kfree() call for @dev. changes in v3:

[PATCH AUTOSEL for 4.9 047/190] iwlwifi: split the handler and the wake parts of the notification infra

2018-03-07 Thread Sasha Levin
From: Emmanuel Grumbach [ Upstream commit 2220fb2960b72915e7fd9da640a4695dceff238c ] The notification infrastructure (iwl_notification_wait_* functions) allows to wait until a list of notifications will come up from the firmware and to run a special handler

[PATCH v3] ssb: use put_device() if device_register fail

2018-03-07 Thread Arvind Yadav
Never directly free @dev after calling device_register(), even if it returned an error! Always use put_device() to give up the reference initialized. Signed-off-by: Arvind Yadav --- changes in v2: Removed kfree() call for @dev. changes in v3: Add put_device() in place

[PATCH AUTOSEL for 4.9 047/190] iwlwifi: split the handler and the wake parts of the notification infra

2018-03-07 Thread Sasha Levin
From: Emmanuel Grumbach [ Upstream commit 2220fb2960b72915e7fd9da640a4695dceff238c ] The notification infrastructure (iwl_notification_wait_* functions) allows to wait until a list of notifications will come up from the firmware and to run a special handler (notif_wait handler) when those are

RE: [RFC v2 1/2] WhiteEgret: Add WhiteEgret core functions.

2018-03-07 Thread masanobu2.koike
On Saturday, March 03, 2018 5:22 PM, Tetsuo Handa wrote: > Masanobu Koike wrote: > > On Friday, March 02, 2018 12:43 AM, Casey Schaufler wrote: > > > On 2/28/2018 11:38 PM, Masanobu Koike wrote: > > > > @@ -264,6 +266,9 @@ choice > > > > config DEFAULT_SECURITY_APPARMOR > > > >

RE: [RFC v2 1/2] WhiteEgret: Add WhiteEgret core functions.

2018-03-07 Thread masanobu2.koike
On Saturday, March 03, 2018 5:22 PM, Tetsuo Handa wrote: > Masanobu Koike wrote: > > On Friday, March 02, 2018 12:43 AM, Casey Schaufler wrote: > > > On 2/28/2018 11:38 PM, Masanobu Koike wrote: > > > > @@ -264,6 +266,9 @@ choice > > > > config DEFAULT_SECURITY_APPARMOR > > > >

[PATCH AUTOSEL for 4.9 041/190] ASoC: Intel: Atom: update Thinkpad 10 quirk

2018-03-07 Thread Sasha Levin
From: Pierre-Louis Bossart [ Upstream commit beb5989a8c6c6867b4e873cca2a66d31f977368f ] There are multiple skews of the same Lenovo audio hardware based on the Realtek RT5670 codec. Manufacturer: LENOVO Product Name: 20C1CTO1WW Version:

[PATCH AUTOSEL for 4.9 041/190] ASoC: Intel: Atom: update Thinkpad 10 quirk

2018-03-07 Thread Sasha Levin
From: Pierre-Louis Bossart [ Upstream commit beb5989a8c6c6867b4e873cca2a66d31f977368f ] There are multiple skews of the same Lenovo audio hardware based on the Realtek RT5670 codec. Manufacturer: LENOVO Product Name: 20C1CTO1WW Version: ThinkPad 10 Manufacturer: LENOVO

[PATCH] f2fs: wrap all options with f2fs_sb_info.mount_opt

2018-03-07 Thread Chao Yu
This patch merges miscellaneous mount options into struct f2fs_mount_info, After this patch, once we add new mount option, we don't need to worry about recovery of it in remount_fs(), since we will recover the f2fs_sb_info.mount_opt including all options. Signed-off-by: Chao Yu

[PATCH AUTOSEL for 4.9 048/190] iwlwifi: a000: fix memory offsets and lengths

2018-03-07 Thread Sasha Levin
From: Liad Kaufman [ Upstream commit f4d1047914ea05e0f8393944da18f6ee5dad24c4 ] Memory offsets and lengths for A000 HW is different than currently specified. Fixes: e34d975e40ff ("iwlwifi: Add a000 HW family support") Signed-off-by: Liad Kaufman

[PATCH AUTOSEL for 4.9 046/190] clk: ns2: Correct SDIO bits

2018-03-07 Thread Sasha Levin
From: Bharat Kumar Reddy Gooty [ Upstream commit 8973aa4aecac223548366ca81818309a0f0efa6d ] Corrected the bits for power and iso. Signed-off-by: Bharat Kumar Reddy Gooty Signed-off-by: Jon Mason Fixes: f7225a83

[PATCH AUTOSEL for 4.9 048/190] iwlwifi: a000: fix memory offsets and lengths

2018-03-07 Thread Sasha Levin
From: Liad Kaufman [ Upstream commit f4d1047914ea05e0f8393944da18f6ee5dad24c4 ] Memory offsets and lengths for A000 HW is different than currently specified. Fixes: e34d975e40ff ("iwlwifi: Add a000 HW family support") Signed-off-by: Liad Kaufman Signed-off-by: Luca Coelho Signed-off-by:

[PATCH AUTOSEL for 4.9 046/190] clk: ns2: Correct SDIO bits

2018-03-07 Thread Sasha Levin
From: Bharat Kumar Reddy Gooty [ Upstream commit 8973aa4aecac223548366ca81818309a0f0efa6d ] Corrected the bits for power and iso. Signed-off-by: Bharat Kumar Reddy Gooty Signed-off-by: Jon Mason Fixes: f7225a83 ("clk: ns2: add clock support for Broadcom Northstar 2 SoC") Signed-off-by:

[PATCH] f2fs: wrap all options with f2fs_sb_info.mount_opt

2018-03-07 Thread Chao Yu
This patch merges miscellaneous mount options into struct f2fs_mount_info, After this patch, once we add new mount option, we don't need to worry about recovery of it in remount_fs(), since we will recover the f2fs_sb_info.mount_opt including all options. Signed-off-by: Chao Yu ---

[PATCH AUTOSEL for 4.9 045/190] ath: Fix updating radar flags for coutry code India

2018-03-07 Thread Sasha Levin
From: Mohammed Shafi Shajakhan [ Upstream commit c0c345d4cacc6a1f39d4856f37dcf6e34f51a5e4 ] As per latest regulatory update for India, channel 52, 56, 60, 64 is no longer restricted to DFS. Enabling DFS/no infra flags in driver results in applying all DFS related

[PATCH AUTOSEL for 4.9 045/190] ath: Fix updating radar flags for coutry code India

2018-03-07 Thread Sasha Levin
From: Mohammed Shafi Shajakhan [ Upstream commit c0c345d4cacc6a1f39d4856f37dcf6e34f51a5e4 ] As per latest regulatory update for India, channel 52, 56, 60, 64 is no longer restricted to DFS. Enabling DFS/no infra flags in driver results in applying all DFS related restrictions (like doing CAC

[PATCH V4 1/5] nvme: do atomically bit operations on nvme_request.flags

2018-03-07 Thread Jianchao Wang
Do atomically bit operations on nvme_request.flags instead of regular read/write, then we could add other flags and set/clear them safely. Signed-off-by: Jianchao Wang --- drivers/nvme/host/core.c | 4 ++-- drivers/nvme/host/lightnvm.c | 4 ++--

[PATCH V4 1/5] nvme: do atomically bit operations on nvme_request.flags

2018-03-07 Thread Jianchao Wang
Do atomically bit operations on nvme_request.flags instead of regular read/write, then we could add other flags and set/clear them safely. Signed-off-by: Jianchao Wang --- drivers/nvme/host/core.c | 4 ++-- drivers/nvme/host/lightnvm.c | 4 ++-- drivers/nvme/host/nvme.h | 4 ++--

[PATCH AUTOSEL for 4.9 042/190] tools/testing/nvdimm: fix nfit_test shutdown crash

2018-03-07 Thread Sasha Levin
From: Dan Williams [ Upstream commit 8b06b884cd98f7ec8b5028680b99fabfb7b3e192 ] Keep the nfit_test instances alive until after nfit_test_teardown(), as we may be doing resource lookups until the final un-registrations have completed. This fixes crashes of the form.

[PATCH AUTOSEL for 4.9 049/190] scsi: virtio_scsi: Always try to read VPD pages

2018-03-07 Thread Sasha Levin
From: David Gibson [ Upstream commit 25d1d50e23275e141e3a3fe06c25a99f4c4bf4e0 ] Passed through SCSI targets may have transfer limits which come from the host SCSI controller or something on the host side other than the target itself. To make this work properly, the

[PATCH AUTOSEL for 4.9 042/190] tools/testing/nvdimm: fix nfit_test shutdown crash

2018-03-07 Thread Sasha Levin
From: Dan Williams [ Upstream commit 8b06b884cd98f7ec8b5028680b99fabfb7b3e192 ] Keep the nfit_test instances alive until after nfit_test_teardown(), as we may be doing resource lookups until the final un-registrations have completed. This fixes crashes of the form. BUG: unable to handle

[PATCH AUTOSEL for 4.9 049/190] scsi: virtio_scsi: Always try to read VPD pages

2018-03-07 Thread Sasha Levin
From: David Gibson [ Upstream commit 25d1d50e23275e141e3a3fe06c25a99f4c4bf4e0 ] Passed through SCSI targets may have transfer limits which come from the host SCSI controller or something on the host side other than the target itself. To make this work properly, the hypervisor can adjust the

[PATCH AUTOSEL for 4.9 053/190] ARM: 8668/1: ftrace: Fix dynamic ftrace with DEBUG_RODATA and !FRAME_POINTER

2018-03-07 Thread Sasha Levin
From: Abel Vesa [ Upstream commit 6f05d0761af612e04572ba4d65b4c0274a88444f ] The support for dynamic ftrace with CONFIG_DEBUG_RODATA involves overriding the weak arch_ftrace_update_code() with a variant which makes the kernel text writable around the patching. This override

[PATCH V4 4/5] nvme-pci: discard wait timeout when delete cq/sq

2018-03-07 Thread Jianchao Wang
nvme_disable_io_queues could be wakeup by both request completion and wait timeout path. If delete cq/sq command expires, the nvme_disable_io_queues will be wakeup, return, even get to nvme_reset_work, while the timeout path is still ongoing. The disable and initialization procedure may run in

[PATCH AUTOSEL for 4.9 053/190] ARM: 8668/1: ftrace: Fix dynamic ftrace with DEBUG_RODATA and !FRAME_POINTER

2018-03-07 Thread Sasha Levin
From: Abel Vesa [ Upstream commit 6f05d0761af612e04572ba4d65b4c0274a88444f ] The support for dynamic ftrace with CONFIG_DEBUG_RODATA involves overriding the weak arch_ftrace_update_code() with a variant which makes the kernel text writable around the patching. This override was however added

[PATCH V4 4/5] nvme-pci: discard wait timeout when delete cq/sq

2018-03-07 Thread Jianchao Wang
nvme_disable_io_queues could be wakeup by both request completion and wait timeout path. If delete cq/sq command expires, the nvme_disable_io_queues will be wakeup, return, even get to nvme_reset_work, while the timeout path is still ongoing. The disable and initialization procedure may run in

PATCH V4 0/5 nvme-pci: fixes on nvme_timeout and nvme_dev_disable

2018-03-07 Thread Jianchao Wang
Firstly, really appreciate Keith and Sagi's precious advice on previous versions. And this is the version 4. Some patches of the previous patchset have been submitted and the left is this patchset which has been refactored. Please consider it for 4.17. The target of this patchset is to avoid

PATCH V4 0/5 nvme-pci: fixes on nvme_timeout and nvme_dev_disable

2018-03-07 Thread Jianchao Wang
Firstly, really appreciate Keith and Sagi's precious advice on previous versions. And this is the version 4. Some patches of the previous patchset have been submitted and the left is this patchset which has been refactored. Please consider it for 4.17. The target of this patchset is to avoid

[PATCH V4 3/5] nvme-pci: avoid nvme_dev_disable to be invoked in nvme_timeout

2018-03-07 Thread Jianchao Wang
nvme_dev_disable will issue command on adminq to clear HMB and delete io cq/sqs, maybe more in the future. When adminq no response, it has to depends on timeout path. However, nvme_timeout has to invoke nvme_dev_disable before return, so that the DMA mappings could be released safely. This will

[PATCH V4 3/5] nvme-pci: avoid nvme_dev_disable to be invoked in nvme_timeout

2018-03-07 Thread Jianchao Wang
nvme_dev_disable will issue command on adminq to clear HMB and delete io cq/sqs, maybe more in the future. When adminq no response, it has to depends on timeout path. However, nvme_timeout has to invoke nvme_dev_disable before return, so that the DMA mappings could be released safely. This will

[PATCH AUTOSEL for 4.9 040/190] btrfs: fix a bogus warning when converting only data or metadata

2018-03-07 Thread Sasha Levin
From: Adam Borowski [ Upstream commit 14506127979a5a3d0c5d9b4cc76ce9d4ec23b717 ] If your filesystem has, eg, data:raid0 metadata:raid1, and you run "btrfs balance -dconvert=raid1", the meta.target field will be uninitialized. That's otherwise ok, as it's unused except for

[PATCH AUTOSEL for 4.9 054/190] irqchip/mips-gic: Separate IPI reservation & usage tracking

2018-03-07 Thread Sasha Levin
From: Paul Burton [ Upstream commit f8dcd9e81797ae24acc44c84f0eb3b9e6cee9791 ] Since commit 2af70a962070 ("irqchip/mips-gic: Add a IPI hierarchy domain") introduced the GIC IPI IRQ domain we have tracked both reservation of interrupts & their use with a single bitmap -

[PATCH AUTOSEL for 4.9 040/190] btrfs: fix a bogus warning when converting only data or metadata

2018-03-07 Thread Sasha Levin
From: Adam Borowski [ Upstream commit 14506127979a5a3d0c5d9b4cc76ce9d4ec23b717 ] If your filesystem has, eg, data:raid0 metadata:raid1, and you run "btrfs balance -dconvert=raid1", the meta.target field will be uninitialized. That's otherwise ok, as it's unused except for this warning. Thus,

[PATCH AUTOSEL for 4.9 054/190] irqchip/mips-gic: Separate IPI reservation & usage tracking

2018-03-07 Thread Sasha Levin
From: Paul Burton [ Upstream commit f8dcd9e81797ae24acc44c84f0eb3b9e6cee9791 ] Since commit 2af70a962070 ("irqchip/mips-gic: Add a IPI hierarchy domain") introduced the GIC IPI IRQ domain we have tracked both reservation of interrupts & their use with a single bitmap - ipi_resrv. If an

[PATCH V4 5/5] nvme-pci: add the timeout case for DELETEING state

2018-03-07 Thread Jianchao Wang
When the controller is being removed, blk_cleanup_queue will try to drain the queues. At the moment, if the controller no response, because of DELETEING state, reset_work will not be able to be scheduled, and completion of the expired request is deferred to nvme_dev_disable, blk_cleanup_queue will

[PATCH V4 5/5] nvme-pci: add the timeout case for DELETEING state

2018-03-07 Thread Jianchao Wang
When the controller is being removed, blk_cleanup_queue will try to drain the queues. At the moment, if the controller no response, because of DELETEING state, reset_work will not be able to be scheduled, and completion of the expired request is deferred to nvme_dev_disable, blk_cleanup_queue will

[PATCH V4 2/5] nvme: add helper interface to flush in-flight requests

2018-03-07 Thread Jianchao Wang
Currently, we use nvme_cancel_request to complete the request forcedly. This has following defects: - It is not safe to race with the normal completion path. blk_mq_complete_request is ok to race with timeout path, but not with itself. - Cannot ensure all the requests have been handled.

[PATCH AUTOSEL for 4.9 055/190] iommu/omap: Register driver before setting IOMMU ops

2018-03-07 Thread Sasha Levin
From: Suman Anna [ Upstream commit abaa7e5b054aae567861628b74dbc7fbf8ed79e8 ] Move the registration of the OMAP IOMMU platform driver before setting the IOMMU callbacks on the platform bus. This causes the IOMMU devices to be probed first before the .add_device() callback is

[PATCH V4 2/5] nvme: add helper interface to flush in-flight requests

2018-03-07 Thread Jianchao Wang
Currently, we use nvme_cancel_request to complete the request forcedly. This has following defects: - It is not safe to race with the normal completion path. blk_mq_complete_request is ok to race with timeout path, but not with itself. - Cannot ensure all the requests have been handled.

[PATCH AUTOSEL for 4.9 055/190] iommu/omap: Register driver before setting IOMMU ops

2018-03-07 Thread Sasha Levin
From: Suman Anna [ Upstream commit abaa7e5b054aae567861628b74dbc7fbf8ed79e8 ] Move the registration of the OMAP IOMMU platform driver before setting the IOMMU callbacks on the platform bus. This causes the IOMMU devices to be probed first before the .add_device() callback is invoked for all

[PATCH AUTOSEL for 4.9 056/190] md/raid10: wait up frozen array in handle_write_completed

2018-03-07 Thread Sasha Levin
From: Guoqing Jiang [ Upstream commit cf25ae78fc50010f66b9be945017796da34c434d ] Since nr_queued is changed, we need to call wake_up here if the array is already frozen and waiting for condition "nr_pending == nr_queued + extra" to be true. And commit 824e47daddbf ("RAID1:

[PATCH AUTOSEL for 4.9 056/190] md/raid10: wait up frozen array in handle_write_completed

2018-03-07 Thread Sasha Levin
From: Guoqing Jiang [ Upstream commit cf25ae78fc50010f66b9be945017796da34c434d ] Since nr_queued is changed, we need to call wake_up here if the array is already frozen and waiting for condition "nr_pending == nr_queued + extra" to be true. And commit 824e47daddbf ("RAID1: avoid unnecessary

[PATCH AUTOSEL for 4.9 059/190] e1000e: fix timing for 82579 Gigabit Ethernet controller

2018-03-07 Thread Sasha Levin
From: Bernd Faust [ Upstream commit 5313eeccd2d7f486be4e5c7560e3e2be239ec8f7 ] After an upgrade to Linux kernel v4.x the hardware timestamps of the 82579 Gigabit Ethernet Controller are different than expected. The values that are being read are almost four times as big as

[PATCH AUTOSEL for 4.9 043/190] spi: dw: Disable clock after unregistering the host

2018-03-07 Thread Sasha Levin
From: Marek Vasut [ Upstream commit 400c18e3dc86e04ef5afec9b86a8586ca629b9e9 ] The dw_mmio driver disables the block clock before unregistering the host. The code unregistering the host may access the SPI block registers. If register access happens with block clock disabled, this

[PATCH AUTOSEL for 4.9 043/190] spi: dw: Disable clock after unregistering the host

2018-03-07 Thread Sasha Levin
From: Marek Vasut [ Upstream commit 400c18e3dc86e04ef5afec9b86a8586ca629b9e9 ] The dw_mmio driver disables the block clock before unregistering the host. The code unregistering the host may access the SPI block registers. If register access happens with block clock disabled, this may lead to a

[PATCH AUTOSEL for 4.9 059/190] e1000e: fix timing for 82579 Gigabit Ethernet controller

2018-03-07 Thread Sasha Levin
From: Bernd Faust [ Upstream commit 5313eeccd2d7f486be4e5c7560e3e2be239ec8f7 ] After an upgrade to Linux kernel v4.x the hardware timestamps of the 82579 Gigabit Ethernet Controller are different than expected. The values that are being read are almost four times as big as before the kernel

[PATCH AUTOSEL for 4.9 052/190] x86/reboot: Turn off KVM when halting a CPU

2018-03-07 Thread Sasha Levin
From: Tiantian Feng [ Upstream commit fba4f472b33aa81ca1836f57d005455261e9126f ] A CPU in VMX root mode will ignore INIT signals and will fail to bring up the APs after reboot. Therefore, on a panic we disable VMX on all CPUs before rebooting or triggering kdump. Do

[PATCH AUTOSEL for 4.9 052/190] x86/reboot: Turn off KVM when halting a CPU

2018-03-07 Thread Sasha Levin
From: Tiantian Feng [ Upstream commit fba4f472b33aa81ca1836f57d005455261e9126f ] A CPU in VMX root mode will ignore INIT signals and will fail to bring up the APs after reboot. Therefore, on a panic we disable VMX on all CPUs before rebooting or triggering kdump. Do this when halting the

[PATCH AUTOSEL for 4.9 057/190] NFS: Fix missing pg_cleanup after nfs_pageio_cond_complete()

2018-03-07 Thread Sasha Levin
From: Benjamin Coddington [ Upstream commit 43b7d964ed30dbca5c83c90cb010985b429ec4f9 ] Commit a7d42ddb3099727f58366fa006f850a219cce6c8 ("nfs: add mirroring support to pgio layer") moved pg_cleanup out of the path when there was non-sequental I/O that needed to be flushed.

[PATCH AUTOSEL for 4.9 057/190] NFS: Fix missing pg_cleanup after nfs_pageio_cond_complete()

2018-03-07 Thread Sasha Levin
From: Benjamin Coddington [ Upstream commit 43b7d964ed30dbca5c83c90cb010985b429ec4f9 ] Commit a7d42ddb3099727f58366fa006f850a219cce6c8 ("nfs: add mirroring support to pgio layer") moved pg_cleanup out of the path when there was non-sequental I/O that needed to be flushed. The result is that

[PATCH AUTOSEL for 4.9 060/190] ALSA: hda - Fix headset microphone detection for ASUS N551 and N751

2018-03-07 Thread Sasha Levin
From: Mikhail Paulyshka [ Upstream commit fc7438b1eb12b6c93d7b7a62423779eb5dfc673c ] Headset microphone does not work out of the box on ASUS Nx51 laptops. This patch fixes it. Patch tested on Asus N551 laptop. Asus N751 part is not tested, but according to [1] this laptop uses

[PATCH AUTOSEL for 4.9 060/190] ALSA: hda - Fix headset microphone detection for ASUS N551 and N751

2018-03-07 Thread Sasha Levin
From: Mikhail Paulyshka [ Upstream commit fc7438b1eb12b6c93d7b7a62423779eb5dfc673c ] Headset microphone does not work out of the box on ASUS Nx51 laptops. This patch fixes it. Patch tested on Asus N551 laptop. Asus N751 part is not tested, but according to [1] this laptop uses the same

[PATCH AUTOSEL for 4.9 051/190] mwifiex: don't leak 'chan_stats' on reset

2018-03-07 Thread Sasha Levin
From: Brian Norris [ Upstream commit fb9e67bee3ab7111513130c516ffe378d885c0d0 ] 'chan_stats' is (re)allocated in _mwifiex_fw_dpc() -> mwifiex_init_channel_scan_gap(), which is called whenever the device is initialized -- at probe or at reset. But we only free it in we

Re: [PATCH v9 5/7] arm64: kvm: Introduce KVM_ARM_SET_SERROR_ESR ioctl

2018-03-07 Thread gengdongjiu
Hi James, sorry for my late response due to chines new year. 2018-02-16 1:55 GMT+08:00 James Morse : > Hi gengdongjiu, > > On 12/02/18 10:19, gengdongjiu wrote: >> On 2018/2/10 1:44, James Morse wrote: >>> The point? We can't know what a CPU without the RAS extensions puts

[PATCH AUTOSEL for 4.9 051/190] mwifiex: don't leak 'chan_stats' on reset

2018-03-07 Thread Sasha Levin
From: Brian Norris [ Upstream commit fb9e67bee3ab7111513130c516ffe378d885c0d0 ] 'chan_stats' is (re)allocated in _mwifiex_fw_dpc() -> mwifiex_init_channel_scan_gap(), which is called whenever the device is initialized -- at probe or at reset. But we only free it in we completely unregister the

Re: [PATCH v9 5/7] arm64: kvm: Introduce KVM_ARM_SET_SERROR_ESR ioctl

2018-03-07 Thread gengdongjiu
Hi James, sorry for my late response due to chines new year. 2018-02-16 1:55 GMT+08:00 James Morse : > Hi gengdongjiu, > > On 12/02/18 10:19, gengdongjiu wrote: >> On 2018/2/10 1:44, James Morse wrote: >>> The point? We can't know what a CPU without the RAS extensions puts in >>> there. >>>

Re: [Letux-kernel] [PATCH v5 3/5] misc serdev: Add w2sg0004 (gps receiver) power control driver

2018-03-07 Thread Andreas Kemnade
Hi, On Thu, 18 Jan 2018 17:47:36 +1100 Johan Hovold wrote: [...] > > > > So to avoid having hardware information spread all over the table at least > > these information would need to be in devicetree. But that also all feels > > like a hack and hard to maintain. > >

Re: arm crypto .S_shipped files sometimes get rebuilt randomly

2018-03-07 Thread Masahiro Yamada
2018-03-08 4:25 GMT+09:00 Leonard Crestez : > Hello, > > I am using a toolchain with a broken/old version of perl which doesn't > include integer.pm and I noticed it triggers occasional build failures > on arch/arm64/crypto/sha512-core.S_shipped. Workarounds are easy, but

Re: [Letux-kernel] [PATCH v5 3/5] misc serdev: Add w2sg0004 (gps receiver) power control driver

2018-03-07 Thread Andreas Kemnade
Hi, On Thu, 18 Jan 2018 17:47:36 +1100 Johan Hovold wrote: [...] > > > > So to avoid having hardware information spread all over the table at least > > these information would need to be in devicetree. But that also all feels > > like a hack and hard to maintain. > > Having the device

Re: arm crypto .S_shipped files sometimes get rebuilt randomly

2018-03-07 Thread Masahiro Yamada
2018-03-08 4:25 GMT+09:00 Leonard Crestez : > Hello, > > I am using a toolchain with a broken/old version of perl which doesn't > include integer.pm and I noticed it triggers occasional build failures > on arch/arm64/crypto/sha512-core.S_shipped. Workarounds are easy, but > if the purpose of the

[PATCH AUTOSEL for 4.9 050/190] KVM: PPC: Book3S PR: Exit KVM on failed mapping

2018-03-07 Thread Sasha Levin
From: Alexey Kardashevskiy [ Upstream commit bd9166ffe624000140fc6b606b256df01fc0d060 ] At the moment kvmppc_mmu_map_page() returns -1 if mmu_hash_ops.hpte_insert() fails for any reason so the page fault handler resumes the guest and it faults on the same address again. This

[PATCH AUTOSEL for 4.9 064/190] IB/mlx4: Take write semaphore when changing the vma struct

2018-03-07 Thread Sasha Levin
From: Maor Gottlieb [ Upstream commit 22c3653d04bd0c67b75e99d85e0c0bdf83947df5 ] When the driver disassociate user context, it changes the vma to anonymous by setting the vm_ops to null and zap the vma ptes. In order to avoid race in the kernel, we need to take write lock

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