Re: [PATCH] staging: ft1000: fix braces warning

2015-02-03 Thread Joe Perches
On Tue, 2015-02-03 at 19:58 +0100, Bilel DRIRA wrote: This patch fix the checkpatch.pl WARNING: [] diff --git a/drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c b/drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c [] @@ -1963,11 +1948,10 @@ static irqreturn_t ft1000_interrupt(int irq, void

RE: [PATCH 3/4] Drivers: hv: vmbus: protect vmbus_get_outgoing_channel() against channel removal

2015-02-03 Thread Dexuan Cui
-Original Message- From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] Sent: Wednesday, February 4, 2015 1:01 AM To: KY Srinivasan; de...@linuxdriverproject.org Cc: Haiyang Zhang; linux-ker...@vger.kernel.org; Dexuan Cui; Jason Wang Subject: [PATCH 3/4] Drivers: hv: vmbus: protect

RE: [PATCH 2/4] Drivers: hv: vmbus: do not lose rescind offer on failure in vmbus_process_offer()

2015-02-03 Thread Dexuan Cui
-Original Message- From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] Sent: Wednesday, February 4, 2015 1:01 AM To: KY Srinivasan; de...@linuxdriverproject.org Cc: Haiyang Zhang; linux-ker...@vger.kernel.org; Dexuan Cui; Jason Wang Subject: [PATCH 2/4] Drivers: hv: vmbus: do not

RE: [PATCH 4/4] hyperv: netvsc: improve protection against rescind offer

2015-02-03 Thread Dexuan Cui
-Original Message- From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] Sent: Wednesday, February 4, 2015 1:01 AM To: KY Srinivasan; de...@linuxdriverproject.org Cc: Haiyang Zhang; linux-ker...@vger.kernel.org; Dexuan Cui; Jason Wang Subject: [PATCH 4/4] hyperv: netvsc: improve

RE: [PATCH net] hyperv: Fix the error processing in netvsc_send()

2015-02-03 Thread Jason Wang
On Tue, Feb 3, 2015 at 11:46 PM, Haiyang Zhang haiya...@microsoft.com wrote: -Original Message- From: Jason Wang [mailto:jasow...@redhat.com] Sent: Monday, February 2, 2015 1:49 AM btw, I find during netvsc_start_xmit(), ret was change to -ENOSPC when

Re: [PATCH] staging: rtl8723au: multiple condition with no effect - if identical to else

2015-02-03 Thread Jes Sorensen
for x86_64_defconfig + CONFIG_STAGING=y CONFIG_R8723AU=m, CONFIG_8723AU_BT_COEXIST=y Patch is against 3.0.19-rc7 (localversoin = -next-20150203) .../staging/rtl8723au/hal/rtl8723a_bt-coexist.c| 60 +++- 1 file changed, 8 insertions(+), 52 deletions(-) Why make it simple

[PATCH RESEND 2/6] hv: vmbus_post_msg: retry the hypercall on some transient errors

2015-02-03 Thread K. Y. Srinivasan
From: Dexuan Cui [mailto:de...@microsoft.com] I got HV_STATUS_INVALID_CONNECTION_ID on Hyper-V 2008 R2 when keeping running rmmod hv_netvsc; modprobe hv_netvsc; rmmod hv_utils; modprobe hv_utils in a Linux guest. Looks the host has some kind of throttling mechanism if some kinds of hypercalls are

[PATCH RESEND 5/6] hv: channel_mgmt: match var type to return type of wait_for_completion

2015-02-03 Thread K. Y. Srinivasan
From: Nicholas Mc Guire der.h...@hofr.at return type of wait_for_completion_timeout is unsigned long not int, this patch changes the type of t from int to unsigned long. Signed-off-by: Nicholas Mc Guire der.h...@hofr.at Signed-off-by: K. Y. Srinivasan k...@microsoft.com ---

[PATCH RESEND 1/6] hv: hv_util: move vmbus_open() to a later place

