tee: optee: Fix FF-A offset handling on 64 KiB pages - #549
tee: optee: Fix FF-A offset handling on 64 KiB pages#549mahantesh-nvidia wants to merge 1 commit into
Conversation
FF-A memory objects use 4 KiB pages, but the kernel page size may be larger. On systems with 64 KiB pages, offsets beyond the first 4 KiB must be encoded in offs_low and offs_high instead of internal_offs. Fixes: 4615e5a ("optee: add FF-A support") Signed-off-by: Mahantesh Salimath <mahantesh@nvidia.com>
BaseOS Kernel ReviewWarning
|
|
@mahantesh-nvidia Can you put more information about this PR? Like which project is this for and any nvbug for reference? |
Ack, I will open a PR against 26.04_linux-nvidia branch. This is basically for Bluefield-4 project where we are integrating OP-TEE OS as a secure partition running under Hafnium at SEL2. Due to project deadlines and customer requests, prioritizing the submission here and soon will submit the patch for review to upstream as well. |
For BF4, I will say the PR should target NVIDIA:26.04_linux-nvidia-bos. I do not think older systems are using BF4. |
Ack. I created the PR: #553 |
FF-A memory objects use 4 KiB pages, but the kernel page size may be larger. On systems with 64 KiB pages, offsets beyond the first 4 KiB must be encoded in offs_low and offs_high instead of internal_offs.
Fixes: 4615e5a ("optee: add FF-A support")