<?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>topic Re: iMX8MM CAAM errors when using 'tk(cbc(aes))' for filesystem encryption in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-CAAM-errors-when-using-tk-cbc-aes-for-filesystem/m-p/2291071#M243295</link>
    <description>&lt;P&gt;No, I haven't been able to reproduce with dd or fio.&amp;nbsp; On the system I captured the previous log from, it only happens very occasionally (once in 2 months so far).&amp;nbsp;&lt;/P&gt;&lt;P&gt;On another system it with slightly different code, it happens at least once a day.&amp;nbsp; We believe this is when loading a large set of shared libraries during startup (which aren't used on the system I got logs from).&amp;nbsp; Unfortunately, we are not able to easily collect logs from this version - however we would be able to test a patch relatively quickly to see if the issue is resolved.&lt;/P&gt;&lt;P&gt;Do the previous logs contain enough information for investigation purposes?&amp;nbsp; If not then what else would be required?&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jan 2026 15:15:54 GMT</pubDate>
    <dc:creator>djs2</dc:creator>
    <dc:date>2026-01-09T15:15:54Z</dc:date>
    <item>
      <title>iMX8MM CAAM errors when using 'tk(cbc(aes))' for filesystem encryption</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-CAAM-errors-when-using-tk-cbc-aes-for-filesystem/m-p/2184884#M241347</link>
      <description>&lt;P&gt;I'm getting the following error when writing to a filesystem using the CAAM for filesystem encryption with `&lt;SPAN&gt;tk(cbc(aes))`.&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;caam_jr 30902000.jr: 4000141c: DECO: desc idx 20: DECO Watchdog timer timeout error&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;This only happens occasionally but seems to be more prevalent when running with all cores enabled.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2025 12:59:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-CAAM-errors-when-using-tk-cbc-aes-for-filesystem/m-p/2184884#M241347</guid>
      <dc:creator>djs2</dc:creator>
      <dc:date>2025-10-13T12:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8MM CAAM errors when using 'tk(cbc(aes))' for filesystem encryption</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-CAAM-errors-when-using-tk-cbc-aes-for-filesystem/m-p/2187937#M241470</link>
      <description>&lt;P&gt;Can you please share the version of BSP you're working and the&amp;nbsp;&lt;SPAN&gt;Steps and logs when problems occur?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Harvey&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Oct 2025 03:25:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-CAAM-errors-when-using-tk-cbc-aes-for-filesystem/m-p/2187937#M241470</guid>
      <dc:creator>Harvey021</dc:creator>
      <dc:date>2025-10-17T03:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8MM CAAM errors when using 'tk(cbc(aes))' for filesystem encryption</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-CAAM-errors-when-using-tk-cbc-aes-for-filesystem/m-p/2202598#M242091</link>
      <description>&lt;P&gt;Sorry for the delay in replying.&lt;/P&gt;&lt;P&gt;We are using `linux-imx_5.15.71_2.2.2-phy5` from Phytec with patches from&amp;nbsp;&lt;A href="https://github.com/Freescale/linux-fslc/tree/5.15-2.2.x-imx" target="_blank"&gt;https://github.com/Freescale/linux-fslc/tree/5.15-2.2.x-imx&lt;/A&gt;&amp;nbsp;up until 5.15.183.&amp;nbsp; Unfortunately the problem only occurs occasionally (less than 1 instance every 500 hours or so of CI testing across multiple units) and I haven't been able to create a simple reproducer.&lt;/P&gt;&lt;P&gt;An initial attempt to enable `&lt;SPAN&gt;CONFIG_CRYPTO_DEV_FSL_CAAM_DEBUG` prevents our device from booting as we are using the CAAM to encrypt the root filesystem along with various data partitions and this generates too much logging.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm looking at adding log information to a circular buffer and emitting this when the error occurs.&amp;nbsp; As this will only result in the last 1000 or so records being emitted, I'd like to know whether there are any setup messages that we should always log to support analysis.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Daniel&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Nov 2025 09:06:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-CAAM-errors-when-using-tk-cbc-aes-for-filesystem/m-p/2202598#M242091</guid>
      <dc:creator>djs2</dc:creator>
      <dc:date>2025-11-11T09:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8MM CAAM errors when using 'tk(cbc(aes))' for filesystem encryption</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-CAAM-errors-when-using-tk-cbc-aes-for-filesystem/m-p/2249270#M242433</link>
      <description>&lt;P&gt;Watchdog timeout error was triggered by DECO halt on but there were multi case to make DECO halt on, such as input/output buffer address, length or etc.&lt;BR /&gt;Can you reproduce this with stress test with "dd" or "fio" tool?&lt;/P&gt;
