]> git.ipfire.org Git - thirdparty/linux.git/commit
firmware: arm_ffa: Use the correct buffer size during RXTX_MAP
authorSebastian Ene <sebastianene@google.com>
Thu, 2 Apr 2026 11:39:39 +0000 (11:39 +0000)
committerSudeep Holla <sudeep.holla@kernel.org>
Tue, 7 Apr 2026 09:47:42 +0000 (10:47 +0100)
commit83210251fd70d5f96bcdc8911e15f7411a6b2463
tree3f959d17cb54b5bba3dfc354c1ace6737816f709
parent6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
firmware: arm_ffa: Use the correct buffer size during RXTX_MAP

Don't use the discovered buffer size from an FFA_FEATURES call directly
since we can run on a system that has the PAGE_SIZE larger than the
returned size which makes the alloc_pages_exact for the buffer to be
rounded up.

Fixes: 61824feae5c0 ("firmware: arm_ffa: Fetch the Rx/Tx buffer size using ffa_features()")
Signed-off-by: Sebastian Ene <sebastianene@google.com>
Link: https://patch.msgid.link/20260402113939.930221-1-sebastianene@google.com
Signed-off-by: Sudeep Holla <sudeep.holla@kernel.org>
drivers/firmware/arm_ffa/driver.c