mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Enable ICE for UFS on Hamoa IoT EVK
@ 2026-07-22  9:26 Wenjia Zhang
  2026-07-22  9:26 ` [PATCH v2 1/2] dt-bindings: crypto: qcom,inline-crypto-engine: Add x1e80100 support Wenjia Zhang
  2026-07-22  9:26 ` [PATCH v2 2/2] arm64: dts: qcom: hamoa: Add ICE node for UFS inline encryption Wenjia Zhang
  0 siblings, 2 replies; 10+ messages in thread
From: Wenjia Zhang @ 2026-07-22  9:26 UTC (permalink / raw)
  To: Herbert Xu, David S. Miller, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Bjorn Andersson, Konrad Dybcio
  Cc: linux-arm-msm, linux-crypto, devicetree, linux-kernel,
	Wenjia Zhang, kernel

This series enables the Inline Crypto Engine (ICE) hardware for UFS
storage on the Qualcomm X1E80100 (Hamoa IoT EVK) platform.

The ICE hardware provides AES-256-XTS inline encryption/decryption for
UFS storage, offloading cryptographic operations from the CPU. The
hardware version on this platform is ICE v4.0.1 with HWKM v2 support.

Validation:
- Probe successfully
- Standard key work well

Patch 1 adds the new compatible string to the DT binding documentation.
Patch 2 adds the ICE device node to the Hamoa DTSI.

Note: The allOf conditional block enforcement for power-domains and
clock-names is handled by the prerequisite series.

Signed-off-by: Wenjia Zhang <wenjia.zhang@oss.qualcomm.com>
---
Changes in v2:
- Improve commit messages for both patches.
- Link to v1: https://lore.kernel.org/r/20260721-devtool-v1-0-ade633accb41@oss.qualcomm.com

---
Wenjia Zhang (2):
      dt-bindings: crypto: qcom,inline-crypto-engine: Add x1e80100 support
      arm64: dts: qcom: hamoa: Add ICE node for UFS inline encryption

 .../bindings/crypto/qcom,inline-crypto-engine.yaml          |  1 +
 arch/arm64/boot/dts/qcom/hamoa.dtsi                         | 13 +++++++++++++
 2 files changed, 14 insertions(+)
---
base-commit: 49362394dad7df66c274c867a271394c10ca2bb8
change-id: 20260714-devtool-5093900ac51a
prerequisite-change-id: 20260701-b4-shikra_crypto_changse-f2d6d5bf04b5:v4
prerequisite-patch-id: d5bc84db11dfa16371755109d32bafa6325a7706
prerequisite-patch-id: f653bca04deb0f4fe7d51b3064644c8e6b0d9c99
prerequisite-patch-id: 615f80abf57c155bbc190c1a70fe615a783755cf
prerequisite-patch-id: 59d8102674ce98be1a0e9b4d7939ffd8a7289ab1
prerequisite-patch-id: 691ec3b8a386d2c5b991a4311236f7f06adfc5b1
prerequisite-patch-id: 5b949e801e9bf4b5593a1f7cb8f02709eb3e869a

Best regards,
-- 
Wenjia Zhang <wenjia.zhang@oss.qualcomm.com>


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH v2 1/2] dt-bindings: crypto: qcom,inline-crypto-engine: Add x1e80100 support
  2026-07-22  9:26 [PATCH v2 0/2] Enable ICE for UFS on Hamoa IoT EVK Wenjia Zhang
@ 2026-07-22  9:26 ` Wenjia Zhang
  2026-07-23  7:26   ` Harshal Dev
  2026-07-23  8:15   ` Krzysztof Kozlowski
  2026-07-22  9:26 ` [PATCH v2 2/2] arm64: dts: qcom: hamoa: Add ICE node for UFS inline encryption Wenjia Zhang
  1 sibling, 2 replies; 10+ messages in thread
