Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: arm: rpc_alloc: remove size limit for kernel payload #6409

Merged
merged 1 commit into from
Dec 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions core/arch/arm/kernel/thread_optee_smc.c
Original file line number Diff line number Diff line change
Expand Up @@ -681,14 +681,6 @@ struct mobj *thread_rpc_alloc_payload(size_t size)

struct mobj *thread_rpc_alloc_kernel_payload(size_t size)
{
/*
* Error out early since kernel private dynamic shared memory
* allocations don't currently use the `OPTEE_MSG_ATTR_NONCONTIG` bit
* and therefore cannot be larger than a page.
*/
if (IS_ENABLED(CFG_CORE_DYN_SHM) && size > SMALL_PAGE_SIZE)
return NULL;

return thread_rpc_alloc(size, 8, OPTEE_RPC_SHM_TYPE_KERNEL);
}

Expand Down