Re: [PATCH] rapidio: remove redundant pointer md

2018-07-19 Thread Alexandre Bounine
Acked-by: Alexandre Bounine On 2018-07-11 04:23 AM, Colin King wrote: From: Colin Ian King Pointer md is being assigned but is never used hence it is redundant and can be removed. Cleans up clang warning: warning: variable 'md' set but not used [-Wunused-but-set-variable] Sig

Re: [PATCH] rapidio: fix rio_dma_transfer error handling

2018-04-12 Thread Alexandre Bounine
On 2018-04-12 05:28 PM, Andrew Morton wrote: On Thu, 12 Apr 2018 17:06:05 +0200 Ioan Nicu wrote: Some of the mport_dma_req structure members were initialized late inside the do_dma_request() function, just before submitting the request to the dma engine. But we have some error branches before

Re: [PATCH] rapidio: fix rio_dma_transfer error handling

2018-04-12 Thread Alexandre Bounine
rio_dma_transfer() immediately after the request structure gets allocated. Signed-off-by: Ioan Nicu --- drivers/rapidio/devices/rio_mport_cdev.c | 19 +-- 1 file changed, 9 insertions(+), 10 deletions(-) Acked-by: Alexandre Bounine

[PATCH] MAINTAINERS: update email address for Alexandre Bounine

2018-04-05 Thread Alexandre Bounine
CC: Barry Wood Signed-off-by: Alexandre Bounine --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 89fd804..a6a1359 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -11723,7 +11723,7 @@ F: drivers/char/random.c RAPIDIO

[PATCH 1/1] rapidio/rio_cm: avoid GFP_KERNEL in atomic context

2016-09-15 Thread Alexandre Bounine
: Alexey Khoroshilov Cc: Alexey Khoroshilov Cc: linux-kernel@vger.kernel.org Signed-off-by: Alexandre Bounine --- drivers/rapidio/rio_cm.c | 20 +--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/drivers/rapidio/rio_cm.c b/drivers/rapidio/rio_cm.c index 3226983

[PATCH] rapidio/tsi721: fix incorrect detection of address translation condition

2016-09-01 Thread Alexandre Bounine
-by: Alexandre Bounine Cc: Matt Porter Cc: Andre van Herk Cc: Barry Wood Cc: linux-kernel@vger.kernel.org --- drivers/rapidio/devices/tsi721.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/rapidio/devices/tsi721.c b/drivers/rapidio/devices/tsi721.c index 32f0

[PATCH -next] powerpc/fsl_rio: apply changes for RIO spec rev 3 fix2

2016-08-02 Thread Alexandre Bounine
Fix compile error reported by Michael Ellerman: https://lkml.org/lkml/2016/7/27/14 also corrects fix: https://lkml.org/lkml/2016/7/27/488 Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Michael Ellerman Cc: Andre van Herk Cc: Barry Wood Cc: linux-kernel@vger.kernel.org

[PATCH -next] rapidio: change inbound window size type to u64 fix

2016-08-02 Thread Alexandre Bounine
Fix for patch "rapidio: change inbound window size type to u64". Remove compiler warning about size of constant. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Michael Ellerman Cc: Andre van Herk Cc: Barry Wood Cc: linux-kernel@vger.kernel.org --- arch/powerpc/sysdev/fsl_ri

[PATCH -mm] rapidio/idt_gen3: fixup for original driver patch

2016-07-21 Thread Alexandre Bounine
This patch has two fixes for the patch "rapidio/switches: add driver for IDT gen3 switches" currently in -mm tree. First address Andrew's comment about blocking delay. The second fix was missed during the original patch preparation. Signed-off-by: Alexandre Bounine Cc: Matt Po

[PATCH 13/13] rapidio/switches: add driver for IDT gen3 switches

2016-07-21 Thread Alexandre Bounine
Add RapidIO switch driver for IDT Gen3 switch devices: RXS1632 and RXS2448. Signed-off-by: Alexandre Bounine Tested-by: Barry Wood Cc: Matt Porter Cc: Andre van Herk Cc: Barry Wood Cc: linux-kernel@vger.kernel.org --- drivers/rapidio/switches/Kconfig|6 + drivers/rapidio/switches

[PATCH 10/13] rapidio: change inbound window size type to u64

2016-07-21 Thread Alexandre Bounine
larger than 4GB. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Benjamin Herrenschmidt Cc: Michael Ellerman Cc: Andre van Herk Cc: Barry Wood Cc: linux-kernel@vger.kernel.org Cc: linuxppc-...@lists.ozlabs.org --- arch/powerpc/sysdev/fsl_rio.c|4 ++-- drivers/rapidio/devices

[PATCH 09/13] rapidio/idt_gen2: fix locking warning

2016-07-21 Thread Alexandre Bounine
Fix lockdep warning during device probing: move sysfs initialization out of code protected by a spin lock. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Andre van Herk Cc: Barry Wood Cc: linux-kernel@vger.kernel.org --- drivers/rapidio/switches/idt_gen2.c |7 +++ 1 files