From: Wenjia Zhang @ 2026-07-22  9:26 UTC (permalink / raw)
  To: Herbert Xu, David S. Miller, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Bjorn Andersson, Konrad Dybcio
  Cc: linux-arm-msm, linux-crypto, devicetree, linux-kernel,
	Wenjia Zhang, kernel

Document the compatible string for inline crypto engine found
on the Qualcomm X1E80100 SoC, used by the Hamoa IoT EVK board.

Signed-off-by: Wenjia Zhang <wenjia.zhang@oss.qualcomm.com>
---
 Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml b/Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml
index 92c3ba6eae13dbd8a6a448057e942a08cc3a3ea7..07d6778a287631262282d75c0d233919f4241edd 100644
--- a/Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml
+++ b/Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml
@@ -25,6 +25,7 @@ properties:
           - qcom,sm8550-inline-crypto-engine
           - qcom,sm8650-inline-crypto-engine
           - qcom,sm8750-inline-crypto-engine
+          - qcom,x1e80100-inline-crypto-engine
       - const: qcom,inline-crypto-engine
 
   reg:

-- 
2.43.0


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH v2 2/2] arm64: dts: qcom: hamoa: Add ICE node for UFS inline encryption
  2026-07-22  9:26 [PATCH v2 0/2] Enable ICE for UFS on Hamoa IoT EVK Wenjia Zhang
  2026-07-22  9:26 ` [PATCH v2 1/2] dt-bindings: crypto: qcom,inline-crypto-engine: Add x1e80100 support Wenjia Zhang
@ 2026-07-22  9:26 ` Wenjia Zhang
  2026-07-23  7:26   ` Harshal Dev
  2026-07-27 13:59   ` Abel Vesa
  1 sibling, 2 replies; 10+ messages in thread
From: Wenjia Zhang @ 2026-07-22  9:26 UTC (permalink / raw)
  To: Herbert Xu, David S. Miller, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Bjorn Andersson, Konrad Dybcio
  Cc: linux-arm-msm, linux-crypto, devicetree, linux-kernel,
	Wenjia Zhang, kernel

Add the Inline Crypto Engine (ICE) device node to describe the
hardware-accelerated inline encryption for UFS storage on the
Hamoa IoT EVK board (Qualcomm X1E80100 SoC).

Signed-off-by: Wenjia Zhang <wenjia.zhang@oss.qualcomm.com>
---
 arch/arm64/boot/dts/qcom/hamoa.dtsi | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/hamoa.dtsi b/arch/arm64/boot/dts/qcom/hamoa.dtsi
index 0840eb2f884f98d76442fac7888ed49a07780898..0c9b459055d720a528a319272161d1d7446daefd 100644
--- a/arch/arm64/boot/dts/qcom/hamoa.dtsi
+++ b/arch/arm64/boot/dts/qcom/hamoa.dtsi
@@ -4176,6 +4176,8 @@ &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>,
 			phys = <&ufs_mem_phy>;
 			phy-names = "ufsphy";
 
+			qcom,ice = <&ice>;
+
 			#reset-cells = <1>;
 
 			status = "disabled";
@@ -4221,6 +4223,17 @@ opp-300000000 {
 			};
 		};
 
