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

Commit 2f19eb57 authored by Dinesh K Garg's avatar Dinesh K Garg
Browse files

msm: mink: Send full buffer size to TZ for smcinvoke



Currently, smcinvoke driver sends actual content size instead of
size of actual buffer. As per new requirement, TZ needs full
buffer size.

Change-Id: I9e051d8825ff753f801155d1ea941034fa5e1e12
Signed-off-by: default avatarDinesh K Garg <dineshg@codeaurora.org>
parent d033e4fe
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -192,9 +192,9 @@ static int prepare_send_scm_msg(const uint8_t *in_buf, size_t in_buf_len,


	desc.arginfo = SMCINVOKE_TZ_PARAM_ID;
	desc.arginfo = SMCINVOKE_TZ_PARAM_ID;
	desc.args[0] = (uint64_t)virt_to_phys(in_buf);
	desc.args[0] = (uint64_t)virt_to_phys(in_buf);
	desc.args[1] = in_buf_len;
	desc.args[1] = inbuf_flush_size;
	desc.args[2] = (uint64_t)virt_to_phys(out_buf);
	desc.args[2] = (uint64_t)virt_to_phys(out_buf);
	desc.args[3] = out_buf_len;
	desc.args[3] = outbuf_flush_size;


	dmac_flush_range(in_buf, in_buf + inbuf_flush_size);
	dmac_flush_range(in_buf, in_buf + inbuf_flush_size);
	dmac_flush_range(out_buf, out_buf + outbuf_flush_size);
	dmac_flush_range(out_buf, out_buf + outbuf_flush_size);