History log of /drivers/scsi/bfa/bfa_ioc.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
db9d8a75afd9dbd32c80d12d6033eca3336ef4f2 14-Mar-2012 Krishna Gudipati <kgudipat@brocade.com> [SCSI] bfa: Revised Fabric Assigned Address(FAA) feature implementation.

Made changes to the Fabric Assigned Address(FAA) feature implementation.
Introduced the IOCFC state machine, which now handles the FAA logic,
IOC and BFA sub-modules enablement.
Removed un-wanted FAA enable/disable routines; FAA is enabled by default.

Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
/drivers/scsi/bfa/bfa_ioc.h
45c5dc1d3f42d4f54a5ab5f45ee55f0ffe1099f1 21-Jul-2011 Krishna Gudipati <kgudipat@brocade.com> [SCSI] bfa: Add support to store driver configuration in flash.

- Added dconf (Driver Config) BFA sub-module.
- The dconf sub-module provides interfaces and manages flash writes
to the flash DRV parition.
- dconf sub-module also ensures that the whole 64K DRV partition is updated
on a flash write.

Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
/drivers/scsi/bfa/bfa_ioc.h
37ea0558b87abb151245bc750070a4dcda490aca 21-Jul-2011 Krishna Gudipati <kgudipat@brocade.com> [SCSI] bfa: Added support to collect and reset fcport stats

- Added support to collect and reset fcport stats.
- Modified design to allow multiple requests for fcport stats.
- fcport will remember the stats request in its stats_pending
queue and service each of the queued requests after receiving
a firmware response for the prior request.

Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
/drivers/scsi/bfa/bfa_ioc.h
7826f304b1efa5ab839cf029742290f51c4fa009 21-Jul-2011 Krishna Gudipati <kgudipat@brocade.com> [SCSI] bfa: Add FC-transport based Asynchronous Event Notification support.

- Added support to post vendor unique events on fc_host.
- Supports adapter, port, ioc, flash and remote port based AEN events.

Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
/drivers/scsi/bfa/bfa_ioc.h
3350d98d6d072fc4ac3622e61dc3dc351ef01dc5 25-Jun-2011 Krishna Gudipati <kgudipat@brocade.com> [SCSI] bfa: Added support to query PHY.

- Added PHY sub-module.
- Implemented interface to obtain stats and to
read/update the fw from the PHY module.

Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
/drivers/scsi/bfa/bfa_ioc.h
3d7fc66dcd8d510aaa46ab9b914b632bc149b05c 25-Jun-2011 Krishna Gudipati <kgudipat@brocade.com> [SCSI] bfa: Added HBA diagnostics support.

- Added diagnostics sub-module to BFA.
- Implemented interface to perform memtest/loopback test
and some other diagnostics tests.

Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
/drivers/scsi/bfa/bfa_ioc.h
5a54b1d576d1880eb249e906e0c8e2ffe64506d3 25-Jun-2011 Krishna Gudipati <kgudipat@brocade.com> [SCSI] bfa: Added support for flash configuration

- Added flash sub-module.
- Implemented the interface to read/erase/update flash partition.

Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
/drivers/scsi/bfa/bfa_ioc.h
51e569aa1f0c10bd71af05e76e4ba0e42c51e4ab 25-Jun-2011 Krishna Gudipati <kgudipat@brocade.com> [SCSI] bfa: Added support to obtain SFP info.

- Added SFP sub-module to BFA.
- Added interface to collect sfp media info and sfp speed.

Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
/drivers/scsi/bfa/bfa_ioc.h
4507025d01149aea8705e43508d0ef11e7010cfd 25-Jun-2011 Krishna Gudipati <kgudipat@brocade.com> [SCSI] bfa: DMA memory allocation enhancement.

- 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: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
/drivers/scsi/bfa/bfa_ioc.h
10a07379247078448c076690657a076076bf89aa 25-Jun-2011 Krishna Gudipati <kgudipat@brocade.com> [SCSI] bfa: Brocade-1860 Fabric Adapter PLL init fixes.

- 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: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
/drivers/scsi/bfa/bfa_ioc.h
a714134a857d3984250ee52fda7850b61bf8a94e 25-Jun-2011 Krishna Gudipati <kgudipat@brocade.com> [SCSI] bfa: Added Fabric Assigned Address(FAA) support

- Updated/added data structures and definitions to support FAA protocol.
- Modified the IOC state machine to support FAA.
- Introduced FAA feature configuration - enable/disable/query.

Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
/drivers/scsi/bfa/bfa_ioc.h
1a4d8e1bd81c018f7b8c7622066d5cfead59b38a 25-Jun-2011 Krishna Gudipati <kgudipat@brocade.com> [SCSI] bfa: Enable ASIC block configuration and query.

