From: Rob Herring <robh@kernel.org>
To: Alex Ousherovitch <aousherovitch@rambus.com>
Cc: Albert Ou <aou@eecs.berkeley.edu>,
Conor Dooley <conor+dt@kernel.org>,
"David S. Miller" <davem@davemloft.net>,
Herbert Xu <herbert@gondor.apana.org.au>,
Jonathan Corbet <corbet@lwn.net>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Palmer Dabbelt <palmer@dabbelt.com>,
Paul Walmsley <pjw@kernel.org>,
Saravanakrishnan Krishnamoorthy <skrishnamoorthy@rambus.com>,
Shuah Khan <shuah@kernel.org>, Alexandre Ghiti <alex@ghiti.fr>,
devicetree@vger.kernel.org,
Joel Wittenauer <Joel.Wittenauer@cryptography.com>,
linux-api@vger.kernel.org, linux-crypto@vger.kernel.org,
linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-kselftest@vger.kernel.org, linux-riscv@lists.infradead.org,
Shuah Khan <skhan@linuxfoundation.org>,
Thi Nguyen <thin@rambus.com>
Subject: Re: [PATCH v5 01/19] dt-bindings: crypto: add Rambus CryptoManager Hub
Date: Mon, 28 Sep 2026 13:18:48 -0500 [thread overview]
Message-ID: <20260928181848.GA150882-robh@kernel.org> (raw)
In-Reply-To: <20260917225929.2494111-2-aousherovitch@rambus.com>
On Thu, Sep 17, 2026 at 03:59:10PM -0700, Alex Ousherovitch wrote:
> Add device tree binding schema for the Rambus CryptoManager Hub (CMH)
> hardware crypto accelerator. The binding describes the parent
> SoC-level node with its SIC register region and one queue@N child
> node per mailbox the host owns, each carrying a reg (mailbox instance
> index), an optional interrupt, VCQ ring geometry (rambus,num-slots /
> rambus,slot-stride-bytes) and a rambus,cores affinity list. Which
> crypto cores are present is discovered from the SIC CORE_ENABLE
> register at probe, not described in the device tree.
>
> Register the 'rambus' vendor prefix for Rambus Inc.
>
> Signed-off-by: Alex Ousherovitch <aousherovitch@rambus.com>
> Co-developed-by: Saravanakrishnan Krishnamoorthy <skrishnamoorthy@rambus.com>
> Signed-off-by: Saravanakrishnan Krishnamoorthy <skrishnamoorthy@rambus.com>
> ---
> .../bindings/crypto/rambus,cmh-v1030.yaml | 151 ++++++++++++++++++
> .../devicetree/bindings/vendor-prefixes.yaml | 2 +
> 2 files changed, 153 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/crypto/rambus,cmh-v1030.yaml
>
> diff --git a/Documentation/devicetree/bindings/crypto/rambus,cmh-v1030.yaml b/Documentation/devicetree/bindings/crypto/rambus,cmh-v1030.yaml
> new file mode 100644
> index 000000000000..a0df35bdc371
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/crypto/rambus,cmh-v1030.yaml
> @@ -0,0 +1,151 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/crypto/rambus,cmh-v1030.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Rambus CryptoManager Hub (CMH) Hardware Crypto Accelerator
> +
> +maintainers:
> + - Alex Ousherovitch <aousherovitch@rambus.com>
> + - Saravanakrishnan Krishnamoorthy <skrishnamoorthy@rambus.com>
> + - Joel Wittenauer <Joel.Wittenauer@cryptography.com>
> +
> +description: |
> + The Rambus CryptoManager Hub (CMH) is a hardware cryptographic accelerator
> + accessed via a mailbox-based VCQ (Virtual Command Queue) interface. The
> + host writes VCQ command sequences into per-mailbox DMA queue buffers and
> + rings a doorbell; the CMH eSW processes them and signals completion via
> + interrupt.
> +
> + The management host statically partitions the hardware mailboxes across
> + the SoC's host interfaces at integration time; the set of mailboxes a
> + given host owns is therefore fixed and not runtime-discoverable (a
> + mailbox locked to a host reads as unavailable in the SIC availability
> + register). Each owned mailbox is described by a child node. Which
> + crypto cores are present is a fixed silicon-build property indicated by
> + the SIC CORE_ENABLE register, so cores are not described in the device
> + tree. Clock and reset are owned by the management host; a node
> + describing a non-management host has no clock or reset provider of its
> + own, so clocks and reset-gpios are optional.
> +
> + CMH gates access to a locked mailbox by a hardware HOST ID presented on
> + the bus with every access, permitting only the owning host's ID. An
> + integration must present a single, stable HOST ID for all accesses to a
> + given mailbox, independent of the issuing CPU (relevant on SMP hosts
> + whose interconnect encodes the issuing CPU in the HOST ID).
> +
> +properties:
> + compatible:
> + items:
> + - not: {}
> + description: SoC-specific compatible, e.g. vendor,soc-cmh
> + - const: rambus,cmh-v1030
> +
> + reg:
> + maxItems: 1
> + description:
> + SIC (System Interface Controller) MMIO region. The registers of
> + mailbox instance N are at offset N * 0x1000 within this region.
> +
> + clocks:
> + minItems: 1
> + maxItems: 3
> + description:
> + The "core" functional clock, and optionally the half-rate "core-div2"
> + clock (present only on configurations with side-channel-protected
> + cores) and/or the "rt" real-time tick clock. See clock-names for the
> + valid combinations.
> +
> + clock-names:
> + oneOf:
> + - items:
> + - const: core
> + - items:
> + - const: core
> + - const: core-div2
> + - items:
> + - const: core
> + - const: rt
> + - items:
> + - const: core
> + - const: core-div2
> + - const: rt
Can be simplified to:
items:
- const: core
- enum: [ core-div2, rt ]
- const: rt
> +
> + reset-gpios:
> + maxItems: 1
> + description:
> + Host-controlled reset for the CryptoManager Hub. The hub has two
> + external, active-low reset inputs -- a power-on reset and a hard
> + reset; where a board routes one of them to a host GPIO, that line is
> + described here.
> +
> + "#address-cells":
> + const: 1
> +
> + "#size-cells":
> + const: 0
> +
> +patternProperties:
> + "^queue@[0-9a-f]+$":
> + type: object
> + description:
> + One node per hardware mailbox (VCQ command queue) this host owns.
> + The set of owned mailboxes is fixed by the management host at
> + integration time and enumerated here.
> + properties:
> + reg:
> + maxItems: 1
> + description:
> + 0-based mailbox instance index. The instance's registers are
> + at reg * 0x1000 within the SIC region.
Is there a maximum number of instances? If so, 'maximum: N'.
Rob
WARNING: multiple messages have this Message-ID (diff)
From: Rob Herring <robh@kernel.org>
To: Alex Ousherovitch <aousherovitch@rambus.com>
Cc: Albert Ou <aou@eecs.berkeley.edu>,
Conor Dooley <conor+dt@kernel.org>,
"David S. Miller" <davem@davemloft.net>,
Herbert Xu <herbert@gondor.apana.org.au>,
Jonathan Corbet <corbet@lwn.net>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Palmer Dabbelt <palmer@dabbelt.com>,
Paul Walmsley <pjw@kernel.org>,
Saravanakrishnan Krishnamoorthy <skrishnamoorthy@rambus.com>,
Shuah Khan <shuah@kernel.org>, Alexandre Ghiti <alex@ghiti.fr>,
devicetree@vger.kernel.org,
Joel Wittenauer <Joel.Wittenauer@cryptography.com>,
linux-api@vger.kernel.org, linux-crypto@vger.kernel.org,
linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-kselftest@vger.kernel.org, linux-riscv@lists.infradead.org,
Shuah Khan <skhan@linuxfoundation.org>,
Thi Nguyen <thin@rambus.com>
Subject: Re: [PATCH v5 01/19] dt-bindings: crypto: add Rambus CryptoManager Hub
Date: Mon, 28 Sep 2026 13:18:48 -0500 [thread overview]
Message-ID: <20260928181848.GA150882-robh@kernel.org> (raw)
In-Reply-To: <20260917225929.2494111-2-aousherovitch@rambus.com>
On Thu, Sep 17, 2026 at 03:59:10PM -0700, Alex Ousherovitch wrote:
> Add device tree binding schema for the Rambus CryptoManager Hub (CMH)
> hardware crypto accelerator. The binding describes the parent
> SoC-level node with its SIC register region and one queue@N child
> node per mailbox the host owns, each carrying a reg (mailbox instance
> index), an optional interrupt, VCQ ring geometry (rambus,num-slots /
> rambus,slot-stride-bytes) and a rambus,cores affinity list. Which
> crypto cores are present is discovered from the SIC CORE_ENABLE
> register at probe, not described in the device tree.
>
> Register the 'rambus' vendor prefix for Rambus Inc.
>
> Signed-off-by: Alex Ousherovitch <aousherovitch@rambus.com>
> Co-developed-by: Saravanakrishnan Krishnamoorthy <skrishnamoorthy@rambus.com>
> Signed-off-by: Saravanakrishnan Krishnamoorthy <skrishnamoorthy@rambus.com>
> ---
> .../bindings/crypto/rambus,cmh-v1030.yaml | 151 ++++++++++++++++++
> .../devicetree/bindings/vendor-prefixes.yaml | 2 +
> 2 files changed, 153 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/crypto/rambus,cmh-v1030.yaml
>
> diff --git a/Documentation/devicetree/bindings/crypto/rambus,cmh-v1030.yaml b/Documentation/devicetree/bindings/crypto/rambus,cmh-v1030.yaml
> new file mode 100644
> index 000000000000..a0df35bdc371
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/crypto/rambus,cmh-v1030.yaml
> @@ -0,0 +1,151 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/crypto/rambus,cmh-v1030.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Rambus CryptoManager Hub (CMH) Hardware Crypto Accelerator
> +
> +maintainers:
> + - Alex Ousherovitch <aousherovitch@rambus.com>
> + - Saravanakrishnan Krishnamoorthy <skrishnamoorthy@rambus.com>
> + - Joel Wittenauer <Joel.Wittenauer@cryptography.com>
> +
> +description: |
> + The Rambus CryptoManager Hub (CMH) is a hardware cryptographic accelerator
> + accessed via a mailbox-based VCQ (Virtual Command Queue) interface. The
> + host writes VCQ command sequences into per-mailbox DMA queue buffers and
> + rings a doorbell; the CMH eSW processes them and signals completion via
> + interrupt.
> +
> + The management host statically partitions the hardware mailboxes across
> + the SoC's host interfaces at integration time; the set of mailboxes a
> + given host owns is therefore fixed and not runtime-discoverable (a
> + mailbox locked to a host reads as unavailable in the SIC availability
> + register). Each owned mailbox is described by a child node. Which
> + crypto cores are present is a fixed silicon-build property indicated by
> + the SIC CORE_ENABLE register, so cores are not described in the device
> + tree. Clock and reset are owned by the management host; a node
> + describing a non-management host has no clock or reset provider of its
> + own, so clocks and reset-gpios are optional.
> +
> + CMH gates access to a locked mailbox by a hardware HOST ID presented on
> + the bus with every access, permitting only the owning host's ID. An
> + integration must present a single, stable HOST ID for all accesses to a
> + given mailbox, independent of the issuing CPU (relevant on SMP hosts
> + whose interconnect encodes the issuing CPU in the HOST ID).
> +
> +properties:
> + compatible:
> + items:
> + - not: {}
> + description: SoC-specific compatible, e.g. vendor,soc-cmh
> + - const: rambus,cmh-v1030
> +
> + reg:
> + maxItems: 1
> + description:
> + SIC (System Interface Controller) MMIO region. The registers of
> + mailbox instance N are at offset N * 0x1000 within this region.
> +
> + clocks:
> + minItems: 1
> + maxItems: 3
> + description:
> + The "core" functional clock, and optionally the half-rate "core-div2"
> + clock (present only on configurations with side-channel-protected
> + cores) and/or the "rt" real-time tick clock. See clock-names for the
> + valid combinations.
> +
> + clock-names:
> + oneOf:
> + - items:
> + - const: core
> + - items:
> + - const: core
> + - const: core-div2
> + - items:
> + - const: core
> + - const: rt
> + - items:
> + - const: core
> + - const: core-div2
> + - const: rt
Can be simplified to:
items:
- const: core
- enum: [ core-div2, rt ]
- const: rt
> +
> + reset-gpios:
> + maxItems: 1
> + description:
> + Host-controlled reset for the CryptoManager Hub. The hub has two
> + external, active-low reset inputs -- a power-on reset and a hard
> + reset; where a board routes one of them to a host GPIO, that line is
> + described here.
> +
> + "#address-cells":
> + const: 1
> +
> + "#size-cells":
> + const: 0
> +
> +patternProperties:
> + "^queue@[0-9a-f]+$":
> + type: object
> + description:
> + One node per hardware mailbox (VCQ command queue) this host owns.
> + The set of owned mailboxes is fixed by the management host at
> + integration time and enumerated here.
> + properties:
> + reg:
> + maxItems: 1
> + description:
> + 0-based mailbox instance index. The instance's registers are
> + at reg * 0x1000 within the SIC region.
Is there a maximum number of instances? If so, 'maximum: N'.
Rob
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
next prev parent reply other threads:[~2026-09-28 18:18 UTC|newest]
Thread overview: 75+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-17 22:59 [PATCH v5 00/19] crypto: cmh - add Rambus CryptoManager Hub driver Alex Ousherovitch
2026-09-17 22:59 ` Alex Ousherovitch
2026-09-17 22:59 ` [PATCH v5 01/19] dt-bindings: crypto: add Rambus CryptoManager Hub Alex Ousherovitch
2026-09-17 22:59 ` Alex Ousherovitch
2026-09-17 23:08 ` sashiko-bot
2026-09-28 18:18 ` Rob Herring [this message]
2026-09-28 18:18 ` Rob Herring
2026-10-03 0:01 ` Ousherovitch, Alex
2026-10-03 0:01 ` Ousherovitch, Alex
2026-09-17 22:59 ` [PATCH v5 02/19] crypto: cmh - add core platform driver Alex Ousherovitch
2026-09-17 22:59 ` Alex Ousherovitch
2026-09-17 23:17 ` sashiko-bot
2026-09-17 22:59 ` [PATCH v5 03/19] crypto: cmh - add key provisioning and management Alex Ousherovitch
2026-09-17 22:59 ` Alex Ousherovitch
2026-09-17 23:15 ` sashiko-bot
2026-09-17 22:59 ` [PATCH v5 04/19] crypto: cmh - add SHA-2/SHA-3/SHAKE ahash Alex Ousherovitch
2026-09-17 22:59 ` Alex Ousherovitch
2026-09-17 23:11 ` sashiko-bot
2026-09-23 5:47 ` Herbert Xu
2026-09-23 5:47 ` Herbert Xu
2026-09-23 20:50 ` Ousherovitch, Alex
2026-09-23 20:50 ` Ousherovitch, Alex
2026-09-28 5:17 ` Herbert Xu
2026-09-28 5:17 ` Herbert Xu
2026-10-05 17:04 ` Ousherovitch, Alex
2026-10-05 17:04 ` Ousherovitch, Alex
2026-10-05 22:31 ` Ousherovitch, Alex
2026-10-05 22:31 ` Ousherovitch, Alex
2026-10-08 8:20 ` Herbert Xu
2026-10-08 8:20 ` Herbert Xu
2026-10-08 18:19 ` Ousherovitch, Alex
2026-10-08 18:19 ` Ousherovitch, Alex
2026-09-17 22:59 ` [PATCH v5 05/19] crypto: cmh - add HMAC ahash Alex Ousherovitch
2026-09-17 22:59 ` Alex Ousherovitch
2026-09-17 23:14 ` sashiko-bot
2026-09-17 22:59 ` [PATCH v5 06/19] crypto: cmh - add CSHAKE/KMAC ahash Alex Ousherovitch
2026-09-17 22:59 ` Alex Ousherovitch
2026-09-17 23:16 ` sashiko-bot
2026-09-17 22:59 ` [PATCH v5 07/19] crypto: cmh - add SM3 ahash Alex Ousherovitch
2026-09-17 22:59 ` Alex Ousherovitch
2026-09-17 23:12 ` sashiko-bot
2026-09-17 22:59 ` [PATCH v5 08/19] crypto: cmh - add AES skcipher/aead/cmac Alex Ousherovitch
2026-09-17 22:59 ` Alex Ousherovitch
2026-09-17 23:11 ` sashiko-bot
2026-09-17 22:59 ` [PATCH v5 09/19] crypto: cmh - add SM4 skcipher/aead/cmac/xcbc Alex Ousherovitch
2026-09-17 22:59 ` Alex Ousherovitch
2026-09-17 23:10 ` sashiko-bot
2026-09-17 22:59 ` [PATCH v5 10/19] crypto: cmh - add ChaCha20-Poly1305 Alex Ousherovitch
2026-09-17 22:59 ` Alex Ousherovitch
2026-09-17 23:11 ` sashiko-bot
2026-09-17 22:59 ` [PATCH v5 11/19] crypto: cmh - add DRBG hwrng Alex Ousherovitch
2026-09-17 22:59 ` Alex Ousherovitch
2026-09-17 23:14 ` sashiko-bot
2026-09-17 22:59 ` [PATCH v5 12/19] crypto: cmh - add RSA akcipher Alex Ousherovitch
2026-09-17 22:59 ` Alex Ousherovitch
2026-09-17 23:10 ` sashiko-bot
2026-09-17 22:59 ` [PATCH v5 13/19] crypto: cmh - add ECDSA/SM2 sig Alex Ousherovitch
2026-09-17 22:59 ` Alex Ousherovitch
2026-09-17 22:59 ` [PATCH v5 14/19] crypto: cmh - add ECDH/X25519 kpp Alex Ousherovitch
2026-09-17 22:59 ` Alex Ousherovitch
2026-09-17 22:59 ` [PATCH v5 15/19] crypto: cmh - add ML-KEM/ML-DSA (QSE) Alex Ousherovitch
2026-09-17 22:59 ` Alex Ousherovitch
2026-09-17 22:59 ` [PATCH v5 16/19] crypto: cmh - add SLH-DSA/LMS/XMSS (HCQ) Alex Ousherovitch
2026-09-17 22:59 ` Alex Ousherovitch
2026-09-17 22:59 ` [PATCH v5 17/19] Documentation: ioctl: add CMH ioctl documentation and register 'J' Alex Ousherovitch
2026-09-17 22:59 ` Alex Ousherovitch
2026-09-17 23:17 ` sashiko-bot
2026-09-17 22:59 ` [PATCH v5 18/19] selftests: crypto: cmh - add kselftest for management ioctl Alex Ousherovitch
2026-09-17 22:59 ` Alex Ousherovitch
2026-09-17 22:59 ` [PATCH v5 19/19] MAINTAINERS: add Rambus CryptoManager Hub (CMH) Alex Ousherovitch
2026-09-17 22:59 ` Alex Ousherovitch
2026-09-23 5:48 ` [PATCH v5 00/19] crypto: cmh - add Rambus CryptoManager Hub driver Herbert Xu
2026-09-23 5:48 ` Herbert Xu
2026-09-23 17:42 ` Ousherovitch, Alex
2026-09-23 17:42 ` Ousherovitch, Alex
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=20260928181848.GA150882-robh@kernel.org \
--to=robh@kernel.org \
--cc=Joel.Wittenauer@cryptography.com \
--cc=alex@ghiti.fr \
--cc=aou@eecs.berkeley.edu \
--cc=aousherovitch@rambus.com \
--cc=conor+dt@kernel.org \
--cc=corbet@lwn.net \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=herbert@gondor.apana.org.au \
--cc=krzk+dt@kernel.org \
--cc=linux-api@vger.kernel.org \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=palmer@dabbelt.com \
--cc=pjw@kernel.org \
--cc=shuah@kernel.org \
--cc=skhan@linuxfoundation.org \
--cc=skrishnamoorthy@rambus.com \
--cc=thin@rambus.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.