[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 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 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] 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] 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 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 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 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 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 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 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 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] 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 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 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 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: 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:

[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-ker...@vger.kernel.org Cc: linuxppc-dev@lists.ozlabs.org --- drivers/rapidio/rio.c | 66 +++-- include/linux/rio_drv.h | 5

[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/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: 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 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-ker...@vger.kernel.org Cc: linuxppc-dev

[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 -mm] RapidIO: Tsi721 driver - fixes for the initial release

2011-09-06 Thread Alexandre Bounine
- address comments made by Andrew Morton, see http://marc.info/?l=linux-kernel&m=131361256714116&w=2 - add spinlock for IB_MSG handler - rename private BDMA channel structure to avoid conflict with DMA engine - fix endianess bug in outbound message interrupt handler Signed-off-by: A

[PATCH] RapidIO: fix potential null deref in rio_setup_device()

2011-09-06 Thread Alexandre Bounine
The "goto cleanup" path can deference "rswitch" when it is NULL. Reported-by: Dan Carpenter Signed-off-by: Alexandre Bounine Cc: Dan Carpenter Cc: Kumar Gala Cc: Matt Porter Cc: Chul Kim --- drivers/rapidio/rio-scan.c |2 +- 1 files changed, 1 insertions(+), 1 dele

[PATCH] RapidIO, rionet: Fix ethernet address macros for LE platforms

2011-09-06 Thread Alexandre Bounine
Modify Ethernet addess macros to be compatible with BE/LE platforms (applicable to kernel versions starting from 2.6.39). Signed-off-by: Alexandre Bounine Cc: Chul Kim Cc: Kumar Gala Cc: Matt Porter Cc: Li Yang --- drivers/net/rionet.c |4 ++-- 1 files changed, 2 insertions(+), 2

[PATCH] RapidIO: documentation update

2011-09-15 Thread Alexandre Bounine
Update rapidio.txt to reflect changes from recent patch. See http://marc.info/?l=linux-kernel&m=131285620113589&w=2 for details. Signed-off-by: Alexandre Bounine Cc: Liu Gang --- Documentation/rapidio/rapidio.txt |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff

[RFC PATCH 1/2] RapidIO: Add DMA Engine support for RIO data transfers

2011-09-30 Thread Alexandre Bounine
only for a remote side. Signed-off-by: Alexandre Bounine Cc: Vinod Koul Cc: Kumar Gala Cc: Matt Porter Cc: Li Yang --- drivers/dma/dmaengine.c |4 ++ drivers/rapidio/Kconfig |6 +++ drivers/rapidio/rio.c | 79 + include/linux

[RFC PATCH 2/2 -mm] RapidIO: TSI721 Add DMA Engine support

2011-09-30 Thread Alexandre Bounine
Adds support for DMA Engine API. Includes following changes: - Modifies BDMA register offset definitions to support per-channel handling - Separates BDMA channel reserved for RIO Maintenance requests - Adds DMA Engine callback routines Signed-off-by: Alexandre Bounine Cc: Vinod Koul Cc: Kumar

[PATCH] rapidio/tsi721: switch to dma_zalloc_coherent

2011-12-05 Thread Alexandre Bounine
Replaces pair dma_alloc_coherent()+memset() with new dma_zalloc_coherent() added by Andrew Morton for kernel version 3.2 Signed-off-by: Alexandre Bounine --- drivers/rapidio/devices/tsi721.c | 17 - 1 files changed, 4 insertions(+), 13 deletions(-) diff --git a/drivers

[PATCH] rapidio/tsi721: modify PCIe capability settings

2011-12-06 Thread Alexandre Bounine
Change Completion Timeout Value to avoid data transfer aborts during intensive data transfers. Remove hardcoded offset for PCIe capability registers. Signed-off-by: Alexandre Bounine --- drivers/rapidio/devices/tsi721.c | 20 +++- drivers/rapidio/devices/tsi721.h |2 ++ 2

[PATCH] rapidio/tsi721: Fix mailbox resource reporting

2011-12-06 Thread Alexandre Bounine
Report support of four RapidIO mailboxes (MBOX0 - MBOX3) instead of MBOX0 only. Signed-off-by: Alexandre Bounine --- drivers/rapidio/devices/tsi721.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/rapidio/devices/tsi721.c b/drivers/rapidio/devices/tsi721.c

[PATCH RESEND] rapidio/tsi721: Fix mailbox resource reporting

2011-12-07 Thread Alexandre Bounine
versions staring from 3.2-rc1. Signed-off-by: Alexandre Bounine --- [Resending this patch with updated commit comment] drivers/rapidio/devices/tsi721.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/rapidio/devices/tsi721.c b/drivers/rapidio/devices/tsi721.c

[PATCH RESEND] rapidio/tsi721: modify PCIe capability settings

2011-12-07 Thread Alexandre Bounine
to kernel versions starting from 3.2-rc1. Signed-off-by: Alexandre Bounine --- [Resending this patch with updated commit comment] drivers/rapidio/devices/tsi721.c | 20 +++- drivers/rapidio/devices/tsi721.h |2 ++ 2 files changed, 17 insertions(+), 5 deletions(-) diff

[RFC] dmaengine/dma_slave: add context parameter to prep_slave_sg callback

2012-01-26 Thread Alexandre Bounine
does not include corresponding changes to existing DMA_SLAVE clients. Complete set of patches will be provided after (if) this API change is accepted. Signed-off-by: Alexandre Bounine Cc: Jassi Brar Cc: Russell King Cc: Kumar Gala Cc: Matt Porter Cc: Li Yang --- include/linux/dmaengine.h

[PATCH] rapidio/tsi721: fix inbound doorbell interrupt handling

2012-08-15 Thread Alexandre Bounine
transfers may finish with "destination unreachable" error message. This patch is applicable to kernel versions starting from v3.2. Signed-off-by: Alexandre Bounine Cc: Matt Porter --- drivers/rapidio/devices/tsi721.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) di

[PATCH] rapidio/tsi721: fix unused variable compiler warning

2012-08-15 Thread Alexandre Bounine
Fix unused variable compiler warning when built with CONFIG_RAPIDIO_DEBUG option off. This patch is applicable to kernel versions starting from v3.2 Signed-off-by: Alexandre Bounine Cc: Matt Porter --- drivers/rapidio/devices/tsi721.c |5 - 1 files changed, 4 insertions(+), 1

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

2012-08-21 Thread Alexandre Bounine
Modify RIO enumeration to apply RX/TX enable operations only to active switch ports. This will leave inactive ports in condition consistent with their state. This patch is applicable to kernel versions starting from v2.6.35. Signed-off-by: Alexandre Bounine Cc: Matt Porter --- drivers/rapidio

[PATCH] rapidio/tsi721: modify mport name assignment

2012-08-21 Thread Alexandre Bounine
Modify mport device name assignment to provide clear reference to devices in systems with multiple Tsi721 bridges. This patch is applicable to kernel versions starting from v3.2. Signed-off-by: Alexandre Bounine Cc: Matt Porter --- drivers/rapidio/devices/tsi721.c |3 ++- include/linux

[PATCH] rapidio: fix kerneldoc warnings after DMA support was added

2012-09-14 Thread Alexandre Bounine
Signed-off-by: Alexandre Bounine Reported-by: Robert P. J. Day Cc: Robert P. J. Day --- include/linux/rio.h |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/include/linux/rio.h b/include/linux/rio.h index 1a7b6c7..ba382f2 100644 --- a/include/linux/rio.h +++ b/include

[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

[PATCH 0/2] rapidio: add inbound memory mapping API

2012-09-18 Thread Alexandre Bounine
en devices connected to a RapidIO network. Cc: Matt Porter Cc: Li Yang Cc: Kumar Gala --- Alexandre Bounine (2): rapidio: add inbound memory mapping interface rapidio/tsi721: add inbound memory mapping callbacks drivers/rapidio/devices/tsi721.c | 88 +

[PATCH 2/2] rapidio/tsi721: add inbound memory mapping callbacks

2012-09-18 Thread Alexandre Bounine
Add Tsi721 routines to support RapidIO subsystem's inbound memory mapping interface (RapidIO to system's local memory). Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Li Yang Cc: Kumar Gala --- drivers/rapidio/devices/tsi721.c | 88 +

[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] 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 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 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 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 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 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 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] rapidio/tsi721: fix bug in inbound doorbell handler

2012-03-05 Thread Alexandre Bounine
Fixes queue wrapping bug in Inbound Doorbell handling routine. Signed-off-by: Alexandre Bounine Cc: Chul Kim Cc: Matt Porter --- This patch is applicable to kernel version 3.2 and after. drivers/rapidio/devices/tsi721.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff

[PATCH V2 1/2] rapidio: add DMA engine support for RIO data transfers

2012-03-26 Thread Alexandre Bounine
scatterlist to describe local data buffer. Address flat data buffer on a remote side. Signed-off-by: Alexandre Bounine --- This patch is applicable to linux-next-20120326 and after. v2: Uses updated DMA engine prep_slave_sg() interface. See https://lkml.org/lkml/2012/3/8/373 for more details

[PATCH V2 2/2] rapidio/tsi721: add DMA engine support

2012-03-26 Thread Alexandre Bounine
: Alexandre Bounine --- This patch is applicable to linux-next-20120326 and after. v2: Address review comments, Switched to use dma_zalloc_coherent, Switched to use dma_transfer_direction enumerator, Uses updated prep_slave_sg() interface. drivers/rapidio/devices/Makefile |3

[PATCH -mm] RapidIO: fix IDLE2 bits corruption

2010-10-01 Thread Alexandre Bounine
RapidIO spec v.2.1 adds Idle Sequence 2 into LP-Serial Physical Layer. The fix ensures that corresponding bits are not corrupted during error handling. Signed-off-by: Alexandre Bounine Cc: Thomas Moll Cc: Matt Porter Cc: Li Yang Cc: Kumar Gala Cc: Micha Nelissen --- drivers/rapidio/rio.c