[PATCH 11/13] rapidio: modify for rev.3 specification changes

2016-07-21 Thread Alexandre Bounine
). - remove deprecated Parallel Physical layer definitions and related code. Signed-off-by: Alexandre Bounine Tested-by: Barry Wood Cc: Matt Porter Cc: Andre van Herk Cc: Barry Wood Cc: linux-kernel@vger.kernel.org --- drivers/rapidio/devices/rio_mport_cdev.c |2 +- drivers/rapidio/devices

[PATCH 12/13] powerpc/fsl_rio: apply changes for RIO spec rev 3

2016-07-21 Thread Alexandre Bounine
- Remove check for parallel PHY - Set LP-Serial Register Map type Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Benjamin Herrenschmidt Cc: Michael Ellerman Cc: Andre van Herk Cc: Barry Wood Cc: linux-kernel@vger.kernel.org Cc: linuxppc-...@lists.ozlabs.org --- arch/powerpc/sysdev

[PATCH 06/13] rapidio/tsi721: add messaging mbox selector parameter

2016-07-21 Thread Alexandre Bounine
: Alexandre Bounine Tested-by: Barry Wood Cc: Matt Porter Cc: Andre van Herk Cc: Barry Wood Cc: linux-kernel@vger.kernel.org --- Documentation/rapidio/tsi721.txt |5 + drivers/rapidio/devices/tsi721.c | 15 +++ 2 files changed, 20 insertions(+), 0 deletions(-) diff --git

[PATCH 08/13] rapidio: fix error handling in mbox request/release functions

2016-07-21 Thread Alexandre Bounine
Add checking for error code returned by HW-specific mbox open routines. Ensure that resources are properly release if failed. This patch is applicable to kernel versions starting from v2.6.15. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Andre van Herk Cc: Barry Wood Cc: linux-kernel

[PATCH 07/13] rapidio/tsi721_dma: advance queue processing from transfer submit call

2016-07-21 Thread Alexandre Bounine
Add advancing transfer queue immediately from transfer submit call. DMA performance improvement: This will start transfer without waiting for 'issue_pending' command if there is no DMA transfer in progress. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Andre van Herk Cc: Barr

[PATCH 02/13] rapidio/documentation: fix mangled paragraph in mport_cdev

2016-07-21 Thread Alexandre Bounine
Minor edits to correct parameter description. This patch is applicable to kernel versions starting from v4.6. Signed-off-by: Alexandre Bounine Reported-by: Barry Wood Cc: Matt Porter Cc: Andre van Herk Cc: Barry Wood Cc: linux-kernel@vger.kernel.org --- Documentation/rapidio/mport_cdev.txt

[PATCH 05/13] rapidio/tsi721: add PCIe MRRS override parameter

2016-07-21 Thread Alexandre Bounine
limitations for supported MRRS and therefore the default value should be preserved, unless it is known that given platform supports full set of MRRS values defined by PCI Express specification. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Andre van Herk Cc: Barry Wood Cc: linux-kernel

[PATCH 04/13] rapidio/tsi721_dma: add channel mask and queue size parameters

2016-07-21 Thread Alexandre Bounine
(from seven available) are controlled by the mport device driver and reserve some of them for direct use by other drivers. Signed-off-by: Alexandre Bounine Tested-by: Barry Wood Cc: Matt Porter Cc: Andre van Herk Cc: Barry Wood Cc: linux-kernel@vger.kernel.org --- Documentation/rapidio/tsi721

[PATCH 03/13] rapidio: fix return value description for dma_prep functions

2016-07-21 Thread Alexandre Bounine
. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Andre van Herk Cc: Barry Wood Cc: linux-kernel@vger.kernel.org --- drivers/rapidio/rio.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/rapidio/rio.c b/drivers/rapidio/rio.c index 0dcaa66..8408029 100644

[PATCH 00/13] RapidIO subsystem updates

2016-07-21 Thread Alexandre Bounine
). Alexandre Bounine (12): rapidio/documentation: fix mangled paragraph in mport_cdev rapidio: fix return value description for dma_prep functions rapidio/tsi721_dma: add channel mask and queue size parameters rapidio/tsi721: add PCIe MRRS override parameter rapidio/tsi721: add messaging

[PATCH 01/13] rapidio: Remove unnecessary 0x prefixes before %pa extension uses

2016-07-21 Thread Alexandre Bounine
xes in the formats are unnecessary. Signed-off-by: Joe Perches Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Andre van Herk Cc: Barry Wood Cc: linux-kernel@vger.kernel.org --- drivers/rapidio/devices/rio_mport_cdev.c |4 ++-- drivers/rapidio/devices/tsi721.c |8 ---

[PATCH v2] rapidio: add RapidIO channelized messaging driver

2016-07-19 Thread Alexandre Bounine
ser-space parameter checking in ioctl handlers + added brief ioctl descriptions in doc file - changed data types in definitions shared with user-space apps Signed-off-by: Alexandre Bounine Tested-by: Barry Wood Cc: Matt Porter Cc: Aurelien Jacquiot Cc: Andre van Herk Cc: Barry Wood Cc: li

[PATCH] rapidio/mport_cdev: fix uapi type definitions

2016-04-15 Thread Alexandre Bounine
service routines Signed-off-by: Alexandre Bounine Reported-by: Gabriel Laskar Tested-by: Barry Wood Cc: Gabriel Laskar Cc: Matt Porter Cc: Aurelien Jacquiot Cc: Andre van Herk Cc: Barry Wood Cc: linux-kernel@vger.kernel.org --- drivers/rapidio/devices/rio_mport_cdev.c | 115

[PATCH] rapidio: add RapidIO channelized messaging driver

2016-03-21 Thread Alexandre Bounine
: Alexandre Bounine Tested-by: Barry Wood Cc: Matt Porter Cc: Aurelien Jacquiot Cc: Andre van Herk Cc: Barry Wood Cc: linux-kernel@vger.kernel.org --- Documentation/rapidio/rio_cm.txt | 94 ++ drivers/rapidio/Kconfig |8 + drivers/rapidio/Makefile |2 + drivers/rapidio

[PATCH] rapidio/rio_mport_cdev: fix conflicting DMA configuration options

2016-02-29 Thread Alexandre Bounine
Fix to ensure that only CONFIG_RAPIDIO_DMA_ENGINE option is used to control DMA code build. Signed-off-by: Alexandre Bounine Reported-by: Randy Dunlap Cc: Randy Dunlap Cc: Matt Porter Cc: linux-kernel@vger.kernel.org Cc: linux-n...@vger.kernel.org --- drivers/rapidio/devices/rio_mport_cdev.c

[PATCH] rapidio/rio_mport_cdev: fix build failure if CONFIG_DMA_ENGINE is not enabled

2016-02-29 Thread Alexandre Bounine
Fix the driver build failure if CONFIG_DMA_ENGINE option is not enabled This patch is applicable to linux-next tree. Signed-off-by: Alexandre Bounine Reported-by: Stephen Rothwell Cc: Randy Dunlap Cc: Matt Porter Cc: linux-kernel@vger.kernel.org Cc: linux-n...@vger.kernel.org --- drivers

[PATCH] powerpc/fsl_rio: update for port-write interface change

2016-02-11 Thread Alexandre Bounine
Platform-specific update following changes in port-write handler interface. This is a follow-up patch for [PATCH 22/30] rapidio: add global inbound port write interfaces Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Benjamin Herrenschmidt Cc: Aurelien Jacquiot Cc: Andre van Herk

[PATCH 17/30] rapidio/rionet: add locking into add/remove device

2016-02-05 Thread Alexandre Bounine
-off-by: Alexandre Bounine Cc: Matt Porter Cc: Aurelien Jacquiot Cc: Andre van Herk Cc: linux-kernel@vger.kernel.org Cc: net...@vger.kernel.org --- drivers/net/rionet.c | 152 + 1 files changed, 102 insertions(+), 50 deletions(-) diff --git a

[PATCH 08/30] rapidio/tsi721: add query_mport callback

2016-02-05 Thread Alexandre Bounine
Add device-specific implementation of query_mport callback function. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Aurelien Jacquiot Cc: Andre van Herk Cc: linux-kernel@vger.kernel.org --- drivers/rapidio/devices/tsi721.c | 34 ++ 1 files changed, 34

[PATCH 27/30] rapidio/tsi721_dma: update error reporting from prep_sg callback

2016-02-05 Thread Alexandre Bounine
Switch to returning error-valued pointer instead of simple NULL pointer. This allows to properly identify situation when request queue is full and therefore gives to upper layer an option to retry operation later. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Aurelien Jacquiot Cc: Andre

[PATCH 09/30] rapidio: add shutdown notification for RapidIO devices

2016-02-05 Thread Alexandre Bounine
Add bus-specific callback to stop RapidIO devices during a system shutdown. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Aurelien Jacquiot Cc: Andre van Herk Cc: linux-kernel@vger.kernel.org --- drivers/rapidio/rio-driver.c | 12 include/linux/rio.h |2

[PATCH 10/30] rapidio/tsi721: add shutdown notification callback

2016-02-05 Thread Alexandre Bounine
Add device driver specific shutdown notification callback. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Aurelien Jacquiot Cc: Andre van Herk Cc: linux-kernel@vger.kernel.org --- drivers/rapidio/devices/tsi721.c | 15 +++ drivers/rapidio/devices/tsi721.h |3

[PATCH 03/30] rapidio/tsi721: fix hardcoded MRRS setting

2016-02-05 Thread Alexandre Bounine
starting from v3.2. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Aurelien Jacquiot Cc: Andre van Herk Cc: linux-kernel@vger.kernel.org --- drivers/rapidio/devices/tsi721.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/rapidio/devices/tsi721.c b

[PATCH 28/30] rapidio/tsi721_dma: fix synchronization issues

