diff options
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_attr.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_attr.c | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/drivers/scsi/lpfc/lpfc_attr.c b/drivers/scsi/lpfc/lpfc_attr.c index 16498e030c70..00656fc92b93 100644 --- a/drivers/scsi/lpfc/lpfc_attr.c +++ b/drivers/scsi/lpfc/lpfc_attr.c | |||
@@ -1865,8 +1865,10 @@ lpfc_##attr##_set(struct lpfc_vport *vport, uint val) \ | |||
1865 | { \ | 1865 | { \ |
1866 | if (val >= minval && val <= maxval) {\ | 1866 | if (val >= minval && val <= maxval) {\ |
1867 | lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT, \ | 1867 | lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT, \ |
1868 | "3053 lpfc_" #attr " changed from %d to %d\n", \ | 1868 | "3053 lpfc_" #attr \ |
1869 | vport->cfg_##attr, val); \ | 1869 | " changed from %d (x%x) to %d (x%x)\n", \ |
1870 | vport->cfg_##attr, vport->cfg_##attr, \ | ||
1871 | val, val); \ | ||
1870 | vport->cfg_##attr = val;\ | 1872 | vport->cfg_##attr = val;\ |
1871 | return 0;\ | 1873 | return 0;\ |
1872 | }\ | 1874 | }\ |
@@ -4011,8 +4013,11 @@ LPFC_ATTR_R(ack0, 0, 0, 1, "Enable ACK0 support"); | |||
4011 | # For [0], FCP commands are issued to Work Queues ina round robin fashion. | 4013 | # For [0], FCP commands are issued to Work Queues ina round robin fashion. |
4012 | # For [1], FCP commands are issued to a Work Queue associated with the | 4014 | # For [1], FCP commands are issued to a Work Queue associated with the |
4013 | # current CPU. | 4015 | # current CPU. |
4016 | # It would be set to 1 by the driver if it's able to set up cpu affinity | ||
4017 | # for FCP I/Os through Work Queue associated with the current CPU. Otherwise, | ||
4018 | # roundrobin scheduling of FCP I/Os through WQs will be used. | ||
4014 | */ | 4019 | */ |
4015 | LPFC_ATTR_RW(fcp_io_sched, 0, 0, 1, "Determine scheduling algrithmn for " | 4020 | LPFC_ATTR_RW(fcp_io_sched, 0, 0, 1, "Determine scheduling algorithm for " |
4016 | "issuing commands [0] - Round Robin, [1] - Current CPU"); | 4021 | "issuing commands [0] - Round Robin, [1] - Current CPU"); |
4017 | 4022 | ||
4018 | /* | 4023 | /* |
@@ -4110,6 +4115,12 @@ LPFC_ATTR_RW(poll_tmo, 10, 1, 255, | |||
4110 | "Milliseconds driver will wait between polling FCP ring"); | 4115 | "Milliseconds driver will wait between polling FCP ring"); |
4111 | 4116 | ||
4112 | /* | 4117 | /* |
4118 | # lpfc_task_mgmt_tmo: Maximum time to wait for task management commands | ||
4119 | # to complete in seconds. Value range is [5,180], default value is 60. | ||
4120 | */ | ||
4121 | LPFC_ATTR_RW(task_mgmt_tmo, 60, 5, 180, | ||
4122 | "Maximum time to wait for task management commands to complete"); | ||
4123 | /* | ||
4113 | # lpfc_use_msi: Use MSI (Message Signaled Interrupts) in systems that | 4124 | # lpfc_use_msi: Use MSI (Message Signaled Interrupts) in systems that |
4114 | # support this feature | 4125 | # support this feature |
4115 | # 0 = MSI disabled | 4126 | # 0 = MSI disabled |
@@ -4295,6 +4306,7 @@ struct device_attribute *lpfc_hba_attrs[] = { | |||
4295 | &dev_attr_issue_reset, | 4306 | &dev_attr_issue_reset, |
4296 | &dev_attr_lpfc_poll, | 4307 | &dev_attr_lpfc_poll, |
4297 | &dev_attr_lpfc_poll_tmo, | 4308 | &dev_attr_lpfc_poll_tmo, |
4309 | &dev_attr_lpfc_task_mgmt_tmo, | ||
4298 | &dev_attr_lpfc_use_msi, | 4310 | &dev_attr_lpfc_use_msi, |
4299 | &dev_attr_lpfc_fcp_imax, | 4311 | &dev_attr_lpfc_fcp_imax, |
4300 | &dev_attr_lpfc_fcp_cpu_map, | 4312 | &dev_attr_lpfc_fcp_cpu_map, |
@@ -5274,6 +5286,7 @@ lpfc_get_cfgparam(struct lpfc_hba *phba) | |||
5274 | lpfc_topology_init(phba, lpfc_topology); | 5286 | lpfc_topology_init(phba, lpfc_topology); |
5275 | lpfc_link_speed_init(phba, lpfc_link_speed); | 5287 | lpfc_link_speed_init(phba, lpfc_link_speed); |
5276 | lpfc_poll_tmo_init(phba, lpfc_poll_tmo); | 5288 | lpfc_poll_tmo_init(phba, lpfc_poll_tmo); |
5289 | lpfc_task_mgmt_tmo_init(phba, lpfc_task_mgmt_tmo); | ||
5277 | lpfc_enable_npiv_init(phba, lpfc_enable_npiv); | 5290 | lpfc_enable_npiv_init(phba, lpfc_enable_npiv); |
5278 | lpfc_fcf_failover_policy_init(phba, lpfc_fcf_failover_policy); | 5291 | lpfc_fcf_failover_policy_init(phba, lpfc_fcf_failover_policy); |
5279 | lpfc_enable_rrq_init(phba, lpfc_enable_rrq); | 5292 | lpfc_enable_rrq_init(phba, lpfc_enable_rrq); |