[PATCH -mm 1/2] RapidIO: Fix maximum port number in tsi57x EM initialization

2010-10-18 Thread Alexandre Bounine
Replace hardcoded maximum port number with actual reported number of switch ports. Signed-off-by: Alexandre Bounine Cc: Kumar Gala Cc: Matt Porter Cc: Li Yang Cc: Thomas Moll Cc: Micha Nelissen --- drivers/rapidio/switches/tsi57x.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions

[PATCH -mm 2/2] RapidIO: Fix destructive port EM initialization for Tsi568

2010-10-18 Thread Alexandre Bounine
Replaces possibly damaging broadcast writes into the per-port SP_MODE registers with individual writes for each port. This will preserve individual port configurations in case if ports are configured differently. Signed-off-by: Alexandre Bounine Cc: Kumar Gala Cc: Matt Porter Cc: Li Yang Cc

[PATCH -mm 0/2] RapidIO: Changes to handling of RIO switches

2010-10-21 Thread Alexandre Bounine
devices with added space for switch information simplifies handling of RIO switch device objects. Alexandre Bounine (2): RapidIO: Use common destid storage for endpoints and switches RapidIO: Integrate rio_switch into rio_dev drivers/rapidio/rio-scan.c | 139

[PATCH -mm 2/2] RapidIO: Integrate rio_switch into rio_dev

2010-10-21 Thread Alexandre Bounine
RIO switch devices. Signed-off-by: Alexandre Bounine Cc: Kumar Gala Cc: Matt Porter Cc: Li Yang Cc: Thomas Moll Cc: Micha Nelissen --- drivers/rapidio/rio-scan.c | 59 +-- drivers/rapidio/rio-sysfs.c |4 +- include/linux/rio.h | 82

[PATCH -mm 1/2] RapidIO: Use common destid storage for endpoints and switches

2010-10-21 Thread Alexandre Bounine
. Signed-off-by: Alexandre Bounine Cc: Kumar Gala Cc: Matt Porter Cc: Li Yang Cc: Thomas Moll Cc: Micha Nelissen --- drivers/rapidio/rio-scan.c | 84 --- drivers/rapidio/rio.c | 74 --- drivers/rapidio/switches

[PATCH -mm 2/4] RapidIO: Add device object linking into discovery

2010-12-10 Thread Alexandre Bounine
Add setting links between rio_dev objects into the discovery process. This needed to report device connections on agent (non-host) processors that perform RIO discovery. Originally, these links have been introduced for enumerating host only to support error management. Signed-off-by: Alexandre

[PATCH -mm 4/4] RapidIO: Add new sysfs attributes

2010-12-10 Thread Alexandre Bounine
) Signed-off-by: Alexandre Bounine Cc: Kumar Gala Cc: Matt Porter Cc: Li Yang Cc: Thomas Moll Cc: Micha Nelissen --- drivers/rapidio/rio-sysfs.c | 39 ++- 1 files changed, 38 insertions(+), 1 deletions(-) diff --git a/drivers/rapidio/rio-sysfs.c b/drivers

