devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: Pavitrakumar Managutte <pavitrakumarm@vayavyalabs.com>
Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org,
	devicetree@vger.kernel.org, herbert@gondor.apana.org.au,
	robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
	Ruud.Derwig@synopsys.com, manjunath.hadli@vayavyalabs.com,
	adityak@vayavyalabs.com,
	Bhoomika Kadabi <bhoomikak@vayavyalabs.com>
Subject: Re: [PATCH v3 1/6] dt-bindings: crypto: Document support for SPAcc
Date: Wed, 4 Jun 2025 16:07:43 +0200	[thread overview]
Message-ID: <cd6e92af-1304-4078-9ed7-de1cb53c66da@kernel.org> (raw)
In-Reply-To: <CALxtO0mH=GwhQxQBsmMQYd+qgAue9WxXN1XWo9BncVJvJk6d8A@mail.gmail.com>

On 04/06/2025 14:20, Pavitrakumar Managutte wrote:
>>
>>>>> +
>>>>> +  snps,vspacc-id:
>>>>> +    $ref: /schemas/types.yaml#/definitions/uint32
>>>>> +    description: |
>>>>> +      Virtual SPAcc instance identifier.
>>>>> +      The SPAcc hardware supports multiple virtual instances (determined by
>>>>> +      ELP_SPACC_CONFIG_VSPACC_CNT parameter), and this ID is used to identify
>>>>> +      which virtual instance this node represents.
>>>>
>>>> No, IDs are not accepted.
>>>
>>> PK: This represents the specific virtual SPAcc that is being used in
>>> the current configuration. It is used to index into the register banks
>>> and the context memories of the virtual SPAcc that is being used. The
>>> SPAcc IP can be configured as dedicated virtual SPAccs in
>>> heterogeneous environments.
>>
>> OK. Why registers are not narrowed to only this instance? It feels like
>> you provide here full register space for multiple devices and then
>> select the bank with above ID.
> 
> PK: No, we cant narrow the registers to only this instance since its
> is just a single SPAcc with multiple virtual SPAcc instances. The same
> set of registers(aka register banks) and context memories are
> repeated, but sit at different offset addresses (i*4000 +
> register-offsets). The crypto hardware engine inside is shared by all
> the virtual SPAccs. This is very much for a heterogeneous computing
> scenario.

Then maybe you have one crypto engine? You ask us to guess all of this,
also because you do not upstream the DTS for real product. Any
mentioning of "virtual" already raises concerns...

Best regards,
Krzysztof

  reply	other threads:[~2025-06-04 14:07 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-02  5:32 [PATCH v3 0/6] Add SPAcc Crypto Driver Pavitrakumar Managutte
2025-06-02  5:32 ` [PATCH v3 1/6] dt-bindings: crypto: Document support for SPAcc Pavitrakumar Managutte
2025-06-02  5:58   ` Krzysztof Kozlowski
2025-06-03 11:45     ` Pavitrakumar Managutte
2025-06-03 12:04       ` Krzysztof Kozlowski
2025-06-04 12:20         ` Pavitrakumar Managutte
2025-06-04 14:07           ` Krzysztof Kozlowski [this message]
2025-06-06 11:02             ` Pavitrakumar Managutte
2025-06-06 11:25               ` Krzysztof Kozlowski
2025-06-06 12:58                 ` Pavitrakumar Managutte
2025-06-06 13:04                   ` Krzysztof Kozlowski
2025-06-24  7:49                     ` Pavitrakumar Managutte
2025-06-02  6:22   ` Krzysztof Kozlowski
2025-06-02  7:16     ` Ruud Derwig
2025-06-02  5:32 ` [PATCH v3 2/6] Add SPAcc Skcipher support Pavitrakumar Managutte
2025-06-02  6:05   ` Krzysztof Kozlowski
2025-06-03 12:02     ` Pavitrakumar Managutte
2025-06-03 12:07       ` Krzysztof Kozlowski
2025-06-04 10:50         ` Pavitrakumar Managutte
2025-06-02  5:32 ` [PATCH v3 3/6] Add SPAcc AUTODETECT Support Pavitrakumar Managutte
2025-06-02  5:32 ` [PATCH v3 4/6] Add SPAcc ahash support Pavitrakumar Managutte
2025-06-02  5:32 ` [PATCH v3 5/6] Add SPAcc AEAD support Pavitrakumar Managutte
2025-06-02  5:32 ` [PATCH v3 6/6] Add SPAcc Kconfig and Makefile Pavitrakumar Managutte

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=cd6e92af-1304-4078-9ed7-de1cb53c66da@kernel.org \
    --to=krzk@kernel.org \
    --cc=Ruud.Derwig@synopsys.com \
    --cc=adityak@vayavyalabs.com \
    --cc=bhoomikak@vayavyalabs.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=herbert@gondor.apana.org.au \
    --cc=krzk+dt@kernel.org \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=manjunath.hadli@vayavyalabs.com \
    --cc=pavitrakumarm@vayavyalabs.com \
    --cc=robh@kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).