2015-02-03 Thread K. Y. Srinivasan
From: Dexuan Cui [mailto:de...@microsoft.com] Before the line vmbus_open() returns, srv-util_cb can be already running and the variables, like util_fw_version, are needed by the srv-util_cb. So we have to make sure the variables are initialized before the vmbus_open(). CC: K. Y. Srinivasan

[PATCH RESEND 4/6] hv: channel: match var type to return type of wait_for_completion

2015-02-03 Thread K. Y. Srinivasan
From: Nicholas Mc Guire der.h...@hofr.at return type of wait_for_completion_timeout is unsigned long not int, this patch changes the type of t from int to unsigned long. Signed-off-by: Nicholas Mc Guire der.h...@hofr.at Signed-off-by: K. Y. Srinivasan k...@microsoft.com --- drivers/hv/channel.c

[PATCH RESEND 6/6] hv: hv_balloon: match var type to return type of wait_for_completion

2015-02-03 Thread K. Y. Srinivasan
From: Nicholas Mc Guire der.h...@hofr.at return type of wait_for_completion_timeout is unsigned long not int, this patch changes the type of t from int to unsigned long. Signed-off-by: Nicholas Mc Guire der.h...@hofr.at Signed-off-by: K. Y. Srinivasan k...@microsoft.com ---

[PATCH RESEND 3/6] hv: vmbus_open(): reset the channel state on ENOMEM

2015-02-03 Thread K. Y. Srinivasan
From: Dexuan Cui [mailto:de...@microsoft.com] Without this patch, the state is put to CHANNEL_OPENING_STATE, and when the driver is loaded next time, vmbus_open() will fail immediately due to newchannel-state != CHANNEL_OPEN_STATE. CC: K. Y. Srinivasan k...@microsoft.com Signed-off-by: Dexuan

AWAITING URGENT REPLY

2015-02-03 Thread Mr. Lou Yost
INTERNATIONAL FUNDS TRANSFER / AUDIT UNIT UNITED NATIONS (World Bank Assisted Programme) Directorate of International Payment and Transfers UN Plaza, DC2-2060, New York, 10017. Attention:-The Beneficiary, My Names are Mr. Lou Yost, I'm the 2nd vice chairman of the united nations/ international

[PATCH 1/1] Drivers: hv: vmbus: Add support for the NetworkDirect GUID

2015-02-03 Thread K. Y. Srinivasan
NetworkDirect is a service that supports guest RDMA. Define the GUID for this service. Signed-off-by: K. Y. Srinivasan k...@microsoft.com --- drivers/hv/channel_mgmt.c |2 ++ include/linux/hyperv.h| 10 ++ 2 files changed, 12 insertions(+), 0 deletions(-) diff --git

[PATCH 1/1] Drivers: hv: vmbus: Fix a bug in the error path in vmbus_open()

2015-02-03 Thread K. Y. Srinivasan
Correctly rollback state if the failure occurs after we have handed over the ownership of the buffer to the host. Signed-off-by: K. Y. Srinivasan k...@microsoft.com Cc: sta...@vger.kernel.org --- drivers/hv/channel.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git

[PATCH 0/2] staging: sm7xxfb: checkpatch cleanup

2015-02-03 Thread Sudip Mukherjee
Hi, Continuing with the checkpatch cleanup, this series will just fix the CamelCase. Two different patches are made just to make review easier. Now there is only one checkpatch warning pending about __setup, which will be fixed in one of the upcoming patch where I will introduce the use of

AWAITING URGENT REPLY

2015-02-03 Thread Mr. Lou Yost
INTERNATIONAL FUNDS TRANSFER / AUDIT UNIT UNITED NATIONS (World Bank Assisted Programme) Directorate of International Payment and Transfers UN Plaza, DC2-2060, New York, 10017. Attention:-The Beneficiary, My Names are Mr. Lou Yost, I'm the 2nd vice chairman of the united nations/ international

AWAITING URGENT REPLY

