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] Signed-off

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] Signed-off

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

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

Re: [PATCH] rapidio: fix rio_dma_transfer error handling

2018-04-12 Thread Alexandre Bounine
in rio_dma_transfer() immediately after the request structure gets allocated. Signed-off-by: Ioan Nicu <ioan.nicu@nokia.com> --- drivers/rapidio/devices/rio_mport_cdev.c | 19 +-- 1 file changed, 9 insertions(+), 10 deletions(-) Acked-by: Alexandre Bounine <alex.b...@gmail.com>

Re: [PATCH] rapidio: fix rio_dma_transfer error handling

2018-04-12 Thread Alexandre Bounine
in 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 <barry.w...@idt.com> Signed-off-by: Alexandre Bounine <alex.b...@gmail.com> --- 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 +

[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
tected code. Reported-by: Alexey Khoroshilov <khoroshi...@ispras.ru> Cc: Alexey Khoroshilov <khoroshi...@ispras.ru> Cc: linux-kernel@vger.kernel.org Signed-off-by: Alexandre Bounine <alexandre.boun...@idt.com> --- drivers/rapidio/rio_cm.c | 20 +--- 1 file chan

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

2016-09-15 Thread Alexandre Bounine
-by: 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
off-by: Alexandre Bounine <alexandre.boun...@idt.com> Cc: Matt Porter <mpor...@kernel.crashing.org> Cc: Andre van Herk <andre.van.h...@prodrive-technologies.com> Cc: Barry Wood <barry.w...@idt.com> Cc: linux-kernel@vger.kernel.org --- drivers/rapidio/devices/tsi721.c |

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

2016-09-01 Thread Alexandre Bounine
off-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 <alexandre.boun...@idt.com> Cc: Matt Porter <mpor...@kernel.crashing.org> Cc: Michael

[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 <alexandre.boun...@idt.com> Cc: Matt Porter <mpor...@kernel.crashing.org> Cc: Michael Ellerman <m...@ellerman.id.au> Cc:

[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 <alexandre.boun..

[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 Porter

[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 <alexandre.boun...@idt.com> Tested-by: Barry Wood <barry.w...@idt.com> Cc: Matt Porter <mpor...@kernel.crashing.org> Cc: Andre van Herk <andre.van.h...@prodrive-techno

[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 <alexandre.boun...@idt.com> Cc: Matt Porter <mpor...@kernel.crashing.org> Cc: Benjamin Herrenschmidt <b...@kernel.crashing.org> Cc: Michael Ellerman <m...@ellerman.id.au> Cc: Andre van Herk <andre.van.h...@prodrive-techn

[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 <alexandre.boun...@idt.com> Cc: Matt Porter <mpor...@kernel.crashing.org> Cc: Andre van Herk <andre.van.h...@prodrive-technologies.com&

[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 <alexandre.boun...@idt.com> Tested-by: Barry Wood <barry.w...@idt.com> Cc: Matt Porter <mpor...@kernel.crashing.org> Cc: Andre van Herk <andre.van.h...@prodrive-technologie

[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 <alexandre.boun...@idt.com> Cc: Matt Porter <mpor...@kernel.crashing.org> Cc: Benjamin Herrenschmidt <b...@kernel.crashing.org> Cc: Michael Ellerman <m...@ellerman.id.a

[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 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 <alexandre.boun...@idt.com> Cc: Matt Porter

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

2016-07-21 Thread Alexandre Bounine
-by: Alexandre Bounine <alexandre.boun...@idt.com> Tested-by: Barry Wood <barry.w...@idt.com> Cc: Matt Porter <mpor...@kernel.crashing.org> Cc: Andre van Herk <andre.van.h...@prodrive-technologies.com> Cc: Barry Wood <barry.w...@idt.com> Cc: linux-kernel@vger.kernel.org ---

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

2016-07-21 Thread Alexandre Bounine
-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.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 <alexandre.boun...@idt.com> Cc: Matt Porter

[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 <alexandre.boun...@idt.com> Reported-by: Barry Wood <barry.w...@idt.com> Cc: Matt Porter <mpor...@kernel.crashing.org> Cc: Andre van

[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 <alexandre.boun...@idt.com> Cc: Matt Porter <mpor...@kernel.crashin

[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 <alexandre.boun...@idt.com> Tested-by: Barry Wood <barry.w...@idt.com> Cc: Matt Porter <mpor...@kernel.crashing.org>

[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: Barry Wood Cc

[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 01/13] rapidio: Remove unnecessary 0x prefixes before %pa extension uses

2016-07-21 Thread Alexandre Bounine
refix. These 0x prefixes in the formats are unnecessary. Signed-off-by: Joe Perches <j...@perches.com> Signed-off-by: Alexandre Bounine <alexandre.boun...@idt.com> Cc: Matt Porter <mpor...@kernel.crashing.org> Cc: Andre van Herk <andre.van.h...@prodrive-technologies.com> Cc: B

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

2016-07-21 Thread Alexandre Bounine
. Signed-off-by: Alexandre Bounine <alexandre.boun...@idt.com> Cc: Matt Porter <mpor...@kernel.crashing.org> Cc: Andre van Herk <andre.van.h...@prodrive-technologies.com> Cc: Barry Wood <barry.w...@idt.com> Cc: linux-kernel@vger.kernel.org --- drivers/rapidio/rio.c |8

[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 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
x prefixes 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 <alexandre.boun...@idt.com> Tested-by: Barry Wood <barry.w...@idt.com> Cc: Ma

[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 <alexandre.boun...@idt.com> Reported-by: Gabriel Laskar <gabr...@lse.epita.fr> Tested-by: Barry Wood <barry.w...@idt.com> Cc: Gabriel Laskar <gabr...@lse.epita.fr> Cc: Matt Porter <mpor...@kernel.crashing.org> Cc: Aureli

[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
-by: Alexandre Bounine <alexandre.boun...@idt.com> Tested-by: Barry Wood <barry.w...@idt.com> Cc: Matt Porter <mpor...@kernel.crashing.org> Cc: Aurelien Jacquiot <a-jacqu...@ti.com> Cc: Andre van Herk <andre.van.h...@prodrive-technologies.com> Cc: Barry Wood <bar

[PATCH] rapidio: add RapidIO channelized messaging driver

2016-03-21 Thread Alexandre Bounine
-by: 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 <alexandre.boun...@idt.com> Reported-by: Randy Dunlap <rdun...@infradead.org> Cc: Randy Dunlap <rdun...@infradead.org> Cc: Matt Porter <mpor...@ke

[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 <alexandre.boun...@idt.com> Reported-by: Stephen Rothwell <s...@canb.auug.org.au> Cc: Randy Dunlap <rdun...@infradead.org> Cc:

[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] 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 <alexandre.boun...@idt.com> Cc: Matt Porter <mpor...@kernel.crashing.org>

[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

[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
in 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
of 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
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 --git a/drivers/net

[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 Herk Cc: li

[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
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 changed, 44

[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 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 <alexandre.boun...@idt.com> Cc: Matt Porter <mpor...@kernel.crashing.org> Cc: Benjamin Herrenschmidt <b...@kernel.c

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

2016-02-05 Thread Alexandre Bounine
peer addition) satisfies this condition. Signed-off-by: Alexandre Bounine <alexandre.boun...@idt.com> Cc: Matt Porter <mpor...@kernel.crashing.org> Cc: Aurelien Jacquiot <a-jacqu...@ti.com> Cc: Andre van Herk <andre.van.h...@prodrive-technologies.com> Cc: linux-kernel

[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 <alexandre.boun...@idt.com> Reported-by: Barry Wood <barry.w...@idt.com> Tested-by: Barry Wood <barry.w...@idt.com> Cc: Matt Porter <mpor..

[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 <alexandre.boun...@idt.com> Tested-by: Barry Wood <barry.w...@idt.com> 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 <alexandre.boun...@idt.com> Cc: Matt Porter <mpor...@kern

[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 <alexandre.boun...@idt.com> Cc: Matt Porter <mpor...@kernel.crashing.org> Cc: Li Yang <le...@freescale.com> Cc:

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

2016-02-05 Thread Alexandre Bounine
icable to kernel versions starting from v2.15. Signed-off-by: Aurelien Jacquiot <a-jacqu...@ti.com> Signed-off-by: Alexandre Bounine <alexandre.boun...@idt.com> Cc: Matt Porter <mpor...@kernel.crashing.org> Cc: Andre van Herk <andre.van.h...@prodrive-technologies.com> Cc: linux-

[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 <alexandre.boun...@idt.com> Cc: Matt Porter <mpor...@kernel.crashing.org> Cc: Aurelien Jacquiot <a-jacqu...@ti.com> Cc: Andre van Herk <andre.van.h...@prod

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

2016-02-05 Thread Alexandre Bounine
From: Aurelien Jacquiot <a-jacqu...@ti.com> 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 <a-jacqu...@ti.com> Signed-off-by: Alexa

[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 <alexandre.boun...@idt.com> Cc: Matt Porter

[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 <alexandre.boun...@idt.com> Cc

  1   2   3   >