+		ice: crypto@1d88000 {
+			compatible = "qcom,x1e80100-inline-crypto-engine",
+				     "qcom,inline-crypto-engine";
+			reg = <0x0 0x01d88000 0x0 0x18000>;
+			clocks = <&gcc GCC_UFS_PHY_ICE_CORE_CLK>,
+				 <&gcc GCC_UFS_PHY_AHB_CLK>;
+			clock-names = "core",
+				      "iface";
+			power-domains = <&gcc GCC_UFS_PHY_GDSC>;
+		};
+
 		cryptobam: dma-controller@1dc4000 {
 			compatible = "qcom,bam-v1.7.4", "qcom,bam-v1.7.0";
 			reg = <0x0 0x01dc4000 0x0 0x28000>;

-- 
2.43.0


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v2 2/2] arm64: dts: qcom: hamoa: Add ICE node for UFS inline encryption
  2026-07-22  9:26 ` [PATCH v2 2/2] arm64: dts: qcom: hamoa: Add ICE node for UFS inline encryption Wenjia Zhang
@ 2026-07-23  7:26   ` Harshal Dev
  2026-07-27 13:59   ` Abel Vesa
  1 sibling, 0 replies; 10+ messages in thread
From: Harshal Dev @ 2026-07-23  7:26 UTC (permalink / raw)
  To: Wenjia Zhang, Herbert Xu, David S. Miller, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Bjorn Andersson,
	Konrad Dybcio
  Cc: linux-arm-msm, linux-crypto, devicetree, linux-kernel, kernel



On 22-07-2026 02:56 pm, Wenjia Zhang wrote:
> Add the Inline Crypto Engine (ICE) device node to describe the
> hardware-accelerated inline encryption for UFS storage on the
> Hamoa IoT EVK board (Qualcomm X1E80100 SoC).
> 
> Signed-off-by: Wenjia Zhang <wenjia.zhang@oss.qualcomm.com>
> ---
>  arch/arm64/boot/dts/qcom/hamoa.dtsi | 13 +++++++++++++
>  1 file changed, 13 insertions(+)
>
Reviewed-by: Harshal Dev <harshal.dev@oss.qualcomm.com>

Regards,
Harshal

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v2 1/2] dt-bindings: crypto: qcom,inline-crypto-engine: Add x1e80100 support
  2026-07-22  9:26 ` [PATCH v2 1/2] dt-bindings: crypto: qcom,inline-crypto-engine: Add x1e80100 support Wenjia Zhang
@ 2026-07-23  7:26   ` Harshal Dev
  2026-07-23  8:15   ` Krzysztof Kozlowski
  1 sibling, 0 replies; 10+ messages in thread
From: Harshal Dev @ 2026-07-23  7:26 UTC (permalink / raw)
  To: Wenjia Zhang, Herbert Xu, David S. Miller, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Bjorn Andersson,
	Konrad Dybcio
  Cc: linux-arm-msm, linux-crypto, devicetree, linux-kernel, kernel



On 22-07-2026 02:56 pm, Wenjia Zhang wrote:
> Document the compatible string for inline crypto engine found
> on the Qualcomm X1E80100 SoC, used by the Hamoa IoT EVK board.
> 
> Signed-off-by: Wenjia Zhang <wenjia.zhang@oss.qualcomm.com>
> ---
>  Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml b/Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml
> index 92c3ba6eae13dbd8a6a448057e942a08cc3a3ea7..07d6778a287631262282d75c0d233919f4241edd 100644
> --- a/Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml
> +++ b/Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml
> @@ -25,6 +25,7 @@ properties:
>            - qcom,sm8550-inline-crypto-engine
>            - qcom,sm8650-inline-crypto-engine
>            - qcom,sm8750-inline-crypto-engine
> +          - qcom,x1e80100-inline-crypto-engine


Reviewed-by: Harshal Dev <harshal.dev@oss.qualcomm.com>

Regards,
Harshal

>        - const: qcom,inline-crypto-engine
>  
>    reg:
> 


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v2 1/2] dt-bindings: crypto: qcom,inline-crypto-engine: Add x1e80100 support
  2026-07-22  9:26 ` [PATCH v2 1/2] dt-bindings: crypto: qcom,inline-crypto-engine: Add x1e80100 support Wenjia Zhang
  2026-07-23  7:26   ` Harshal Dev
@ 2026-07-23  8:15   ` Krzysztof Kozlowski
  2026-07-24  3:14     ` Wenjia Zhang
  1 sibling, 1 reply; 10+ messages in thread
From: Krzysztof Kozlowski @ 2026-07-23  8:15 UTC (permalink / raw)
  To: Wenjia Zhang
  Cc: Herbert Xu, David S. Miller, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Bjorn Andersson, Konrad Dybcio, linux-arm-msm,
	linux-crypto, devicetree, linux-kernel, kernel

