aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/mpt2sas/mpt2sas_scsih.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/mpt2sas/mpt2sas_scsih.c')
-rw-r--r--drivers/scsi/mpt2sas/mpt2sas_scsih.c56
1 files changed, 28 insertions, 28 deletions
diff --git a/drivers/scsi/mpt2sas/mpt2sas_scsih.c b/drivers/scsi/mpt2sas/mpt2sas_scsih.c
index 87c686525f07..82c2d4c5ece6 100644
--- a/drivers/scsi/mpt2sas/mpt2sas_scsih.c
+++ b/drivers/scsi/mpt2sas/mpt2sas_scsih.c
@@ -435,7 +435,7 @@ _scsih_determine_boot_device(struct MPT2SAS_ADAPTER *ioc,
435 (ioc->bios_pg2.ReqBootDeviceForm & 435 (ioc->bios_pg2.ReqBootDeviceForm &
436 MPI2_BIOSPAGE2_FORM_MASK), 436 MPI2_BIOSPAGE2_FORM_MASK),
437 &ioc->bios_pg2.RequestedBootDevice)) { 437 &ioc->bios_pg2.RequestedBootDevice)) {
438 dinitprintk(ioc, printk(MPT2SAS_DEBUG_FMT 438 dinitprintk(ioc, printk(MPT2SAS_INFO_FMT
439 "%s: req_boot_device(0x%016llx)\n", 439 "%s: req_boot_device(0x%016llx)\n",
440 ioc->name, __func__, 440 ioc->name, __func__,
441 (unsigned long long)sas_address)); 441 (unsigned long long)sas_address));
@@ -450,7 +450,7 @@ _scsih_determine_boot_device(struct MPT2SAS_ADAPTER *ioc,
450 (ioc->bios_pg2.ReqAltBootDeviceForm & 450 (ioc->bios_pg2.ReqAltBootDeviceForm &
451 MPI2_BIOSPAGE2_FORM_MASK), 451 MPI2_BIOSPAGE2_FORM_MASK),
452 &ioc->bios_pg2.RequestedAltBootDevice)) { 452 &ioc->bios_pg2.RequestedAltBootDevice)) {
453 dinitprintk(ioc, printk(MPT2SAS_DEBUG_FMT 453 dinitprintk(ioc, printk(MPT2SAS_INFO_FMT
454 "%s: req_alt_boot_device(0x%016llx)\n", 454 "%s: req_alt_boot_device(0x%016llx)\n",
455 ioc->name, __func__, 455 ioc->name, __func__,
456 (unsigned long long)sas_address)); 456 (unsigned long long)sas_address));
@@ -465,7 +465,7 @@ _scsih_determine_boot_device(struct MPT2SAS_ADAPTER *ioc,
465 (ioc->bios_pg2.CurrentBootDeviceForm & 465 (ioc->bios_pg2.CurrentBootDeviceForm &
466 MPI2_BIOSPAGE2_FORM_MASK), 466 MPI2_BIOSPAGE2_FORM_MASK),
467 &ioc->bios_pg2.CurrentBootDevice)) { 467 &ioc->bios_pg2.CurrentBootDevice)) {
468 dinitprintk(ioc, printk(MPT2SAS_DEBUG_FMT 468 dinitprintk(ioc, printk(MPT2SAS_INFO_FMT
469 "%s: current_boot_device(0x%016llx)\n", 469 "%s: current_boot_device(0x%016llx)\n",
470 ioc->name, __func__, 470 ioc->name, __func__,
471 (unsigned long long)sas_address)); 471 (unsigned long long)sas_address));
@@ -566,7 +566,7 @@ _scsih_sas_device_add(struct MPT2SAS_ADAPTER *ioc,
566{ 566{
567 unsigned long flags; 567 unsigned long flags;
568 568
569 dewtprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s: handle" 569 dewtprintk(ioc, printk(MPT2SAS_INFO_FMT "%s: handle"
570 "(0x%04x), sas_addr(0x%016llx)\n", ioc->name, __func__, 570 "(0x%04x), sas_addr(0x%016llx)\n", ioc->name, __func__,
571 sas_device->handle, (unsigned long long)sas_device->sas_address)); 571 sas_device->handle, (unsigned long long)sas_device->sas_address));
572 572
@@ -593,7 +593,7 @@ _scsih_sas_device_init_add(struct MPT2SAS_ADAPTER *ioc,
593{ 593{
594 unsigned long flags; 594 unsigned long flags;
595 595
596 dewtprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s: handle" 596 dewtprintk(ioc, printk(MPT2SAS_INFO_FMT "%s: handle"
597 "(0x%04x), sas_addr(0x%016llx)\n", ioc->name, __func__, 597 "(0x%04x), sas_addr(0x%016llx)\n", ioc->name, __func__,
598 sas_device->handle, (unsigned long long)sas_device->sas_address)); 598 sas_device->handle, (unsigned long long)sas_device->sas_address));
599 599
@@ -695,7 +695,7 @@ _scsih_raid_device_add(struct MPT2SAS_ADAPTER *ioc,
695{ 695{
696 unsigned long flags; 696 unsigned long flags;
697 697
698 dewtprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s: handle" 698 dewtprintk(ioc, printk(MPT2SAS_INFO_FMT "%s: handle"
699 "(0x%04x), wwid(0x%016llx)\n", ioc->name, __func__, 699 "(0x%04x), wwid(0x%016llx)\n", ioc->name, __func__,
700 raid_device->handle, (unsigned long long)raid_device->wwid)); 700 raid_device->handle, (unsigned long long)raid_device->wwid));
701 701
@@ -2002,7 +2002,7 @@ mpt2sas_scsih_issue_tm(struct MPT2SAS_ADAPTER *ioc, u16 handle, uint channel,
2002 2002
2003 ioc_state = mpt2sas_base_get_iocstate(ioc, 0); 2003 ioc_state = mpt2sas_base_get_iocstate(ioc, 0);
2004 if (ioc_state & MPI2_DOORBELL_USED) { 2004 if (ioc_state & MPI2_DOORBELL_USED) {
2005 dhsprintk(ioc, printk(MPT2SAS_DEBUG_FMT "unexpected doorbell " 2005 dhsprintk(ioc, printk(MPT2SAS_INFO_FMT "unexpected doorbell "
2006 "active!\n", ioc->name)); 2006 "active!\n", ioc->name));
2007 mpt2sas_base_hard_reset_handler(ioc, CAN_SLEEP, 2007 mpt2sas_base_hard_reset_handler(ioc, CAN_SLEEP,
2008 FORCE_BIG_HAMMER); 2008 FORCE_BIG_HAMMER);
@@ -2806,7 +2806,7 @@ _scsih_check_topo_delete_events(struct MPT2SAS_ADAPTER *ioc,
2806 MPI2_EVENT_SAS_TOPO_ES_RESPONDING) { 2806 MPI2_EVENT_SAS_TOPO_ES_RESPONDING) {
2807 if (le16_to_cpu(local_event_data->ExpanderDevHandle) == 2807 if (le16_to_cpu(local_event_data->ExpanderDevHandle) ==
2808 expander_handle) { 2808 expander_handle) {
2809 dewtprintk(ioc, printk(MPT2SAS_DEBUG_FMT 2809 dewtprintk(ioc, printk(MPT2SAS_INFO_FMT
2810 "setting ignoring flag\n", ioc->name)); 2810 "setting ignoring flag\n", ioc->name));
2811 fw_event->ignore = 1; 2811 fw_event->ignore = 1;
2812 } 2812 }
@@ -4347,9 +4347,9 @@ _scsih_sas_topology_change_event_debug(struct MPT2SAS_ADAPTER *ioc,
4347 status_str = "unknown status"; 4347 status_str = "unknown status";
4348 break; 4348 break;
4349 } 4349 }
4350 printk(MPT2SAS_DEBUG_FMT "sas topology change: (%s)\n", 4350 printk(MPT2SAS_INFO_FMT "sas topology change: (%s)\n",
4351 ioc->name, status_str); 4351 ioc->name, status_str);
4352 printk(KERN_DEBUG "\thandle(0x%04x), enclosure_handle(0x%04x) " 4352 printk(KERN_INFO "\thandle(0x%04x), enclosure_handle(0x%04x) "
4353 "start_phy(%02d), count(%d)\n", 4353 "start_phy(%02d), count(%d)\n",
4354 le16_to_cpu(event_data->ExpanderDevHandle), 4354 le16_to_cpu(event_data->ExpanderDevHandle),
4355 le16_to_cpu(event_data->EnclosureHandle), 4355 le16_to_cpu(event_data->EnclosureHandle),
@@ -4383,7 +4383,7 @@ _scsih_sas_topology_change_event_debug(struct MPT2SAS_ADAPTER *ioc,
4383 } 4383 }
4384 link_rate = event_data->PHY[i].LinkRate >> 4; 4384 link_rate = event_data->PHY[i].LinkRate >> 4;
4385 prev_link_rate = event_data->PHY[i].LinkRate & 0xF; 4385 prev_link_rate = event_data->PHY[i].LinkRate & 0xF;
4386 printk(KERN_DEBUG "\tphy(%02d), attached_handle(0x%04x): %s:" 4386 printk(KERN_INFO "\tphy(%02d), attached_handle(0x%04x): %s:"
4387 " link rate: new(0x%02x), old(0x%02x)\n", phy_number, 4387 " link rate: new(0x%02x), old(0x%02x)\n", phy_number,
4388 handle, status_str, link_rate, prev_link_rate); 4388 handle, status_str, link_rate, prev_link_rate);
4389 4389
@@ -4427,7 +4427,7 @@ _scsih_sas_topology_change_event(struct MPT2SAS_ADAPTER *ioc,
4427 _scsih_sas_host_refresh(ioc); 4427 _scsih_sas_host_refresh(ioc);
4428 4428
4429 if (fw_event->ignore) { 4429 if (fw_event->ignore) {
4430 dewtprintk(ioc, printk(MPT2SAS_DEBUG_FMT "ignoring expander " 4430 dewtprintk(ioc, printk(MPT2SAS_INFO_FMT "ignoring expander "
4431 "event\n", ioc->name)); 4431 "event\n", ioc->name));
4432 return; 4432 return;
4433 } 4433 }
@@ -4453,7 +4453,7 @@ _scsih_sas_topology_change_event(struct MPT2SAS_ADAPTER *ioc,
4453 /* handle siblings events */ 4453 /* handle siblings events */
4454 for (i = 0; i < event_data->NumEntries; i++) { 4454 for (i = 0; i < event_data->NumEntries; i++) {
4455 if (fw_event->ignore) { 4455 if (fw_event->ignore) {
4456 dewtprintk(ioc, printk(MPT2SAS_DEBUG_FMT "ignoring " 4456 dewtprintk(ioc, printk(MPT2SAS_INFO_FMT "ignoring "
4457 "expander event\n", ioc->name)); 4457 "expander event\n", ioc->name));
4458 return; 4458 return;
4459 } 4459 }
@@ -4573,12 +4573,12 @@ _scsih_sas_device_status_change_event_debug(struct MPT2SAS_ADAPTER *ioc,
4573 reason_str = "unknown reason"; 4573 reason_str = "unknown reason";
4574 break; 4574 break;
4575 } 4575 }
4576 printk(MPT2SAS_DEBUG_FMT "device status change: (%s)\n" 4576 printk(MPT2SAS_INFO_FMT "device status change: (%s)\n"
4577 "\thandle(0x%04x), sas address(0x%016llx)", ioc->name, 4577 "\thandle(0x%04x), sas address(0x%016llx)", ioc->name,
4578 reason_str, le16_to_cpu(event_data->DevHandle), 4578 reason_str, le16_to_cpu(event_data->DevHandle),
4579 (unsigned long long)le64_to_cpu(event_data->SASAddress)); 4579 (unsigned long long)le64_to_cpu(event_data->SASAddress));
4580 if (event_data->ReasonCode == MPI2_EVENT_SAS_DEV_STAT_RC_SMART_DATA) 4580 if (event_data->ReasonCode == MPI2_EVENT_SAS_DEV_STAT_RC_SMART_DATA)
4581 printk(MPT2SAS_DEBUG_FMT ", ASC(0x%x), ASCQ(0x%x)\n", ioc->name, 4581 printk(MPT2SAS_INFO_FMT ", ASC(0x%x), ASCQ(0x%x)\n", ioc->name,
4582 event_data->ASC, event_data->ASCQ); 4582 event_data->ASC, event_data->ASCQ);
4583 printk(KERN_INFO "\n"); 4583 printk(KERN_INFO "\n");
4584} 4584}
@@ -4662,7 +4662,7 @@ _scsih_sas_enclosure_dev_status_change_event_debug(struct MPT2SAS_ADAPTER *ioc,
4662 break; 4662 break;
4663 } 4663 }
4664 4664
4665 printk(MPT2SAS_DEBUG_FMT "enclosure status change: (%s)\n" 4665 printk(MPT2SAS_INFO_FMT "enclosure status change: (%s)\n"
4666 "\thandle(0x%04x), enclosure logical id(0x%016llx)" 4666 "\thandle(0x%04x), enclosure logical id(0x%016llx)"
4667 " number slots(%d)\n", ioc->name, reason_str, 4667 " number slots(%d)\n", ioc->name, reason_str,
4668 le16_to_cpu(event_data->EnclosureHandle), 4668 le16_to_cpu(event_data->EnclosureHandle),
@@ -4713,10 +4713,10 @@ _scsih_sas_broadcast_primative_event(struct MPT2SAS_ADAPTER *ioc,
4713 Mpi2EventDataSasBroadcastPrimitive_t *event_data = fw_event->event_data; 4713 Mpi2EventDataSasBroadcastPrimitive_t *event_data = fw_event->event_data;
4714#endif 4714#endif
4715 u16 ioc_status; 4715 u16 ioc_status;
4716 dewtprintk(ioc, printk(MPT2SAS_DEBUG_FMT "broadcast primative: " 4716 dewtprintk(ioc, printk(MPT2SAS_INFO_FMT "broadcast primative: "
4717 "phy number(%d), width(%d)\n", ioc->name, event_data->PhyNum, 4717 "phy number(%d), width(%d)\n", ioc->name, event_data->PhyNum,
4718 event_data->PortWidth)); 4718 event_data->PortWidth));
4719 dtmprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s: enter\n", ioc->name, 4719 dtmprintk(ioc, printk(MPT2SAS_INFO_FMT "%s: enter\n", ioc->name,
4720 __func__)); 4720 __func__));
4721 4721
4722 termination_count = 0; 4722 termination_count = 0;
@@ -4760,7 +4760,7 @@ _scsih_sas_broadcast_primative_event(struct MPT2SAS_ADAPTER *ioc,
4760 } 4760 }
4761 ioc->broadcast_aen_busy = 0; 4761 ioc->broadcast_aen_busy = 0;
4762 4762
4763 dtmprintk(ioc, printk(MPT2SAS_DEBUG_FMT 4763 dtmprintk(ioc, printk(MPT2SAS_INFO_FMT
4764 "%s - exit, query_count = %d termination_count = %d\n", 4764 "%s - exit, query_count = %d termination_count = %d\n",
4765 ioc->name, __func__, query_count, termination_count)); 4765 ioc->name, __func__, query_count, termination_count));
4766} 4766}
@@ -4781,7 +4781,7 @@ _scsih_sas_discovery_event(struct MPT2SAS_ADAPTER *ioc,
4781 4781
4782#ifdef CONFIG_SCSI_MPT2SAS_LOGGING 4782#ifdef CONFIG_SCSI_MPT2SAS_LOGGING
4783 if (ioc->logging_level & MPT_DEBUG_EVENT_WORK_TASK) { 4783 if (ioc->logging_level & MPT_DEBUG_EVENT_WORK_TASK) {
4784 printk(MPT2SAS_DEBUG_FMT "discovery event: (%s)", ioc->name, 4784 printk(MPT2SAS_INFO_FMT "discovery event: (%s)", ioc->name,
4785 (event_data->ReasonCode == MPI2_EVENT_SAS_DISC_RC_STARTED) ? 4785 (event_data->ReasonCode == MPI2_EVENT_SAS_DISC_RC_STARTED) ?
4786 "start" : "stop"); 4786 "start" : "stop");
4787 if (event_data->DiscoveryStatus) 4787 if (event_data->DiscoveryStatus)
@@ -5075,7 +5075,7 @@ _scsih_sas_ir_config_change_event_debug(struct MPT2SAS_ADAPTER *ioc,
5075 5075
5076 element = (Mpi2EventIrConfigElement_t *)&event_data->ConfigElement[0]; 5076 element = (Mpi2EventIrConfigElement_t *)&event_data->ConfigElement[0];
5077 5077
5078 printk(MPT2SAS_DEBUG_FMT "raid config change: (%s), elements(%d)\n", 5078 printk(MPT2SAS_INFO_FMT "raid config change: (%s), elements(%d)\n",
5079 ioc->name, (le32_to_cpu(event_data->Flags) & 5079 ioc->name, (le32_to_cpu(event_data->Flags) &
5080 MPI2_EVENT_IR_CHANGE_FLAGS_FOREIGN_CONFIG) ? 5080 MPI2_EVENT_IR_CHANGE_FLAGS_FOREIGN_CONFIG) ?
5081 "foreign" : "native", event_data->NumElements); 5081 "foreign" : "native", event_data->NumElements);
@@ -5128,7 +5128,7 @@ _scsih_sas_ir_config_change_event_debug(struct MPT2SAS_ADAPTER *ioc,
5128 element_str = "unknown element"; 5128 element_str = "unknown element";
5129 break; 5129 break;
5130 } 5130 }
5131 printk(KERN_DEBUG "\t(%s:%s), vol handle(0x%04x), " 5131 printk(KERN_INFO "\t(%s:%s), vol handle(0x%04x), "
5132 "pd handle(0x%04x), pd num(0x%02x)\n", element_str, 5132 "pd handle(0x%04x), pd num(0x%02x)\n", element_str,
5133 reason_str, le16_to_cpu(element->VolDevHandle), 5133 reason_str, le16_to_cpu(element->VolDevHandle),
5134 le16_to_cpu(element->PhysDiskDevHandle), 5134 le16_to_cpu(element->PhysDiskDevHandle),
@@ -5218,7 +5218,7 @@ _scsih_sas_ir_volume_event(struct MPT2SAS_ADAPTER *ioc,
5218 5218
5219 handle = le16_to_cpu(event_data->VolDevHandle); 5219 handle = le16_to_cpu(event_data->VolDevHandle);
5220 state = le32_to_cpu(event_data->NewValue); 5220 state = le32_to_cpu(event_data->NewValue);
5221 dewtprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s: handle(0x%04x), " 5221 dewtprintk(ioc, printk(MPT2SAS_INFO_FMT "%s: handle(0x%04x), "
5222 "old(0x%08x), new(0x%08x)\n", ioc->name, __func__, handle, 5222 "old(0x%08x), new(0x%08x)\n", ioc->name, __func__, handle,
5223 le32_to_cpu(event_data->PreviousValue), state)); 5223 le32_to_cpu(event_data->PreviousValue), state));
5224 5224
@@ -5306,7 +5306,7 @@ _scsih_sas_ir_physical_disk_event(struct MPT2SAS_ADAPTER *ioc,
5306 handle = le16_to_cpu(event_data->PhysDiskDevHandle); 5306 handle = le16_to_cpu(event_data->PhysDiskDevHandle);
5307 state = le32_to_cpu(event_data->NewValue); 5307 state = le32_to_cpu(event_data->NewValue);
5308 5308
5309 dewtprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s: handle(0x%04x), " 5309 dewtprintk(ioc, printk(MPT2SAS_INFO_FMT "%s: handle(0x%04x), "
5310 "old(0x%08x), new(0x%08x)\n", ioc->name, __func__, handle, 5310 "old(0x%08x), new(0x%08x)\n", ioc->name, __func__, handle,
5311 le32_to_cpu(event_data->PreviousValue), state)); 5311 le32_to_cpu(event_data->PreviousValue), state));
5312 5312
@@ -5494,7 +5494,7 @@ _scsih_task_set_full(struct MPT2SAS_ADAPTER *ioc, struct fw_event_work
5494 } 5494 }
5495 5495
5496 if (ioc->logging_level & MPT_DEBUG_TASK_SET_FULL) 5496 if (ioc->logging_level & MPT_DEBUG_TASK_SET_FULL)
5497 starget_printk(KERN_DEBUG, sas_device->starget, "task set " 5497 starget_printk(KERN_INFO, sas_device->starget, "task set "
5498 "full: handle(0x%04x), sas_addr(0x%016llx), depth(%d)\n", 5498 "full: handle(0x%04x), sas_addr(0x%016llx), depth(%d)\n",
5499 handle, (unsigned long long)sas_address, current_depth); 5499 handle, (unsigned long long)sas_address, current_depth);
5500 5500
@@ -5885,11 +5885,11 @@ mpt2sas_scsih_reset_handler(struct MPT2SAS_ADAPTER *ioc, int reset_phase)
5885{ 5885{
5886 switch (reset_phase) { 5886 switch (reset_phase) {
5887 case MPT2_IOC_PRE_RESET: 5887 case MPT2_IOC_PRE_RESET:
5888 dtmprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s: " 5888 dtmprintk(ioc, printk(MPT2SAS_INFO_FMT "%s: "
5889 "MPT2_IOC_PRE_RESET\n", ioc->name, __func__)); 5889 "MPT2_IOC_PRE_RESET\n", ioc->name, __func__));
5890 break; 5890 break;
5891 case MPT2_IOC_AFTER_RESET: 5891 case MPT2_IOC_AFTER_RESET:
5892 dtmprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s: " 5892 dtmprintk(ioc, printk(MPT2SAS_INFO_FMT "%s: "
5893 "MPT2_IOC_AFTER_RESET\n", ioc->name, __func__)); 5893 "MPT2_IOC_AFTER_RESET\n", ioc->name, __func__));
5894 if (ioc->scsih_cmds.status & MPT2_CMD_PENDING) { 5894 if (ioc->scsih_cmds.status & MPT2_CMD_PENDING) {
5895 ioc->scsih_cmds.status |= MPT2_CMD_RESET; 5895 ioc->scsih_cmds.status |= MPT2_CMD_RESET;
@@ -5906,7 +5906,7 @@ mpt2sas_scsih_reset_handler(struct MPT2SAS_ADAPTER *ioc, int reset_phase)
5906 _scsih_queue_rescan(ioc); 5906 _scsih_queue_rescan(ioc);
5907 break; 5907 break;
5908 case MPT2_IOC_DONE_RESET: 5908 case MPT2_IOC_DONE_RESET:
5909 dtmprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s: " 5909 dtmprintk(ioc, printk(MPT2SAS_INFO_FMT "%s: "
5910 "MPT2_IOC_DONE_RESET\n", ioc->name, __func__)); 5910 "MPT2_IOC_DONE_RESET\n", ioc->name, __func__));
5911 _scsih_sas_host_refresh(ioc); 5911 _scsih_sas_host_refresh(ioc);
5912 _scsih_prep_device_scan(ioc); 5912 _scsih_prep_device_scan(ioc);