OP-TEE各XTEST测试结果(XTEST1000.C)

笔者于HIKEY上运行xtest,测试各xtest,并将各xtest功能和测试结果列出以供后期查询使用:
XTEST1000.c
XTEST1001: Core self tests

ERR [1747] TEES:load_ta2:403:   TA not found                                   
ERR [1748] TEEC:TEEC_OpenSession:314: open session to TA UUID d96a5b40 c3e5 21ed

XTEST1004:Test User Crypt TA

o XTEST_TEE_1004.1 AES encrypt                                                  
  XTEST_TEE_1004.1 OK                                                           
o XTEST_TEE_1004.2 AES decrypt                                                  
  XTEST_TEE_1004.2 OK                                                           
o XTEST_TEE_1004.3 SHA-256 test, 3 bytes input                                  
  XTEST_TEE_1004.3 OK                                                           
o XTEST_TEE_1004.4 AES-256 ECB encrypt test, 32 bytes input, with fixed key     
  XTEST_TEE_1004.4 OK                                                           
o XTEST_TEE_1004.5 AES-256 ECB decrypt test, 32 bytes input, with fixed key     
  XTEST_TEE_1004.5 OK                                                           
  XTEST_TEE_1004 OK

XTEST1005:Many sessions

Result of testsuite XTEST_TEE_TEST filtered by "1005":                          
XTEST_TEE_1005 OK

XTEST1006:Test Basic OS features

ta_entry_basic: enter                                                           
Getting properties for current TA                                               
Getting properties for current client                                           
Getting properties for implementation                                           
[ta log] system time 513.735                                                    

[ta log] REE time 1447834047.321                                                

ERR USER-TA:test_time:477: TA time not stored                                   


[ta log] TA time 0.000                                                          

[ta log] TA time 1.004                                                          

INF USER-TA:test_float:564: Testing floating point operations                   

[ta log]                                                                        
*********** TESTBENCH ***********                                               
***         RUNNING: <<< Variables >>>                                          
*********************************                                               


[ta log] *** INFO : Testing BigIntInit                                          

[ta log]                                                                        
*********** TESTBENCH ***********                                               
***         PASSED:  <<< Variables >>>                                          
*********************************                                               


[ta log]                                                                        
*********** TESTBENCH ***********                                               
***         RUNNING: <<< Conversion functions >>>                               
*********************************                                               


[ta log] *** INFO : Testing GetShort and SetShort                               

[ta log] *** INFO : Testing Convert to and from OctetString                     

[ta log]                                                                        
*********** TESTBENCH ***********                                               
***         PASSED:  <<< Conversion functions >>>                               
*********************************                                               


[ta log]                                                                        
*********** TESTBENCH ***********                                               
***         RUNNING: <<< Comparison functions >>>                               
*********************************                                               


[ta log] *** INFO : Testing TEE_BigIntCompare                                   

[ta log] *** INFO :    Testing various cases                                    

[ta log] *** INFO :    Testing equality                                         

[ta log] *** INFO :    Testing equal magnitude, but different signs             

[ta log] *** INFO : Testing TEE_BigIntCmpS32                                    

[ta log] *** INFO :    Testing various cases                                    

[ta log] *** INFO :    Testing large BigInt                                     

[ta log]                                                                        
*********** TESTBENCH ***********                                               
***         PASSED:  <<< Comparison functions >>>                               
*********************************                                               


[ta log]                                                                        
*********** TESTBENCH ***********                                               
***         RUNNING: <<< Addition and Subtraction >>>                           
*********************************                                               


[ta log] *** INFO : Testing basic cases                                         

[ta log] *** INFO : Both ops positive                                           

[ta log] *** INFO : Both ops negative                                           

[ta log] *** INFO : Op1 positive, op2 negative, |op1| > |op2|                   

[ta log] *** INFO : Op1 positive, op2 negative, |op1| < |op2| [ta log] *** INFO : Op1 negative, op2 positive, |op1| > |op2|                   

[ta log] *** INFO : Op1 negative, op2 positive, |op1| < |op2| [ta log] *** INFO : Testing AddWord and SubWord [ta log] *** INFO : Testing Neg [ta log] *********** TESTBENCH *********** *** PASSED: <<< Addition and Subtraction >>>                           
*********************************                                               


[ta log]                                                                        
*********** TESTBENCH ***********                                               
***         RUNNING: <<< Multiplication >>>                                     
*********************************                                               


