[PATCH 0/6] Drivers: hv: vmbus: Cleanup and mmio management.

2016-04-02 Thread K. Y. Srinivasan
Cleanup and mmio management. 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 hyperv_mmi

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

2016-04-02 Thread K. Y. Srinivasan
From: Jake Oshins This patch introduces a function that reverses everything done by vmbus_allocate_mmio(). Existing code just called release_mem_region(). Future patches in this series require a more complex sequence of actions, so this function is introduced to wrap those actions. Signed-off-

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

2016-04-02 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(+), 2

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

2016-04-02 Thread K. Y. Srinivasan
From: Jake Oshins This patch changes vmbus_allocate_mmio() and vmbus_free_mmio() so that when child paravirtual devices allocate memory-mapped I/O space, they allocate it privately from a resource tree pointed at by hyperv_mmio and also by the public resource tree iomem_resource. This allows the

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

2016-04-02 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/pci/host/pci-hyperv.c | 14 +++--- drivers/video/fbdev/hyperv_fb.c |

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

2016-04-02 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov Hyper-V VMs can be replicated to another hosts and there is a feature to set different IP for replicas, it is called 'Failover TCP/IP'. When such guest starts Hyper-V host sends it KVP_OP_SET_IP_INFO message as soon as we finish negotiation procedure. The problem is that it

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

2016-04-02 Thread K. Y. Srinivasan
From: Jake Oshins In existing code, this tree of resources is created in single-threaded code and never modified after it is created, and thus needs no locking. This patch introduces a semaphore for tree access, as other patches in this series introduce run-time modifications of this resource tr

Staging: unisys/verisonic: Correct double unlock

2016-04-02 Thread Iban Rodriguez
'priv_lock' is unlocked twice. The first one is removed and the function 'visornic_serverdown_complete' is now called with 'priv_lock' locked because 'devdata' is modified inside. Signed-off-by: Iban Rodriguez --- drivers/staging/unisys/visornic/visornic_main.c | 1 - 1 file changed, 1 deletion(

[PATCH] Staging: wlan-ng: memory allocated inside mkimage() is not freed if subsequent calls fails.

2016-04-02 Thread Claudiu Beznea
This patch frees memory allocated inside mkimage() in case mkimage() or any other subsequent calls inside prism2_fwapply() from prism2fw.c file fails. To fix this I introduces goto labels where the free operation is done in case some operations fails. After the introduction of goto labels has been

RE: [PATCH 1/1] Drivers: hv: vmbus: Fix a bug in hv_need_to_signal_on_read()

2016-04-02 Thread KY Srinivasan
> -Original Message- > From: K. Y. Srinivasan [mailto:k...@microsoft.com] > Sent: Friday, March 11, 2016 12:39 PM > To: gre...@linuxfoundation.org; linux-ker...@vger.kernel.org; > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; > vkuzn...@redhat.com; jasow...@redhat.com

[PATCH 1/1] Drivers: hv: vmbus: Fix signaling logic in hv_need_to_signal_on_read()

2016-04-02 Thread K. Y. Srinivasan
On the consumer side, we have interrupt driven flow management of the producer. It is sufficient to base the signaling decision on the amount of space that is available to write after the read is complete. The current code samples the previous available space and uses this in making the signaling d

RE: [PATCH 1/1] Drivers: hv: vmbus: Fix signaling logic in hv_need_to_signal_on_read()

2016-04-02 Thread KY Srinivasan
> -Original Message- > From: K. Y. Srinivasan [mailto:k...@microsoft.com] > Sent: Saturday, April 2, 2016 3:44 PM > To: gre...@linuxfoundation.org; linux-ker...@vger.kernel.org; > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; > vkuzn...@redhat.com; jasow...@redhat.com

[PATCH] Staging: android: align parenthesis in sync.c

2016-04-02 Thread Ben Marsh
Aligns parenthesis in order to silence checkpatch.pl warnings. Signed-off-by: Ben Marsh --- drivers/staging/android/sync.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/android/sync.c b/drivers/staging/android/sync.c index 3a8f210..4a64bdd 100644 --- a

[PATCH] Staging: android: change memory allocation style

2016-04-02 Thread Ben Marsh
Changes memory allocation style in order to silence a checkpatch.pl warning Signed-off-by: Ben Marsh --- drivers/staging/android/ion/ion_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/android/ion/ion_test.c b/drivers/staging/android/ion/ion_test.c ind

[PATCH V2 1/1] Drivers: hv: vmbus: Fix signaling logic in hv_need_to_signal_on_read()

2016-04-02 Thread K. Y. Srinivasan
On the consumer side, we have interrupt driven flow management of the producer. It is sufficient to base the signaling decision on the amount of space that is available to write after the read is complete. The current code samples the previous available space and uses this in making the signaling d

[PATCH] Staging: android: modify memory allocation style in ion_cma_heap.c

2016-04-02 Thread Ben Marsh
Modifies memory allocation style to silence checkpatch.pl warnings. Signed-off-by: Ben Marsh --- drivers/staging/android/ion/ion_cma_heap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/android/ion/ion_cma_heap.c b/drivers/staging/android/ion/ion_cma_

[PATCH] Staging: android: remove extra blank line

2016-04-02 Thread Ben Marsh
Remove an extra blank line found by checkpatch.pl Signed-off-by: Ben Marsh --- drivers/staging/android/ion/ion_dummy_driver.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/android/ion/ion_dummy_driver.c b/drivers/staging/android/ion/ion_dummy_driver.c index 5678870..22419d3

Re: [PATCH] Staging: android: align parenthesis in sync.c

2016-04-02 Thread Greg KH
On Sat, Apr 02, 2016 at 11:31:37PM +0200, Ben Marsh wrote: > Aligns parenthesis in order to silence checkpatch.pl warnings. > > Signed-off-by: Ben Marsh > --- > drivers/staging/android/sync.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) You sent 4 patches, but no hint as to wha

Re: [PATCH 0/6] Drivers: hv: vmbus: Cleanup and mmio management.

2016-04-02 Thread Greg KH
On Sat, Apr 02, 2016 at 11:10:38AM -0700, K. Y. Srinivasan wrote: > Cleanup and mmio management. Also included is a patch > to fix an issue in KVP. So these all are for 4.7-rc1? ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxd

[PATCH] VME: Adding Fake VME driver

2016-04-02 Thread Martyn Welch
This patch introduces a fake VME bridge driver. This driver currently emulates a subset of the VME bridge functionality. This allows some VME subsystem development and even some VME device driver development to be carried out in the absence of a proper VME bus. Signed-off-by: Martyn Welch --- dr

RE: Staging: unisys/verisonic: Correct double unlock

2016-04-02 Thread Sell, Timothy C
> -Original Message- > From: Iban Rodriguez [mailto:iban.rodrig...@ono.com] > Sent: Saturday, April 02, 2016 1:47 PM > To: Kershner, David A; Greg Kroah-Hartman; Benjamin Romer; Sell, Timothy > C; Neil Horman > Cc: *S-Par-Maintainer; de...@driverdev.osuosl.org; linux- > ker...@vger.kernel.o

[PATCH 4/6] Drivers: hv: vmbus: Export the vmbus_set_event() API

2016-04-02 Thread K. Y. Srinivasan
In preparation for moving some ring buffer functionality out of the vmbus driver, export the API for signaling the host. Signed-off-by: K. Y. Srinivasan --- drivers/hv/connection.c |1 + drivers/hv/hyperv_vmbus.h |2 -- include/linux/hyperv.h|1 + 3 files changed, 2 insertions(

[PATCH 5/6] Drivers: hv: vmbus: Move some ring buffer functions to hyperv.h

2016-04-02 Thread K. Y. Srinivasan
In preparation for implementing APIs for in-place consumption of VMBUS packets, movve some ring buffer functionality into hyperv.h Signed-off-by: K. Y. Srinivasan --- drivers/hv/ring_buffer.c | 55 -- include/linux/hyperv.h | 54 +

[PATCH 0/6] Drivers: hv: vmbus: Cleanup the ring buffer code

2016-04-02 Thread K. Y. Srinivasan
Cleanup and fix a bug in the ring buffer code. Also implement APIs for in place consumption of received packets. K. Y. Srinivasan (6): Drivers: hv: vmbus: Introduce functions for estimating room in the ring buffer Drivers: hv: vmbus: Use READ_ONCE() to read variables that are volatile

[PATCH 3/6] Drivers: hv: vmbus: Use the new virt_xx barrier code

2016-04-02 Thread K. Y. Srinivasan
Use the virt_xx barriers that have been defined for use in virtual machines. Signed-off-by: K. Y. Srinivasan --- drivers/hv/ring_buffer.c | 14 +++--- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/hv/ring_buffer.c b/drivers/hv/ring_buffer.c index 6ea1b55..8f518

[PATCH 6/6] Drivers: hv: vmbus: Implement APIs to support "in place" consumption of vmbus packets

2016-04-02 Thread K. Y. Srinivasan
Implement APIs for in-place consumption of vmbus packets. Currently, each packet is copied and processed one at a time and as part of processing each packet we potentially may signal the host (if it is waiting for room to produce a packet). These APIs help batched in-place processing of vmbus pack

[PATCH 1/6] Drivers: hv: vmbus: Introduce functions for estimating room in the ring buffer

2016-04-02 Thread K. Y. Srinivasan
Introduce separate functions for estimating how much can be read from and written to the ring buffer. Signed-off-by: K. Y. Srinivasan --- drivers/hv/ring_buffer.c | 25 - include/linux/hyperv.h | 27 +++ 2 files changed, 31 insertions(+), 21

[PATCH 2/6] Drivers: hv: vmbus: Use READ_ONCE() to read variables that are volatile

2016-04-02 Thread K. Y. Srinivasan
Use the READ_ONCE macro to access variabes that can change asynchronously. This is the recommended mechanism for dealing with "unsafe" compiler optimizations. Signed-off-by: K. Y. Srinivasan --- drivers/hv/ring_buffer.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git

RE: [PATCH 0/6] Drivers: hv: vmbus: Cleanup and mmio management.

2016-04-02 Thread KY Srinivasan
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Saturday, April 2, 2016 3:23 PM > To: KY Srinivasan > Cc: linux-ker...@vger.kernel.org; de...@linuxdriverproject.org; > o...@aepfle.de; a...@canonical.com; vkuzn...@redhat.com; > jasow...@redhat.com > Subjec

Re: [PATCH] VME: Adding Fake VME driver

2016-04-02 Thread kbuild test robot
Hi Martyn, [auto build test WARNING on driver-core/driver-core-testing] [also build test WARNING on v4.6-rc1 next-20160401] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Martyn-Welch/VME-Addi

Re: [PATCH 0/6] Drivers: hv: vmbus: Cleanup and mmio management.

2016-04-02 Thread Greg KH
On Sat, Apr 02, 2016 at 11:46:21PM +, KY Srinivasan wrote: > > > > -Original Message- > > From: Greg KH [mailto:gre...@linuxfoundation.org] > > Sent: Saturday, April 2, 2016 3:23 PM > > To: KY Srinivasan > > Cc: linux-ker...@vger.kernel.org; de...@linuxdriverproject.org; > > o...@aep

RE: [PATCH 0/6] Drivers: hv: vmbus: Cleanup and mmio management.

2016-04-02 Thread KY Srinivasan
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Saturday, April 2, 2016 6:48 PM > To: KY Srinivasan > Cc: o...@aepfle.de; jasow...@redhat.com; linux-ker...@vger.kernel.org; > a...@canonical.com; de...@linuxdriverproject.org > Subject: Re: [PATCH 0/6] Driv

Re: [PATCH] VME: Adding Fake VME driver

2016-04-02 Thread kbuild test robot
Hi Martyn, [auto build test WARNING on driver-core/driver-core-testing] [also build test WARNING on v4.6-rc1 next-20160401] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Martyn-Welch/VME-Addi