24 Aug, 2008

1 commit


27 Jul, 2008

1 commit


12 Jul, 2008

5 commits

  • Update lpfc driver version to 8.2.7

    Signed-off-by: James Smart
    Signed-off-by: James Bottomley

    James Smart
     
  • Miscellaneous Fixes:
    - Fix bug in mbox sysfs interface that locked in EAGAIN if discovery stalled.
    - Fix missing error message when npiv and loop are true when link up occurs.
    - Fix panic in lpfc_scsi_cmd_iocb_cmpl: scsi_buf was NULL, but created
    race conditions with other code paths.
    - Fix error in sysfs mailbox structure that didn't rezero on next use.
    - Add missing mempool_free() to attachment failure path
    - Fix missing put of ndlp structure during driver unload.
    - Fix applications unable to send mailbox commands during discovery.
    - Remove unused argument (type) from function lpfc_post_buffer() API
    - Fix vport name is not shown after hbacmd vportcreate.
    - Remove repeated code statements.

    Signed-off-by: James Smart
    Signed-off-by: James Bottomley

    James Smart
     
  • Rework of the worker thread to make it more efficient.
    Make a finer-grain notfication of pending work so less time is
    spent checking conditions. Also made other general cleanups.

    Signed-off-by: James Smart
    Signed-off-by: James Bottomley

    James Smart
     
  • - Fix ADISC timeout on initiators causing devloss timeout on targets
    - Correct FAN processing : port state vs unreg rpi's wasn't consistent
    - Correct mismatches between ASICs and PLOGI that would skip PLOGI

    Signed-off-by: James Smart
    Signed-off-by: James Bottomley

    James Smart
     
  • Prior handler was only waiting for I/O on one lun to finish before
    returning completion. Now, wait for all LUNs on the target.
    Also performed some rudimentary cleanup while in this code.

    Signed-off-by: James Smart
    Signed-off-by: James Bottomley

    James Smart
     

23 Apr, 2008

1 commit


20 Apr, 2008

1 commit


10 Apr, 2008

4 commits

  • Update lpfc driver version to 8.2.6

    Signed-off-by: James Smart
    Signed-off-by: James Bottomley

    James Smart
     
  • Miscellaneous Fixes
    - Allow WRITE_VPARAM command when the virtual port is in a stopped state
    - Fixed handling of our queue depth max that was unconditionally raising
    the depth on all vports, rather than just the vport affected.
    - Fix race in interrupt handler for mailbox processing that did not take
    out the host lock.
    - Removed unused functions: find_node, findnode_rpi, and fabric_abort_flogi
    - Correct misspelled word unsolicited in message 0146
    - Correct HW-error 5 handling - it should not reset the adapter
    - Correct handling of IOCBs, which did not null out our pCmd field before
    invoking the midlayer io done function.
    - Changed our maximum supported target id to 4096

    Signed-off-by: James Smart
    Signed-off-by: James Bottomley

    James Smart
     
  • PCI Parity and EEH handling Fixes:
    - Under a PCI Data Parity Error, remove a completion routine callback that
    was on a command that we had already failed and released.
    - Under PCI parity error, we were not reinstalling the interrupt handler
    in the slot_reset callback, so we never became functional again.

    Signed-off-by: James Smart
    Signed-off-by: James Bottomley

    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: James Smart
    Signed-off-by: James Bottomley

    James Smart
     

23 Feb, 2008

1 commit

  • Commit 3163f725a5d071eea1830bbbfab78cfe3fc9baaf introduced locking in
    lpfc_sli_hbqbuf_fill_hbqs, but missed unlocking on one exit.

    Reported-by: Harvey Harrison
    Signed-off-by: Matthew Wilcox
    Acked-by: James Smart
    Signed-off-by: James Bottomley

    Matthew Wilcox
     

22 Feb, 2008

1 commit


12 Feb, 2008

6 commits


04 Feb, 2008

