1. 12 6月, 2013 1 次提交
  2. 04 1月, 2013 1 次提交
    • G
      Drivers: infinband: remove __dev* attributes. · 1e6d9abe
      Greg Kroah-Hartman 提交于
      CONFIG_HOTPLUG is going away as an option.  As a result, the __dev*
      markings need to be removed.
      
      This change removes the use of __devinit, __devexit_p, __devinitdata,
      and __devexit from these drivers.
      
      Based on patches originally written by Bill Pemberton, but redone by me
      in order to handle some of the coding style issues better, by hand.
      
      Cc: Bill Pemberton <wfp5p@virginia.edu>
      Cc: Tom Tucker <tom@opengridcomputing.com>
      Cc: Steve Wise <swise@opengridcomputing.com>
      Cc: Roland Dreier <roland@kernel.org>
      Cc: Sean Hefty <sean.hefty@intel.com>
      Cc: Hal Rosenstock <hal.rosenstock@gmail.com>
      Cc: Hoang-Nam Nguyen <hnguyen@de.ibm.com>
      Cc: Christoph Raisch <raisch@de.ibm.com>
      Cc: Mike Marciniszyn <infinipath@intel.com>
      Cc: Faisal Latif <faisal.latif@intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      1e6d9abe
  3. 13 1月, 2012 2 次提交
    • R
      module_param: make bool parameters really bool (drivers & misc) · 90ab5ee9
      Rusty Russell 提交于
      module_param(bool) used to counter-intuitively take an int.  In
      fddd5201 (mid-2009) we allowed bool or int/unsigned int using a messy
      trick.
      
      It's time to remove the int/unsigned int option.  For this version
      it'll simply give a warning, but it'll break next kernel version.
      Acked-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
      90ab5ee9
    • R
      module_param: avoid bool abuse, add bint for special cases. · 69116f27
      Rusty Russell 提交于
      For historical reasons, we allow module_param(bool) to take an int (or
      an unsigned int).  That's going away.
      
      A few drivers really want an int: they set it to -1 and a parameter
      will set it to 0 or 1.  This sucks: reading them from sysfs will give
      'Y' for both -1 and 1, but if we change it to an int, then the users
      might be broken (if they did "param" instead of "param=1").
      
      Use a new 'bint' parser for them.
      
      (ntfs has a different problem: it needs an int for debug_msgs because
      it's also exposed via sysctl.)
      
      Cc: Steve Glendinning <steve.glendinning@smsc.com>
      Cc: Jean Delvare <khali@linux-fr.org>
      Cc: Guenter Roeck <guenter.roeck@ericsson.com>
      Cc: Hoang-Nam Nguyen <hnguyen@de.ibm.com>
      Cc: Christoph Raisch <raisch@de.ibm.com>
      Cc: Roland Dreier <roland@kernel.org>
      Cc: Sean Hefty <sean.hefty@intel.com>
      Cc: Hal Rosenstock <hal.rosenstock@gmail.com>
      Cc: linux390@de.ibm.com
      Cc: Anton Altaparmakov <anton@tuxera.com>
      Cc: Jaroslav Kysela <perex@perex.cz>
      Cc: Takashi Iwai <tiwai@suse.de>
      Cc: lm-sensors@lm-sensors.org
      Cc: linux-rdma@vger.kernel.org
      Cc: linux-s390@vger.kernel.org
      Cc: linux-ntfs-dev@lists.sourceforge.net
      Cc: alsa-devel@alsa-project.org
      Acked-by: Takashi Iwai <tiwai@suse.de> (For the sound part)
      Acked-by: Guenter Roeck <guenter.roeck@ericsson.com> (For the hwmon driver)
      Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
      69116f27
  4. 06 8月, 2010 1 次提交
  5. 20 7月, 2010 1 次提交
  6. 22 5月, 2010 2 次提交
    • G
      of: Remove duplicate fields from of_platform_driver · 4018294b
      Grant Likely 提交于
      .name, .match_table and .owner are duplicated in both of_platform_driver
      and device_driver.  This patch is a removes the extra copies from struct
      of_platform_driver and converts all users to the device_driver members.
      
      This patch is a pretty mechanical change.  The usage model doesn't change
      and if any drivers have been missed, or if anything has been fixed up
      incorrectly, then it will fail with a compile time error, and the fixup
      will be trivial.  This patch looks big and scary because it touches so
      many files, but it should be pretty safe.
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      Acked-by: NSean MacLennan <smaclennan@pikatech.com>
      4018294b
    • 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
  7. 19 5月, 2010 1 次提交
  8. 10 12月, 2009 1 次提交
  9. 16 9月, 2009 1 次提交
  10. 06 9月, 2009 1 次提交
  11. 24 6月, 2009 1 次提交
  12. 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
  13. 16 6月, 2009 1 次提交
  14. 14 5月, 2009 1 次提交
  15. 17 1月, 2009 1 次提交
  16. 08 1月, 2009 1 次提交
  17. 02 12月, 2008 2 次提交
  18. 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
  19. 15 7月, 2008 1 次提交
  20. 30 4月, 2008 1 次提交
  21. 24 4月, 2008 4 次提交
  22. 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
  23. 05 2月, 2008 1 次提交
  24. 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
  25. 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
  26. 14 12月, 2007 1 次提交
  27. 13 12月, 2007 1 次提交
  28. 14 11月, 2007 1 次提交
  29. 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
  30. 18 10月, 2007 2 次提交