2016-02-05 Thread Alexandre Bounine
incorrect DMA transfer status report Signed-off-by: Alexandre Bounine Reported-by: Barry Wood Tested-by: Barry Wood Cc: Matt Porter Cc: Aurelien Jacquiot Cc: Andre van Herk Cc: Barry Wood Cc: linux-kernel@vger.kernel.org --- drivers/rapidio/devices/tsi721_dma.c | 25

[PATCH 04/30] rapidio/tsi721: add check for overlapped IB window mappings

2016-02-05 Thread Alexandre Bounine
starting from v3.7. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Aurelien Jacquiot Cc: Andre van Herk Cc: linux-kernel@vger.kernel.org --- drivers/rapidio/devices/tsi721.c | 72 +++--- drivers/rapidio/devices/tsi721.h | 11 ++ 2 files changed, 62

[PATCH 23/30] rapidio/tsi721: fix locking in OB_MSG processing

2016-02-05 Thread Alexandre Bounine
message receive queue processing. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Aurelien Jacquiot Cc: Andre van Herk Cc: linux-kernel@vger.kernel.org --- drivers/rapidio/devices/tsi721.c | 42 +++-- 1 files changed, 30 insertions(+), 12 deletions(-) diff

[PATCH 19/30] rapidio: add lock protection for doorbell list

2016-02-05 Thread Alexandre Bounine
Add lock protection around doorbell list handling to prevent list corruption on SMP platforms. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Aurelien Jacquiot Cc: Andre van Herk Cc: linux-kernel@vger.kernel.org --- drivers/rapidio/rio.c |9 ++--- include/linux/rio.h |2

[PATCH 00/30] rapidio: mport character driver and subsystem updates

2016-02-05 Thread Alexandre Bounine
make use of these interfaces in user space. Intensive testing with these applications prompted the RapidIO subsystem updates provided within this set of patches. Alexandre Bounine (28): rapidio/tsi721: fix hardcoded MRRS setting rapidio/tsi721: add check for overlapped IB window mappings

[PATCH 12/30] rapidio: rework common RIO device add/delete routines

2016-02-05 Thread Alexandre Bounine
This patch moves per-net device list handling from rio-scan to common RapidIO core and adds a matching device deletion routine. This makes device object creation/removal available to other implementations of enumeration/discovery process. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc

[PATCH 21/30] rapidio: move rio_pw_enable into core code

2016-02-05 Thread Alexandre Bounine
Make rio_pw_enable() routine available to other RapidIO drivers. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Aurelien Jacquiot Cc: Andre van Herk Cc: linux-kernel@vger.kernel.org --- drivers/rapidio/rio-scan.c | 11 --- drivers/rapidio/rio.c | 19

[PATCH 06/30] rapidio/tsi721_dma: fix pending transaction queue handling

2016-02-05 Thread Alexandre Bounine
Fix pending DMA request queue handling to avoid broken ordering during concurrent request submissions. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Aurelien Jacquiot Cc: Andre van Herk Cc: linux-kernel@vger.kernel.org --- drivers/rapidio/devices/tsi721.h |2 +- drivers

[PATCH 14/30] rapidio: add core mport removal support

2016-02-05 Thread Alexandre Bounine
() have been moved into separate function rio_mport_initialize() to allow to perform mport registration as the final step of setup process. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Aurelien Jacquiot Cc: Andre van Herk Cc: linux-kernel@vger.kernel.org --- drivers/rapidio/rio.c | 98

[PATCH 05/30] rapidio/tsi721: add option to configure direct mapping of IB window

2016-02-05 Thread Alexandre Bounine
to it. This implementation selects RapidIO base address and size for inbound window that are capable to accommodate the local memory buffer. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Aurelien Jacquiot Cc: Andre van Herk Cc: linux-kernel@vger.kernel.org --- drivers/rapidio/devices

[PATCH 07/30] rapidio: add query_mport operation

2016-02-05 Thread Alexandre Bounine
Add mport query operation to report master port RapidIO capabilities and run time configuration to upper level drivers. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Aurelien Jacquiot Cc: Andre van Herk Cc: linux-kernel@vger.kernel.org --- drivers/rapidio/rio.c| 17

[PATCH 25/30] rapidio/tsi721: add outbound windows mapping support

2016-02-05 Thread Alexandre Bounine
Add device-specific callback functions to support outbound windows mapping and release. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Aurelien Jacquiot Cc: Andre van Herk Cc: linux-kernel@vger.kernel.org --- drivers/rapidio/devices/tsi721.c | 222

[PATCH 13/30] rapidio: move net allocation into core code

2016-02-05 Thread Alexandre Bounine
all RapidIO devices residing in it and register net as a child of active mport device. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Aurelien Jacquiot Cc: Andre van Herk Cc: linux-kernel@vger.kernel.org --- drivers/rapidio/rio-scan.c | 98

[PATCH 15/30] rapidio/tsi721: add HW specific mport removal

2016-02-05 Thread Alexandre Bounine
structures. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Aurelien Jacquiot Cc: Andre van Herk Cc: linux-kernel@vger.kernel.org --- drivers/rapidio/devices/tsi721.c | 302 -- drivers/rapidio/devices/tsi721.h |4 +- drivers/rapidio/devices

[PATCH 02/30] rapidio/rionet: add capability to change MTU

2016-02-05 Thread Alexandre Bounine
From: Aurelien Jacquiot Replace default Ethernet-specific routine by the custom one to allow setting of larger MTU supported by RapidIO messaging (max RIO packet size is 4096 bytes). Signed-off-by: Aurelien Jacquiot Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Andre van Herk Cc

[PATCH 22/30] rapidio: add global inbound port write interfaces

2016-02-05 Thread Alexandre Bounine
) while the old interface is available for individual device drivers. This patch is based on patch proposed by Andre van Herk but preserves existing per-device interface and adds lock protection for list handling. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Aurelien Jacquiot Cc: Andre van

[PATCH 11/30] rapidio/rionet: add shutdown event handling

2016-02-05 Thread Alexandre Bounine
Add shutdown notification handler which terminates active connections with remote RapidIO nodes. This prevents remote nodes from sending packets to the powered off node and eliminates hardware error events on remote nodes. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Aurelien Jacquiot

[PATCH 24/30] rapidio: add outbound window support

2016-02-05 Thread Alexandre Bounine
window mapping part has been applied later during tsi721 mport driver submission. Now goes the second part with corresponding HW support. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Li Yang Cc: Aurelien Jacquiot Cc: Andre van Herk Cc: linux-kernel@vger.kernel.org --- drivers/rapidio

[PATCH 01/30] rapidio/rionet: fix deadlock on SMP

2016-02-05 Thread Alexandre Bounine
el versions starting from v2.15. Signed-off-by: Aurelien Jacquiot Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Andre van Herk Cc: linux-kernel@vger.kernel.org Cc: net...@vger.kernel.org --- drivers/net/rionet.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff

[PATCH 30/30] rapidio: add mport char device driver

2016-02-05 Thread Alexandre Bounine
Add mport character device driver to provide user space interface to basic RapidIO subsystem operations. See included Documentation/rapidio/mport_cdev.txt for more details. Signed-off-by: Alexandre Bounine Tested-by: Barry Wood Cc: Matt Porter Cc: Aurelien Jacquiot Cc: Andre van Herk Cc

[PATCH 26/30] rapidio/tsi721: add filtered debug output

2016-02-05 Thread Alexandre Bounine
Replace "all-or-nothing" debug output with controlled debug output using functional block masks. This allows run time control of debug messages through 'dbg_level' module parameter. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Aurelien Jacquiot Cc: Andre van He

[PATCH 16/30] powerpc/fsl_rio: changes to mport registration

2016-02-05 Thread Alexandre Bounine
Change mport object initialization/registration sequence to match reworked version of rio_register_mport() in the core code. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Benjamin Herrenschmidt Cc: Aurelien Jacquiot Cc: Andre van Herk Cc: linux-kernel@vger.kernel.org Cc: linuxppc

[PATCH 29/30] rapidio/tsi721_dma: fix hardware error handling

2016-02-05 Thread Alexandre Bounine
Add DMA channel re-initialization after an error to avoid termination of all pending transfer requests. Signed-off-by: Alexandre Bounine Reported-by: Barry Wood Tested-by: Barry Wood Cc: Matt Porter Cc: Aurelien Jacquiot Cc: Andre van Herk Cc: Barry Wood Cc: linux-kernel@vger.kernel.org

[PATCH 18/30] rapidio/rionet: add mport removal handling

2016-02-05 Thread Alexandre Bounine
ing remote peer addition) satisfies this condition. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Aurelien Jacquiot Cc: Andre van Herk Cc: linux-kernel@vger.kernel.org Cc: net...@vger.kernel.org --- drivers/net/rionet.c | 70 +++-- 1 files c

[PATCH 20/30] rapidio: move rio_local_set_device_id function to the common core

2016-02-05 Thread Alexandre Bounine
Make function rio_local_set_device_id() common for all components of RapidIO subsystem. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Aurelien Jacquiot Cc: Andre van Herk Cc: linux-kernel@vger.kernel.org --- drivers/rapidio/rio-scan.c | 13 - drivers/rapidio/rio.c

[PATCH 1/2] rapidio/tsi721_dma: fix failure to obtain transaction descriptor

2014-07-24 Thread Alexandre Bounine
error is properly returned to a caller instead of an invalid entry. This patch is applicable to kernel versions starting from v3.5. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Andre van Herk Cc: Stef van Os Cc: Vinod Koul Cc: Dan Williams Cc: Cc: --- drivers/rapidio/devices

[PATCH 2/2] rapidio/tsi721_dma: rework scatter-gather list handling

2014-07-24 Thread Alexandre Bounine
meter "dma_desc_per_channel" to allow run-time configuration of Tsi721 hardware buffer descriptor rings. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Andre van Herk Cc: Stef van Os Cc: Vinod Koul Cc: Dan Williams Cc: --- Documentation/rapidio/tsi721.txt | 19 +-

[RESEND PATCH] rapidio: add new RapidIO DMA interface routines

2014-07-23 Thread Alexandre Bounine
access to the RapidIO device list. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Andre van Herk Cc: Stef van Os Cc: linux-kernel@vger.kernel.org Cc: linuxppc-...@lists.ozlabs.org --- drivers/rapidio/rio.c | 66 +++-- include/linux/rio_drv.h | 5

[PATCH v2] rapidio/tsi721: fix tasklet termination in dma channel release

2014-02-26 Thread Alexandre Bounine
but tasklet is disabled. tasklet_kill should be used in this case." This patch is applicable to kernel versions starting from v3.5. v2 - fixes compile error if MSI support (CONFIG_PCI_MSI) is disabled. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Xiaotian Feng Cc: Thomas

[PATCH] rapidio: rework device hierarchy and introduce mport class of devices

2014-02-25 Thread Alexandre Bounine
l RapidIO mport devices and provide device details needed for upper layers. This change to RapidIO device hierarchy does not break any known existing kernel or user space interfaces. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Li Yang Cc: Kumar Gala Cc: Andre van Herk Cc: Stef van Os Cc: J

[PATCH] rapidio/tsi721_dma: optimize use of BDMA descriptors

2014-02-24 Thread Alexandre Bounine
Combine SG entries describing single contiguous memory block into one Tsi721 BDMA descriptor. This reduces number of hardware descriptors required for large data transfers and improves performance on the PCIe side by reducing number of descriptor fetch requests. Signed-off-by: Alexandre Bounine

[PATCH] rapidio/tsi721: fix tasklet termination in dma channel release

2014-02-21 Thread Alexandre Bounine
but tasklet is disabled. tasklet_kill should be used in this case." This patch is applicable to kernel versions starting from v3.5. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Xiaotian Feng Cc: Thomas Gleixner Cc: Mike Galbraith Cc: --- drivers/rapidio/devices/tsi721.h

[PATCH] rapidio: add modular rapidio core build into powerpc and mips branches

2013-12-18 Thread Alexandre Bounine
Allow modular build option for RapidIO subsystem core in MIPS and PowerPC architectural branches. At this moment modular RapidIO subsystem build is enabled only for platforms that use PCI/PCIe based RapidIO controllers (e.g. Tsi721). Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Jean

[PATCH] rapidio: change endpoint device name format

2013-07-03 Thread Alexandre Bounine
es the component tag and does not have other use than in device name generation. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Li Yang Cc: Kumar Gala Cc: Andre van Herk Cc: Micha Nelissen Cc: Stef van Os --- drivers/rapidio/rio-scan.c |5 ++--- include/linux/rio.h|2 --

[PATCH 2/7] rapidio/rionet: rework driver initialization and removal

2013-06-28 Thread Alexandre Bounine
O bus. The reworked rio_remove_dev() and rionet_exit() routines also include handling of individual rionet peer device removal which was not supported before. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Li Yang Cc: Kumar Gala Cc: "David S. Miller" Cc: Andre van Herk Cc:

[PATCH 7/7] rapidio: documentation update

2013-06-28 Thread Alexandre Bounine
Update RapidIO documentation files to reflect modularization changes. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Li Yang Cc: Kumar Gala Cc: Andre van Herk Cc: Micha Nelissen Cc: Stef van Os Cc: Jean Delvare --- Documentation/rapidio/rapidio.txt | 98

[PATCH 5/7] rapidio: add modular build option for the subsystem core

2013-06-28 Thread Alexandre Bounine
; with its module-specific analog "rapidio.hdid=". Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Li Yang Cc: Kumar Gala Cc: Andre van Herk Cc: Micha Nelissen Cc: Stef van Os Cc: Jean Delvare --- arch/x86/Kconfig |4 ++-- drivers/rapidio/Makefile |4 +++- d

[PATCH 4/7] rapidio/tsi721: convert to modular mport driver

2013-06-28 Thread Alexandre Bounine
This patch adds an option to build device driver for Tsi721 PCIe-to-SRIO bridge device as a kernel module. Currently this module cannot be unloaded because the existing RapidIO subsystem code does not support dynamic removal of local RapidIO controllers (TODO). Signed-off-by: Alexandre Bounine

[PATCH 1/7] rapidio: convert switch drivers to modules

2013-06-28 Thread Alexandre Bounine
ation/discovery starts. This patch also moves several common routines from enumeration/discovery module into the RapidIO core code to make switch-specific operations accessible to all components of RapidIO subsystem. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Li Yang Cc: Kumar Gala Cc: Andr

[PATCH 0/7] rapidio: modularize rapidio subsystem