[PATCH -mm 0/4] RapidIO: Misc updates

2010-12-10 Thread Alexandre Bounine
The following four patches are follow-up to two RapidIO patches that are in the -mm tree now. Alexandre Bounine (4): RapidIO: Add definitions of Component Tag fields RapidIO: Add device object linking into discovery RapidIO: Use Component Tag for unified switch identification RapidIO: Add

[PATCH -mm 1/4] RapidIO: Add definitions of Component Tag fields

2010-12-10 Thread Alexandre Bounine
endpoints in large RIO network (16-bit id) plus switches. Signed-off-by: Alexandre Bounine Cc: Kumar Gala Cc: Matt Porter Cc: Li Yang Cc: Thomas Moll Cc: Micha Nelissen --- drivers/rapidio/rio.c |2 +- include/linux/rio.h | 10 ++ 2 files changed, 11 insertions(+), 1

[PATCH -mm 3/4] RapidIO: Use Component Tag for unified switch identification

2010-12-10 Thread Alexandre Bounine
with unique portion of the Component Tag provides unified reference to the switch by every processor in the system. Signed-off-by: Alexandre Bounine Cc: Kumar Gala Cc: Matt Porter Cc: Li Yang Cc: Thomas Moll Cc: Micha Nelissen --- drivers/rapidio/rio-scan.c | 10 +- 1 files changed, 5

[PATCH] RapidIO: Add new IDT sRIO switches

2010-12-10 Thread Alexandre Bounine
Add new sRIO switch device IDs and enable a basic support for them. Signed-off-by: Alexandre Bounine Cc: Kumar Gala Cc: Matt Porter Cc: Li Yang Cc: Thomas Moll Cc: Micha Nelissen --- drivers/rapidio/switches/idt_gen2.c |2 ++ include/linux/rio_ids.h |2 ++ 2 files

[PATCH] rapidio: Fix sysfs config attribute to access 16MB of maint space

2011-02-25 Thread Alexandre Bounine
Fixes sysfs config attribute to allow access to entire 16MB maintenance space of RapidIO devices. Signed-off-by: Alexandre Bounine Cc: Kumar Gala Cc: Matt Porter Cc: Li Yang Cc: Thomas Moll Cc: Micha Nelissen --- drivers/rapidio/rio-sysfs.c | 12 ++-- include/linux/rio_regs.h

[PATCH -mm V2] rapidio: Add new sysfs attributes

2011-02-25 Thread Alexandre Bounine
) Signed-off-by: Alexandre Bounine Cc: Kumar Gala Cc: Matt Porter Cc: Li Yang Cc: Thomas Moll Cc: Micha Nelissen --- Documentation/rapidio/sysfs.txt | 17 +-- drivers/rapidio/rio-sysfs.c | 41 ++- 2 files changed, 54 insertions(+), 4

[PATCH 0/5] RapidIO: configuration and initialization changes

2011-02-28 Thread Alexandre Bounine
This set of patches eliminates RapidIO dependency on PowerPC architecture and makes it available to other architectures (x86 and MIPS). It also enables support of new platform independent RapidIO controllers such as PCI-to-SRIO and PCI Express-to-SRIO. Alexandre Bounine (5): RapidIO: Add

[PATCH 1/5] RapidIO: Add architecture specific callbacks

2011-02-28 Thread Alexandre Bounine
Extend number of mport callback functions to eliminate direct linking of architecture specific mport operations. Signed-off-by: Alexandre Bounine --- arch/powerpc/sysdev/fsl_rio.c | 52 +--- drivers/rapidio/rio.c | 38

[PATCH 3/5] RapidIO: Modify subsystem and driver initialization sequence

2011-02-28 Thread Alexandre Bounine
Subsystem initialization sequence modified to support presence of multiple RapidIO controllers in the system. The new sequence is compatible with initialization of PCI devices. Signed-off-by: Alexandre Bounine --- arch/powerpc/sysdev/fsl_rio.c | 10 +- drivers/net/rionet.c

[PATCH 4/5] RapidIO: Modify mport ID assignment

2011-02-28 Thread Alexandre Bounine
Changes mport ID and host destination ID assignment to implement unified method common to all mport drivers. Makes "riohdid=" kernel command line parameter common for all architectures with support for more that one host destination ID assignment. Signed-off-by: Alexandre Bounine