- 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: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
/drivers/scsi/bfa/bfa_ioc.h
75332a70a84908810ab5f525b03f230be9e31753 14-Jun-2011 Krishna Gudipati <kgudipat@brocade.com> [SCSI] bfa: Driver initialization and model description fix

- 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: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
/drivers/scsi/bfa/bfa_ioc.h
8b070b4a022f86dd5098308e36426ce29b6b8960 14-Jun-2011 Krishna Gudipati <kgudipat@brocade.com> [SCSI] bfa: Brocade-1860 Fabric Adapter 16Gbs support and flash controller fixes.

- 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: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
/drivers/scsi/bfa/bfa_ioc.h
775c7742adfd7726f05914198bf33eaa3b9f64bb 14-Jun-2011 Krishna Gudipati <kgudipat@brocade.com> [SCSI] bfa: IOC and PLL init changes for Brocade-1860 Fabric Adapter.

- Introduced IOC poll mechanism which replaces current interrupt
based FW READY method.
- The timer based poll routine in IOC will query the ioc_fwstate
register to see if there is a state change in FW, and sends the READY event.
- Bug fixes in the new asic PLL initialization.
- Added logic to handle CPE/RME queue interrupts before iocfc config done.
1. Use the queue_process flag to see if iocfc configuration is done
in INTX mode.
2. Split the MSIX handler installation in two - one for IOC intr
handler and the other for cpe/rme queue handler - and delay
assigning queue handlers until iocfc config is done in MSIX mode.

Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
/drivers/scsi/bfa/bfa_ioc.h
111892082ed7a3214bc7a7ec6b8b20e8f847501a 14-Jun-2011 Krishna Gudipati <kgudipat@brocade.com> [SCSI] bfa: Brocade-1860 Fabric Adapter Hardware Enablement

- 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: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
/drivers/scsi/bfa/bfa_ioc.h
d37779f8d98a1d7c5ba904982958167d988f01dd 14-Jun-2011 Krishna Gudipati <kgudipat@brocade.com> [SCSI] bfa: Introduce IOC event notification mechanism.

Introduced a generic event notification callback function that
receives IOC_ENABLED, IOC_DISABLED, IOC_FAILED events and notifies the
modules registered for these events.

Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
/drivers/scsi/bfa/bfa_ioc.h
85ce928dbb87585042e7dfebe513f724eadebd5e 14-Jun-2011 Krishna Gudipati <kgudipat@brocade.com> [SCSI] bfa: Introduced generic address len pair to represent DMA memory chunk.

- Avoid the use of hardware defined structure bfi_sge_s for DMA
requests in host.

- Defined a generic address len pair to represent a DMA memory chunk
(bfi_alen_s).

Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
/drivers/scsi/bfa/bfa_ioc.h
45d7f0cc58183062adea0a1de3d8cba768134138 13-Apr-2011 Jing Huang <huangj@brocade.com> [SCSI] bfa: kdump fix

Root cause: When kernel crashes, bfa IOC state machine and FW doesn't get
a notification and hence are not cleanly shutdown. So registers holding
driver/IOC state information are not reset back to valid disabled/parking
values. This causes subsequent driver initialization to hang during kdump
kernel boot.

Fix description: during the initialization of first PCI function, reset
corresponding register when unclean shutown is detect by reading chip
registers. This will make sure that ioc/fw gets clean re-initialization.

Signed-off-by: Jing Huang <huangj@brocade.com>
Signed-off-by: James Bottomley <jbottomley@parallels.com>
/drivers/scsi/bfa/bfa_ioc.h
8f4bfadd200477acb6dcf41a45919dd37d01a6db 27-Dec-2010 Jing Huang <huangj@brocade.com> [SCSI] bfa: remove unused defintions and misc cleanups

This patch removes unused functions, data strucutres, and definitions. It
also includes misc comment and formatting cleanups.

Signed-off-by: Jing Huang <huangj@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
/drivers/scsi/bfa/bfa_ioc.h
f1d584d70f31f54e0a559049906f42db89e2746d 14-Dec-2010 Krishna Gudipati <kgudipat@brocade.com> [SCSI] bfa: IOC auto recovery fix.

