1. 17 1月, 2009 1 次提交
  2. 06 12月, 2008 1 次提交
  3. 02 12月, 2008 1 次提交
  4. 12 11月, 2008 1 次提交
  5. 23 10月, 2008 1 次提交
    • S
      IB/ehca: Fix reported max number of QPs and CQs in systems with >1 adapter · 19f42821
      Stefan Roscher 提交于
      Because ehca adapters can differ in the maximum number of QPs and CQs
      we have to save the maximum number of these ressources per adapter and
      not globally per ehca driver. This fix introduces 2 new members to the
      shca structure to store the maximum value for QPs and CQs per adapter.
      
      The module parameters are now used as initial values for those
      variables.  If a user selects an invalid number of CQs or QPs we don't
      print an error any longer, instead we will inform the user with a
      warning and set the values to the respective maximum supported by the
      HW.
      Signed-off-by: NStefan Roscher <stefan.roscher@de.ibm.com>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      19f42821
  6. 11 10月, 2008 1 次提交
  7. 21 9月, 2008 1 次提交
    • A
      IB/ehca: Generate flush status CQ entries · b9012e0a
      Alexander Schmidt 提交于
      When a QP goes into error state, it is required that CQ entries with a
      flush error status are delivered to the application for any
      outstanding work requests.  eHCA does not do this in hardware, so this
      patch adds software flush CQE generation to the ehca driver.
      
      Whenever a QP gets into error state, it is added to the QP error list
      of its respective CQ.  If the error QP list of a CQ is not empty,
      poll_cq() generates flush CQEs before polling the actual CQ.
      Signed-off-by: NAlexander Schmidt <alexs@linux.vnet.ibm.com>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      b9012e0a
  8. 13 8月, 2008 2 次提交
    • A
      IB/ehca: Discard double CQE for one WR · 6773f079
      Alexander Schmidt 提交于
      Under rare circumstances, the ehca hardware might erroneously generate
      two CQEs for the same WQE, which is not compliant to the IB spec and
      will cause unpredictable errors like memory being freed twice. To
      avoid this problem, the driver needs to detect the second CQE and
      discard it.
      
      For this purpose, introduce an array holding as many elements as the
      SQ of the QP, called sq_map. Each sq_map entry stores a "reported"
      flag for one WQE in the SQ. When a work request is posted to the SQ,
      the respective "reported" flag is set to zero. After the arrival of a
      CQE, the flag is set to 1, which allows to detect the occurence of a
      second CQE.
      
      The mapping between WQE / CQE and the corresponding sq_map element is
      implemented by replacing the lowest 16 Bits of the wr_id with the
      index in the queue map. The original 16 Bits are stored in the sq_map
      entry and are restored when the CQE is passed to the application.
      Signed-off-by: NAlexander Schmidt <alexs@linux.vnet.ibm.com>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      6773f079
    • A
      IB/ehca: Update qp_state on cached modify_qp() · 51ad241a
      Alexander Schmidt 提交于
      Since the introduction of the port auto-detect mode for ehca, calls to
      modify_qp() may be cached in the device driver when the ports are not
      activated yet. When a modify_qp() call is cached, the qp state remains
      untouched until the port is activated, which will leave the qp in the
      reset state. In the reset state, however, it is not allowed to post SQ
      WQEs, which confuses applications like ib_mad.
      
      The solution for this problem is to immediately set the qp state as
      requested by modify_qp(), even when the call is cached.
      Signed-off-by: NAlexander Schmidt <alexs@linux.vnet.ibm.com>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      51ad241a
  9. 23 7月, 2008 1 次提交
  10. 08 5月, 2008 1 次提交
  11. 30 4月, 2008 1 次提交
  12. 24 4月, 2008 2 次提交
  13. 17 4月, 2008 2 次提交
  14. 26 1月, 2008 4 次提交
    • J
      IB/ehca: Prevent RDMA-related connection failures on some eHCA2 hardware · 2ec8e662
      Joachim Fenkes 提交于
      Some HW revisions of eHCA2 may cause an RC connection to break if they
      received RDMA Reads over that connection before.  This can be
      prevented by assuring that, after the first RDMA Read, the QP receives
      a new RDMA Read every few million link packets.
      
      Include code into the driver that inserts an empty (size 0) RDMA Read
      into the message stream every now and then if the consumer doesn't
      post them frequently enough.
      Signed-off-by: NJoachim Fenkes <fenkes@de.ibm.com>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      2ec8e662
    • H
      IB/ehca: Add "port connection autodetect mode" · bbdd267e
      Hoang-Nam Nguyen 提交于
      This patch enhances ehca with a capability to "autodetect" the ports
      being connected physically. In order to utilize that function the
      module option nr_ports must be set to -1 (default is 2 - two
      ports). This feature is experimental and will made the default later.
      
      More detail:
      
      If the user connects only one port to the switch, current code requires
        1) port one to be connected and
        2) module option nr_ports=1 to be given.
      
      If autodetect is enabled, ehca will not wait at creation of the GSI QP
      for the respective port to become active. Since firmware does not
      accept modify_qp() while the port is down at initialization, we need
      to cache all calls to modify_qp() for the SMI/GSI QP and just return a
      good return code.
      
      When a port is activated and we get a PORT_ACTIVE event, we replay the
      cached modify-qp() parms and re-trigger any posted recv WRs. Only then
      do we forward the PORT_ACTIVE event to registered clients.
      
      The result of this autodetect patch is that all ports will be
      accessible by the users. Depending on their respective cabling only
      those ports that are connected properly will become operable. If a
      user tries to modify a regular QP of a non-connected port, modify_qp()
      will fail. Furthermore, ibv_devinfo should show the port state
      accordingly.
      
      Note that this patch primarily improves the loading behaviour of
      ehca. If the cable is removed while the driver is operating and
      plugged in again, firmware will handle that properly by sending an
      appropriate async event.
      Signed-off-by: NHoang-Nam Nguyen <hnguyen@de.ibm.com>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      bbdd267e
    • H
    • J
      drivers/infiniband: Add missing "space" · 908cf9a5
      Joe Perches 提交于
      Add missing spaces in the middle of format strings.
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      908cf9a5
  15. 13 12月, 2007 1 次提交
  16. 25 11月, 2007 1 次提交
  17. 14 11月, 2007 1 次提交
  18. 18 10月, 2007 1 次提交
  19. 10 10月, 2007 9 次提交
  20. 01 9月, 2007 1 次提交
  21. 21 7月, 2007 2 次提交
  22. 20 7月, 2007 1 次提交
    • P
      mm: Remove slab destructors from kmem_cache_create(). · 20c2df83
      Paul Mundt 提交于
      Slab destructors were no longer supported after Christoph's
      c59def9f change. They've been
      BUGs for both slab and slub, and slob never supported them
      either.
      
      This rips out support for the dtor pointer from kmem_cache_create()
      completely and fixes up every single callsite in the kernel (there were
      about 224, not including the slab allocator definitions themselves,
      or the documentation references).
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      20c2df83
  23. 18 7月, 2007 1 次提交
  24. 10 7月, 2007 2 次提交