can I split 1 job to both of caam job rings.

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

can I split 1 job to both of caam job rings.

905件の閲覧回数
davidmichaeli
Contributor I

hello, Im working with imx6 caam which has 2 job rings. looking at /proc/interrupts I note that only one job ring is activated at each time. is there a way to use both of the job rings at once for a given cipher? my goal is encrypt more bytes per second , thanks

ラベル(1)
タグ(3)
0 件の賞賛
2 返答(返信)

651件の閲覧回数
raulcardenas-b4
Contributor III

Hi David,

Your are correct, CAAM does have 2 jobrings. They might be actually running on parallel, depends on the operations, CAAM state, keys being use, etc. However, the kernel does not know anything about the CAAM state, what you are looking at its the CAAM interface to the kernel. CAAM only has one master bus, so it is highly possible that you can see only one ring at a time because it is the one being outputed at that moment. The way to use both rings is by using to different Job descriptors.

Unfourtountalty, your idea to use both rings for a single crypographic operation is not allowed because the job rings do not cooperate. A solution for your idea could be by configuring CAAM to only process one job at time, and setting up the cipher in that job. This would improve the performance, because CAAM wont be doing any context switching and the way to access memory would be sequential.

I hope this helps,

Raul

0 件の賞賛

651件の閲覧回数
Yuri
NXP Employee
NXP Employee

  I think, the single Descriptor Controller (DECO) in i.MX6 CAAM does not allow
to implement Your idea.


Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