[PATCH 5/5] RapidIO: remove mport resource reservation from common RIO code

2011-02-28 Thread Alexandre Bounine
Removes resource reservation from the common sybsystem initialization code and make it part of mport driver initialization. This resolves conflict with resource reservation by device specific mport drivers. Signed-off-by: Alexandre Bounine --- arch/powerpc/sysdev/fsl_rio.c |9

[PATCH 2/5] RapidIO: Modify configuration to support PCI-SRIO controller

2011-02-28 Thread Alexandre Bounine
1. Add an option to include RapidIO support if the PCI is available. 2. Add FSL_RIO configuration option to enable controller selection. 3. Add RapidIO support option into x86 and MIPS architectures. Signed-off-by: Alexandre Bounine --- arch/mips/Kconfig| 10 ++ arch

[PATCH] RapidIO: Update MAINTAINERS

2011-03-03 Thread Alexandre Bounine
Signed-off-by: Alexandre Bounine Cc: Matt Porter --- MAINTAINERS |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 6f99e12..f9630d6 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -5164,6 +5164,7 @@ F:drivers/char/random.c RAPIDIO

[PATCH -mm] RapidIO,powerpc/85xx: Fix configuration option

2011-03-18 Thread Alexandre Bounine
Follows set of patches in -mm tree. Replaces configuration option missed in previous patches. Signed-off-by: Alexandre Bounine --- arch/powerpc/kernel/cpu_setup_fsl_booke.S |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/kernel/cpu_setup_fsl_booke.S b

[PATCH 2/7] RapidIO: Add switch locking during discovery

2010-02-24 Thread Alexandre Bounine
From: Alexandre Bounine Add switch access locking during RapidIO discovery. Access lock is required when reading switch routing table contents due to indexed mechanism of RT addressing. Signed-off-by: Alexandre Bounine Tested-by: Thomas Moll --- rio-scan.c | 88

[PATCH 3/7] RapidIO: Add Port-Write handling for EM

2010-02-24 Thread Alexandre Bounine
From: Alexandre Bounine Add RapidIO Port-Write message handling in the context of Error Management Extensions Specification Rev.1.3. Signed-off-by: Alexandre Bounine Tested-by: Thomas Moll --- drivers/rapidio/rio-scan.c| 197 +++- drivers/rapidio/rio.c

[PATCH 4/7] powerpc/85xx: Add Port-Write message handler for SRIO port

2010-02-24 Thread Alexandre Bounine
From: Alexandre Bounine Add RapidIO Port-Write message handler for Freescale SoCs with RapidIO port. Signed-off-by: Alexandre Bounine Tested-by: Thomas Moll --- fsl_rio.c | 263 +- 1 files changed, 260 insertions(+), 3 deletions

[PATCH 5/7] powerpc/85xx: Add MChk handler for SRIO port

2010-02-24 Thread Alexandre Bounine
From: Alexandre Bounine Add Machine Check exception handling into RapidIO port driver for Freescale SoCs (MPC85xx). Signed-off-by: Alexandre Bounine Tested-by: Thomas Moll --- fsl_rio.c | 74 ++ 1 files changed, 70 insertions

[PATCH 6/7] RapidIO: Add RX/TX enable for SRIO port

2010-02-24 Thread Alexandre Bounine
From: Thomas Moll Add the functionality to enable Input receiver and Output transmitter of every port, to allow non-maintenance traffic. Signed-off-by: Thomas Moll --- drivers/rapidio/Kconfig| 11 ++ drivers/rapidio/rio-scan.c | 79 - i

[PATCH 1/7] RapidIO: Add IDT CPS/TSI switches

2010-02-24 Thread Alexandre Bounine
From: Alexandre Bounine Extentions to RapidIO switch support: 1. modify switch route operation declarations to allow using single switch-specific file for family of switches that share the same route table operations. 2. add standard route table operations for switches that that support

[PATCH 7/7] powerpc/85xx: Fix the RapidIO maintenance access functions

2010-02-24 Thread Alexandre Bounine
From: Thomas Moll Fix the maintenance access functions to farend RapidIO devices. 1. Fixed shift of the given offset, to open the maintenance window 2. Mask offset to limit access to the opened maintenance window 3. Added extended destid part to rowtear register, required for 16bit mode For eas

[PATCH v2 3/7] RapidIO: Add Port-Write handling for EM

