1. 17 5月, 2012 3 次提交
  2. 27 3月, 2012 4 次提交
  3. 19 2月, 2012 1 次提交
  4. 15 12月, 2011 2 次提交
  5. 01 11月, 2011 1 次提交
  6. 17 10月, 2011 2 次提交
    • J
      [SCSI] lpfc 8.3.27: T10 additions for SLI4 · f9bb2da1
      James Smart 提交于
      Added T10 DIFF error injection code.
      Added T10 DIFF structure definitions for SLI4 devices.
      Signed-off-by: NAlex Iannicelli <alex.iannicelli@emulex.com>
      Signed-off-by: NJames Smart <james.smart@emulex.com>
      Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
      f9bb2da1
    • J
      [SCSI] lpfc 8.3.27: Miscellanous logic and interface fixes · 73d91e50
      James Smart 提交于
      Miscellanous logic and interface fixes
      
      - Fix lpfc_init_vfi_cmpl to check the interface type for interface type 0
        before parsing the results.
      - Cast uint32_t values that are multiplied to uint64_t before the
        multiplication.
      - Instead of "break" statement when PCI read returned error, use the goto
        statement to the end of the routine after setting return value
      - moved the msleep(10) to the beginning of the wait loop for checking the
        SLIPort_Status register
      - Added the code to follow the existing wait for SLIPort_Status register RDY,
        ERR, and RN bits to be set by the port before proceeding to perform PCI
        function reset.
      - Do not override ulpCt_h and ulpCt_l for SLI 4 ports.
      - For vport delete, call lpfc_nlp_put when the vport's vpi state is not
        marked with VPI_REGISTERED.
      - Added missed fields into the driver's Controller Attributes Structure
      - Changed ringing EQ/CQ/RQ doorbell register to be dependent on the size
        of the queue.
      - Return -EACCES in issue_reset if cfg_enable_hba_reset is zero.
      - Added new logging flag LOG_FCP_UNDER 0x00040000 to qualify underrun logging.
      - Add a check in the fabric name display routine to display 0 if the port
        state is <= FLOGI.
      - Add a check to the switch statement in lpfc_decode_firmware_rev to check
        for an 'X'.
      Signed-off-by: NAlex Iannicelli <alex.iannicelli@emulex.com>
      Signed-off-by: NJames Smart <james.smart@emulex.com>
      Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
      73d91e50
  7. 29 8月, 2011 1 次提交
  8. 27 7月, 2011 1 次提交
  9. 27 5月, 2011 2 次提交
    • J
      [SCSI] lpfc 8.3.24: Add resource extent support · 6d368e53
      James Smart 提交于
      This patch adds support for hardware that returns resource ids via
      extents rather than contiguous ranges.
      
      [jejb: checkpatch.pl fixes]
      Signed-off-by: NAlex Iannicelli <alex.iannicelli@emulex.com>
      Signed-off-by: NJames Smart <james.smart@emulex.com>
      Signed-off-by: NJames Bottomley <jbottomley@parallels.com>
      6d368e53
    • J
      [SCSI] lpfc 8.3.24: Miscellaneous Fixes and Corrections · 0558056c
      James Smart 提交于
      Miscellaneous Fixes and Corrections
      - Remove the memset in the lpfc_sli4_remove_rpi_hdrs call.
      - Correct swapping of SGE word 2 relative to offset value
      - Reorganize CQ and EQ usage to comply with SLI4 Specification.
      - Expand the driver to check the rn bit. Only detect an error if the error bit
        is set and the RN bit is NOT set.
      - If mailbox completion code is not success AND the mailbox status is success,
        then and only then will the driver overwrite the mailbox status.
      - When driver initializing device, if the device is on a PCIe bus, set
        PCI's "needs fundamental reset" bit so that EEH uses fundamental reset
        instead of hot reset for recovery.
      - Prevent driver from using new WWN when changed in firmware (until driver
        reload)
      - When HBA reports maximum SGE size > 0xffffffff (infinite), override
        with 0x80000000.
      - Fixed potential missed SLI4 device initialization failure conditions.
      - Added 100ms delay before driver action following IF_TYPE_2 function reset.
      - Reverted patch to UNREG/REG on PLOGI to mapped/unmapped node.
      - Add a check for the CVL received flag in the fcf inuse routine to avoid
        unregistering the fcf if Devloss fires before Delay discover timer fires.
      Signed-off-by: NAlex Iannicelli <alex.iannicelli@emulex.com>
      Signed-off-by: NJames Smart <james.smart@emulex.com>
      Signed-off-by: NJames Bottomley <jbottomley@parallels.com>
      0558056c
  10. 01 5月, 2011 1 次提交
  11. 31 3月, 2011 1 次提交
  12. 24 3月, 2011 2 次提交
  13. 01 3月, 2011 2 次提交
  14. 19 2月, 2011 3 次提交
  15. 22 12月, 2010 1 次提交
  16. 17 11月, 2010 1 次提交
    • J
      SCSI host lock push-down · f281233d
      Jeff Garzik 提交于
      Move the mid-layer's ->queuecommand() invocation from being locked
      with the host lock to being unlocked to facilitate speeding up the
      critical path for drivers who don't need this lock taken anyway.
      
      The patch below presents a simple SCSI host lock push-down as an
      equivalent transformation.  No locking or other behavior should change
      with this patch.  All existing bugs and locking orders are preserved.
      
      Additionally, add one parameter to queuecommand,
      	struct Scsi_Host *
      and remove one parameter from queuecommand,
      	void (*done)(struct scsi_cmnd *)
      
      Scsi_Host* is a convenient pointer that most host drivers need anyway,
      and 'done' is redundant to struct scsi_cmnd->scsi_done.
      
      Minimal code disturbance was attempted with this change.  Most drivers
      needed only two one-line modifications for their host lock push-down.
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      Acked-by: NJames Bottomley <James.Bottomley@suse.de>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      f281233d
  17. 26 10月, 2010 1 次提交
  18. 08 10月, 2010 1 次提交
  19. 06 9月, 2010 1 次提交
  20. 07 8月, 2010 1 次提交
  21. 28 7月, 2010 6 次提交
  22. 12 4月, 2010 1 次提交
  23. 30 3月, 2010 1 次提交
    • T
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking... · 5a0e3ad6
      Tejun Heo 提交于
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
      
      percpu.h is included by sched.h and module.h and thus ends up being
      included when building most .c files.  percpu.h includes slab.h which
      in turn includes gfp.h making everything defined by the two files
      universally available and complicating inclusion dependencies.
      
      percpu.h -> slab.h dependency is about to be removed.  Prepare for
      this change by updating users of gfp and slab facilities include those
      headers directly instead of assuming availability.  As this conversion
      needs to touch large number of source files, the following script is
      used as the basis of conversion.
      
        http://userweb.kernel.org/~tj/misc/slabh-sweep.py
      
      The script does the followings.
      
      * Scan files for gfp and slab usages and update includes such that
        only the necessary includes are there.  ie. if only gfp is used,
        gfp.h, if slab is used, slab.h.
      
      * When the script inserts a new include, it looks at the include
        blocks and try to put the new include such that its order conforms
        to its surrounding.  It's put in the include block which contains
        core kernel includes, in the same order that the rest are ordered -
        alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
        doesn't seem to be any matching order.
      
      * If the script can't find a place to put a new include (mostly
        because the file doesn't have fitting include block), it prints out
        an error message indicating which .h file needs to be added to the
        file.
      
      The conversion was done in the following steps.
      
      1. The initial automatic conversion of all .c files updated slightly
         over 4000 files, deleting around 700 includes and adding ~480 gfp.h
         and ~3000 slab.h inclusions.  The script emitted errors for ~400
         files.
      
      2. Each error was manually checked.  Some didn't need the inclusion,
         some needed manual addition while adding it to implementation .h or
         embedding .c file was more appropriate for others.  This step added
         inclusions to around 150 files.
      
      3. The script was run again and the output was compared to the edits
         from #2 to make sure no file was left behind.
      
      4. Several build tests were done and a couple of problems were fixed.
         e.g. lib/decompress_*.c used malloc/free() wrappers around slab
         APIs requiring slab.h to be added manually.
      
      5. The script was run on all .h files but without automatically
         editing them as sprinkling gfp.h and slab.h inclusions around .h
         files could easily lead to inclusion dependency hell.  Most gfp.h
         inclusion directives were ignored as stuff from gfp.h was usually
         wildly available and often used in preprocessor macros.  Each
         slab.h inclusion directive was examined and added manually as
         necessary.
      
      6. percpu.h was updated not to include slab.h.
      
      7. Build test were done on the following configurations and failures
         were fixed.  CONFIG_GCOV_KERNEL was turned off for all tests (as my
         distributed build env didn't work with gcov compiles) and a few
         more options had to be turned off depending on archs to make things
         build (like ipr on powerpc/64 which failed due to missing writeq).
      
         * x86 and x86_64 UP and SMP allmodconfig and a custom test config.
         * powerpc and powerpc64 SMP allmodconfig
         * sparc and sparc64 SMP allmodconfig
         * ia64 SMP allmodconfig
         * s390 SMP allmodconfig
         * alpha SMP allmodconfig
         * um on x86_64 SMP allmodconfig
      
      8. percpu.h modifications were reverted so that it could be applied as
         a separate patch and serve as bisection point.
      
      Given the fact that I had only a couple of failures from tests on step
      6, I'm fairly confident about the coverage of this conversion patch.
      If there is a breakage, it's likely to be something in one of the arch
      headers which should be easily discoverable easily on most builds of
      the specific arch.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Guess-its-ok-by: NChristoph Lameter <cl@linux-foundation.org>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
      5a0e3ad6