diff options
author | Dan Williams <dan.j.williams@intel.com> | 2011-07-01 15:07:25 -0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2011-07-03 07:04:52 -0400 |
commit | a8a0a133b03c6863d0f77229d19befca4de905fa (patch) | |
tree | 387efebbe86ba9b8510fd1374ca3221bb42dbb42 | |
parent | dc00c8b6940aa10ab1ce6a4d10b1bfe7b848781b (diff) |
isci: pare back error messsages
The messages emitted from task.c and some from request.c likely
duplicate (in a less undertandable way) what is reported by the
midlayer.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
-rw-r--r-- | drivers/scsi/isci/request.c | 18 | ||||
-rw-r--r-- | drivers/scsi/isci/task.c | 38 |
2 files changed, 28 insertions, 28 deletions
diff --git a/drivers/scsi/isci/request.c b/drivers/scsi/isci/request.c index 33c8ed1741e6..a46e07ac789f 100644 --- a/drivers/scsi/isci/request.c +++ b/drivers/scsi/isci/request.c | |||
@@ -2350,7 +2350,7 @@ static void isci_task_save_for_upper_layer_completion( | |||
2350 | /* No notification to libsas because this request is | 2350 | /* No notification to libsas because this request is |
2351 | * already in the abort path. | 2351 | * already in the abort path. |
2352 | */ | 2352 | */ |
2353 | dev_warn(&host->pdev->dev, | 2353 | dev_dbg(&host->pdev->dev, |
2354 | "%s: Aborted - task = %p, response=%d (%d), status=%d (%d)\n", | 2354 | "%s: Aborted - task = %p, response=%d (%d), status=%d (%d)\n", |
2355 | __func__, | 2355 | __func__, |
2356 | task, | 2356 | task, |
@@ -2373,7 +2373,7 @@ static void isci_task_save_for_upper_layer_completion( | |||
2373 | 2373 | ||
2374 | case isci_perform_error_io_completion: | 2374 | case isci_perform_error_io_completion: |
2375 | /* Use sas_task_abort */ | 2375 | /* Use sas_task_abort */ |
2376 | dev_warn(&host->pdev->dev, | 2376 | dev_dbg(&host->pdev->dev, |
2377 | "%s: Error - task = %p, response=%d (%d), status=%d (%d)\n", | 2377 | "%s: Error - task = %p, response=%d (%d), status=%d (%d)\n", |
2378 | __func__, | 2378 | __func__, |
2379 | task, | 2379 | task, |
@@ -2385,7 +2385,7 @@ static void isci_task_save_for_upper_layer_completion( | |||
2385 | break; | 2385 | break; |
2386 | 2386 | ||
2387 | default: | 2387 | default: |
2388 | dev_warn(&host->pdev->dev, | 2388 | dev_dbg(&host->pdev->dev, |
2389 | "%s: Unknown - task = %p, response=%d (%d), status=%d (%d)\n", | 2389 | "%s: Unknown - task = %p, response=%d (%d), status=%d (%d)\n", |
2390 | __func__, | 2390 | __func__, |
2391 | task, | 2391 | task, |
@@ -2710,7 +2710,7 @@ static void isci_request_io_request_complete(struct isci_host *ihost, | |||
2710 | 2710 | ||
2711 | default: | 2711 | default: |
2712 | /* Catch any otherwise unhandled error codes here. */ | 2712 | /* Catch any otherwise unhandled error codes here. */ |
2713 | dev_warn(&ihost->pdev->dev, | 2713 | dev_dbg(&ihost->pdev->dev, |
2714 | "%s: invalid completion code: 0x%x - " | 2714 | "%s: invalid completion code: 0x%x - " |
2715 | "isci_request = %p\n", | 2715 | "isci_request = %p\n", |
2716 | __func__, completion_status, request); | 2716 | __func__, completion_status, request); |
@@ -3164,7 +3164,7 @@ static enum sci_status isci_smp_request_build(struct isci_request *ireq) | |||
3164 | 3164 | ||
3165 | status = sci_io_request_construct_smp(dev, ireq, task); | 3165 | status = sci_io_request_construct_smp(dev, ireq, task); |
3166 | if (status != SCI_SUCCESS) | 3166 | if (status != SCI_SUCCESS) |
3167 | dev_warn(&ireq->isci_host->pdev->dev, | 3167 | dev_dbg(&ireq->isci_host->pdev->dev, |
3168 | "%s: failed with status = %d\n", | 3168 | "%s: failed with status = %d\n", |
3169 | __func__, | 3169 | __func__, |
3170 | status); | 3170 | status); |
@@ -3219,7 +3219,7 @@ static enum sci_status isci_io_request_build(struct isci_host *ihost, | |||
3219 | status = sci_io_request_construct(ihost, idev, request); | 3219 | status = sci_io_request_construct(ihost, idev, request); |
3220 | 3220 | ||
3221 | if (status != SCI_SUCCESS) { | 3221 | if (status != SCI_SUCCESS) { |
3222 | dev_warn(&ihost->pdev->dev, | 3222 | dev_dbg(&ihost->pdev->dev, |
3223 | "%s: failed request construct\n", | 3223 | "%s: failed request construct\n", |
3224 | __func__); | 3224 | __func__); |
3225 | return SCI_FAILURE; | 3225 | return SCI_FAILURE; |
@@ -3238,7 +3238,7 @@ static enum sci_status isci_io_request_build(struct isci_host *ihost, | |||
3238 | status = isci_request_stp_request_construct(request); | 3238 | status = isci_request_stp_request_construct(request); |
3239 | break; | 3239 | break; |
3240 | default: | 3240 | default: |
3241 | dev_warn(&ihost->pdev->dev, | 3241 | dev_dbg(&ihost->pdev->dev, |
3242 | "%s: unknown protocol\n", __func__); | 3242 | "%s: unknown protocol\n", __func__); |
3243 | return SCI_FAILURE; | 3243 | return SCI_FAILURE; |
3244 | } | 3244 | } |
@@ -3302,7 +3302,7 @@ int isci_request_execute(struct isci_host *ihost, struct isci_remote_device *ide | |||
3302 | 3302 | ||
3303 | status = isci_io_request_build(ihost, ireq, idev); | 3303 | status = isci_io_request_build(ihost, ireq, idev); |
3304 | if (status != SCI_SUCCESS) { | 3304 | if (status != SCI_SUCCESS) { |
3305 | dev_warn(&ihost->pdev->dev, | 3305 | dev_dbg(&ihost->pdev->dev, |
3306 | "%s: request_construct failed - status = 0x%x\n", | 3306 | "%s: request_construct failed - status = 0x%x\n", |
3307 | __func__, | 3307 | __func__, |
3308 | status); | 3308 | status); |
@@ -3335,7 +3335,7 @@ int isci_request_execute(struct isci_host *ihost, struct isci_remote_device *ide | |||
3335 | 3335 | ||
3336 | if (status != SCI_SUCCESS && | 3336 | if (status != SCI_SUCCESS && |
3337 | status != SCI_FAILURE_REMOTE_DEVICE_RESET_REQUIRED) { | 3337 | status != SCI_FAILURE_REMOTE_DEVICE_RESET_REQUIRED) { |
3338 | dev_warn(&ihost->pdev->dev, | 3338 | dev_dbg(&ihost->pdev->dev, |
3339 | "%s: failed request start (0x%x)\n", | 3339 | "%s: failed request start (0x%x)\n", |
3340 | __func__, status); | 3340 | __func__, status); |
3341 | spin_unlock_irqrestore(&ihost->scic_lock, flags); | 3341 | spin_unlock_irqrestore(&ihost->scic_lock, flags); |
diff --git a/drivers/scsi/isci/task.c b/drivers/scsi/isci/task.c index 5d962b6b03eb..22504c7ef2dc 100644 --- a/drivers/scsi/isci/task.c +++ b/drivers/scsi/isci/task.c | |||
@@ -104,7 +104,7 @@ static void isci_task_refuse(struct isci_host *ihost, struct sas_task *task, | |||
104 | /* No notification because this request is already in the | 104 | /* No notification because this request is already in the |
105 | * abort path. | 105 | * abort path. |
106 | */ | 106 | */ |
107 | dev_warn(&ihost->pdev->dev, | 107 | dev_dbg(&ihost->pdev->dev, |
108 | "%s: Aborted - task = %p, response=%d, " | 108 | "%s: Aborted - task = %p, response=%d, " |
109 | "status=%d\n", | 109 | "status=%d\n", |
110 | __func__, task, response, status); | 110 | __func__, task, response, status); |
@@ -112,7 +112,7 @@ static void isci_task_refuse(struct isci_host *ihost, struct sas_task *task, | |||
112 | 112 | ||
113 | case isci_perform_error_io_completion: | 113 | case isci_perform_error_io_completion: |
114 | /* Use sas_task_abort */ | 114 | /* Use sas_task_abort */ |
115 | dev_warn(&ihost->pdev->dev, | 115 | dev_dbg(&ihost->pdev->dev, |
116 | "%s: Error - task = %p, response=%d, " | 116 | "%s: Error - task = %p, response=%d, " |
117 | "status=%d\n", | 117 | "status=%d\n", |
118 | __func__, task, response, status); | 118 | __func__, task, response, status); |
@@ -121,7 +121,7 @@ static void isci_task_refuse(struct isci_host *ihost, struct sas_task *task, | |||
121 | break; | 121 | break; |
122 | 122 | ||
123 | default: | 123 | default: |
124 | dev_warn(&ihost->pdev->dev, | 124 | dev_dbg(&ihost->pdev->dev, |
125 | "%s: isci task notification default case!", | 125 | "%s: isci task notification default case!", |
126 | __func__); | 126 | __func__); |
127 | sas_task_abort(task); | 127 | sas_task_abort(task); |
@@ -374,7 +374,7 @@ static int isci_task_execute_tmf(struct isci_host *ihost, | |||
374 | status = sci_controller_start_task(ihost, idev, ireq); | 374 | status = sci_controller_start_task(ihost, idev, ireq); |
375 | 375 | ||
376 | if (status != SCI_TASK_SUCCESS) { | 376 | if (status != SCI_TASK_SUCCESS) { |
377 | dev_warn(&ihost->pdev->dev, | 377 | dev_dbg(&ihost->pdev->dev, |
378 | "%s: start_io failed - status = 0x%x, request = %p\n", | 378 | "%s: start_io failed - status = 0x%x, request = %p\n", |
379 | __func__, | 379 | __func__, |
380 | status, | 380 | status, |
@@ -604,7 +604,7 @@ static void isci_terminate_request_core(struct isci_host *ihost, | |||
604 | * being aborted. | 604 | * being aborted. |
605 | */ | 605 | */ |
606 | if (status != SCI_SUCCESS) { | 606 | if (status != SCI_SUCCESS) { |
607 | dev_err(&ihost->pdev->dev, | 607 | dev_dbg(&ihost->pdev->dev, |
608 | "%s: sci_controller_terminate_request" | 608 | "%s: sci_controller_terminate_request" |
609 | " returned = 0x%x\n", | 609 | " returned = 0x%x\n", |
610 | __func__, status); | 610 | __func__, status); |
@@ -662,7 +662,7 @@ static void isci_terminate_request_core(struct isci_host *ihost, | |||
662 | 662 | ||
663 | if (!termination_completed) { | 663 | if (!termination_completed) { |
664 | 664 | ||
665 | dev_err(&ihost->pdev->dev, | 665 | dev_dbg(&ihost->pdev->dev, |
666 | "%s: *** Timeout waiting for " | 666 | "%s: *** Timeout waiting for " |
667 | "termination(%p/%p)\n", | 667 | "termination(%p/%p)\n", |
668 | __func__, io_request_completion, | 668 | __func__, io_request_completion, |
@@ -853,7 +853,7 @@ static int isci_task_send_lu_reset_sata(struct isci_host *ihost, | |||
853 | ret = isci_task_execute_tmf(ihost, idev, &tmf, ISCI_SRST_TIMEOUT_MS); | 853 | ret = isci_task_execute_tmf(ihost, idev, &tmf, ISCI_SRST_TIMEOUT_MS); |
854 | 854 | ||
855 | if (ret != TMF_RESP_FUNC_COMPLETE) { | 855 | if (ret != TMF_RESP_FUNC_COMPLETE) { |
856 | dev_warn(&ihost->pdev->dev, | 856 | dev_dbg(&ihost->pdev->dev, |
857 | "%s: Assert SRST failed (%p) = %x", | 857 | "%s: Assert SRST failed (%p) = %x", |
858 | __func__, idev, ret); | 858 | __func__, idev, ret); |
859 | 859 | ||
@@ -897,7 +897,7 @@ int isci_task_lu_reset(struct domain_device *domain_device, u8 *lun) | |||
897 | */ | 897 | */ |
898 | if (!isci_device || | 898 | if (!isci_device || |
899 | isci_device_is_reset_pending(isci_host, isci_device)) { | 899 | isci_device_is_reset_pending(isci_host, isci_device)) { |
900 | dev_warn(&isci_host->pdev->dev, | 900 | dev_dbg(&isci_host->pdev->dev, |
901 | "%s: No dev (%p), or " | 901 | "%s: No dev (%p), or " |
902 | "RESET PENDING: domain_device=%p\n", | 902 | "RESET PENDING: domain_device=%p\n", |
903 | __func__, isci_device, domain_device); | 903 | __func__, isci_device, domain_device); |
@@ -970,7 +970,7 @@ static void isci_abort_task_process_cb( | |||
970 | */ | 970 | */ |
971 | if ((old_request->status != aborted) | 971 | if ((old_request->status != aborted) |
972 | && (old_request->status != completed)) | 972 | && (old_request->status != completed)) |
973 | dev_err(&old_request->isci_host->pdev->dev, | 973 | dev_dbg(&old_request->isci_host->pdev->dev, |
974 | "%s: Bad request status (%d): tmf=%p, old_request=%p\n", | 974 | "%s: Bad request status (%d): tmf=%p, old_request=%p\n", |
975 | __func__, old_request->status, tmf, old_request); | 975 | __func__, old_request->status, tmf, old_request); |
976 | break; | 976 | break; |
@@ -988,7 +988,7 @@ static void isci_abort_task_process_cb( | |||
988 | break; | 988 | break; |
989 | 989 | ||
990 | default: | 990 | default: |
991 | dev_err(&old_request->isci_host->pdev->dev, | 991 | dev_dbg(&old_request->isci_host->pdev->dev, |
992 | "%s: Bad cb_state (%d): tmf=%p, old_request=%p\n", | 992 | "%s: Bad cb_state (%d): tmf=%p, old_request=%p\n", |
993 | __func__, cb_state, tmf, old_request); | 993 | __func__, cb_state, tmf, old_request); |
994 | break; | 994 | break; |
@@ -1046,7 +1046,7 @@ int isci_task_abort_task(struct sas_task *task) | |||
1046 | * SCSI error handler thread to escalate to LUN reset | 1046 | * SCSI error handler thread to escalate to LUN reset |
1047 | */ | 1047 | */ |
1048 | if (sas_protocol_ata(task->task_proto)) { | 1048 | if (sas_protocol_ata(task->task_proto)) { |
1049 | dev_warn(&isci_host->pdev->dev, | 1049 | dev_dbg(&isci_host->pdev->dev, |
1050 | " task %p is for a STP/SATA device;" | 1050 | " task %p is for a STP/SATA device;" |
1051 | " returning TMF_RESP_FUNC_FAILED\n" | 1051 | " returning TMF_RESP_FUNC_FAILED\n" |
1052 | " to cause a LUN reset...\n", task); | 1052 | " to cause a LUN reset...\n", task); |
@@ -1176,7 +1176,7 @@ int isci_task_abort_task(struct sas_task *task) | |||
1176 | ISCI_ABORT_TASK_TIMEOUT_MS); | 1176 | ISCI_ABORT_TASK_TIMEOUT_MS); |
1177 | 1177 | ||
1178 | if (ret != TMF_RESP_FUNC_COMPLETE) | 1178 | if (ret != TMF_RESP_FUNC_COMPLETE) |
1179 | dev_err(&isci_host->pdev->dev, | 1179 | dev_dbg(&isci_host->pdev->dev, |
1180 | "%s: isci_task_send_tmf failed\n", | 1180 | "%s: isci_task_send_tmf failed\n", |
1181 | __func__); | 1181 | __func__); |
1182 | } | 1182 | } |
@@ -1395,7 +1395,7 @@ static int isci_smp_execute_task(struct isci_host *ihost, | |||
1395 | 1395 | ||
1396 | if (res) { | 1396 | if (res) { |
1397 | del_timer(&task->timer); | 1397 | del_timer(&task->timer); |
1398 | dev_err(&ihost->pdev->dev, | 1398 | dev_dbg(&ihost->pdev->dev, |
1399 | "%s: executing SMP task failed:%d\n", | 1399 | "%s: executing SMP task failed:%d\n", |
1400 | __func__, res); | 1400 | __func__, res); |
1401 | goto ex_err; | 1401 | goto ex_err; |
@@ -1404,12 +1404,12 @@ static int isci_smp_execute_task(struct isci_host *ihost, | |||
1404 | wait_for_completion(&task->completion); | 1404 | wait_for_completion(&task->completion); |
1405 | res = -ECOMM; | 1405 | res = -ECOMM; |
1406 | if ((task->task_state_flags & SAS_TASK_STATE_ABORTED)) { | 1406 | if ((task->task_state_flags & SAS_TASK_STATE_ABORTED)) { |
1407 | dev_err(&ihost->pdev->dev, | 1407 | dev_dbg(&ihost->pdev->dev, |
1408 | "%s: smp task timed out or aborted\n", | 1408 | "%s: smp task timed out or aborted\n", |
1409 | __func__); | 1409 | __func__); |
1410 | isci_task_abort_task(task); | 1410 | isci_task_abort_task(task); |
1411 | if (!(task->task_state_flags & SAS_TASK_STATE_DONE)) { | 1411 | if (!(task->task_state_flags & SAS_TASK_STATE_DONE)) { |
1412 | dev_err(&ihost->pdev->dev, | 1412 | dev_dbg(&ihost->pdev->dev, |
1413 | "%s: SMP task aborted and not done\n", | 1413 | "%s: SMP task aborted and not done\n", |
1414 | __func__); | 1414 | __func__); |
1415 | goto ex_err; | 1415 | goto ex_err; |
@@ -1432,7 +1432,7 @@ static int isci_smp_execute_task(struct isci_host *ihost, | |||
1432 | res = -EMSGSIZE; | 1432 | res = -EMSGSIZE; |
1433 | break; | 1433 | break; |
1434 | } else { | 1434 | } else { |
1435 | dev_err(&ihost->pdev->dev, | 1435 | dev_dbg(&ihost->pdev->dev, |
1436 | "%s: task to dev %016llx response: 0x%x " | 1436 | "%s: task to dev %016llx response: 0x%x " |
1437 | "status 0x%x\n", __func__, | 1437 | "status 0x%x\n", __func__, |
1438 | SAS_ADDR(dev->sas_addr), | 1438 | SAS_ADDR(dev->sas_addr), |
@@ -1526,7 +1526,7 @@ static void isci_wait_for_smp_phy_reset(struct isci_remote_device *idev, int phy | |||
1526 | tmo = deadline - jiffies; | 1526 | tmo = deadline - jiffies; |
1527 | 1527 | ||
1528 | if (res) { | 1528 | if (res) { |
1529 | dev_warn(&ihost->pdev->dev, | 1529 | dev_dbg(&ihost->pdev->dev, |
1530 | "%s: iteration %d, phase %d:" | 1530 | "%s: iteration %d, phase %d:" |
1531 | " SMP error=%d, time_remaining=%lu\n", | 1531 | " SMP error=%d, time_remaining=%lu\n", |
1532 | __func__, iteration, phy_state, res, tmo); | 1532 | __func__, iteration, phy_state, res, tmo); |
@@ -1578,7 +1578,7 @@ static int isci_reset_device(struct isci_host *ihost, | |||
1578 | if (status != SCI_SUCCESS) { | 1578 | if (status != SCI_SUCCESS) { |
1579 | spin_unlock_irqrestore(&ihost->scic_lock, flags); | 1579 | spin_unlock_irqrestore(&ihost->scic_lock, flags); |
1580 | 1580 | ||
1581 | dev_warn(&ihost->pdev->dev, | 1581 | dev_dbg(&ihost->pdev->dev, |
1582 | "%s: sci_remote_device_reset(%p) returned %d!\n", | 1582 | "%s: sci_remote_device_reset(%p) returned %d!\n", |
1583 | __func__, idev, status); | 1583 | __func__, idev, status); |
1584 | 1584 | ||
@@ -1619,7 +1619,7 @@ static int isci_reset_device(struct isci_host *ihost, | |||
1619 | } | 1619 | } |
1620 | 1620 | ||
1621 | if (status != SCI_SUCCESS) { | 1621 | if (status != SCI_SUCCESS) { |
1622 | dev_warn(&ihost->pdev->dev, | 1622 | dev_dbg(&ihost->pdev->dev, |
1623 | "%s: sci_remote_device_reset_complete(%p) " | 1623 | "%s: sci_remote_device_reset_complete(%p) " |
1624 | "returned %d!\n", __func__, idev, status); | 1624 | "returned %d!\n", __func__, idev, status); |
1625 | } | 1625 | } |