On Wed, Jul 22, 2026 at 05:26:28PM +0800, Wenjia Zhang wrote:
> Document the compatible string for inline crypto engine found
> on the Qualcomm X1E80100 SoC, used by the Hamoa IoT EVK board.
> 
> Signed-off-by: Wenjia Zhang <wenjia.zhang@oss.qualcomm.com>
> ---
>  Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml | 1 +
>  1 file changed, 1 insertion(+)
>

This is incomplete, although maybe you based this on Kuldeep's work but
nothing explains that here nor in the cover letter.

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v2 1/2] dt-bindings: crypto: qcom,inline-crypto-engine: Add x1e80100 support
  2026-07-23  8:15   ` Krzysztof Kozlowski
@ 2026-07-24  3:14     ` Wenjia Zhang
  2026-07-24  5:49       ` Krzysztof Kozlowski
  0 siblings, 1 reply; 10+ messages in thread
From: Wenjia Zhang @ 2026-07-24  3:14 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Herbert Xu, David S. Miller, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Bjorn Andersson, Konrad Dybcio, linux-arm-msm,
	linux-crypto, devicetree, linux-kernel


On 7/23/2026 4:15 PM, Krzysztof Kozlowski wrote:
> On Wed, Jul 22, 2026 at 05:26:28PM +0800, Wenjia Zhang wrote:
>> Document the compatible string for inline crypto engine found
>> on the Qualcomm X1E80100 SoC, used by the Hamoa IoT EVK board.
>>
>> Signed-off-by: Wenjia Zhang <wenjia.zhang@oss.qualcomm.com>
>> ---
>>   Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml | 1 +
>>   1 file changed, 1 insertion(+)
>>
> This is incomplete, although maybe you based this on Kuldeep's work but
> nothing explains that here nor in the cover letter.
>
> Best regards,
> Krzysztof

I added the prerequisites and note information in the cover letter. Here 
is the linkage of the prerequisite [PATCH v4 1/6] dt-bindings: crypto: <https://lore.kernel.org/lkml/20260714-b4-shikra_crypto_changse-v4-1-06a4ea97c209@oss.qualcomm.com/>
qcom,inline-crypto-engine: Fix legacy/new SoC strictness split - Kuldeep 
Singh <https://lore.kernel.org/lkml/20260714-b4-shikra_crypto_changse-v4-1-06a4ea97c209@oss.qualcomm.com/>

Best regards,
Wenjia Zhang


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v2 1/2] dt-bindings: crypto: qcom,inline-crypto-engine: Add x1e80100 support
  2026-07-24  3:14     ` Wenjia Zhang
@ 2026-07-24  5:49       ` Krzysztof Kozlowski
  2026-07-27 10:42         ` Kuldeep Singh
  0 siblings, 1 reply; 10+ messages in thread
From: Krzysztof Kozlowski @ 2026-07-24  5:49 UTC (permalink / raw)
  To: Wenjia Zhang
  Cc: Herbert Xu, David S. Miller, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Bjorn Andersson, Konrad Dybcio, linux-arm-msm,
	linux-crypto, devicetree, linux-kernel

On 24/07/2026 05:14, Wenjia Zhang wrote:
> 
> On 7/23/2026 4:15 PM, Krzysztof Kozlowski wrote:
>> On Wed, Jul 22, 2026 at 05:26:28PM +0800, Wenjia Zhang wrote:
>>> Document the compatible string for inline crypto engine found
>>> on the Qualcomm X1E80100 SoC, used by the Hamoa IoT EVK board.
>>>
>>> Signed-off-by: Wenjia Zhang <wenjia.zhang@oss.qualcomm.com>
>>> ---
>>>   Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml | 1 +
>>>   1 file changed, 1 insertion(+)
>>>
>> This is incomplete, although maybe you based this on Kuldeep's work but
>> nothing explains that here nor in the cover letter.
>>
>> Best regards,
>> Krzysztof
> 
> I added the prerequisites and note information in the cover letter. Here 

