Re: [PATCH net-next] hyperv: Implement netvsc_get_channels() ethool op

2015-02-28 Thread David Miller
From: Andrew Schwartzmeyer Date: Thu, 26 Feb 2015 16:27:14 -0800 > This adds support for reporting the actual and maximum combined channels > count of the hv_netvsc driver via 'ethtool --show-channels'. > > This required adding 'max_chn' to 'struct netvsc_device', and assigning > it 'rsscap.num_

[PATCH] staging: iio: hmc5843: Set iio name property in sysfs

2015-02-28 Thread Marek Belisko
Without this change file name for hmc5843 is empty in /sys/bus/iio/devices/iio\:device*/name With this change name is reported correctly: cat /sys/bus/iio/devices/iio\:device*/name hmc5843 Signed-off-by: Marek Belisko --- drivers/staging/iio/magnetometer/hmc5843_core.c | 1 + 1 file changed, 1

[PATCH 5/7] Drivers: hv: vmbus: Use a round-robin algorithm for picking the outgoing channel

2015-02-28 Thread K. Y. Srinivasan
The current algorithm for picking an outgoing channel was not distributing the load well. Implement a simple round-robin scheme to ensure good distribution of the outgoing traffic. Signed-off-by: K. Y. Srinivasan Reviewed-by: Long Li --- drivers/hv/channel_mgmt.c | 30 +++-

[PATCH 4/7] Drivers: hv: vmbus: Add support for VMBus panic notifier handler

2015-02-28 Thread K. Y. Srinivasan
From: Nick Meier Hyper-V allows a guest to notify the Hyper-V host that a panic condition occured. This notification can include up to five 64 bit values. These 64 bit values are written into crash MSRs. Once the data has been written into the crash MSRs, the host is then notified by writing in

[PATCH 6/7] Drivers: hv: vmbus: Suport an API to send pagebuffers with additional control

2015-02-28 Thread K. Y. Srinivasan
Implement an API for sending pagebuffers that gives more control to the client in terms of setting the vmbus flags as well as deciding when to notify the host. This will be useful for enabling batch processing. Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel.c | 33 +++

[PATCH 7/7] Drivers: hv: vmbus: Suport an API to send packet with additional control

2015-02-28 Thread K. Y. Srinivasan
Implement an API that gives additional control on the what VMBUS flags will be set as well as if the host needs to be signalled. This API will be useful for clients that want to batch up requests to the host. Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel.c | 43 +

[PATCH 2/7] Drivers: hv: hv_balloon: report offline pages as being used

2015-02-28 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov When hot-added memory pages are not brought online or when some memory blocks are sent offline the subsequent ballooning process kills the guest with OOM killer. This happens as we don't report these pages as neither used nor free and apparently host algorithm considers the

[PATCH 1/7] Drivers: hv: hv_balloon: eliminate the trylock path in acquire/release_region_mutex

2015-02-28 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov When many memory regions are being added and automatically onlined the following lockup is sometimes observed: INFO: task udevd:1872 blocked for more than 120 seconds. ... Call Trace: [] schedule_timeout+0x22c/0x350 [] wait_for_common+0x10f/0x160 [] ? default_wake_funct

[PATCH 3/7] Drivers: hv: hv_balloon: refuse to balloon below the floor

2015-02-28 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov When host asks us to balloon up we need to be sure we're not committing suicide by overballooning. Use already existent 'floor' metric as our lowest possible value for free ram. Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_balloon.c

[PATCH 0/7] Drivers: hv: Collection fixes and enhancements

2015-02-28 Thread K. Y. Srinivasan
This patch-set has a collection of fixes to the balloon driver as well as some enhancements to the vmbus driver. Nick has implemented a feature for notifying the host in the event of a guest panic. I have implemented a couple of APIs for sending messages over the VMBUS that gives more control to th

[PATCH V2 6/6] Drivers: hv: vmbus: Get rid of some unnecessary messages

2015-02-28 Thread K. Y. Srinivasan
Currently we log messages when either we are not able to map an ID to a channel or when the channel does not have a callback associated (in the channel interrupt handling path). These messages don't add any value, get rid of them. Signed-off-by: K. Y. Srinivasan --- drivers/hv/connection.c |

[PATCH V2 3/6] Drivers: hv: vmbus: Handle both rescind and offer messages in the same context

2015-02-28 Thread K. Y. Srinivasan
Execute both ressind and offer messages in the same work context. This serializes these operations and naturally addresses the various corner cases. Signed-off-by: K. Y. Srinivasan --- - Execute blocking operations in the per-channel work elements [Dexuan Cui ] drivers/hv/channel_mgmt.c | 11

[PATCH V2 4/6] Drivers: hv: vmbus: Remove the channel from the channel list(s) on failure

2015-02-28 Thread K. Y. Srinivasan
Properly rollback state in vmbus_pocess_offer() in the failure paths. Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel_mgmt.c | 21 - 1 files changed, 16 insertions(+), 5 deletions(-) diff --git a/drivers/hv/channel_mgmt.c b/drivers/hv/channel_mgmt.c index 6c1f792..c

