diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-17 20:54:40 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-17 20:54:40 -0400 |
commit | c55d267de274d308927b60c3e740c1a826832317 (patch) | |
tree | 21b53a8c725d9f9650f60d94b349459d5b8dae10 /drivers/scsi/lpfc/lpfc_mbox.c | |
parent | 61ef46fd45c3c62dc7c880a45dd2aa841b9af8fb (diff) | |
parent | bc898c97f7ba24def788d9f80786cf028a197122 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (170 commits)
[SCSI] scsi_dh_rdac: Add MD36xxf into device list
[SCSI] scsi_debug: add consecutive medium errors
[SCSI] libsas: fix ata list corruption issue
[SCSI] hpsa: export resettable host attribute
[SCSI] hpsa: move device attributes to avoid forward declarations
[SCSI] scsi_debug: Logical Block Provisioning (SBC3r26)
[SCSI] sd: Logical Block Provisioning update
[SCSI] Include protection operation in SCSI command trace
[SCSI] hpsa: fix incorrect PCI IDs and add two new ones (2nd try)
[SCSI] target: Fix volume size misreporting for volumes > 2TB
[SCSI] bnx2fc: Broadcom FCoE offload driver
[SCSI] fcoe: fix broken fcoe interface reset
[SCSI] fcoe: precedence bug in fcoe_filter_frames()
[SCSI] libfcoe: Remove stale fcoe-netdev entries
[SCSI] libfcoe: Move FCOE_MTU definition from fcoe.h to libfcoe.h
[SCSI] libfc: introduce __fc_fill_fc_hdr that accepts fc_hdr as an argument
[SCSI] fcoe, libfc: initialize EM anchors list and then update npiv EMs
[SCSI] Revert "[SCSI] libfc: fix exchange being deleted when the abort itself is timed out"
[SCSI] libfc: Fixing a memory leak when destroying an interface
[SCSI] megaraid_sas: Version and Changelog update
...
Fix up trivial conflicts due to whitespace differences in
drivers/scsi/libsas/{sas_ata.c,sas_scsi_host.c}
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_mbox.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_mbox.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/drivers/scsi/lpfc/lpfc_mbox.c b/drivers/scsi/lpfc/lpfc_mbox.c index 23403c650207..dba32dfdb59b 100644 --- a/drivers/scsi/lpfc/lpfc_mbox.c +++ b/drivers/scsi/lpfc/lpfc_mbox.c | |||
@@ -1263,7 +1263,8 @@ lpfc_config_port(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb) | |||
1263 | if (phba->sli_rev == LPFC_SLI_REV3 && phba->vpd.sli3Feat.cerbm) { | 1263 | if (phba->sli_rev == LPFC_SLI_REV3 && phba->vpd.sli3Feat.cerbm) { |
1264 | if (phba->cfg_enable_bg) | 1264 | if (phba->cfg_enable_bg) |
1265 | mb->un.varCfgPort.cbg = 1; /* configure BlockGuard */ | 1265 | mb->un.varCfgPort.cbg = 1; /* configure BlockGuard */ |
1266 | mb->un.varCfgPort.cdss = 1; /* Configure Security */ | 1266 | if (phba->cfg_enable_dss) |
1267 | mb->un.varCfgPort.cdss = 1; /* Configure Security */ | ||
1267 | mb->un.varCfgPort.cerbm = 1; /* Request HBQs */ | 1268 | mb->un.varCfgPort.cerbm = 1; /* Request HBQs */ |
1268 | mb->un.varCfgPort.ccrp = 1; /* Command Ring Polling */ | 1269 | mb->un.varCfgPort.ccrp = 1; /* Command Ring Polling */ |
1269 | mb->un.varCfgPort.max_hbq = lpfc_sli_hbq_count(); | 1270 | mb->un.varCfgPort.max_hbq = lpfc_sli_hbq_count(); |
@@ -1692,7 +1693,7 @@ lpfc_sli4_mbox_cmd_free(struct lpfc_hba *phba, struct lpfcMboxq *mbox) | |||
1692 | * @mbox: pointer to lpfc mbox command. | 1693 | * @mbox: pointer to lpfc mbox command. |
1693 | * @subsystem: The sli4 config sub mailbox subsystem. | 1694 | * @subsystem: The sli4 config sub mailbox subsystem. |
1694 | * @opcode: The sli4 config sub mailbox command opcode. | 1695 | * @opcode: The sli4 config sub mailbox command opcode. |
1695 | * @length: Length of the sli4 config mailbox command. | 1696 | * @length: Length of the sli4 config mailbox command (including sub-header). |
1696 | * | 1697 | * |
1697 | * This routine sets up the header fields of SLI4 specific mailbox command | 1698 | * This routine sets up the header fields of SLI4 specific mailbox command |
1698 | * for sending IOCTL command. | 1699 | * for sending IOCTL command. |
@@ -1723,14 +1724,14 @@ lpfc_sli4_config(struct lpfc_hba *phba, struct lpfcMboxq *mbox, | |||
1723 | if (emb) { | 1724 | if (emb) { |
1724 | /* Set up main header fields */ | 1725 | /* Set up main header fields */ |
1725 | bf_set(lpfc_mbox_hdr_emb, &sli4_config->header.cfg_mhdr, 1); | 1726 | bf_set(lpfc_mbox_hdr_emb, &sli4_config->header.cfg_mhdr, 1); |
1726 | sli4_config->header.cfg_mhdr.payload_length = | 1727 | sli4_config->header.cfg_mhdr.payload_length = length; |
1727 | LPFC_MBX_CMD_HDR_LENGTH + length; | ||
1728 | /* Set up sub-header fields following main header */ | 1728 | /* Set up sub-header fields following main header */ |
1729 | bf_set(lpfc_mbox_hdr_opcode, | 1729 | bf_set(lpfc_mbox_hdr_opcode, |
1730 | &sli4_config->header.cfg_shdr.request, opcode); | 1730 | &sli4_config->header.cfg_shdr.request, opcode); |
1731 | bf_set(lpfc_mbox_hdr_subsystem, | 1731 | bf_set(lpfc_mbox_hdr_subsystem, |
1732 | &sli4_config->header.cfg_shdr.request, subsystem); | 1732 | &sli4_config->header.cfg_shdr.request, subsystem); |
1733 | sli4_config->header.cfg_shdr.request.request_length = length; | 1733 | sli4_config->header.cfg_shdr.request.request_length = |
1734 | length - LPFC_MBX_CMD_HDR_LENGTH; | ||
1734 | return length; | 1735 | return length; |
1735 | } | 1736 | } |
1736 | 1737 | ||
@@ -1902,6 +1903,7 @@ lpfc_request_features(struct lpfc_hba *phba, struct lpfcMboxq *mboxq) | |||
1902 | 1903 | ||
1903 | /* Set up host requested features. */ | 1904 | /* Set up host requested features. */ |
1904 | bf_set(lpfc_mbx_rq_ftr_rq_fcpi, &mboxq->u.mqe.un.req_ftrs, 1); | 1905 | bf_set(lpfc_mbx_rq_ftr_rq_fcpi, &mboxq->u.mqe.un.req_ftrs, 1); |
1906 | bf_set(lpfc_mbx_rq_ftr_rq_perfh, &mboxq->u.mqe.un.req_ftrs, 1); | ||
1905 | 1907 | ||
1906 | /* Enable DIF (block guard) only if configured to do so. */ | 1908 | /* Enable DIF (block guard) only if configured to do so. */ |
1907 | if (phba->cfg_enable_bg) | 1909 | if (phba->cfg_enable_bg) |
@@ -2159,17 +2161,16 @@ lpfc_supported_pages(struct lpfcMboxq *mbox) | |||
2159 | } | 2161 | } |
2160 | 2162 | ||
2161 | /** | 2163 | /** |
2162 | * lpfc_sli4_params - Initialize the PORT_CAPABILITIES SLI4 Params | 2164 | * lpfc_pc_sli4_params - Initialize the PORT_CAPABILITIES SLI4 Params mbox cmd. |
2163 | * mailbox command. | ||
2164 | * @mbox: pointer to lpfc mbox command to initialize. | 2165 | * @mbox: pointer to lpfc mbox command to initialize. |
2165 | * | 2166 | * |
2166 | * The PORT_CAPABILITIES SLI4 parameters mailbox command is issued to | 2167 | * The PORT_CAPABILITIES SLI4 parameters mailbox command is issued to |
2167 | * retrieve the particular SLI4 features supported by the port. | 2168 | * retrieve the particular SLI4 features supported by the port. |
2168 | **/ | 2169 | **/ |
2169 | void | 2170 | void |
2170 | lpfc_sli4_params(struct lpfcMboxq *mbox) | 2171 | lpfc_pc_sli4_params(struct lpfcMboxq *mbox) |
2171 | { | 2172 | { |
2172 | struct lpfc_mbx_sli4_params *sli4_params; | 2173 | struct lpfc_mbx_pc_sli4_params *sli4_params; |
2173 | 2174 | ||
2174 | memset(mbox, 0, sizeof(*mbox)); | 2175 | memset(mbox, 0, sizeof(*mbox)); |
2175 | sli4_params = &mbox->u.mqe.un.sli4_params; | 2176 | sli4_params = &mbox->u.mqe.un.sli4_params; |