- Made IOC auto_recovery synchronized and not timer based.
- Only one PCI function will attempt to recover and reinitialize
the ASIC on a failure, after all the active PCI fns
acknowledge the IOC failure.

Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
/drivers/scsi/bfa/bfa_ioc.h
f16a17507b09e10e0cccc4d675ccbfe030d51ef1 10-Dec-2010 Maggie Zhang <xmzhang@brocade.com> [SCSI] bfa: remove all OS wrappers

Remove OS wrapper functions/macros, and as a result remove bfa_os_inc.h.

Signed-off-by: Maggie Zhang <xmzhang@brocade.com>
Signed-off-by: Jing Huang <huangj@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
/drivers/scsi/bfa/bfa_ioc.h
f7f73812e95077c19a2801bbf4f483fcdab5232f 10-Dec-2010 Maggie Zhang <xmzhang@brocade.com> [SCSI] bfa: clean up one line functions

Cleaned up one line functions.

Signed-off-by: Maggie Zhang <xmzhang@brocade.com>
Signed-off-by: Jing Huang <huangj@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
/drivers/scsi/bfa/bfa_ioc.h
df0f1933eb5454a5c481311837076056557467ad 10-Dec-2010 Maggie Zhang <xmzhang@brocade.com> [SCSI] bfa: remove unused and empty functions

Removed unused and empty functions.

Signed-off-by: Maggie Zhang <xmzhang@brocade.com>
Signed-off-by: Jing Huang <xmzhang@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
/drivers/scsi/bfa/bfa_ioc.h
50444a340028119ce5ba45d60b4cf44e3e6e1b32 30-Nov-2010 Maggie <xmzhang@brocade.com> [SCSI] bfa: fix endianess sparse check warnings

First round of fix for the endianess check warnings from make C=2 CF="-D__CHECK_ENDIAN__".

Signed-off-by: Maggie <xmzhang@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
/drivers/scsi/bfa/bfa_ioc.h
52f94b6fd0d1ff9d935c52f8a6360834ed871d92 30-Nov-2010 Maggie <xmzhang@brocade.com> [SCSI] bfa: fix regular sparse check warnings.

Fix all sparse check warnings from make C=2.

Signed-off-by: Maggie <xmzhang@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
/drivers/scsi/bfa/bfa_ioc.h
acdc79a60cb3cbbc9f07bb5032d890e9cf94f0ff 19-Oct-2010 Jing Huang <huangj@brocade.com> [SCSI] bfa: fix comments for header files

This patch addresses the comments from Randy Dunlap (Randy.Dunlap@oracle.com)
regarding comment blocks that begining with "/**". bfa driver comments
currently do not follow kernel-doc convention, we hence replace all
/** with /* and **/ with */.

Signed-off-by: Jing Huang <huangj@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
/drivers/scsi/bfa/bfa_ioc.h
5344026065f79b102fcc44bc6332f856a111962a 19-Oct-2010 Jing Huang <huangj@brocade.com> [SCSI] bfa: remove os wrapper functions and macros

This patch replaces register access functions and macros with the the ones
provided by linux.

Signed-off-by: Jing Huang <huangj@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
/drivers/scsi/bfa/bfa_ioc.h
ba816ea8e2eacbf3d198ad1859f413c2d6213434 19-Oct-2010 Jing Huang <huangj@brocade.com> [SCSI] bfa: replace endian swap macros with the ones provided by linux

Signed-off-by: Jing Huang <huangj@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
/drivers/scsi/bfa/bfa_ioc.h
6a18b1675fdf08a6dc861e39c3f94309a03e7f16 19-Oct-2010 Jing Huang <huangj@brocade.com> [SCSI] bfa: remove os wrapper and unused functions

This patch removes os wrapper and unused functions.
bfa_os_assign(), bfa_os_memset(), bfa_os_memcpy(), bfa_os_udelay()
bfa_os_vsprintf(), bfa_os_snprintf(), and bfa_os_get_clock() are replaced with
direct assignment or native linux functions. Some unused functions related to VF
(Vitual fabric) are also removed.

Signed-off-by: Jing Huang <huangj@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
/drivers/scsi/bfa/bfa_ioc.h
a36c61f9025b8924f99f54d518763bee7aa84085 15-Sep-2010 Krishna Gudipati <kgudipat@brocade.com> [SCSI] bfa: cleanup driver

We have flattened the BFA hierarchy and also reduced the number of
source and header files we used to have earlier.

Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
/drivers/scsi/bfa/bfa_ioc.h
9aeb6802ddc06b66fc1a58a882fa54bba37040b3 09-Jul-2010 Jing Huang <huangj@brocade.com> [SCSI] bfa: update to support firmware configuation