1 commit

  • * git://git.kernel.org/pub/scm/linux/kernel/git/bunk/trivial: (79 commits)
    Jesper Juhl is the new trivial patches maintainer
    Documentation: mention email-clients.txt in SubmittingPatches
    fs/binfmt_elf.c: spello fix
    do_invalidatepage() comment typo fix
    Documentation/filesystems/porting fixes
    typo fixes in net/core/net_namespace.c
    typo fix in net/rfkill/rfkill.c
    typo fixes in net/sctp/sm_statefuns.c
    lib/: Spelling fixes
    kernel/: Spelling fixes
    include/scsi/: Spelling fixes
    include/linux/: Spelling fixes
    include/asm-m68knommu/: Spelling fixes
    include/asm-frv/: Spelling fixes
    fs/: Spelling fixes
    drivers/watchdog/: Spelling fixes
    drivers/video/: Spelling fixes
    drivers/ssb/: Spelling fixes
    drivers/serial/: Spelling fixes
    drivers/scsi/: Spelling fixes
    ...

    Linus Torvalds
     

03 Feb, 2008

2 commits


02 Feb, 2008

1 commit

  • This patch converts users of pci_enable_device_bars() to the new
    pci_enable_device_{io,mem} interface.

    The new API fits nicely, except maybe for the QLA case where a bit of
    code re-organization might be a good idea but I prefer sticking to the
    simple patch as I don't have hardware to test on.

    I'll also need some feedback on the cs5520 change.

    Signed-off-by: Benjamin Herrenschmidt
    Signed-off-by: Greg Kroah-Hartman

    Benjamin Herrenschmidt
     

31 Jan, 2008

1 commit

  • With the sg table code, every SCSI driver is now either chain capable
    or broken (or has sg_tablesize set so chaining is never activated), so
    there's no need to have a check in the host template.

    Also tidy up the code by moving the scatterlist size defines into the
    SCSI includes and permit the last entry of the scatterlist pools not
    to be a power of two.
    Signed-off-by: James Bottomley

    James Bottomley
     

24 Jan, 2008

10 commits

  • Update lpfc driver version to 8.2.4

    Signed-off-by: James Smart
    Signed-off-by: James Bottomley

    James Smart
     
  • Rework misplaced reference taking on node structure

    Signed-off-by: James Smart
    Signed-off-by: James Bottomley

    James Smart
     
  • Enhance debugfs to dump HBA SLIM as well as Host SLIM

    Signed-off-by: James Smart
    Signed-off-by: James Bottomley

    James Smart
     
  • Fix Drivers Unsolicited CT command handling - we did not handle multiframe
    sequences well.
    Fix error due to delay in replenishing buffers for unsolicited data.

    Signed-off-by: James Smart
    Signed-off-by: James Bottomley

    James Smart
     
  • Made link speed and link topology modifiable via sysfs
    Make scatter gather Segment Count into a module parameter.

    Signed-off-by: James Smart
    Signed-off-by: James Bottomley

    James Smart
     
  • This is a patch written by Tomohiro Kusumi and submitted to
    linux-scsi:

    http://marc.info/?l=linux-scsi&m=118673720712152&w=2

    The original patch comment:

    This patch makes Emulex lpfc driver legacy I/O port free.
    It has already been acked quite long time ago.
    So I resubmit the patch.
    http://lkml.org/lkml/2006/11/22/28

    Current lpfc driver is already using pci_select_bars()
    and pci_enable_device_bars() when the PCI bus has been reset.
    So I think this patch should also be acked.

    Signed-off-by: Tomohiro Kusumi
    Signed-off-by: James Smart
    Signed-off-by: James Bottomley

    Tomohiro Kusumi
     
  • Miscellaneous Fixes:
    - Fix a couple of sparse complaints
    - Reset the FCP recovery flag when the node is not a FCP2 device.
    - Speed up offline prep delays
    - Fixed a memory leak in lpfc_mem_alloc failure path
    - Fixed external loopback test.
    - Fixed error code returned from the driver when HBA is over heated.
    - Correct Max NPIV vport to limits read from adapter
    - Add missing locks around fc_flag and FC_NEEDS_REG_VPI
    - Add missing hba ids for device identification
    - Added support for SET_VARIABLE and MBX_WRITE_WWN mailbox commands
    - Changed all temperature event messages from warning to error
    - Fix reporting of link speed when link is down
    - Added support for MBX_WRITE_WWN mailbox command
    - Change del_timer_sync() in ISR to del_timer() in interrupt handler
    - Correct instances of beXX_to_cpu() that should be cpu_to_beXX()
    - Perform target flush before releasing node references on module unload
    - Avoid bogus devloss_tmo messages when driver unloads
    - Fix panic when HBA generates ERATT interupt
    - Fix mbox race condition and a workaround on back-to-back mailbox commands
    - Force NPIV off for pt2pt mode between 2 NPorts
    - Stop worker thread before removing fc_host.
    - Fix up discovery timeout error case due to missing clear_la
    - Tighten mailbox polling code to speed up detection of fast completions
    - Only allow DUMP_MEMORY if adapter offline due to overtemp errors
    - Added extended error information to the log messages in chip init.

    Signed-off-by: James Smart
    Signed-off-by: James Bottomley

    James Smart
     
  • Add parameters to enable and disable heartbeat and hba resets

    Signed-off-by: James Smart
    Signed-off-by: James Bottomley

    James Smart
     
  • Correct Abort handler logic. It was unconditionally waiting a minimum
    of 2 seconds rather than looking for abort completion.

    Signed-off-by: James Smart
    Signed-off-by: James Bottomley

    James Smart
     
  • Miscellaneous Discovery/ELS Fixes:
    - Delay free's of ELS requests if adapter reject conditions
    - Fix concurrent PLOGI vs ADISC state handling
    - Add retry mechanism for GFF_ID
    - Correct some illegal state transitions around RSCN timeouts
    - Fix missing return in FAN handling

    Signed-off-by: James Smart
    Signed-off-by: James Bottomley

    James Smart
     

