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

[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-ker...@vger.kernel.org Cc: linuxppc-dev@lists.ozlabs.org --- arch/powerpc/sysdev/fsl_rio.c|4 ++-- drivers/rapidio/devices

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

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

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

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

[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

[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

[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

[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: 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 -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 use of non-compatible registers

2011-07-26 Thread Alexandre Bounine
Replace/remove use of RIO v.1.2 registers/bits that are not forward-compatible with newer versions of RapidIO specification. RapidIO specification v. 1.3 removed Write Port CSR, Doorbell CSR, Mailbox CSR and Mailbox and Doorbell bits of the PEF CAR. Signed-off-by: Alexandre Bounine Cc: Kumar

[PATCH] RapidIO: Fix default routing initialization

2011-05-11 Thread Alexandre Bounine
handling of unmapped destinations by tsi57x, IDT Gen1 and IDT Gen2 switches. Signed-off-by: Alexandre Bounine Cc: Kumar Gala Cc: Matt Porter Cc: Li Yang Cc: Thomas Moll --- drivers/rapidio/switches/idt_gen2.c |9 + drivers/rapidio/switches/idtcps.c |6 ++ drivers/rapidio

[PATCH] RapidIO/mpc85xx: Fix possible mport registration problems.

2011-04-06 Thread Alexandre Bounine
Fix possible problem with mport registration left non cleared after fsl_rio_setup() exits on link error. Abort mport initialization if registration failed. This patch is applicable to 2.6.39-rc1 only. The problem does not exists for earlier versions. Signed-off-by: Alexandre Bounine Cc: Kumar

[PATCH 1/1] RapidIO: Add IDT CPS-1432 switch definitions

2011-04-06 Thread Alexandre Bounine
Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Kumar Gala --- drivers/rapidio/switches/idt_gen2.c |1 + include/linux/rio_ids.h |1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/rapidio/switches/idt_gen2.c b/drivers/rapidio/switches

[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] 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 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 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 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 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 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 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 -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] 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] 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 -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 -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 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 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 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 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/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 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: 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 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] 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 v2 09/10] RapidIO: Add support for IDT CPS Gen2 switches

2010-09-14 Thread Alexandre Bounine
Add the RIO switch driver and definitions for IDT CPS-1848 and CPS-1616 Gen2 devices. Signed-off-by: Alexandre Bounine Cc: Thomas Moll Cc: Matt Porter Cc: Li Yang Cc: Kumar Gala Cc: Micha Nelissen --- drivers/rapidio/switches/Kconfig|7 + drivers/rapidio/switches/Makefile |1

[PATCH v2 05/10] RapidIO: Add default handler for error-stopped state

2010-09-14 Thread Alexandre Bounine
The default error-stopped state handler provides recovery mechanism as defined by RIO specification. Signed-off-by: Alexandre Bounine Cc: Thomas Moll Cc: Matt Porter Cc: Li Yang Cc: Kumar Gala Cc: Micha Nelissen --- drivers/rapidio/rio.c | 218

[PATCH v2 10/10] RapidIO: Add handling of redundant routes

2010-09-14 Thread Alexandre Bounine
register was used before for this purpose). 2. Enumerator sets Component Tag (!= 0) immediately during device setup. This allows to identify the device if the redundant route exists in a RIO system. Signed-off-by: Alexandre Bounine Cc: Thomas Moll Cc: Matt Porter Cc: Li Yang Cc: Kumar Gala Cc: Micha

[PATCH v2 04/10] RapidIO: Add relation links between RIO device structures

2010-09-14 Thread Alexandre Bounine
Create back and forward links between RIO devices. These links are intended for use by error management and hot-plug extensions. Links for redundant RIO connections between switches are not set (will be fixed in a separate patch). Signed-off-by: Alexandre Bounine Cc: Thomas Moll Cc: Matt Porter

[PATCH v2 03/10] RapidIO: Use stored ingress port number instead of register read

2010-09-14 Thread Alexandre Bounine
A switch port information is obtained and stored during RIO device setup. Therefore repeated reads from Switch Port Information CAR may be removed. Signed-off-by: Alexandre Bounine Cc: Thomas Moll Cc: Matt Porter Cc: Li Yang Cc: Kumar Gala Cc: Micha Nelissen --- drivers/rapidio/rio-scan.c

[PATCH v2 07/10] RapidIO: Add handling of orphan port-write message

2010-09-14 Thread Alexandre Bounine
Add check for access to port-write (PW) message source device before processing the PW message. If source RIO device is not available (power down or RIO link failure) trace back to a last available switch/port on the PW message route and service failure at that point. Signed-off-by: Alexandre

[PATCH v2 02/10] RapidIO:powerpc/85xx: Modify RIO port-write interrupt handler

2010-09-14 Thread Alexandre Bounine
- Rearranged RIO port-write interrupt handling to perform message buffering as soon as possible. - Modified to disable port-write controller when clearing Transaction Error (TE) bit. Signed-off-by: Alexandre Bounine Cc: Thomas Moll Cc: Matt Porter Cc: Li Yang Cc: Kumar Gala Cc: Micha

[PATCH v2 06/10] RapidIO: Modify sysfs initialization for switches

2010-09-14 Thread Alexandre Bounine
1. Change to create attribute "routes" only for switches. 2. Add a switch-specific callback to create/remove proprietary attributes. Signed-off-by: Alexandre Bounine Cc: Thomas Moll Cc: Matt Porter Cc: Li Yang Cc: Kumar Gala Cc: Micha Nelissen --- drivers/rapidio/rio-sysf

[PATCH v2 08/10] RapidIO: Add device access check into the enumeration

2010-09-14 Thread Alexandre Bounine
Add explicit device access check before performing device enumeration. This gives a chance to clear possible link error conditions by issuing safe maintenance read request(s). Signed-off-by: Alexandre Bounine Cc: Thomas Moll Cc: Matt Porter Cc: Li Yang Cc: Kumar Gala Cc: Micha Nelissen

[PATCH v2 01/10] RapidIO: Fix RapidIO sysfs hierarchy

2010-09-14 Thread Alexandre Bounine
Make RapidIO devices appear in /sys/devices/rapidio directory instead of top of /sys/devices directory. Signed-off-by: Alexandre Bounine Cc: Thomas Moll Cc: Matt Porter Cc: Li Yang Cc: Kumar Gala Cc: Micha Nelissen --- drivers/rapidio/rio-driver.c |2 +- drivers/rapidio/rio-scan.c

[PATCH v2 0/10] RapidIO: Set of patches to add Gen2 switches

2010-09-14 Thread Alexandre Bounine
This set of RapidIO patches extends support for standard error recovery mechanism and adds new IDT Gen2 sRIO switch devices - CPS-1848 and CPS-1616. Implementation of the standard error-stopped state recovery mechanism (as defined by the RapidIO specification) is required for the new switches. The

[PATCH 9/9] RapidIO: Add support for IDT CPS Gen2 switches

2010-08-13 Thread Alexandre Bounine
Add the RIO switch driver and definitions for IDT CPS-1848 and CPS-1616 Gen2 devices. Signed-off-by: Alexandre Bounine Reviewed-by: Thomas Moll Cc: Matt Porter Cc: Li Yang Cc: Kumar Gala --- drivers/rapidio/switches/Kconfig|7 + drivers/rapidio/switches/Makefile |1 + drivers

  1   2   >