[PATCH V2 13/13] Drivers: hv: vmbus: Give control over how the ring access is serialized

2016-01-27 Thread K. Y. Srinivasan
current behavior. Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel.c | 15 +++ drivers/hv/channel_mgmt.c |1 + drivers/hv/hyperv_vmbus.h |2 +- drivers/hv/ring_buffer.c | 13 - include/linux/hyperv.h| 16 5 files changed, 37

[PATCH V2 12/13] Drivers: hv: vmbus: Eliminate the spin lock on the read path

2016-01-27 Thread K. Y. Srinivasan
The function hv_ringbuffer_read() is called always on a pre-assigned CPU. Each chnnel is bound to a specific CPU and this function is always called on the CPU the channel is bound. There is no need to acquire the spin lock; get rid of this overhead. Signed-off-by: K. Y. Srinivasan --- drivers

[PATCH V2 05/13] Drivers: hv: vmbus: add a helper function to set a channel's pending send size

2016-01-27 Thread K. Y. Srinivasan
From: Dexuan Cui This will be used by the coming net/hvsock driver. Signed-off-by: Dexuan Cui Signed-off-by: K. Y. Srinivasan --- include/linux/hyperv.h |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h index 3172521

[PATCH V2 11/13] Drivers: hv: vmbus: add an API vmbus_hvsock_device_unregister()

2016-01-27 Thread K. Y. Srinivasan
From: Dexuan Cui The hvsock driver needs this API to release all the resources related to the channel. Signed-off-by: Dexuan Cui Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel_mgmt.c | 33 - drivers/hv/connection.c |4 ++-- include/linux

[PATCH V2 01/13] tools/hv: Use include/uapi with __EXPORTED_HEADERS__

2016-01-27 Thread K. Y. Srinivasan
From: Kamal Mostafa Use the local uapi headers to keep in sync with "recently" added #define's (e.g. VSS_OP_REGISTER1). Fixes: 3eb2094c59e8 ("Adding makefile for tools/hv") Cc: Signed-off-by: Kamal Mostafa Signed-off-by: K. Y. Srinivasan --- tools/hv/Makefile |

[PATCH 1/1] scsi: storvsc: Fix a build issue reported by kbuild test robot

2016-01-27 Thread K. Y. Srinivasan
: In function `storvsc_drv_exit': >> storvsc_drv.c:(.exit.text+0x123c): undefined reference to >> `fc_release_transport' With this commit, the storvsc driver depends on FC atttributes. Make this dependency explicit. Signed-off-by: K. Y. Srinivasan Reported-by: Fengguang Wu --- dr

[PATCH V2 1/1] scsi: storvsc: Fix a build issue reported by kbuild test robot

2016-01-29 Thread K. Y. Srinivasan
: In function `storvsc_drv_exit': >> storvsc_drv.c:(.exit.text+0x123c): undefined reference to >> `fc_release_transport' With this commit, the storvsc driver depends on FC atttributes. Make this dependency explicit. Signed-off-by: K. Y. Srinivasan Reported-by: Fengguang Wu -

[PATCH 3/8] Drivers: hv: vmbus: remove code duplication in message handling

2016-02-26 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov We have 3 functions dealing with messages and they all implement the same logic to finalize reads, move it to vmbus_signal_eom(). Suggested-by: Radim Krcmar Signed-off-by: Vitaly Kuznetsov Reviewed-by: Radim Kr.má Signed-off-by: K. Y. Srinivasan --- drivers/hv

[PATCH 4/8] Drivers: hv: vmbus: avoid unneeded compiler optimizations in vmbus_wait_for_unload()

2016-02-26 Thread K. Y. Srinivasan
-by: Radim Kr.má Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel_mgmt.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/hv/channel_mgmt.c b/drivers/hv/channel_mgmt.c index 73a17be..38b682ba 100644 --- a/drivers/hv/channel_mgmt.c +++ b/drivers/hv

[PATCH 0/8] Drivers: hv: Miscellaneous fixes

2016-02-26 Thread K. Y. Srinivasan
Some miscellaneous fixes and cleanup. Alex Ng (2): Drivers: hv: utils: Remove util transport handler from list if registration fails Drivers: hv: vmbus: Support kexec on ws2012 r2 and above K. Y. Srinivasan (2): Drivers: hv: util: Pass the channel information during the init call

[PATCH 7/8] Drivers: hv: vmbus: Support handling messages on multiple CPUs

2016-02-26 Thread K. Y. Srinivasan
Starting with Windows 2012 R2, message inteerupts can be delivered on any VCPU in the guest. Support this functionality. Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv.c | 10 ++ drivers/hv/hyperv_vmbus.h |4 +++- drivers/hv/vmbus_drv.c| 10 -- 3 files

[PATCH 1/8] Drivers: hv: vmbus: don't loose HVMSG_TIMER_EXPIRED messages

2016-02-26 Thread K. Y. Srinivasan
lose it as we can't handle it from there. Avoid looping in vmbus_on_msg_dpc(), we're OK with handling one message per interrupt. Signed-off-by: Vitaly Kuznetsov Reviewed-by: Radim Kr.má Signed-off-by: K. Y. Srinivasan --- drivers/hv/vmbus_drv.c | 68 +++---

[PATCH 6/8] Drivers: hv: utils: Remove util transport handler from list if registration fails

