[PATCH] crypto: caam/jr - optimize job ring enqueue and dequeue operations

2019-03-04 Thread Vakul Garg
Instead of reading job ring's occupancy registers for every req/rsp enqueued/dequeued respectively, we read these registers once and store them in memory. After completing a job enqueue/dequeue, we decrement these values. When these values become zero, we refresh the snapshot of job ring's occupanc

Re: [RFC 4/4] crypto: caam - use job ring for RNG instantiation instead of DECO

2019-03-04 Thread Horia Geanta
On 2/28/2019 1:34 PM, Chris Spencer wrote: > What I have found is that if I set virt_en = 1 then the RNG is able to > initialise correctly via the DECO. The register values I am seeing > are: > > comp_params = 01914201 > scfgr = 0001 > > So: > VIRT_EN_INCL = 1 & VIRT_EN_POR = 0 & SCFGR_VIRT_E