RE: [PATCH 2/4] Drivers: hv: balloon: account for gaps in hot add regions

2016-08-05 Thread Alex Ng (LIS)
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Friday, August 5, 2016 3:49 AM > To: de...@linuxdriverproject.org > Cc: linux-ker...@vger.kernel.org; Haiyang Zhang ; > KY Srinivasan ; Alex Ng (LIS) > Subject: [PATCH 2/4] Drivers: hv: balloon: account for

[PATCH] Staging: rtl8723au: rtw_ieee80211: Fixed operators spacing style issues

2016-08-05 Thread Shiva Kerdel
Fixed spaces around operators to fix their coding style issues. Signed-off-by: Shiva Kerdel --- drivers/staging/rtl8723au/core/rtw_ieee80211.c | 80 +- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/drivers/staging/rtl8723au/core/rtw_ieee80211.c b/driver

[PATCH 1/4] Drivers: hv: balloon: keep track of where ha_region starts

2016-08-05 Thread Vitaly Kuznetsov
Windows 2012 (non-R2) does not specify hot add region in hot add requests and the logic in hot_add_req() is trying to find a 128Mb-aligned region covering the request. It may also happen that host's requests are not 128Mb aligned and the created ha_region will start before the first specified PFN.

[PATCH 2/4] Drivers: hv: balloon: account for gaps in hot add regions

2016-08-05 Thread Vitaly Kuznetsov
I'm observing the following hot add requests from the WS2012 host: hot_add_req: start_pfn = 0x108200 count = 330752 hot_add_req: start_pfn = 0x158e00 count = 193536 hot_add_req: start_pfn = 0x188400 count = 239616 As the host doesn't specify hot add regions we're trying to create 128Mb-aligned re

[PATCH 3/4] Drivers: hv: balloon: get rid on ol_waitevent

2016-08-05 Thread Vitaly Kuznetsov
With the recently introduced in-kernel memory onlining (MEMORY_HOTPLUG_DEFAULT_ONLINE) these it no point in waiting for pages to come online in the driver and in case the feature is disabled the 5 second wait won't help. Get rid of the waiting. Signed-off-by: Vitaly Kuznetsov --- drivers/hv/hv_b

[PATCH 0/4] Drivers: hv: balloon: fix WS2012 memory hotplug issues and do some cleanup

2016-08-05 Thread Vitaly Kuznetsov
Crashes with Hyper-V balloon driver are reported with WS2012 (non-R2), hosts I was able to identify two issues which I fix with first two patches of this series. Patches 3 removes ol_waitevent which is not needed since we have in-kernel memory onlining, patch 4 gets rid of ha_region_mutex by doing

[PATCH 4/4] Drivers: hv: balloon: replace ha_region_mutex with spinlock

2016-08-05 Thread Vitaly Kuznetsov
lockdep reports possible circular locking dependency when udev is used for memory onlining: systemd-udevd/3996 is trying to acquire lock: ((memory_chain).rwsem){.+}, at: [] __blocking_notifier_call_chain+0x4e/0xc0 but task is already holding lock: (&dm_device.ha_region_mutex){+.+.+.},