2016-02-26 Thread K. Y. Srinivasan
From: Alex Ng If util transport fails to initialize for any reason, the list of transport handlers may become corrupted due to freeing the transport handler without removing it from the list. Fix this by cleaning it up from the list. Signed-off-by: Alex Ng Signed-off-by: K. Y. Srinivasan

[PATCH 5/8] Drivers: hv: util: Pass the channel information during the init call

2016-02-26 Thread K. Y. Srinivasan
n will fail, we set it to non-NULL on the first real request from the server. Signed-off-by: K. Y. Srinivasan Reported-by: Vitaly Kuznetsov --- drivers/hv/hv_fcopy.c|2 +- drivers/hv/hv_kvp.c |2 +- drivers/hv/hv_snapshot.c |2 +- drivers/hv/hv_util.c |1 + include

[PATCH 8/8] Drivers: hv: vmbus: Support kexec on ws2012 r2 and above

2016-02-26 Thread K. Y. Srinivasan
by: K. Y. Srinivasan --- drivers/hv/connection.c | 10 +- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/drivers/hv/connection.c b/drivers/hv/connection.c index 3b6dc00..d02f137 100644 --- a/drivers/hv/connection.c +++ b/drivers/hv/connection.c @@ -88,8 +88,16 @@ stati

[PATCH 2/8] Drivers: hv: vmbus: avoid wait_for_completion() on crash

2016-02-26 Thread K. Y. Srinivasan
Signed-off-by: Vitaly Kuznetsov Reviewed-by: Radim Kr.má Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel_mgmt.c |4 ++-- drivers/hv/connection.c |2 +- drivers/hv/hyperv_vmbus.h |2 +- drivers/hv/vmbus_drv.c|4 ++-- 4 files changed, 6 insertions(+), 6 deletions

[PATCH 1/1] scsi: storvsc: Fix a build issue reported by kbuild test robot

2016-02-26 Thread K. Y. Srinivasan
: In function `storvsc_drv_exit': >> storvsc_drv.c:(.exit.text+0x123c): undefined reference to >> `fc_release_transport' With this commit, the storvsc driver depends on FC atttributes. Make this dependency explicit. Signed-off-by: K. Y. Srinivasan Reported-by: Fengguang Wu --- dr

[PATCH v4 1/1] scsi: storvsc: Fix a build issue reported by kbuild test robot

2016-02-26 Thread K. Y. Srinivasan
: In function `storvsc_drv_exit': >> storvsc_drv.c:(.exit.text+0x123c): undefined reference to >> `fc_release_transport' With this commit, the storvsc driver depends on FC atttributes. Make this dependency explicit. Signed-off-by: K. Y. Srinivasan Reported-by: Fengguang Wu ---

[PATCH 4/6] hv: Use new vmbus_mmio_free() from client drivers.

2016-03-09 Thread K. Y. Srinivasan
From: Jake Oshins This patch modifies all the callers of vmbus_mmio_allocate() to call vmbus_mmio_free() instead of release_mem_region(). Signed-off-by: Jake Oshins Signed-off-by: K. Y. Srinivasan --- drivers/video/fbdev/hyperv_fb.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions

[PATCH 6/6] hv: Track allocations of children of hv_vmbus in private resource tree

2016-03-09 Thread K. Y. Srinivasan
this belongs in the pnp layer, rather than in this driver. Rafael Wysocki, the maintainter of the pnp layer, has previously asked that we not modify the pnp layer as it is considered deprecated. This patch is thus essentially a workaround. Signed-off-by: Jake Oshins Signed-off-by: K. Y. Sriniva

[PATCH 0/6] Drivers: hv: vmbus: Fix mmio management

2016-03-09 Thread K. Y. Srinivasan
Fix mmio management for vmbus devices. Also included is a patch to fix an issue in KVP. Jake Oshins (5): hv: Make a function to free mmio regions through vmbus hv: Lock access to hyperv_mmio resource tree hv: Use new vmbus_mmio_free() from client drivers. hv: Reverse order of resources in

[PATCH 2/6] hv: Make a function to free mmio regions through vmbus

2016-03-09 Thread K. Y. Srinivasan
-by: Jake Oshins Signed-off-by: K. Y. Srinivasan --- drivers/hv/vmbus_drv.c | 15 +++ include/linux/hyperv.h |2 +- 2 files changed, 16 insertions(+), 1 deletions(-) diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c index 64713ff..44e95a4 100644 --- a/drivers/hv

[PATCH 5/6] hv: Reverse order of resources in hyperv_mmio

2016-03-09 Thread K. Y. Srinivasan
From: Jake Oshins A patch later in this series allocates child nodes in this resource tree. For that to work, this tree needs to be sorted in ascending order. Signed-off-by: Jake Oshins Signed-off-by: K. Y. Srinivasan --- drivers/hv/vmbus_drv.c |3 +-- 1 files changed, 1 insertions

[PATCH 1/6] Drivers: hv: kvp: fix IP Failover

2016-03-09 Thread K. Y. Srinivasan
a solution with our current separation between kernel and userspace parts. Other two modules (VSS and FCOPY) don't require such delay, leave them untouched. Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_kvp.c | 30 ++

[PATCH 3/6] hv: Lock access to hyperv_mmio resource tree

