History log of /drivers/scsi/bfa/bfa_core.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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_core.c
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_core.c
ca6e0ea71cd0f442875b05357dd51774bd84b418 21-Jul-2011 Krishna Gudipati <kgudipat@brocade.com> [SCSI] bfa: Update RME interrupt handling.

- Made changes to always acknowledge RME interrupt and update
consumer index (CI) when RME interrupt is generated.
- Made changes to have ASIC specific hw_rspq_ack() handler.

Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
/drivers/scsi/bfa/bfa_core.c
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_core.c
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_core.c
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_core.c
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_core.c
148d61039c625f3f7e2d0a6ad1efe17f83153e65 25-Jun-2011 Krishna Gudipati <kgudipat@brocade.com> [SCSI] bfa: Added support for CEE info and stats query.

- Added CEE sub-module.
- Added support to collect stats/cee module info
using BSG interface.

Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
/drivers/scsi/bfa/bfa_core.c
601380669baa2ba6427b821a14e5c91afb580dfc 25-Jun-2011 Krishna Gudipati <kgudipat@brocade.com> [SCSI] bfa: Extend BSG interface.

- Added support to collect driver/fw stats.
- Added support to perform adapter/ioc enable, disable operations.

Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
/drivers/scsi/bfa/bfa_core.c
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_core.c
3fd459804ff8e002db2671900debd0fc6dc6c443 25-Jun-2011 Krishna Gudipati <kgudipat@brocade.com> [SCSI] bfa: Brocade-1860 Fabric Adapter vHBA support.

- Introduced partitioning of the BFA resources.
- Added h/w queue ID in CPE messages, firmware uses h/w queue ID
from messages to pick a matching RME queue.
- Added message header to bfa_reqq_produce(). h/w queue ID is set
in the message header and firmware modules use h/w queue ID from
message header instead of from cpqe event.
- Made changes to allow using all 256 queues of Brocade-1860 asic.
Previously only a single queue per queue group was used.
- Added function tag to BFI message header. Only used by FC BFI
messages. Used to translate host tag to firmware tag. bfa_lpuid()
is changed to bfa_fn_lpu() that encodes both PCI function and port
ID in BFI message header.

Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
/drivers/scsi/bfa/bfa_core.c
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_core.c
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_core.c
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_core.c
e2187d7f38967aeaf4148cdbe3498f76f4f71bca 14-Jun-2011 Krishna Gudipati <kgudipat@brocade.com> [SCSI] bfa: Enhancement for fcpim and IO tag handling.

- Enhancements to FCPIM module.
- Introduced IO tag management to allocate/release IOs to FCPIM module
from a free IOtag pool.

Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
/drivers/scsi/bfa/bfa_core.c
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_core.c
dd5aaf4536c5111784a18d935b9b5adeac9f914c 14-Jun-2011 Krishna Gudipati <kgudipat@brocade.com> [SCSI] bfa: Changes to support vport disable and enable operations.

Made changes to FCS lport, vport state machines to support vport
enable / disable operations.

Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
/drivers/scsi/bfa/bfa_core.c
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_core.c
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_core.c
25985edcedea6396277003854657b5f3cb31a628 31-Mar-2011 Lucas De Marchi <lucas.demarchi@profusion.mobi> Fix common misspellings

Fixes generated by 'codespell' and manually reviewed.

Signed-off-by: Lucas De Marchi <lucas.demarchi@profusion.mobi>
/drivers/scsi/bfa/bfa_core.c
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_core.c
2f2f40a45845e52fbbe07bcd3e09ccff44feb01b 27-Dec-2010 Jing Huang <huangj@brocade.com> [SCSI] bfa: remove inactive functions

This patch removes some inactive functions and macros.

Signed-off-by: Jing Huang <huangj@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
/drivers/scsi/bfa/bfa_core.c
d4b671c58ebeb56dfc8fe8bcca25e0a06bc9359a 27-Dec-2010 Jing Huang <huangj@brocade.com> [SCSI] bfa: replace bfa_assert with WARN_ON

Signed-off-by: Jing Huang <huangj@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
/drivers/scsi/bfa/bfa_core.c
da99dcc98dd66a2de4864645bcafffd93cf5a62f 10-Dec-2010 Maggie Zhang <xmzhang@brocade.com> [SCSI] bfa: remove unused functions and misc cleanups

Remove unused functions and fix checkpatch errors. Misc cleanups in
comment and formatting.

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_core.c
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_core.c
b77ee1fb10e4b76dc61094b3678d805be0e4f7ba 10-Dec-2010 Maggie Zhang <xmzhang@brocade.com> [SCSI] bfa: remove a file with small size

Removed bfa_drv.c, merged it to bfa_core.c and modified Makefile.

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_core.c
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_core.c
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_core.c
5fbe25c7a664601666895e8f95eaa59bd9741392 19-Oct-2010 Jing Huang <huangj@brocade.com> [SCSI] bfa: fix comments for c 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_core.c
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_core.c
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_core.c
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_core.c
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_core.c
3cfc2c42c1cbc8e238bb9c0612c0df4565e3a8b4 05-Aug-2010 Linus Torvalds <torvalds@linux-foundation.org> Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial

* 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (48 commits)
Documentation: update broken web addresses.
fix comment typo "choosed" -> "chosen"
hostap:hostap_hw.c Fix typo in comment
Fix spelling contorller -> controller in comments
Kconfig.debug: FAIL_IO_TIMEOUT: typo Faul -> Fault
fs/Kconfig: Fix typo Userpace -> Userspace
Removing dead MACH_U300_BS26
drivers/infiniband: Remove unnecessary casts of private_data
fs/ocfs2: Remove unnecessary casts of private_data
libfc: use ARRAY_SIZE
scsi: bfa: use ARRAY_SIZE
drm: i915: use ARRAY_SIZE
drm: drm_edid: use ARRAY_SIZE
synclink: use ARRAY_SIZE
block: cciss: use ARRAY_SIZE
comment typo fixes: charater => character
fix comment typos concerning "challenge"
arm: plat-spear: fix typo in kerneldoc
reiserfs: typo comment fix
update email address
...
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_core.c
501af8d110f1fca597ff61c8611d018360ff9bf7 28-Jun-2010 Kulikov Vasiliy <segooon@gmail.com> scsi: bfa: use ARRAY_SIZE

Change sizeof(x) / sizeof(*x) to ARRAY_SIZE(x).

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
/drivers/scsi/bfa/bfa_core.c
7873ca4e4401f0ecd8868bf1543113467e6bae61 21-May-2010 Krishna Gudipati <kgudipat@brocade.com> [SCSI] bfa: fix system crash when reading sysfs fc_host statistics

The port data structure related to fc_host statistics collection is
not initialized. This causes system crash when reading the fc_host
statistics. The fix is to initialize port structure during driver
attach.

Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
/drivers/scsi/bfa/bfa_core.c
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_core.c
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_core.c
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_core.c