2010-03-08 Thread Alexandre Bounine
From: Alexandre Bounine Add RapidIO Port-Write message handling in the context of Error Management Extensions Specification Rev.1.3. Signed-off-by: Alexandre Bounine Tested-by: Thomas Moll --- arch/powerpc/sysdev/fsl_rio.c |2 drivers/rapidio/rio-scan.c| 166

[PATCH v2 2/7] RapidIO: Add switch locking during discovery

2010-03-08 Thread Alexandre Bounine
From: Alexandre Bounine Add switch access locking during RapidIO discovery. Access lock is required when reading switch routing table contents due to indexed mechanism of RT addressing. Signed-off-by: Alexandre Bounine Tested-by: Thomas Moll --- rio-scan.c | 163

[PATCH v2 1/7] RapidIO: Add IDT CPS/TSI switches

2010-03-08 Thread Alexandre Bounine
From: Alexandre Bounine Extentions to RapidIO switch support: 1. modify switch route operation declarations to allow using single switch-specific file for family of switches that share the same route table operations. 2. add standard route table operations for switches that that support

[PATCH v2 4/7] powerpc/85xx: Add Port-Write message handler for SRIO port

2010-03-08 Thread Alexandre Bounine
From: Alexandre Bounine Add RapidIO Port-Write message handler for Freescale SoCs with RapidIO port. Signed-off-by: Alexandre Bounine Tested-by: Thomas Moll --- fsl_rio.c | 263 +- 1 files changed, 260 insertions(+), 3 deletions

[PATCH v2 5/7] powerpc/85xx: Add MChk handler for SRIO port

2010-03-08 Thread Alexandre Bounine
From: Alexandre Bounine Add Machine Check exception handling into RapidIO port driver for Freescale SoCs (MPC85xx). Signed-off-by: Alexandre Bounine Tested-by: Thomas Moll --- fsl_rio.c | 74 ++ 1 files changed, 70 insertions

[PATCH v2 6/7] RapidIO: Add enabling SRIO port RX and TX

2010-03-08 Thread Alexandre Bounine
From: Thomas Moll Add the functionality to enable Input receiver and Output transmitter of every port, to allow non-maintenance traffic. Signed-off-by: Thomas Moll --- drivers/rapidio/Kconfig| 11 ++ drivers/rapidio/rio-scan.c | 79 - i

[PATCH v3 5/6] RapidIO, powerpc/85xx: Add MChk handler for SRIO port

2010-04-06 Thread Alexandre Bounine
From: Alexandre Bounine Add Machine Check exception handling into RapidIO port driver for Freescale SoCs (MPC85xx). Signed-off-by: Alexandre Bounine Tested-by: Thomas Moll Cc: Matt Porter --- fsl_rio.c | 74 ++ 1 files changed

[PATCH v3 6/6] RapidIO: Add enabling SRIO port RX and TX

2010-04-06 Thread Alexandre Bounine
From: Thomas Moll Add the functionality to enable Input receiver and Output transmitter of every port, to allow non-maintenance traffic. Signed-off-by: Thomas Moll Cc: Matt Porter --- drivers/rapidio/Kconfig| 11 ++ drivers/rapidio/rio-scan.c | 79 +++

[PATCH v3 4/6] RapidIO, powerpc/85xx: Add Port-Write message handler for SRIO port

2010-04-06 Thread Alexandre Bounine
From: Alexandre Bounine Add RapidIO Port-Write message handler for Freescale SoCs with RapidIO port. Signed-off-by: Alexandre Bounine Tested-by: Thomas Moll Cc: Matt Porter --- fsl_rio.c | 263 +- 1 files changed, 260 insertions

[PATCH v3 2/6] RapidIO: Add switch locking during discovery

2010-04-06 Thread Alexandre Bounine
From: Alexandre Bounine Add switch access locking during RapidIO discovery. Access lock is required when reading switch routing table contents due to indexed mechanism of RT addressing. Signed-off-by: Alexandre Bounine Tested-by: Thomas Moll Cc: Matt Porter --- rio-scan.c | 164

[PATCH v3 1/6] RapidIO: Add IDT CPS/TSI switches

2010-04-06 Thread Alexandre Bounine
From: Alexandre Bounine Extentions to RapidIO switch support: 1. modify switch route operation declarations to allow using single switch-specific file for family of switches that share the same route table operations. 2. add standard route table operations for switches that that support

  1   2   >