diff options
author | James Smart <james.smart@emulex.com> | 2011-07-22 18:36:33 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2011-07-27 07:09:14 -0400 |
commit | 88a2cfbb8bf3802ca5a90c7d1567a1e542e6ef0c (patch) | |
tree | ca4881c35397515cddea448084dd8a3c6db97191 /drivers/scsi/lpfc/lpfc_sli.c | |
parent | 7c56b9fd3b6d2d933075d12abee67ceb7c90d04a (diff) |
[SCSI] lpfc 8.3.25: Miscellaneous Bug fixes and code cleanup
Miscellaneous Bug fixes and code cleanup
- Fix 16G link speed reporting by adding check for 16G check.
- Change the check and enforcement of MAILBOX_EXT_SIZE (2048B)
to the check and enforcement of BSG_MBOX_SIZE - sizeof(MAILBOX_t) (3840B).
- Instead of waiting for a fixed amount of time after performing firmware
reset, the driver shall wait for the Lancer SLIPORT_STATUS register for the
readiness of the firmware for bring up.
- Add logging to indicate when dynamic parameters are changed.
- Add revision and date to the firmware image format.
- Use revision instead of rev_name to check firmware image version.
- Update temporary offset after memcopy is complete for firmware update.
- Consolidated the use of the macros to get rid of duplicated register
offset definitions.
- Removed the unused second parameter in routine lpfc_bsg_diag_mode_enter()
- Enable debugfs when debugfs is enabled.
- Update function comments for lpfc_sli4_alloc_xri and lpfc_sli4_init_rpi_hdrs.
Signed-off-by: Alex Iannicelli <alex.iannicelli@emulex.com>
Signed-off-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_sli.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_sli.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/drivers/scsi/lpfc/lpfc_sli.c b/drivers/scsi/lpfc/lpfc_sli.c index 98999bbd8cbf..6740c52e99c4 100644 --- a/drivers/scsi/lpfc/lpfc_sli.c +++ b/drivers/scsi/lpfc/lpfc_sli.c | |||
@@ -12345,19 +12345,18 @@ lpfc_sli4_post_sgl(struct lpfc_hba *phba, | |||
12345 | } | 12345 | } |
12346 | 12346 | ||
12347 | /** | 12347 | /** |
12348 | * lpfc_sli4_init_rpi_hdrs - Post the rpi header memory region to the port | 12348 | * lpfc_sli4_alloc_xri - Get an available rpi in the device's range |
12349 | * @phba: pointer to lpfc hba data structure. | 12349 | * @phba: pointer to lpfc hba data structure. |
12350 | * | 12350 | * |
12351 | * This routine is invoked to post rpi header templates to the | 12351 | * This routine is invoked to post rpi header templates to the |
12352 | * port for those SLI4 ports that do not support extents. This routine | 12352 | * HBA consistent with the SLI-4 interface spec. This routine |
12353 | * posts a PAGE_SIZE memory region to the port to hold up to | 12353 | * posts a SLI4_PAGE_SIZE memory region to the port to hold up to |
12354 | * PAGE_SIZE modulo 64 rpi context headers. This is an initialization routine | 12354 | * SLI4_PAGE_SIZE modulo 64 rpi context headers. |
12355 | * and should be called only when interrupts are disabled. | ||
12356 | * | 12355 | * |
12357 | * Return codes | 12356 | * Returns |
12358 | * 0 - successful | 12357 | * A nonzero rpi defined as rpi_base <= rpi < max_rpi if successful |
12359 | * -ERROR - otherwise. | 12358 | * LPFC_RPI_ALLOC_ERROR if no rpis are available. |
12360 | */ | 12359 | **/ |
12361 | uint16_t | 12360 | uint16_t |
12362 | lpfc_sli4_alloc_xri(struct lpfc_hba *phba) | 12361 | lpfc_sli4_alloc_xri(struct lpfc_hba *phba) |
12363 | { | 12362 | { |