162306a36Sopenharmony_ci========================================================================= 262306a36Sopenharmony_ciRapidIO subsystem mport driver for IDT Tsi721 PCI Express-to-SRIO bridge. 362306a36Sopenharmony_ci========================================================================= 462306a36Sopenharmony_ci 562306a36Sopenharmony_ci1. Overview 662306a36Sopenharmony_ci=========== 762306a36Sopenharmony_ci 862306a36Sopenharmony_ciThis driver implements all currently defined RapidIO mport callback functions. 962306a36Sopenharmony_ciIt supports maintenance read and write operations, inbound and outbound RapidIO 1062306a36Sopenharmony_cidoorbells, inbound maintenance port-writes and RapidIO messaging. 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_ciTo generate SRIO maintenance transactions this driver uses one of Tsi721 DMA 1362306a36Sopenharmony_cichannels. This mechanism provides access to larger range of hop counts and 1462306a36Sopenharmony_cidestination IDs without need for changes in outbound window translation. 1562306a36Sopenharmony_ci 1662306a36Sopenharmony_ciRapidIO messaging support uses dedicated messaging channels for each mailbox. 1762306a36Sopenharmony_ciFor inbound messages this driver uses destination ID matching to forward messages 1862306a36Sopenharmony_ciinto the corresponding message queue. Messaging callbacks are implemented to be 1962306a36Sopenharmony_cifully compatible with RIONET driver (Ethernet over RapidIO messaging services). 2062306a36Sopenharmony_ci 2162306a36Sopenharmony_ci1. Module parameters: 2262306a36Sopenharmony_ci 2362306a36Sopenharmony_ci- 'dbg_level' 2462306a36Sopenharmony_ci - This parameter allows to control amount of debug information 2562306a36Sopenharmony_ci generated by this device driver. This parameter is formed by set of 2662306a36Sopenharmony_ci This parameter can be changed bit masks that correspond to the specific 2762306a36Sopenharmony_ci functional block. 2862306a36Sopenharmony_ci For mask definitions see 'drivers/rapidio/devices/tsi721.h' 2962306a36Sopenharmony_ci This parameter can be changed dynamically. 3062306a36Sopenharmony_ci Use CONFIG_RAPIDIO_DEBUG=y to enable debug output at the top level. 3162306a36Sopenharmony_ci 3262306a36Sopenharmony_ci- 'dma_desc_per_channel' 3362306a36Sopenharmony_ci - This parameter defines number of hardware buffer 3462306a36Sopenharmony_ci descriptors allocated for each registered Tsi721 DMA channel. 3562306a36Sopenharmony_ci Its default value is 128. 3662306a36Sopenharmony_ci 3762306a36Sopenharmony_ci- 'dma_txqueue_sz' 3862306a36Sopenharmony_ci - DMA transactions queue size. Defines number of pending 3962306a36Sopenharmony_ci transaction requests that can be accepted by each DMA channel. 4062306a36Sopenharmony_ci Default value is 16. 4162306a36Sopenharmony_ci 4262306a36Sopenharmony_ci- 'dma_sel' 4362306a36Sopenharmony_ci - DMA channel selection mask. Bitmask that defines which hardware 4462306a36Sopenharmony_ci DMA channels (0 ... 6) will be registered with DmaEngine core. 4562306a36Sopenharmony_ci If bit is set to 1, the corresponding DMA channel will be registered. 4662306a36Sopenharmony_ci DMA channels not selected by this mask will not be used by this device 4762306a36Sopenharmony_ci driver. Default value is 0x7f (use all channels). 4862306a36Sopenharmony_ci 4962306a36Sopenharmony_ci- 'pcie_mrrs' 5062306a36Sopenharmony_ci - override value for PCIe Maximum Read Request Size (MRRS). 5162306a36Sopenharmony_ci This parameter gives an ability to override MRRS value set during PCIe 5262306a36Sopenharmony_ci configuration process. Tsi721 supports read request sizes up to 4096B. 5362306a36Sopenharmony_ci Value for this parameter must be set as defined by PCIe specification: 5462306a36Sopenharmony_ci 0 = 128B, 1 = 256B, 2 = 512B, 3 = 1024B, 4 = 2048B and 5 = 4096B. 5562306a36Sopenharmony_ci Default value is '-1' (= keep platform setting). 5662306a36Sopenharmony_ci 5762306a36Sopenharmony_ci- 'mbox_sel' 5862306a36Sopenharmony_ci - RIO messaging MBOX selection mask. This is a bitmask that defines 5962306a36Sopenharmony_ci messaging MBOXes are managed by this device driver. Mask bits 0 - 3 6062306a36Sopenharmony_ci correspond to MBOX0 - MBOX3. MBOX is under driver's control if the 6162306a36Sopenharmony_ci corresponding bit is set to '1'. Default value is 0x0f (= all). 6262306a36Sopenharmony_ci 6362306a36Sopenharmony_ci2. Known problems 6462306a36Sopenharmony_ci================= 6562306a36Sopenharmony_ci 6662306a36Sopenharmony_ci None. 6762306a36Sopenharmony_ci 6862306a36Sopenharmony_ci3. DMA Engine Support 6962306a36Sopenharmony_ci===================== 7062306a36Sopenharmony_ci 7162306a36Sopenharmony_ciTsi721 mport driver supports DMA data transfers between local system memory and 7262306a36Sopenharmony_ciremote RapidIO devices. This functionality is implemented according to SLAVE 7362306a36Sopenharmony_cimode API defined by common Linux kernel DMA Engine framework. 7462306a36Sopenharmony_ci 7562306a36Sopenharmony_ciDepending on system requirements RapidIO DMA operations can be included/excluded 7662306a36Sopenharmony_ciby setting CONFIG_RAPIDIO_DMA_ENGINE option. Tsi721 miniport driver uses seven 7762306a36Sopenharmony_ciout of eight available BDMA channels to support DMA data transfers. 7862306a36Sopenharmony_ciOne BDMA channel is reserved for generation of maintenance read/write requests. 7962306a36Sopenharmony_ci 8062306a36Sopenharmony_ciIf Tsi721 mport driver have been built with RAPIDIO_DMA_ENGINE support included, 8162306a36Sopenharmony_cithis driver will accept DMA-specific module parameter: 8262306a36Sopenharmony_ci 8362306a36Sopenharmony_ci "dma_desc_per_channel" 8462306a36Sopenharmony_ci - defines number of hardware buffer descriptors used by 8562306a36Sopenharmony_ci each BDMA channel of Tsi721 (by default - 128). 8662306a36Sopenharmony_ci 8762306a36Sopenharmony_ci4. Version History 8862306a36Sopenharmony_ci 8962306a36Sopenharmony_ci ===== ==================================================================== 9062306a36Sopenharmony_ci 1.1.0 DMA operations re-worked to support data scatter/gather lists larger 9162306a36Sopenharmony_ci than hardware buffer descriptors ring. 9262306a36Sopenharmony_ci 1.0.0 Initial driver release. 9362306a36Sopenharmony_ci ===== ==================================================================== 9462306a36Sopenharmony_ci 9562306a36Sopenharmony_ci5. License 9662306a36Sopenharmony_ci=========== 9762306a36Sopenharmony_ci 9862306a36Sopenharmony_ci Copyright(c) 2011 Integrated Device Technology, Inc. All rights reserved. 9962306a36Sopenharmony_ci 10062306a36Sopenharmony_ci This program is free software; you can redistribute it and/or modify it 10162306a36Sopenharmony_ci under the terms of the GNU General Public License as published by the Free 10262306a36Sopenharmony_ci Software Foundation; either version 2 of the License, or (at your option) 10362306a36Sopenharmony_ci any later version. 10462306a36Sopenharmony_ci 10562306a36Sopenharmony_ci This program is distributed in the hope that it will be useful, but WITHOUT 10662306a36Sopenharmony_ci ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 10762306a36Sopenharmony_ci FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 10862306a36Sopenharmony_ci more details. 10962306a36Sopenharmony_ci 11062306a36Sopenharmony_ci You should have received a copy of the GNU General Public License along with 11162306a36Sopenharmony_ci this program; if not, write to the Free Software Foundation, Inc., 11262306a36Sopenharmony_ci 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 113