-
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
xtest 1013 stalled on HiKey when log levels are 4 and optee_os is on its own UART #665
Comments
@vchong we haven't done anything explicitly to solve this issue, but since there has been quite many changes since this was reported, there is a great chance we get another behavior. Would you mind re-testing this again to see if you can reproduce the issue? |
I tested with tip yesterday and today and while the test now runs to completion using the above settings, it took ~4 hours (~50 minutes with log level 3) vs ~1 minute in qemu. CFG_TEE_CORE_LOG_LEVEL=4, CFG_TEE_TA_LOG_LEVEL=4 root@HiKey:/ time xtest 1013
Test ID: 1013
Run test suite with level=0
+-----------------------------------------------------
Result of testsuite XTEST_TEE_TEST filtered by "1013":
XTEST_TEE_1013 OK
+-----------------------------------------------------
648 subtests of which 0 failed
1 test case of which 0 failed
62 test cases was skipped
TEE test application done!
real 4h 10m 12s
user 0m 0.01s
sys 11h 57m 46s CFG_TEE_CORE_LOG_LEVEL=3, CFG_TEE_TA_LOG_LEVEL=3 root@HiKey:/ time xtest 1013
Test ID: 1013
Run test suite with level=0
+-----------------------------------------------------
Result of testsuite XTEST_TEE_TEST filtered by "1013":
XTEST_TEE_1013 OK
+-----------------------------------------------------
648 subtests of which 0 failed
1 test case of which 0 failed
62 test cases was skipped
TEE test application done!
real 51m 21.29s
user 0m 0.00s
sys 1h 28m 55s CFG_TEE_CORE_LOG_LEVEL=4, CFG_TEE_TA_LOG_LEVEL=4 root@Vexpress:/ time xtest 1013
Test ID: 1013
Run test suite with level=0
+-----------------------------------------------------
Result of testsuite XTEST_TEE_TEST filtered by "1013":
XTEST_TEE_1013 OK
+-----------------------------------------------------
648 subtests of which 0 failed
1 test case of which 0 failed
62 test cases was skipped
TEE test application done!
real 1m 3.01s
user 0m 0.06s
sys 1m 1.79s Also, secure world logs are not printed for HiKey if |
With CFG_TEE_CORE_LOG_LEVEL=4, CFG_TEE_TA_LOG_LEVEL=4 root@HiKey:/ time xtest 1013
Test ID: 1013
Run test suite with level=0
+-----------------------------------------------------
Result of testsuite XTEST_TEE_TEST filtered by "1013":
XTEST_TEE_1013 OK
+-----------------------------------------------------
648 subtests of which 0 failed
1 test case of which 0 failed
62 test cases was skipped
TEE test application done!
real 22m 31.54s
user 0m 0.00s
sys 1h 4m 31s CFG_TEE_CORE_LOG_LEVEL=3, CFG_TEE_TA_LOG_LEVEL=3 root@HiKey:/ time xtest 1013
Test ID: 1013
Run test suite with level=0
+-----------------------------------------------------
Result of testsuite XTEST_TEE_TEST filtered by "1013":
XTEST_TEE_1013 OK
+-----------------------------------------------------
648 subtests of which 0 failed
1 test case of which 0 failed
62 test cases was skipped
TEE test application done!
real 2m 49.13s
user 0m 0.01s
sys 4m 23.51s |
I suspect that the difference in time spent for the different configuration is due to how much concurrency there's in the system. qemu_virt only has one core so real concurrency is impossible, but there's some experienced concurrency by rescheduling from normal world. HiKey on the other hand can have true concurrency on all 8 cores. If those are hammering the same shared resources I guess it can slow things down, but this is a bit extreme I guess there has to be something else adding to this as well. |
I am trying to running optee on hikey960 and the secure world optee-core can boot seccessfully, but the normal world linux kernel always encounter "Task dump for CPU 5:" error while booting. Following is linux booting information, how can I resolve this problem? |
@HaiyongSun We'll investigate and get back to you later. Thanks for the report! |
@vchong Thanks, I read the file "stallwarn.txt" which writes: |
@HaiyongSun The problem is 'fixed'. See #1851 for details. |
The original issue reported is fixed so closing. |
@vchong Yes, It works! Thanks! |
Modifications to https://github.com/OP-TEE/build
common.mk:
Set DEBUG=1
Set CFG_TEE_CORE_LOG_LEVEL=4
Add CFG_TEE_TA_LOG_LEVEL=4 to XTEST_COMMON_FLAGS
hikey.mk:
For OPTEE_OS_COMMON_FLAGS, set
CFG_TEE_TA_LOG_LEVEL=4
CFG_CONSOLE_UART=0
The text was updated successfully, but these errors were encountered: