Commit 9a598710 authored by Shivasharan S's avatar Shivasharan S Committed by Martin K. Petersen

scsi: megaraid_sas: Print BAR information from driver

Add prints for BAR address information during driver load.  This helps in
debugging issues with BAR address changing during OS boot.
Signed-off-by: default avatarSumit Saxena <sumit.saxena@broadcom.com>
Signed-off-by: default avatarShivasharan S <shivasharan.srikanteshwara@broadcom.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 3d1d9eb7
......@@ -5624,6 +5624,7 @@ static int megasas_init_fw(struct megasas_instance *instance)
u32 max_sectors_2, tmp_sectors, msix_enable;
u32 scratch_pad_1, scratch_pad_2, scratch_pad_3, status_reg;
resource_size_t base_addr;
void *base_addr_phys;
struct megasas_ctrl_info *ctrl_info = NULL;
unsigned long bar_list;
int i, j, loop, fw_msix_count = 0;
......@@ -5649,6 +5650,11 @@ static int megasas_init_fw(struct megasas_instance *instance)
goto fail_ioremap;
}
base_addr_phys = &base_addr;
dev_printk(KERN_DEBUG, &instance->pdev->dev,
"BAR:0x%lx BAR's base_addr(phys):%pa mapped virt_addr:0x%p\n",
instance->bar, base_addr_phys, instance->reg_set);
if (instance->adapter_type != MFI_SERIES)
instance->instancet = &megasas_instance_template_fusion;
else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment