Merge "msm: ipa3: ignore multiple crash"

This commit is contained in:
qctecmdr 2021-07-13 14:37:07 -07:00 committed by Gerrit - the friendly Code Review server
commit 39c0e50d30
2 changed files with 9 additions and 0 deletions

View File

@ -6025,6 +6025,13 @@ static int ipa3_panic_notifier(struct notifier_block *this,
int res;
struct ipa_active_client_logging_info log_info;
if (ipa3_ctx != NULL)
{
if (ipa3_ctx->is_device_crashed)
return NOTIFY_DONE;
ipa3_ctx->is_device_crashed = true;
}
ipa3_freeze_clock_vote_and_notify_modem();
IPADBG("Calling uC panic handler\n");
@ -7126,6 +7133,7 @@ static int ipa3_pre_init(const struct ipa3_plat_drv_res *resource_p,
ipa3_ctx->gsi_ch20_wa = resource_p->gsi_ch20_wa;
ipa3_ctx->wdi_over_pcie = resource_p->wdi_over_pcie;
ipa3_ctx->ipa3_active_clients_logging.log_rdy = false;
ipa3_ctx->is_device_crashed = false;
ipa3_ctx->mhi_evid_limits[0] = resource_p->mhi_evid_limits[0];
ipa3_ctx->mhi_evid_limits[1] = resource_p->mhi_evid_limits[1];
ipa3_ctx->entire_ipa_block_size = resource_p->entire_ipa_block_size;

View File

@ -2154,6 +2154,7 @@ struct ipa3_context {
bool is_bw_monitor_supported;
bool modem_load_ipa_fw;
bool fnr_stats_not_supported;
bool is_device_crashed;
};
struct ipa3_plat_drv_res {