<feed xmlns='http://www.w3.org/2005/Atom'>
<title>android_kernel_zuk_msm8996.git/drivers/soc/qcom/secure_buffer.c, branch master</title>
<subtitle>null
</subtitle>
<link rel='alternate' type='text/html' href='http://git.compromyse.xyz/android/android_kernel_zuk_msm8996.git/'/>
<entry>
<title>soc: qcom: secure_buffer: Process large SG tables in batches</title>
<updated>2019-05-06T04:35:36+00:00</updated>
<author>
<name>Isaac J. Manjarres</name>
<email>isaacm@codeaurora.org</email>
</author>
<published>2019-04-17T00:14:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.compromyse.xyz/android/android_kernel_zuk_msm8996.git/commit/?id=680e896288b6fdf81758cdf9fc26ee12b135bc72'/>
<id>680e896288b6fdf81758cdf9fc26ee12b135bc72</id>
<content type='text'>
Currently, if processing an SG table consumes more memory
than can fit in the pre-allocated buffer, then calls to
hyp_assign_table() will fail as if there were not enough
memory available to process the request.

Instead, for every call to hyp assign, allocate enough
memory to process the maximum batch size, and process large
SG tables in pieces, using this memory. This avoids failures
due to large SG tables. Also, since the memory for handling
these requests is now allocated per hyp_assign_table() call,
we can drop the pre-allocated buffer, as it is no longer in
use.

Change-Id: Ie9899a5e2c8de6127707609101f5fb557e3f0533
Signed-off-by: Isaac J. Manjarres &lt;isaacm@codeaurora.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently, if processing an SG table consumes more memory
than can fit in the pre-allocated buffer, then calls to
hyp_assign_table() will fail as if there were not enough
memory available to process the request.

Instead, for every call to hyp assign, allocate enough
memory to process the maximum batch size, and process large
SG tables in pieces, using this memory. This avoids failures
due to large SG tables. Also, since the memory for handling
these requests is now allocated per hyp_assign_table() call,
we can drop the pre-allocated buffer, as it is no longer in
use.

Change-Id: Ie9899a5e2c8de6127707609101f5fb557e3f0533
Signed-off-by: Isaac J. Manjarres &lt;isaacm@codeaurora.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>soc: qcom: secure_buffer: Fix the parameter passing to dmac_flush_range</title>
<updated>2018-09-14T02:43:51+00:00</updated>
<author>
<name>Zhenhua Huang</name>
<email>zhenhuah@codeaurora.org</email>
</author>
<published>2018-09-06T06:27:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.compromyse.xyz/android/android_kernel_zuk_msm8996.git/commit/?id=371698455ce0a5015be109174ec65366e4064d28'/>
<id>371698455ce0a5015be109174ec65366e4064d28</id>
<content type='text'>
For "chunk_list + chunk_list_len", if the chunk_list is type of u32*,
the chunk_list_len will be 4 * of original size. So we flushed a wrong
area size. In some condition like we enabled CONFIG_DEBUG_PAGEALLOC, it
may flush out of page bound of the invalid pte page.

Fix it by manually convert it as void* when doing the addition.

CRs-Fixed: 2309993
Change-Id: I2b88d78ba73d9904fa2bf6106937001715b6037f
Signed-off-by: Zhenhua Huang &lt;zhenhuah@codeaurora.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For "chunk_list + chunk_list_len", if the chunk_list is type of u32*,
the chunk_list_len will be 4 * of original size. So we flushed a wrong
area size. In some condition like we enabled CONFIG_DEBUG_PAGEALLOC, it
may flush out of page bound of the invalid pte page.

Fix it by manually convert it as void* when doing the addition.

CRs-Fixed: 2309993
Change-Id: I2b88d78ba73d9904fa2bf6106937001715b6037f
Signed-off-by: Zhenhua Huang &lt;zhenhuah@codeaurora.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>msm: secure_buffer: Add SPSS_SP_SHARED vmid</title>
<updated>2018-02-16T09:35:43+00:00</updated>
<author>
<name>Sudarshan Rajagopalan</name>
<email>sudaraja@codeaurora.org</email>
</author>
<published>2017-06-29T00:45:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.compromyse.xyz/android/android_kernel_zuk_msm8996.git/commit/?id=b07c54bfd13a724109d0b77fce5e9cb28205a7c4'/>
<id>b07c54bfd13a724109d0b77fce5e9cb28205a7c4</id>
<content type='text'>
Add support for SPSS_SP_SHARED vmid. This vmid is equivalent
to TZ VM, which can be used for sharing memory with TZ with
the assign call.

Change-Id: I10b98820796e8bab7b8275f5ddf44e8814dc0fb0
Signed-off-by: Sudarshan Rajagopalan &lt;sudaraja@codeaurora.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add support for SPSS_SP_SHARED vmid. This vmid is equivalent
to TZ VM, which can be used for sharing memory with TZ with
the assign call.

Change-Id: I10b98820796e8bab7b8275f5ddf44e8814dc0fb0
Signed-off-by: Sudarshan Rajagopalan &lt;sudaraja@codeaurora.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>qcom: scm: update function return value and input parameter type</title>
<updated>2017-07-19T08:52:44+00:00</updated>
<author>
<name>Mohammed Khajapasha</name>
<email>mkhaja@codeaurora.org</email>
</author>
<published>2017-05-26T09:20:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.compromyse.xyz/android/android_kernel_zuk_msm8996.git/commit/?id=18ae33111d14cf1d508927844579f045d5c10187'/>
<id>18ae33111d14cf1d508927844579f045d5c10187</id>
<content type='text'>
Update the function return value and input scm_ret variable
type for restore secure configuration in scm_restore_sec_cfg() fn.
Adding scm_ret input variable for scm_get_feat_version() fn.  

Change-Id: Ideef914ded8dfdb4c780fd27d7273986eeb41f5c
Signed-off-by: Mohammed Khajapasha &lt;mkhaja@codeaurora.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Update the function return value and input scm_ret variable
type for restore secure configuration in scm_restore_sec_cfg() fn.
Adding scm_ret input variable for scm_get_feat_version() fn.  

Change-Id: Ideef914ded8dfdb4c780fd27d7273986eeb41f5c
Signed-off-by: Mohammed Khajapasha &lt;mkhaja@codeaurora.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>soc: qcom: secure_buffer: add export symbol hyp_assign_phys</title>
<updated>2017-03-17T16:34:51+00:00</updated>
<author>
<name>Sarada Prasanna Garnayak</name>
<email>sgarna@codeaurora.org</email>
</author>
<published>2017-03-14T13:44:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.compromyse.xyz/android/android_kernel_zuk_msm8996.git/commit/?id=3e0f2da3ead8f544a76e18865e85425e2428c85e'/>
<id>3e0f2da3ead8f544a76e18865e85425e2428c85e</id>
<content type='text'>
Fix the symbol linking error for loadable kernel modules
which is using secure buffer hypervisor api for smmu configuration.

CRs-Fixed: 2019262
Change-Id: I3d83fd4b1854298c1283e03f220de8c673195492
Signed-off-by: Sarada Prasanna Garnayak &lt;sgarna@codeaurora.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix the symbol linking error for loadable kernel modules
which is using secure buffer hypervisor api for smmu configuration.

CRs-Fixed: 2019262
Change-Id: I3d83fd4b1854298c1283e03f220de8c673195492
Signed-off-by: Sarada Prasanna Garnayak &lt;sgarna@codeaurora.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>soc: qcom: secure_buffer: Fix memory leak</title>
<updated>2016-12-20T23:32:52+00:00</updated>
<author>
<name>Patrick Daly</name>
<email>pdaly@codeaurora.org</email>
</author>
<published>2016-12-20T23:28:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.compromyse.xyz/android/android_kernel_zuk_msm8996.git/commit/?id=95042a43bf43b833357aa2721e9179099f828391'/>
<id>95042a43bf43b833357aa2721e9179099f828391</id>
<content type='text'>
Free the sg_table properly.

Change-Id: Idae945d17803e10756bf3a20426e57837d185067
Signed-off-by: Patrick Daly &lt;pdaly@codeaurora.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Free the sg_table properly.

Change-Id: Idae945d17803e10756bf3a20426e57837d185067
Signed-off-by: Patrick Daly &lt;pdaly@codeaurora.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "soc: qcom: secure_buffer: Fix an uninitialized variable"</title>
<updated>2016-11-16T07:39:31+00:00</updated>
<author>
<name>Linux Build Service Account</name>
<email>lnxbuild@localhost</email>
</author>
<published>2016-11-16T07:39:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.compromyse.xyz/android/android_kernel_zuk_msm8996.git/commit/?id=61f26e3aa5eee4fd8947ecca1cc45b5634e146b8'/>
<id>61f26e3aa5eee4fd8947ecca1cc45b5634e146b8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>soc: qcom: secure_buffer: Fix an uninitialized variable</title>
<updated>2016-11-14T23:00:09+00:00</updated>
<author>
<name>Patrick Daly</name>
<email>pdaly@codeaurora.org</email>
</author>
<published>2016-11-14T22:51:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.compromyse.xyz/android/android_kernel_zuk_msm8996.git/commit/?id=2d083baf33e102a0aee36019f79472a15c86cfa3'/>
<id>2d083baf33e102a0aee36019f79472a15c86cfa3</id>
<content type='text'>
Ensure variables are set before the are used to prevent random behavior.

Change-Id: Ib31e5aca648c0f442afe4cbe576ad79786fe6427
Signed-off-by: Patrick Daly &lt;pdaly@codeaurora.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Ensure variables are set before the are used to prevent random behavior.

Change-Id: Ib31e5aca648c0f442afe4cbe576ad79786fe6427
Signed-off-by: Patrick Daly &lt;pdaly@codeaurora.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>msm: secure_buffer: fix scm call argument layout</title>
<updated>2016-11-01T11:13:02+00:00</updated>
<author>
<name>Shiraz Hashim</name>
<email>shashim@codeaurora.org</email>
</author>
<published>2016-11-01T11:06:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.compromyse.xyz/android/android_kernel_zuk_msm8996.git/commit/?id=fcca61799a8e0d93d44f4c75cb19f6604e3a882f'/>
<id>fcca61799a8e0d93d44f4c75cb19f6604e3a882f</id>
<content type='text'>
For hyp_assign calls, dest_vm_and_perm_info wrongly
defines ctx as u32 * type, while TZ expects it as u64.
This creates an inconsistency on 32bit system. Fix it.

Change-Id: I31e8e0b5e9ae240ca031f625cf7c49f1bfe165d4
Signed-off-by: Shiraz Hashim &lt;shashim@codeaurora.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For hyp_assign calls, dest_vm_and_perm_info wrongly
defines ctx as u32 * type, while TZ expects it as u64.
This creates an inconsistency on 32bit system. Fix it.

Change-Id: I31e8e0b5e9ae240ca031f625cf7c49f1bfe165d4
Signed-off-by: Shiraz Hashim &lt;shashim@codeaurora.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>msm: secure_buffer: Add VMID_CP_CAMERA_PREVIEW</title>
<updated>2016-09-30T17:25:26+00:00</updated>
<author>
<name>Liam Mark</name>
<email>lmark@codeaurora.org</email>
</author>
<published>2016-09-22T18:30:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.compromyse.xyz/android/android_kernel_zuk_msm8996.git/commit/?id=c156aa8e2a90bf7ef831f6f762fc23af9b9f7954'/>
<id>c156aa8e2a90bf7ef831f6f762fc23af9b9f7954</id>
<content type='text'>
Add support for VMID_CP_CAMERA_PREVIEW

Change-Id: Ifacc1ff95262c6240283d19cf02dcac37933c141
Signed-off-by: Liam Mark &lt;lmark@codeaurora.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add support for VMID_CP_CAMERA_PREVIEW

Change-Id: Ifacc1ff95262c6240283d19cf02dcac37933c141
Signed-off-by: Liam Mark &lt;lmark@codeaurora.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