2016-03-09 Thread K. Y. Srinivasan
tree which can happen on multiple threads. Signed-off-by: Jake Oshins Signed-off-by: K. Y. Srinivasan --- drivers/hv/vmbus_drv.c | 16 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c index 44e95a4..60553c1 100644

[PATCH 1/1] cpu-hotplug: export cpu_hotplug_enable/cpu_hotplug_disable

2015-06-21 Thread K. Y. Srinivasan
netsov Signed-off-by: K. Y. Srinivasan --- Documentation/power/suspend-and-cpuhotplug.txt |6 +++--- kernel/cpu.c | 13 - 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/Documentation/power/suspend-and-cpuhotplug.txt b/Documentation

[PATCH 00/10] Drivers: hv: vmbus: Enable kexec and other misc cleanup

2015-06-27 Thread K. Y. Srinivasan
In addition to enabling kexec, this patch-set has a bunch of miscellaneous fixes. Alex Ng (1): Drivers: hv: balloon: Enable dynamic memory protocol negotiation with Windows 10 hosts K. Y. Srinivasan (1): Drivers: hv: vmbus: Permit sending of packets without payload Vitaly Kuznetsov (8

[PATCH 01/10] Drivers: hv: vmbus: remove hv_synic_free_cpu() call from hv_synic_cleanup()

2015-06-27 Thread K. Y. Srinivasan
kexec. Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv.c|2 -- drivers/hv/vmbus_drv.c |1 + 2 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/hv/hv.c b/drivers/hv/hv.c index d3943bc..5b87042 100644 --- a/drivers/hv/hv.c +++ b/drive

[PATCH 02/10] kexec: define kexec_in_progress in !CONFIG_KEXEC case

2015-06-27 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov If some piece of code wants to check kexec_in_progress it has to be put in #ifdef CONFIG_KEXEC block to not break the build in !CONFIG_KEXEC case. Overcome this limitation by defining kexec_in_progress to false. Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y

[PATCH 03/10] Drivers: hv: vmbus: add special kexec handler

2015-06-27 Thread K. Y. Srinivasan
t it) so let's do this in mshyperv.c The minimalistic cleanup consists of cleaning up clockevents, synic MSRs, guest os id MSR, and hypercall MSR. Kdump doesn't require all this stuff as it lives in a separate memory space. Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan -

[PATCH RESEND 00/10] Drivers: hv: vmbus: Enable kexec and other misc cleanup

2015-06-28 Thread K. Y. Srinivasan
In addition to enabling kexec, this patch-set has a bunch of miscellaneous fixes. I have been having mail issues and hence resending the series. Alex Ng (1): Drivers: hv: balloon: Enable dynamic memory protocol negotiation with Windows 10 hosts K. Y. Srinivasan (1): Drivers: hv: vmbus

[PATCH RESEND 03/10] Drivers: hv: vmbus: add special kexec handler

2015-06-28 Thread K. Y. Srinivasan
t it) so let's do this in mshyperv.c The minimalistic cleanup consists of cleaning up clockevents, synic MSRs, guest os id MSR, and hypercall MSR. Kdump doesn't require all this stuff as it lives in a separate memory space. Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan -

[PATCH RESEND 08/10] Drivers: hv: fcopy: dynamically allocate smsg_out in fcopy_send_data()

2015-06-28 Thread K. Y. Srinivasan
f-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_fcopy.c | 21 + 1 files changed, 13 insertions(+), 8 deletions(-) diff --git a/drivers/hv/hv_fcopy.c b/drivers/hv/hv_fcopy.c index b50dd33..db4b887 100644 --- a/drivers/hv/hv_fcopy.c +++ b/drivers/h

[PATCH RESEND 07/10] Drivers: hv: kvp: check kzalloc return value

2015-06-28 Thread K. Y. Srinivasan
OOM situation it is preferable to wait. Reported-by: Dan Carpenter Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_kvp.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/hv/hv_kvp.c b/drivers/hv/hv_kvp.c index d85798d..74c38a9 100

[PATCH RESEND 09/10] Drivers: hv: balloon: Enable dynamic memory protocol negotiation with Windows 10 hosts

2015-06-28 Thread K. Y. Srinivasan
From: Alex Ng Support Win10 protocol for Dynamic Memory. Thia patch allows guests on Win10 hosts to hot-add memory even when dynamic memory is not enabled on the guest. Signed-off-by: Alex Ng Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_balloon.c | 26 -- 1

[PATCH RESEND 04/10] Drivers: hv: don't do hypercalls when hypercall_page is NULL

2015-06-28 Thread K. Y. Srinivasan
beginning of the do_hypercall() function. Unfortunately we have to write the !hypercall_page check twice to not mix declarations and code. Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv.c | 13 - 1 files changed, 8 insertions(+), 5 deletions

[PATCH REESEND 06/10] Drivers: hv: vmbus: prefer 'die' notification chain to 'panic'

2015-06-28 Thread K. Y. Srinivasan
)) we won't get 'die' notification so keep the 'panic' notification reporter as well but guard against double reporting. Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- drivers/hv/vmbus_drv.c | 40 1 file

[PATCH RESEND 05/10] Drivers: hv: vmbus: add special crash handler

