1. 12 1月, 2008 5 次提交
    • A
      [SCSI] lpfc: minor cleanups · a6ababd2
      Adrian Bunk 提交于
      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: NAdrian Bunk <bunk@kernel.org>
      Acked-by: NJames Smart <James.Smart@Emulex.Com>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      a6ababd2
    • 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
    • J
      [SCSI] lpfc 8.2.3 : Miscellaneous Small Fixes - part 1 · 98c9ea5c
      James Smart 提交于
      Miscellaneous Small Fixes - part 1
      - Fix typo kmzlloc -> kzalloc
      - Fix discovery ndlp use after free panic
      - Fix link event causing flood of 0108 messages
      - Relieve some mbox congestion on link up with 100 vports
      - Fix broken vport parameters
      - Prevent lock recursion in logo_reglogin_issue
      - Split uses of error variable in lpfc_pci_probe_one into retval and error
      - Remove completion code related to dev_loss_tmo
      - Remove unused LPFC_MAX_HBQ #define
      - Don't compare pointers to 0 for sparse
      - Make 2 functions static for sparse
      - Fix default rpi cleanup code causing rogue ndlps to remain on the NPR list
      - Remove annoying ELS messages when driver is unloaded
      - Fix Cannot issue Register Fabric login problems on link up
      - Remove LPFC_EVT_DEV_LOSS_DELAY
      - Fix FC port swap test leads to device going offline
      - Fix vport CT flags to only be set when accepted
      - Add code to handle signals during vport_create
      - Fix too many retries in FC-AL mode
      - Pull lpfc_port_link_failure out of lpfc_linkdown_port
      Signed-off-by: NJames Smart <James.Smart@emulex.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      98c9ea5c
    • J
      [SCSI] lpfc 8.2.3 : Remove flawed MBX_STOP_IOCB logic · 0b727fea
      James Smart 提交于
      Remove flawed MBX_STOP_IOCB logic
      Signed-off-by: NJames Smart <James.Smart@emulex.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      0b727fea
  2. 02 8月, 2007 7 次提交
  3. 18 6月, 2007 4 次提交
    • 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
    • J
      [SCSI] lpfc: NPIV: add NPIV support on top of SLI-3 · 92d7f7b0
      James Smart 提交于
      NPIV support is added to the driver.  It utilizes the interfaces of
      the fc transport for the creation and deletion of vports. Within the
      driver, a new Scsi_Host is created for each NPIV instance, and is
      paired with a new instance of a FC port.  This allows N FC Port
      elements to share a single Adapter.
      Signed-off-by: NJames Smart <James.Smart@emulex.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      92d7f7b0
    • J
      [SCSI] lpfc: NPIV: add SLI-3 interface · ed957684
      James Smart 提交于
      NPIV support is only available via new adapter interface extensions,
      termed SLI-3. This interface changes some of the basic behaviors such
      as command and response ring element sizes and data structures, as
      well as a change in buffer posting.  Note: the new firmware extensions
      are found only on our mid-range and enterprise 4Gig adapters - so NPIV
      support is available only on these newer adapters. The latest firmware
      can be downloaded from the Emulex support page.
      Signed-off-by: NJames Smart <James.Smart@emulex.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      ed957684
    • J
      [SCSI] lpfc: NPIV: split ports · 2e0fef85
      James Smart 提交于
      The driver is reorganized to separate the handling of the adapter from
      the handling of the FC port. Adapter handling includes submissions of
      command requests, receiving responses, and managing adapter resources.
      The FC port includes the discovery engine, login handling, and the
      mapping of a Scsi_Host on the "port".  Although not a large functional
      change, as it touches core structures and functions, resulting in a
      large text delta.
      Signed-off-by: NJames Smart <James.Smart@emulex.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      2e0fef85
  4. 06 5月, 2007 11 次提交
  5. 03 12月, 2006 4 次提交
  6. 31 10月, 2006 1 次提交
    • P
      [PATCH] lockdep: annotate DECLARE_WAIT_QUEUE_HEAD · 7259f0d0
      Peter Zijlstra 提交于
      kernel: INFO: trying to register non-static key.
      kernel: the code is fine but needs lockdep annotation.
      kernel: turning off the locking correctness validator.
      kernel:  [<c04051ed>] show_trace_log_lvl+0x58/0x16a
      kernel:  [<c04057fa>] show_trace+0xd/0x10
      kernel:  [<c0405913>] dump_stack+0x19/0x1b
      kernel:  [<c043b1e2>] __lock_acquire+0xf0/0x90d
      kernel:  [<c043bf70>] lock_acquire+0x4b/0x6b
      kernel:  [<c061472f>] _spin_lock_irqsave+0x22/0x32
      kernel:  [<c04363d3>] prepare_to_wait+0x17/0x4b
      kernel:  [<f89a24b6>] lpfc_do_work+0xdd/0xcc2 [lpfc]
      kernel:  [<c04361b9>] kthread+0xc3/0xf2
      kernel:  [<c0402005>] kernel_thread_helper+0x5/0xb
      
      Another case of non-static lockdep keys; duplicate the paradigm set by
      DECLARE_COMPLETION_ONSTACK and introduce DECLARE_WAIT_QUEUE_HEAD_ONSTACK.
      Signed-off-by: NPeter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Greg KH <gregkh@suse.de>
      Cc: Markus Lidel <markus.lidel@shadowconnect.com>
      Acked-by: NIngo Molnar <mingo@elte.hu>
      Cc: Arjan van de Ven <arjan@infradead.org>
      Cc: James Bottomley <James.Bottomley@steeleye.com>
      Cc: Marcel Holtmann <marcel@holtmann.org>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      7259f0d0
  7. 05 9月, 2006 2 次提交
  8. 03 9月, 2006 1 次提交
  9. 20 8月, 2006 1 次提交
  10. 07 8月, 2006 1 次提交
  11. 09 7月, 2006 1 次提交
  12. 20 4月, 2006 2 次提交