1. 22 Oct, 2008 2 commits
    • Stefan Roscher's avatar
      IB/ehca: Reject dynamic memory add/remove when ehca adapter is present · 263c24a2
      Stefan Roscher authored
      Since the ehca device driver does not support dynamic memory add and
      remove operations, the driver must explicitly reject such requests in
      order to prevent unpredictable behaviors related to existing memory
      regions that cover all of memory being used by InfiniBand protocols in
      the kernel.
      
      The solution (for now at least) is to add a memory notifier to the
      ehca device driver and if a request for dynamic memory add or remove
      comes in, ehca will always reject it.  The user can add or remove
      memory by hot-removing the ehca adapter, performing the memory
      operation, and then hot-adding the ehca adapter back.
      Signed-off-by: default avatarStefan Roscher <stefan.roscher@de.ibm.com>
      Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
      263c24a2
    • Stefan Roscher's avatar
      IB/ehca: Fix reported max number of QPs and CQs in systems with >1 adapter · 19f42821
      Stefan Roscher authored
      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: default avatarStefan Roscher <stefan.roscher@de.ibm.com>
      Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
      19f42821
  2. 10 Oct, 2008 33 commits
  3. 09 Oct, 2008 5 commits