1. 19 11月, 2017 1 次提交
  2. 06 7月, 2017 4 次提交
    • L
      ntb_hw_intel: Style fixes: open code macros that just obfuscate code · 48ea0218
      Logan Gunthorpe 提交于
      As per a comments in [1] by Greg Kroah-Hartman, the ndev_* macros should
      be cleaned up. This makes it more clear what's actually going on when
      reading the code.
      
      [1] http://www.spinics.net/lists/linux-pci/msg56904.htmlSigned-off-by: NLogan Gunthorpe <logang@deltatee.com>
      Signed-off-by: NJon Mason <jdmason@kudzu.us>
      48ea0218
    • S
      NTB: Alter Scratchpads API to support multi-ports devices · d67288a3
      Serge Semin 提交于
      Even though there is no any real NTB hardware, which would have both more
      than two ports and Scratchpad registers, it is logically correct to have
      Scratchpad API accepting a peer port index as well. Intel/AMD drivers utilize
      Primary and Secondary topology to split Scratchpad between connected root
      devices. Since port-index API introduced, Intel/AMD NTB hardware drivers can
      use device port to determine which Scratchpad registers actually belong to
      local and peer devices. The same approach can be used if some potential
      hardware in future will be multi-port and have some set of Scratchpads.
      Here are the brief of changes in the API:
       ntb_spad_count() - return number of Scratchpads per each port
       ntb_peer_spad_addr(pidx, sidx) - address of Scratchpad register of the
      peer device with pidx-index
       ntb_peer_spad_read(pidx, sidx) - read specified Scratchpad register of the
      peer with pidx-index
       ntb_peer_spad_write(pidx, sidx) - write data to Scratchpad register of the
      peer with pidx-index
      
      Since there is hardware which doesn't support Scratchpad registers, the
      corresponding API methods are now made optional.
      Signed-off-by: NSerge Semin <fancer.lancer@gmail.com>
      Acked-by: NAllen Hubbe <Allen.Hubbe@dell.com>
      Signed-off-by: NJon Mason <jdmason@kudzu.us>
      d67288a3
    • S
      NTB: Alter MW API to support multi-ports devices · 443b9a14
      Serge Semin 提交于
      Multi-port NTB devices permit to share a memory between all accessible peers.
      Memory Windows API is altered to correspondingly initialize and map memory
      windows for such devices:
       ntb_mw_count(pidx); - number of inbound memory windows, which can be allocated
      for shared buffer with specified peer device.
       ntb_mw_get_align(pidx, widx); - get alignment and size restriction parameters
      to properly allocate inbound memory region.
       ntb_peer_mw_count(); - get number of outbound memory windows.
       ntb_peer_mw_get_addr(widx); - get mapping address of an outbound memory window
      
      If hardware supports inbound translation configured on the local ntb port:
       ntb_mw_set_trans(pidx, widx); - set translation address of allocated inbound
      memory window so a peer device could access it.
       ntb_mw_clear_trans(pidx, widx); - clear the translation address of an inbound
      memory window.
      
      If hardware supports outbound translation configured on the peer ntb port:
       ntb_peer_mw_set_trans(pidx, widx); - set translation address of a memory
      window retrieved from a peer device
       ntb_peer_mw_clear_trans(pidx, widx); - clear the translation address of an
      outbound memory window
      Signed-off-by: NSerge Semin <fancer.lancer@gmail.com>
      Acked-by: NAllen Hubbe <Allen.Hubbe@dell.com>
      Signed-off-by: NJon Mason <jdmason@kudzu.us>
      443b9a14
    • S
      NTB: Alter link-state API to support multi-port devices · 4e8c11b7
      Serge Semin 提交于
      Multi-port devices permit the NTB connections between multiple domains,
      so a local device can have NTB link being up with one peer and being
      down with another. NTB link-state API is appropriately altered to return
      a bitfield of the link-states between the local device and possible peers.
      Signed-off-by: NSerge Semin <fancer.lancer@gmail.com>
      Acked-by: NAllen Hubbe <Allen.Hubbe@dell.com>
      Signed-off-by: NJon Mason <jdmason@kudzu.us>
      4e8c11b7
  3. 20 6月, 2017 1 次提交
  4. 17 2月, 2017 1 次提交
  5. 24 12月, 2016 2 次提交
  6. 14 11月, 2016 2 次提交
  7. 05 8月, 2016 2 次提交
  8. 11 1月, 2016 1 次提交
  9. 09 11月, 2015 1 次提交
  10. 08 9月, 2015 3 次提交
  11. 05 7月, 2015 9 次提交
  12. 02 7月, 2015 1 次提交
  13. 11 6月, 2015 1 次提交
  14. 09 6月, 2015 1 次提交
  15. 07 5月, 2015 1 次提交
  16. 17 10月, 2014 5 次提交
  17. 08 4月, 2014 4 次提交