2015-06-28 Thread K. Y. Srinivasan
already established. We need to perform some mandatory minimalistic cleanup before we start new kernel. Reported-by: K. Y. Srinivasan Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- arch/x86/include/asm/mshyperv.h |2 ++ arch/x86/kernel/cpu/mshyperv.c | 22

[PATCH RESEND 01/10] Drivers: hv: vmbus: remove hv_synic_free_cpu() call from hv_synic_cleanup()

2015-06-28 Thread K. Y. Srinivasan
kexec. Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv.c|2 -- drivers/hv/vmbus_drv.c |1 + 2 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/hv/hv.c b/drivers/hv/hv.c index d3943bc..5b87042 100644 --- a/drivers/hv/hv.c +++ b/drive

[PATCH RESEND 10/10] Drivers: hv: vmbus: Permit sending of packets without payload

2015-06-28 Thread K. Y. Srinivasan
The guest may have to send a completion packet back to the host. To support this usage, permit sending a packet without a payload - we would be only sending the descriptor in this case. Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel.c |4 +++- 1 files changed, 3 insertions(+), 1

[PATCH RESEND 02/10] kexec: define kexec_in_progress in !CONFIG_KEXEC case

2015-06-28 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov If some piece of code wants to check kexec_in_progress it has to be put in #ifdef CONFIG_KEXEC block to not break the build in !CONFIG_KEXEC case. Overcome this limitation by defining kexec_in_progress to false. Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y

[PATCH 2/2] drivers:hv: Move MMIO range picking from hyper_fb to hv_vmbus

2015-06-30 Thread K. Y. Srinivasan
ff-by: Jake Oshins Signed-off-by: K. Y. Srinivasan --- drivers/hv/vmbus_drv.c | 88 +-- drivers/video/fbdev/hyperv_fb.c | 46 +--- include/linux/hyperv.h |7 ++- 3 files changed, 110 insertions(+), 31 deletions(-) diff

[PATCH 0/2] Drivers: hv: vmbus: Change memory-mapped I/O management for Hyper-V paravirt

2015-06-30 Thread K. Y. Srinivasan
This patch series changes the way that hv_vmbus searches for ranges of memory-mapped I/O space (MMIO) which can be used by its children. The old way just found the one and only range above 4GB. This one makes all ranges exposed in the VM's firmware potential candidates. It also moves the code w

[PATCH 1/2] drivers:hv: Modify hv_vmbus to search for all MMIO ranges available.

2015-06-30 Thread K. Y. Srinivasan
to be aware of the constraints of a Hyper-V virtual machine, which is what happens in the next patch in the series. So this first patch exists to show the first steps in reworking the MMIO allocation paths for Hyper-V front-end drivers. Signed-off-by: Jake Oshins Signed-off-by: K. Y. Srini

[PATCH 0/5] Drivers: hv: Some miscellaneous fixes

2015-07-03 Thread K. Y. Srinivasan
Some miscellaneous fixes. Dan Carpenter (1): hv: util: checking the wrong variable Denis V. Lunev (1): mshyperv: fix recognition of Hyper-V guest crash MSR's K. Y. Srinivasan (1): Drivers: hv: vmbus: Consider ND NIC in binding channels to CPUs Nik Nyby (1): Drivers: hv: vmbus: fix

[PATCH 5/5] Drivers: hv: vmbus: Consider ND NIC in binding channels to CPUs

2015-07-03 Thread K. Y. Srinivasan
We cycle through all the "high performance" channels to distribute load across the available CPUs. Process the NetworkDirect as a high performance device. Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel_mgmt.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) di

[PATCH 3/5] Drivers: hv: vmbus: don't send CHANNELMSG_UNLOAD on pre-Win2012R2 hosts

2015-07-03 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov Pre-Win2012R2 hosts don't properly handle CHANNELMSG_UNLOAD and wait_for_completion() hangs. Avoid sending such request on old hosts. Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel_mgmt.c |4 1 files chang

[PATCH 2/5] Drivers: hv: vmbus: fix typo in hv_port_info struct

2015-07-03 Thread K. Y. Srinivasan
From: Nik Nyby This fixes a typo: base_flag_bumber to base_flag_number Signed-off-by: Nik Nyby Signed-off-by: K. Y. Srinivasan --- drivers/hv/hyperv_vmbus.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/hv/hyperv_vmbus.h b/drivers/hv/hyperv_vmbus.h index

[PATCH 4/5] mshyperv: fix recognition of Hyper-V guest crash MSR's

2015-07-03 Thread K. Y. Srinivasan
ead of EDX. Signed-off-by: Andrey Smetanin Signed-off-by: Denis V. Lunev Signed-off-by: K. Y. Srinivasan --- arch/x86/include/asm/mshyperv.h |1 + arch/x86/kernel/cpu/mshyperv.c |1 + drivers/hv/vmbus_drv.c |4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --

[PATCH 1/5] hv: util: checking the wrong variable

2015-07-03 Thread K. Y. Srinivasan
From: Dan Carpenter We don't catch this allocation failure because there is a typo and we check the wrong variable. Fixes: 14b50f80c32d ('Drivers: hv: util: introduce hv_utils_transport abstraction') Signed-off-by: Dan Carpenter Reviewed-by: Vitaly Kuznetsov Signed-off-by: K

[PATCH 1/1] x86: Hyper-V: Mark the Hyper-V clocksource as being high resolution

