1. 20 4月, 2008 1 次提交
  2. 12 2月, 2008 1 次提交
  3. 24 1月, 2008 7 次提交
    • S
      [SCSI] aacraid: add Voodoo Lite class of cards. · cb1042f2
      Salyzyn, Mark 提交于
      The cards being added are supported in a limited sense already through
      family matching, but we needed to add some functionality to the driver
      to expose selectively the physical drives. These Physical drives are
      specifically marked to not be part of any array and thus are declared
      JBODs (Just a Bunch Of Drives) for generic SCSI access.
      
      We report that this is the second patch in a set of two, but merely
      depends on the stand-alone functionality of the first patch which adds
      in that case the ability to report a driver feature flag via sysfs. We
      leverage that functionality by reporting that this driver now supports
      this new JBOD feature for the controller so that the array management
      applications may react accordingly and guide the user as they manage
      the controller.
      Signed-off-by: NMark Salyzyn <aacraid@adaptec.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      cb1042f2
    • S
      [SCSI] aacraid: remove pigs in space · 8ce3eca4
      Salyzyn, Mark 提交于
      I was amazed at how much embedded space was present in the aacraid
      driver source files. Just selected five files from the set to clean up
      for now and the attached patch swelled to 73K in size!
      
      - Removed trailing space or tabs
      - Removed spaces embedded within tabs
      - Replaced leading 8 spaces with tabs
      - Removed spaces before )
      - Removed ClusterCommand as it was unused (noticed it as one triggered by above)
      - Replaced scsi_status comparison with 0x02, to compare against SAM_STATUS_CHECK_CONDITION.
      - Replaced a long series of spaces with tabs
      - Replaced some simple if...defined() with ifdef/ifndef
      Signed-off-by: NMark Salyzyn <aacraid@adaptec.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      8ce3eca4
    • S
      [SCSI] aacraid: respond to enclosure service events · 0995ad38
      Salyzyn, Mark 提交于
      Added support to respond to enclosure service events
      (controller AIFs) to add, online or offline physical targets
      reported to sg. Also added online and offlining of arrays.
      Removed an automatic variable definition in a sub block that
      hid an earlier definition, determined to be inert as the
      sub-block use did not interfere. Bumped the driver versioning
      to stamp the addition of this feature.
      Signed-off-by: NMark Salyzyn <aacraid@adaptec.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      0995ad38
    • S
      [SCSI] aacraid: OS panic after Adapter panic (hardening). · b6ef70f3
      Salyzyn, Mark 提交于
      In experiments in the lab we managed to trigger an Adapter firmware
      panic (BlinkLED) coincidentally while several pass-through ioctl
      command from the management software were outstanding on a bug only
      present on a class of RAID Adapters that require a hardware reset
      rather than a commanded reset. The net result was an attempt to time
      out the management software command as if it came from the SCSI layer
      resulting in an OS panic.
      
      Adapters that use commanded reset, management commands are returned
      failed by the Adapter correctly. The adapter firmware panic that
      resulted in this condition was also resolved, and there were no
      adapters in the field with this specific firmware bug so we do not
      expect any field reports. This is a rare or unlikely corner condition,
      and no reports have ever been forwarded from the field.
      Signed-off-by: NMark Salyzyn <aacraid@adaptec.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      b6ef70f3
    • S
      [SCSI] aacraid: fix big endian issues · a3940da5
      Salyzyn, Mark 提交于
      Big endian systems issues discovered in the aacraid driver. Somewhat
      reverses a patch from November 7th of last year that removed swap
      operations because they formerly were being assigned to an u8 array
      when they should have been assigned to an le32 array.
      
      This patch is largely inert for any little endian processor
      architecture. It resolves a bug in delivering the BlinkLED AIF event
      to registered applications when the adapter or associated hardware was
      reset due to ill health. A rare corner case occurrence, also largely
      unnoticed by any as it was a new (untested!) feature.
      Signed-off-by: NMark Salyzyn <aacraid@adaptec.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      a3940da5
    • S
      [SCSI] aacraid: add sysfs report of RAID level · 17eaacee
      Salyzyn, Mark 提交于
      Report the RAID level string for the SCSI device representing the
      array. Report is in /sys/class/scsi_device/#:#:#:#/device/level.
      Signed-off-by: NMark Salyzyn <aacraid@adaptec.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      17eaacee
    • S
      [SCSI] aacraid: add parameter to control FUA and SYNCHRONIZE_CACHE policy · 95e852e1
      Salyzyn, Mark 提交于
      aacraid.cache parameter, Disable Queue Flush commands:
              bit 0 - Disable FUA in WRITE SCSI commands
              bit 1 - Disable SYNCHRONIZE_CACHE SCSI command
              bit 2 - Disable only if Battery not protecting adapter supplied Cache
      
      e.g.: aacraid.cache=7 will disable the FUA and SYNCHRONIZE_CACHE
      commands if the adapter has reported that it's cache is battery backed
      up.
      
      This parameter permits experimentation with tradeoffs between
      performance and caching policy.
      Signed-off-by: NMark Salyzyn <aacraid@adaptec.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      95e852e1
  4. 12 1月, 2008 1 次提交
    • S
      [SCSI] aacraid: fix driver failure with Dell PowerEdge Expandable RAID Controller 3/Di · 94cf6ba1
      Salyzyn, Mark 提交于
      As reported in http://bugzilla.kernel.org/show_bug.cgi?id=3D9133 it was
      discovered that the PERC line of controllers lacked a key 64 bit
      ScatterGather capable SCSI pass-through function. The adapters are still
      capable of 64 bit ScatterGather I/O commands, but these two can not be
      mixed. This problem was exacerbated by the introduction of the SCSI
      Generic access to the DASD physical devices.
      
      The fix for users before this patch is applied is aacraid.dacmode=3D0 on
      the kernel command line to disable 64 bit I/O.
      
      The enclosed patch introduces a new adapter quirk and tries to limp
      along by enabling pass-through in situations where memory is 32 bit
      addressable on 64 bit machines, or disable the pass-through functions
      altogether. I expect that the check for 32 bit addressable memory to be
      controversial in that it can be incorrect in non-Dell non-Intel systems
      that PERC would never be installed under, the alternative is to disable
      pass-through in all cases which could be reported as another regression.
      
      Pass-through is used for SCSI Generic access to the physical devices, or
      for the management applications to properly function.
      
      In systems where this patch has disabled pass-through because it is
      unsupportable in combination with I/O performance, the user can choose
      to enable pass-through by turning off dacmode (aacraid.dacmode=3D0) or
      limiting the discovered kernel memory (mem=3D4G) with an associated loss
      in runtime performance. If we chose instead to turn off 64 bit dacmode
      for the adapters with this quirk, then this would be reported as another
      regression.
      Signed-off-by: NMark Salyzyn <aacraid@adaptec.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      94cf6ba1
  5. 20 10月, 2007 1 次提交
  6. 13 10月, 2007 1 次提交
  7. 27 7月, 2007 1 次提交
  8. 19 7月, 2007 1 次提交
    • S
      [SCSI] aacraid: add vpd to inquiry · 88e2f98e
      Salyzyn, Mark 提交于
      Report VPD inquiry page 0x80 with an unique array creation serial
      number (CUID). When an array is created, the metadata stored on the
      physical drives gets an unique serial number. This serial number
      remains constant through array morphing or migration to other
      controllers.  This patch is a forward port and modification to survive
      morphing and migration operations, of a similar piece of
      (un-attributed author) code added to the SLES10 SP1 aacraid driver.
      
      To test the results of the patch, observe that /dev/disk/by-id/
      entries will show up for the arrays resulting from the udev rules.
      Also, as per the udev rules, 'scsi_id -g -x -a -s /block/sd? -d
      /dev/sd?'  will report the ID_SERIAL as constructed from the inquiry
      data.
      
      It was reported to me that the 'ADPT' leading the serial number was bad
      form, that the inquiry vendor field was enough to differentiate the
      storage uniquely. Subsequent search found that another Adaptec AAC based
      driver reported the 8 hex serial number only without such adornments, so
      dropped ADPT to match. Resubmitting the patch with this alteration.
      Signed-off-by: NMark Salyzyn <aacraid@adaptec.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      88e2f98e
  9. 20 6月, 2007 1 次提交
  10. 18 6月, 2007 1 次提交
  11. 24 5月, 2007 1 次提交
  12. 23 5月, 2007 1 次提交
    • S
      [SCSI] aacraid: apply commit config for reset_devices flag · 1208bab5
      Salyzyn, Mark 提交于
      Under some conditions associated with the unclean transition to kdump,
      the aacraid adapters will view the array as foreign and not export it to
      prevent access and data manipulation. The solution is to submit a commit
      configuration to export the devices since this is a expected behavior
      when transitioning to a kdump kernel.
      
      This patch adds the aacraid.reset_devices flag and when either this or
      the global reset_devices flag is set, ensures that a commit config is
      issued and extends the startup_timeout if it is set less than 5 minutes.
      Signed-off-by: NMark Salyzyn <aacraid@adaptec.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      1208bab5
  13. 22 5月, 2007 1 次提交
    • S
      [SCSI] aacraid: add support for FUA · 9d399cc7
      Salyzyn, Mark 提交于
      Back in the beginning of last year we disabled mode page 8 and mode page
      3f requests through device quirk bits instead of enhancing the driver to
      respond to these mode pages because there was no apparent added value.
      
      The Firmware that supports the new communication commands supports the
      ability to force a write around of the adapter cache on a command by
      command basis. In the attached patch we enable mode page 8 and 3f and
      spoof the results as needed in order to *convince* the layers above to
      submit writes with the FUA (Force Unit Attention) bit set if the file
      system or application requires it, if the Firmware supports the write
      through, or instead to submit a SYNCHRONIZE_CACHE if the Firmware does
      not. The added value here is for file systems that benefit from this
      functionality and for clustering or redundancy scenarios.
      
      Caveats: By convince, we are responding with a minimal short 3 byte
      content mode page 8, with only the data the SCSI layer needs and that we
      can fill confidently. Applications that require the customarily larger
      mode page 8 results may be confused by this(?). The FUA, or the
      SYNCHRONIZE_CACHE only affect the cache on the controller. Our firmware
      by default ensure that the underlying physical drives of the array have
      their cache turned off so normally this is not a problem.
      
      This attached patch is against current scsi-misc-2.6 and was unit tested
      on RHEL5. Since this is a feature enhancement, it should not be
      considered for any current stabilization efforts.
      Signed-off-by: NMark Salyzyn <aacraid@adaptec.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      9d399cc7
  14. 17 5月, 2007 1 次提交
  15. 01 4月, 2007 3 次提交
  16. 22 3月, 2007 1 次提交
    • S
      [SCSI] aacraid: cleanup and version stamp driver · 802ae2f0
      Salyzyn, Mark 提交于
      There is some residual cleanup of the last series of patches and the
      need to bump the revision number to draw the line in the sand.
      
      The cmd->SCp.phase is set in the aac_valid_context routine, then set
      again to the same value following it's return. The cmd->scsi_done is set
      twice in the aac_queuecommand routine. Free up the scsidev FILO in
      aac_probe_container as it is not needed further down the function in any
      case. Improve the efficiency of the abort handler kernel print
      parameters. Bump revision number of driver to approximate the equivalent
      in the Adaptec supplied version.
      Signed-off-by: NMark Salyzyn <aacraid@adaptec.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      802ae2f0
  17. 20 3月, 2007 3 次提交
    • M
      [SCSI] aacraid: Improved error handling · 03d44337
      Mark Haverkamp 提交于
      Received from Mark Salyzyn,
      
      This set of fixes improve error handling stability of the driver. A popular
      manifestation of the problems is an NULL pointer reference in the interrupt
      handler when referencing portions of the scsi command context, or in the
      scsi_done handling when an offlined device is referenced.
      
      The aacraid driver currently does not get notification of orphaned command
      completions due to devices going offline. The driver also fails to handle the
      commands that are finished by the error handler, and thus can complete again
      later at the hands of the adapter causing situations of completion of an
      invalid scsi command context. Test Unit Ready calls abort assuming that the
      abort was successful, but are not, and thus when the interrupt from the adapter
      occurs, they reference invalid command contexts. We add in a TIMED_OUT flag to
      inform the aacraid FIB context that the interrupt service should merely release
      the driver resources and not complete the command up. We take advantage of this
      with the abort handler as well for select abortable commands. And we detect and
      react if a command that can not be aborted is currently still outstanding to
      the controller when reissued by the retry mechanism.
      Signed-off-by: NMark Haverkamp <markh@linux-foundation.org>
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      03d44337
    • M
      [SCSI] aacraid: Fix struct element name issue · a8166a52
      Mark Haverkamp 提交于
      Received from Mark Salyzyn,
      
      This patch is to resolve a namespace issue that will result from a patch
      expected in the future that adds a new interface; rationalized as
      correcting a long term issue where hw_fib, instead of hw_fib_va, refers
      to the virtual address space and hw_fib_pa refers to the physical
      address space. A small fragment of this patch also cleans up an unused
      variable that was close to the patch fragments.
      Signed-off-by: NMark Haverkamp <markh@linux-foundation.org>
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      a8166a52
    • M
      [SCSI] aacraid: add restart adapter platform function · 8418852d
      Mark Haverkamp 提交于
      Received from Mark Salyzyn,
      
      This patch updates the adapter restart function to deal with some
      adapters that have specific IOP reset needs. Since the code for
      restarting the adapter was in two places, changed over to utilizing a
      platform function in one place.
      Signed-off-by: NMark Haverkamp <markh@linux-foundation.org>
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      8418852d
  18. 27 1月, 2007 3 次提交
  19. 23 11月, 2006 1 次提交
  20. 24 9月, 2006 2 次提交
  21. 20 8月, 2006 2 次提交
  22. 20 6月, 2006 1 次提交
  23. 20 5月, 2006 2 次提交
    • M
      [SCSI] aacraid: remove unneeded list · 5b9851b5
      Mark Haverkamp 提交于
      Received From Mark Salyzyn
      
      The queue tracking is just not being used, not even for debugging. Information
      about outstanding commands can be acquired from the scsi structures.
      Signed-off-by: NMark Haverkamp <markh@osdl.org>
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      5b9851b5
    • M
      [SCSI] aacraid: adjustable timeouts · 404d9a90
      Mark Haverkamp 提交于
      Received From Mark Salyzyn
      
      Add the ability to adjust for unusual corner case failures. Both of
      these additional module parameters deal with embedded, non-intel or
      complicated system scenarios.
      
      Aif_timeout can be increased past the default 2 minute timeout to drop
      application registrations when a system has an unusually high event load
      resulting from continuing management requests, or simultaneous builds,
      or sluggish user space as a result of system load.
      
      Startup_timeout can be increased past the default 3 minute timeout to
      drop an adapter initialization for systems that have a very large number
      of targets, or slow to spin-up targets, or a complicated set of array
      configurations that extend the time for the firmware to declare that it
      is operational. This timeout would only have an affect on non-intel
      based systems, as the (more patient) BIOS would generally be where the
      startup delay would be dealt with.
      Signed-off-by: NMark Haverkamp <markh@osdl.org>
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      404d9a90
  24. 13 4月, 2006 2 次提交