<?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: CAAM driver issues kernel warning in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/CAAM-driver-issues-kernel-warning/m-p/1781784#M218100</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/206184"&gt;@JiriCh&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I hope you're doing well!&lt;/P&gt;
&lt;P&gt;After a quick review of your kernel config file, I found that the following parameters are missing:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CONFIG_BLK_DEV_MD=y
CONFIG_CRYPTO_DEV_FSL_CAAM_TK_API=y&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can find these and the other minimal kernel parameters in our Application Note i.MX Encrypted Storage Using CAAM Secure Keys (&lt;A href="https://www.nxp.com/webapp/Download?colCode=AN12714&amp;amp;location=null" target="_blank" rel="noopener"&gt;https://www.nxp.com/webapp/Download?colCode=AN12714&amp;amp;location=null&lt;/A&gt;) Section&amp;nbsp;5.1 Kernel configuration.&lt;/P&gt;
&lt;P&gt;You can also try upgrading to our latest BSP release (6.1.55_2.2.0​) and try if the warning is still showing up.&lt;/P&gt;
&lt;P&gt;Let me know if this was of any help.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Hector.&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jan 2024 17:31:52 GMT</pubDate>
    <dc:creator>hector_delgado</dc:creator>
    <dc:date>2024-01-02T17:31:52Z</dc:date>
    <item>
      <title>CAAM driver issues kernel warning</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CAAM-driver-issues-kernel-warning/m-p/1781753#M218096</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using kernel 6.1.36 release:&amp;nbsp;&lt;A href="https://github.com/nxp-imx/linux-imx/tree/lf-6.1.36-2.1.0" target="_blank"&gt;https://github.com/nxp-imx/linux-imx/tree/lf-6.1.36-2.1.0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I use CAAM unit to create encrypted storage. However, when booting kernel, CAAM driver issues a warning, see the log below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kernel_warning.JPG" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/256385i0890431138F0E7C8/image-size/large?v=v2&amp;amp;px=999" role="button" title="kernel_warning.JPG" alt="kernel_warning.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So far I've been using kernel 5.15.60 and it was working fine all the time. When I migrated to the newer kernel it stopped working.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attached kernel defconfig.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for any help,&lt;/P&gt;&lt;P&gt;Jiri&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 15:38:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CAAM-driver-issues-kernel-warning/m-p/1781753#M218096</guid>
      <dc:creator>JiriCh</dc:creator>
      <dc:date>2024-01-02T15:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: CAAM driver issues kernel warning</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CAAM-driver-issues-kernel-warning/m-p/1781784#M218100</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/206184"&gt;@JiriCh&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I hope you're doing well!&lt;/P&gt;
&lt;P&gt;After a quick review of your kernel config file, I found that the following parameters are missing:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CONFIG_BLK_DEV_MD=y
CONFIG_CRYPTO_DEV_FSL_CAAM_TK_API=y&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can find these and the other minimal kernel parameters in our Application Note i.MX Encrypted Storage Using CAAM Secure Keys (&lt;A href="https://www.nxp.com/webapp/Download?colCode=AN12714&amp;amp;location=null" target="_blank" rel="noopener"&gt;https://www.nxp.com/webapp/Download?colCode=AN12714&amp;amp;location=null&lt;/A&gt;) Section&amp;nbsp;5.1 Kernel configuration.&lt;/P&gt;
&lt;P&gt;You can also try upgrading to our latest BSP release (6.1.55_2.2.0​) and try if the warning is still showing up.&lt;/P&gt;
&lt;P&gt;Let me know if this was of any help.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Hector.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 17:31:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CAAM-driver-issues-kernel-warning/m-p/1781784#M218100</guid>
      <dc:creator>hector_delgado</dc:creator>
      <dc:date>2024-01-02T17:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: CAAM driver issues kernel warning</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CAAM-driver-issues-kernel-warning/m-p/1782168#M218150</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It seems it's not related to encrypted storage because surprisingly my storage gets mounted and I can use it normally after boot.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I enabled those two configs anyway but without any impact.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached kernel boot log. Please have a look.&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;There are couple of weird things in the kernel log for example:&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;[&amp;nbsp; &amp;nbsp; 5.834128] imx-bus-devfreq 32700000.interconnect: failed to fetch clk: -2&lt;/DIV&gt;&lt;DIV&gt;[&amp;nbsp; &amp;nbsp; 5.842063] imx-bus-devfreq: probe of 32700000.interconnect failed with error -2&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Devfreq drivers are enabled in the kernel.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;Then I get the warning regarding the CAAM and messages that deferred probe pending for various platforms. After boot devices like I2C, ETH are not available.&lt;BR /&gt;&lt;BR /&gt;I ran into the same issue on a different HW board so it's not a HW issue.&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 03 Jan 2024 09:00:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CAAM-driver-issues-kernel-warning/m-p/1782168#M218150</guid>
      <dc:creator>JiriCh</dc:creator>
      <dc:date>2024-01-03T09:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: CAAM driver issues kernel warning</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CAAM-driver-issues-kernel-warning/m-p/1782486#M218167</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/206184"&gt;@JiriCh&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I see. Is this behavior still present in our latest BSP? (Since the missing parameters weren't the issue)&lt;/P&gt;
&lt;P&gt;I'll analyze the log and warning in the meantime to see if I can pinpoint what the issue is.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Hector.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 20:48:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CAAM-driver-issues-kernel-warning/m-p/1782486#M218167</guid>
      <dc:creator>hector_delgado</dc:creator>
      <dc:date>2024-01-03T20:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: CAAM driver issues kernel warning</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CAAM-driver-issues-kernel-warning/m-p/1782772#M218200</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We use Yocto from Variscite:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://variwiki.com/index.php?title=DART-MX8M-PLUS_Release_Notes&amp;amp;release=mx8mp-yocto-mickledore-6.1.36_2.1.0-v1.0" target="_blank"&gt;https://variwiki.com/index.php?title=DART-MX8M-PLUS_Release_Notes&amp;amp;release=mx8mp-yocto-mickledore-6.1.36_2.1.0-v1.0&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I built kernel with Variscite defaults (defconfig +&amp;nbsp;imx8mp-var-dart-dt8mcustomboard DTB) and it works fine without errors.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In addition, I tried this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- default defconfig + our customized DTB -&amp;gt; working&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- our customized defconfig +&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;imx8mp-var-dart-dt8mcustomboard DTB -&amp;gt; failing&lt;BR /&gt;&lt;BR /&gt;So apparently our defconfig is wrong. I made somewhere mistake when transferring defconfig from 5.15.60 to 6.1.36 but I used menuconfig only without direct defconfig modification. Maybe wrong dependencies between some configs? Who knows.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;I will have to go at the beginning and start over from default Variscite defconfig.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks for now I'll let you know how it went.&amp;nbsp;&lt;BR /&gt;Jiri&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 07:13:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CAAM-driver-issues-kernel-warning/m-p/1782772#M218200</guid>
      <dc:creator>JiriCh</dc:creator>
      <dc:date>2024-01-04T07:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: CAAM driver issues kernel warning</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CAAM-driver-issues-kernel-warning/m-p/1783798#M218307</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/206184"&gt;@JiriCh&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Yes, that could be the issue. If, after going through Varicite's defaults, it still not working, let me know.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Hector.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 20:12:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CAAM-driver-issues-kernel-warning/m-p/1783798#M218307</guid>
      <dc:creator>hector_delgado</dc:creator>
      <dc:date>2024-01-05T20:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: CAAM driver issues kernel warning</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CAAM-driver-issues-kernel-warning/m-p/1784497#M218388</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I've learnt why I see the kernel warning.&lt;BR /&gt;&lt;BR /&gt;I have intentionally enabled CONFIG_FORTIFY_SOURCE to harden common str/mem functions. Then when I want to use caam-keygen utility to generate keys I get the warning.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I still believe there is a bug somewhere either in CAAM drivers or caam-keygen utility providing incorrect inputs to CAAM drivers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone from NXP have a look at it?&lt;/P&gt;&lt;P&gt;These are my versions:&lt;/P&gt;&lt;P&gt;caam-keygen:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/nxp-imx/keyctl_caam/tree/lf-6.1.36_2.1.0" target="_blank"&gt;https://github.com/nxp-imx/keyctl_caam/tree/lf-6.1.36_2.1.0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Yocto:&lt;/P&gt;&lt;P&gt;&lt;A href="https://variwiki.com/index.php?title=DART-MX8M-PLUS_Release_Notes&amp;amp;release=mx8mp-yocto-mickledore-6.1.36_2.1.0-v1.0" target="_blank"&gt;https://variwiki.com/index.php?title=DART-MX8M-PLUS_Release_Notes&amp;amp;release=mx8mp-yocto-mickledore-6.1.36_2.1.0-v1.0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Variscite Yocto is based on NXP's.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jiri&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 14:40:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CAAM-driver-issues-kernel-warning/m-p/1784497#M218388</guid>
      <dc:creator>JiriCh</dc:creator>
      <dc:date>2024-01-08T14:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: CAAM driver issues kernel warning</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CAAM-driver-issues-kernel-warning/m-p/1786219#M218527</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/206184"&gt;@JiriCh&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I hope you're doing well!&lt;/P&gt;
&lt;P&gt;Have you confirmed this issue with our BSP (&lt;A href="https://www.nxp.com/design/design-center/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applications-processors:IMXLINUX" target="_blank"&gt;Embedded Linux for i.MX Applications Processors | NXP Semiconductors&lt;/A&gt;)? Or is it an option to switch to ours?&lt;/P&gt;
&lt;P&gt;Unfortunately, even if &lt;SPAN&gt;Variscite's BSP is based on ours, it is out of our scope of support any issues their BSP may present. I'll try to look for previously documented issues similar to yours with our BSP (because it is true the issue may be on our side).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;BR /&gt;Hector.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 16:54:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CAAM-driver-issues-kernel-warning/m-p/1786219#M218527</guid>
      <dc:creator>hector_delgado</dc:creator>
      <dc:date>2024-01-10T16:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: CAAM driver issues kernel warning</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CAAM-driver-issues-kernel-warning/m-p/1790952#M218862</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We can't use NXP's BSP because it does not provide necessary support for the Variscite target board.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Variscite kernel is based on NXP's&amp;nbsp;&lt;A href="https://github.com/nxp-imx/linux-imx/tree/lf-6.1.36-2.1.0" target="_blank"&gt;https://github.com/nxp-imx/linux-imx/tree/lf-6.1.36-2.1.0 &lt;/A&gt;and the affected driver is drivers/crypto/caam/tag_object.c as you can see from the kernel warning message. Seems like they did not touch the code so I guess the issue must come from NXP's BSP.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please investigate that? Try to compile NXP kernel with CONFIG_FORTIFY_SOURCE and CAAM drivers enabled and use caam-keygen utility to generate key to see if you can reproduce that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We would like to keep&amp;nbsp;CONFIG_FORTIFY_SOURCE enabled but we can't until we see the pretty ugly kernel warning so we would appreciate fixing that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Jiri&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 09:27:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CAAM-driver-issues-kernel-warning/m-p/1790952#M218862</guid>
      <dc:creator>JiriCh</dc:creator>
      <dc:date>2024-01-18T09:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: CAAM driver issues kernel warning</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CAAM-driver-issues-kernel-warning/m-p/1794814#M219163</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/206184"&gt;@JiriCh&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I'll research this to see if this is a previously documented (or on-going) issue. If I'm unable to find anything relevant, I'll reproduce this issue on my side.&lt;/P&gt;
&lt;P&gt;I'll keep you updated with any relevant findings.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Hector.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 18:31:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CAAM-driver-issues-kernel-warning/m-p/1794814#M219163</guid>
      <dc:creator>hector_delgado</dc:creator>
      <dc:date>2024-01-24T18:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: CAAM driver issues kernel warning</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CAAM-driver-issues-kernel-warning/m-p/1801005#M219583</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/206184"&gt;@JiriCh&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I hope you're doing well. I've sent you an email with an update regarding the research of your issue. Please take a look at it.&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Hector.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 16:51:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CAAM-driver-issues-kernel-warning/m-p/1801005#M219583</guid>
      <dc:creator>hector_delgado</dc:creator>
      <dc:date>2024-02-02T16:51:19Z</dc:date>
    </item>
  </channel>
</rss>

