Re: [PATCH 024/141] staging: unisys: Move visorchannel into visorbus

2015-05-06 Thread Dan Carpenter
Oh. Don didn't introduce this bug, he was just moving files around. It's better to not modify things when you move them so Don's patch is correct. regards, dan carpenter ___ devel mailing list de...@linuxdriverproject.org

Re: [PATCH 024/141] staging: unisys: Move visorchannel into visorbus

2015-05-06 Thread Dan Carpenter
On Tue, May 05, 2015 at 06:36:01PM -0400, Benjamin Romer wrote: From: Don Zickus dzic...@redhat.com + rc = p; +cleanup: + + if (!rc) { + if (!p) { + visorchannel_destroy(p); + p = NULL; + } + } + return rc;

Re: [PATCH 023/141] staging: unisys: add visorbus driver

2015-05-06 Thread Dan Carpenter
On Tue, May 05, 2015 at 06:36:00PM -0400, Benjamin Romer wrote: +int +devmajorminor_create_file(struct visor_device *dev, const char *name, + int major, int minor) +{ + int maxdevnodes = ARRAY_SIZE(dev-devnodes) / sizeof(dev-devnodes[0]);

Re: Question about the function,ni_stc_dma_channel_select_bitfield

2015-05-06 Thread Ian Abbott
On 06/05/15 01:22, nick wrote: Greetings All, I am wondering if in the function,ni_stc_dma_channel_select_bitfield the line: return 1 channel; is guaranteed to be below the threshold that guarantees us to not overflow on a unsigned 32 integer due to bit wise shifting to the left. Thanks Nick

Re: [PATCH 1/7] staging: fsl-mc: MC bus IRQ support

2015-05-06 Thread Dan Carpenter
On Tue, May 05, 2015 at 02:56:41PM -0500, Scott Wood wrote: Don't insist that you must be special and different from everyone else. There are some users of U16_MAX, U32_MAX, and U64_MAX. Why use a limit for a different type than is being used? Why have s16/s32 at all if you're going to

Re: [PATCH v3 2/2] staging: sm750fb: cleanup indentation

2015-05-06 Thread Sudip Mukherjee
On Wed, May 06, 2015 at 10:06:21AM +0300, Dan Carpenter wrote: Looks good. but its applying to linux-next and not applying to staging-testing. There are a few patches which Greg applied to staging-testing before the merge-window but they were not applied to staging-next. I guess he has been

Re: Anybody working on rtl8712?

2015-05-06 Thread Christian Lamparter
On Tue, May 5, 2015 at 7:23 PM, Jes Sorensen jes.soren...@redhat.com wrote: Xose Vazquez Perez xose.vazq...@gmail.com writes: On 06/20/2014 10:52 PM, Christian Lamparter wrote: rtl8192su development is chugging along. It just doesn't take place on driverdev list. The driver reached feature

[PATCH] staging: lustre: code cleanup - variable declaration spacing

2015-05-06 Thread Mike Shuey
Clean up spacing in some variable declarations, to be more consistent. It's small, but I need to start somewhere. Please let me know if I'm not adhering to proper procedure for trivial cleanups. Signed-off-by: Mike Shuey sh...@purdue.edu --- drivers/staging/lustre/lnet/lnet/acceptor.c | 32

Re: [PATCH] staging: lustre: code cleanup - variable declaration spacing

2015-05-06 Thread Sudip Mukherjee
On Wed, May 06, 2015 at 08:02:55AM -0400, Mike Shuey wrote: Clean up spacing in some variable declarations, to be more consistent. It's small, but I need to start somewhere. Please let me know if I'm not adhering to proper procedure for trivial cleanups. these comments should not come here.

Re: [PATCH 079/141] staging: unisys: visorchannel_write(): Handle partial channel_header writes

2015-05-06 Thread Dan Carpenter
On Tue, May 05, 2015 at 06:36:56PM -0400, Benjamin Romer wrote: From: Jes Sorensen jes.soren...@redhat.com Signed-off-by: Jes Sorensen jes.soren...@redhat.com Signed-off-by: Benjamin Romer benjamin.ro...@unisys.com --- drivers/staging/unisys/visorbus/visorchannel.c | 9 ++--- 1 file

Re: [PATCH 041/141] staging: unisys: visorchannel some general function cleanups

2015-05-06 Thread Dan Carpenter
On Tue, May 05, 2015 at 06:36:18PM -0400, Benjamin Romer wrote: From: Prarit Bhargava pra...@redhat.com Just some cleanups for visorchannel.c, and removal of safe_sig_queue_validate() which is dead code. Signed-off-by: Prarit Bhargava pra...@redhat.com Signed-off-by: Benjamin Romer

Re: [PATCH] staging: lustre: code cleanup - variable declaration spacing

2015-05-06 Thread Dan Carpenter
On Wed, May 06, 2015 at 08:02:55AM -0400, Mike Shuey wrote: Clean up spacing in some variable declarations, to be more consistent. It's small, but I need to start somewhere. Please let me know if I'm not adhering to proper procedure for trivial cleanups. Don't put these aside comments in

Re: Question about the function,ni_stc_dma_channel_select_bitfield

2015-05-06 Thread nick
On 2015-05-06 05:10 AM, Ian Abbott wrote: On 06/05/15 01:22, nick wrote: Greetings All, I am wondering if in the function,ni_stc_dma_channel_select_bitfield the line: return 1 channel; is guaranteed to be below the threshold that guarantees us to not overflow on a unsigned 32 integer

Re: [PATCH 079/141] staging: unisys: visorchannel_write(): Handle partial channel_header writes

2015-05-06 Thread Dan Carpenter
Changing it later is fine. regards, dan carpenter ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH 079/141] staging: unisys: visorchannel_write(): Handle partial channel_header writes

