Thread (19 messages) 19 messages, 2 authors, 2021-06-11

Re: [PATCH 6/7] firmware: tee_bnxt: use tee_shm_alloc_kernel_buf()

From: Jens Wiklander <jens.wiklander@linaro.org>
Date: 2021-06-10 09:09:35
Also in: lkml, op-tee

On Wed, Jun 9, 2021 at 4:58 PM Tyler Hicks [off-list ref] wrote:
On 2021-06-09 12:23:23, Jens Wiklander wrote:
quoted
Uses the new simplified tee_shm_alloc_kernel_buf() function instead of
the old deprecated tee_shm_alloc() function which required specific
TEE_SHM-flags.

Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Since this series is essentially a rewrite of the shm allocation logic,
it is worth pointing out that the rewrite still uses contiguous
allocations (from alloc_pages()). The tee_bnxt_fw driver is performing
an order-10 allocation which is the max, by default. I've only tested
tee_bnxt_fw when it was built-in to the kernel and tee_bnxt_fw_probe()
was called early in boot but I suspect that it might not succeed when
built as a module and loaded later after memory is segmented. I think
this driver would benefit from being able to request a non-contiguous
allocation.

Is this rewrite a good time to offer drivers a way to perform a
non-contiguous allocation?
Good idea, I'll look into that. I'll add it as a separate patch if it works OK.

Cheers,
Jens

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help