2015-07-03 Thread K. Y. Srinivasan
-off-by: K. Y. Srinivasan --- arch/x86/kernel/cpu/mshyperv.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/arch/x86/kernel/cpu/mshyperv.c b/arch/x86/kernel/cpu/mshyperv.c index 9b5d7b5..0e507a0 100644 --- a/arch/x86/kernel/cpu/mshyperv.c +++ b/arch/x86/kernel/cpu

[PATCH net-next 1/1] hv_netvsc: Wait for sub-channels to be processed during probe

2015-07-16 Thread K. Y. Srinivasan
making sure that we return from the probe call only after ensuring that the sub-channel offers in flight are properly handled. Signed-off-by: K. Y. Srinivasan Reviewed-and-tested-by: Haiyang Zhang offermsg.offer.sub_channel_index; int ret; + unsigned long flags; nvscdev

[PATCH 0/5] Drivers: hv: vmbus: Miscellaneous improvements and fixes

2015-07-19 Thread K. Y. Srinivasan
Cui (1): Drivers: hv: vmbus: Further improve CPU affiliation logic K. Y. Srinivasan (2): Drivers: hv: vmbus: Improve the CPU affiliation for channels Drivers: hv: vmbus: Implement a clocksource based on the TSC page Viresh Kumar (1): drivers/hv: Migrate to new 'set-state' interf

[PATCH 3/5] Drivers: hv_vmbus: Fix signal to host condition

2015-07-19 Thread K. Y. Srinivasan
changes the hv_need_to_signal_on_read to use the previously read value rather than recalculating it. Signed-off-by: Christopher Oo Signed-off-by: K. Y. Srinivasan --- drivers/hv/ring_buffer.c | 14 +++--- 1 files changed, 3 insertions(+), 11 deletions(-) diff --git a/drivers/hv

[PATCH 5/5] Drivers: hv: vmbus: Implement a clocksource based on the TSC page

2015-07-19 Thread K. Y. Srinivasan
MSR. We implement a time source based on this mechanism. Tested-by: Vivek Yadav Signed-off-by: K. Y. Srinivasan --- arch/x86/include/uapi/asm/hyperv.h |2 + drivers/hv/hv.c| 66 drivers/hv/hyperv_vmbus.h |9 + 3 files

[PATCH 4/5] drivers/hv: Migrate to new 'set-state' interface

2015-07-19 Thread K. Y. Srinivasan
From: Viresh Kumar Migrate hv driver to the new 'set-state' interface provided by clockevents core, the earlier 'set-mode' interface is marked obsolete now. This also enables us to implement callbacks for new states of clockevent devices, for example: ONESHOT_STOPPED. C

[PATCH 2/5] Drivers: hv: vmbus: Further improve CPU affiliation logic

2015-07-19 Thread K. Y. Srinivasan
From: Dexuan Cui Keep track of CPU affiliations of sub-channels within the scope of the primary channel. This will allow us to better distribute the load amongst available CPUs. Signed-off-by: Dexuan Cui Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel_mgmt.c | 20

[PATCH 1/5] Drivers: hv: vmbus: Improve the CPU affiliation for channels

2015-07-19 Thread K. Y. Srinivasan
The current code tracks the assigned CPUs within a NUMA node in the context of the primary channel. So, if we have a VM with a single NUMA node with 8 VCPUs, we may end up unevenly distributing the channel load. Fix the issue by tracking affiliations globally. Signed-off-by: K. Y. Srinivasan

[PATCH 0/3] Drivers: hv: vmbus: Add sysfs attributes to show CPU binding of channels

2015-07-20 Thread K. Y. Srinivasan
Add sysfs attributes to track the binding of CPUs to channels. This patchset also adds a script to list VMBUS devices. Dexuan Cui (3): Drivers: hv: vmbus: add a sysfs attr to show the binding of channel/VP tools: hv: add a python script lsvmbus to list VMBus devices Drivers: hv: vmbus:

[PATCH 1/3] Drivers: hv: vmbus: add a sysfs attr to show the binding of channel/VP

2015-07-20 Thread K. Y. Srinivasan
From: Dexuan Cui This is useful to analyze performance issue. Signed-off-by: Dexuan Cui Signed-off-by: K. Y. Srinivasan --- drivers/hv/vmbus_drv.c | 38 ++ 1 files changed, 38 insertions(+), 0 deletions(-) diff --git a/drivers/hv/vmbus_drv.c b/drivers

[PATCH 3/3] Drivers: hv: vmbus: document the VMBus sysfs files

2015-07-20 Thread K. Y. Srinivasan
From: Dexuan Cui The 4 sysfs files should be stable ABIs to the user space. Signed-off-by: Dexuan Cui Signed-off-by: K. Y. Srinivasan --- Documentation/ABI/stable/sysfs-bus-vmbus | 29 + MAINTAINERS |1 + 2 files changed, 30

[PATCH 2/3] tools: hv: add a python script lsvmbus to list VMBus devices

2015-07-20 Thread K. Y. Srinivasan
From: Dexuan Cui By default lsvmbus lists all the devices in the VMBus. With -v or -vv, more information is printed, including the VMBus Rel_ID, class ID, device ID and which channel is bound to which virtual processor, etc. Signed-off-by: Dexuan Cui Signed-off-by: K. Y. Srinivasan --- tools

[PATCH V2 0/5] Drivers: hv: vmbus: Miscellaneous improvements and fixes

2015-07-20 Thread K. Y. Srinivasan
): Drivers: hv_vmbus: Fix signal to host condition Dexuan Cui (1): Drivers: hv: vmbus: Further improve CPU affiliation logic K. Y. Srinivasan (2): Drivers: hv: vmbus: Improve the CPU affiliation for channels Drivers: hv: vmbus: Implement a clocksource based on the TSC page Viresh Kumar (1

[PATCH V2 5/5] Drivers: hv: vmbus: Implement a clocksource based on the TSC page

2015-07-20 Thread K. Y. Srinivasan
MSR. We implement a time source based on this mechanism. Tested-by: Vivek Yadav Signed-off-by: K. Y. Srinivasan --- V2: Cleanup and unregister the clocksource as part of cleanup Dexuan Cui arch/x86/include/uapi/asm/hyperv.h |2 + drivers/hv/hv.c| 81

[PATCH V2 2/5] Drivers: hv: vmbus: Further improve CPU affiliation logic

2015-07-20 Thread K. Y. Srinivasan
From: Dexuan Cui Keep track of CPU affiliations of sub-channels within the scope of the primary channel. This will allow us to better distribute the load amongst available CPUs. Signed-off-by: Dexuan Cui Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel_mgmt.c | 20

[PATCH V2 3/5] Drivers: hv_vmbus: Fix signal to host condition

2015-07-20 Thread K. Y. Srinivasan
changes the hv_need_to_signal_on_read to use the previously read value rather than recalculating it. Signed-off-by: Christopher Oo Signed-off-by: K. Y. Srinivasan --- drivers/hv/ring_buffer.c | 14 +++--- 1 files changed, 3 insertions(+), 11 deletions(-) diff --git a/drivers/hv

[PATCH V2 4/5] drivers/hv: Migrate to new 'set-state' interface

2015-07-20 Thread K. Y. Srinivasan
From: Viresh Kumar Migrate hv driver to the new 'set-state' interface provided by clockevents core, the earlier 'set-mode' interface is marked obsolete now. This also enables us to implement callbacks for new states of clockevent devices, for example: ONESHOT_STOPPED. C

[PATCH V2 1/5] Drivers: hv: vmbus: Improve the CPU affiliation for channels

2015-07-20 Thread K. Y. Srinivasan
The current code tracks the assigned CPUs within a NUMA node in the context of the primary channel. So, if we have a VM with a single NUMA node with 8 VCPUs, we may end up unevenly distributing the channel load. Fix the issue by tracking affiliations globally. Signed-off-by: K. Y. Srinivasan

[PATCH V2 net-next 1/1] hv_netvsc: Wait for sub-channels to be processed during probe

2015-07-22 Thread K. Y. Srinivasan
The current code returns from probe without waiting for the proper handling of subchannels that may be requested. If the netvsc driver were to be rapidly loaded/unloaded, we can trigger a panic as the unload will be tearing down state that may not have been fully setup yet. We fix this issue by ma

[PATCH V7 2/4] cpu-hotplug: export cpu_hotplug_enable/cpu_hotplug_disable

2015-07-23 Thread K. Y. Srinivasan
Reviewed-by: Thomas Gleixner Signed-off-by: K. Y. Srinivasan --- kernel/cpu.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/kernel/cpu.c b/kernel/cpu.c index 1225fc2..18f00ae 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -194,6 +194,7 @@ void cpu_hotplug_disable

[PATCH V7 0/4] Drivers: hv: vmbus: use cpu_hotplug_enable/disable for CPU offlining prevention

2015-07-23 Thread K. Y. Srinivasan
disable_nonboot_cpus() do cpu_hotplug_disabled++ unconditionally as its users are doing enable_nonboot_cpus() on their failure paths. Changes since v3: - add WARN_ON when decreasing cpu_hotplug_disabled [Peter Zijlstra] Changes since v2: - Rebase on top of current Greg's char-misc-next tree [K. Y. Srini

[PATCH V7 1/4] cpu-hotplug: convert cpu_hotplug_disabled to a counter

2015-07-23 Thread K. Y. Srinivasan
otplug_disabled counter in disable_nonboot_cpus() unconditionally as all users of disable_nonboot_cpus() are supposed to do enable_nonboot_cpus() in case an error was returned. Signed-off-by: Vitaly Kuznetsov Reviewed-by: Thomas Gleixner Signed-off-by: K. Y. Srinivasan --- Documentation/power/

[PATCH 4/4] Tools: hv: kvp: fix a build warning -Wformat-security

2015-07-23 Thread K. Y. Srinivasan
From: Dexuan Cui It is to fix: hv_kvp_daemon.c:705:2: warning: format not a string literal and no format arguments [-Wformat-security] Signed-off-by: Dexuan Cui Signed-off-by: K. Y. Srinivasan --- tools/hv/hv_kvp_daemon.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff

[PATCH V7 3/4] Drivers: hv: vmbus: use cpu_hotplug_enable/disable

2015-07-23 Thread K. Y. Srinivasan
á< Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- drivers/hv/vmbus_drv.c | 38 -- 1 files changed, 4 insertions(+), 34 deletions(-) diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c index cf20400..6de65fb 100644 ---

drivres/hv

2015-08-01 Thread K. Y. Srinivasan
Greg, over the last two months we have sent numerous Hyper-V patches and these are yet to be comitted (all review comments have been addressed for these patches). Please let me know if I should resend these patches. Regards, K. Y ___ devel mailing

[PATCH 00/28] Drivers: hv: vmbus

2015-08-01 Thread K. Y. Srinivasan
add a sysfs attr to show the binding of channel/VP tools: hv: add a python script lsvmbus to list VMBus devices Drivers: hv: vmbus: document the VMBus sysfs files K. Y. Srinivasan (4): Drivers: hv: vmbus: Permit sending of packets without payload Drivers: hv: vmbus: Consider ND NIC in bi

[PATCH 05/28] Drivers: hv: vmbus: add special crash handler

2015-08-01 Thread K. Y. Srinivasan
already established. We need to perform some mandatory minimalistic cleanup before we start new kernel. Reported-by: K. Y. Srinivasan Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- arch/x86/include/asm/mshyperv.h |2 ++ arch/x86/kernel/cpu/mshyperv.c | 22

[PATCH 10/28] Drivers: hv: vmbus: Permit sending of packets without payload

2015-08-01 Thread K. Y. Srinivasan
The guest may have to send a completion packet back to the host. To support this usage, permit sending a packet without a payload - we would be only sending the descriptor in this case. Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel.c |4 +++- 1 files changed, 3 insertions(+), 1

[PATCH 09/28] Drivers: hv: balloon: Enable dynamic memory protocol negotiation with Windows 10 hosts

2015-08-01 Thread K. Y. Srinivasan
From: Alex Ng Support Win10 protocol for Dynamic Memory. Thia patch allows guests on Win10 hosts to hot-add memory even when dynamic memory is not enabled on the guest. Signed-off-by: Alex Ng Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_balloon.c | 26 -- 1

[PATCH 24/28] tools: hv: add a python script lsvmbus to list VMBus devices

2015-08-01 Thread K. Y. Srinivasan
From: Dexuan Cui By default lsvmbus lists all the devices in the VMBus. With -v or -vv, more information is printed, including the VMBus Rel_ID, class ID, device ID and which channel is bound to which virtual processor, etc. Signed-off-by: Dexuan Cui Signed-off-by: K. Y. Srinivasan --- tools

[PATCH 18/28] Drivers: hv: vmbus: Improve the CPU affiliation for channels

2015-08-01 Thread K. Y. Srinivasan
The current code tracks the assigned CPUs within a NUMA node in the context of the primary channel. So, if we have a VM with a single NUMA node with 8 VCPUs, we may end up unevenly distributing the channel load. Fix the issue by tracking affiliations globally. Signed-off-by: K. Y. Srinivasan

[PATCH 11/28] drivers:hv: Modify hv_vmbus to search for all MMIO ranges available.

2015-08-01 Thread K. Y. Srinivasan
to be aware of the constraints of a Hyper-V virtual machine, which is what happens in the next patch in the series. So this first patch exists to show the first steps in reworking the MMIO allocation paths for Hyper-V front-end drivers. Signed-off-by: Jake Oshins Signed-off-by: K. Y. Srini

[PATCH 17/28] Drivers: hv: vmbus: Consider ND NIC in binding channels to CPUs

2015-08-01 Thread K. Y. Srinivasan
We cycle through all the "high performance" channels to distribute load across the available CPUs. Process the NetworkDirect as a high performance device. Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel_mgmt.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) di

