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)
21882188 } else
21892189 ioc -> msix96_vector = 0 ;
21902190
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+
21912202 list_for_each_entry (reply_q , & ioc -> reply_queue_list , list )
21922203 pr_info (MPT3SAS_FMT "%s: IRQ %d\n" ,
21932204 reply_q -> name , ((ioc -> msix_enable ) ? "PCI-MSI-X enabled" :
@@ -5280,17 +5291,6 @@ mpt3sas_base_attach(struct MPT3SAS_ADAPTER *ioc)
52805291 if (r )
52815292 goto out_free_resources ;
52825293
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-
52945294 pci_set_drvdata (ioc -> pdev , ioc -> shost );
52955295 r = _base_get_ioc_facts (ioc , CAN_SLEEP );
52965296 if (r )
You can’t perform that action at this time.
0 commit comments