Yidi Lin d5aaf2c9e4 fix(optee): align FDT buffer size with OP-TEE for in-place updates
The addition of new Widevine properties caused the generated device tree
to consume more space. While the final size in ATF was under 1024 bytes,
the OP-TEE OS performs in-place updates to the FDT after handoff.
These updates exceeded the previous 1024-byte buffer, leading to silent
corruption of the adjacent opteed_sp_context array and an assertion
failure in opteed_common.c:79.

Increase OPTEED_FDT_SIZE to 2048 to provide sufficient headroom for
OP-TEE's runtime fixups. This matches OP-TEE's CFG_DTB_MAX_SIZE
setting and ensures consistency between the two components.

Change-Id: I76581779b214ff86ca1c5b141d0bb44b1ea606c5
Signed-off-by: Yidi Lin <yidilin@google.com>
2026-04-02 14:54:27 +08:00
..