-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Increase TA/TEE RAM size #4768
Comments
I am using OPTEE version 3.10.0. |
hi @DevendraDevadiga |
Dear Sir, In our case the memory layout is as below: I am working on i.MX8MQ platform. We used total 60MB, in that 28MB as TZDRAM, 16MB fo Secure buffer and 16MB for shared memory. D/TC:0 get_aslr_seed:1344 Bad fdt: -9 Any configuration is wrong ? |
Any suggestions? |
Any suggestions for this issue? |
This issue has been marked as a stale issue because it has been open (more than) 30 days with no activity. Remove the stale label or add a comment, otherwise this issue will automatically be closed in 5 days. Note, that you can always re-open a closed issue at any time. |
hello, have you fixed your problem? |
This commit introduces the CFG_DRAM1_BASE configuration switch in the plat-hikey platform. This change aligns with previous discussions and resolves issues OP-TEE#5146, OP-TEE#4768, and OP-TEE#6160. Signed-off-by: zwb-233 <a1231512a@163.com>
This commit introduces the CFG_DRAM1_BASE configuration switch in the plat-hikey platform. This change aligns with previous discussions and resolves issues OP-TEE#5146, OP-TEE#4768, and OP-TEE#6160. Signed-off-by: Wen Bin <a1231512a@163.com>
Dear Team,
We had implemented secure display and used 1920x1080 resolution display.
For CA and TA, refered the below test app:
https://github.com/jforissier/secvideo_demo/tree/master/app
I am able to write the test.bin (Image with 2MB) successfully and oly 1/4th of Display is covered by LCD (Becuase 8MB image is required in our case we used 1920x1080 resolution display. (1920108032/8).
But when I tried to write the image file with 8MB, app will be able to write the image till 2MB and after that crash is happening.
Below is the crash log:
F/TC:? 0 trace_syscall:132 syscall #71 (syscall_framebuffer_update)
D/TC:3 0 abort_handler:524 [abort] abort in User mode (TA will panic)
E/TC:? 0
E/TC:? 0 User TA undef-abort at address 0x4005c334
E/TC:? 0 esr 0x02000000 ttbr0 0x20000bc4a0060 ttbr1 0x00000000 cidr 0x0
E/TC:? 0 cpu #3 cpsr 0x40000100
E/TC:? 0 x0 000000004005ee4a x1 0000000000000720
E/TC:? 0 x2 0000000000000003 x3 0000000000000001
E/TC:? 0 x4 000000004005f2fc x5 0000000000000000
E/TC:? 0 x6 ffffffffffffffff x7 0000000040014e60
E/TC:? 0 x8 0000000000000047 x9 0000000000000001
E/TC:? 0 x10 0000000000000000 x11 0000000000000000
E/TC:? 0 x12 0000000000000000 x13 0000000040014f80
E/TC:? 0 x14 0000000000000000 x15 0000000000000020
E/TC:? 0 x16 00000000bc4309a4 x17 0000000000000000
E/TC:? 0 x18 0000000000000000 x19 0000000040014ea0
E/TC:? 0 x20 0000000000224000 x21 0000000040068440
E/TC:? 0 x22 0000000040014ea0 x23 0000000000004000
E/TC:? 0 x24 0000000000000001 x25 0000000000000000
E/TC:? 0 x26 0000000000000000 x27 0000000000000000
E/TC:? 0 x28 0000000000000000 x29 0000000040014e20
E/TC:? 0 x30 0000000040053148 elr 000000004005c334
E/TC:? 0 sp_el0 0000000040014e20
D/TC:3 0 abort_handler:524 [abort] abort in User mode (TA will panic)
E/TC:? 0 dump_state_ldelf_dbg:415 ldelf dump function panicked
E/TC:? 0
E/TC:? 0 User TA undef-abort at address 0x4000aaa4
E/TC:? 0 esr 0x02000000 ttbr0 0x20000bc4a0060 ttbr1 0x00000000 cidr 0x0
E/TC:? 0 cpu #3 cpsr 0x00000100
E/TC:? 0 x0 000000004000c66b x1 000000004000c65e
E/TC:? 0 x2 0000000000000023 x3 000000004000c6d9
E/TC:? 0 x4 0000000000000000 x5 0000000000000000
E/TC:? 0 x6 0000000000000000 x7 0000000000000000
E/TC:? 0 x8 0000000000000000 x9 0000000000000000
E/TC:? 0 x10 0000000000000000 x11 0000000000000000
E/TC:? 0 x12 0000000000000000 x13 0000000040005e80
E/TC:? 0 x14 0000000000000000 x15 0000000000000000
E/TC:? 0 x16 0000000000000000 x17 0000000000000000
E/TC:? 0 x18 0000000000000000 x19 0000000040005e80
E/TC:? 0 x20 000000004000e158 x21 0000000040012ec0
E/TC:? 0 x22 0000000000000000 x23 0000000000000000
E/TC:? 0 x24 0000000000000000 x25 0000000000000000
E/TC:? 0 x26 0000000000000000 x27 0000000000000000
E/TC:? 0 x28 0000000000000000 x29 0000000040005e50
E/TC:? 0 x30 00000000400062a4 elr 000000004000aaa4
E/TC:? 0 sp_el0 0000000040005e50
E/TC:? 0 region 0: va 0x0000000040000000 pa 0x00000000bc402000 size 0x002000 flags ---R-X
E/TC:? 0 region 1: va 0x0000000040002000 pa 0x00000000bc492000 size 0x001000 flags ---RW-
E/TC:? 0 region 2: va 0x0000000040004000 pa 0x00000000bc600000 size 0x002000 flags rw-RW-
E/TC:? 0 region 3: va 0x0000000040006000 pa 0x00000000bc602000 size 0x008000 flags r-x---
E/TC:? 0 region 4: va 0x000000004000e000 pa 0x00000000bc60a000 size 0x001000 flags rw-RW-
E/TC:? 0 region 5: va 0x000000004000f000 pa 0x00000000bc60b000 size 0x004000 flags rw-RW-
E/TC:? 0 region 6: va 0x0000000040013000 pa 0x00000000bc60f000 size 0x001000 flags r--R--
E/TC:? 0 region 7: va 0x0000000040014000 pa 0x00000000bc62d000 size 0x001000 flags rw-RW-
E/TC:? 0 region 8: va 0x0000000040050000 pa 0x00000000bc610000 size 0x011000 flags r-xR--
E/TC:? 0 region 9: va 0x0000000040061000 pa 0x00000000bc621000 size 0x00c000 flags rw-RW-
D/TC:? 0 user_ta_enter:166 tee_user_ta_enter: TA panicked with code 0xdeadbeef
D/TC:? 0 destroy_ta_ctx_from_session:313 Remove references to context (0xbc48fd70)
D/TC:? 0 destroy_context:298 Destroy TA ctx (0xbc48fd70)
Invoke CLEAR_SCREEN command (coloD/TC:? 0 tee_ta_close_session:498 csess 0xbc48fdd0 id 1
D/TC:? 0 tee_ta_close_session:518 Destroy session
r=0x007cfc00)...
What may be the possible reason for this ?
I tried to increase TA_DATA_SIZE to 1920 * 1080 * 4. That time I am getting error like:
E/TC:? 0 alloc_pgt:149 5 page tables not available
I tied to increase the PGT_CACHE_SIZE also but not working properly.
Please can you suggest me to solve this issue ?
Thanks and Regards,
Devendra
The text was updated successfully, but these errors were encountered: