Re: [PATCH 2/2] arm64: dts: qcom: glymur: Add crypto engine
From: Konrad Dybcio
Date: Fri Apr 17 2026 - 07:07:42 EST
On 4/17/26 11:22 AM, Harshal Dev wrote:
> Hi,
>
> On 4/16/2026 7:10 PM, Konrad Dybcio wrote:
>> On 4/16/26 3:07 PM, Harshal Dev wrote:
>>> On Glymur, there is a crypto engine IP block similar to the ones found on
>>> SM8x50 platforms.
>>>
>>> Describe the crypto engine and its BAM.
>>>
>>> Signed-off-by: Harshal Dev <harshal.dev@xxxxxxxxxxxxxxxx>
>>> ---
>>> arch/arm64/boot/dts/qcom/glymur.dtsi | 26 ++++++++++++++++++++++++++
>>> 1 file changed, 26 insertions(+)
>>>
>>> diff --git a/arch/arm64/boot/dts/qcom/glymur.dtsi b/arch/arm64/boot/dts/qcom/glymur.dtsi
>>> index f23cf81ddb77..e8c796f2c572 100644
>>> --- a/arch/arm64/boot/dts/qcom/glymur.dtsi
>>> +++ b/arch/arm64/boot/dts/qcom/glymur.dtsi
>>> @@ -3675,6 +3675,32 @@ pcie3b_phy: phy@f10000 {
>>> status = "disabled";
>>> };
>>>
>>> + cryptobam: dma-controller@1dc4000 {
>>> + compatible = "qcom,bam-v1.7.4", "qcom,bam-v1.7.0";
>>> + reg = <0x0 0x01dc4000 0x0 0x28000>;
>>> + interrupts = <GIC_SPI 272 IRQ_TYPE_LEVEL_HIGH>;
>>> + #dma-cells = <1>;
>>> + iommus = <&apps_smmu 0x480 0x0>,
>>> + <&apps_smmu 0x481 0x0>;
>>
>> It seems like these aren't the right SIDs on this platform.. Have you
>> tested this patch on hw?
>
> Thanks a lot for catching this Konrad. The correct SID pairs are <0x80 0x0> and <0x81 0x0>.
> (I hope I don't need to pad them?)
No, you don't
>
> Unfortunately, I could only validate driver probe on my limited ramdisk environment:
>
> [ 4.583802] qcrypto 1dfa000.crypto: Crypto device found, version 5.9.1
>
> I was waiting for Wenjia to run the full crypto user-space test suite once. I'll update the
> SIDs and wait for a Tested-by from him.
Thanks
I think you should be able to get some life out of the crypto engine
via CONFIG_EXPERT=y && CONFIG_CRYPTO_SELFTESTS=y (which btw +Hans
mentioned reports a failure on Hamoa)
Konrad