2013-06-28 Thread Alexandre Bounine
enumeration/discovery method. Cc: Matt Porter Cc: Li Yang Cc: Kumar Gala Cc: Andre van Herk Cc: Micha Nelissen Cc: Stef van Os Cc: Jean Delvare Alexandre Bounine (7): rapidio: convert switch drivers to modules rapidio/rionet: rework driver initialization and removal rapidio: update

[PATCH 6/7] rapidio: add udev notification

2013-06-28 Thread Alexandre Bounine
6 bit), ad - Assembly ID (16 bit), as they are reported in corresponding Capability Registers (CARs) of each RapidIO device. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Li Yang Cc: Kumar Gala Cc: Andre van Herk Cc: Micha Nelissen Cc: Stef van Os Cc: Jean Delvare --- drivers/rapidio/ri

[PATCH 3/7] rapidio: update enumerator registration mechanism

2013-06-28 Thread Alexandre Bounine
the best matching mport ID; Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Li Yang Cc: Kumar Gala Cc: Andre van Herk Cc: Micha Nelissen Cc: Stef van Os Cc: Jean Delvare --- drivers/rapidio/rio-scan.c |1 + drivers/rapidio/rio-sysfs.c | 17 + drivers/rapidio/rio.c

[PATCH] rapidio/switches: remove tsi500 driver

2013-05-09 Thread Alexandre Bounine
: Alexandre Bounine Cc: Matt Porter Cc: Li Yang Cc: Kumar Gala --- drivers/rapidio/switches/Kconfig |7 --- drivers/rapidio/switches/Makefile |1 - drivers/rapidio/switches/tsi500.c | 78 - 3 files changed, 0 insertions(+), 86 deletions(-) delete mode

[PATCH] rapidio/tsi721: fix bug in MSI interrupt handling

2013-05-08 Thread Alexandre Bounine
handler routine and re-enabled when exiting it. Re-enabling device interrupts will trigger new MSI message(s) if Tsi721 registered new events since entering interrupt handler routine. This patch is applicable to kernel versions starting from v3.2. Signed-off-by: Alexandre Bounine Cc: Matt Porter

[PATCH v2 1/3] rapidio: make enumeration/discovery configurable

2013-04-30 Thread Alexandre Bounine
as statically linked or modular method. This configuration option is named "Basic enumeration/discovery" method. Several common routines have been moved from rio-scan.c to make them available to other enumeration methods and reduce number of exported symbols. Signed-off-by: Alexandre B

[PATCH v2 2/3] rapidio: add enumeration/discovery start from user space

2013-04-30 Thread Alexandre Bounine
endpoints). Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Li Yang Cc: Kumar Gala Cc: Andre van Herk Cc: Micha Nelissen --- drivers/rapidio/rio-driver.c |1 + drivers/rapidio/rio-scan.c | 24 +++-- drivers/rapidio/rio-sysfs.c | 45

[PATCH v2 0/3] rapidio: changes to enumeration/discovery

2013-04-30 Thread Alexandre Bounine
w module initialization - added default value for "Enumeration method" choice in Kconfig Cc: Matt Porter Cc: Li Yang Cc: Kumar Gala Cc: Andre van Herk Cc: Micha Nelissen Alexandre Bounine (3): rapidio: make enumeration/discovery configurable rapidio: add enumera

[PATCH v2 3/3] rapidio: documentation update for enumeration changes

2013-04-30 Thread Alexandre Bounine
Update RapidIO documentation to reflect changes made to enumeration/discovery build configuration and user space triggering mechanism. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Li Yang Cc: Kumar Gala Cc: Andre van Herk Cc: Micha Nelissen --- Documentation/rapidio/rapidio.txt

[PATCH 2/3] rapidio: add enumeration/discovery start from user space

2013-04-24 Thread Alexandre Bounine
endpoints). For compatibility with the existing RapidIO subsystem implementation, automatic boot time enumeration/discovery start can be configured in by selecting CONFIG_RAPIDIO_ENUM_AUTO option. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Li Yang Cc: Kumar Gala Cc: Andre van Herk Cc

[PATCH 1/3] rapidio: make enumeration/discovery configurable

2013-04-24 Thread Alexandre Bounine
updated to be used as built-in or modular method. This configuration option is named "Basic enumeration/discovery" method. Several common routines have been moved from rio-scan.c to make them available to other enumeration methods and reduce number of exported symbols. Signed-off-by:

[PATCH 0/3] rapidio: changes to enumeration/discovery

2013-04-24 Thread Alexandre Bounine
a Nelissen Alexandre Bounine (3): rapidio: make enumeration/discovery configurable rapidio: add enumeration/discovery start from user space rapidio: documentation update for enumeration changes Documentation/rapidio/rapidio.txt | 137 -- Documentation/rapidio/sysfs.tx

[PATCH 3/3] rapidio: documentation update for enumeration changes

2013-04-24 Thread Alexandre Bounine
Update RapidIO documentation to reflect changes made to enumeration/discovery build configuration and user space triggering mechanism. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Li Yang Cc: Kumar Gala Cc: Andre van Herk Cc: Micha Nelissen --- Documentation/rapidio/rapidio.txt

