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

Commit de445c06 authored by Mohammed Nayeem Ur Rahman's avatar Mohammed Nayeem Ur Rahman
Browse files

msm: adsprpc: Remove remote mappings after PD is up



Currently before staticPD on QDSP is up, remote mappings are
being removed. Instead, remove the mappings after staticPD is up.

Change-Id: I10a37b4c840dbd830f7b8897aabbf8681329b74c
Acked-by: default avatarVishnu Karthik D <vikarthi@qti.qualcomm.com>
Signed-off-by: default avatarTharun Kumar Merugu <mtharu@codeaurora.org>
Signed-off-by: default avatarMohammed Nayeem Ur Rahman <mohara@codeaurora.org>
parent 78fcd26e
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -2569,13 +2569,6 @@ static int fastrpc_mmap_remove_pdr(struct fastrpc_file *fl)
			AUDIO_PDR_SERVICE_LOCATION_CLIENT_NAME, &session));
	if (err)
		goto bail;
	if (me->channel[fl->cid].spd[session].pdrcount !=
		me->channel[fl->cid].spd[session].prevpdrcount) {
		if (fastrpc_mmap_remove_ssr(fl))
			pr_err("ADSPRPC: SSR: Failed to unmap remote heap\n");
		me->channel[fl->cid].spd[session].prevpdrcount =
				me->channel[fl->cid].spd[session].pdrcount;
	}
	if (!me->channel[fl->cid].spd[session].ispdup) {
		VERIFY(err, 0);
		if (err) {
@@ -2583,6 +2576,13 @@ static int fastrpc_mmap_remove_pdr(struct fastrpc_file *fl)
			goto bail;
		}
	}
	if (me->channel[fl->cid].spd[session].pdrcount !=
		me->channel[fl->cid].spd[session].prevpdrcount) {
		if (fastrpc_mmap_remove_ssr(fl))
			pr_err("ADSPRPC: SSR: Failed to unmap remote heap\n");
		me->channel[fl->cid].spd[session].prevpdrcount =
				me->channel[fl->cid].spd[session].pdrcount;
	}
bail:
	return err;
}