Update related data structures to support firmeare configuration.
Add AEN events related to firmware configuation.

Signed-off-by: Jing Huang <huangj@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
/drivers/scsi/bfa/bfa_ioc.h
15b64a835def4c784c6e62ad762677f5cb56eba2 09-Jul-2010 Jing Huang <huangj@brocade.com> [SCSI] bfa: ioc attributes fix

This patch fixes the APIs to obtain ioc attributes
- fix API to obtain wwpn, wwnn, and mac.
- add API to get mfg wwpn, wwnn, and mac.
- fix API to obtain wwn of boot target.

Signed-off-by: Jing Huang <huangj@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
/drivers/scsi/bfa/bfa_ioc.h
ed96932470e4ca3aab29518a748dc1162853b456 09-Jul-2010 Jing Huang <huangj@brocade.com> [SCSI] bfa: enable basic PBC support

The patch includes the driver side changes to enable basic PBC (PreBoot
Configuration) feature.
- Data structure changes and new definitions for PBC.
- APIs to access PBC info.
- Remove unused code.

Signed-off-by: Jing Huang <huangj@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
/drivers/scsi/bfa/bfa_ioc.h
293f82d59ed8b6d61d242e40ee7a6a146fae5eaa 09-Jul-2010 Jing Huang <huangj@brocade.com> [SCSI] bfa: enable new hardware

This patch enables support of new mezzanine cards for HP and IBM blade server.

- Add new pciids for HP and IBM mezzanine card.
- Add a new firmware image for HP mezzanine card, which is running in
FC only mode. Rename firmware image to reflect the difference. Change the
firmware download code accordingly for the above changes.

Signed-off-by: Jing Huang <huangj@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
/drivers/scsi/bfa/bfa_ioc.h
0a4b1fc0b24fc7adbaf8413f2992ce1395991a78 06-Mar-2010 Krishna Gudipati <kgudipat@brocade.com> [SCSI] bfa: Replace bfa_get_attr() with specific APIs

bfa_ioc_attr_s is a big structure and some times could cause
stack overflow if defined locally, so add specific APIs that
are needed to replace the use of ioc_attr local var.

Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
/drivers/scsi/bfa/bfa_ioc.h
738c9e66dcb7e17a962a7d65c976386b970d10ca 06-Mar-2010 Krishna Gudipati <kgudipat@brocade.com> [SCSI] bfa: Added firmware save clear feature for BFA driver.

Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
/drivers/scsi/bfa/bfa_ioc.h
8b651b4294e67789028982d18779a9ebe75c2b8a 06-Mar-2010 Krishna Gudipati <kgudipat@brocade.com> [SCSI] bfa: Clear LL_HALT and PSS_ERR bit when IOC crashes.

Clear LL_HALT and PSS_ERR bit in the interrupt status register on an IOC crash.

Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
/drivers/scsi/bfa/bfa_ioc.h
0a20de446c76529028cb239bf2a13cb0f05b263a 06-Mar-2010 Krishna Gudipati <kgudipat@brocade.com> [SCSI] bfa: IOC changes: Support faster recovery and split bfa_ioc.c into ASIC specific code.

Add support for faster IOC recovery after failure.

Split bfa_ioc.c into three files:
bfa_ioc.c: Common code shared between crossbow and catapult ASIC's.

bfa_ioc_cb.c: Code specific to the crossbow, reg mapping and
interrupt related routines.

bfa_ioc_ct.c: Code specific to the catapult, reg mapping and
interrupt related routines.

Fix to make sure IOC reinitialize's properly on enable request -
update the ioc_fwstate reg with BFI_IOC_FAIL on ioc disable mbox cmd
timeout.

Makefile changes to support the 2 newly added files bfa_ioc_cb.c and
bfa_ioc_ct.c.

Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
/drivers/scsi/bfa/bfa_ioc.h
f8ceafde6f5bf6b4b7087c7f5e9da1b2a5284a2e 25-Sep-2009 Jing Huang <huangj@brocade.com> [SCSI] bfa: fixed checkpatch errors for bfad files

This patch fixes checkpatch errors/warnings in bfad files.

Signed-off-by: Jing Huang <huangj@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
/drivers/scsi/bfa/bfa_ioc.h
7725ccfda59715ecf8f99e3b520a0b84cc2ea79e 24-Sep-2009 Jing Huang <huangj@brocade.com> [SCSI] bfa: Brocade BFA FC SCSI driver

Add new driver for Brocade Hardware

Signed-off-by: Jing Huang <huangj@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
/drivers/scsi/bfa/bfa_ioc.h