12 Jan, 2008

4 commits

  • This patch contains the following minor cleanups:
    - make the following needlessly global functions static:
    - lpfc_els.c: lpfc_register_new_vport()
    - lpfc_els.c: lpfc_issue_els_fdisc()
    - lpfc_els.c: lpfc_issue_fabric_iocb()
    - lpfc_els.c: lpfc_fabric_abort_vport()
    - lpfc_hbadisc.c: lpfc_dev_loss_tmo_handler()
    - lpfc_hbadisc.c: lpfc_mbx_cmpl_clear_la()
    - lpfc_hbadisc.c: lpfc_disc_flush_list()
    - lpfc_hbadisc.c: __lpfc_find_node()
    - lpfc_init.c: lpfc_hb_timeout()
    - lpfc_init.c: lpfc_block_mgmt_io()
    - lpfc_sli.c: __lpfc_sli_release_iocbq()
    - lpfc_sli.c: lpfc_sli_next_hbq_slot()
    - lpfc_sli.c: lpfc_sli_hbqbuf_init_hbqs()
    - lpfc_sli.c: lpfc_sli_hbqbuf_find()
    - lpfc_sli.c: __lpfc_sli_issue_iocb()
    - #if 0 the following unused global functions:
    - lpfc_els.c: lpfc_fabric_abort_flogi()
    - lpfc_hbadisc.c: lpfc_find_node()
    - lpfc_hbadisc.c: lpfc_findnode_rpi()
    - remove the unused exports

    Signed-off-by: Adrian Bunk
    Acked-by: James Smart
    Signed-off-by: James Bottomley

    Adrian Bunk
     
  • Change version number to 8.2.3

    Signed-off-by: James Smart
    Signed-off-by: James Bottomley

    James Smart
     
  • Temperature handling fix - return proper error code indicator for applications

    Signed-off-by: James Smart
    Signed-off-by: James Bottomley

    James Smart
     
  • Internal loopback fixes:
    - Use HBQs rather than Q_RING_BUFF
    - Correct HBQs continuation entries
    - Update CT handler to SLI3 iocbs

    Signed-off-by: James Smart
    Signed-off-by: James Bottomley

    James Smart