1. 11 1月, 2012 1 次提交
    • K
      [SCSI] bfa: Implement LUN Masking feature using the SCSI Slave Callouts. · 5b7db7af
      Krishna Gudipati 提交于
      This patch re-implements LUN Masking feature using SCSI Slave Callouts.  With
      the new design in the slave_alloc entry point; for each new LUN discovered we
      check with our internal LUN Masking config whether to expose or to mask this
      particular LUN. We return -ENXIO (No such device or address) from slave_alloc
      for the LUNs we don't want to be exposed.  We also notify the SCSI mid-layer
      to do a sequential LUN scan rather than REPORT_LUNS based scan if LUN masking
      is enabled on our HBA port, since a -ENXIO from any LUN in REPORT_LUNS based
      scan translates to a scan abort.  This patch also handles the dynamic lun
      masking config change from enable to disable or vice-versa by resetting
      sdev_bflags of LUN 0 appropriately.
      Signed-off-by: NKrishna Gudipati <kgudipat@brocade.com>
      Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
      5b7db7af
  2. 27 7月, 2011 1 次提交
  3. 30 6月, 2011 9 次提交
    • K
      [SCSI] bfa: Driver and BSG enhancements. · 61e62e21
      Krishna Gudipati 提交于
      - Added a new module parameter max_xfer_size to
        set the max_sectors in the scsi_host template.
      - Added logic to handle request_irq() failure so
        that msix vector resource is de-allocated immediately
        when failure happens.
      - BSG enhancements to collect vHBA releated info and port log.
      - Removed the workaround of incrementing the module refcnt on bsg request.
      Signed-off-by: NKrishna Gudipati <kgudipat@brocade.com>
      Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
      61e62e21
    • K
      [SCSI] bfa: FCS bug fixes. · d7be54cc
      Krishna Gudipati 提交于
      - Added logic to initiate a PLOGI to the target, while processing a LOGO
        from the same target in Direct attach mode.
      - Added logic to generate a FCCT Reject indicating unsupported command,
        upon receiving FCCT/FCGS requests.
      - Added logic to set the fcpim in offline state and avoid any PRLI retries
        if a PRLI response is a reject with a reason Command Not Supported.
      - Updated the FDMI Supported/Current speeds.
      - Added logic to wait for the response  from the firmware before sending
        ACC to PLOGI and transitioning to subsequent states - while processing an
        Incoming PLOGI in online state.
      - Added a wait state in the fcs_vport state machine - For case where
        FDISC is in progress and we get a vport delete request we wait for
        fdisc response and will transition to the appropriate state based on
        rsp status, else its causing both driver/fw resources to be not
        freed.
      - Remove the fc_credit_recovery module param.
      Signed-off-by: NKrishna Gudipati <kgudipat@brocade.com>
      Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
      d7be54cc
    • K
      [SCSI] bfa: DMA memory allocation enhancement. · 4507025d
      Krishna Gudipati 提交于
      - Modified the design such that each BFA sub-module will provide
        the amount of DMA and KVA memory needed by it and queues the
        same request to the global dma and kva info queues.
      - During the memory allocation we iterate over this queue to allocate
        the dma and kva memory requested by sub-modules.
      - The change is needed to avoid requesting the aggregate amount of memory
        needed by all the BFA sub-modules as one contiguous chunk.
      Signed-off-by: NKrishna Gudipati <kgudipat@brocade.com>
      Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
      4507025d
    • K
      [SCSI] bfa: Brocade-1860 Fabric Adapter PLL init fixes. · 10a07379
      Krishna Gudipati 提交于
      - If flash controller is halted unconditionally, this results in
        illegal write access to flash controller register domain. Since
        flash controller registers are only accessible once s_clk is started
        - added logic to check for WGN status and halt flash controller only
        if it is already running.
      - Added check to wait for flash controller halt to be completed before
        proceeding with s_clk/l_clk initializations.
      - Removed unnecessary reset logic for PMM 1T memory and moved memory
        initialization after flash access enable.
      - Disable Brocade-1860 asic MBOX interrupt before PLL initialization.
      - Remove reset enable for S_CLK/L_CLK after both PLL initializations
        are complete.
      Signed-off-by: NKrishna Gudipati <kgudipat@brocade.com>
      Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
      10a07379
    • K
      [SCSI] bfa: Enable ASIC block configuration and query. · 1a4d8e1b
      Krishna Gudipati 提交于
      - Added ASIC block configuration APIs:
      	- to create/delete/update the physical functions
      	- to do adapter/port mode configuration
      	- to query the current ASIC block configuration.
      Signed-off-by: NKrishna Gudipati <kgudipat@brocade.com>
      Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
      1a4d8e1b
    • K
      [SCSI] bfa: Driver initialization and model description fix · 75332a70
      Krishna Gudipati 提交于
      - Moved FCS initialization, which internally does the im_port creation
        as well as the scsi_host creation before bfa_init.
      
      Once the bfa_init is complete & successful:
      - Reset the FCS base port cfg params such as pwwn/nwwn and setup fc host
        params - based on the values learned during the ioc getattr request.
      - Change needed to support BSG commands even on bfa init failure.
      - Model description fixes for Brocade adapters.
      Signed-off-by: NKrishna Gudipati <kgudipat@brocade.com>
      Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
      75332a70
    • K
      [SCSI] bfa: FC credit recovery and misc bug fixes. · be540a99
      Krishna Gudipati 提交于
      - Introduce FC credit recovery.
      - Added module parameter to enable/disable credit recovery.
      
      Bug Fixes:
      - Removed check for ignoring plogi from initiator in switched fabric mode.
      - The ABTS for PLOGI is going out few millisecs earlier due to FW
        timer calibration (around 300 miilisecs earlier). So there is a
        window if an accept comes during this time HBA would have initiated
        an ABORT.
      - Added 1 to FC_ELS_TOV for compensating for FW timer.
      Signed-off-by: NKrishna Gudipati <kgudipat@brocade.com>
      Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
      be540a99
    • K
      [SCSI] bfa: Brocade-1860 Fabric Adapter 16Gbs support and flash controller fixes. · 8b070b4a
      Krishna Gudipati 提交于
      - Added support for 16Gbps.
      - Added logic to flush pending mailbox command queue when IOC is disabled.
      - Fix to Halt the flash controller during fw initialization - since
        when asic blck is programmed flash controller's continuous access
        blocks f/w access to flash.
      - Added new asic based card types and modified IOC get card model routine.
      - Added PLL init fix to do LPU reset every time we do a memory
        initialization, since not doing so will cause LPU to be
        uninitialized during driver load.
      - Added fix to Halt flash controller before PLL initialization.
      Signed-off-by: NKrishna Gudipati <kgudipat@brocade.com>
      Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
      8b070b4a
    • K
      [SCSI] bfa: Brocade-1860 Fabric Adapter Hardware Enablement · 11189208
      Krishna Gudipati 提交于
      - Added support for Brocade-1860 Fabric Adapter.
      - Made changes to support single firmware image per asic type.
      - Combined bfi_cbreg.h and bfi_ctreg.h defines into bfi_reg.h with
        only minimal defines used by host.
      - Added changes to setup CPE/RME Queue register offsets based on
        firmware response.
      - Removed queue register offset initializations and added register offsets
        to BFI config response message.
      - Added Brocade-1860 asic specific interrupt status definitions and
        mailbox interfaces.
      Signed-off-by: NKrishna Gudipati <kgudipat@brocade.com>
      Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
      11189208
  4. 01 5月, 2011 2 次提交
  5. 31 3月, 2011 1 次提交
  6. 31 12月, 2010 2 次提交
  7. 22 12月, 2010 3 次提交
  8. 21 12月, 2010 1 次提交
  9. 26 10月, 2010 3 次提交
  10. 17 9月, 2010 1 次提交
  11. 11 8月, 2010 1 次提交
    • R
      param: simple locking for sysfs-writable charp parameters · d6d1b650
      Rusty Russell 提交于
      Since the writing to sysfs can free the old one, we need to block that
      when we access the charp variables.
      Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
      Reviewed-by: NTakashi Iwai <tiwai@suse.de>
      Tested-by: NPhil Carmody <ext-phil.2.carmody@nokia.com>
      Cc: Jeff Dike <jdike@addtoit.com>
      Cc: Dan Williams <dcbw@redhat.com>
      Cc: John W. Linville <linville@tuxdriver.com>
      Cc: Jing Huang <huangj@brocade.com>
      Cc: James E.J. Bottomley <James.Bottomley@suse.de>
      Cc: Greg Kroah-Hartman <gregkh@suse.de>
      Cc: Johannes Berg <johannes@sipsolutions.net>
      Cc: David S. Miller <davem@davemloft.net>
      Cc: user-mode-linux-devel@lists.sourceforge.net
      Cc: libertas-dev@lists.infradead.org
      Cc: linux-wireless@vger.kernel.org
      Cc: netdev@vger.kernel.org
      Cc: linux-scsi@vger.kernel.org
      Cc: linux-usb@vger.kernel.org
      d6d1b650
  12. 28 7月, 2010 4 次提交
  13. 11 4月, 2010 3 次提交
  14. 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
  15. 07 3月, 2010 3 次提交
  16. 04 3月, 2010 3 次提交
  17. 05 12月, 2009 1 次提交