1. 10 5月, 2013 11 次提交
  2. 22 2月, 2013 1 次提交
  3. 04 1月, 2013 1 次提交
    • G
      Drivers: scsi: remove __dev* attributes. · 6f039790
      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,
      __devinitconst, 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: Adam Radford <linuxraid@lsi.com>
      Cc: "James E.J. Bottomley" <JBottomley@parallels.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      6f039790
  4. 20 7月, 2012 2 次提交
  5. 10 5月, 2012 1 次提交
    • M
      [SCSI] pm8001: raise host can queue · 99c72ebc
      Mark Salyzyn 提交于
      This is a followup to a patch provided by Jack Wang on September 21 2011.
      
      After increasing the CAN_QUEUE to 510 in pm8001 we discovered some performance
      degredation from time to time. We needed to increase the MPI queue to
      compensate and ensure we never hit that limit. We also needed to double
      the margin to support event and administrivial commands that take from
      the pool resulting in an occasional largely unproductive command completion
      with soft error to the caller when the command pool is overloaded temporarily.
      Signed-off-by: NMark Salyzyn <mark_salyzyn@xyratex.com>
      Acked-by: NJack Wang <jack_wang@usish.com>
      Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
      99c72ebc
  6. 24 4月, 2012 1 次提交
  7. 28 3月, 2012 1 次提交
  8. 01 3月, 2012 5 次提交
  9. 20 2月, 2012 3 次提交
    • D
      [SCSI] libsas: remove ata_port.lock management duties from lldds · 312d3e56
      Dan Williams 提交于
      Each libsas driver (mvsas, pm8001, and isci) has invented a different
      method for managing the ap->lock.  The lock is held by the ata
      ->queuecommand() path.  mvsas drops it prior to acquiring any internal
      locks which allows it to hold its internal lock across calls to
      task->task_done().  This capability is important as it is the only way
      the driver can flush task->task_done() instances to guarantee that it no
      longer has any in-flight references to a domain_device at
      ->lldd_dev_gone() time.
      Signed-off-by: NDan Williams <dan.j.williams@intel.com>
      Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
      312d3e56
    • D
      [SCSI] libsas: introduce sas_drain_work() · b1124cd3
      Dan Williams 提交于
      When an lldd invokes ->notify_port_event() it can trigger a chain of libsas
      events to:
      
        1/ form the port and find the direct attached device
      
        2/ if the attached device is an expander perform domain discovery
      
      A call to flush_workqueue() will only flush the initial port formation work.
      Currently libsas users need to call scsi_flush_work() up to the max depth of
      chain (which will grow from 2 to 3 when ata discovery is moved to its own
      discovery event).  Instead of open coding multiple calls switch to use
      drain_workqueue() to flush sas work.
      
      drain_workqueue() does not handle new work submitted during the drain so
      libsas needs a bit of infrastructure to hold off unchained work submissions
      while a drain is in flight.  A lldd ->notify() event is considered 'unchained'
      while a sas_discover_event() is 'chained'.  As Tejun notes:
      
        "For now, I think it would be best to add private wrapper in libsas to
         support deferring unchained work items while draining."
      Signed-off-by: NDan Williams <dan.j.williams@intel.com>
      Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
      b1124cd3
    • D
      [SCSI] libsas: kill sas_slave_destroy · 6f4e75a4
      Dan Williams 提交于
      Per commit 3e4ec344 "libata: kill ATA_FLAG_DISABLED" needing to set
      ATA_DEV_NONE is a holdover from before libsas converted to the
      "new-style" ata-eh.
      Signed-off-by: NDan Williams <dan.j.williams@intel.com>
      Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
      6f4e75a4
  10. 19 2月, 2012 3 次提交
    • M
      [SCSI] pm8001: deficient responses to IO_XFER_ERROR_BREAK and IO_XFER_OPEN_RETRY_TIMEOUT · 5954d738
      Mark Salyzyn 提交于
      IO_XFER_ERROR_BREAK and IO_XFER_OPEN_RETRY_TIMEOUT are deficient of the
      required actions as outlined in the programming manual for the pm8001. Due to
      the overlapping code requirements of these recovery responses, we found it
      necessary to bundle them together into one patch.
      
      When a break is received during the command phase (ssp_completion), this is a
      result of a timeout or interruption on the bus. Logic suggests that we should
      retry the command.
      
      When a break is received during the data-phase (ssp_event), the task must be
      aborted on the target or it will retain a data-phase lock turning the target
      reticent to all future media commands yet will successfully respond to TUR,
      INQUIRY and ABORT leading eventually to target failure through several
      abort-cycle loops.
      
      The open retry interval is exceedingly short resulting in occasional target
      drop-off during expander resets or when targets push-back during bad-block
      remapping. Increased effective timeout from 130ms to 1.5 seconds for each try
      so as to trigger after the administrative inquiry/tur timeout in the scsi
      subsystem to keep error-recovery harmonics to a minimum.
      
      When an open retry timeout event is received, the action required by the
      targets is to issue an abort for the outstanding command then logic suggests
      we retry the command as this state is usually an indication of a credit block
      or busy condition on the target.
      
      We hijacked the pm8001_handle_event work queue handler so that it will handle
      task as an argument instead of device for the workers in support of the
      deferred handling outlined above.
      
      Moderate to Heavy bad-path testing on a 2.6.32 vintage kernel, compile-testing
      on scsi-misc-2.6 kernel ...
      Signed-off-by: NMark Salyzyn <mark_salyzyn@xyratex.com>
      Acked-by: NJack Wang <jack_wang@usish.com>
      Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
      5954d738
    • M
      [SCSI] pm8001: Add FUNC_GET_EVENTS · d95d0001
      Mark Salyzyn 提交于
      Jack noticed I dropped a patch fragment associated with a flags automatic
      variable in mpi_set_phys_g3_with_ssc (ooops) and that the pre-emptive locking
      that piggy-backed this patch was not in-fact necessary because of underlying
      atomic accesses to the hardware. Here is the updated patch fixing these two
      issues.
      
      The pm8001 driver is missing the FUNC_GET_EVENTS handler in the phy control
      function. Since the pm8001_bar4_shift function was not designed to be called
      at runtime, added locking surrounding the adjustment for all accesses.
      Signed-off-by: NMark Salyzyn <mark_salyzyn@xyratex.com>
      Acked-by: NJack Wang <jack_wang@usish.com>
      Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
      d95d0001
    • M
      [SCSI] pm8001: fix lockup on phy_control hard reset. · 5c4fb76a
      Mark Salyzyn 提交于
      pm8001_phy_control PHY_FUNC_HARD_RESET locks up on second try via
      smp_phy_control because response HW_EVENT_PHY_START_STATUS fails to complete
      previous command. The PM8001F_RUN_TIME flag is not treated as a bit, but a
      state in all readers, yet once we are operational or in the run time state,
      the flags use a bit-set operation.
      Signed-off-by: NMark Salyzyn <mark_salyzyn@xyratex.com>
      Acked-by: NJack Wang <jack_wang@usish.com>
      Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
      5c4fb76a
  11. 04 2月, 2012 1 次提交
  12. 03 10月, 2011 4 次提交
    • D
      [SCSI] isci: export phy events via ->lldd_control_phy() · ac013ed1
      Dan Williams 提交于
      Allow the sas-transport-class to update events for local phys via a new
      PHY_FUNC_GET_EVENTS command to ->lldd_control_phy().  Fixup drivers that
      are not prepared for new enum phy_func values, and unify
      ->lldd_control_phy() error codes.
      
      These are the SAS defined phy events that are reported in a
      smp-report-phy-error-log command:
       * /sys/class/sas_phy/<phyX>/invalid_dword_count
       * /sys/class/sas_phy/<phyX>/running_disparity_error_count
       * /sys/class/sas_phy/<phyX>/loss_of_dword_sync_count
       * /sys/class/sas_phy/<phyX>/phy_reset_problem_count
      Signed-off-by: NDan Williams <dan.j.williams@intel.com>
      Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
      ac013ed1
    • M
      [SCSI] pm8001: missing break statements · 6fbc7692
      Mark Salyzyn 提交于
      Code Inspection: found two missing break directives. First one will
      result in not retrying an a task that report
      IO_OPEN_CNX_ERROR_HW_RESOURCE_BUSY, the second will result in cosmetic
      debug printk conflicting statement stutter. Because checkpatch.pl came
      up with a warning regarding unnecessary space before a newline on one of
      the fragments associated with the diff context, I took the liberty of
      fixing all the cases of this issue in the pair of files touched by this
      defect. These cosmetic changes hide the break changes :-(
      
      To help focus, break changes are in pm8001_hwi.c fragment line 1649 for
      the IO_OPEN_CNX_ERROR_HW_RESOURCE_BUSY case statement and pm8001_sas.c
      line 1000 deals with the conflicting debug print stutter.
      Signed-off-by: NMark Salyzyn <mark_salyzyn@us.xyratex.com>
      Acked-by: NJack Wang <jack_wang@usish.com>
      Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
      6fbc7692
    • M
      [SCSI] pm8001: fix DEV_IS_GONE infinite retry · b90b378a
      Mark Salyzyn 提交于
      On the pm8001, when a device is in the process of going away (device
      power off or hot plug), depending on the timing, the driver would return
      SAS_PHY_DOWN as the return value to the queuecommand DEV_IS_GONE logic.
      The net result is an near infinite retry (especially if SAS debugging is
      enabled), the logs will fill with:
      
      kernel: mpi_ssp_completion 2119:e21:SSP IO status 0x13 tag 0xcc1c0000
      dlen=90 param=0xe
      kernel: wwn=5000c50034069e86  cdb=12 00 00 00 5a 00 00 00 00 00 00 00 00
      00 00 00
      kernel: sas: lldd_execute_task returned: 138
      kernel: sas: lldd_execute_task returned: 138
      kernel: sas: lldd_execute_task returned: 138
      kernel: sas: lldd_execute_task returned: 138
      kernel: sas: lldd_execute_task returned: 138
      kernel: sas: lldd_execute_task returned: 138
      kernel: sas: lldd_execute_task returned: 138
      . . .
      
      This patch changes to leverage the port_attached logic to complete the
      command with a status of PHY_DOWN so that the disposition can be handled
      immediately and correctly.
      Signed-off-by: NMark Salyzyn <mark_salyzyn@us.xyratex.com>
      Acked-by: NJack Wang <jack_wang@usish.com>
      Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
      b90b378a
    • D
      [SCSI] pm8001: remove pm8001_slave_{alloc|configure} · 11e16364
      Dan Williams 提交于
      libsas handles:
      1/ limiting ata scanning to lun0
      2/ changes to /sys/block/<sdX>/device/queue_depth for ata devices
      
      libata handles turning off ncq globally via kernel command line
      (libata.force=noncq) or sysfs (echo 1 >
      /sys/block/<sdX>/device/queue_depth).  A lldd specific compile option is
      not necessary.
      
      Cc: Jack Wang <jack_wang@usish.com>
      Signed-off-by: NDan Williams <dan.j.williams@intel.com>
      Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
      11e16364
  13. 27 8月, 2011 1 次提交
  14. 27 7月, 2011 1 次提交
  15. 10 4月, 2011 1 次提交
  16. 31 3月, 2011 1 次提交
  17. 13 2月, 2011 1 次提交
    • T
      [SCSI] pm8001: simplify workqueue usage · 429305e4
      Tejun Heo 提交于
      pm8001 manages its own list of pending works and cancel them on device
      free.  It is unnecessarily complex and has a race condition - the
      works are canceled but not synced, so the work could still be running
      during and after the data structures are freed.
      
      This patch simplifies workqueue usage.
      
      * A driver specific workqueue pm8001_wq is created to serve these
        work items.
      
      * To avoid confusion, the "queue" suffixes are dropped from work items
        and functions.
      
      * Delayed queueing was never used.  pm8001_work now uses work_struct
        instead.
      
      * The driver no longer keeps track of pending works.  All pm8001_works
        are queued to pm8001_wq and the workqueue is flushed as necessary.
      
      flush_scheduled_work() usage is removed during conversion.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Acked-by: NJack Wang <jack_wang@usish.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@suse.de>
      429305e4
  18. 18 11月, 2010 1 次提交