xen: add patch to support OPTEE_SMC_SEC_CAP_MEMREF_NULL

Adds Xen upstream patch "optee: enable OPTEE_SMC_SEC_CAP_MEMREF_NULL
capability" ([1] present in Xen 4.16.0) in order to avoid failures in
the GlobalPlatform test suite [2]:

 optee/build $ export GP_PACKAGE=~/work/TEE_Initial_Configuration-Test_Suite_v2_0_0_2-2017_06_09.7z
 optee/build $ make -j10 XEN_BOOT=y run
 ...
 $ xtest gp_
 ...
 gp_10081 FAILED first error at gp_10000.c:1653
 gp_10082 FAILED first error at gp_10000.c:1673
 gp_10083 FAILED first error at gp_10000.c:1693
 gp_10155 FAILED first error at gp_10000.c:3346
 gp_10156 FAILED first error at gp_10000.c:3366
 gp_10157 FAILED first error at gp_10000.c:3386
 gp_10229 FAILED first error at gp_10000.c:5039
 gp_10230 FAILED first error at gp_10000.c:5059
 gp_10231 FAILED first error at gp_10000.c:5079
 gp_10303 FAILED first error at gp_10000.c:6732
 gp_10304 FAILED first error at gp_10000.c:6752
 gp_10305 FAILED first error at gp_10000.c:6772
 gp_10632 FAILED first error at gp_10000.c:15608
 gp_10633 FAILED first error at gp_10000.c:15629
 gp_10634 FAILED first error at gp_10000.c:15650
 gp_10706 FAILED first error at gp_10000.c:17375
 gp_10707 FAILED first error at gp_10000.c:17396
 gp_10708 FAILED first error at gp_10000.c:17417
 gp_10780 FAILED first error at gp_10000.c:19142
 gp_10781 FAILED first error at gp_10000.c:19163
 gp_10782 FAILED first error at gp_10000.c:19184
 gp_10854 FAILED first error at gp_10000.c:20909
 gp_10855 FAILED first error at gp_10000.c:20930
 gp_10856 FAILED first error at gp_10000.c:20951

For each failed test there is a TA log:

 E/TA:  checkUpdateParameterMemref:195 Received buffer is not NULL but expected to be NULL.

Link: [1] https://xenbits.xen.org/gitweb/?p=xen.git;a=commit;h=d4fb5f166c2b
Link: [2] https://github.com/OP-TEE/optee_os/issues/4897
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
1 file changed
tree: 92c20ec9433ddaa0710e77483842e6ce7b9ac39a
  1. .github/
  2. br-ext/
  3. fvp/
  4. imx/
  5. kconfigs/
  6. qemu_v8/
  7. rpi3/
  8. ti/
  9. zynqmp/
  10. .gitignore
  11. am43xx.mk
  12. am57xx.mk
  13. common.mk
  14. dra7xx.mk
  15. fvp.mk
  16. get_clang.sh
  17. hikey.mk
  18. hikey960.mk
  19. imx.mk
  20. juno.mk
  21. poplar.mk
  22. qemu-check.exp
  23. qemu.mk
  24. qemu_v8.mk
  25. README.md
  26. rpi3.mk
  27. soc_term.py
  28. stm32mp1.mk
  29. synquacer.mk
  30. toolchain.mk
  31. trusted-keys.exp
  32. verdin.mk
  33. zynqmp.mk
README.md

OP-TEE build.git

This git contains makefiles etc to be able to build a full OP-TEE developer setup for the OP-TEE project.

All official OP-TEE documentation has moved to http://optee.readthedocs.io. The pages that used to be here in this git can be found under build and Device specific information at he new location for the OP-TEE documentation.

// OP-TEE core maintainers