1. 10 4月, 2013 1 次提交
  2. 30 1月, 2013 1 次提交
  3. 15 9月, 2012 1 次提交
  4. 17 5月, 2012 1 次提交
  5. 27 3月, 2012 2 次提交
  6. 19 2月, 2012 2 次提交
  7. 15 12月, 2011 1 次提交
    • J
      [SCSI] Lpfc 8.3.28: FC and SCSI Discovery Fixes · df9e1b59
      James Smart 提交于
      FC and SCSI Discovery Fixes:
      
      - Clear the virtual fabrics bit (word 1 bit 30) when sending the FLOGI
        and FDISC. (CR 124339)
      - Return a MLQUEUE_DEVICE_BUSY if the driver detects that an I/O is being
        retried too quickly (CR 124668)
      - Remove NDLP reference put in lpfc_cmpl_els_logo_acc for all but fabric
        nodes (CR 123924)
      - Only retry FDISCs every second and stop retrying after devloss number
        of retries (CR 13939)
      - Check to see if vports are unloading before adding them to the vport
        work array. (CR 124996)
      - Fixed illegal state transition during driver unload (CR 124191)
      - Added missing protection on setting/clearing of vport->fc_flag bit (CR 126002)
      - Set NPIV flag in lpfc_mbx_process_link_up for all ports sli3 and
        above. (CR 126094)
      - Clear FCP command bytes that are not used. (CR 126209)
      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>
      df9e1b59
  8. 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
  9. 31 3月, 2011 1 次提交
  10. 19 2月, 2011 1 次提交
  11. 22 12月, 2010 1 次提交
  12. 28 7月, 2010 2 次提交
  13. 12 4月, 2010 1 次提交
  14. 11 4月, 2010 1 次提交
  15. 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
  16. 09 2月, 2010 2 次提交
    • J
      [SCSI] lpfc 8.3.8: BugFixes: Discovery relates changes · 695a814e
      James Smart 提交于
      Discovery relates changes:
      - Separated VPI_REGISTERED state of physical port into VFI_REGISTERED and
        VPI_REGISTERED state so that driver can unregister physical port VPI
        independent of VFI.
      - Add code to unregister, re-init and re-register physical port VPI
        when physical port NportID change.
      - Add code to unregister and re-register VPI of a vport when its Nport
        ID change.
      - Add code in FDISC completion path to re-start FLOGI discovery when
        a FDISC complete with LOGIN_REQUIRED reason code.
      - Fix a memory leak in lpfc_init_vpi_cmpl
      - Add code to start a timer for vport to retry FDISC when CVL is received
        by a vport or physical port. If all Nports receive CVLs, then all timers
        are cancelled and a logical link level discovery will be started after
        one second.
      - Flush ELS commands after killing all delayed ELS commands.
      Signed-off-by: NJames Smart <james.smart@emulex.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@suse.de>
      695a814e
    • J
      [SCSI] lpfc 8.3.8: BugFixes: SLI relates changes · 341af102
      James Smart 提交于
      Fix hardware/SLI relates issues:
      - Handle XB bit so that ELS XRIs are not prematurely released.
      - Handle XB bit so that FCP XRIs are not prematurely released.
      - Define new security SLI Commands.
      - Remove unused security SLI commands
      - Skip receive data size parameter check on received FLOGI.
      - Added LPFC_USE_FCPWQIDX flag to iocb to force SLI layer
        to submit abort WQE on same WQ as the command WQE.
      Signed-off-by: NJames Smart <james.smart@emulex.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@suse.de>
      341af102
  17. 05 12月, 2009 1 次提交
    • J
      [SCSI] lpfc 8.3.6 : FC Protocol Fixes · 5ffc266e
      James Smart 提交于
      FC protocol fixes.
       - Fix send sequence logic to handle multi SGL IOCBs.
       - Fix FDISC completion always setting VPORT state to failed.
       - Ported the fix on reporting of max_vpi to uppper layer.
       - Fix incorrect number of Vports allowed to be created.
       - Fixed Dead FCoE port after creating vports.
       - Added handling of ELS request for Reinstate Recovery Qualifier (RRQ)
       - Handle unsolicited CT exchange initiator receiving CT exchange ABTS
       - Migrate LUN queue depth ramp up code to scsi mid-layer.
       - Made ABTS WQE go to the same WQ as the WQE to be aborted.
       - Fix Vport does not rediscover after FCF goes away.
       - Fixed lpfc_unreg_vfi failure after devloss timeout.
       - Fixed RPI bit leak.
       - Fix hbq pointer corruption during target discovery.
      Signed-off-by: NJames Smart <james.smart@emulex.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@suse.de>
      5ffc266e
  18. 15 6月, 2009 1 次提交
  19. 09 6月, 2009 4 次提交
  20. 27 4月, 2009 1 次提交
    • J
      [SCSI] lpfc 8.3.1: misc fixes/changes · a257bf90
      James Smart 提交于
      8.3.1 Fixes/Changes :
      
      - Fix incorrect byte-swapping on word 4 of IOCB (data length) which
        caused LUNs to not be discovered on big-endian (e.g. PPC)
      
      - Remove a bad cast of MBslimaddr which loses the __iomem (sparse)
      
      - Make lpfc_debugfs_mask_disc_trc static (sparse)
      
      - Correct misspelled word BlockGuard in lpfc_logmsg.h comment
      
      - Replaced repeated code segment for canceling IOCBs from a list with
        a function call, lpfc_sli_cancel_iocbs().
      
      - Increased HBQ buffers to support 40KB SSC sequences.
      
      - Added sysfs interface to update speed and topology parameter without
        link bounce.
      
      - Fixed bug with sysfs fc_host WWNs not being updated after changing
        the WWNs.
      
      - Check if the active mailbox is NULL in the beginning of the mailbox
        timeout handler - fixes panic in the mailbox timeout handler while
        running IO stress test
      
      - Fixed system panic in lpfc_pci_remove_one() due to ndlp indirect
        reference to phba through vport
      
      - Removed de-reference of scsi device after call to scsi_done() to fix
        panic in scsi completion path while accessing scsi device after
        scsi_done is called.
      
      - Fixed "Nodelist not empty" message when unloading the driver after
        target reboot test
      
      - Added LP2105 HBA model description
      
      - Added code to print all 16 words of unrecognized ASYNC events
      
      - Fixed memory leak in vport create + delete loop
      
      - Added support for handling dual error bit from HBA
      
      - Fixed a driver NULL pointer dereference in lpfc_sli_process_sol_iocb
      
      - Fixed a discovery bug with FC switch reboot in lpfc_setup_disc_node
      
      - Take NULL termintator into account when calculating available buffer space
      Signed-off-by: NJames Smart <james.smart@emulex.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      a257bf90
  21. 30 12月, 2008 1 次提交
    • J
      [SCSI] lpfc 8.3.0 : Fix several minor issues · eaf15d5b
      James Smart 提交于
      - Avoid polling HBA Error Attention when HBA's PCI channel is offline
        due to PCI EEH
      
      - Fix handling of RSCN with non-zero event qualifiers
      
      - Remove unnecessary sleeps during HBA initialization which slow down
        driver load
      
      - Fix internal and external loopback on FCoE HBAs
      
      - Fix incorrect decrement of cmd_pending count in lpfc_queuecomand
        error path
      
      - Fix reporting of port busy events to management application
      
      - Rename lpfc_adjust_queue_depth() to lpfc_rampdown_queue_depth() for
        consistency with its partner lpfc_rampup_queue_depth()
      
      - Delete redundant lpfc_cmd->start_time = jiffies assignment in
        lpfc_queuecommand()
      
      - Fix handling for ELS, mailbox and heartbeat time outs in the worker
        thread by removing unnecessary checking of the work_port_events
        flags.
      
      - Fix NULL pointer dereference in lpfc_prep_els_iocb
      
      - In lpfc_device_recov_npr_node(), move clearing of NLP_NPR_2B_DISC
        flag after call to lpfc_cancel_retry_delay_tmo() to keep
        targets-in-discovery count correct
      
      - Remove lpfc_probe_one()'s call to scsi_scan_host() which could cause
        concurrent SCSI scans to step on each other
      Signed-off-by: NJames Smart <James.Smart@emulex.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      eaf15d5b
  22. 13 10月, 2008 3 次提交
  23. 12 7月, 2008 1 次提交
  24. 10 4月, 2008 1 次提交
    • J
      [SCSI] lpfc 8.2.6 : Multiple discovery fixes · 58da1ffb
      James Smart 提交于
      Multiple Discovery Fixes:
      - Fix race on discovery due to link events coinciding with vport_delete.
      - Use NLP_FABRIC state to filter out switch-based pseudo initiators that
         reuse the same WWNs.
      - Correct erroneous setting of DID=0 in lpfc_matchdid()
      - Correct extra reference count that was in the lookup path for the
        remoteid from an unsolicited ELS.
      - Correct double-free bug in els abort path.
      - Correct FDMI server discovery logic for switch that return a WWN of 0.
      - Fix bugs in ndlp mgmt when a node changes address
      - Correct bug that did not delete RSCNs for vports upon link transitions
      - Fix "0216 Link event during NS query" error which pops up when vports
        are swapped to different switch ports.
      - Add sanity checks on ndlp structures
      - Fix devloss log message to dump WWN correctly
      - Hold off mgmt commands that were interferring with discovery mailbox cmds
      - Remove unnecessary FC_ESTABLISH_LINK logic.
      - Correct some race conditions in the worker thread, resulting in devloss:
        - Clear the work_port_events field before handling the work port events
        - Clear the deferred ring event before handling a deferred ring event
        - Hold the hba lock when waking up the work thread
        - Send an acc for the rscn even when we aren't going to handle it
      - Fix locking behavior that was not properly protecting the ACTIVE flag,
        thus allowing mailbox command order to shift.
      Signed-off-by: NJames Smart <james.smart@emulex.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      58da1ffb
  25. 12 2月, 2008 2 次提交
  26. 24 1月, 2008 2 次提交
  27. 12 1月, 2008 2 次提交
    • J
      [SCSI] lpfc 8.2.3 : Miscellaneous Small Fixes - part 2 · a8adb832
      James Smart 提交于
      Miscellaneous Small Fixes - part 2
      
      - Fix ndlp left in PLOGI state after link up
      - Fix cannot rcv unsol ELS frames after running HBA resets for a few minutes
      - Fix HBQ buffer_count implemention
      - Fix RPI leak
      - Fix crash while deleting vports while HBA is reset
      - Revert the FCP Fbits offset back to 7
      - Fix panic when deleting vports
      - Remove unused code in switch statement outside of a case
      - Reject PLOGI from invalid PName or NName of 0
      - Ignore PLOGI responses from WWPName or WWNName of 0
      - Fix debugfs hbqinfo display for ppc
      - Added 8G to list of supported speeds for sysfs parameter
      - Defer ndlp cleanup to dev-loss timeout handler
      - Added support for WRITE_VPARMS mailbox command by applications
      Signed-off-by: NJames Smart <James.Smart@emulex.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      a8adb832
    • J
      [SCSI] lpfc 8.2.3 : FC Discovery Fixes · 87af33fe
      James Smart 提交于
      FC Discovery Fixes:
      - Fix up lpfc_drop_node() vs lpfc_nlp_not_used() usage
      - Clear ADISC flag when unregistering RPI and REMOVE ndlps if in recovery.
      - Fix usage of UNUSED list and ndlps
      - Fix PLOGI race conditions
      - Reset link if NameServer PLOGI errors occur
      - Synchronize GID_FT queries with PLOGI receptions
      Signed-off-by: NJames Smart <James.Smart@emulex.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      87af33fe