Re: [PATCH RFC] crypto: caam - never share the gcm and skcipher descriptors serially

From: Vincent Jardin

Date: Thu Nov 12 2026 - 19:42:10 EST


Hi Sahil,

> So this needs to be tested on other platforms before it can go in.
> If you have numbers on other SoCs with fewer DECOs, that would be
> helpful. We can also run it on i.MX boards on our side, if you don't
> have access to other boards.

No, I do not have other CPUs than the LX2160 : your feedbacks with i.MX
is welcomed.

> If the regression shows up, one option is to pick the share mode at
> probe time from CHA_NUM_MS[DECO_NUM]: NEVER only when there is more than
> one DECO, SERIAL otherwise.
...
> Do you have similar numbers for authenc and xts, since they use the
> same kind of descriptors?

Since SERIAL vs NEVER impacts the performance depending on the CPU and
on the selected crypto algorithm as you suggest, the code should be more
dynamic, instead of a single option that slows down all the other cases.

How could we keep "selecting" the best one for each case ?

Best regards,
Vincent