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

Commit 31f0583c authored by Arun Kumar Khandavalli's avatar Arun Kumar Khandavalli Committed by Madan Koyyalamudi
Browse files

qcacld-3.0: update the new pld event for smmu fault

There is a time involved between the smmu fault initiated
and the eventual system panic. In this time there is a
possibility of the nbuf history being overwritten losing
the information on the nbuf which might has actually caused
the SMMU fault.

Set the ssmu state and dont track the nbuf's when the smmu
fault is detected.

Change-Id: Ia9f422861cbb7bde1b498d8a88967616be99bb6e
CRs-Fixed: 2960063
parent db4ed489
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2069,6 +2069,10 @@ wlan_hdd_pld_uevent(struct device *dev, struct pld_uevent_data *event_data)
	bus_type = pld_get_bus_type(dev);

	switch (event_data->uevent) {
	case PLD_SMMU_FAULT:
		qdf_set_smmu_fault_state(true);
		hdd_debug("Received smmu fault indication");
		break;
	case PLD_FW_DOWN:
		hdd_debug("Received firmware down indication");

+1 −0
Original line number Diff line number Diff line
@@ -1682,6 +1682,7 @@ QDF_STATUS hdd_wlan_shutdown(void)

	hdd_lpass_notify_stop(hdd_ctx);

	qdf_set_smmu_fault_state(false);
	hdd_info("WLAN driver shutdown complete");

	return QDF_STATUS_SUCCESS;