[ta log] *** INFO : Testing basic cases                                         

[ta log]                                                                        
*********** TESTBENCH ***********                                               
***         PASSED:  <<< Multiplication >>>                                     
*********************************                                               


[ta log]                                                                        
*********** TESTBENCH ***********                                               
***         RUNNING: <<< Division >>>                                           
*********************************                                               


[ta log] *** INFO :    Testing basic cases                                      

[ta log] *** INFO :    Testing random divisions                                 

[ta log] *** INFO :    Testing signs of q and r                                 

[ta log]                                                                        
*********** TESTBENCH ***********                                               
***         PASSED:  <<< Division >>>                                           
*********************************                                               


[ta log]                                                                        
*********** TESTBENCH ***********                                               
***         RUNNING: <<< Modulare arithmetics >>>                               
*********************************                                               


[ta log] *** INFO :    Testing modular reduction                                

[ta log] *** INFO :    Testing modular addition and subtraction                 

[ta log] *** INFO :    Testing modular multiplication                           

[ta log] *** INFO :    Testing modular inversion                                

[ta log]                                                                        
*********** TESTBENCH ***********                                               
***         PASSED:  <<< Modulare arithmetics >>>                               
*********************************                                               


[ta log]                                                                        
*********** TESTBENCH ***********                                               
***         RUNNING: <<< Primality Algorithms >>>                               
*********************************                                               


[ta log] *** INFO : Simple cases                                                

[ta log] *** INFO : Large Composites                                            

[ta log] *** INFO : Large Primes                                                

[ta log]                                                                        
*********** TESTBENCH ***********                                               
***         PASSED:  <<< Primality Algorithms >>>                               
*********************************                                               



*********** TESTBENCH ***********                                               
*** ALL TESTS PASSED ***                                               
*********************************                                               

  XTEST_TEE_1006 OK    

XTEST1007:Test Panic

ta_entry_panic: enter                                                           
ERR [0x0] TEE-CORE:tee_svc_sys_return_helper:243: TA panicked with code 0xbeef 0
ERR [1763] TEEC:TEEC_InvokeCommand:412: Function returns with [-53212]          
ERR [1763] TEEC:TEEC_InvokeCommand:412: Function returns with [-53212]          
  XTEST_TEE_1007 OK    

XTEST1008:TEE internal client API

o XTEST_TEE_1008.1 Invoke command                                               
ta_entry_client: enter                                                          
  XTEST_TEE_1008.1 OK                                                           
o XTEST_TEE_1008.2 Invoke command with timeout                                  
[ta log] ta_entry_wait: waiting 2000 
o XTEST_TEE_1008.2 Invoke command with timeout                                  
[ta log] ta_entry_wait: waiting 2000                                                     
  XTEST_TEE_1008.2 OK                                                           
o XTEST_TEE_1008.3 Create session fail ERR [0x0] TEE-CORE:tee_ta_open_session:556: Failed. Return error 0xffff0000 [ 1564.641363] misc opteearmtz00: tee_session_create_and_open: ERROR ret=0 (err) ERR [1775] TEEC:TEEC_OpenSession:314: open session to TA UUID c3f6e2c0 3548 11ed n = 1-100 ERR [0x0] TEE-CORE:tee_ta_open_session:556: Failed. Return error 0xffff0000 [ 1099.372704] misc opteearmtz00: tee_session_create_and_open: ERROR ret=0 (err) ERR [1769] TEEC:TEEC_OpenSession:314: open session to TA UUID c3f6e2c0 3548 11ed o XTEST_TEE_1008.4 Load fake uuid TA ER[ 1100.721435] misc opteearmtz00: tee_session_create_and_open: ERROR ret=0 (e) R [1769] TEEC:TEEC_OpenSession:314: open session to TA UUID 7e0a0900 586b 11e5 d [ 1100.741376] misc opteearmtz00: tee_session_create_and_open: ERROR ret=0 (er) XTEST_TEE_1008.4 OK o XTEST_TEE_1008.5 Load corrupt TA ERR [1769] TEEC:TEEC_OpenSession:314: open session to TA UUID c3f6e2c0[ 1100.76) 3548 11e1 failed ERR [1769] TEEC:TEEC_OpenSession:314: open session [ 1100.779094] misc opteearm) to TA UUID c3f6e2c0 3548 11e1 failed ERR [1769] TEEC:TEEC_OpenSession[ 1100.795782] misc opteearmtz00: tee_session_c) :314: open session to TA UUID c3f6e2c0 3548 11e1 failed ERR [[ 1100.812053] misc opteearmtz00: tee_session_create_and_open: ERROR ret=0) 1769] TEEC:TEEC_OpenSession:314: open session to TA UUID c3f6e2c0 3548 11e1 faid ERR [1769] TEEC:TEEC_OpenSessi[ 1100.832296] misc opteearmtz00: tee_session_cre) on:314: open session to TA UUID c3f6e2c0 3548 11e1 failed ERR [1769] TEEC:TEEC_OpenSession:314: open session [ 1100.852342] misc opteearm) to TA UUID c3f6e2c0 3548 11e1 failed ERR [1769] TEEC:TEEC_OpenSession:314: open session to TA UUID c3f6e2c0 3[ 1100.) 548 11e1 failed ERR [1769] TEEC:TEEC_OpenSession:314: open session to TA UUID c3f6e2c0 3548 11ed ER[ 1100.893276] misc opteearmtz00: tee_session_create_and_open: ERROR ret=0 (e) R [1769] TEEC:TEEC_OpenSession:314: open session to TA UUID c3f6e2c0 3548 11e1 d ERR [1769] TEEC:TEEC_OpenSession:314: open session to TA UUID c3f6e2c0 3548 11ed XTEST_TEE_1008.5 OK XTEST_TEE_1008 OK 