2015-02-03 Thread Mr. Lou Yost
INTERNATIONAL FUNDS TRANSFER / AUDIT UNIT UNITED NATIONS (World Bank Assisted Programme) Directorate of International Payment and Transfers UN Plaza, DC2-2060, New York, 10017. Attention:-The Beneficiary, My Names are Mr. Lou Yost, I'm the 2nd vice chairman of the united nations/ international

[PATCH] staging: lustre: lustre: lmv: fix sparse warnings related to static declarations

2015-02-03 Thread Mohammad Jamal
This patch removes the sparse warnings present in the lproc_lmv.c Signed-off-by: Mohammad Jamal md.jamalmohiud...@gmail.com --- drivers/staging/lustre/lustre/lmv/lproc_lmv.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/lustre/lustre/lmv/lproc_lmv.c

Re: [PATCH] staging: rtl8723au: multiple condition with no effect - if identical to else

2015-02-03 Thread Nicholas Mc Guire
is potentially record breaking ! Patch was compile tested for x86_64_defconfig + CONFIG_STAGING=y CONFIG_R8723AU=m, CONFIG_8723AU_BT_COEXIST=y Patch is against 3.0.19-rc7 (localversoin = -next-20150203) .../staging/rtl8723au/hal/rtl8723a_bt-coexist.c| 60 +++- 1 file

Re: [PATCH RFC] staging: comedi: dt282x: condition with no effect - if identical to else

2015-02-03 Thread Ian Abbott
of this driver. Also not sure about the retained comment string if that is still valid now. Patch was only compile tested for x86_64_defconfig + CONFIG_STAGING=y CONFIG_COMEDI=m, COMEDI_ISA_DRIVERS=y, CONFIG_COMEDI_DT282X=m Patch is against 3.0.19-rc7 (localversion = -next-20150203) drivers/staging

[PATCH] staging: lustre: lustre: lmv: fix sparse warnings about static declarations

2015-02-03 Thread Mohammad Jamal
This patch adds a static keyword to lprocfs_lmv_init_vars and lprocfs_lmv_module_vars to suppress the sparse warnings about static declaration Signed-off-by: Mohammad Jamal md.jamalmohiud...@gmail.com --- drivers/staging/lustre/lustre/lmv/lproc_lmv.c |4 ++-- 1 file changed, 2 insertions(+),

Re: [PATCH] staging/fwserial: use correct vendor/version IDs

2015-02-03 Thread Stefan Richter
On Feb 02 Peter Hurley wrote: On 01/28/2015 03:07 PM, Clemens Ladisch wrote: The driver was using the vendor ID 0xd00d1e from the FireWire core. However, this ID was not registered, and invalid. Instead, use the vendor/version IDs that now are officially assigned to firewire-serial:

[PATCH] staging: sm7xxfb: make smtc_scr_info static

2015-02-03 Thread Max Perepelitsyn
This symbol is never used anywhere else besides sm7xxfb.c Signed-off-by: Max Perepelitsyn mperepelit...@gmail.com --- drivers/staging/sm7xxfb/sm7xxfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/sm7xxfb/sm7xxfb.c b/drivers/staging/sm7xxfb/sm7xxfb.c index

Re: [PATCH] staging/fwserial: use correct vendor/version IDs

2015-02-03 Thread Peter Hurley
On 02/03/2015 03:44 AM, Stefan Richter wrote: On Feb 02 Peter Hurley wrote: On 01/28/2015 03:07 PM, Clemens Ladisch wrote: The driver was using the vendor ID 0xd00d1e from the FireWire core. However, this ID was not registered, and invalid. Instead, use the vendor/version IDs that now are

Re: [PATCH] staging: sm7xxfb: make smtc_scr_info static

2015-02-03 Thread Sudip Mukherjee
On Tue, Feb 03, 2015 at 02:44:28PM +0600, Max Perepelitsyn wrote: This symbol is never used anywhere else besides sm7xxfb.c Hi Greg, do i need to do anything about this patch? maybe a tested-by or reviewed-by? regards sudip Signed-off-by: Max Perepelitsyn mperepelit...@gmail.com ---

RE: [PATCH net] hyperv: Fix the error processing in netvsc_send()

2015-02-03 Thread Haiyang Zhang
-Original Message- From: Jason Wang [mailto:jasow...@redhat.com] Sent: Monday, February 2, 2015 1:49 AM btw, I find during netvsc_start_xmit(), ret was change to -ENOSPC when queue_sends[q_idx] 1. But non of the caller check -ENOSPC in fact? In this case, we don't request

[PATCH 2/4] Drivers: hv: vmbus: do not lose rescind offer on failure in vmbus_process_offer()

2015-02-03 Thread Vitaly Kuznetsov
In case we hit a failure condition in vmbus_process_offer() and a rescind offer was pending for the channel we just do free_channel() so CHANNELMSG_RELID_RELEASED will never be send to the host. We have to follow vmbus_process_rescind_offer() path anyway. To support the change we need to protect

[PATCH 1/4] Drivers: hv: vmbus: implement get/put usage workflow for vmbus channels

2015-02-03 Thread Vitaly Kuznetsov
free_channel() function frees the channel unconditionally so we need to make sure nobody has any link to it. This is not trivial and there are several examples of races we have: 1) In vmbus_onoffer_rescind() we check for channel existence with relid2channel() and then use it. This can go wrong

[PATCH 3/4] Drivers: hv: vmbus: protect vmbus_get_outgoing_channel() against channel removal

2015-02-03 Thread Vitaly Kuznetsov
list_for_each_safe() we have in vmbus_get_outgoing_channel() works, however, we are not protected against the channel being removed (e.g. after receiving rescind offer). Users of this function (storvsc_do_io() is the only one at this moment) can get a link to an already freed channel. Make

[PATCH 4/4] hyperv: netvsc: improve protection against rescind offer

2015-02-03 Thread Vitaly Kuznetsov
The check added in commit c3582a2c4d0b (hyperv: Add support for vNIC hot removal) is incomplete as there is no synchronization between vmbus_onoffer_rescind() and netvsc_send(). In case we get the offer after we checked out_channel-rescind and before netvsc_send() finishes its job we can get a

[PATCH 0/4] Drivers: hv: Further protection for the rescind path

2015-02-03 Thread Vitaly Kuznetsov
This series is a continuation of the Drivers: hv: vmbus: serialize Offer and Rescind offer. I'm trying to address a number of theoretically possible issues with rescind offer handling. All these complications come from the fact that a rescind offer results in vmbus channel being freed and we must

[PATCH RFC] staging: comedi: dt282x: condition with no effect - if identical to else

2015-02-03 Thread Nicholas Mc Guire
string if that is still valid now. Patch was only compile tested for x86_64_defconfig + CONFIG_STAGING=y CONFIG_COMEDI=m, COMEDI_ISA_DRIVERS=y, CONFIG_COMEDI_DT282X=m Patch is against 3.0.19-rc7 (localversion = -next-20150203) drivers/staging/comedi/drivers/dt282x.c | 10 ++ 1 file

[PATCH RESEND 0/6] Drivers: hv: vmbus: Some miscellaneous bug fixes and cleanup

2015-02-03 Thread K. Y. Srinivasan
This is a resend of the patches from Dexuan and Nicholas Dexuan Cui (3): hv: hv_util: move vmbus_open() to a later place hv: vmbus_post_msg: retry the hypercall on some transient errors hv: vmbus_open(): reset the channel state on ENOMEM Nicholas Mc Guire (3): hv: channel: match var type

[PATCH] staging: rtl8723au: multiple condition with no effect - if identical to else

2015-02-03 Thread Nicholas Mc Guire
, CONFIG_8723AU_BT_COEXIST=y Patch is against 3.0.19-rc7 (localversoin = -next-20150203) .../staging/rtl8723au/hal/rtl8723a_bt-coexist.c| 60 +++- 1 file changed, 8 insertions(+), 52 deletions(-) diff --git a/drivers/staging/rtl8723au/hal/rtl8723a_bt-coexist.c b/drivers/staging

Re: [PATCH] staging: lustre: lustre: lmv: fix sparse warnings about static declarations

2015-02-03 Thread Sudip Mukherjee
On Tue, Feb 03, 2015 at 08:54:45PM +0530, Mohammad Jamal wrote: This patch adds a static keyword to lprocfs_lmv_init_vars and lprocfs_lmv_module_vars to suppress the sparse warnings about static declaration have you build tested your patch? After your patch:

Re: [PATCH] staging: sm7xxfb: make smtc_scr_info static

2015-02-03 Thread Sudip Mukherjee
On Tue, Feb 03, 2015 at 02:44:28PM +0600, Max Perepelitsyn wrote: This symbol is never used anywhere else besides sm7xxfb.c Signed-off-by: Max Perepelitsyn mperepelit...@gmail.com Tested-by: Sudip Mukherjee su...@vectorindia.org --- drivers/staging/sm7xxfb/sm7xxfb.c | 2 +- 1 file

RE: [PATCH] hyper-v: allow access to vmbus from userspace driver

2015-02-03 Thread KY Srinivasan
-Original Message- From: Stephen Hemminger [mailto:step...@networkplumber.org] Sent: Tuesday, February 3, 2015 11:04 AM To: KY Srinivasan; Haiyang Zhang Cc: de...@linuxdriverproject.org; net...@vger.kernel.org Subject: [PATCH] hyper-v: allow access to vmbus from userspace driver

[PATCH] hyper-v: allow access to vmbus from userspace driver

2015-02-03 Thread Stephen Hemminger
Brocade is submitting a hyper-v driver for DPDK d...@dpdk.org but this driver needs a hook in the hyper-v bus layer to allow the additional hv_uio driver to access the shared vmbus pages. The hv_uio driver lives in DPDK (like igb_uio) and provides userspace access to raw network packets.

[PATCH] staging: ft1000: fix braces warning

2015-02-03 Thread Bilel DRIRA
This patch fix the checkpatch.pl WARNING: WARNING: braces {} are not necessary for single statement blocks Signed-off-by: Bilel DRIRA bilel...@gmail.com --- drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c | 78 +- 1 file changed, 31 insertions(+), 47 deletions(-) diff

Re: [PATCH RFC] staging: comedi: dt282x: condition with no effect - if identical to else

2015-02-03 Thread Nicholas Mc Guire
3.0.19-rc7 (localversion = -next-20150203) drivers/staging/comedi/drivers/dt282x.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/staging/comedi/drivers/dt282x.c b/drivers/staging/comedi/drivers/dt282x.c index 051dfb2..22c59e5 100644 --- a/drivers

[PATCH 0/2] staging: ft1000-pcmcia: ft1000_hw.c: fix checkpatch warnings

2015-02-03 Thread Daniele Alessandrelli
This small patchset fixes all the style problems reported by checkpatch.pl on ft1000-pcmcia/ft1000_hw.c * Patch 1/2 fixes all trivial issues not requiring code refactoring * Patch 2/2 fixes all remaining line over 80 characters warnings by means of some code refactoring. Specifically, the

Re: [PATCH RESEND 0/6] Drivers: hv: vmbus: Some miscellaneous bug fixes and cleanup

2015-02-03 Thread Greg KH
On Tue, Feb 03, 2015 at 07:31:36AM -0800, K. Y. Srinivasan wrote: This is a resend of the patches from Dexuan and Nicholas What do you mean by resend? Did you send them to be before? I can't see them in my inbox anywhere. confused, greg k-h ___

[PATCH 1/2] ft1000-pcmcia: ft1000_hw.c: fix style issues not requiring code refactoring

2015-02-03 Thread Daniele Alessandrelli
Fix all the trivial style issues (as reported by checkpatch.pl) not requiring code refactoring. A following patch is expected to fix the remaining issues by performing some code refactoring. Signed-off-by: Daniele Alessandrelli daniele.alessandre...@gmail.com ---

