Closed jenswi-linaro closed 3 years ago
I don't see any patch for this upstream in linux-next
, is that expected? Is this still relevant and does this PR need to be merged?
Thanks for the reminder. We can close this. It turned out that the problem only was with single page mappings so we could make some shortcuts.
Until now has kernel private shared memory allocated as dynamic shared memory (not from the static shared memory pool) been returned if it was from the static shared memory pool. This causes OP-TEE to refuse the offered shared memory. Fix this by instead report the shared memory as any other dynamically allocated shared memory, that is, supply the list of physical pages which are used.
Fixes: 53a107c812de ("tee: optee: add registered buffers handling into RPC calls") Signed-off-by: Jens Wiklander jens.wiklander@linaro.org