Errors in using Job Ring Interface for SEC on LS1046ARDB

cancel
Showing results for 
Search instead for 
Did you mean: 

Errors in using Job Ring Interface for SEC on LS1046ARDB

Jump to solution
160 Views
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

Labels (1)
0 Kudos
1 Solution
86 Views
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?

View solution in original post

0 Kudos
2 Replies
87 Views
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?

View solution in original post

0 Kudos
86 Views
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 Kudos