Re: [PATCH 1/3] staging: lustre: checkpatch cleanups for nidstring.c

2015-10-30 Thread Sudip Mukherjee
On Thu, Oct 29, 2015 at 07:28:21PM -0400, James Simmons wrote: > With nidstring now having the latest fixes we can > now clean up all the remaining checkpatch errors > for nidstring.c. > > Signed-off-by: James Simmons > --- You are doing different types of changes in this patch. Please split the

Re: [PATCH 17/17] staging: wilc1000: wilc_netdev_init: use wilc instead of g_linux_wlan

2015-10-30 Thread Dan Carpenter
On Fri, Oct 30, 2015 at 12:10:42PM +0900, Glen Lee wrote: > /*create the common structure*/ > - g_linux_wlan = kzalloc(sizeof(*g_linux_wlan), GFP_KERNEL); > - if (!g_linux_wlan) > + wl = kzalloc(sizeof(struct wilc), GFP_KERNEL); This introduces a checkpatch.pl warning. The prefe

Re: [PATCH 17/17] staging: wilc1000: wilc_netdev_init: use wilc instead of g_linux_wlan

2015-10-30 Thread glen lee
On 2015년 10월 30일 17:35, Dan Carpenter wrote: On Fri, Oct 30, 2015 at 12:10:42PM +0900, Glen Lee wrote: /*create the common structure*/ - g_linux_wlan = kzalloc(sizeof(*g_linux_wlan), GFP_KERNEL); - if (!g_linux_wlan) + wl = kzalloc(sizeof(struct wilc), GFP_KERNEL); T

[PATCH V2 02/17] staging: wilc1000: send_config_pkt: add argument struct net_device

2015-10-30 Thread Glen Lee
This patch adds new argument struct net_device and pass dev to the function as well. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/coreconfigurator.c | 3 +- drivers/staging/wilc1000/coreconfigurator.h | 3 +- drivers/staging/wilc1000/host_interface.c | 196 +

[PATCH V2 01/17] staging: wilc1000: define wiphy private data priv in struct host_if_drv

2015-10-30 Thread Glen Lee
This patch defines wiphy private data priv in struct host_if_drv and set priv to priv in host_if_drv to reference it's wiphy private data. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/host_interface.h | 1 + drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 1 + 2 files changed

[PATCH V2 03/17] staging: wilc1000: wilc_wlan_cfg_get: add argument struct net_device

2015-10-30 Thread Glen Lee
Adds argument struct net_device and use netdev private data member wilc instead of g_linux_wlan, pass dev to the functions as well. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/coreconfigurator.c | 3 ++- drivers/staging/wilc1000/linux_wlan.c | 2 +- drivers/staging/wilc1000/wilc_w

[PATCH V2 05/17] staging: wilc1000: wilc_wlan_cfg_commit: add argument struct net_device

2015-10-30 Thread Glen Lee
Add argument struct net_device and pass dev to the functions as well. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/wilc_wlan.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/staging/wilc1000/wilc_wlan.c b/drivers/staging/wilc1000/wilc_wlan.c index a72

[PATCH V2 06/17] staging: wilc1000: wilc_wlan_txq_add_cfg_pkt: add argument net_device

2015-10-30 Thread Glen Lee
This patch adds new argument struct net_device and use netdev private data member wilc instead of g_linux_wlan, pass dev to the function. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/wilc_wlan.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/stagi

[PATCH V2 08/17] staging: wilc1000: remove unused function remove_TCP_related

2015-10-30 Thread Glen Lee
Just remove unused function remove_TCP_related. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/wilc_wlan.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/drivers/staging/wilc1000/wilc_wlan.c b/drivers/staging/wilc1000/wilc_wlan.c index b503f07..c8ce1f6 100644 --- a/drivers

[PATCH V2 04/17] staging: wilc1000: wilc_wlan_cfg_set: add argument struct net_device

2015-10-30 Thread Glen Lee
This patch adds new argument net_device and use netdev private data member wilc instead of g_linux_wlan, pass dev to the functions also. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/coreconfigurator.c | 3 +- drivers/staging/wilc1000/linux_wlan.c | 86 ++---

[PATCH V2 10/17] staging: wilc1000: remove unused function wilc_wlan_global_reset

2015-10-30 Thread Glen Lee
Remove unused function wilc_wlan_global_reset. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/wilc_wlan.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/staging/wilc1000/wilc_wlan.c b/drivers/staging/wilc1000/wilc_wlan.c index d4eef3d..c464cd7 100644 --- a/drivers/sta

[PATCH V2 09/17] staging: wilc1000: wilc_wlan_stop: add argument struct net_device

2015-10-30 Thread Glen Lee
This patch adds new argument struct net_device and pass dev to the functions. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/linux_wlan.c | 4 ++-- drivers/staging/wilc1000/wilc_wlan.c | 2 +- drivers/staging/wilc1000/wilc_wlan.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)

[PATCH V2 11/17] staging: wilc1000: wilc_wlan_firmware_download: add argument net_device

2015-10-30 Thread Glen Lee
Add new argument struct net_device and pass dev to the function as well. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/linux_wlan.c | 2 +- drivers/staging/wilc1000/wilc_wlan.c | 3 ++- drivers/staging/wilc1000/wilc_wlan.h | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff

[PATCH V2 07/17] staging: wilc1000: wilc_wlan_txq_add_to_head: add new argument net_device

2015-10-30 Thread Glen Lee
This patch adds new argument struct net_device and use netdev private data member wilc instead of g_linux_wlan, pass dev to the function as well. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/wilc_wlan.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --g

[PATCH V2 13/17] staging: wilc1000: wilc_wlan_start: add argument struct net_device

2015-10-30 Thread Glen Lee
This patch adds new argument struct net_device and pass dev to the function. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/linux_wlan.c | 2 +- drivers/staging/wilc1000/wilc_wlan.c | 2 +- drivers/staging/wilc1000/wilc_wlan.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) dif

[PATCH V2 12/17] staging: wilc1000: chip_sleep_manually: add argument struct net_device

2015-10-30 Thread Glen Lee
This patch add new argument struct net_device and pass dev to the function as well. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/host_interface.c | 4 ++-- drivers/staging/wilc1000/wilc_wlan.c | 2 +- drivers/staging/wilc1000/wilc_wlan.h | 1 + 3 files changed, 4 insertions(+),

[PATCH V2 16/17] staging: wilc1000: linux_wlan_get_num_conn_ifcs: add argument net_device

2015-10-30 Thread Glen Lee
This patch add new argument struct net_device and use netdev private data member wilc instead of g_linux_wlan, pass dev to the function as well. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/host_interface.c | 4 +--- drivers/staging/wilc1000/linux_wlan.c | 10 +++--- dri

[PATCH V2 15/17] staging: wilc1000: release_bus: add argument struct wilc

2015-10-30 Thread Glen Lee
This patch adds new argument struct wilc and use it instead of g_linux_wlan, pass wilc to the functions as well. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/wilc_wlan.c | 44 ++-- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/drivers/sta

[PATCH V2 14/17] staging: wilc1000: acquire_bus: add new argument struct wilc

2015-10-30 Thread Glen Lee
This patch adds struct wilc and use it instead of g_linux_wlan, pass dev to the functions as well. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/wilc_wlan.c | 47 ++-- 1 file changed, 34 insertions(+), 13 deletions(-) diff --git a/drivers/staging/wilc1000/

[PATCH V2 17/17] staging: wilc1000: wilc_netdev_init: use wilc instead of g_linux_wlan

2015-10-30 Thread Glen Lee
Use wilc instead of g_linux_wlan. g_liux_wlan is not used anymore, just delete it. Signed-off-by: Glen Lee --- Changes in v2: use sizeof(*wl) instead of sizeof(struct wilc). drivers/staging/wilc1000/linux_wlan.c | 22 +++--- drivers/staging/wilc1000/wilc_wfi_netdevice.h

Re: [PATCH 1/6] staging: most: remove multiple blank lines

2015-10-30 Thread Albino B Neto
2015-10-29 19:12 GMT-02:00 Greg KH : >> 0 - https://www.kernel.org/doc/Documentation/CodingStyle > > I don't understand what you are saying here, what does this email mean? I have to send private him ? The link for help. Albino ___ devel mailing li

Re: [PATCH 1/6] staging: most: remove multiple blank lines

2015-10-30 Thread Sudip Mukherjee
On Fri, Oct 30, 2015 at 08:13:48AM -0200, Albino B Neto wrote: > 2015-10-29 19:12 GMT-02:00 Greg KH : > >> 0 - https://www.kernel.org/doc/Documentation/CodingStyle > > > > I don't understand what you are saying here, what does this email mean? > > I have to send private him ? The link for help. N

Re: [PATCH net-next] hyperv: Add handler for RNDIS_STATUS_NETWORK_CHANGE event

2015-10-30 Thread Vitaly Kuznetsov
Haiyang Zhang writes: >> -Original Message- >> From: Richard Weinberger [mailto:richard.weinber...@gmail.com] >> Sent: Tuesday, October 27, 2015 6:36 PM >> To: David Miller >> Cc: Haiyang Zhang ; o...@aepfle.de; Greg Kroah- >> Hartman ; net...@vger.kernel.org; jasow...@redhat.com; >> dri

Re: [PATCH] staging: comedi: adv_pci1710: separate out PCI-1720 support as a new driver

2015-10-30 Thread Ian Abbott
On 29/10/15 17:19, H Hartley Sweeten wrote: The PCI-1710 series boards are multifunction data acquisition boards with analog inputs and outputs, digital inputs and outputs, and counter/timer functions. The PCI-1720 is a simple 4 channel analog output board. It also uses a unique register map. S

Re: [PATCH 1/6] staging: most: remove multiple blank lines

2015-10-30 Thread Greg KH
On Fri, Oct 30, 2015 at 08:13:48AM -0200, Albino B Neto wrote: > 2015-10-29 19:12 GMT-02:00 Greg KH : > >> 0 - https://www.kernel.org/doc/Documentation/CodingStyle > > > > I don't understand what you are saying here, what does this email mean? > > I have to send private him ? The link for help. A

[PATCH] drivers:staging:gdm724x Fix Blank lines aren't necessary after an open brace '{'

2015-10-30 Thread Bogicevic Sasa
This fixes "Blank lines aren't necessary after an open brace '{'" message from checkpatch.pl Signed-off-by: Bogicevic Sasa --- drivers/staging/gdm724x/gdm_mux.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/gdm724x/gdm_mux.c b/drivers/staging/gdm724x/gdm_mux.c index 1cf24e4

[PATCH] drivers:staging:gdm724x Fix please dont use multiple blank lines

2015-10-30 Thread Bogicevic Sasa
This fixes the errors about the use of multiple blank lines from checkpatch.pl Signed-off-by: Bogicevic Sasa --- drivers/staging/gdm724x/gdm_mux.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/staging/gdm724x/gdm_mux.c b/drivers/staging/gdm724x/gdm_mux.c index 0389680..45007ec

[PATCH] drivers:staging:gdm724x Fix spaces preffered around that ...

2015-10-30 Thread Bogicevic Sasa
This fixes all messages from checkpatch.pl about spaces preffered around that + Signed-off-by: Bogicevic Sasa --- drivers/staging/gdm724x/gdm_mux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/gdm724x/gdm_mux.c b/drivers/staging/gdm724x/gdm_mux.c index

[PATCH] drivers:staging:gdm724x Fix comparison to NULL could be written like

2015-10-30 Thread Bogicevic Sasa
This fixes all messages from checkpatch.pl about comparison to NULL could be written according to coding style preferences Signed-off-by: Bogicevic Sasa --- drivers/staging/gdm724x/gdm_mux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/gdm724x/gdm_mux.c

Loan Offer

2015-10-30 Thread
Head Office: Reliable Business Consultants No.299 Broadway,New York City NY 10007 United State Pone: +12095807858 Branch off

[PATCH] drivers:staging:gdm724x Fix Blank lines aren't necessary after an open brace '{'

2015-10-30 Thread Bogicevic Sasa
This fixes message "Blank lines aren't necessary after an open brace '{'" Signed-off-by: Bogicevic Sasa --- drivers/staging/gdm724x/gdm_tty.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/gdm724x/gdm_tty.c b/drivers/staging/gdm724x/gdm_tty.c index 001348c..0d54a73 100644 --

[PATCH] drivers:staging:gdm724x Fix Comparison to NULL could be written "!gdm"

2015-10-30 Thread Bogicevic Sasa
This fixes message from checkpatch.pl Comparison to NULL could be written "!gdm" Signed-off-by: Bogicevic Sasa --- drivers/staging/gdm724x/gdm_tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/gdm724x/gdm_tty.c b/drivers/staging/gdm724x/gdm_tty.c index 0d

[PATCH] drivers:staging:gdm724x Fix Prefer kmalloc(sizeof(*gdm)...)

2015-10-30 Thread Bogicevic Sasa
This fixes Prefer kmalloc(sizeof(*gdm)...) over kmalloc(sizeof(struct gdm)...) message from checkpatch.pl Signed-off-by: Bogicevic Sasa --- drivers/staging/gdm724x/gdm_tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/gdm724x/gdm_tty.c b/drivers/staging/g

[PATCH] drivers:staging:gdm724x Fix spaces preferred message

2015-10-30 Thread Bogicevic Sasa
This fixes spaces preferred around that ... from checkpatch.pl Signed-off-by: Bogicevic Sasa --- drivers/staging/gdm724x/gdm_tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/gdm724x/gdm_tty.c b/drivers/staging/gdm724x/gdm_tty.c index d600728..60b52a3 100

RE: [PATCH v4 6/7] drivers:hv: Define the channel type for Hyper-V PCI Express pass-through

2015-10-30 Thread Jake Oshins
> -Original Message- > From: Andy Shevchenko [mailto:andy.shevche...@gmail.com] > Sent: Thursday, October 29, 2015 5:45 PM > To: Jake Oshins > Cc: Greg Kroah-Hartman ; KY Srinivasan > ; linux-ker...@vger.kernel.org; > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; Vitaly

RE: [PATCH v4 5/7] PCI: irqdomain: Look up IRQ domain by fwnode_handle

2015-10-30 Thread Jake Oshins
> -Original Message- > From: Andy Shevchenko [mailto:andy.shevche...@gmail.com] > Sent: Thursday, October 29, 2015 5:28 PM > To: Jake Oshins > Cc: Greg Kroah-Hartman ; KY Srinivasan > ; linux-ker...@vger.kernel.org; > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; Vitaly

RE: [PATCH v4 4/7] PCI: Add fwnode_handle to pci_sysdata

2015-10-30 Thread Jake Oshins
> -Original Message- > From: Jiang Liu [mailto:jiang@linux.intel.com] > Sent: Thursday, October 29, 2015 6:55 PM > To: Jake Oshins ; gre...@linuxfoundation.org; KY > Srinivasan ; linux-ker...@vger.kernel.org; > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; > vkuzn...

RE: [PATCH 5/5] staging: fsl-mc: Management Complex restool driver

2015-10-30 Thread Lijun Pan
> -Original Message- > From: Pan Lijun-B44306 > Sent: Thursday, October 29, 2015 6:55 PM > To: Wood Scott-B07421 > Cc: gre...@linuxfoundation.org; a...@arndb.de; de...@driverdev.osuosl.org; > linux-ker...@vger.kernel.org; Yoder Stuart-B08248 > ; katz Itai-RM05202 ; > Rivera Jose-B46482 ;

Re: [PATCH v4 6/7] drivers:hv: Define the channel type for Hyper-V PCI Express pass-through

2015-10-30 Thread Andy Shevchenko
On Fri, Oct 30, 2015 at 5:57 PM, Jake Oshins wrote: >> > + * PCI Express Pass Through >> > + * {44C4F61D--4400-9D52-802E27EDE19F} >> > + */ >> > + >> > +#define HV_PCIE_GUID \ >> > + .guid = { \ >> > + 0x1D, 0xF6, 0xC4, 0x44, 0x44, 0x44, 0x00, 0x44, \ >> > +

RE: [PATCH v4 6/7] drivers:hv: Define the channel type for Hyper-V PCI Express pass-through

2015-10-30 Thread KY Srinivasan
> -Original Message- > From: Andy Shevchenko [mailto:andy.shevche...@gmail.com] > Sent: Friday, October 30, 2015 9:52 AM > To: Jake Oshins > Cc: Greg Kroah-Hartman ; KY Srinivasan > ; linux-ker...@vger.kernel.org; > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; Vitaly

Re: [PATCH v4 6/7] drivers:hv: Define the channel type for Hyper-V PCI Express pass-through

2015-10-30 Thread Andy Shevchenko
On Fri, Oct 30, 2015 at 6:56 PM, KY Srinivasan wrote: >> >> What about >> >> #include >> >> >> >> UUID_LE(...) >> >> >> >> And you may use uuid_le type instead of custom raw buffer. >> >> >> > >> > Thanks. I was just following the form of all the others in this file. I >> > think >> that this

RE: [PATCH v4 6/7] drivers:hv: Define the channel type for Hyper-V PCI Express pass-through

2015-10-30 Thread KY Srinivasan
> -Original Message- > From: Andy Shevchenko [mailto:andy.shevche...@gmail.com] > Sent: Friday, October 30, 2015 9:59 AM > To: KY Srinivasan > Cc: Jake Oshins ; Greg Kroah-Hartman > ; linux-ker...@vger.kernel.org; > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; Vitaly

[PATCH] Staging: comedi: ssc_dnp: fixed a comment style

2015-10-30 Thread Philippe Loctaux
Fixed a comment issue. Signed-off-by: Philippe Loctaux --- drivers/staging/comedi/drivers/ssv_dnp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/ssv_dnp.c b/drivers/staging/comedi/drivers/ssv_dnp.c index acc7f34..c28b6cb 100644 --- a/drive

[PATCH v2] staging: comedi: adv_pci1710: separate out PCI-1720 support as a new driver

2015-10-30 Thread H Hartley Sweeten
The PCI-1710 series boards are multifunction data acquisition boards with analog inputs and outputs, digital inputs and outputs, and counter/timer functions. The PCI-1720 is a simple 4 channel analog output board. It also uses a unique register map. Separate out the PCI-1720 support as a new driv

[PATCH v2 7/8] staging: fsl-mc: update TODO and README for restool driver

2015-10-30 Thread Lijun Pan
Add more introduction of restool driver and state why restool driver is needed in helping moving fsl-mc bus out of staging tree. Signed-off-by: Lijun Pan --- drivers/staging/fsl-mc/README.txt | 11 ++- drivers/staging/fsl-mc/TODO | 18 -- 2 files changed, 26 inserti

[PATCH v2 4/8] staging: fsl-mc: root dprc rescan attribute to sync kernel with MC

2015-10-30 Thread Lijun Pan
Introduce the rescan attribute as a device attribute to synchronize the fsl-mc bus objects and the MC firmware. To rescan the root dprc only, e.g. echo 1 > /sys/bus/fsl-mc/devices/dprc.1/rescan Signed-off-by: Lijun Pan --- drivers/staging/fsl-mc/bus/mc-bus.c | 43 +++

[PATCH v2 5/8] staging: fsl-mc: fsl-mc bus's sysfs rescan documentation

2015-10-30 Thread Lijun Pan
Add the sysfs documentation for the rescan attribute of fsl-mc bus. Signed-off-by: Lijun Pan --- Documentation/ABI/testing/sysfs-bus-fsl-mc | 11 +++ 1 file changed, 11 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-bus-fsl-mc diff --git a/Documentation/ABI/testing/sy

[PATCH v2 0/8] Management Complex restool driver

2015-10-30 Thread Lijun Pan
This series of patches are based on http://git.kernel.org/cgit/linux/kernel/git/gregkh/staging.git/commit/?h=staging-next&id=63f2be5c3b358db031f86eafa9cd450f6558a55b patch v1 1/5 "staging: fsl-mc: section mismatch bug fix" is already accepted. This v2 series have, patch 1/8 use inline function to

[PATCH v2 6/8] staging: fsl-mc: bus rescan attribute to sync kernel with MC

2015-10-30 Thread Lijun Pan
Introduce the rescan attribute as a bus attribute to synchronize the fsl-mc bus objects and the MC firmware. To rescan the fsl-mc bus, e.g., echo 1 > /sys/bus/fsl-mc/rescan Signed-off-by: Lijun Pan --- drivers/staging/fsl-mc/bus/mc-bus.c | 46 + 1 file change

[PATCH v3 3/8] staging: fsl-mc: dprc device's sysfs rescan documentation

2015-10-30 Thread Lijun Pan
Add the sysfs documentation for the rescan attribute of dprc devices. Signed-off-by: Lijun Pan --- Documentation/ABI/testing/sysfs-devices-dprc | 13 + 1 file changed, 13 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-devices-dprc diff --git a/Documentation/ABI/te

[PATCH v2 1/8] staging: fsl-mc: static inline function to differentiate root dprc

2015-10-30 Thread Lijun Pan
Define a static inline function is_root_dprc(dev) to tell whether a device is root dprc or not via platform_bus_type. Remove fsl_mc_is_root_dprc() because is_root_dprc() is simpler and easier to understand. Signed-off-by: Lijun Pan --- v2: use static inline function instead of macro replace t

[PATCH v2 2/8] staging: fsl-mc: add sysfs rescan attribute in TODO

2015-10-30 Thread Lijun Pan
Demonstrate why sysfs rescan attribute is helpful for moving fsl-mc bus out of staging. Signed-off-by: Lijun Pan --- drivers/staging/fsl-mc/TODO | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/staging/fsl-mc/TODO b/drivers/staging/fsl-mc/TODO index 3894368..5065821 100644 --- a

[PATCH v2 8/8] staging: fsl-mc: Management Complex restool driver

2015-10-30 Thread Lijun Pan
The kernel support for the restool (a user space resource management tool) is a driver for the /dev/dprc.N device file. Its purpose is to provide an ioctl interface, which the restool uses to interact with the MC bus driver and with the MC firmware. We allocate a dpmcp at driver initialization, and

[PATCH v2 04/11] staging: fsl-mc: Added GICv3-ITS support for FSL-MC MSIs

2015-10-30 Thread J. German Rivera
Added platform-specific MSI support layer for FSL-MC devices. Signed-off-by: J. German Rivera --- Changes in v2: none drivers/staging/fsl-mc/bus/Makefile| 1 + .../staging/fsl-mc/bus/irq-gic-v3-its-fsl-mc-msi.c | 127 + drivers/staging/fsl-mc/include/mc-pri

[PATCH v2 11/11] staging: fsl-mc: Added MSI support to the MC bus driver

2015-10-30 Thread J. German Rivera
Initialize/Cleanup ITS-MSI support for the MC bus driver at driver init/exit time. Associate an MSI domain with each DPAA2 child device. Signed-off-by: J. German Rivera --- Changes in v2: none drivers/staging/fsl-mc/bus/mc-bus.c | 12 1 file changed, 12 insertions(+) diff --git a/

[PATCH v2 06/11] staging: fsl-mc: Changed DPRC built-in portal's mc_io to be atomic

2015-10-30 Thread J. German Rivera
The DPRC built-in portal's mc_io is used to send commands to the MC to program MSIs for MC objects. This is done by the fsl_mc_msi_write_msg() callback, which is invoked by the generic MSI layer with interrupts disabled. As a result, the mc_io used in fsl_mc_msi_write_msg needs to be an atomic mc_i

[PATCH v2 00/11] staging: fsl-mc: MC bus MSI support

2015-10-30 Thread J. German Rivera
This patch series addresses the following item from the TODO list for the MC bus driver to exit staging: * Interrupt support. For meaningful driver support we need interrupts, and thus need message interrupt support by the bus driver. MC Bus MSI Support Architecture ==

[PATCH v2 10/11] staging: fsl-mc: Added DPRC interrupt handler

2015-10-30 Thread J. German Rivera
The interrupt handler for DPRC IRQs is added. DPRC IRQs are generated for hot plug events related to DPAA2 objects in a given DPRC. These events include, creating/destroying DPAA2 objects in the DPRC, changing the "plugged" state of DPAA2 objects and moving objects between DPRCs. Signed-off-by: J.

[PATCH v2 02/11] fsl-mc: msi: Added FSL-MC-specific member to the msi_desc's union

2015-10-30 Thread J. German Rivera
FSL-MC is a bus type different from PCI and platform, so it needs its own member in the msi_desc's union. Signed-off-by: J. German Rivera --- Changes in v2: - Addressed comment from Jiang Liu * Added a dedicated structure for FSL-MC in struct msi_desc include/linux/msi.h | 9 + 1 file

[PATCH v2 03/11] staging: fsl-mc: Added generic MSI support for FSL-MC devices

2015-10-30 Thread J. German Rivera
Created an MSI domain for the fsl-mc bus-- including functions to create a domain, find a domain, alloc/free domain irqs, and bus specific overrides for domain and irq_chip ops. Signed-off-by: J. German Rivera --- Changes in v2: none drivers/staging/fsl-mc/bus/Kconfig | 1 + drivers/

[PATCH v2 05/11] staging: fsl-mc: Extended MC bus allocator to include IRQs

2015-10-30 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 the 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 b

[PATCH v2 08/11] staging: fsl-mc: set MSI domain for DPRC objects

2015-10-30 Thread J. German Rivera
THE MSI domain associated with a root DPRC object is obtained form the device tree. Child DPRCs inherit the parent DPRC MSI domain. Signed-off-by: J. German Rivera --- Changes in v2: none drivers/staging/fsl-mc/bus/dprc-driver.c | 39 1 file changed, 39 insertio

[PATCH v2 01/11] irqdomain: Added domain bus token DOMAIN_BUS_FSL_MC_MSI

2015-10-30 Thread J. German Rivera
Since an FSL-MC bus is a new bus type that is neither PCI nor PLATFORM, we need a new domain bus token to disambiguate the IRQ domain for FSL-MC MSIs. Signed-off-by: J. German Rivera --- Changes in v2: none include/linux/irqdomain.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/li

[PATCH v2 07/11] staging: fsl-mc: Populate the IRQ pool for an MC bus instance

2015-10-30 Thread J. German Rivera
Scan the corresponding DPRC container to get total count of IRQs needed by all its child DPAA2 objects. Then, preallocate a set of MSI IRQs with the DPRC's ICID (GIT-ITS device Id) to populate the the DPRC's IRQ pool. Each child DPAA2 object in the DPRC and the DPRC object itself will allocate thei

[PATCH v2 09/11] staging: fsl-mc: Fixed bug in dprc_probe() error path

2015-10-30 Thread J. German Rivera
Destroy mc_io in error path in dprc_probe() only if the mc_io was created in this function. Signed-off-by: J. German Rivera --- Changes in v2: - Addressed comment from Dan Carpenter * Renamed goto error labels to indicate what the goto does drivers/staging/fsl-mc/bus/dprc-driver.c | 17 ++

[PATCH v5 0/7] PCI: hv: New paravirtual PCI front-end for Hyper-V VMs

2015-10-30 Thread jakeo
From: Jake Oshins This patch series incorporates feedback related to the version sent yesterday. First, export functions that allow correlating Hyper-V virtual processors and Linux cpus, along with the means for invoking a hypercall that targets interrupts at chosen vectors on specfic cpus. Sec

[PATCH v5 3/7] PCI: Make it possible to implement a PCI MSI IRQ Domain in a module.

2015-10-30 Thread jakeo
From: Jake Oshins The Linux kernel already has the concpet of IRQ domain, whereing a component can expose a set of IRQs which are managed by a particular interrupt controller chip or other subsystem. The PCI driver exposes the notion of an IRQ domain for Message-Signaled Interrupts (MSI) from PCI

[PATCH v5 4/7] PCI: Add fwnode_handle to pci_sysdata

2015-10-30 Thread jakeo
From: Jake Oshins This patch adds an fwnode_handle to struct pci_sysdata, which is used by the next patch in the series when trying to locate an IRQ domain associated with a root PCI bus. Signed-off-by: Jake Oshins --- arch/x86/include/asm/pci.h | 11 +++ 1 file changed, 11 insertions(

[PATCH v5 6/7] drivers:hv: Define the channel type for Hyper-V PCI Express pass-through

2015-10-30 Thread jakeo
From: Jake Oshins This defines the channel type for PCI front-ends in Hyper-V VMs. Signed-off-by: Jake Oshins --- include/linux/hyperv.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h index ea0a0e3..5587899 100644 --- a/include/

[PATCH v5 1/7] drivers:hv: Export a function that maps Linux CPU num onto Hyper-V proc num

2015-10-30 Thread jakeo
From: Jake Oshins This patch exposes the mapping between Linux CPU number and Hyper-V virtual processor number. This is necessary because the hypervisor needs to know which virtual processor to target when making a mapping in the Interrupt Redirection Table in the I/O MMU. Signed-off-by: Jake Os

[PATCH v5 2/7] drivers:hv: Export hv_do_hypercall()

2015-10-30 Thread jakeo
From: Jake Oshins This patch exposes the function that hv_vmbus.ko uses to make hypercalls. This is necessary for retargeting an interrupt when it is given a new affinity and vector. Signed-off-by: Jake Oshins --- drivers/hv/hv.c | 20 ++-- drivers/hv/hyperv_vmbus.h |

[PATCH v5 5/7] PCI: irqdomain: Look up IRQ domain by fwnode_handle

2015-10-30 Thread jakeo
From: Jake Oshins This patch adds a second way of finding an IRQ domain associated with a root PCI bus. After looking to see if one can be found through the OF tree, it attempts to look up the IRQ domain through an fwnode_handle stored in the pci_sysdata struct. Signed-off-by: Jake Oshins ---

[PATCH v5 7/7] PCI: hv: New paravirtual PCI front-end for Hyper-V VMs

2015-10-30 Thread jakeo
From: Jake Oshins This patch introduces a new driver which exposes a root PCI bus whenever a PCI Express device is passed through to a guest VM under Hyper-V. The device can be single- or multi-function. The interrupts for the devices are managed by an IRQ domain, implemented within the driver.

[BUG] IB/hfi1: might sleep under spinlock in hfi1_ioctl()

2015-10-30 Thread Alexey Khoroshilov
Hello, hfi1_ioctl() contains many calls to might sleep functions with dd->hfi1_snoop.snoop_lock spinlock held (for example, access_ok, copy_from_user, kzalloc(GFP_KERNEL), etc.). Should dd->hfi1_snoop.snoop_lock be acquired just before updating state? Found by Linux Driver Verification project (

Re: [PATCH v5 5/7] PCI: irqdomain: Look up IRQ domain by fwnode_handle

2015-10-30 Thread Andy Shevchenko
On Fri, Oct 30, 2015 at 11:11 PM, wrote: > From: Jake Oshins > > This patch adds a second way of finding an IRQ domain associated with > a root PCI bus. After looking to see if one can be found through > the OF tree, it attempts to look up the IRQ domain through an > fwnode_handle stored in the

RE: [PATCH net-next] hyperv: Add handler for RNDIS_STATUS_NETWORK_CHANGE event

2015-10-30 Thread Haiyang Zhang
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Friday, October 30, 2015 6:56 AM > To: Haiyang Zhang > Cc: Richard Weinberger ; David Miller > ; o...@aepfle.de; jasow...@redhat.com; driverdev- > de...@linuxdriverproject.org; LKML ; > net...@vger.kernel.

Re: [PATCH net-next] hyperv: Add handler for RNDIS_STATUS_NETWORK_CHANGE event

2015-10-30 Thread Richard Weinberger
Am 30.10.2015 um 23:03 schrieb Haiyang Zhang: > > >> -Original Message- >> From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] >> Sent: Friday, October 30, 2015 6:56 AM >> To: Haiyang Zhang >> Cc: Richard Weinberger ; David Miller >> ; o...@aepfle.de; jasow...@redhat.com; driverdev- >> d

[PATCH 0/9] staging/rdma/hfi1: Fix bugs and performance issues

2015-10-30 Thread ira . weiny
From: Ira Weiny The following are fixes to the hfi1 driver for stability, security, and performance. New series based off of the latest staging-next. Large patches were split up and a new patch was added to remove offending macros. Ira Weiny (1): staging/rdma/hfi1: Remove file pointer macros

[PATCH 1/9] staging/rdma/hfi1: Remove file pointer macros

2015-10-30 Thread ira . weiny
From: Ira Weiny Remove the following macros in favor of explicit use of struct hfi1_filedata and various sub structures. ctxt_fp subctxt_fp tidcursor_fp user_sdma_pkt_fp user_sdma_comp_fp Reviewed-by: Mitko Haralanov Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/file_ops.c | 124 ++

[PATCH 4/9] staging/rdma/hfi1: Move macros to a common header

2015-10-30 Thread ira . weiny
From: Mitko Haralanov In preparation of implementing TID caching move EXP_TID macros to a common header user_exp_rcv.h Signed-off-by: Mitko Haralanov Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/file_ops.c | 13 +- drivers/staging/rdma/hfi1/user_exp_rcv.h | 74 ++

[PATCH 2/9] staging/rdma/hfi1: Clean up macro indentation

2015-10-30 Thread ira . weiny
From: Mitko Haralanov In preparation for implementing Expected TID caching we do some simple clean up of header file macros. Signed-off-by: Mitko Haralanov Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/common.h | 15 --- include/uapi/rdma/hfi/hfi1_user.h | 26 +++

[PATCH v4 8/9] staging/rdma/hfi1: Use parallel workqueue for SDMA engines

2015-10-30 Thread ira . weiny
From: Mike Marciniszyn The workqueue is currently single threaded per port which for a small number of SDMA engines is ok. For hfi1, the there are up to 16 SDMA engines that can be fed descriptors in parallel. Use alloc_workqueue with a workqueue limit of the number of sdma engines and with WQ_

[PATCH 5/9] staging/rdma/hfi1: Add function stubs for TID caching

2015-10-30 Thread ira . weiny
From: Mitko Haralanov Add mmu notify helper functions and TID caching function stubs in preparation for the TID caching implementation. TID caching makes use of the MMU notifier to allow the driver to respond to the user freeing memory which is allocated to the HFI. This patch implements the ba

[PATCH 9/9] staging/rdma/hfi: pre-compute sc and sde for RC/UC QPs

2015-10-30 Thread ira . weiny
From: Mike Marciniszyn Now that we have a multi-threaded work queue we precomputed and store the SC and SDE on RC and UC QPs for faster access. Reviewed-by: Dennis Dalessandro Signed-off-by: Mike Marciniszyn Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/qp.c| 27

[PATCH 7/9] staging/rdma/hfi1: move hfi1_migrate_qp

2015-10-30 Thread ira . weiny
From: Mike Marciniszyn Move hfi1_migrate_qp from ruc.c to qp.[hc] in prep for modifying the QP workqueue. Signed-off-by: Mike Marciniszyn Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/qp.c| 20 drivers/staging/rdma/hfi1/qp.h| 2 ++ drivers/staging/rdma/h

[PATCH v4 6/9] staging/rdma/hfi1: Implement Expected Receive TID caching

2015-10-30 Thread ira . weiny
From: Mitko Haralanov Expected receives work by user-space libraries (PSM) calling into the driver with information about the user's receive buffer and have the driver DMA-map that buffer and program the HFI to receive data directly into it. This is an expensive operation as it requires the driv

[PATCH 3/9] staging/rdma/hfi1: Remove unnecessary include files

2015-10-30 Thread ira . weiny
From: Mitko Haralanov These includes were not used in file_ops.c Signed-off-by: Mitko Haralanov Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/file_ops.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/drivers/staging/rdma/hfi1/file_ops.c b/drivers/staging/rdma/hfi1/fi

Re: [PATCH v4 6/9] staging/rdma/hfi1: Implement Expected Receive TID caching

2015-10-30 Thread Greg KH
Meta-comment, you put "v4" in the subject, in a place where I can't sort this series and expect them to be applied in the correct order. You need a 'v4' in all of the patches (git format-patch will do it automatically for you.) As this is, it's a pain to apply, please fix up and resend. thanks,

[PATCH v4 2/9] staging/rdma/hfi1: Clean up macro indentation

2015-10-30 Thread ira . weiny
From: Mitko Haralanov In preparation for implementing Expected TID caching we do some simple clean up of header file macros. Signed-off-by: Mitko Haralanov Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/common.h | 15 --- include/uapi/rdma/hfi/hfi1_user.h | 26 +++

[PATCH v4 0/9] staging/rdma/hfi1: Fix bugs and performance issues

2015-10-30 Thread ira . weiny
From: Ira Weiny The following are fixes to the hfi1 driver for stability, security, and performance. New series based off of the latest staging-next. Large patches were split up and a new patch was added to remove offending macros. NOTE: My apologies for not putting v4 in all the patches. I w

[PATCH v4 4/9] staging/rdma/hfi1: Move macros to a common header

2015-10-30 Thread ira . weiny
From: Mitko Haralanov In preparation of implementing TID caching move EXP_TID macros to a common header user_exp_rcv.h Signed-off-by: Mitko Haralanov Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/file_ops.c | 13 +- drivers/staging/rdma/hfi1/user_exp_rcv.h | 74 ++

[PATCH v4 5/9] staging/rdma/hfi1: Add function stubs for TID caching

2015-10-30 Thread ira . weiny
From: Mitko Haralanov Add mmu notify helper functions and TID caching function stubs in preparation for the TID caching implementation. TID caching makes use of the MMU notifier to allow the driver to respond to the user freeing memory which is allocated to the HFI. This patch implements the ba

[PATCH v4 1/9] staging/rdma/hfi1: Remove file pointer macros

2015-10-30 Thread ira . weiny
From: Ira Weiny Remove the following macros in favor of explicit use of struct hfi1_filedata and various sub structures. ctxt_fp subctxt_fp tidcursor_fp user_sdma_pkt_fp user_sdma_comp_fp Reviewed-by: Mitko Haralanov Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/file_ops.c | 124 ++

[PATCH v4 3/9] staging/rdma/hfi1: Remove unnecessary include files

2015-10-30 Thread ira . weiny
From: Mitko Haralanov These includes were not used in file_ops.c Signed-off-by: Mitko Haralanov Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/file_ops.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/drivers/staging/rdma/hfi1/file_ops.c b/drivers/staging/rdma/hfi1/fi

[PATCH v4 7/9] staging/rdma/hfi1: move hfi1_migrate_qp

2015-10-30 Thread ira . weiny
From: Mike Marciniszyn Move hfi1_migrate_qp from ruc.c to qp.[hc] in prep for modifying the QP workqueue. Signed-off-by: Mike Marciniszyn Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/qp.c| 20 drivers/staging/rdma/hfi1/qp.h| 2 ++ drivers/staging/rdma/h

[PATCH v4 9/9] staging/rdma/hfi: pre-compute sc and sde for RC/UC QPs

2015-10-30 Thread ira . weiny
From: Mike Marciniszyn Now that we have a multi-threaded work queue we precomputed and store the SC and SDE on RC and UC QPs for faster access. Reviewed-by: Dennis Dalessandro Signed-off-by: Mike Marciniszyn Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/qp.c| 27

[PATCH v4 6/9] staging/rdma/hfi1: Implement Expected Receive TID caching

2015-10-30 Thread ira . weiny
From: Mitko Haralanov Expected receives work by user-space libraries (PSM) calling into the driver with information about the user's receive buffer and have the driver DMA-map that buffer and program the HFI to receive data directly into it. This is an expensive operation as it requires the driv

[PATCH v4 8/9] staging/rdma/hfi1: Use parallel workqueue for SDMA engines

2015-10-30 Thread ira . weiny
From: Mike Marciniszyn The workqueue is currently single threaded per port which for a small number of SDMA engines is ok. For hfi1, the there are up to 16 SDMA engines that can be fed descriptors in parallel. Use alloc_workqueue with a workqueue limit of the number of sdma engines and with WQ_

Re: [PATCH 1/3] staging: lustre: checkpatch cleanups for nidstring.c

2015-10-30 Thread Greg Kroah-Hartman
On Thu, Oct 29, 2015 at 07:28:21PM -0400, James Simmons wrote: > With nidstring now having the latest fixes we can > now clean up all the remaining checkpatch errors > for nidstring.c. Please be specific as to exactly what you changed, and break it up into one-patch-per-thing. And no, "fix all ch

Re: [BUG] IB/hfi1: might sleep under spinlock in hfi1_ioctl()

2015-10-30 Thread ira.weiny
On Sat, Oct 31, 2015 at 12:32:29AM +0300, Alexey Khoroshilov wrote: > Hello, > > hfi1_ioctl() contains many calls to might sleep functions with > dd->hfi1_snoop.snoop_lock spinlock held (for example, access_ok, > copy_from_user, kzalloc(GFP_KERNEL), etc.). > > Should dd->hfi1_snoop.snoop_lock be

  1   2   >