forked from Minki/linux
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: Sumit Saxena <sumit.saxena@broadcom.com> Signed-off-by: Shivasharan S <shivasharan.srikanteshwara@broadcom.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
3d1d9eb7f2
commit
9a5987101c
@ -5624,6 +5624,7 @@ static int megasas_init_fw(struct megasas_instance *instance)
|
|||||||
u32 max_sectors_2, tmp_sectors, msix_enable;
|
u32 max_sectors_2, tmp_sectors, msix_enable;
|
||||||
u32 scratch_pad_1, scratch_pad_2, scratch_pad_3, status_reg;
|
u32 scratch_pad_1, scratch_pad_2, scratch_pad_3, status_reg;
|
||||||
resource_size_t base_addr;
|
resource_size_t base_addr;
|
||||||
|
void *base_addr_phys;
|
||||||
struct megasas_ctrl_info *ctrl_info = NULL;
|
struct megasas_ctrl_info *ctrl_info = NULL;
|
||||||
unsigned long bar_list;
|
unsigned long bar_list;
|
||||||
int i, j, loop, fw_msix_count = 0;
|
int i, j, loop, fw_msix_count = 0;
|
||||||
@ -5649,6 +5650,11 @@ static int megasas_init_fw(struct megasas_instance *instance)
|
|||||||
goto fail_ioremap;
|
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)
|
if (instance->adapter_type != MFI_SERIES)
|
||||||
instance->instancet = &megasas_instance_template_fusion;
|
instance->instancet = &megasas_instance_template_fusion;
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user