tsi721.txt 4.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. RapidIO subsystem mport driver for IDT Tsi721 PCI Express-to-SRIO bridge.
  2. =========================================================================
  3. I. Overview
  4. This driver implements all currently defined RapidIO mport callback functions.
  5. It supports maintenance read and write operations, inbound and outbound RapidIO
  6. doorbells, inbound maintenance port-writes and RapidIO messaging.
  7. To generate SRIO maintenance transactions this driver uses one of Tsi721 DMA
  8. channels. This mechanism provides access to larger range of hop counts and
  9. destination IDs without need for changes in outbound window translation.
  10. RapidIO messaging support uses dedicated messaging channels for each mailbox.
  11. For inbound messages this driver uses destination ID matching to forward messages
  12. into the corresponding message queue. Messaging callbacks are implemented to be
  13. fully compatible with RIONET driver (Ethernet over RapidIO messaging services).
  14. 1. Module parameters:
  15. - 'dbg_level' - This parameter allows to control amount of debug information
  16. generated by this device driver. This parameter is formed by set of
  17. This parameter can be changed bit masks that correspond to the specific
  18. functional block.
  19. For mask definitions see 'drivers/rapidio/devices/tsi721.h'
  20. This parameter can be changed dynamically.
  21. Use CONFIG_RAPIDIO_DEBUG=y to enable debug output at the top level.
  22. - 'dma_desc_per_channel' - This parameter defines number of hardware buffer
  23. descriptors allocated for each registered Tsi721 DMA channel.
  24. Its default value is 128.
  25. - 'dma_txqueue_sz' - DMA transactions queue size. Defines number of pending
  26. transaction requests that can be accepted by each DMA channel.
  27. Default value is 16.
  28. - 'dma_sel' - DMA channel selection mask. Bitmask that defines which hardware
  29. DMA channels (0 ... 6) will be registered with DmaEngine core.
  30. If bit is set to 1, the corresponding DMA channel will be registered.
  31. DMA channels not selected by this mask will not be used by this device
  32. driver. Default value is 0x7f (use all channels).
  33. - 'pcie_mrrs' - override value for PCIe Maximum Read Request Size (MRRS).
  34. This parameter gives an ability to override MRRS value set during PCIe
  35. configuration process. Tsi721 supports read request sizes up to 4096B.
  36. Value for this parameter must be set as defined by PCIe specification:
  37. 0 = 128B, 1 = 256B, 2 = 512B, 3 = 1024B, 4 = 2048B and 5 = 4096B.
  38. Default value is '-1' (= keep platform setting).
  39. - 'mbox_sel' - RIO messaging MBOX selection mask. This is a bitmask that defines
  40. messaging MBOXes are managed by this device driver. Mask bits 0 - 3
  41. correspond to MBOX0 - MBOX3. MBOX is under driver's control if the
  42. corresponding bit is set to '1'. Default value is 0x0f (= all).
  43. II. Known problems
  44. None.
  45. III. DMA Engine Support
  46. Tsi721 mport driver supports DMA data transfers between local system memory and
  47. remote RapidIO devices. This functionality is implemented according to SLAVE
  48. mode API defined by common Linux kernel DMA Engine framework.
  49. Depending on system requirements RapidIO DMA operations can be included/excluded
  50. by setting CONFIG_RAPIDIO_DMA_ENGINE option. Tsi721 miniport driver uses seven
  51. out of eight available BDMA channels to support DMA data transfers.
  52. One BDMA channel is reserved for generation of maintenance read/write requests.
  53. If Tsi721 mport driver have been built with RAPIDIO_DMA_ENGINE support included,
  54. this driver will accept DMA-specific module parameter:
  55. "dma_desc_per_channel" - defines number of hardware buffer descriptors used by
  56. each BDMA channel of Tsi721 (by default - 128).
  57. IV. Version History
  58. 1.1.0 - DMA operations re-worked to support data scatter/gather lists larger
  59. than hardware buffer descriptors ring.
  60. 1.0.0 - Initial driver release.
  61. V. License
  62. -----------------------------------------------
  63. Copyright(c) 2011 Integrated Device Technology, Inc. All rights reserved.
  64. This program is free software; you can redistribute it and/or modify it
  65. under the terms of the GNU General Public License as published by the Free
  66. Software Foundation; either version 2 of the License, or (at your option)
  67. any later version.
  68. This program is distributed in the hope that it will be useful, but WITHOUT
  69. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  70. FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  71. more details.
  72. You should have received a copy of the GNU General Public License along with
  73. this program; if not, write to the Free Software Foundation, Inc.,
  74. 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.