<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX Processors中的主题 Re: imx8ulp caam encryption suspend state error</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx8ulp-caam-encryption-suspend-state-error/m-p/2269167#M243065</link>
    <description>&lt;P&gt;YES, this is exist issue on the old bsp, so what bsp version do you use? if could, pls upgrade it&lt;/P&gt;</description>
    <pubDate>Fri, 26 Dec 2025 08:35:07 GMT</pubDate>
    <dc:creator>joanxie</dc:creator>
    <dc:date>2025-12-26T08:35:07Z</dc:date>
    <item>
      <title>imx8ulp caam encryption suspend state error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8ulp-caam-encryption-suspend-state-error/m-p/2266881#M242988</link>
      <description>&lt;P&gt;Platform: iMX8ULP&lt;BR /&gt;We are using caam module to encrypt the home partition of our device ad described in [AN12714](&lt;A href="https://community.nxp.com/pwmxy87654/attachments/pwmxy87654/imx-processors/172311/1/AN12714_iMX%20Encrypted%20Storage%20Using%20CAAM%20Secure%20Keys.pdf" target="_blank"&gt;https://community.nxp.com/pwmxy87654/attachments/pwmxy87654/imx-processors/172311/1/AN12714_iMX%20Encrypted%20Storage%20Using%20CAAM%20Secure%20Keys.pdf&lt;/A&gt;). We create an encryption key the first time we encrypt the partition and we store the black key blob. On each reboot we extract the black key and we load it the kernel. The key we load in the kernel is a black key, that is a session key becoming invalid between power cycles.&lt;BR /&gt;When we put the system in suspend state and we resume it, we get errors from dm-crypt.&lt;BR /&gt;I think power to the caam module is disable in suspend state, so the encryption black key becomes invalid.&lt;BR /&gt;This seems a common scenario. What is the suggested way to overcome this issue ?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/home/root# ls /home/
/home/root# [ 120.036770] Aborting journal on device dm-3-8.
[ 120.041402] Buffer I/O error on dev dm-3, logical block 65536, lost sync page write
[ 120.049250] JBD2: I/O error when updating journal superblock for dm-3-8.
l
[ 123.246075] EXT4-fs error (device dm-3): ext4_journal_check_start:84: comm sh: Detected aborted journal
[ 123.255851] Buffer I/O error on dev dm-3, logical block 0, lost sync page write
[ 123.263340] EXT4-fs (dm-3): I/O error while writing superblock
[ 123.269292] EXT4-fs (dm-3): Remounting filesystem read-only
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Dec 2025 10:45:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8ulp-caam-encryption-suspend-state-error/m-p/2266881#M242988</guid>
      <dc:creator>GiacomoE</dc:creator>
      <dc:date>2025-12-19T10:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: imx8ulp caam encryption suspend state error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8ulp-caam-encryption-suspend-state-error/m-p/2269167#M243065</link>
      <description>&lt;P&gt;YES, this is exist issue on the old bsp, so what bsp version do you use? if could, pls upgrade it&lt;/P&gt;</description>
      <pubDate>Fri, 26 Dec 2025 08:35:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8ulp-caam-encryption-suspend-state-error/m-p/2269167#M243065</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2025-12-26T08:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: imx8ulp caam encryption suspend state error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8ulp-caam-encryption-suspend-state-error/m-p/2274229#M243150</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/39586"&gt;@joanxie&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;thank you for your answer. What's the bsp /kernel version that fixes the issue?&lt;/P&gt;&lt;P&gt;We are currently using kernel 6.6.23 from Scarthgap release.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you,&lt;/P&gt;&lt;P&gt;Gianluca&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2026 10:08:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8ulp-caam-encryption-suspend-state-error/m-p/2274229#M243150</guid>
      <dc:creator>luca_cornacchia</dc:creator>
      <dc:date>2026-01-05T10:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: imx8ulp caam encryption suspend state error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8ulp-caam-encryption-suspend-state-error/m-p/2274982#M243153</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/39586"&gt;@joanxie&lt;/a&gt;&lt;/P&gt;&lt;P&gt;thank you for your answer. What's the bsp or kernel version that fix the issue?&lt;BR /&gt;&lt;SPAN&gt;We are currently using kernel 6.6.23 from Scarthgap release.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;thank you,&lt;BR /&gt;&lt;SPAN&gt;Gianluca&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2026 11:09:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8ulp-caam-encryption-suspend-state-error/m-p/2274982#M243153</guid>
      <dc:creator>luca_cornacchia</dc:creator>
      <dc:date>2026-01-05T11:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: imx8ulp caam encryption suspend state error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8ulp-caam-encryption-suspend-state-error/m-p/2291191#M243309</link>
      <description>&lt;P&gt;as I known, 6.6.23 has already fixed this, but let me remind, when you test according to the AN, the step5 of chapter 3.2 usage, the command like&lt;/P&gt;
&lt;P&gt;dmsetup -v create encrypted --table "0&lt;BR /&gt;$(blockdev --getsz /dev/loop0) crypt capi:&lt;STRONG&gt;tk&lt;/STRONG&gt;(cbc(aes))-plain :32:caam_tk:seckey 0 /dev/loop0&lt;BR /&gt;0 1 sector_size:512&lt;/P&gt;
&lt;P&gt;you need change the capi&lt;STRONG&gt;:tk&lt;/STRONG&gt; to the capti:&lt;STRONG&gt;tb&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jan 2026 02:37:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8ulp-caam-encryption-suspend-state-error/m-p/2291191#M243309</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2026-01-10T02:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: imx8ulp caam encryption suspend state error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8ulp-caam-encryption-suspend-state-error/m-p/2291575#M243323</link>
      <description>Hi Joanxie, thank you.&lt;BR /&gt;What is the purpose of using capi:tb instead of capi:tk ?&lt;BR /&gt;About the BSP update. Can you point out which patch is fixing the issue, so maybe we can pull only that change ?</description>
      <pubDate>Mon, 12 Jan 2026 08:34:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8ulp-caam-encryption-suspend-state-error/m-p/2291575#M243323</guid>
      <dc:creator>GiacomoE</dc:creator>
      <dc:date>2026-01-12T08:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: imx8ulp caam encryption suspend state error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8ulp-caam-encryption-suspend-state-error/m-p/2292269#M243350</link>
      <description>&lt;P&gt;for these security information, I have mailed to you, pls check&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jan 2026 07:24:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8ulp-caam-encryption-suspend-state-error/m-p/2292269#M243350</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2026-01-13T07:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: imx8ulp caam encryption suspend state error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8ulp-caam-encryption-suspend-state-error/m-p/2332408#M244472</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I also use the i.MX8ULP and used the CAAM module for an encrypted partition. The AN was followed for the setup.&lt;/P&gt;&lt;P&gt;I see exactly the same errors in the log when my device wakes up from suspend.&lt;/P&gt;&lt;P&gt;I used the 6.6.52.2.2.2 release.&lt;/P&gt;&lt;P&gt;I would be interested to know whether the problem has been resolved in general.&lt;/P&gt;&lt;P&gt;I also wonder what the difference is between capi:tk and capi:tb.&lt;/P&gt;&lt;P&gt;If I’m supposed to use capi:tb, I’d like to know what I need to keep in mind during setup. Do I need different commands?&lt;/P&gt;&lt;P&gt;I see that the 6.12 kernel has received patches related to CAAM and suspend for the 8ULP. But do I also need to consider other firmware components, such as the version of the FreeRTOS release, UPower, or the ELE-FW version?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2026 10:03:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8ulp-caam-encryption-suspend-state-error/m-p/2332408#M244472</guid>
      <dc:creator>csenatore</dc:creator>
      <dc:date>2026-03-13T10:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: imx8ulp caam encryption suspend state error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8ulp-caam-encryption-suspend-state-error/m-p/2332416#M244473</link>
      <description>&lt;P&gt;do you mind creating a ticket for this? I can send the patches to you&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/support/support:SUPPORTHOME?tid=sbmenu" target="_blank"&gt;https://www.nxp.com/support/support:SUPPORTHOME?tid=sbmenu&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;click the "submit the ticket"&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2026 10:12:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8ulp-caam-encryption-suspend-state-error/m-p/2332416#M244473</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2026-03-13T10:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: imx8ulp caam encryption suspend state error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8ulp-caam-encryption-suspend-state-error/m-p/2332419#M244474</link>
      <description>Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/39586"&gt;@joanxie&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Support Ticket is created: 00966449</description>
      <pubDate>Fri, 13 Mar 2026 10:21:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8ulp-caam-encryption-suspend-state-error/m-p/2332419#M244474</guid>
      <dc:creator>csenatore</dc:creator>
      <dc:date>2026-03-13T10:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: imx8ulp caam encryption suspend state error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8ulp-caam-encryption-suspend-state-error/m-p/2332550#M244475</link>
      <description>&lt;P&gt;mailed to you already, pls check&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2026 10:42:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8ulp-caam-encryption-suspend-state-error/m-p/2332550#M244475</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2026-03-13T10:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: imx8ulp caam encryption suspend state error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8ulp-caam-encryption-suspend-state-error/m-p/2351623#M244902</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;P&gt;as I known, 6.6.23 has already fixed this, ...&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I've now tested this on the lf-6.18.2-1.00 linux-imx kernel without the patches provided by @joanxie. The bug described above still exists in the latest official NXP release.&lt;BR /&gt;&lt;BR /&gt;If there really is a fix, it was never included in the IMX releases.&lt;BR /&gt;&lt;BR /&gt;I have now taken the time to integrate the patches provided in the support thread into the 6.6 kernel based on lf-6.6.52-2.2.2&lt;BR /&gt;&lt;BR /&gt;The first thing that stands out is that the patch was created for a significantly older kernel, as symbols like “CRYPTO_TFM_RES_BAD_KEY_LEN” only exist up to kernel 5.5. Was the patch really created for the 8ULP and the problem described above?&lt;BR /&gt;&lt;BR /&gt;Since the patch was obviously created for kernel 5.5, is the implementation it contains even compatible with the CAAM driver for 6.6.x or 6.18.x?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;After implementing the patches in my kernel, I also noticed that the following assignment in the “tb_skcipher_setkey” function needs to be adjusted:&lt;BR /&gt;&lt;BR /&gt;- struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher);&lt;BR /&gt;+ struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;These changes allow jrdev to be obtained. Otherwise, you get a NULL pointer and thus NULL pointer exceptions in the kernel.&lt;BR /&gt;In addition, a function reference for .skipher.op.do_onerequest had to be added in “driver_algs”; otherwise, dm_crypt does not call tb_skcipher_setkey at all.&lt;BR /&gt;&lt;BR /&gt;After all these changes, I can run `dmsetup create`, but I get an ICV error for every I/O operation on the `dev/mapper` device. Therefore, the patch does not seem to be working.&lt;BR /&gt;CAAM Errorcode: 0x20000a1a&lt;BR /&gt;&lt;BR /&gt;Do i missing something?&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/39586"&gt;@joanxie&lt;/a&gt;&amp;nbsp; could you try the patches on the latest NXP release, or provide an update to the code for LF 6.6.x?&lt;BR /&gt;At least I can't get it to work this way.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Also, I’d be interested to know what happens during the CAAM suspension?&lt;/P&gt;&lt;P&gt;It seems as though the shared descriptor created by the skcipher_setkey() function is being lost. Can NXP confirm this?&lt;BR /&gt;&lt;BR /&gt;A "umount" and "dmsetup remove" before suspend, and a new "dmsetup create" works just perfectly, so I assume this is an issue for the objects created in skcipher_setkey().&lt;BR /&gt;&lt;BR /&gt;Is this a hardware bug in the processor, or is it simply a matter of forgetting to save and restore a state in the CAAM in driver-code?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2026 13:31:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8ulp-caam-encryption-suspend-state-error/m-p/2351623#M244902</guid>
      <dc:creator>csenatore</dc:creator>
      <dc:date>2026-04-15T13:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: imx8ulp caam encryption suspend state error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8ulp-caam-encryption-suspend-state-error/m-p/2353638#M244936</link>
      <description>&lt;P&gt;pls submit a ticket for this issue I need double check it, as I known, the latest bsp, don't need these patches, and has new mechanism, and I couldn't share these security patches in the public community&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/support/support:SUPPORTHOME?tid=sbmenu" target="_blank"&gt;https://www.nxp.com/support/support:SUPPORTHOME?tid=sbmenu&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2026 10:11:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8ulp-caam-encryption-suspend-state-error/m-p/2353638#M244936</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2026-04-20T10:11:08Z</dc:date>
    </item>
  </channel>
</rss>

