1. 27 7月, 2011 1 次提交
    • J
      [SCSI] lpfc 8.3.25: Enhancements to Debug infrastructure · b76f2dc9
      James Smart 提交于
      Enhancements to Debug infrastructure
      
      - debugfs additions for new hardware.
      - Correct stack overflow in lpfc_debugfs_dumpHBASlim_data()
      - Correct warning on uninitialized reg_val in lpfc_idiag_drbacc_write()
      - Separated the iDiag command for capturing mailbox commands for generic
        issue mailbox command entry point and for BSG multi-buffer handling.
      - Added capturing dumping capabiliy of mailbox command and external buffer
        for the completion of the mailbox command so that the outcome can be
        examined.
      - Changed all the iDiag command structure data array indexing introduced so
        far with properly defined macros.
      - Added SLI4 device PCI BAR memory mapped register read/browse, write-by-
        value, set-bit, and clear-bit methods for both interface type 0 and
        interface type 2.
      - Corrected warnings on mbxstatus being uninitialized in error paths in
        lpfc_bsg.c
      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>
      b76f2dc9
  2. 29 6月, 2011 1 次提交
  3. 27 5月, 2011 1 次提交
    • 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
  4. 02 5月, 2011 1 次提交
  5. 31 3月, 2011 1 次提交
  6. 19 2月, 2011 2 次提交
  7. 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
  8. 05 12月, 2009 1 次提交
    • J
      [SCSI] lpfc 8.3.5: fix sysfs parameters, vport creation and other bugs and update logging · 6a9c52cf
      James Smart 提交于
      This patch include the following fixes and changes:
      - Fix crash when "error" is echoed to board_mode sysfs parameter
      - Fix FCoE Parameter parsing in regions 23
      - Fix driver crash when creating vport with large number of targets on SLI4
      - Fix bug with npiv message being logged when it is not supported by the adapter
      - Fix a potential dereferencing mailbox structure after free bug
      - Fix firmware crash after vport create with high target count
      - Error out requests to set board_mode to warm restart via sysfs on SLI4 HBAs
      - Fix Block guard logging
      - Fix a memory corruption issue during GID_FT IO prep
      - Fix crash while processing unsolicited FC frames
      - Fix failed to allocate XRI message is not a critical failure
      - Update and fix formatting in some log messages
      - Fix missing new line characters in log messages
      - Removed the use of the locally defined FC transport layer related macros
      - Check the rsplen in lpfc_handle_fcp_err function before using rsplen
      Signed-off-by: NJames Smart <james.smart@emulex.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@suse.de>
      6a9c52cf
  9. 16 6月, 2009 1 次提交
    • G
      debugfs: Fix terminology inconsistency of dir name to mount debugfs filesystem. · 156f5a78
      GeunSik Lim 提交于
      Many developers use "/debug/" or "/debugfs/" or "/sys/kernel/debug/"
      directory name to mount debugfs filesystem for ftrace according to
      ./Documentation/tracers/ftrace.txt file.
      
      And, three directory names(ex:/debug/, /debugfs/, /sys/kernel/debug/) is
      existed in kernel source like ftrace, DRM, Wireless, Documentation,
      Network[sky2]files to mount debugfs filesystem.
      
      debugfs means debug filesystem for debugging easy to use by greg kroah
      hartman. "/sys/kernel/debug/" name is suitable as directory name
      of debugfs filesystem.
      - debugfs related reference: http://lwn.net/Articles/334546/
      
      Fix inconsistency of directory name to mount debugfs filesystem.
      
      * From Steven Rostedt
        - find_debugfs() and tracing_files() in this patch.
      Signed-off-by: NGeunSik Lim <geunsik.lim@samsung.com>
      Acked-by     : Inaky Perez-Gonzalez <inaky@linux.intel.com>
      Reviewed-by  : Steven Rostedt <rostedt@goodmis.org>
      Reviewed-by  : James Smart <james.smart@emulex.com>
      CC: Jiri Kosina <trivial@kernel.org>
      CC: David Airlie <airlied@linux.ie>
      CC: Peter Osterlund <petero2@telia.com>
      CC: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
      CC: Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com>
      CC: Masami Hiramatsu <mhiramat@redhat.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      156f5a78
  10. 09 6月, 2009 3 次提交
  11. 27 4月, 2009 2 次提交
    • 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
    • J
  12. 13 3月, 2009 1 次提交
  13. 30 12月, 2008 2 次提交
  14. 13 10月, 2008 4 次提交
  15. 24 8月, 2008 1 次提交
  16. 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
  17. 24 1月, 2008 1 次提交
  18. 12 1月, 2008 1 次提交
    • 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
  19. 18 10月, 2007 1 次提交
  20. 13 10月, 2007 2 次提交
  21. 02 8月, 2007 5 次提交
  22. 18 6月, 2007 1 次提交
    • J
      [SCSI] lpfc: bug fixes · 858c9f6c
      James Smart 提交于
       Following the NPIV support, the following changes have been accumulated
       in the testing and qualification of the driver:
      
       - Fix affinity of ELS ring to slow/deferred event processing
       - Fix Ring attention masks
       - Defer dev_loss_tmo timeout handling to worker thread
       - Consolidate link down error classification for better error checking
       - Remove unused/deprecated nlp_initiator_tmr timer
       - Fix for async scan - move adapter init code back into pci_probe_one
         context. Fix async scan interfaces.
       - Expand validation of ability to create vports
       - Extract VPI resource cnt from firmware
       - Tuning of Login/Reject policies to better deal with overwhelmned targets
       - Misc ELS and discovery fixes
       - Export the npiv_enable attribute to sysfs
       - Mailbox handling fix
       - Add debugfs support
       - A few other small misc fixes:
          - wrong return values, double-frees, bad locking
       - Added adapter failure heartbeat
      Signed-off-by: NJames Smart <James.Smart@emulex.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      858c9f6c