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

Commit ff9b8f70 authored by Jilai Wang's avatar Jilai Wang
Browse files

msm: npu: Allow sys cache activation failure



NPU can work properly even sys cache activation fails. This
change is to allow sys cache activation failure.

Change-Id: I125bb1e24d6cb663de4c82fbe5d8004b8f2e4a1d
Signed-off-by: default avatarJilai Wang <jilaiw@codeaurora.org>
parent f4493057
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -1178,9 +1178,13 @@ int npu_enable_sys_cache(struct npu_device *npu_dev)

		pr_debug("prior to activate sys cache\n");
		rc = llcc_slice_activate(npu_dev->sys_cache);
		if (rc)
			pr_err("failed to activate sys cache\n");
		else
		if (rc) {
			pr_warn("failed to activate sys cache\n");
			llcc_slice_putd(npu_dev->sys_cache);
			npu_dev->sys_cache = NULL;
			return 0;
		}

		pr_debug("sys cache activated\n");
	}