[PATCH 2/2] ft1000-pcmcia: ft1000_hw.c: code refactoring: add ft1000_read_dsp_timer()

2015-02-03 Thread Daniele Alessandrelli
Add new function ft1000_read_dsp_timer() replacing recurring code block for reading DSP timer. Such code refactoring solves all remaining line over 80 characters warnings reported by checkpatch.pl. Signed-off-by: Daniele Alessandrelli daniele.alessandre...@gmail.com ---

Re: [PATCH RESEND V2 0/8] Drivers: hv: vmbus: Enable unloading of vmbus driver

2015-02-03 Thread Greg KH
On Wed, Jan 28, 2015 at 04:49:20PM -0800, K. Y. Srinivasan wrote: Windows hosts starting with Ws2012 R2 permit re-establishing the vmbus connection from the guest. This patch-set includes patches from Vitaly to cleanup the VMBUS unload path so we can potentially reload the driver. This set

Re: [PATCH] staging: ft1000: fix braces warning

2015-02-03 Thread Joe Perches
On Tue, 2015-02-03 at 21:05 +0100, bill wrote: Ok,thank you, I will do that and resend the patch again. I wouldn't. It's probably better as a separate patch anyway. btw: please don't top post. cheers, Joe On Tue, Feb 03, 2015 at 11:05:08AM -0800, Joe Perches wrote: On Tue, 2015-02-03 at

RE: [PATCH RESEND V2 0/8] Drivers: hv: vmbus: Enable unloading of vmbus driver

2015-02-03 Thread KY Srinivasan
-Original Message- From: Greg KH [mailto:gre...@linuxfoundation.org] Sent: Tuesday, February 3, 2015 3:47 PM To: KY Srinivasan Cc: linux-ker...@vger.kernel.org; de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; vkuzn...@redhat.com; t...@linutronix.de Subject: Re:

RE: [PATCH RESEND 0/6] Drivers: hv: vmbus: Some miscellaneous bug fixes and cleanup

2015-02-03 Thread KY Srinivasan
-Original Message- From: Greg KH [mailto:gre...@linuxfoundation.org] Sent: Tuesday, February 3, 2015 4:01 PM To: KY Srinivasan Cc: a...@canonical.com; de...@linuxdriverproject.org; o...@aepfle.de; linux-ker...@vger.kernel.org Subject: Re: [PATCH RESEND 0/6] Drivers: hv: vmbus:

Re: [PATCH RESEND 0/6] Drivers: hv: vmbus: Some miscellaneous bug fixes and cleanup

2015-02-03 Thread Greg KH
On Tue, Feb 03, 2015 at 11:51:53PM +, KY Srinivasan wrote: -Original Message- From: Greg KH [mailto:gre...@linuxfoundation.org] Sent: Tuesday, February 3, 2015 3:45 PM To: KY Srinivasan Cc: linux-ker...@vger.kernel.org; de...@linuxdriverproject.org; o...@aepfle.de;

RE: [PATCH RESEND 0/6] Drivers: hv: vmbus: Some miscellaneous bug fixes and cleanup

2015-02-03 Thread KY Srinivasan
-Original Message- From: Greg KH [mailto:gre...@linuxfoundation.org] Sent: Tuesday, February 3, 2015 3:45 PM To: KY Srinivasan Cc: linux-ker...@vger.kernel.org; de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; vkuzn...@redhat.com Subject: Re: [PATCH RESEND 0/6]

Re: [PATCH RESEND V2 0/8] Drivers: hv: vmbus: Enable unloading of vmbus driver

2015-02-03 Thread Greg KH
On Tue, Feb 03, 2015 at 11:57:18PM +, KY Srinivasan wrote: -Original Message- From: Greg KH [mailto:gre...@linuxfoundation.org] Sent: Tuesday, February 3, 2015 3:47 PM To: KY Srinivasan Cc: linux-ker...@vger.kernel.org; de...@linuxdriverproject.org; o...@aepfle.de;

RE: [PATCH] hyper-v: allow access to vmbus from userspace driver

2015-02-03 Thread KY Srinivasan
-Original Message- From: devel [mailto:driverdev-devel-boun...@linuxdriverproject.org] On Behalf Of KY Srinivasan Sent: Tuesday, February 3, 2015 11:24 AM To: Stephen Hemminger; Haiyang Zhang Cc: de...@linuxdriverproject.org; net...@vger.kernel.org Subject: RE: [PATCH] hyper-v:

Re: [PATCH] staging/fwserial: use correct vendor/version IDs

2015-02-03 Thread Stefan Richter
On Feb 03 Peter Hurley wrote: On 02/03/2015 03:44 AM, Stefan Richter wrote: On Feb 02 Peter Hurley wrote: [...] The problem is a host with the old OUIs will not recognize a remote unit with the new OUIs, and vice versa. Even though the new ids could be added to the unit driver's

[PATCH 00/16] Drivers: hv: vmbus: Miscellaneous fixes/enhancements

2015-02-03 Thread K. Y. Srinivasan
Windows hosts starting with Ws2012 R2 permit re-establishing the vmbus connection from the guest. This patch-set includes patches from Vitaly to cleanup the VMBUS unload path so we can potentially reload the driver. This set also includes a patch from Jake to correctly extract MMIO

[PATCH 03/16] drivers:hv:vmbus drivers:hv:vmbus Allow for more than one MMIO range for children

2015-02-03 Thread K. Y. Srinivasan
From: Jake Oshins [mailto:ja...@microsoft.com] This set of changes finds the _CRS object in the ACPI namespace that contains memory address space descriptors, intended to convey to VMBus which ranges of memory-mapped I/O space are available for child devices, and then builds a resource list that

[PATCH 12/16] hv: channel: match var type to return type of wait_for_completion

2015-02-03 Thread K. Y. Srinivasan
From: Nicholas Mc Guire der.h...@hofr.at return type of wait_for_completion_timeout is unsigned long not int, this patch changes the type of t from int to unsigned long. Signed-off-by: Nicholas Mc Guire der.h...@hofr.at Signed-off-by: K. Y. Srinivasan k...@microsoft.com --- drivers/hv/channel.c

[PATCH 05/16] Drivers: hv: vmbus: teardown hv_vmbus_con workqueue and vmbus_connection pages on shutdown

2015-02-03 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] We need to destroy hv_vmbus_con on module shutdown, otherwise the following crash is sometimes observed: [ 76.569845] hv_vmbus: Hyper-V Host Build:9600-6.3-17-0.17039; Vmbus version:3.0 [ 82.598859] BUG: unable to handle kernel paging

[PATCH 07/16] clockevents: export clockevents_unbind_device instead of clockevents_unbind

2015-02-03 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] It looks like clockevents_unbind is being exported by mistake as: - it is static; - it is not listed in include/linux/clockchips.h; - EXPORT_SYMBOL_GPL(clockevents_unbind) follows clockevents_unbind_device() implementation. I think

[PATCH 06/16] drivers: hv: vmbus: Teardown synthetic interrupt controllers on module unload

2015-02-03 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] SynIC has to be switched off when we unload the module, otherwise registered memory pages can get corrupted after (as Hyper-V host still writes there) and we see the following crashes for random processes: [ 89.116774] BUG: Bad page map in

[PATCH 10/16] hv: vmbus_post_msg: retry the hypercall on some transient errors

2015-02-03 Thread K. Y. Srinivasan
From: Dexuan Cui [mailto:de...@microsoft.com] I got HV_STATUS_INVALID_CONNECTION_ID on Hyper-V 2008 R2 when keeping running rmmod hv_netvsc; modprobe hv_netvsc; rmmod hv_utils; modprobe hv_utils in a Linux guest. Looks the host has some kind of throttling mechanism if some kinds of hypercalls are

[PATCH 04/16] Drivers: hv: vmbus: avoid double kfree for device_obj