[PATCH 1/3] rapidio: use msleep in discovery wait

2012-10-09 Thread Alexandre Bounine
Use msleep() routine for code clarity as suggested by Andrew Morton in his comments for the original patch: https://lkml.org/lkml/2012/10/3/546. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Li Yang --- drivers/rapidio/rio-scan.c |2 +- 1 files changed, 1 insertions(+), 1 deletions

[PATCH 3/3] rapidio: update for destination ID allocation

2012-10-09 Thread Alexandre Bounine
: Alexandre Bounine Cc: Matt Porter Cc: Li Yang --- drivers/rapidio/rio-scan.c | 38 -- include/linux/rio.h|1 - 2 files changed, 16 insertions(+), 23 deletions(-) diff --git a/drivers/rapidio/rio-scan.c b/drivers/rapidio/rio-scan.c index 05f0ed9

[PATCH 0/3] rapidio: updates for multiple mport patches

2012-10-09 Thread Alexandre Bounine
This is a set of updates for patches submitted earlier: https://lkml.org/lkml/2012/10/3/460. Alexandre Bounine (3): rapidio: use msleep in discovery wait rapidio: update asynchronous discovery initialization rapidio: update for destination ID allocation drivers/rapidio/rio-scan.c | 40

[PATCH 2/3] rapidio: update asynchronous discovery initialization

2012-10-09 Thread Alexandre Bounine
y, it abandons discovery for all ports. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Li Yang --- drivers/rapidio/rio.c | 75 ++-- 1 files changed, 47 insertions(+), 28 deletions(-) diff --git a/drivers/rapidio/rio.c b/drivers/rapidio/rio.c

[PATCH 3/5] rapidio: run discovery as an asynchronous process

2012-10-03 Thread Alexandre Bounine
discovering one. Making netID matching to mportID ensures consistent net ID assignment in multiport RapidIO systems with asynchronous discovery process (global counter implementation is affected by race between threads). Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Li Yang --- drivers/rapidio

[PATCH 4/5] rapidio/rionet: rework to support multiple RIO master ports

2012-10-03 Thread Alexandre Bounine
Make RIONET driver multi-net safe/capable by introducing per-net lists of RapidIO network peers. Rework registration of network adapters to support all available RIO master port devices. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Li Yang Cc: David S. Miller --- drivers/net/rionet.c

[PATCH 1/5] rapidio: fix blocking wait for discovery ready

2012-10-03 Thread Alexandre Bounine
Fix blocking wait loop in the RapidIO discovery routine to avoid warning dumps about stalled CPU on x86 platforms. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Li Yang --- drivers/rapidio/rio-scan.c | 62 ++- 1 files changed, 20 insertions

[PATCH 0/5] rapidio: patches to support multiple master ports

2012-10-03 Thread Alexandre Bounine
gement for each available RapidIO network. Using bitmap based mechanism instead of counters allows destination ID release and reuse in systems that support hot-swap. Alexandre Bounine (5): rapidio: fix blocking wait for discovery ready rapidio: use device lists handling on per-net basis rap

[PATCH 2/5] rapidio: use device lists handling on per-net basis

2012-10-03 Thread Alexandre Bounine
performs as expected. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Li Yang --- drivers/rapidio/rio-scan.c | 60 ++- include/linux/rio.h|1 + 2 files changed, 32 insertions(+), 29 deletions(-) diff --git a/drivers/rapidio/rio-scan.c b

[PATCH 5/5] rapidio: add destination ID allocation mechanism

2012-10-03 Thread Alexandre Bounine
: Alexandre Bounine Cc: Matt Porter Cc: Li Yang --- drivers/rapidio/rio-scan.c | 205 include/linux/rio.h|9 ++ 2 files changed, 179 insertions(+), 35 deletions(-) diff --git a/drivers/rapidio/rio-scan.c b/drivers/rapidio/rio-scan.c index

[PATCH] rapidio/rionet: fix multicast packet transmit logic

2012-09-26 Thread Alexandre Bounine
routine during multicast transfers in systems with three or more rionet participants). Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: David S. Miller Cc: net...@vger.kernel.org --- drivers/net/rionet.c | 20 +--- 1 files changed, 17 insertions(+), 3 deletions(-) diff

[PATCH RESEND] rapidio: apply RX/TX enable to active switch ports only

2012-09-18 Thread Alexandre Bounine
reset state for these bits. This patch ensures that TX/RX enable action is applied only to active switch's ports while preserving an initial state of inactive ones. Signed-off-by: Alexandre Bounine Cc: Matt Porter --- RESEND: Initial submission of this patch was dropped due to feedback co

[PATCH 1/2] rapidio: add inbound memory mapping interface

2012-09-18 Thread Alexandre Bounine
engine support. This patch is based on patch submitted by Li Yang (https://lists.ozlabs.org/pipermail/linuxppc-dev/2009-April/071210.html) Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Li Yang Cc: Kumar Gala --- drivers/rapidio/rio.c | 44

  1   2   >