[PATCH 04/28] Drivers: hv: don't do hypercalls when hypercall_page is NULL

2015-08-01 Thread K. Y. Srinivasan
beginning of the do_hypercall() function. Unfortunately we have to write the !hypercall_page check twice to not mix declarations and code. Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv.c | 13 - 1 files changed, 8 insertions(+), 5 deletions

[PATCH 28/28] Drivers: hv: vmbus: use cpu_hotplug_enable/disable

2015-08-01 Thread K. Y. Srinivasan
á Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- drivers/hv/vmbus_drv.c | 38 -- 1 files changed, 4 insertions(+), 34 deletions(-) diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c index 45d6d7a..f19b6f7 100644 --- a/

[PATCH 27/28] cpu-hotplug: export cpu_hotplug_enable/cpu_hotplug_disable

2015-08-01 Thread K. Y. Srinivasan
Reviewed-by: Thomas Gleixner Signed-off-by: K. Y. Srinivasan --- kernel/cpu.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/kernel/cpu.c b/kernel/cpu.c index 1225fc2..18f00ae 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -194,6 +194,7 @@ void cpu_hotplug_disable

[PATCH 21/28] drivers/hv: Migrate to new 'set-state' interface

2015-08-01 Thread K. Y. Srinivasan
From: Viresh Kumar Migrate hv driver to the new 'set-state' interface provided by clockevents core, the earlier 'set-mode' interface is marked obsolete now. This also enables us to implement callbacks for new states of clockevent devices, for example: ONESHOT_STOPPED. C

[PATCH 22/28] Drivers: hv: vmbus: Implement a clocksource based on the TSC page

