File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -2188,6 +2188,17 @@ mpt3sas_base_map_resources(struct MPT3SAS_ADAPTER *ioc)
2188
2188
} else
2189
2189
ioc -> msix96_vector = 0 ;
2190
2190
2191
+ if (ioc -> is_warpdrive ) {
2192
+ ioc -> reply_post_host_index [0 ] = (resource_size_t __iomem * )
2193
+ & ioc -> chip -> ReplyPostHostIndex ;
2194
+
2195
+ for (i = 1 ; i < ioc -> cpu_msix_table_sz ; i ++ )
2196
+ ioc -> reply_post_host_index [i ] =
2197
+ (resource_size_t __iomem * )
2198
+ ((u8 __iomem * )& ioc -> chip -> Doorbell + (0x4000 + ((i - 1 )
2199
+ * 4 )));
2200
+ }
2201
+
2191
2202
list_for_each_entry (reply_q , & ioc -> reply_queue_list , list )
2192
2203
pr_info (MPT3SAS_FMT "%s: IRQ %d\n" ,
2193
2204
reply_q -> name , ((ioc -> msix_enable ) ? "PCI-MSI-X enabled" :
@@ -5280,17 +5291,6 @@ mpt3sas_base_attach(struct MPT3SAS_ADAPTER *ioc)
5280
5291
if (r )
5281
5292
goto out_free_resources ;
5282
5293
5283
- if (ioc -> is_warpdrive ) {
5284
- ioc -> reply_post_host_index [0 ] = (resource_size_t __iomem * )
5285
- & ioc -> chip -> ReplyPostHostIndex ;
5286
-
5287
- for (i = 1 ; i < ioc -> cpu_msix_table_sz ; i ++ )
5288
- ioc -> reply_post_host_index [i ] =
5289
- (resource_size_t __iomem * )
5290
- ((u8 __iomem * )& ioc -> chip -> Doorbell + (0x4000 + ((i - 1 )
5291
- * 4 )));
5292
- }
5293
-
5294
5294
pci_set_drvdata (ioc -> pdev , ioc -> shost );
5295
5295
r = _base_get_ioc_facts (ioc , CAN_SLEEP );
5296
5296
if (r )
You can’t perform that action at this time.
0 commit comments