2015-02-03 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] On driver shutdown device_obj is being freed twice: 1) In vmbus_free_channels() 2) vmbus_device_release() (which is being triggered by device_unregister() in vmbus_device_unregister(). This double kfree leads to the following sporadic crash

[PATCH 01/16] Drivers: hv: vmbus: prevent cpu offlining on newer hypervisors

2015-02-03 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov vkuzn...@redhat.com When an SMP Hyper-V guest is running on top of 2012R2 Server and secondary cpus are sent offline (with echo 0 /sys/devices/system/cpu/cpu$cpu/online) the system freeze is observed. This happens due to the fact that on newer hypervisors (Win8, WS2012R2,

[PATCH 02/16] Drivers: hv: vmbus: rename channel work queues

2015-02-03 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] All channel work queues are named 'hv_vmbus_ctl', this makes them indistinguishable in ps output and makes it hard to link to the corresponding vmbus device. Rename them to hv_vmbus_ctl/N and make vmbus device names match, e.g. now vmbus_1

[PATCH 09/16] hv: hv_util: move vmbus_open() to a later place

2015-02-03 Thread K. Y. Srinivasan
From: Dexuan Cui [mailto:de...@microsoft.com] Before the line vmbus_open() returns, srv-util_cb can be already running and the variables, like util_fw_version, are needed by the srv-util_cb. So we have to make sure the variables are initialized before the vmbus_open(). CC: K. Y. Srinivasan

[PATCH 16/16] Drivers: hv: vmbus: Add support for the NetworkDirect GUID

2015-02-03 Thread K. Y. Srinivasan
NetworkDirect is a service that supports guest RDMA. Define the GUID for this service. Signed-off-by: K. Y. Srinivasan k...@microsoft.com --- drivers/hv/channel_mgmt.c |2 ++ include/linux/hyperv.h| 10 ++ 2 files changed, 12 insertions(+), 0 deletions(-) diff --git

[PATCH 11/16] hv: vmbus_open(): reset the channel state on ENOMEM

2015-02-03 Thread K. Y. Srinivasan
From: Dexuan Cui [mailto:de...@microsoft.com] Without this patch, the state is put to CHANNEL_OPENING_STATE, and when the driver is loaded next time, vmbus_open() will fail immediately due to newchannel-state != CHANNEL_OPEN_STATE. CC: K. Y. Srinivasan k...@microsoft.com Signed-off-by: Dexuan

[PATCH 14/16] hv: hv_balloon: match var type to return type of wait_for_completion

2015-02-03 Thread K. Y. Srinivasan
From: Nicholas Mc Guire der.h...@hofr.at return type of wait_for_completion_timeout is unsigned long not int, this patch changes the type of t from int to unsigned long. Signed-off-by: Nicholas Mc Guire der.h...@hofr.at Signed-off-by: K. Y. Srinivasan k...@microsoft.com ---

[PATCH 08/16] Drivers: hv: vmbus: Teardown clockevent devices on module unload

2015-02-03 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] Newly introduced clockevent devices made it impossible to unload hv_vmbus module as clockevents_config_and_register() takes additional reverence to the module. To make it possible again we do the following: - avoid setting dev-owner for

[PATCH 15/16] Drivers: hv: vmbus: Fix a bug in the error path in vmbus_open()

2015-02-03 Thread K. Y. Srinivasan
Correctly rollback state if the failure occurs after we have handed over the ownership of the buffer to the host. Signed-off-by: K. Y. Srinivasan k...@microsoft.com Cc: sta...@vger.kernel.org --- drivers/hv/channel.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git

[PATCH 13/16] hv: channel_mgmt: match var type to return type of wait_for_completion

2015-02-03 Thread K. Y. Srinivasan
From: Nicholas Mc Guire der.h...@hofr.at return type of wait_for_completion_timeout is unsigned long not int, this patch changes the type of t from int to unsigned long. Signed-off-by: Nicholas Mc Guire der.h...@hofr.at Signed-off-by: K. Y. Srinivasan k...@microsoft.com ---