Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4e5fa2b6 authored by Kranthikumar Kurapati's avatar Kranthikumar Kurapati Committed by Gerrit - the friendly Code Review server
Browse files

crypto: msm: qce50 driver multiple request enhancement



qce50 driver is enhanced to support multiple outstanding requests. The
ce_hw_support reports the maximum number of outstanding requests driver
can support. Sps interrupts are cut down. Under heavy traffic condition,
SPS_IOVEC_FLAG_INT is only set in producer pipe descriptor
for every MAX_BUNCH_MODE_REQ + 1 request to save interrupts.

This enhancement is only for crypto v5.3 or above. For platform with
older devices, the existing process is still maintained in the driver
to provide compatibility with old devices. The maximum number of
outstanding requests is reported as 1 then.

Previous get around code to retrieve the MAC_FAILED status bit from
crypto hardware status registser for CCM, is not going to work after
multi request support enhancement. Re-work the work around.
A dummy request is added at end of CCM decrypt. The MAC_FAILED status
can be retrieved from the result dump of dummy request.

qcrypto driver is changed to submit as many requests as possible, up
to maximum number of outstanding requests reported from low level crypto
driver.

Low level crypto driver internal statistics are added for debugging.

Change-Id: Ib66032a5a20db95be1b5beac0b0cb0d048416b43
Acked-by: default avatarChe-Min Hsieh <cheminh@qti.qualcomm.com>
Signed-off-by: default avatarKranthikumar Kurapati <kkurap@codeaurora.org>
parent 4835df40
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment