diff options
author | Kashyap, Desai <kashyap.desai@lsi.com> | 2010-06-17 04:13:57 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-07-27 13:02:16 -0400 |
commit | eabb08ad2d3b0257cd2c9aed4f106fb39d14604a (patch) | |
tree | 5a9c7c22065cb775265185a265599dd082b44021 /drivers/scsi/mpt2sas | |
parent | 570c67ac443dab5c46e5744e950f0539724cb65d (diff) |
[SCSI] mpt2sas: print level KERN_DEBUG is replaced by KERN_INFO
Converting print level from MPT2SAS_DEBUG_FMT to MPT2SAS_INFO_FMT.
Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/mpt2sas')
-rw-r--r-- | drivers/scsi/mpt2sas/mpt2sas_base.c | 82 | ||||
-rw-r--r-- | drivers/scsi/mpt2sas/mpt2sas_base.h | 1 | ||||
-rw-r--r-- | drivers/scsi/mpt2sas/mpt2sas_config.c | 4 | ||||
-rw-r--r-- | drivers/scsi/mpt2sas/mpt2sas_ctl.c | 68 | ||||
-rw-r--r-- | drivers/scsi/mpt2sas/mpt2sas_scsih.c | 56 | ||||
-rw-r--r-- | drivers/scsi/mpt2sas/mpt2sas_transport.c | 16 |
6 files changed, 113 insertions, 114 deletions
diff --git a/drivers/scsi/mpt2sas/mpt2sas_base.c b/drivers/scsi/mpt2sas/mpt2sas_base.c index 93c06239d951..3774b0742b2b 100644 --- a/drivers/scsi/mpt2sas/mpt2sas_base.c +++ b/drivers/scsi/mpt2sas/mpt2sas_base.c | |||
@@ -1242,7 +1242,7 @@ mpt2sas_base_map_resources(struct MPT2SAS_ADAPTER *ioc) | |||
1242 | u64 pio_chip = 0; | 1242 | u64 pio_chip = 0; |
1243 | u64 chip_phys = 0; | 1243 | u64 chip_phys = 0; |
1244 | 1244 | ||
1245 | dinitprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s\n", | 1245 | dinitprintk(ioc, printk(MPT2SAS_INFO_FMT "%s\n", |
1246 | ioc->name, __func__)); | 1246 | ioc->name, __func__)); |
1247 | 1247 | ||
1248 | ioc->bars = pci_select_bars(pdev, IORESOURCE_MEM); | 1248 | ioc->bars = pci_select_bars(pdev, IORESOURCE_MEM); |
@@ -1865,7 +1865,7 @@ _base_static_config_pages(struct MPT2SAS_ADAPTER *ioc) | |||
1865 | static void | 1865 | static void |
1866 | _base_release_memory_pools(struct MPT2SAS_ADAPTER *ioc) | 1866 | _base_release_memory_pools(struct MPT2SAS_ADAPTER *ioc) |
1867 | { | 1867 | { |
1868 | dexitprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s\n", ioc->name, | 1868 | dexitprintk(ioc, printk(MPT2SAS_INFO_FMT "%s\n", ioc->name, |
1869 | __func__)); | 1869 | __func__)); |
1870 | 1870 | ||
1871 | if (ioc->request) { | 1871 | if (ioc->request) { |
@@ -1951,7 +1951,7 @@ _base_allocate_memory_pools(struct MPT2SAS_ADAPTER *ioc, int sleep_flag) | |||
1951 | u32 retry_sz; | 1951 | u32 retry_sz; |
1952 | u16 max_request_credit; | 1952 | u16 max_request_credit; |
1953 | 1953 | ||
1954 | dinitprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s\n", ioc->name, | 1954 | dinitprintk(ioc, printk(MPT2SAS_INFO_FMT "%s\n", ioc->name, |
1955 | __func__)); | 1955 | __func__)); |
1956 | 1956 | ||
1957 | retry_sz = 0; | 1957 | retry_sz = 0; |
@@ -2378,7 +2378,7 @@ _base_wait_for_doorbell_int(struct MPT2SAS_ADAPTER *ioc, int timeout, | |||
2378 | do { | 2378 | do { |
2379 | int_status = readl(&ioc->chip->HostInterruptStatus); | 2379 | int_status = readl(&ioc->chip->HostInterruptStatus); |
2380 | if (int_status & MPI2_HIS_IOC2SYS_DB_STATUS) { | 2380 | if (int_status & MPI2_HIS_IOC2SYS_DB_STATUS) { |
2381 | dhsprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s: " | 2381 | dhsprintk(ioc, printk(MPT2SAS_INFO_FMT "%s: " |
2382 | "successfull count(%d), timeout(%d)\n", ioc->name, | 2382 | "successfull count(%d), timeout(%d)\n", ioc->name, |
2383 | __func__, count, timeout)); | 2383 | __func__, count, timeout)); |
2384 | return 0; | 2384 | return 0; |
@@ -2419,7 +2419,7 @@ _base_wait_for_doorbell_ack(struct MPT2SAS_ADAPTER *ioc, int timeout, | |||
2419 | do { | 2419 | do { |
2420 | int_status = readl(&ioc->chip->HostInterruptStatus); | 2420 | int_status = readl(&ioc->chip->HostInterruptStatus); |
2421 | if (!(int_status & MPI2_HIS_SYS2IOC_DB_STATUS)) { | 2421 | if (!(int_status & MPI2_HIS_SYS2IOC_DB_STATUS)) { |
2422 | dhsprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s: " | 2422 | dhsprintk(ioc, printk(MPT2SAS_INFO_FMT "%s: " |
2423 | "successfull count(%d), timeout(%d)\n", ioc->name, | 2423 | "successfull count(%d), timeout(%d)\n", ioc->name, |
2424 | __func__, count, timeout)); | 2424 | __func__, count, timeout)); |
2425 | return 0; | 2425 | return 0; |
@@ -2467,7 +2467,7 @@ _base_wait_for_doorbell_not_used(struct MPT2SAS_ADAPTER *ioc, int timeout, | |||
2467 | do { | 2467 | do { |
2468 | doorbell_reg = readl(&ioc->chip->Doorbell); | 2468 | doorbell_reg = readl(&ioc->chip->Doorbell); |
2469 | if (!(doorbell_reg & MPI2_DOORBELL_USED)) { | 2469 | if (!(doorbell_reg & MPI2_DOORBELL_USED)) { |
2470 | dhsprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s: " | 2470 | dhsprintk(ioc, printk(MPT2SAS_INFO_FMT "%s: " |
2471 | "successfull count(%d), timeout(%d)\n", ioc->name, | 2471 | "successfull count(%d), timeout(%d)\n", ioc->name, |
2472 | __func__, count, timeout)); | 2472 | __func__, count, timeout)); |
2473 | return 0; | 2473 | return 0; |
@@ -2641,9 +2641,9 @@ _base_handshake_req_reply_wait(struct MPT2SAS_ADAPTER *ioc, int request_bytes, | |||
2641 | 2641 | ||
2642 | if (ioc->logging_level & MPT_DEBUG_INIT) { | 2642 | if (ioc->logging_level & MPT_DEBUG_INIT) { |
2643 | mfp = (u32 *)reply; | 2643 | mfp = (u32 *)reply; |
2644 | printk(KERN_DEBUG "\toffset:data\n"); | 2644 | printk(KERN_INFO "\toffset:data\n"); |
2645 | for (i = 0; i < reply_bytes/4; i++) | 2645 | for (i = 0; i < reply_bytes/4; i++) |
2646 | printk(KERN_DEBUG "\t[0x%02x]:%08x\n", i*4, | 2646 | printk(KERN_INFO "\t[0x%02x]:%08x\n", i*4, |
2647 | le32_to_cpu(mfp[i])); | 2647 | le32_to_cpu(mfp[i])); |
2648 | } | 2648 | } |
2649 | return 0; | 2649 | return 0; |
@@ -2676,7 +2676,7 @@ mpt2sas_base_sas_iounit_control(struct MPT2SAS_ADAPTER *ioc, | |||
2676 | void *request; | 2676 | void *request; |
2677 | u16 wait_state_count; | 2677 | u16 wait_state_count; |
2678 | 2678 | ||
2679 | dinitprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s\n", ioc->name, | 2679 | dinitprintk(ioc, printk(MPT2SAS_INFO_FMT "%s\n", ioc->name, |
2680 | __func__)); | 2680 | __func__)); |
2681 | 2681 | ||
2682 | mutex_lock(&ioc->base_cmds.mutex); | 2682 | mutex_lock(&ioc->base_cmds.mutex); |
@@ -2781,7 +2781,7 @@ mpt2sas_base_scsi_enclosure_processor(struct MPT2SAS_ADAPTER *ioc, | |||
2781 | void *request; | 2781 | void *request; |
2782 | u16 wait_state_count; | 2782 | u16 wait_state_count; |
2783 | 2783 | ||
2784 | dinitprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s\n", ioc->name, | 2784 | dinitprintk(ioc, printk(MPT2SAS_INFO_FMT "%s\n", ioc->name, |
2785 | __func__)); | 2785 | __func__)); |
2786 | 2786 | ||
2787 | mutex_lock(&ioc->base_cmds.mutex); | 2787 | mutex_lock(&ioc->base_cmds.mutex); |
@@ -2869,7 +2869,7 @@ _base_get_port_facts(struct MPT2SAS_ADAPTER *ioc, int port, int sleep_flag) | |||
2869 | Mpi2PortFactsReply_t mpi_reply, *pfacts; | 2869 | Mpi2PortFactsReply_t mpi_reply, *pfacts; |
2870 | int mpi_reply_sz, mpi_request_sz, r; | 2870 | int mpi_reply_sz, mpi_request_sz, r; |
2871 | 2871 | ||
2872 | dinitprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s\n", ioc->name, | 2872 | dinitprintk(ioc, printk(MPT2SAS_INFO_FMT "%s\n", ioc->name, |
2873 | __func__)); | 2873 | __func__)); |
2874 | 2874 | ||
2875 | mpi_reply_sz = sizeof(Mpi2PortFactsReply_t); | 2875 | mpi_reply_sz = sizeof(Mpi2PortFactsReply_t); |
@@ -2911,7 +2911,7 @@ _base_get_ioc_facts(struct MPT2SAS_ADAPTER *ioc, int sleep_flag) | |||
2911 | Mpi2IOCFactsReply_t mpi_reply, *facts; | 2911 | Mpi2IOCFactsReply_t mpi_reply, *facts; |
2912 | int mpi_reply_sz, mpi_request_sz, r; | 2912 | int mpi_reply_sz, mpi_request_sz, r; |
2913 | 2913 | ||
2914 | dinitprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s\n", ioc->name, | 2914 | dinitprintk(ioc, printk(MPT2SAS_INFO_FMT "%s\n", ioc->name, |
2915 | __func__)); | 2915 | __func__)); |
2916 | 2916 | ||
2917 | mpi_reply_sz = sizeof(Mpi2IOCFactsReply_t); | 2917 | mpi_reply_sz = sizeof(Mpi2IOCFactsReply_t); |
@@ -2983,7 +2983,7 @@ _base_send_ioc_init(struct MPT2SAS_ADAPTER *ioc, int sleep_flag) | |||
2983 | struct timeval current_time; | 2983 | struct timeval current_time; |
2984 | u16 ioc_status; | 2984 | u16 ioc_status; |
2985 | 2985 | ||
2986 | dinitprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s\n", ioc->name, | 2986 | dinitprintk(ioc, printk(MPT2SAS_INFO_FMT "%s\n", ioc->name, |
2987 | __func__)); | 2987 | __func__)); |
2988 | 2988 | ||
2989 | memset(&mpi_request, 0, sizeof(Mpi2IOCInitRequest_t)); | 2989 | memset(&mpi_request, 0, sizeof(Mpi2IOCInitRequest_t)); |
@@ -3044,9 +3044,9 @@ _base_send_ioc_init(struct MPT2SAS_ADAPTER *ioc, int sleep_flag) | |||
3044 | int i; | 3044 | int i; |
3045 | 3045 | ||
3046 | mfp = (u32 *)&mpi_request; | 3046 | mfp = (u32 *)&mpi_request; |
3047 | printk(KERN_DEBUG "\toffset:data\n"); | 3047 | printk(KERN_INFO "\toffset:data\n"); |
3048 | for (i = 0; i < sizeof(Mpi2IOCInitRequest_t)/4; i++) | 3048 | for (i = 0; i < sizeof(Mpi2IOCInitRequest_t)/4; i++) |
3049 | printk(KERN_DEBUG "\t[0x%02x]:%08x\n", i*4, | 3049 | printk(KERN_INFO "\t[0x%02x]:%08x\n", i*4, |
3050 | le32_to_cpu(mfp[i])); | 3050 | le32_to_cpu(mfp[i])); |
3051 | } | 3051 | } |
3052 | 3052 | ||
@@ -3125,7 +3125,7 @@ _base_send_port_enable(struct MPT2SAS_ADAPTER *ioc, int sleep_flag) | |||
3125 | r = -ETIME; | 3125 | r = -ETIME; |
3126 | goto out; | 3126 | goto out; |
3127 | } else | 3127 | } else |
3128 | dinitprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s: complete\n", | 3128 | dinitprintk(ioc, printk(MPT2SAS_INFO_FMT "%s: complete\n", |
3129 | ioc->name, __func__)); | 3129 | ioc->name, __func__)); |
3130 | 3130 | ||
3131 | ioc_state = _base_wait_on_iocstate(ioc, MPI2_IOC_STATE_OPERATIONAL, | 3131 | ioc_state = _base_wait_on_iocstate(ioc, MPI2_IOC_STATE_OPERATIONAL, |
@@ -3185,7 +3185,7 @@ _base_event_notification(struct MPT2SAS_ADAPTER *ioc, int sleep_flag) | |||
3185 | int r = 0; | 3185 | int r = 0; |
3186 | int i; | 3186 | int i; |
3187 | 3187 | ||
3188 | dinitprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s\n", ioc->name, | 3188 | dinitprintk(ioc, printk(MPT2SAS_INFO_FMT "%s\n", ioc->name, |
3189 | __func__)); | 3189 | __func__)); |
3190 | 3190 | ||
3191 | if (ioc->base_cmds.status & MPT2_CMD_PENDING) { | 3191 | if (ioc->base_cmds.status & MPT2_CMD_PENDING) { |
@@ -3223,7 +3223,7 @@ _base_event_notification(struct MPT2SAS_ADAPTER *ioc, int sleep_flag) | |||
3223 | else | 3223 | else |
3224 | r = -ETIME; | 3224 | r = -ETIME; |
3225 | } else | 3225 | } else |
3226 | dinitprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s: complete\n", | 3226 | dinitprintk(ioc, printk(MPT2SAS_INFO_FMT "%s: complete\n", |
3227 | ioc->name, __func__)); | 3227 | ioc->name, __func__)); |
3228 | ioc->base_cmds.status = MPT2_CMD_NOT_USED; | 3228 | ioc->base_cmds.status = MPT2_CMD_NOT_USED; |
3229 | return r; | 3229 | return r; |
@@ -3285,7 +3285,7 @@ _base_diag_reset(struct MPT2SAS_ADAPTER *ioc, int sleep_flag) | |||
3285 | 3285 | ||
3286 | _base_save_msix_table(ioc); | 3286 | _base_save_msix_table(ioc); |
3287 | 3287 | ||
3288 | drsprintk(ioc, printk(MPT2SAS_DEBUG_FMT "clear interrupts\n", | 3288 | drsprintk(ioc, printk(MPT2SAS_INFO_FMT "clear interrupts\n", |
3289 | ioc->name)); | 3289 | ioc->name)); |
3290 | 3290 | ||
3291 | count = 0; | 3291 | count = 0; |
@@ -3293,7 +3293,7 @@ _base_diag_reset(struct MPT2SAS_ADAPTER *ioc, int sleep_flag) | |||
3293 | /* Write magic sequence to WriteSequence register | 3293 | /* Write magic sequence to WriteSequence register |
3294 | * Loop until in diagnostic mode | 3294 | * Loop until in diagnostic mode |
3295 | */ | 3295 | */ |
3296 | drsprintk(ioc, printk(MPT2SAS_DEBUG_FMT "write magic " | 3296 | drsprintk(ioc, printk(MPT2SAS_INFO_FMT "write magic " |
3297 | "sequence\n", ioc->name)); | 3297 | "sequence\n", ioc->name)); |
3298 | writel(MPI2_WRSEQ_FLUSH_KEY_VALUE, &ioc->chip->WriteSequence); | 3298 | writel(MPI2_WRSEQ_FLUSH_KEY_VALUE, &ioc->chip->WriteSequence); |
3299 | writel(MPI2_WRSEQ_1ST_KEY_VALUE, &ioc->chip->WriteSequence); | 3299 | writel(MPI2_WRSEQ_1ST_KEY_VALUE, &ioc->chip->WriteSequence); |
@@ -3313,7 +3313,7 @@ _base_diag_reset(struct MPT2SAS_ADAPTER *ioc, int sleep_flag) | |||
3313 | goto out; | 3313 | goto out; |
3314 | 3314 | ||
3315 | host_diagnostic = readl(&ioc->chip->HostDiagnostic); | 3315 | host_diagnostic = readl(&ioc->chip->HostDiagnostic); |
3316 | drsprintk(ioc, printk(MPT2SAS_DEBUG_FMT "wrote magic " | 3316 | drsprintk(ioc, printk(MPT2SAS_INFO_FMT "wrote magic " |
3317 | "sequence: count(%d), host_diagnostic(0x%08x)\n", | 3317 | "sequence: count(%d), host_diagnostic(0x%08x)\n", |
3318 | ioc->name, count, host_diagnostic)); | 3318 | ioc->name, count, host_diagnostic)); |
3319 | 3319 | ||
@@ -3321,7 +3321,7 @@ _base_diag_reset(struct MPT2SAS_ADAPTER *ioc, int sleep_flag) | |||
3321 | 3321 | ||
3322 | hcb_size = readl(&ioc->chip->HCBSize); | 3322 | hcb_size = readl(&ioc->chip->HCBSize); |
3323 | 3323 | ||
3324 | drsprintk(ioc, printk(MPT2SAS_DEBUG_FMT "diag reset: issued\n", | 3324 | drsprintk(ioc, printk(MPT2SAS_INFO_FMT "diag reset: issued\n", |
3325 | ioc->name)); | 3325 | ioc->name)); |
3326 | writel(host_diagnostic | MPI2_DIAG_RESET_ADAPTER, | 3326 | writel(host_diagnostic | MPI2_DIAG_RESET_ADAPTER, |
3327 | &ioc->chip->HostDiagnostic); | 3327 | &ioc->chip->HostDiagnostic); |
@@ -3348,29 +3348,29 @@ _base_diag_reset(struct MPT2SAS_ADAPTER *ioc, int sleep_flag) | |||
3348 | 3348 | ||
3349 | if (host_diagnostic & MPI2_DIAG_HCB_MODE) { | 3349 | if (host_diagnostic & MPI2_DIAG_HCB_MODE) { |
3350 | 3350 | ||
3351 | drsprintk(ioc, printk(MPT2SAS_DEBUG_FMT "restart the adapter " | 3351 | drsprintk(ioc, printk(MPT2SAS_INFO_FMT "restart the adapter " |
3352 | "assuming the HCB Address points to good F/W\n", | 3352 | "assuming the HCB Address points to good F/W\n", |
3353 | ioc->name)); | 3353 | ioc->name)); |
3354 | host_diagnostic &= ~MPI2_DIAG_BOOT_DEVICE_SELECT_MASK; | 3354 | host_diagnostic &= ~MPI2_DIAG_BOOT_DEVICE_SELECT_MASK; |
3355 | host_diagnostic |= MPI2_DIAG_BOOT_DEVICE_SELECT_HCDW; | 3355 | host_diagnostic |= MPI2_DIAG_BOOT_DEVICE_SELECT_HCDW; |
3356 | writel(host_diagnostic, &ioc->chip->HostDiagnostic); | 3356 | writel(host_diagnostic, &ioc->chip->HostDiagnostic); |
3357 | 3357 | ||
3358 | drsprintk(ioc, printk(MPT2SAS_DEBUG_FMT | 3358 | drsprintk(ioc, printk(MPT2SAS_INFO_FMT |
3359 | "re-enable the HCDW\n", ioc->name)); | 3359 | "re-enable the HCDW\n", ioc->name)); |
3360 | writel(hcb_size | MPI2_HCB_SIZE_HCB_ENABLE, | 3360 | writel(hcb_size | MPI2_HCB_SIZE_HCB_ENABLE, |
3361 | &ioc->chip->HCBSize); | 3361 | &ioc->chip->HCBSize); |
3362 | } | 3362 | } |
3363 | 3363 | ||
3364 | drsprintk(ioc, printk(MPT2SAS_DEBUG_FMT "restart the adapter\n", | 3364 | drsprintk(ioc, printk(MPT2SAS_INFO_FMT "restart the adapter\n", |
3365 | ioc->name)); | 3365 | ioc->name)); |
3366 | writel(host_diagnostic & ~MPI2_DIAG_HOLD_IOC_RESET, | 3366 | writel(host_diagnostic & ~MPI2_DIAG_HOLD_IOC_RESET, |
3367 | &ioc->chip->HostDiagnostic); | 3367 | &ioc->chip->HostDiagnostic); |
3368 | 3368 | ||
3369 | drsprintk(ioc, printk(MPT2SAS_DEBUG_FMT "disable writes to the " | 3369 | drsprintk(ioc, printk(MPT2SAS_INFO_FMT "disable writes to the " |
3370 | "diagnostic register\n", ioc->name)); | 3370 | "diagnostic register\n", ioc->name)); |
3371 | writel(MPI2_WRSEQ_FLUSH_KEY_VALUE, &ioc->chip->WriteSequence); | 3371 | writel(MPI2_WRSEQ_FLUSH_KEY_VALUE, &ioc->chip->WriteSequence); |
3372 | 3372 | ||
3373 | drsprintk(ioc, printk(MPT2SAS_DEBUG_FMT "Wait for FW to go to the " | 3373 | drsprintk(ioc, printk(MPT2SAS_INFO_FMT "Wait for FW to go to the " |
3374 | "READY state\n", ioc->name)); | 3374 | "READY state\n", ioc->name)); |
3375 | ioc_state = _base_wait_on_iocstate(ioc, MPI2_IOC_STATE_READY, 20, | 3375 | ioc_state = _base_wait_on_iocstate(ioc, MPI2_IOC_STATE_READY, 20, |
3376 | sleep_flag); | 3376 | sleep_flag); |
@@ -3404,18 +3404,18 @@ _base_make_ioc_ready(struct MPT2SAS_ADAPTER *ioc, int sleep_flag, | |||
3404 | u32 ioc_state; | 3404 | u32 ioc_state; |
3405 | int rc; | 3405 | int rc; |
3406 | 3406 | ||
3407 | dinitprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s\n", ioc->name, | 3407 | dinitprintk(ioc, printk(MPT2SAS_INFO_FMT "%s\n", ioc->name, |
3408 | __func__)); | 3408 | __func__)); |
3409 | 3409 | ||
3410 | ioc_state = mpt2sas_base_get_iocstate(ioc, 0); | 3410 | ioc_state = mpt2sas_base_get_iocstate(ioc, 0); |
3411 | dhsprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s: ioc_state(0x%08x)\n", | 3411 | dhsprintk(ioc, printk(MPT2SAS_INFO_FMT "%s: ioc_state(0x%08x)\n", |
3412 | ioc->name, __func__, ioc_state)); | 3412 | ioc->name, __func__, ioc_state)); |
3413 | 3413 | ||
3414 | if ((ioc_state & MPI2_IOC_STATE_MASK) == MPI2_IOC_STATE_READY) | 3414 | if ((ioc_state & MPI2_IOC_STATE_MASK) == MPI2_IOC_STATE_READY) |
3415 | return 0; | 3415 | return 0; |
3416 | 3416 | ||
3417 | if (ioc_state & MPI2_DOORBELL_USED) { | 3417 | if (ioc_state & MPI2_DOORBELL_USED) { |
3418 | dhsprintk(ioc, printk(MPT2SAS_DEBUG_FMT "unexpected doorbell " | 3418 | dhsprintk(ioc, printk(MPT2SAS_INFO_FMT "unexpected doorbell " |
3419 | "active!\n", ioc->name)); | 3419 | "active!\n", ioc->name)); |
3420 | goto issue_diag_reset; | 3420 | goto issue_diag_reset; |
3421 | } | 3421 | } |
@@ -3458,7 +3458,7 @@ _base_make_ioc_operational(struct MPT2SAS_ADAPTER *ioc, int sleep_flag) | |||
3458 | u16 smid; | 3458 | u16 smid; |
3459 | struct _tr_list *delayed_tr, *delayed_tr_next; | 3459 | struct _tr_list *delayed_tr, *delayed_tr_next; |
3460 | 3460 | ||
3461 | dinitprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s\n", ioc->name, | 3461 | dinitprintk(ioc, printk(MPT2SAS_INFO_FMT "%s\n", ioc->name, |
3462 | __func__)); | 3462 | __func__)); |
3463 | 3463 | ||
3464 | /* clean the delayed target reset list */ | 3464 | /* clean the delayed target reset list */ |
@@ -3554,7 +3554,7 @@ mpt2sas_base_free_resources(struct MPT2SAS_ADAPTER *ioc) | |||
3554 | { | 3554 | { |
3555 | struct pci_dev *pdev = ioc->pdev; | 3555 | struct pci_dev *pdev = ioc->pdev; |
3556 | 3556 | ||
3557 | dexitprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s\n", ioc->name, | 3557 | dexitprintk(ioc, printk(MPT2SAS_INFO_FMT "%s\n", ioc->name, |
3558 | __func__)); | 3558 | __func__)); |
3559 | 3559 | ||
3560 | _base_mask_interrupts(ioc); | 3560 | _base_mask_interrupts(ioc); |
@@ -3587,7 +3587,7 @@ mpt2sas_base_attach(struct MPT2SAS_ADAPTER *ioc) | |||
3587 | { | 3587 | { |
3588 | int r, i; | 3588 | int r, i; |
3589 | 3589 | ||
3590 | dinitprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s\n", ioc->name, | 3590 | dinitprintk(ioc, printk(MPT2SAS_INFO_FMT "%s\n", ioc->name, |
3591 | __func__)); | 3591 | __func__)); |
3592 | 3592 | ||
3593 | r = mpt2sas_base_map_resources(ioc); | 3593 | r = mpt2sas_base_map_resources(ioc); |
@@ -3719,7 +3719,7 @@ void | |||
3719 | mpt2sas_base_detach(struct MPT2SAS_ADAPTER *ioc) | 3719 | mpt2sas_base_detach(struct MPT2SAS_ADAPTER *ioc) |
3720 | { | 3720 | { |
3721 | 3721 | ||
3722 | dexitprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s\n", ioc->name, | 3722 | dexitprintk(ioc, printk(MPT2SAS_INFO_FMT "%s\n", ioc->name, |
3723 | __func__)); | 3723 | __func__)); |
3724 | 3724 | ||
3725 | mpt2sas_base_stop_watchdog(ioc); | 3725 | mpt2sas_base_stop_watchdog(ioc); |
@@ -3752,11 +3752,11 @@ _base_reset_handler(struct MPT2SAS_ADAPTER *ioc, int reset_phase) | |||
3752 | { | 3752 | { |
3753 | switch (reset_phase) { | 3753 | switch (reset_phase) { |
3754 | case MPT2_IOC_PRE_RESET: | 3754 | case MPT2_IOC_PRE_RESET: |
3755 | dtmprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s: " | 3755 | dtmprintk(ioc, printk(MPT2SAS_INFO_FMT "%s: " |
3756 | "MPT2_IOC_PRE_RESET\n", ioc->name, __func__)); | 3756 | "MPT2_IOC_PRE_RESET\n", ioc->name, __func__)); |
3757 | break; | 3757 | break; |
3758 | case MPT2_IOC_AFTER_RESET: | 3758 | case MPT2_IOC_AFTER_RESET: |
3759 | dtmprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s: " | 3759 | dtmprintk(ioc, printk(MPT2SAS_INFO_FMT "%s: " |
3760 | "MPT2_IOC_AFTER_RESET\n", ioc->name, __func__)); | 3760 | "MPT2_IOC_AFTER_RESET\n", ioc->name, __func__)); |
3761 | if (ioc->transport_cmds.status & MPT2_CMD_PENDING) { | 3761 | if (ioc->transport_cmds.status & MPT2_CMD_PENDING) { |
3762 | ioc->transport_cmds.status |= MPT2_CMD_RESET; | 3762 | ioc->transport_cmds.status |= MPT2_CMD_RESET; |
@@ -3776,7 +3776,7 @@ _base_reset_handler(struct MPT2SAS_ADAPTER *ioc, int reset_phase) | |||
3776 | } | 3776 | } |
3777 | break; | 3777 | break; |
3778 | case MPT2_IOC_DONE_RESET: | 3778 | case MPT2_IOC_DONE_RESET: |
3779 | dtmprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s: " | 3779 | dtmprintk(ioc, printk(MPT2SAS_INFO_FMT "%s: " |
3780 | "MPT2_IOC_DONE_RESET\n", ioc->name, __func__)); | 3780 | "MPT2_IOC_DONE_RESET\n", ioc->name, __func__)); |
3781 | break; | 3781 | break; |
3782 | } | 3782 | } |
@@ -3836,7 +3836,7 @@ mpt2sas_base_hard_reset_handler(struct MPT2SAS_ADAPTER *ioc, int sleep_flag, | |||
3836 | int r; | 3836 | int r; |
3837 | unsigned long flags; | 3837 | unsigned long flags; |
3838 | 3838 | ||
3839 | dtmprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s: enter\n", ioc->name, | 3839 | dtmprintk(ioc, printk(MPT2SAS_INFO_FMT "%s: enter\n", ioc->name, |
3840 | __func__)); | 3840 | __func__)); |
3841 | 3841 | ||
3842 | if (mpt2sas_fwfault_debug) | 3842 | if (mpt2sas_fwfault_debug) |
@@ -3854,7 +3854,7 @@ mpt2sas_base_hard_reset_handler(struct MPT2SAS_ADAPTER *ioc, int sleep_flag, | |||
3854 | do { | 3854 | do { |
3855 | ssleep(1); | 3855 | ssleep(1); |
3856 | } while (ioc->shost_recovery == 1); | 3856 | } while (ioc->shost_recovery == 1); |
3857 | dtmprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s: exit\n", ioc->name, | 3857 | dtmprintk(ioc, printk(MPT2SAS_INFO_FMT "%s: exit\n", ioc->name, |
3858 | __func__)); | 3858 | __func__)); |
3859 | return ioc->ioc_reset_in_progress_status; | 3859 | return ioc->ioc_reset_in_progress_status; |
3860 | } | 3860 | } |
@@ -3874,7 +3874,7 @@ mpt2sas_base_hard_reset_handler(struct MPT2SAS_ADAPTER *ioc, int sleep_flag, | |||
3874 | if (!r) | 3874 | if (!r) |
3875 | _base_reset_handler(ioc, MPT2_IOC_DONE_RESET); | 3875 | _base_reset_handler(ioc, MPT2_IOC_DONE_RESET); |
3876 | out: | 3876 | out: |
3877 | dtmprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s: %s\n", | 3877 | dtmprintk(ioc, printk(MPT2SAS_INFO_FMT "%s: %s\n", |
3878 | ioc->name, __func__, ((r == 0) ? "SUCCESS" : "FAILED"))); | 3878 | ioc->name, __func__, ((r == 0) ? "SUCCESS" : "FAILED"))); |
3879 | 3879 | ||
3880 | spin_lock_irqsave(&ioc->ioc_reset_in_progress_lock, flags); | 3880 | spin_lock_irqsave(&ioc->ioc_reset_in_progress_lock, flags); |
@@ -3884,7 +3884,7 @@ mpt2sas_base_hard_reset_handler(struct MPT2SAS_ADAPTER *ioc, int sleep_flag, | |||
3884 | spin_unlock_irqrestore(&ioc->ioc_reset_in_progress_lock, flags); | 3884 | spin_unlock_irqrestore(&ioc->ioc_reset_in_progress_lock, flags); |
3885 | mutex_unlock(&ioc->reset_in_progress_mutex); | 3885 | mutex_unlock(&ioc->reset_in_progress_mutex); |
3886 | 3886 | ||
3887 | dtmprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s: exit\n", ioc->name, | 3887 | dtmprintk(ioc, printk(MPT2SAS_INFO_FMT "%s: exit\n", ioc->name, |
3888 | __func__)); | 3888 | __func__)); |
3889 | return r; | 3889 | return r; |
3890 | } | 3890 | } |
diff --git a/drivers/scsi/mpt2sas/mpt2sas_base.h b/drivers/scsi/mpt2sas/mpt2sas_base.h index ffe93984e56a..08404b331f73 100644 --- a/drivers/scsi/mpt2sas/mpt2sas_base.h +++ b/drivers/scsi/mpt2sas/mpt2sas_base.h | |||
@@ -124,7 +124,6 @@ | |||
124 | * logging format | 124 | * logging format |
125 | */ | 125 | */ |
126 | #define MPT2SAS_FMT "%s: " | 126 | #define MPT2SAS_FMT "%s: " |
127 | #define MPT2SAS_DEBUG_FMT KERN_DEBUG MPT2SAS_FMT | ||
128 | #define MPT2SAS_INFO_FMT KERN_INFO MPT2SAS_FMT | 127 | #define MPT2SAS_INFO_FMT KERN_INFO MPT2SAS_FMT |
129 | #define MPT2SAS_NOTE_FMT KERN_NOTICE MPT2SAS_FMT | 128 | #define MPT2SAS_NOTE_FMT KERN_NOTICE MPT2SAS_FMT |
130 | #define MPT2SAS_WARN_FMT KERN_WARNING MPT2SAS_FMT | 129 | #define MPT2SAS_WARN_FMT KERN_WARNING MPT2SAS_FMT |
diff --git a/drivers/scsi/mpt2sas/mpt2sas_config.c b/drivers/scsi/mpt2sas/mpt2sas_config.c index c65442982d7b..e26f9206a521 100644 --- a/drivers/scsi/mpt2sas/mpt2sas_config.c +++ b/drivers/scsi/mpt2sas/mpt2sas_config.c | |||
@@ -159,7 +159,7 @@ _config_display_some_debug(struct MPT2SAS_ADAPTER *ioc, u16 smid, | |||
159 | if (!desc) | 159 | if (!desc) |
160 | return; | 160 | return; |
161 | 161 | ||
162 | printk(MPT2SAS_DEBUG_FMT "%s: %s(%d), action(%d), form(0x%08x), " | 162 | printk(MPT2SAS_INFO_FMT "%s: %s(%d), action(%d), form(0x%08x), " |
163 | "smid(%d)\n", ioc->name, calling_function_name, desc, | 163 | "smid(%d)\n", ioc->name, calling_function_name, desc, |
164 | mpi_request->Header.PageNumber, mpi_request->Action, | 164 | mpi_request->Header.PageNumber, mpi_request->Action, |
165 | le32_to_cpu(mpi_request->PageAddress), smid); | 165 | le32_to_cpu(mpi_request->PageAddress), smid); |
@@ -168,7 +168,7 @@ _config_display_some_debug(struct MPT2SAS_ADAPTER *ioc, u16 smid, | |||
168 | return; | 168 | return; |
169 | 169 | ||
170 | if (mpi_reply->IOCStatus || mpi_reply->IOCLogInfo) | 170 | if (mpi_reply->IOCStatus || mpi_reply->IOCLogInfo) |
171 | printk(MPT2SAS_DEBUG_FMT | 171 | printk(MPT2SAS_INFO_FMT |
172 | "\tiocstatus(0x%04x), loginfo(0x%08x)\n", | 172 | "\tiocstatus(0x%04x), loginfo(0x%08x)\n", |
173 | ioc->name, le16_to_cpu(mpi_reply->IOCStatus), | 173 | ioc->name, le16_to_cpu(mpi_reply->IOCStatus), |
174 | le32_to_cpu(mpi_reply->IOCLogInfo)); | 174 | le32_to_cpu(mpi_reply->IOCLogInfo)); |
diff --git a/drivers/scsi/mpt2sas/mpt2sas_ctl.c b/drivers/scsi/mpt2sas/mpt2sas_ctl.c index 371f063a926c..55fbd5b69b83 100644 --- a/drivers/scsi/mpt2sas/mpt2sas_ctl.c +++ b/drivers/scsi/mpt2sas/mpt2sas_ctl.c | |||
@@ -188,14 +188,14 @@ _ctl_display_some_debug(struct MPT2SAS_ADAPTER *ioc, u16 smid, | |||
188 | if (!desc) | 188 | if (!desc) |
189 | return; | 189 | return; |
190 | 190 | ||
191 | printk(MPT2SAS_DEBUG_FMT "%s: %s, smid(%d)\n", | 191 | printk(MPT2SAS_INFO_FMT "%s: %s, smid(%d)\n", |
192 | ioc->name, calling_function_name, desc, smid); | 192 | ioc->name, calling_function_name, desc, smid); |
193 | 193 | ||
194 | if (!mpi_reply) | 194 | if (!mpi_reply) |
195 | return; | 195 | return; |
196 | 196 | ||
197 | if (mpi_reply->IOCStatus || mpi_reply->IOCLogInfo) | 197 | if (mpi_reply->IOCStatus || mpi_reply->IOCLogInfo) |
198 | printk(MPT2SAS_DEBUG_FMT | 198 | printk(MPT2SAS_INFO_FMT |
199 | "\tiocstatus(0x%04x), loginfo(0x%08x)\n", | 199 | "\tiocstatus(0x%04x), loginfo(0x%08x)\n", |
200 | ioc->name, le16_to_cpu(mpi_reply->IOCStatus), | 200 | ioc->name, le16_to_cpu(mpi_reply->IOCStatus), |
201 | le32_to_cpu(mpi_reply->IOCLogInfo)); | 201 | le32_to_cpu(mpi_reply->IOCLogInfo)); |
@@ -206,7 +206,7 @@ _ctl_display_some_debug(struct MPT2SAS_ADAPTER *ioc, u16 smid, | |||
206 | Mpi2SCSIIOReply_t *scsi_reply = | 206 | Mpi2SCSIIOReply_t *scsi_reply = |
207 | (Mpi2SCSIIOReply_t *)mpi_reply; | 207 | (Mpi2SCSIIOReply_t *)mpi_reply; |
208 | if (scsi_reply->SCSIState || scsi_reply->SCSIStatus) | 208 | if (scsi_reply->SCSIState || scsi_reply->SCSIStatus) |
209 | printk(MPT2SAS_DEBUG_FMT | 209 | printk(MPT2SAS_INFO_FMT |
210 | "\tscsi_state(0x%02x), scsi_status" | 210 | "\tscsi_state(0x%02x), scsi_status" |
211 | "(0x%02x)\n", ioc->name, | 211 | "(0x%02x)\n", ioc->name, |
212 | scsi_reply->SCSIState, | 212 | scsi_reply->SCSIState, |
@@ -392,7 +392,7 @@ mpt2sas_ctl_reset_handler(struct MPT2SAS_ADAPTER *ioc, int reset_phase) | |||
392 | 392 | ||
393 | switch (reset_phase) { | 393 | switch (reset_phase) { |
394 | case MPT2_IOC_PRE_RESET: | 394 | case MPT2_IOC_PRE_RESET: |
395 | dtmprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s: " | 395 | dtmprintk(ioc, printk(MPT2SAS_INFO_FMT "%s: " |
396 | "MPT2_IOC_PRE_RESET\n", ioc->name, __func__)); | 396 | "MPT2_IOC_PRE_RESET\n", ioc->name, __func__)); |
397 | for (i = 0; i < MPI2_DIAG_BUF_TYPE_COUNT; i++) { | 397 | for (i = 0; i < MPI2_DIAG_BUF_TYPE_COUNT; i++) { |
398 | if (!(ioc->diag_buffer_status[i] & | 398 | if (!(ioc->diag_buffer_status[i] & |
@@ -405,7 +405,7 @@ mpt2sas_ctl_reset_handler(struct MPT2SAS_ADAPTER *ioc, int reset_phase) | |||
405 | } | 405 | } |
406 | break; | 406 | break; |
407 | case MPT2_IOC_AFTER_RESET: | 407 | case MPT2_IOC_AFTER_RESET: |
408 | dtmprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s: " | 408 | dtmprintk(ioc, printk(MPT2SAS_INFO_FMT "%s: " |
409 | "MPT2_IOC_AFTER_RESET\n", ioc->name, __func__)); | 409 | "MPT2_IOC_AFTER_RESET\n", ioc->name, __func__)); |
410 | if (ioc->ctl_cmds.status & MPT2_CMD_PENDING) { | 410 | if (ioc->ctl_cmds.status & MPT2_CMD_PENDING) { |
411 | ioc->ctl_cmds.status |= MPT2_CMD_RESET; | 411 | ioc->ctl_cmds.status |= MPT2_CMD_RESET; |
@@ -414,7 +414,7 @@ mpt2sas_ctl_reset_handler(struct MPT2SAS_ADAPTER *ioc, int reset_phase) | |||
414 | } | 414 | } |
415 | break; | 415 | break; |
416 | case MPT2_IOC_DONE_RESET: | 416 | case MPT2_IOC_DONE_RESET: |
417 | dtmprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s: " | 417 | dtmprintk(ioc, printk(MPT2SAS_INFO_FMT "%s: " |
418 | "MPT2_IOC_DONE_RESET\n", ioc->name, __func__)); | 418 | "MPT2_IOC_DONE_RESET\n", ioc->name, __func__)); |
419 | 419 | ||
420 | for (i = 0; i < MPI2_DIAG_BUF_TYPE_COUNT; i++) { | 420 | for (i = 0; i < MPI2_DIAG_BUF_TYPE_COUNT; i++) { |
@@ -531,7 +531,7 @@ _ctl_set_task_mid(struct MPT2SAS_ADAPTER *ioc, struct mpt2_ioctl_command *karg, | |||
531 | spin_unlock_irqrestore(&ioc->scsi_lookup_lock, flags); | 531 | spin_unlock_irqrestore(&ioc->scsi_lookup_lock, flags); |
532 | 532 | ||
533 | if (!found) { | 533 | if (!found) { |
534 | dctlprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s: " | 534 | dctlprintk(ioc, printk(MPT2SAS_INFO_FMT "%s: " |
535 | "handle(0x%04x), lun(%d), no active mid!!\n", ioc->name, | 535 | "handle(0x%04x), lun(%d), no active mid!!\n", ioc->name, |
536 | desc, le16_to_cpu(tm_request->DevHandle), lun)); | 536 | desc, le16_to_cpu(tm_request->DevHandle), lun)); |
537 | tm_reply = ioc->ctl_cmds.reply; | 537 | tm_reply = ioc->ctl_cmds.reply; |
@@ -549,7 +549,7 @@ _ctl_set_task_mid(struct MPT2SAS_ADAPTER *ioc, struct mpt2_ioctl_command *karg, | |||
549 | return 1; | 549 | return 1; |
550 | } | 550 | } |
551 | 551 | ||
552 | dctlprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s: " | 552 | dctlprintk(ioc, printk(MPT2SAS_INFO_FMT "%s: " |
553 | "handle(0x%04x), lun(%d), task_mid(%d)\n", ioc->name, | 553 | "handle(0x%04x), lun(%d), task_mid(%d)\n", ioc->name, |
554 | desc, le16_to_cpu(tm_request->DevHandle), lun, | 554 | desc, le16_to_cpu(tm_request->DevHandle), lun, |
555 | le16_to_cpu(tm_request->TaskMID))); | 555 | le16_to_cpu(tm_request->TaskMID))); |
@@ -756,7 +756,7 @@ _ctl_do_mpt_command(struct MPT2SAS_ADAPTER *ioc, | |||
756 | Mpi2SCSITaskManagementRequest_t *tm_request = | 756 | Mpi2SCSITaskManagementRequest_t *tm_request = |
757 | (Mpi2SCSITaskManagementRequest_t *)mpi_request; | 757 | (Mpi2SCSITaskManagementRequest_t *)mpi_request; |
758 | 758 | ||
759 | dtmprintk(ioc, printk(MPT2SAS_DEBUG_FMT "TASK_MGMT: " | 759 | dtmprintk(ioc, printk(MPT2SAS_INFO_FMT "TASK_MGMT: " |
760 | "handle(0x%04x), task_type(0x%02x)\n", ioc->name, | 760 | "handle(0x%04x), task_type(0x%02x)\n", ioc->name, |
761 | le16_to_cpu(tm_request->DevHandle), tm_request->TaskType)); | 761 | le16_to_cpu(tm_request->DevHandle), tm_request->TaskType)); |
762 | 762 | ||
@@ -851,7 +851,7 @@ _ctl_do_mpt_command(struct MPT2SAS_ADAPTER *ioc, | |||
851 | Mpi2SCSITaskManagementReply_t *tm_reply = | 851 | Mpi2SCSITaskManagementReply_t *tm_reply = |
852 | (Mpi2SCSITaskManagementReply_t *)mpi_reply; | 852 | (Mpi2SCSITaskManagementReply_t *)mpi_reply; |
853 | 853 | ||
854 | printk(MPT2SAS_DEBUG_FMT "TASK_MGMT: " | 854 | printk(MPT2SAS_INFO_FMT "TASK_MGMT: " |
855 | "IOCStatus(0x%04x), IOCLogInfo(0x%08x), " | 855 | "IOCStatus(0x%04x), IOCLogInfo(0x%08x), " |
856 | "TerminationCount(0x%08x)\n", ioc->name, | 856 | "TerminationCount(0x%08x)\n", ioc->name, |
857 | le16_to_cpu(tm_reply->IOCStatus), | 857 | le16_to_cpu(tm_reply->IOCStatus), |
@@ -950,7 +950,7 @@ _ctl_getiocinfo(void __user *arg) | |||
950 | if (_ctl_verify_adapter(karg.hdr.ioc_number, &ioc) == -1 || !ioc) | 950 | if (_ctl_verify_adapter(karg.hdr.ioc_number, &ioc) == -1 || !ioc) |
951 | return -ENODEV; | 951 | return -ENODEV; |
952 | 952 | ||
953 | dctlprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s: enter\n", ioc->name, | 953 | dctlprintk(ioc, printk(MPT2SAS_INFO_FMT "%s: enter\n", ioc->name, |
954 | __func__)); | 954 | __func__)); |
955 | 955 | ||
956 | memset(&karg, 0 , sizeof(karg)); | 956 | memset(&karg, 0 , sizeof(karg)); |
@@ -998,7 +998,7 @@ _ctl_eventquery(void __user *arg) | |||
998 | if (_ctl_verify_adapter(karg.hdr.ioc_number, &ioc) == -1 || !ioc) | 998 | if (_ctl_verify_adapter(karg.hdr.ioc_number, &ioc) == -1 || !ioc) |
999 | return -ENODEV; | 999 | return -ENODEV; |
1000 | 1000 | ||
1001 | dctlprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s: enter\n", ioc->name, | 1001 | dctlprintk(ioc, printk(MPT2SAS_INFO_FMT "%s: enter\n", ioc->name, |
1002 | __func__)); | 1002 | __func__)); |
1003 | 1003 | ||
1004 | karg.event_entries = MPT2SAS_CTL_EVENT_LOG_SIZE; | 1004 | karg.event_entries = MPT2SAS_CTL_EVENT_LOG_SIZE; |
@@ -1031,7 +1031,7 @@ _ctl_eventenable(void __user *arg) | |||
1031 | if (_ctl_verify_adapter(karg.hdr.ioc_number, &ioc) == -1 || !ioc) | 1031 | if (_ctl_verify_adapter(karg.hdr.ioc_number, &ioc) == -1 || !ioc) |
1032 | return -ENODEV; | 1032 | return -ENODEV; |
1033 | 1033 | ||
1034 | dctlprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s: enter\n", ioc->name, | 1034 | dctlprintk(ioc, printk(MPT2SAS_INFO_FMT "%s: enter\n", ioc->name, |
1035 | __func__)); | 1035 | __func__)); |
1036 | 1036 | ||
1037 | if (ioc->event_log) | 1037 | if (ioc->event_log) |
@@ -1073,7 +1073,7 @@ _ctl_eventreport(void __user *arg) | |||
1073 | if (_ctl_verify_adapter(karg.hdr.ioc_number, &ioc) == -1 || !ioc) | 1073 | if (_ctl_verify_adapter(karg.hdr.ioc_number, &ioc) == -1 || !ioc) |
1074 | return -ENODEV; | 1074 | return -ENODEV; |
1075 | 1075 | ||
1076 | dctlprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s: enter\n", ioc->name, | 1076 | dctlprintk(ioc, printk(MPT2SAS_INFO_FMT "%s: enter\n", ioc->name, |
1077 | __func__)); | 1077 | __func__)); |
1078 | 1078 | ||
1079 | number_bytes = karg.hdr.max_data_size - | 1079 | number_bytes = karg.hdr.max_data_size - |
@@ -1118,7 +1118,7 @@ _ctl_do_reset(void __user *arg) | |||
1118 | if (_ctl_verify_adapter(karg.hdr.ioc_number, &ioc) == -1 || !ioc) | 1118 | if (_ctl_verify_adapter(karg.hdr.ioc_number, &ioc) == -1 || !ioc) |
1119 | return -ENODEV; | 1119 | return -ENODEV; |
1120 | 1120 | ||
1121 | dctlprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s: enter\n", ioc->name, | 1121 | dctlprintk(ioc, printk(MPT2SAS_INFO_FMT "%s: enter\n", ioc->name, |
1122 | __func__)); | 1122 | __func__)); |
1123 | 1123 | ||
1124 | retval = mpt2sas_base_hard_reset_handler(ioc, CAN_SLEEP, | 1124 | retval = mpt2sas_base_hard_reset_handler(ioc, CAN_SLEEP, |
@@ -1219,7 +1219,7 @@ _ctl_btdh_mapping(void __user *arg) | |||
1219 | if (_ctl_verify_adapter(karg.hdr.ioc_number, &ioc) == -1 || !ioc) | 1219 | if (_ctl_verify_adapter(karg.hdr.ioc_number, &ioc) == -1 || !ioc) |
1220 | return -ENODEV; | 1220 | return -ENODEV; |
1221 | 1221 | ||
1222 | dctlprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s\n", ioc->name, | 1222 | dctlprintk(ioc, printk(MPT2SAS_INFO_FMT "%s\n", ioc->name, |
1223 | __func__)); | 1223 | __func__)); |
1224 | 1224 | ||
1225 | rc = _ctl_btdh_search_sas_device(ioc, &karg); | 1225 | rc = _ctl_btdh_search_sas_device(ioc, &karg); |
@@ -1288,7 +1288,7 @@ _ctl_diag_register_2(struct MPT2SAS_ADAPTER *ioc, | |||
1288 | u16 ioc_status; | 1288 | u16 ioc_status; |
1289 | u8 issue_reset = 0; | 1289 | u8 issue_reset = 0; |
1290 | 1290 | ||
1291 | dctlprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s\n", ioc->name, | 1291 | dctlprintk(ioc, printk(MPT2SAS_INFO_FMT "%s\n", ioc->name, |
1292 | __func__)); | 1292 | __func__)); |
1293 | 1293 | ||
1294 | if (ioc->ctl_cmds.status != MPT2_CMD_NOT_USED) { | 1294 | if (ioc->ctl_cmds.status != MPT2_CMD_NOT_USED) { |
@@ -1376,7 +1376,7 @@ _ctl_diag_register_2(struct MPT2SAS_ADAPTER *ioc, | |||
1376 | mpi_request->VF_ID = 0; /* TODO */ | 1376 | mpi_request->VF_ID = 0; /* TODO */ |
1377 | mpi_request->VP_ID = 0; | 1377 | mpi_request->VP_ID = 0; |
1378 | 1378 | ||
1379 | dctlprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s: diag_buffer(0x%p), " | 1379 | dctlprintk(ioc, printk(MPT2SAS_INFO_FMT "%s: diag_buffer(0x%p), " |
1380 | "dma(0x%llx), sz(%d)\n", ioc->name, __func__, request_data, | 1380 | "dma(0x%llx), sz(%d)\n", ioc->name, __func__, request_data, |
1381 | (unsigned long long)request_data_dma, | 1381 | (unsigned long long)request_data_dma, |
1382 | le32_to_cpu(mpi_request->BufferLength))); | 1382 | le32_to_cpu(mpi_request->BufferLength))); |
@@ -1414,10 +1414,10 @@ _ctl_diag_register_2(struct MPT2SAS_ADAPTER *ioc, | |||
1414 | if (ioc_status == MPI2_IOCSTATUS_SUCCESS) { | 1414 | if (ioc_status == MPI2_IOCSTATUS_SUCCESS) { |
1415 | ioc->diag_buffer_status[buffer_type] |= | 1415 | ioc->diag_buffer_status[buffer_type] |= |
1416 | MPT2_DIAG_BUFFER_IS_REGISTERED; | 1416 | MPT2_DIAG_BUFFER_IS_REGISTERED; |
1417 | dctlprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s: success\n", | 1417 | dctlprintk(ioc, printk(MPT2SAS_INFO_FMT "%s: success\n", |
1418 | ioc->name, __func__)); | 1418 | ioc->name, __func__)); |
1419 | } else { | 1419 | } else { |
1420 | printk(MPT2SAS_DEBUG_FMT "%s: ioc_status(0x%04x) " | 1420 | printk(MPT2SAS_INFO_FMT "%s: ioc_status(0x%04x) " |
1421 | "log_info(0x%08x)\n", ioc->name, __func__, | 1421 | "log_info(0x%08x)\n", ioc->name, __func__, |
1422 | ioc_status, le32_to_cpu(mpi_reply->IOCLogInfo)); | 1422 | ioc_status, le32_to_cpu(mpi_reply->IOCLogInfo)); |
1423 | rc = -EFAULT; | 1423 | rc = -EFAULT; |
@@ -1541,7 +1541,7 @@ _ctl_diag_unregister(void __user *arg) | |||
1541 | if (_ctl_verify_adapter(karg.hdr.ioc_number, &ioc) == -1 || !ioc) | 1541 | if (_ctl_verify_adapter(karg.hdr.ioc_number, &ioc) == -1 || !ioc) |
1542 | return -ENODEV; | 1542 | return -ENODEV; |
1543 | 1543 | ||
1544 | dctlprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s\n", ioc->name, | 1544 | dctlprintk(ioc, printk(MPT2SAS_INFO_FMT "%s\n", ioc->name, |
1545 | __func__)); | 1545 | __func__)); |
1546 | 1546 | ||
1547 | buffer_type = karg.unique_id & 0x000000ff; | 1547 | buffer_type = karg.unique_id & 0x000000ff; |
@@ -1611,7 +1611,7 @@ _ctl_diag_query(void __user *arg) | |||
1611 | if (_ctl_verify_adapter(karg.hdr.ioc_number, &ioc) == -1 || !ioc) | 1611 | if (_ctl_verify_adapter(karg.hdr.ioc_number, &ioc) == -1 || !ioc) |
1612 | return -ENODEV; | 1612 | return -ENODEV; |
1613 | 1613 | ||
1614 | dctlprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s\n", ioc->name, | 1614 | dctlprintk(ioc, printk(MPT2SAS_INFO_FMT "%s\n", ioc->name, |
1615 | __func__)); | 1615 | __func__)); |
1616 | 1616 | ||
1617 | karg.application_flags = 0; | 1617 | karg.application_flags = 0; |
@@ -1689,7 +1689,7 @@ _ctl_send_release(struct MPT2SAS_ADAPTER *ioc, u8 buffer_type, u8 *issue_reset) | |||
1689 | int rc; | 1689 | int rc; |
1690 | unsigned long timeleft; | 1690 | unsigned long timeleft; |
1691 | 1691 | ||
1692 | dctlprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s\n", ioc->name, | 1692 | dctlprintk(ioc, printk(MPT2SAS_INFO_FMT "%s\n", ioc->name, |
1693 | __func__)); | 1693 | __func__)); |
1694 | 1694 | ||
1695 | rc = 0; | 1695 | rc = 0; |
@@ -1697,7 +1697,7 @@ _ctl_send_release(struct MPT2SAS_ADAPTER *ioc, u8 buffer_type, u8 *issue_reset) | |||
1697 | 1697 | ||
1698 | ioc_state = mpt2sas_base_get_iocstate(ioc, 1); | 1698 | ioc_state = mpt2sas_base_get_iocstate(ioc, 1); |
1699 | if (ioc_state != MPI2_IOC_STATE_OPERATIONAL) { | 1699 | if (ioc_state != MPI2_IOC_STATE_OPERATIONAL) { |
1700 | dctlprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s: " | 1700 | dctlprintk(ioc, printk(MPT2SAS_INFO_FMT "%s: " |
1701 | "skipping due to FAULT state\n", ioc->name, | 1701 | "skipping due to FAULT state\n", ioc->name, |
1702 | __func__)); | 1702 | __func__)); |
1703 | rc = -EAGAIN; | 1703 | rc = -EAGAIN; |
@@ -1759,10 +1759,10 @@ _ctl_send_release(struct MPT2SAS_ADAPTER *ioc, u8 buffer_type, u8 *issue_reset) | |||
1759 | if (ioc_status == MPI2_IOCSTATUS_SUCCESS) { | 1759 | if (ioc_status == MPI2_IOCSTATUS_SUCCESS) { |
1760 | ioc->diag_buffer_status[buffer_type] |= | 1760 | ioc->diag_buffer_status[buffer_type] |= |
1761 | MPT2_DIAG_BUFFER_IS_RELEASED; | 1761 | MPT2_DIAG_BUFFER_IS_RELEASED; |
1762 | dctlprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s: success\n", | 1762 | dctlprintk(ioc, printk(MPT2SAS_INFO_FMT "%s: success\n", |
1763 | ioc->name, __func__)); | 1763 | ioc->name, __func__)); |
1764 | } else { | 1764 | } else { |
1765 | printk(MPT2SAS_DEBUG_FMT "%s: ioc_status(0x%04x) " | 1765 | printk(MPT2SAS_INFO_FMT "%s: ioc_status(0x%04x) " |
1766 | "log_info(0x%08x)\n", ioc->name, __func__, | 1766 | "log_info(0x%08x)\n", ioc->name, __func__, |
1767 | ioc_status, le32_to_cpu(mpi_reply->IOCLogInfo)); | 1767 | ioc_status, le32_to_cpu(mpi_reply->IOCLogInfo)); |
1768 | rc = -EFAULT; | 1768 | rc = -EFAULT; |
@@ -1800,7 +1800,7 @@ _ctl_diag_release(void __user *arg, enum block_state state) | |||
1800 | if (_ctl_verify_adapter(karg.hdr.ioc_number, &ioc) == -1 || !ioc) | 1800 | if (_ctl_verify_adapter(karg.hdr.ioc_number, &ioc) == -1 || !ioc) |
1801 | return -ENODEV; | 1801 | return -ENODEV; |
1802 | 1802 | ||
1803 | dctlprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s\n", ioc->name, | 1803 | dctlprintk(ioc, printk(MPT2SAS_INFO_FMT "%s\n", ioc->name, |
1804 | __func__)); | 1804 | __func__)); |
1805 | 1805 | ||
1806 | buffer_type = karg.unique_id & 0x000000ff; | 1806 | buffer_type = karg.unique_id & 0x000000ff; |
@@ -1896,7 +1896,7 @@ _ctl_diag_read_buffer(void __user *arg, enum block_state state) | |||
1896 | if (_ctl_verify_adapter(karg.hdr.ioc_number, &ioc) == -1 || !ioc) | 1896 | if (_ctl_verify_adapter(karg.hdr.ioc_number, &ioc) == -1 || !ioc) |
1897 | return -ENODEV; | 1897 | return -ENODEV; |
1898 | 1898 | ||
1899 | dctlprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s\n", ioc->name, | 1899 | dctlprintk(ioc, printk(MPT2SAS_INFO_FMT "%s\n", ioc->name, |
1900 | __func__)); | 1900 | __func__)); |
1901 | 1901 | ||
1902 | buffer_type = karg.unique_id & 0x000000ff; | 1902 | buffer_type = karg.unique_id & 0x000000ff; |
@@ -1927,7 +1927,7 @@ _ctl_diag_read_buffer(void __user *arg, enum block_state state) | |||
1927 | } | 1927 | } |
1928 | 1928 | ||
1929 | diag_data = (void *)(request_data + karg.starting_offset); | 1929 | diag_data = (void *)(request_data + karg.starting_offset); |
1930 | dctlprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s: diag_buffer(%p), " | 1930 | dctlprintk(ioc, printk(MPT2SAS_INFO_FMT "%s: diag_buffer(%p), " |
1931 | "offset(%d), sz(%d)\n", ioc->name, __func__, | 1931 | "offset(%d), sz(%d)\n", ioc->name, __func__, |
1932 | diag_data, karg.starting_offset, karg.bytes_to_read)); | 1932 | diag_data, karg.starting_offset, karg.bytes_to_read)); |
1933 | 1933 | ||
@@ -1942,11 +1942,11 @@ _ctl_diag_read_buffer(void __user *arg, enum block_state state) | |||
1942 | if ((karg.flags & MPT2_FLAGS_REREGISTER) == 0) | 1942 | if ((karg.flags & MPT2_FLAGS_REREGISTER) == 0) |
1943 | return 0; | 1943 | return 0; |
1944 | 1944 | ||
1945 | dctlprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s: Reregister " | 1945 | dctlprintk(ioc, printk(MPT2SAS_INFO_FMT "%s: Reregister " |
1946 | "buffer_type(0x%02x)\n", ioc->name, __func__, buffer_type)); | 1946 | "buffer_type(0x%02x)\n", ioc->name, __func__, buffer_type)); |
1947 | if ((ioc->diag_buffer_status[buffer_type] & | 1947 | if ((ioc->diag_buffer_status[buffer_type] & |
1948 | MPT2_DIAG_BUFFER_IS_RELEASED) == 0) { | 1948 | MPT2_DIAG_BUFFER_IS_RELEASED) == 0) { |
1949 | dctlprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s: " | 1949 | dctlprintk(ioc, printk(MPT2SAS_INFO_FMT "%s: " |
1950 | "buffer_type(0x%02x) is still registered\n", ioc->name, | 1950 | "buffer_type(0x%02x) is still registered\n", ioc->name, |
1951 | __func__, buffer_type)); | 1951 | __func__, buffer_type)); |
1952 | return 0; | 1952 | return 0; |
@@ -2020,10 +2020,10 @@ _ctl_diag_read_buffer(void __user *arg, enum block_state state) | |||
2020 | if (ioc_status == MPI2_IOCSTATUS_SUCCESS) { | 2020 | if (ioc_status == MPI2_IOCSTATUS_SUCCESS) { |
2021 | ioc->diag_buffer_status[buffer_type] |= | 2021 | ioc->diag_buffer_status[buffer_type] |= |
2022 | MPT2_DIAG_BUFFER_IS_REGISTERED; | 2022 | MPT2_DIAG_BUFFER_IS_REGISTERED; |
2023 | dctlprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s: success\n", | 2023 | dctlprintk(ioc, printk(MPT2SAS_INFO_FMT "%s: success\n", |
2024 | ioc->name, __func__)); | 2024 | ioc->name, __func__)); |
2025 | } else { | 2025 | } else { |
2026 | printk(MPT2SAS_DEBUG_FMT "%s: ioc_status(0x%04x) " | 2026 | printk(MPT2SAS_INFO_FMT "%s: ioc_status(0x%04x) " |
2027 | "log_info(0x%08x)\n", ioc->name, __func__, | 2027 | "log_info(0x%08x)\n", ioc->name, __func__, |
2028 | ioc_status, le32_to_cpu(mpi_reply->IOCLogInfo)); | 2028 | ioc_status, le32_to_cpu(mpi_reply->IOCLogInfo)); |
2029 | rc = -EFAULT; | 2029 | rc = -EFAULT; |
@@ -2140,7 +2140,7 @@ _ctl_ioctl_main(struct file *file, unsigned int cmd, void __user *arg) | |||
2140 | !ioc) | 2140 | !ioc) |
2141 | return -ENODEV; | 2141 | return -ENODEV; |
2142 | 2142 | ||
2143 | dctlprintk(ioc, printk(MPT2SAS_DEBUG_FMT | 2143 | dctlprintk(ioc, printk(MPT2SAS_INFO_FMT |
2144 | "unsupported ioctl opcode(0x%08x)\n", ioc->name, cmd)); | 2144 | "unsupported ioctl opcode(0x%08x)\n", ioc->name, cmd)); |
2145 | break; | 2145 | break; |
2146 | } | 2146 | } |
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); |
diff --git a/drivers/scsi/mpt2sas/mpt2sas_transport.c b/drivers/scsi/mpt2sas/mpt2sas_transport.c index 6c94deeb7be7..f29ea5e78bb3 100644 --- a/drivers/scsi/mpt2sas/mpt2sas_transport.c +++ b/drivers/scsi/mpt2sas/mpt2sas_transport.c | |||
@@ -397,7 +397,7 @@ _transport_expander_report_manufacture(struct MPT2SAS_ADAPTER *ioc, | |||
397 | sizeof(struct rep_manu_reply), data_out_dma + | 397 | sizeof(struct rep_manu_reply), data_out_dma + |
398 | sizeof(struct rep_manu_request)); | 398 | sizeof(struct rep_manu_request)); |
399 | 399 | ||
400 | dtransportprintk(ioc, printk(MPT2SAS_DEBUG_FMT "report_manufacture - " | 400 | dtransportprintk(ioc, printk(MPT2SAS_INFO_FMT "report_manufacture - " |
401 | "send to sas_addr(0x%016llx)\n", ioc->name, | 401 | "send to sas_addr(0x%016llx)\n", ioc->name, |
402 | (unsigned long long)sas_address)); | 402 | (unsigned long long)sas_address)); |
403 | mpt2sas_base_put_smid_default(ioc, smid); | 403 | mpt2sas_base_put_smid_default(ioc, smid); |
@@ -415,7 +415,7 @@ _transport_expander_report_manufacture(struct MPT2SAS_ADAPTER *ioc, | |||
415 | goto issue_host_reset; | 415 | goto issue_host_reset; |
416 | } | 416 | } |
417 | 417 | ||
418 | dtransportprintk(ioc, printk(MPT2SAS_DEBUG_FMT "report_manufacture - " | 418 | dtransportprintk(ioc, printk(MPT2SAS_INFO_FMT "report_manufacture - " |
419 | "complete\n", ioc->name)); | 419 | "complete\n", ioc->name)); |
420 | 420 | ||
421 | if (ioc->transport_cmds.status & MPT2_CMD_REPLY_VALID) { | 421 | if (ioc->transport_cmds.status & MPT2_CMD_REPLY_VALID) { |
@@ -423,7 +423,7 @@ _transport_expander_report_manufacture(struct MPT2SAS_ADAPTER *ioc, | |||
423 | 423 | ||
424 | mpi_reply = ioc->transport_cmds.reply; | 424 | mpi_reply = ioc->transport_cmds.reply; |
425 | 425 | ||
426 | dtransportprintk(ioc, printk(MPT2SAS_DEBUG_FMT | 426 | dtransportprintk(ioc, printk(MPT2SAS_INFO_FMT |
427 | "report_manufacture - reply data transfer size(%d)\n", | 427 | "report_manufacture - reply data transfer size(%d)\n", |
428 | ioc->name, le16_to_cpu(mpi_reply->ResponseDataLength))); | 428 | ioc->name, le16_to_cpu(mpi_reply->ResponseDataLength))); |
429 | 429 | ||
@@ -449,7 +449,7 @@ _transport_expander_report_manufacture(struct MPT2SAS_ADAPTER *ioc, | |||
449 | manufacture_reply->component_revision_id; | 449 | manufacture_reply->component_revision_id; |
450 | } | 450 | } |
451 | } else | 451 | } else |
452 | dtransportprintk(ioc, printk(MPT2SAS_DEBUG_FMT | 452 | dtransportprintk(ioc, printk(MPT2SAS_INFO_FMT |
453 | "report_manufacture - no reply\n", ioc->name)); | 453 | "report_manufacture - no reply\n", ioc->name)); |
454 | 454 | ||
455 | issue_host_reset: | 455 | issue_host_reset: |
@@ -1861,7 +1861,7 @@ _transport_smp_handler(struct Scsi_Host *shost, struct sas_rphy *rphy, | |||
1861 | ioc->base_add_sg_single(psge, sgl_flags | (blk_rq_bytes(rsp) + 4), | 1861 | ioc->base_add_sg_single(psge, sgl_flags | (blk_rq_bytes(rsp) + 4), |
1862 | dma_addr_in); | 1862 | dma_addr_in); |
1863 | 1863 | ||
1864 | dtransportprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s - " | 1864 | dtransportprintk(ioc, printk(MPT2SAS_INFO_FMT "%s - " |
1865 | "sending smp request\n", ioc->name, __func__)); | 1865 | "sending smp request\n", ioc->name, __func__)); |
1866 | 1866 | ||
1867 | mpt2sas_base_put_smid_default(ioc, smid); | 1867 | mpt2sas_base_put_smid_default(ioc, smid); |
@@ -1879,14 +1879,14 @@ _transport_smp_handler(struct Scsi_Host *shost, struct sas_rphy *rphy, | |||
1879 | goto issue_host_reset; | 1879 | goto issue_host_reset; |
1880 | } | 1880 | } |
1881 | 1881 | ||
1882 | dtransportprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s - " | 1882 | dtransportprintk(ioc, printk(MPT2SAS_INFO_FMT "%s - " |
1883 | "complete\n", ioc->name, __func__)); | 1883 | "complete\n", ioc->name, __func__)); |
1884 | 1884 | ||
1885 | if (ioc->transport_cmds.status & MPT2_CMD_REPLY_VALID) { | 1885 | if (ioc->transport_cmds.status & MPT2_CMD_REPLY_VALID) { |
1886 | 1886 | ||
1887 | mpi_reply = ioc->transport_cmds.reply; | 1887 | mpi_reply = ioc->transport_cmds.reply; |
1888 | 1888 | ||
1889 | dtransportprintk(ioc, printk(MPT2SAS_DEBUG_FMT | 1889 | dtransportprintk(ioc, printk(MPT2SAS_INFO_FMT |
1890 | "%s - reply data transfer size(%d)\n", | 1890 | "%s - reply data transfer size(%d)\n", |
1891 | ioc->name, __func__, | 1891 | ioc->name, __func__, |
1892 | le16_to_cpu(mpi_reply->ResponseDataLength))); | 1892 | le16_to_cpu(mpi_reply->ResponseDataLength))); |
@@ -1897,7 +1897,7 @@ _transport_smp_handler(struct Scsi_Host *shost, struct sas_rphy *rphy, | |||
1897 | rsp->resid_len -= | 1897 | rsp->resid_len -= |
1898 | le16_to_cpu(mpi_reply->ResponseDataLength); | 1898 | le16_to_cpu(mpi_reply->ResponseDataLength); |
1899 | } else { | 1899 | } else { |
1900 | dtransportprintk(ioc, printk(MPT2SAS_DEBUG_FMT | 1900 | dtransportprintk(ioc, printk(MPT2SAS_INFO_FMT |
1901 | "%s - no reply\n", ioc->name, __func__)); | 1901 | "%s - no reply\n", ioc->name, __func__)); |
1902 | rc = -ENXIO; | 1902 | rc = -ENXIO; |
1903 | } | 1903 | } |