2015-05-06 Thread Jes Sorensen
Dan Carpenter dan.carpen...@oracle.com writes: On Tue, May 05, 2015 at 06:36:56PM -0400, Benjamin Romer wrote: From: Jes Sorensen jes.soren...@redhat.com Signed-off-by: Jes Sorensen jes.soren...@redhat.com Signed-off-by: Benjamin Romer benjamin.ro...@unisys.com ---

Re: [PATCH 040/141] staging: unisys: visorchannel cleanup visorchannel_create_guts()

2015-05-06 Thread Dan Carpenter
On Tue, May 05, 2015 at 06:36:17PM -0400, Benjamin Romer wrote: From: Prarit Bhargava pra...@redhat.com diff --git a/drivers/staging/unisys/visorbus/visorchannel.c b/drivers/staging/unisys/visorbus/visorchannel.c index 33a4360..ff14a0d 100644 ---

[PATCH] staging: lustre: llite: remove unuse variables

2015-05-06 Thread Sudip Mukherjee
there variables were not used anywhere and was showing as build warning. Signed-off-by: Sudip Mukherjee su...@vectorindia.org --- drivers/staging/lustre/lustre/llite/file.c | 2 -- drivers/staging/lustre/lustre/llite/llite_lib.c | 2 -- 2 files changed, 4 deletions(-) diff --git

[PATCH] staging: comedi: coding style identation error fix

2015-05-06 Thread Jaime Arrocha
Errors found by checkpatch.pl. ERROR: code indent should use tabs where possible /drivers/staging/comedi/drivers/das16m1.c:49 /drivers/staging/comedi/drivers/das16m1.c:50 Signed-off-by: Jaime Arrocha j...@kerneldev.net --- drivers/staging/comedi/drivers/das16m1.c |4 ++-- 1 file changed, 2

[PATCH 6/7] Drivers: hv: vmbus: move init_vp_index() call to vmbus_process_offer()

2015-05-06 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov vkuzn...@redhat.com We need to call init_vp_index() after we added the channel to the appropriate list (global or subchannel) to be able to use this information when assigning the channel to the particular vcpu. To do so we need to move a couple of functions around. The

[PATCH 0/7] Drivers: hv: vmbus: Miscellaneous cleanup

2015-05-06 Thread K. Y. Srinivasan
In addition to fixing an issue in the vmbus_open failure path, this patch-set improves the distribution of channels/sub-channels across the available CPUs in the guest. Vitaly Kuznetsov (7): Drivers: hv: vmbus: do cleanup on all vmbus_open() failure paths Drivers: hv: vmbus: kill tasklets on

[PATCH 2/7] Drivers: hv: vmbus: kill tasklets on module unload

2015-05-06 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov vkuzn...@redhat.com Explicitly kill tasklets we create on module unload. Signed-off-by: Vitaly Kuznetsov vkuzn...@redhat.com Signed-off-by: K. Y. Srinivasan k...@microsoft.com --- drivers/hv/vmbus_drv.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff

[PATCH 5/7] Drivers: hv: vmbus: decrease num_sc on subchannel removal