2015-08-01 Thread K. Y. Srinivasan
MSR. We implement a time source based on this mechanism. Tested-by: Vivek Yadav Signed-off-by: K. Y. Srinivasan --- arch/x86/include/uapi/asm/hyperv.h |2 + drivers/hv/hv.c| 83 drivers/hv/hyperv_vmbus.h |9 3 files

[PATCH 13/28] hv: util: checking the wrong variable

2015-08-01 Thread K. Y. Srinivasan
From: Dan Carpenter We don't catch this allocation failure because there is a typo and we check the wrong variable. Fixes: 14b50f80c32d ('Drivers: hv: util: introduce hv_utils_transport abstraction') Signed-off-by: Dan Carpenter Reviewed-by: Vitaly Kuznetsov Signed-off-by: K

[PATCH 25/28] Drivers: hv: vmbus: document the VMBus sysfs files

2015-08-01 Thread K. Y. Srinivasan
From: Dexuan Cui The 4 sysfs files should be stable ABIs to the user space. Signed-off-by: Dexuan Cui Signed-off-by: K. Y. Srinivasan --- Documentation/ABI/stable/sysfs-bus-vmbus | 29 + MAINTAINERS |1 + 2 files changed, 30

[PATCH 15/28] Drivers: hv: vmbus: don't send CHANNELMSG_UNLOAD on pre-Win2012R2 hosts

2015-08-01 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov Pre-Win2012R2 hosts don't properly handle CHANNELMSG_UNLOAD and wait_for_completion() hangs. Avoid sending such request on old hosts. Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel_mgmt.c |4 1 files chang

[PATCH 23/28] Drivers: hv: vmbus: add a sysfs attr to show the binding of channel/VP

2015-08-01 Thread K. Y. Srinivasan
From: Dexuan Cui This is useful to analyze performance issue. Signed-off-by: Dexuan Cui Signed-off-by: K. Y. Srinivasan --- drivers/hv/vmbus_drv.c | 38 ++ 1 files changed, 38 insertions(+), 0 deletions(-) diff --git a/drivers/hv/vmbus_drv.c b/drivers

[PATCH 02/28] kexec: define kexec_in_progress in !CONFIG_KEXEC case

2015-08-01 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov If some piece of code wants to check kexec_in_progress it has to be put in #ifdef CONFIG_KEXEC block to not break the build in !CONFIG_KEXEC case. Overcome this limitation by defining kexec_in_progress to false. Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y

[PATCH 01/28] Drivers: hv: vmbus: remove hv_synic_free_cpu() call from hv_synic_cleanup()

2015-08-01 Thread K. Y. Srinivasan
kexec. Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv.c|2 -- drivers/hv/vmbus_drv.c |1 + 2 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/hv/hv.c b/drivers/hv/hv.c index d3943bc..5b87042 100644 --- a/drivers/hv/hv.c +++ b/drive

[PATCH 20/28] Drivers: hv_vmbus: Fix signal to host condition

2015-08-01 Thread K. Y. Srinivasan
changes the hv_need_to_signal_on_read to use the previously read value rather than recalculating it. Signed-off-by: Christopher Oo Signed-off-by: K. Y. Srinivasan --- drivers/hv/ring_buffer.c | 14 +++--- 1 files changed, 3 insertions(+), 11 deletions(-) diff --git a/drivers/hv

[PATCH 03/28] Drivers: hv: vmbus: add special kexec handler

2015-08-01 Thread K. Y. Srinivasan
t it) so let's do this in mshyperv.c The minimalistic cleanup consists of cleaning up clockevents, synic MSRs, guest os id MSR, and hypercall MSR. Kdump doesn't require all this stuff as it lives in a separate memory space. Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan -

[PATCH 07/28] Drivers: hv: kvp: check kzalloc return value

2015-08-01 Thread K. Y. Srinivasan
OOM situation it is preferable to wait. Reported-by: Dan Carpenter Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_kvp.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/hv/hv_kvp.c b/drivers/hv/hv_kvp.c index d85798d..74c38a9 100

[PATCH 12/28] drivers:hv: Move MMIO range picking from hyper_fb to hv_vmbus

2015-08-01 Thread K. Y. Srinivasan
ff-by: Jake Oshins Signed-off-by: K. Y. Srinivasan --- drivers/hv/vmbus_drv.c | 88 +-- drivers/video/fbdev/hyperv_fb.c | 46 +--- include/linux/hyperv.h |7 ++- 3 files changed, 110 insertions(+), 31 deletions(-) diff

[PATCH 19/28] Drivers: hv: vmbus: Further improve CPU affiliation logic

2015-08-01 Thread K. Y. Srinivasan
From: Dexuan Cui Keep track of CPU affiliations of sub-channels within the scope of the primary channel. This will allow us to better distribute the load amongst available CPUs. Signed-off-by: Dexuan Cui Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel_mgmt.c | 20

[PATCH 08/28] Drivers: hv: fcopy: dynamically allocate smsg_out in fcopy_send_data()

2015-08-01 Thread K. Y. Srinivasan
f-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_fcopy.c | 21 + 1 files changed, 13 insertions(+), 8 deletions(-) diff --git a/drivers/hv/hv_fcopy.c b/drivers/hv/hv_fcopy.c index b50dd33..db4b887 100644 --- a/drivers/hv/hv_fcopy.c +++ b/drivers/h

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