&lt;P&gt;If the issue can be reproduced stably, it can help us to find the root cause.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Harvey&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2025 10:22:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-CAAM-errors-when-using-tk-cbc-aes-for-filesystem/m-p/2249270#M242433</guid>
      <dc:creator>Harvey021</dc:creator>
      <dc:date>2025-11-26T10:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8MM CAAM errors when using 'tk(cbc(aes))' for filesystem encryption</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-CAAM-errors-when-using-tk-cbc-aes-for-filesystem/m-p/2249281#M242434</link>
      <description>&lt;P&gt;Unfortunately, I've been unable to reproduce with other tools &lt;LI-EMOJI id="lia_disappointed-face" title=":disappointed_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;&lt;P&gt;I have added logging of last 2048 CAAM log messages on failure and we are now waiting for failure to re-occur in CI.&amp;nbsp; I'll send logs as soon as I get them&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2025 10:27:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-CAAM-errors-when-using-tk-cbc-aes-for-filesystem/m-p/2249281#M242434</guid>
      <dc:creator>djs2</dc:creator>
      <dc:date>2025-11-26T10:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8MM CAAM errors when using 'tk(cbc(aes))' for filesystem encryption</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-CAAM-errors-when-using-tk-cbc-aes-for-filesystem/m-p/2263505#M242910</link>
      <description>&lt;P&gt;Finally had it fail with logging.&amp;nbsp; This should include the last 2048 log records from the CAAM subsystem.&amp;nbsp; Only difference to standard logging is that `src` and `dst` buffer data is not included.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Dec 2025 09:23:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-CAAM-errors-when-using-tk-cbc-aes-for-filesystem/m-p/2263505#M242910</guid>
      <dc:creator>djs2</dc:creator>
      <dc:date>2025-12-16T09:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8MM CAAM errors when using 'tk(cbc(aes))' for filesystem encryption</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-CAAM-errors-when-using-tk-cbc-aes-for-filesystem/m-p/2281373#M243163</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;were you able to reproduce using dd or fio as harvey recommended?&lt;BR /&gt;In your last test how easy is to reproduce?&lt;BR /&gt;&lt;BR /&gt;Best regards/Saludos,&lt;BR /&gt;Aldo.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2026 21:25:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-CAAM-errors-when-using-tk-cbc-aes-for-filesystem/m-p/2281373#M243163</guid>
      <dc:creator>AldoG</dc:creator>
      <dc:date>2026-01-05T21:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8MM CAAM errors when using 'tk(cbc(aes))' for filesystem encryption</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-CAAM-errors-when-using-tk-cbc-aes-for-filesystem/m-p/2291071#M243295</link>
      <description>&lt;P&gt;No, I haven't been able to reproduce with dd or fio.&amp;nbsp; On the system I captured the previous log from, it only happens very occasionally (once in 2 months so far).&amp;nbsp;&lt;/P&gt;&lt;P&gt;On another system it with slightly different code, it happens at least once a day.&amp;nbsp; We believe this is when loading a large set of shared libraries during startup (which aren't used on the system I got logs from).&amp;nbsp; Unfortunately, we are not able to easily collect logs from this version - however we would be able to test a patch relatively quickly to see if the issue is resolved.&lt;/P&gt;&lt;P&gt;Do the previous logs contain enough information for investigation purposes?&amp;nbsp; If not then what else would be required?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jan 2026 15:15:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-CAAM-errors-when-using-tk-cbc-aes-for-filesystem/m-p/2291071#M243295</guid>
      <dc:creator>djs2</dc:creator>
      <dc:date>2026-01-09T15:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8MM CAAM errors when using 'tk(cbc(aes))' for filesystem encryption</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-CAAM-errors-when-using-tk-cbc-aes-for-filesystem/m-p/2291085#M243300</link>
      <description>&lt;P&gt;From a brief look at my log, it appears that at the point of failure, the 8th of 8 queued requests for a sequence of offsets is what generates the DECO watchdog timeout error.&amp;nbsp; In the earlier portions of the log, it appears that there are rarely any queued requests (possibly sometimes one?) even when handling other sequences of offsets.&amp;nbsp; Is this a clue?&lt;/P&gt;&lt;P&gt;The 7 queued requests before this do seem to complete correctly so could one of the following the cause...&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The queue actually only supports 7 entries - in which case reducing the number of queued entries may help (where can I change this?)&lt;/LI&gt;&lt;LI&gt;The DECO watchdog timeout starts when entries are added to the queue and simply expires due to the time taken to handle 8 entries - in which case extending the timeout period may help (again, if possible, where can I change this?)&lt;/LI&gt;&lt;LI&gt;This specific request actually has a problem - but to me it looks equivalent to the 7 previous requests so this seems unlikely&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jan 2026 16:04:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-CAAM-errors-when-using-tk-cbc-aes-for-filesystem/m-p/2291085#M243300</guid>
      <dc:creator>djs2</dc:creator>
      <dc:date>2026-01-09T16:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8MM CAAM errors when using 'tk(cbc(aes))' for filesystem encryption</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-CAAM-errors-when-using-tk-cbc-aes-for-filesystem/m-p/2291088#M243301</link>
      <description>&lt;P&gt;Note we are running the CPU and DDR at reduced speed for power saving reasons - which may impact this&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jan 2026 16:32:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-CAAM-errors-when-using-tk-cbc-aes-for-filesystem/m-p/2291088#M243301</guid>
      <dc:creator>djs2</dc:creator>
      <dc:date>2026-01-09T16:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8MM CAAM errors when using 'tk(cbc(aes))' for filesystem encryption</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-CAAM-errors-when-using-tk-cbc-aes-for-filesystem/m-p/2301146#M243644</link>
      <description>&lt;P&gt;Having got the logs, I decided to dig in further myself.&amp;nbsp; It appears that when the system is under high memory load but still has the DDR running at 400MT/s (or in our case sometimes 100MT/s), the CAAM will sometimes generate a watchdog error.&lt;/P&gt;&lt;P&gt;The eMMC driver forces the DDR to 3000MT/s, but for writes, this doesn't necessarily occur until after the encryption has been performed.&lt;/P&gt;&lt;P&gt;We have fixed this for our use case by requesting `&lt;SPAN&gt;BUS_FREQ_HIGH&lt;/SPAN&gt;` in `caam_jr_enqueue()` and releasing it again via scheduled work from `caam_jr_dequeue()`.&lt;/P&gt;&lt;P&gt;This fixes filesystem accesses, however it causes problems when called from the network stack (via xfrm for example) as `request_bus_freq()` ends up being called in atomic context (from much further up the network stack) and both `request_bus_freq()` and `clk_xxx()` calls utilise mutex's&lt;/P&gt;&lt;P&gt;We have worked around this by disabling use of CAAM for everything but the filesystem, but a better solution would be required if upstreamed.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 09:57:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-CAAM-errors-when-using-tk-cbc-aes-for-filesystem/m-p/2301146#M243644</guid>
      <dc:creator>djs2</dc:creator>
      <dc:date>2026-01-27T09:57:37Z</dc:date>
    </item>
  </channel>
</rss>

