All of lore.kernel.org
 help / color / mirror / Atom feed
From: Horia Geanta <horia.geanta@nxp.com>
To: Vakul Garg <vakul.garg@nxp.com>,
	"linux-crypto@vger.kernel.org" <linux-crypto@vger.kernel.org>
Cc: Aymen Sghaier <aymen.sghaier@nxp.com>,
	"herbert@gondor.apana.org.au" <herbert@gondor.apana.org.au>
Subject: Re: [PATCH v2] crypto: caam/qi2 - Add printing dpseci fq stats using debugfs
Date: Tue, 23 Jul 2019 06:14:43 +0000	[thread overview]
Message-ID: <VI1PR0402MB34854E7762F7A602F322003B98C70@VI1PR0402MB3485.eurprd04.prod.outlook.com> (raw)
In-Reply-To: DB7PR04MB46203BDE7B36E66FCD5D03D08BC70@DB7PR04MB4620.eurprd04.prod.outlook.com

On 7/23/2019 4:20 AM, Vakul Garg wrote:
>>> @@ -64,6 +65,7 @@ struct dpaa2_caam_priv {
>>>  	struct iommu_domain *domain;
>>>
>>>  	struct dpaa2_caam_priv_per_cpu __percpu *ppriv;
>>> +	struct dentry *dfs_root;
>> dfs_root is used only in dpseci-debugfs.c, let's have it there as global.
>>
> 
> I submitted this change in v3. There is still a minor issue with this patch version. 
> Before submitting the next v4, I have a question.
> 
> Could there be a situation that there are multiple  dpseci objects assigned to kernel?
In theory, yes.
fsl-mc, the bus dpseci devices sit on, allows for multiple instances.

However, caam/qi2 (driver for dpseci devices) doesn't have support
for this.
For e.g., all dpseci instances would try to register the algorithms using
the same name & driver name - something that will trigger an error
in crypto API.
This could be easily fixed, however the real issue is that
there is no load balancing support - neither at crypto API level
nor at driver level.

> In that case, we need to maintain dfs_root for each separately.
>  
Ok, let's keep dfs_root per device.
For now this has no practical value, but at least makes the work easier
in case load balancing support is added at some point.

Horia

      reply	other threads:[~2019-07-23  6:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-19 11:23 [PATCH v2] crypto: caam/qi2 - Add printing dpseci fq stats using debugfs Vakul Garg
2019-07-22 14:25 ` Horia Geanta
2019-07-22 14:29   ` Vakul Garg
2019-07-22 15:20     ` Horia Geanta
2019-07-23  1:20   ` Vakul Garg
2019-07-23  6:14     ` Horia Geanta [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=VI1PR0402MB34854E7762F7A602F322003B98C70@VI1PR0402MB3485.eurprd04.prod.outlook.com \
    --to=horia.geanta@nxp.com \
    --cc=aymen.sghaier@nxp.com \
    --cc=herbert@gondor.apana.org.au \
    --cc=linux-crypto@vger.kernel.org \
    --cc=vakul.garg@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.