2015-05-06 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov vkuzn...@redhat.com It is unlikely that that host will ask us to close only one subchannel for a device but let's be consistent. Do both num_sc++ and num_sc-- with channel-lock to be on the safe side. Signed-off-by: Vitaly Kuznetsov vkuzn...@redhat.com Signed-off-by: K. Y.

[PATCH 1/7] Drivers: hv: vmbus: do cleanup on all vmbus_open() failure paths

2015-05-06 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov vkuzn...@redhat.com In case there was an error reported in the response to the CHANNELMSG_OPENCHANNEL call we need to do the cleanup as a vmbus_open() user won't be doing it after receiving an error. The cleanup should be done on all failure paths. We also need to avoid

[PATCH 3/7] Drivers: hv: vmbus: unify calls to percpu_channel_enq()

2015-05-06 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov vkuzn...@redhat.com Remove some code duplication, no functional change intended. Signed-off-by: Vitaly Kuznetsov vkuzn...@redhat.com Signed-off-by: K. Y. Srinivasan k...@microsoft.com --- drivers/hv/channel_mgmt.c | 51 +++- 1

[PATCH 7/7] Drivers: hv: vmbus: distribute subchannels among all vcpus

2015-05-06 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov vkuzn...@redhat.com Primary channels are distributed evenly across all vcpus we have. When the host asks us to create subchannels it usually makes us num_cpus-1 offers and we are supposed to distribute the work evenly among the channel itself and all its subchannels. Make

[PATCH 4/7] Drivers: hv: vmbus: briefly comment num_sc and next_oc

2015-05-06 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] next_oc and num_sc fields of struct vmbus_channel deserve a description. Move them closer to sc_list as these fields are related to it. Signed-off-by: Vitaly Kuznetsov vkuzn...@redhat.com Signed-off-by: K. Y. Srinivasan k...@microsoft.com ---

Re: Anybody working on rtl8712?

2015-05-06 Thread Jes Sorensen
Christian Lamparter chunk...@googlemail.com writes: On Tue, May 5, 2015 at 7:23 PM, Jes Sorensen jes.soren...@redhat.com wrote: Xose Vazquez Perez xose.vazq...@gmail.com writes: On 06/20/2014 10:52 PM, Christian Lamparter wrote: rtl8192su development is chugging along. It just doesn't take

[PATCH V4 net-next 1/1] hv_netvsc: Use the xmit_more skb flag to optimize signaling the host

2015-05-06 Thread K. Y. Srinivasan
Based on the information given to this driver (via the xmit_more skb flag), we can defer signaling the host if more packets are on the way. This will help make the host more efficient since it can potentially process a larger batch of packets. Implement this optimization. Signed-off-by: K. Y.

[PATCH v2 7/7] staging: fsl-mc: Use DPMCP IRQ and completion var to wait for MC

2015-05-06 Thread J. German Rivera
- Refactored fsl_mc_io object to have a DPMCP object attached to it - Created DPMCP object for DPRC's built-in portal, so that waiting on MC command completions for MC commands sent on the DPRC's built-in portal can be done using a DPMCP interrupt and a Linux completion variable. For most

[PATCH v2 4/7] staging: fsl-mc: Upgraded MC bus driver to match MC fw 7.0.0

2015-05-06 Thread J. German Rivera
- Migrated MC bus driver to use DPRC API 0.6. - Changed IRQ setup infrastructure to be able to program MSIs for MC objects in an object-independent way. Signed-off-by: J. German Rivera german.riv...@freescale.com --- Changes in v2: - Addressed comments from Dan Carpenter: * Added #ifdef

[PATCH v2 6/7] staging: fsl-mc: Add locking to serialize mc_send_command() calls

2015-05-06 Thread J. German Rivera
Add a locking mechanism to serialize mc_send_command() calls that use the same fsl_mc_io object (same MC portal). When the fsl_mc_io object is created the owner needs to know in which type of context the fsl_mc_io object is going to be used. A flag passed-in to fsl_create_mc_io() will indicate

[PATCH v2 1/7] staging: fsl-mc: MC bus IRQ support

2015-05-06 Thread J. German Rivera
All the IRQs for DPAA2 objects in the same DPRC must use the ICID of that DPRC, as their device Id in the GIC-ITS. Thus, all these IRQs must share the same ITT table in GIC. As a result, a pool of IRQs with the same device Id must be preallocated per DPRC (fsl-mc bus instance). So, the fsl-mc bus

[PATCH v2 3/7] staging: fsl-mc: Propagate driver_override for a child DPRC's children

2015-05-06 Thread J. German Rivera
When a child DPRC is bound to the vfio_fsl_mc driver via driver_override, its own children should not be bound to corresponding host kernel drivers, but instead should be bound to the vfio_fsl_mc driver as well. Currently, when a child container is scanned by the vfio_fsl_mc driver, child devices

[PATCH v2 2/7] staging: fsl_-mc: add device binding path 'driver_override'

2015-05-06 Thread J. German Rivera
From: Bharat Bhushan bharat.bhus...@freescale.com This patch is required for vfio-fsl-mc meta driver to successfully bind layerscape container devices for device passthrough. This patch adds a mechanism to allow a layerscape device to specify a driver rather than a layerscape driver provide a

[PATCH v2 0/7] staging: fsl-mc: New functionality to the MC bus driver

2015-05-06 Thread J. German Rivera
This patch series includes new functionality for the Freescale fsl-mc bus driver. Patch 1: MC bus IRQ support Patch 2: add device binding path 'driver_override' Patch 3: Propagate driver_override for a child DPRC's children Patch 4: Upgraded MC bus driver to match MC fw 7.0.0 Patch 5: Allow the

[PATCH] staging: comedi: drivers: das16m1.c: checkpatch error fix

2015-05-06 Thread Jaime Arrocha
Errors found by checkpatch.pl. ERROR: code indent should use tabs where possible /drivers/staging/comedi/drivers/das16m1.c:49 /drivers/staging/comedi/drivers/das16m1.c:50 Signed-off-by: Jaime Arrocha j...@kerneldev.net --- drivers/staging/comedi/drivers/das16m1.c |4 ++-- 1 file changed, 2

Re: Question about the function,ni_stc_dma_channel_select_bitfield

2015-05-06 Thread nick
On 2015-05-06 03:09 PM, Greg KH wrote: On Wed, May 06, 2015 at 10:05:55AM -0400, nick wrote: On 2015-05-06 05:10 AM, Ian Abbott wrote: On 06/05/15 01:22, nick wrote: Greetings All, I am wondering if in the function,ni_stc_dma_channel_select_bitfield the line: return 1 channel; is

[PATCH v2 5/7] staging: fsl-mc: Allow the MC bus driver to run without GIC support

2015-05-06 Thread J. German Rivera
If the lpi-parent property is not present in the fsl,qoriq-mc node of the device tree, the MC bus driver will assume that the GIC is not supported. This change is made in order to be able to use the MC bus driver in a KVM VM, without having GIC-ITS support in guests. Added function

Re:

2015-05-06 Thread Rita Wilson
This is to officially inform you that you been accredited with an ATM CARD worth $2.8Million Dollars on the ongoing Global international ATM Card Award held on 2nd of May 2015. Email address for this award was selected from databases of major shopping mails, electricity companies,railways

Re: [PATCH 040/141] staging: unisys: visorchannel cleanup visorchannel_create_guts()

2015-05-06 Thread Dan Carpenter
On Wed, May 06, 2015 at 12:25:43PM -0400, Ben Romer wrote: On 05/06/2015 08:15 AM, Dan Carpenter wrote: Also there were some unrelated changes. Benjamin, you should have complained about those when the patch was first sent. That's like the most obvious thing to check when you're reviewing

RE: [PATCH V3 net-next 1/1] hv_netvsc: Use the xmit_more skb flag to optimize signaling the host

2015-05-06 Thread KY Srinivasan
-Original Message- From: Eric Dumazet [mailto:eric.duma...@gmail.com] Sent: Wednesday, May 6, 2015 11:09 AM To: KY Srinivasan Cc: da...@davemloft.net; net...@vger.kernel.org; linux- ker...@vger.kernel.org; de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com;

Re: Question about the function,ni_stc_dma_channel_select_bitfield

2015-05-06 Thread Greg KH
On Wed, May 06, 2015 at 10:05:55AM -0400, nick wrote: On 2015-05-06 05:10 AM, Ian Abbott wrote: On 06/05/15 01:22, nick wrote: Greetings All, I am wondering if in the function,ni_stc_dma_channel_select_bitfield the line: return 1 channel; is guaranteed to be below the threshold that

Re: [PATCH V3 net-next 1/1] hv_netvsc: Use the xmit_more skb flag to optimize signaling the host

2015-05-06 Thread Eric Dumazet
On Wed, 2015-05-06 at 18:28 +, KY Srinivasan wrote: Ah! I too was wondering how we could get into this situation. The condition you mention is already handled in the lower level - if the attempt to put the last packet on vmbus were to fail because the ring is full, we will notify the

RE: [PATCH V3 net-next 1/1] hv_netvsc: Use the xmit_more skb flag to optimize signaling the host

2015-05-06 Thread KY Srinivasan
-Original Message- From: Eric Dumazet [mailto:eric.duma...@gmail.com] Sent: Wednesday, May 6, 2015 12:18 PM To: KY Srinivasan Cc: da...@davemloft.net; net...@vger.kernel.org; linux- ker...@vger.kernel.org; de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com;

[PATCH V3 net-next 1/1] hv_netvsc: Use the xmit_more skb flag to optimize signaling the host

2015-05-06 Thread K. Y. Srinivasan
Based on the information given to this driver (via the xmit_more skb flag), we can defer signaling the host if more packets are on the way. This will help make the host more efficient since it can potentially process a larger batch of packets. Implement this optimization. Signed-off-by: K. Y.

Re: [PATCH 040/141] staging: unisys: visorchannel cleanup visorchannel_create_guts()

2015-05-06 Thread Ben Romer
On 05/06/2015 08:15 AM, Dan Carpenter wrote: Also there were some unrelated changes. Benjamin, you should have complained about those when the patch was first sent. That's like the most obvious thing to check when you're reviewing patches. I'm sorry, I don't understand what part of this is

Re: [PATCH V3 net-next 1/1] hv_netvsc: Use the xmit_more skb flag to optimize signaling the host

2015-05-06 Thread Eric Dumazet
On Wed, 2015-05-06 at 11:20 -0700, K. Y. Srinivasan wrote: Based on the information given to this driver (via the xmit_more skb flag), we can defer signaling the host if more packets are on the way. This will help make the host more efficient since it can potentially process a larger batch of

Re: [PATCH] staging: rtl8192u: ieee80211: Silence sparse warning

2015-05-06 Thread Gaston Gonzalez
On 27/04/15 07:12, Dan Carpenter wrote: Can't we just export the tkip.c function? regards, dan carpenter Hi Dan, (sorry for the delayed response) The inputs of the two implementations of tkip_mixing_phase2() differ in one parameter: - ieee80211_crypt_tkip.c expects 'const u16 *TTAK' -

Re: [HPDD-discuss] [PATCH] staging: lustre: code cleanup - variable declaration spacing

2015-05-06 Thread Dilger, Andreas
On 2015/05/06, 6:02 AM, Mike Shuey sh...@purdue.edu wrote: Clean up spacing in some variable declarations, to be more consistent. It's small, but I need to start somewhere. Please let me know if I'm not adhering to proper procedure for trivial cleanups. It's actually Lustre coding style to

Re: [PATCH] staging: lustre: code cleanup - variable declaration spacing

2015-05-06 Thread Dan Carpenter
On Wed, May 06, 2015 at 10:47:56AM -0400, Michael Shuey wrote: Sudip, Dan, thanks for your feedback. I'll see what I can do to clean up the trimmings in my next iteration (and add more files' worth of cleanup as well). While editing these 4 files, I found two more (non-white space) clean

[PATCH] Staging: lustre: llite: Drop unneeded variables

2015-05-06 Thread Julia Lawall
Drop variables made unnecessary by conversion of obd free functions to kfree. Signed-off-by: Julia Lawall julia.law...@lip6.fr --- drivers/staging/lustre/lustre/llite/file.c |2 -- drivers/staging/lustre/lustre/llite/llite_lib.c |1 - 2 files changed, 3 deletions(-) diff --git

Re: [PATCH] staging: comedi: coding style identation error fix

2015-05-06 Thread Sudip Mukherjee
On Wed, May 06, 2015 at 05:13:41PM -0500, Jaime Arrocha wrote: Errors found by checkpatch.pl. ERROR: code indent should use tabs where possible /drivers/staging/comedi/drivers/das16m1.c:49 /drivers/staging/comedi/drivers/das16m1.c:50 Signed-off-by: Jaime Arrocha j...@kerneldev.net --- you

RE: Question about the function,ni_stc_dma_channel_select_bitfield

2015-05-06 Thread Hartley Sweeten
On Wednesday, May 06, 2015 7:06 AM, nick wrote: On 2015-05-06 05:10 AM, Ian Abbott wrote: On 06/05/15 01:22, nick wrote: Greetings All, I am wondering if in the function,ni_stc_dma_channel_select_bitfield the line: return 1 channel; is guaranteed to be below the threshold that guarantees