aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArmen Baloyan <armen.baloyan@qlogic.com>2014-02-26 04:15:07 -0500
committerJames Bottomley <JBottomley@Parallels.com>2014-03-15 13:18:50 -0400
commitbfd7334e8bc944aca76dd71fdcfe41ac943c84a8 (patch)
tree430c7d3f635bb72af20ed50c3dd4a6b57dbf7d4c
parentf73cb695d3eccd171f03ed194e72d67732b17487 (diff)
[SCSI] qla2xxx: Remove Marker type IOCB logic for ISPFX00.
Signed-off-by: Armen Baloyan <armen.baloyan@qlogic.com> Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
-rw-r--r--drivers/scsi/qla2xxx/qla_iocb.c11
-rw-r--r--drivers/scsi/qla2xxx/qla_mr.c12
-rw-r--r--drivers/scsi/qla2xxx/qla_mr.h24
3 files changed, 1 insertions, 46 deletions
diff --git a/drivers/scsi/qla2xxx/qla_iocb.c b/drivers/scsi/qla2xxx/qla_iocb.c
index 5e6ac6c3186e..0aad5e412aa7 100644
--- a/drivers/scsi/qla2xxx/qla_iocb.c
+++ b/drivers/scsi/qla2xxx/qla_iocb.c
@@ -524,7 +524,6 @@ __qla2x00_marker(struct scsi_qla_host *vha, struct req_que *req,
524{ 524{
525 mrk_entry_t *mrk; 525 mrk_entry_t *mrk;
526 struct mrk_entry_24xx *mrk24 = NULL; 526 struct mrk_entry_24xx *mrk24 = NULL;
527 struct mrk_entry_fx00 *mrkfx = NULL;
528 527
529 struct qla_hw_data *ha = vha->hw; 528 struct qla_hw_data *ha = vha->hw;
530 scsi_qla_host_t *base_vha = pci_get_drvdata(ha->pdev); 529 scsi_qla_host_t *base_vha = pci_get_drvdata(ha->pdev);
@@ -541,15 +540,7 @@ __qla2x00_marker(struct scsi_qla_host *vha, struct req_que *req,
541 mrk->entry_type = MARKER_TYPE; 540 mrk->entry_type = MARKER_TYPE;
542 mrk->modifier = type; 541 mrk->modifier = type;
543 if (type != MK_SYNC_ALL) { 542 if (type != MK_SYNC_ALL) {
544 if (IS_QLAFX00(ha)) { 543 if (IS_FWI2_CAPABLE(ha)) {
545 mrkfx = (struct mrk_entry_fx00 *) mrk;
546 mrkfx->handle = MAKE_HANDLE(req->id, mrkfx->handle);
547 mrkfx->handle_hi = 0;
548 mrkfx->tgt_id = cpu_to_le16(loop_id);
549 mrkfx->lun[1] = LSB(lun);
550 mrkfx->lun[2] = MSB(lun);
551 host_to_fcp_swap(mrkfx->lun, sizeof(mrkfx->lun));
552 } else if (IS_FWI2_CAPABLE(ha)) {
553 mrk24 = (struct mrk_entry_24xx *) mrk; 544 mrk24 = (struct mrk_entry_24xx *) mrk;
554 mrk24->nport_handle = cpu_to_le16(loop_id); 545 mrk24->nport_handle = cpu_to_le16(loop_id);
555 mrk24->lun[1] = LSB(lun); 546 mrk24->lun[1] = LSB(lun);
diff --git a/drivers/scsi/qla2xxx/qla_mr.c b/drivers/scsi/qla2xxx/qla_mr.c
index a9b5cf4c710d..893e56d7a01c 100644
--- a/drivers/scsi/qla2xxx/qla_mr.c
+++ b/drivers/scsi/qla2xxx/qla_mr.c
@@ -2140,7 +2140,6 @@ qlafx00_initialize_adapter(scsi_qla_host_t *vha)
2140 vha->device_flags = DFLG_NO_CABLE; 2140 vha->device_flags = DFLG_NO_CABLE;
2141 vha->dpc_flags = 0; 2141 vha->dpc_flags = 0;
2142 vha->flags.management_server_logged_in = 0; 2142 vha->flags.management_server_logged_in = 0;
2143 vha->marker_needed = 0;
2144 ha->isp_abort_cnt = 0; 2143 ha->isp_abort_cnt = 0;
2145 ha->beacon_blink_led = 0; 2144 ha->beacon_blink_led = 0;
2146 2145
@@ -3213,17 +3212,6 @@ qlafx00_start_scsi(srb_t *sp)
3213 /* So we know we haven't pci_map'ed anything yet */ 3212 /* So we know we haven't pci_map'ed anything yet */
3214 tot_dsds = 0; 3213 tot_dsds = 0;
3215 3214
3216 /* Forcing marker needed for now */
3217 vha->marker_needed = 0;
3218
3219 /* Send marker if required */
3220 if (vha->marker_needed != 0) {
3221 if (qla2x00_marker(vha, req, rsp, 0, 0, MK_SYNC_ALL) !=
3222 QLA_SUCCESS)
3223 return QLA_FUNCTION_FAILED;
3224 vha->marker_needed = 0;
3225 }
3226
3227 /* Acquire ring specific lock */ 3215 /* Acquire ring specific lock */
3228 spin_lock_irqsave(&ha->hardware_lock, flags); 3216 spin_lock_irqsave(&ha->hardware_lock, flags);
3229 3217
diff --git a/drivers/scsi/qla2xxx/qla_mr.h b/drivers/scsi/qla2xxx/qla_mr.h
index 5f3ed8b48a51..1e60ca2321c8 100644
--- a/drivers/scsi/qla2xxx/qla_mr.h
+++ b/drivers/scsi/qla2xxx/qla_mr.h
@@ -47,30 +47,6 @@ struct cmd_type_7_fx00 {
47 uint32_t dseg_0_len; /* Data segment 0 length. */ 47 uint32_t dseg_0_len; /* Data segment 0 length. */
48}; 48};
49 49
50/*
51 * ISP queue - marker entry structure definition.
52 */
53struct mrk_entry_fx00 {
54 uint8_t entry_type; /* Entry type. */
55 uint8_t entry_count; /* Entry count. */
56 uint8_t handle_count; /* Handle count. */
57 uint8_t entry_status; /* Entry Status. */
58
59 uint32_t handle; /* System handle. */
60 uint32_t handle_hi; /* System handle. */
61
62 uint16_t tgt_id; /* Target ID. */
63
64 uint8_t modifier; /* Modifier (7-0). */
65 uint8_t reserved_1;
66
67 uint8_t reserved_2[5];
68
69 uint8_t lun[8]; /* FCP LUN (BE). */
70 uint8_t reserved_3[36];
71};
72
73
74#define STATUS_TYPE_FX00 0x01 /* Status entry. */ 50#define STATUS_TYPE_FX00 0x01 /* Status entry. */
75struct sts_entry_fx00 { 51struct sts_entry_fx00 {
76 uint8_t entry_type; /* Entry type. */ 52 uint8_t entry_type; /* Entry type. */