|
@@ -957,7 +957,7 @@ bfa_iocpf_sm_disabling_sync_entry(struct bfa_iocpf_s *iocpf)
|
|
bfa_ioc_hw_sem_get(iocpf->ioc);
|
|
bfa_ioc_hw_sem_get(iocpf->ioc);
|
|
}
|
|
}
|
|
|
|
|
|
-/**
|
|
|
|
|
|
+/*
|
|
* IOC hb ack request is being removed.
|
|
* IOC hb ack request is being removed.
|
|
*/
|
|
*/
|
|
static void
|
|
static void
|
|
@@ -1020,8 +1020,7 @@ bfa_iocpf_sm_initfail_sync_entry(struct bfa_iocpf_s *iocpf)
|
|
bfa_ioc_hw_sem_get(iocpf->ioc);
|
|
bfa_ioc_hw_sem_get(iocpf->ioc);
|
|
}
|
|
}
|
|
|
|
|
|
-/**
|
|
|
|
- * @brief
|
|
|
|
|
|
+/*
|
|
* Hardware initialization failed.
|
|
* Hardware initialization failed.
|
|
*/
|
|
*/
|
|
static void
|
|
static void
|
|
@@ -1103,12 +1102,12 @@ bfa_iocpf_sm_initfail(struct bfa_iocpf_s *iocpf, enum iocpf_event event)
|
|
static void
|
|
static void
|
|
bfa_iocpf_sm_fail_sync_entry(struct bfa_iocpf_s *iocpf)
|
|
bfa_iocpf_sm_fail_sync_entry(struct bfa_iocpf_s *iocpf)
|
|
{
|
|
{
|
|
- /**
|
|
|
|
|
|
+ /*
|
|
* Mark IOC as failed in hardware and stop firmware.
|
|
* Mark IOC as failed in hardware and stop firmware.
|
|
*/
|
|
*/
|
|
bfa_ioc_lpu_stop(iocpf->ioc);
|
|
bfa_ioc_lpu_stop(iocpf->ioc);
|
|
|
|
|
|
- /**
|
|
|
|
|
|
+ /*
|
|
* Flush any queued up mailbox requests.
|
|
* Flush any queued up mailbox requests.
|
|
*/
|
|
*/
|
|
bfa_ioc_mbox_hbfail(iocpf->ioc);
|
|
bfa_ioc_mbox_hbfail(iocpf->ioc);
|
|
@@ -1366,12 +1365,6 @@ bfa_ioc_fwver_valid(struct bfa_ioc_s *ioc, u32 boot_env)
|
|
{
|
|
{
|
|
struct bfi_ioc_image_hdr_s fwhdr, *drv_fwhdr;
|
|
struct bfi_ioc_image_hdr_s fwhdr, *drv_fwhdr;
|
|
|
|
|
|
- /*
|
|
|
|
- * If bios/efi boot (flash based) -- return true
|
|
|
|
- */
|
|
|
|
- if (bfa_ioc_is_bios_optrom(ioc))
|
|
|
|
- return BFA_TRUE;
|
|
|
|
-
|
|
|
|
bfa_ioc_fwver_get(ioc, &fwhdr);
|
|
bfa_ioc_fwver_get(ioc, &fwhdr);
|
|
drv_fwhdr = (struct bfi_ioc_image_hdr_s *)
|
|
drv_fwhdr = (struct bfi_ioc_image_hdr_s *)
|
|
bfa_cb_image_get_chunk(BFA_IOC_FWIMG_TYPE(ioc), 0);
|
|
bfa_cb_image_get_chunk(BFA_IOC_FWIMG_TYPE(ioc), 0);
|
|
@@ -1422,22 +1415,6 @@ bfa_ioc_hwinit(struct bfa_ioc_s *ioc, bfa_boolean_t force)
|
|
boot_type = BFI_BOOT_TYPE_NORMAL;
|
|
boot_type = BFI_BOOT_TYPE_NORMAL;
|
|
boot_env = BFI_BOOT_LOADER_OS;
|
|
boot_env = BFI_BOOT_LOADER_OS;
|
|
|
|
|
|
- /*
|
|
|
|
- * Flash based firmware boot BIOS env.
|
|
|
|
- */
|
|
|
|
- if (bfa_ioc_is_bios_optrom(ioc)) {
|
|
|
|
- boot_type = BFI_BOOT_TYPE_FLASH;
|
|
|
|
- boot_env = BFI_BOOT_LOADER_BIOS;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /*
|
|
|
|
- * Flash based firmware boot UEFI env.
|
|
|
|
- */
|
|
|
|
- if (bfa_ioc_is_uefi(ioc)) {
|
|
|
|
- boot_type = BFI_BOOT_TYPE_FLASH;
|
|
|
|
- boot_env = BFI_BOOT_LOADER_UEFI;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/*
|
|
/*
|
|
* check if firmware is valid
|
|
* check if firmware is valid
|
|
*/
|
|
*/
|
|
@@ -1466,8 +1443,7 @@ bfa_ioc_hwinit(struct bfa_ioc_s *ioc, bfa_boolean_t force)
|
|
* convergence, IOC will be in operational state when 2nd driver
|
|
* convergence, IOC will be in operational state when 2nd driver
|
|
* is loaded.
|
|
* is loaded.
|
|
*/
|
|
*/
|
|
- if (ioc_fwstate == BFI_IOC_DISABLED ||
|
|
|
|
- (!bfa_ioc_is_bios_optrom(ioc) && ioc_fwstate == BFI_IOC_OP)) {
|
|
|
|
|
|
+ if (ioc_fwstate == BFI_IOC_DISABLED || ioc_fwstate == BFI_IOC_OP) {
|
|
|
|
|
|
/*
|
|
/*
|
|
* When using MSI-X any pending firmware ready event should
|
|
* When using MSI-X any pending firmware ready event should
|
|
@@ -1842,7 +1818,7 @@ bfa_ioc_fail_notify(struct bfa_ioc_s *ioc)
|
|
struct bfa_ioc_hbfail_notify_s *notify;
|
|
struct bfa_ioc_hbfail_notify_s *notify;
|
|
struct bfad_s *bfad = (struct bfad_s *)ioc->bfa->bfad;
|
|
struct bfad_s *bfad = (struct bfad_s *)ioc->bfa->bfad;
|
|
|
|
|
|
- /**
|
|
|
|
|
|
+ /*
|
|
* Notify driver and common modules registered for notification.
|
|
* Notify driver and common modules registered for notification.
|
|
*/
|
|
*/
|
|
ioc->cbfn->hbfail_cbfn(ioc->bfa);
|
|
ioc->cbfn->hbfail_cbfn(ioc->bfa);
|
|
@@ -2279,7 +2255,7 @@ bfa_ioc_adapter_is_disabled(struct bfa_ioc_s *ioc)
|
|
return BFA_TRUE;
|
|
return BFA_TRUE;
|
|
}
|
|
}
|
|
|
|
|
|
-/**
|
|
|
|
|
|
+/*
|
|
* Reset IOC fwstate registers.
|
|
* Reset IOC fwstate registers.
|
|
*/
|
|
*/
|
|
void
|
|
void
|