Errors in using Job Ring Interface for SEC on LS1046ARDB

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Errors in using Job Ring Interface for SEC on LS1046ARDB

跳至解决方案
947 次查看
shivesh_sood
Contributor I

Hi, 
We are trying to customize code from U-Boot for our application. In particular, we are currently looking to add baremetal support for the SEC Accelerator, and for this we are using the Job Ring interface.

However, we are finding the following values in JRSTAR, JRINTR registers, after writing to the Input Ring Jobs Added Register : 

JRSTA : 0x1E010060 , indicating error reading input ring address (according to error table in SEC Ref Manual)

JRINTR : 0x02010000, indicating error writing status to output ring (according to register definition in SEC Ref Manual) 

Our Input & Output Job Ring (JR0) Base Addresses are located in OCRAM. Cache support is not enabled. We have tried both BE & LE writes to the JR with the address of the Job Descriptor, however we obtain the same errors, and cannot generate any other error codes.

Would appreciate it if anyone can help us on what we may be missing here.

Thanks,

shivesh.sood@collins.com

chitra.amzarewale@utas.utc.com

rashmitharamesh.nair@collins.com

标签 (1)
0 项奖励
1 解答
873 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Does the JR work if it is in DDR memory space?

The OCRAM is accessible only in Trust Zone/secure world.

Did you review your TrustZone setting?

在原帖中查看解决方案

0 项奖励
2 回复数
874 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Does the JR work if it is in DDR memory space?

The OCRAM is accessible only in Trust Zone/secure world.

Did you review your TrustZone setting?

0 项奖励
873 次查看
shivesh_sood
Contributor I

Hi Yiping, 

Thanks for pointing us in the right direction. Enabling the TZ bit in JR ICID Register worked for us.

Also, in the U-Boot source, after a job is completed by the SEC, is it necessary to call jr_sw_cleanup? Seems like the code for dequeuing jobs from the ring does not clear the older jobs in the jobring structure automatically.

Thanks.

0 项奖励