[PATCH V2 2/6] Drivers: hv: vmbus: Introduce a function to remove a rescinded offer

2015-02-28 Thread K. Y. Srinivasan
In response to a rescind message, we need to remove the channel and the corresponding device. Cleanup this code path by factoring out the code to remove a channel. Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel.c |9 drivers/hv/channel_mgmt.c | 49

[PATCH V2 1/6] Drivers: hv: vmbus: Properly handle child device remove

2015-02-28 Thread K. Y. Srinivasan
Handle the case when the device may be removed when the device has no driver attached to it. Signed-off-by: K. Y. Srinivasan --- drivers/hv/vmbus_drv.c | 15 +-- 1 files changed, 9 insertions(+), 6 deletions(-) diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c index da4

[PATCH V2 5/6] Drivers: hv: util: On device remove, close the channel after de-initializing the service

2015-02-28 Thread K. Y. Srinivasan
When the offer is rescinded, vmbus_close() can free up the channel; deinitialize the service before closing the channel. Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_util.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/hv/hv_util.c b/drivers/hv/hv_util.c

[PATCH V2] Staging: fbtft: fix coding style errors

2015-02-28 Thread Matteo Semenzato
From: Matteo Semenzato This patch fixes the following error: space required after that ';' Signed-off-by: Matteo Semenzato --- drivers/staging/fbtft/fbtft_device.c | 145 +++ 1 file changed, 111 insertions(+), 34 deletions(-) diff --git a/drivers/staging/fbtft/

[PATCH V2 0/6] Drivers: hv: vmbus: Cleanup channel rescind handling

2015-02-28 Thread K. Y. Srinivasan
The host can rescind an offer any time after the offer has been made to the guest. This patch-set cleans up how we handle rescind messages from the host. In this version of the patch-set, modified the code to not block in the main message handling work context based on feedback from Dexuan Cui .

Re: [PATCH] Staging: fbtft: fix space errors

2015-02-28 Thread Joe Perches
On Sat, 2015-02-28 at 15:44 +0100, Matteo Semenzato wrote: > This patch fixes the following errors: > spaces required around that '=' (ctx:VxV) > space required after that ',' (ctx:VxV) > space required after that ';' (ctx:VxV) [] > diff --git a/drivers/staging/fbtft/flexfb.c b/drivers/staging/fbtf

[PATCH V2] Staging: fbtft: fix space errors

2015-02-28 Thread Matteo Semenzato
From: Matteo Semenzato This patch fixes the following errors: spaces required around that '=' (ctx:VxV) space required after that ',' (ctx:VxV) space required after that ';' (ctx:VxV) Signed-off-by: Matteo Semenzato --- drivers/staging/fbtft/flexfb.c | 366 ++---

Re: [PATCH] Staging: Octeon USB: Fix space prohibited between function name and open parenthesis

2015-02-28 Thread Greg KH
On Sat, Feb 28, 2015 at 06:31:53AM -0800, Sean Darcy wrote: > This patch fixes the following checkpatch.pl warning in > drivers/staging/octeon-usb/octeon-hcd.c > WARNING: space prohibited between function name and open parenthesis '(' > > Signed-off-by: Sean Darcy > --- > drivers/staging/octe

[PATCH] Staging: fbtft: fix indent

2015-02-28 Thread Matteo Semenzato
From: Matteo Semenzato This patch fixes the following error: code indent should use tabs where possible Signed-off-by: Matteo Semenzato --- drivers/staging/fbtft/flexfb.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/staging/fbtft/flexfb.c b/drivers/stagi

[PATCH] Staging: fbtft: fix space errors

2015-02-28 Thread Matteo Semenzato
From: Matteo Semenzato This patch fixes the following errors: spaces required around that '=' (ctx:VxV) space required after that ',' (ctx:VxV) space required after that ';' (ctx:VxV) Signed-off-by: Matteo Semenzato --- drivers/staging/fbtft/flexfb.c | 94 +-

[PATCH] Staging: Octeon USB: Fix space prohibited between function name and open parenthesis

2015-02-28 Thread Sean Darcy
This patch fixes the following checkpatch.pl warning in drivers/staging/octeon-usb/octeon-hcd.c WARNING: space prohibited between function name and open parenthesis '(' Signed-off-by: Sean Darcy --- drivers/staging/octeon-usb/octeon-hcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH] Staging: fbtft: fix coding style errors

2015-02-28 Thread Matteo Semenzato
From: Matteo Semenzato This patch fixes the following error: space required after that ';' Signed-off-by: Matteo Semenzato --- drivers/staging/fbtft/fbtft_device.c | 68 ++-- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/drivers/staging/fbtft/f

[PATCH] Staging: vt6655: fix C99 comments

2015-02-28 Thread Matteo Semenzato
From: Matteo Semenzato This patch fixes the following warning: do not use C99 // comments Signed-off-by: Matteo Semenzato --- drivers/staging/vt6655/mac.c | 82 ++-- 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/drivers/staging/vt6655/m