1. 22 5月, 2010 1 次提交
    • R
      IB/core: Allow device-specific per-port sysfs files · 9a6edb60
      Ralph Campbell 提交于
      Add a new parameter to ib_register_device() so that low-level device
      drivers can pass in a pointer to a callback function that will be
      called for each port that is registered in sysfs.  This allows
      low-level device drivers to create files in
      
          /sys/class/infiniband/<hca>/ports/<N>/
      
      without having to poke through the internals of the RDMA sysfs handling.
      
      There is no need for an unregister function since the kobject
      reference will go to zero when ib_unregister_device() is called.
      Signed-off-by: NRalph Campbell <ralph.campbell@qlogic.com>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      9a6edb60
  2. 10 12月, 2009 1 次提交
  3. 16 9月, 2009 1 次提交
  4. 06 9月, 2009 1 次提交
  5. 24 6月, 2009 1 次提交
  6. 23 6月, 2009 1 次提交
    • H
      IB/ehca: Tolerate dynamic memory operations before driver load · 0cf89dcd
      Hannes Hering 提交于
      Implement toleration of dynamic memory operations and 16 GB gigantic
      pages, where "toleration" means that the driver can cope with dynamic
      memory operations that happen before the driver is loaded.  While the
      ehca driver is loaded, dynamic memory operations are still prohibited
      by returning NOTIFY_BAD from the memory notifier.
      
      On module load the driver walks through available system memory,
      checks for available memory ranges and then registers the kernel
      internal memory region accordingly.  The translation of address ranges
      is implemented via a 3-level busmap.
      Signed-off-by: NHannes Hering <hering2@de.ibm.com>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      0cf89dcd
  7. 16 6月, 2009 1 次提交
  8. 14 5月, 2009 1 次提交
  9. 17 1月, 2009 1 次提交
  10. 08 1月, 2009 1 次提交
  11. 02 12月, 2008 2 次提交
  12. 23 10月, 2008 2 次提交
    • S
      IB/ehca: Reject dynamic memory add/remove when ehca adapter is present · 263c24a2
      Stefan Roscher 提交于
      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: NStefan Roscher <stefan.roscher@de.ibm.com>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      263c24a2
    • 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
  13. 15 7月, 2008 1 次提交
  14. 30 4月, 2008 1 次提交
  15. 24 4月, 2008 4 次提交
  16. 17 4月, 2008 1 次提交
    • R
      IB/ehca: Make symbols used only in a single source file static · e8e91f6b
      Roland Dreier 提交于
      Allow the compiler to optimize better and generate smaller code:
      
      add/remove: 0/6 grow/shrink: 2/0 up/down: 1528/-1864 (-336)
      function                                     old     new   delta
      .ehca_set_pagebuf                           1344    2172    +828
      .ehca_probe                                 2312    3012    +700
      ehca_set_pagebuf_phys                         24       -     -24
      ehca_set_pagebuf_fmr                          24       -     -24
      ehca_init_device                              24       -     -24
      .ehca_set_pagebuf_fmr                        480       -    -480
      .ehca_set_pagebuf_phys                       512       -    -512
      .ehca_init_device                            800       -    -800
      
      Also this fixes warnings like:
      
          drivers/infiniband/hw/ehca/ehca_mrmw.c:2015:5: warning: symbol 'ehca_set_pagebuf_fmr' was not declared. Should it be static?
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      e8e91f6b
  17. 05 2月, 2008 1 次提交
  18. 26 1月, 2008 3 次提交
    • 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
      b8b50e35
    • A
      IB/ehca: Use round_jiffies() for EQ polling timer · 1a7d2dce
      Anton Blanchard 提交于
      Use round_jiffies() to align ehca's 1-second timer with other timers
      and potentially save power by sleeping cores for longer.
      Signed-off-by: NAnton Blanchard <anton@samba.org>
      Acked-by: NHoang-Nam Nguyen <hnguyen@de.ibm.com>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      1a7d2dce
  19. 25 1月, 2008 1 次提交
    • G
      Infiniband: make ipath driver use default driver groups. · 23b9c1ab
      Greg Kroah-Hartman 提交于
      Make the ipath driver use the new driver functions so that it does not
      touch the sysfs portion of the driver structure.
      
      We also remove the redundant symlink from the device back to the driver,
      as it is already in the sysfs tree.  Any userspace tools should be using
      the standard symlink, not some driver specific one.
      
      Cc: Roland Dreier <rdreier@cisco.com>
      Cc: Bryan O'Sullivan <bryan.osullivan@qlogic.com>
      Cc: Arthur Jones <arthur.jones@qlogic.com>
      Cc: Cornelia Huck <cornelia.huck@de.ibm.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      23b9c1ab
  20. 14 12月, 2007 1 次提交
  21. 13 12月, 2007 1 次提交
  22. 14 11月, 2007 1 次提交
  23. 19 10月, 2007 1 次提交
    • J
      Add missing newlines to some uses of dev_<level> messages · 898eb71c
      Joe Perches 提交于
      Found these while looking at printk uses.
      
      Add missing newlines to dev_<level> uses
      Add missing KERN_<level> prefixes to multiline dev_<level>s
      Fixed a wierd->weird spelling typo
      Added a newline to a printk
      Signed-off-by: NJoe Perches <joe@perches.com>
      Cc: "Luck, Tony" <tony.luck@intel.com>
      Cc: Jens Axboe <jens.axboe@oracle.com>
      Cc: Mark M. Hoffman <mhoffman@lightlink.com>
      Cc: Roland Dreier <rolandd@cisco.com>
      Cc: Tilman Schmidt <tilman@imap.cc>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: Jeff Garzik <jeff@garzik.org>
      Cc: Stephen Hemminger <shemminger@linux-foundation.org>
      Cc: Greg KH <greg@kroah.com>
      Cc: Jeremy Fitzhardinge <jeremy@goop.org>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Alessandro Zummo <a.zummo@towertech.it>
      Cc: David Brownell <david-b@pacbell.net>
      Cc: James Smart <James.Smart@Emulex.Com>
      Cc: Andrew Vasquez <andrew.vasquez@qlogic.com>
      Cc: "Antonino A. Daplas" <adaplas@pol.net>
      Cc: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
      Cc: Russell King <rmk@arm.linux.org.uk>
      Cc: Jaroslav Kysela <perex@suse.cz>
      Cc: Takashi Iwai <tiwai@suse.de>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      898eb71c
  24. 18 10月, 2007 2 次提交
  25. 17 10月, 2007 1 次提交
  26. 10 10月, 2007 4 次提交
  27. 21 7月, 2007 3 次提交