summaryrefslogtreecommitdiff
path: root/arch/powerpc/lib/code-patching.c
diff options
context:
space:
mode:
authorIsaac J. Manjarres <isaacm@codeaurora.org>2019-04-16 17:14:33 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2019-05-05 21:35:36 -0700
commit680e896288b6fdf81758cdf9fc26ee12b135bc72 (patch)
treebb382108c1ae01d987a3f15aac993ab7e65ab1a4 /arch/powerpc/lib/code-patching.c
parentf4d62ca185dd067aec1a6ebf14375abfb95aa935 (diff)
soc: qcom: secure_buffer: Process large SG tables in batches
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 <isaacm@codeaurora.org>
Diffstat (limited to 'arch/powerpc/lib/code-patching.c')
0 files changed, 0 insertions, 0 deletions