summaryrefslogtreecommitdiff
path: root/drivers/sysreset/sysreset_socfpga_soc64.c
diff options
context:
space:
mode:
authorIlias Apalodimas <apalos@gmail.com>2021-12-24 11:08:41 +0300
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2021-12-26 08:49:14 +0300
commit2b18d95d91c8d52a1971f93202c6b8212fa4f27e (patch)
tree769c309097107dc3ddd8c31766faf5e15bd9a25a /drivers/sysreset/sysreset_socfpga_soc64.c
parentcc65faf2a38c6241eefcabf0c68dbde2f04d7cf2 (diff)
downloadu-boot-2b18d95d91c8d52a1971f93202c6b8212fa4f27e.tar.xz
efi_loader: Don't limit the StMM buffer size explicitly
Currently we allow and explicitly check a single shared page with StandAloneMM. This is dictated by OP-TEE which runs the application. However there's no way for us dynamically discover the number of pages we are allowed to use. Since writing big EFI signature list variable requires more than a page, OP-TEE has bumped the number of shared pages to four. Let's remove our explicit check and allow the request to reach OP-TEE even if it's bigger than what it supports. There's no need to sanitize the number of pages internally. OP-TEE will fail if we try to write more than it's allowed. The error will just trigger later on, during the StMM access. While at it add an error message to help users figure out what failed. Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Tested-by: Ying-Chun Liu (PaulLiu) <paul.liu@linaro.org> Signed-off-by: Ilias Apalodimas <apalos@gmail.com>
Diffstat (limited to 'drivers/sysreset/sysreset_socfpga_soc64.c')
0 files changed, 0 insertions, 0 deletions