Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab755720 authored by Skylar Chang's avatar Skylar Chang
Browse files

msm: ipa: crash on uc error



Before IPA uC crashes it generates an error event.
Add a BUG() when receiving this event to crash the device.

Change-Id: I652f49162fd9233babe1845ad54cc170c2fb3f77
Acked-by: default avatarAdy Abraham <adya@qti.qualcomm.com>
Signed-off-by: default avatarSkylar Chang <chiaweic@codeaurora.org>
parent 0c37cc25
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -346,6 +346,7 @@ static void ipa_uc_event_handler(enum ipa_irq_type interrupt,
			IPAERR("IPA has encountered a ZIP engine error\n");
			ipa_ctx->uc_ctx.uc_zip_error = true;
		}
		BUG();
	} else if (ipa_ctx->uc_ctx.uc_sram_mmio->eventOp ==
		IPA_HW_2_CPU_EVENT_LOG_INFO) {
			IPADBG("uC evt log info ofst=0x%x\n",
+1 −0
Original line number Diff line number Diff line
@@ -324,6 +324,7 @@ static void ipa3_uc_event_handler(enum ipa_irq_type interrupt,
			IPAERR("IPA has encountered a ZIP engine error\n");
			ipa3_ctx->uc_ctx.uc_zip_error = true;
		}
		BUG();
	} else if (ipa3_ctx->uc_ctx.uc_sram_mmio->eventOp ==
		IPA_HW_2_CPU_EVENT_LOG_INFO) {
			IPADBG("uC evt log info ofst=0x%x\n",