XTEST1009:TEE Wait

o XTEST_TEE_1009.1 TEE Wait 0.1s                                                
[ta log] ta_entry_wait: waiting 100                                             

  XTEST_TEE_1009.1 OK                                                           
o XTEST_TEE_1009.2 TEE Wait 0.5s                                                
[ta log] ta_entry_wait: waiting 500                                             

  XTEST_TEE_1009.2 OK                                                           
o XTEST_TEE_1009.3 TEE Wait 2s cancel                                           
[ta log] ta_entry_wait: waiting 2000                                            

ERR [1778] TEEC:TEEC_InvokeCommand:412: Function returns with [-65534]          
  XTEST_TEE_1009.3 OK                                                           
o XTEST_TEE_1009.4 TEE Wait 2s                                                  
[ta log] ta_entry_wait: waiting 2000                                            

  XTEST_TEE_1009.4 OK                                                           
  XTEST_TEE_1009 OK

XTEST1010:Invalid memory access

o XTEST_TEE_1010.1 Invalid memory access 1                                      


user TA data-abort at address 0x0 (translation fault)                           

 esr 0x92000046  ttbr0 0x200003f0654a0   ttbr1 0x00000000   cidr 0x0            

 cpu #1 cpsr 0x80000100 

x0  0000000000000000 x1  0000000040201c20                                       
x2  0000000040002718 x3  0000000040201ce4                                       
x4  000000000000000a x5  0000000000000010                                       
x6  0000000040220010 x7  0000000000000001                                       
x8  0000000000000000 x9  0000000000000000                                       
x10 0000000000000001 x11 0000000040218ebc                                       
x12 000000003f033000 x13 00000000400027b0                                       
x14 0000000000000000 x15 00000000948d25b6                                       
x16 000000003f0633a8 x17 0000000040000dc0                                       
x18 0000000040215000 x19 0000000000000001                                       
x20 0000000040002770 x21 0000000040308810                                       
x22 00000000400027b0 x23 000000000000000a                                       
x24 000000003f063254 x25 0000000000000002                                       
x26 000000000000000a x27 0000000000000000                                       
x28 000000003f04e8c0 x29 00000000400026f0                                       
x30 00000000402196a8 elr 0000000040201c24                                       
sp_el0 00000000400026f0                                                         
Status of TA 5b9e0e40-2636-11e1-ad9e0002a5d5c51b (0x3f04eae0) (active)          
- load addr : 0x40200000    ctx-idr: 2                                          
- code area : 0x3f600000 2097152                                                
- stack: 0x3f800000 stack:10240                                                 
ERR [1783] TEEC:TEEC_InvokeCommand:412: Function returns with [-53212]          
ERR [1783] TEEC:TEEC_InvokeCommand:412: Function returns with [-53212]          
  XTEST_TEE_1010.1 OK                                                           
o XTEST_TEE_1010.2 Invalid memory access 2                                      


user TA data-abort at address 0x80002718 (translation fault)                    

 esr 0x92000045  ttbr0 0x200003f0654a0   ttbr1 0x00000000   cidr 0x0            

 cpu #1 cpsr 0x80000100 

x0  0000000040000000 x1  0000000040201c20                                       
x2  0000000040002718 x3  0000000040201ce4                                       
x4  000000000000000a x5  0000000000000010                                       
x6  0000000040220010 x7  0000000000000001                                       
x8  0000000000000000 x9  0000000000000000                                       
x10 0000000000000001 x11 0000000040218ebc                                       
x12 000000003f033000 x13 00000000400027b0                                       
x14 0000000000000000 x15 00000000948d25b6                                       
x16 000000003f0633a8 x17 0000000040000dc0                                       
x18 0000000040215000 x19 0000000000000001                                       
x20 0000000040002770 x21 0000000040308810                                       
x22 00000000400027b0 x23 000000000000000a                                       
x24 000000003f063254 x25 0000000000000002                                       
x26 000000000000000a x27 0000000000000000                                       
x28 000000003f04e8c0 x29 00000000400026f0                                       
x30 00000000402196a8 elr 0000000040201c30                                       
sp_el0 00000000400026f0                                                         
Status of TA 5b9e0e40-2636-11e1-ad9e0002a5d5c51b (0x3f04eae0) (active)          
- load addr : 0x40200000    ctx-idr: 2                                          
- code area : 0x3f600000 2097152                                                
- stack: 0x3f800000 stack:10240                                                 
ERR [1783] TEEC:TEEC_InvokeCommand:412: Function returns with [-53212]          
ERR [1783] TEEC:TEEC_InvokeCommand:412: Function returns with [-53212]          
  XTEST_TEE_1010.2 OK                                                           
o XTEST_TEE_1010.3 Invalid memory access 3                                      


user TA prefetch-abort at address 0x0 (translation fault)                       

 esr 0x82000006  ttbr0 0x200003f0654a0   ttbr1 0x00000000   cidr 0x0            

 cpu #1 cpsr 0x80000100 

x0  0000000040201c38 x1  0000000040201c20                                       
x2  0000000040002718 x3  0000000040201ce4                                       
x4  000000000000000a x5  0000000000000010                                       
x6  0000000040220010 x7  0000000000000001                                       
x8  0000000000000000 x9  0000000000000000                                       
x10 0000000000000001 x11 0000000040218ebc                                       
x12 000000003f033000 x13 00000000400027b0                                       
x14 0000000000000000 x15 00000000948d25b6                                       
x16 000000003f0633a8 x17 0000000040000dc0                                       
x18 0000000040215000 x19 0000000000000000                                       
x20 0000000040002770 x21 0000000040308810                                       
x22 00000000400027b0 x23 000000000000000a                                       
x24 000000003f063254 x25 0000000000000002                                       
x26 000000000000000a x27 0000000000000000                                       
x28 000000003f04e8c0 x29 00000000400026f0                                       
x30 0000000040201c40 elr 0000000000000000                                       
sp_el0 00000000400026f0                                                         
Status of TA 5b9e0e40-2636-11e1-ad9e0002a5d5c51b (0x3f04eae0) (active)          
- load addr : 0x40200000    ctx-idr: 2                                          
- code area : 0x3f600000 2097152                                                
- stack: 0x3f800000 stack:10240                                                 
ERR [1783] TEEC:TEEC_InvokeCommand:412: Function returns with [-53212]          
ERR [1783] TEEC:TEEC_InvokeCommand:412: Function returns with [-53212]          
  XTEST_TEE_1010.3 OK                                                           
o XTEST_TEE_1010.4 Invalid memory access 4                                      


user TA prefetch-abort at address 0x80002718 (translation fault)                

 esr 0x82000005  ttbr0 0x200003f0654a0   ttbr1 0x00000000   cidr 0x0            

 cpu #1 cpsr 0x80000100 

x0  0000000080002718 x1  0000000040201c20                                       
x2  0000000040002718 x3  0000000040201ce4                                       
x4  000000000000000a x5  0000000000000010                                       
x6  0000000040220010 x7  0000000000000001                                       
x8  0000000000000000 x9  0000000000000000                                       
x10 0000000000000001 x11 0000000040218ebc                                       
x12 000000003f033000 x13 00000000400027b0                                       
x14 0000000000000000 x15 00000000948d25b6                                       
x16 000000003f0633a8 x17 0000000040000dc0                                       
x18 0000000040215000 x19 0000000000000001                                       
x20 0000000040002770 x21 0000000040308810                                       
x22 00000000400027b0 x23 000000000000000a                                       
x24 000000003f063254 x25 0000000000000002                                       
x26 000000000000000a x27 0000000000000000                                       
x28 000000003f04e8c0 x29 00000000400026f0                                       
x30 0000000040201c60 elr 0000000080002718                                       
sp_el0 00000000400026f0                                                         
Status of TA 5b9e0e40-2636-11e1-ad9e0002a5d5c51b (0x3f04eae0) (active)          
- load addr : 0x40200000    ctx-idr: 2                                          
- code area : 0x3f600000 2097152                                                
- stack: 0x3f800000 stack:10240                                                 
ERR [1783] TEEC:TEEC_InvokeCommand:412: Function returns with [-53212]          
ERR [1783] TEEC:TEEC_InvokeCommand:412: Function returns with [-53212]          
  XTEST_TEE_1010.4 OK                                                           
o XTEST_TEE_1010.5 Invalid memory access 5                                      


user TA undef-abort at address 0x4021fbf0                                       

 esr 0x02000000  ttbr0 0x200003f0654a0   ttbr1 0x00000000   cidr 0x0            

 cpu #1 cpsr 0x60000100 

x0  000000004021fbf0 x1  0000000040201c20                                       
x2  0000000040002718 x3  0000000040201ce4                                       
x4  000000000000000a x5  0000000000000010                                       
x6  0000000040220010 x7  0000000000000001                                       
x8  0000000000000000 x9  0000000000000000                                       
x10 0000000000000001 x11 0000000040218ebc                                       
x12 000000003f033000 x13 00000000400027b0                                       
x14 0000000000000000 x15 00000000948d25b6                                       
x16 000000003f0633a8 x17 0000000040000dc0                                       
x18 0000000040215000 x19 0000000000000001                                       
x20 0000000040002770 x21 0000000040308810                                       
x22 00000000400027b0 x23 000000000000000a                                       
x24 000000003f063254 x25 0000000000000002                                       
x26 000000000000000a x27 0000000000000000                                       
x28 000000003f04e8c0 x29 00000000400026f0                                       
x30 0000000040201c60 elr 000000004021fbf0                                       
sp_el0 00000000400026f0                                                         
Status of TA 5b9e0e40-2636-11e1-ad9e0002a5d5c51b (0x3f04eae0) (active)          
- load addr : 0x40200000    ctx-idr: 2                                          
- code area : 0x3f600000 2097152                                                
- stack: 0x3f800000 stack:10240                                                 
ERR [1783] TEEC:TEEC_InvokeCommand:412: Function returns with [-53212]          
ERR [1783] TEEC:TEEC_InvokeCommand:412: Function returns with [-53212]          
  XTEST_TEE_1010.5 OK                                                           
  XTEST_TEE_1010 OK                             

XTEST1011:Test RPC features with User Crypt TA

o XTEST_TEE_1011.1 AES encrypt                                                  
  XTEST_TEE_1011.1 OK                                                           
o XTEST_TEE_1011.2 AES decrypt                                                  
  XTEST_TEE_1011.2 OK                                                           
o XTEST_TEE_1011.3 SHA-256 test, 3 bytes input                                  
  XTEST_TEE_1011.3 OK                                                           
o XTEST_TEE_1011.4 AES-256 ECB encrypt test, 32 bytes input, with fixed key     
  XTEST_TEE_1011.4 OK                                                           
o XTEST_TEE_1011.5 AES-256 ECB decrypt test, 32 bytes input, with fixed key     
  XTEST_TEE_1011.5 OK                                                           
  XTEST_TEE_1011 OK

XTEST1012:Test Single Instance Multi Session features with SIMS TA

o XTEST_TEE_1012.1 Single Instance Multi Session                                
  XTEST_TEE_1012.1 OK                                                           
  XTEST_TEE_1012 OK

XTEST1013:Test concurency with concurrent TA
注意:在顺序运行单个XTEST命令时此命令出现错误,重新启动后,直接运行xtest 1013错误消失。

* XTEST_TEE_1013 Test concurency with concurrent TA                             
    Number of parallel threads: 3                                               
    Mean concurrency: 1.3                                                       
  XTEST_TEE_1013 OK

你可能感兴趣的:(OP-TEE各XTEST测试结果(XTEST1000.C))