That does not count as it is pointless.

Which maintainer should include these prerequisities? Both? Then patch
is NAKed as DTS cannot depend on driver patches.

Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v2 1/2] dt-bindings: crypto: qcom,inline-crypto-engine: Add x1e80100 support
  2026-07-24  5:49       ` Krzysztof Kozlowski
@ 2026-07-27 10:42         ` Kuldeep Singh
  0 siblings, 0 replies; 10+ messages in thread
From: Kuldeep Singh @ 2026-07-27 10:42 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Wenjia Zhang
  Cc: Herbert Xu, David S. Miller, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Bjorn Andersson, Konrad Dybcio, linux-arm-msm,
	linux-crypto, devicetree, linux-kernel

>> I added the prerequisites and note information in the cover letter. Here 
> 
> That does not count as it is pointless.
> 
> Which maintainer should include these prerequisities? Both? Then patch
> is NAKed as DTS cannot depend on driver patches.

Hi Krzysztof,
Seems Wenjia rebased his hamoa effort on top of my work[1] and as per
latest update, Herbert has applied the dependent binding change to his
tree[2] and should be part of linux-next soon.

Please note, only [1] is prerequisite and not the entire series there.

With this, the dependency will be resolved and rebasing to latest
linux-next(with [2] as part of it) should make this series as standalone.
Will let Wenjia drop v3.

[1]
https://lore.kernel.org/lkml/20260714-b4-shikra_crypto_changse-v4-1-06a4ea97c209@oss.qualcomm.com/
[2]
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git/commit/?id=3360fa7604259a0341a9bdbb0a8cb0fd7f3109de

-- 
Regards
Kuldeep


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v2 2/2] arm64: dts: qcom: hamoa: Add ICE node for UFS inline encryption
  2026-07-22  9:26 ` [PATCH v2 2/2] arm64: dts: qcom: hamoa: Add ICE node for UFS inline encryption Wenjia Zhang
  2026-07-23  7:26   ` Harshal Dev
@ 2026-07-27 13:59   ` Abel Vesa
  1 sibling, 0 replies; 10+ messages in thread
From: Abel Vesa @ 2026-07-27 13:59 UTC (permalink / raw)
  To: Wenjia Zhang
  Cc: Herbert Xu, David S. Miller, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Bjorn Andersson, Konrad Dybcio, linux-arm-msm,
	linux-crypto, devicetree, linux-kernel, kernel

On 26-07-22 17:26:29, Wenjia Zhang wrote:
> Add the Inline Crypto Engine (ICE) device node to describe the
> hardware-accelerated inline encryption for UFS storage on the
> Hamoa IoT EVK board (Qualcomm X1E80100 SoC).
> 
> Signed-off-by: Wenjia Zhang <wenjia.zhang@oss.qualcomm.com>

Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com>

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-07-27 13:59 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-22  9:26 [PATCH v2 0/2] Enable ICE for UFS on Hamoa IoT EVK Wenjia Zhang
2026-07-22  9:26 ` [PATCH v2 1/2] dt-bindings: crypto: qcom,inline-crypto-engine: Add x1e80100 support Wenjia Zhang
2026-07-23  7:26   ` Harshal Dev
2026-07-23  8:15   ` Krzysztof Kozlowski
2026-07-24  3:14     ` Wenjia Zhang
2026-07-24  5:49       ` Krzysztof Kozlowski
2026-07-27 10:42         ` Kuldeep Singh
2026-07-22  9:26 ` [PATCH v2 2/2] arm64: dts: qcom: hamoa: Add ICE node for UFS inline encryption Wenjia Zhang
2026-07-23  7:26   ` Harshal Dev
2026-07-27 13:59   ` Abel Vesa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome