<?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 CAAM RNG error in i.MX 6SX SABRE-SD in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/CAAM-RNG-error-in-i-MX-6SX-SABRE-SD/m-p/1402590#M186068</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We're using &lt;STRONG&gt;Yocto hardknott&lt;/STRONG&gt; with Linux kernel version "&lt;STRONG&gt;5.10.52-lts-5.10.y+ga11753a89ec6&lt;/STRONG&gt;". Today, suddenly we ran into a &lt;FONT color="#FF0000"&gt;problem with CAAM's RNG&lt;/FONT&gt; (earlier it worked as expected in the same hardware but with old kernel builds) that it raises the followin error:&lt;/P&gt;&lt;PRE&gt;[ 51.708670] caam_jr 2102000.jr: 20003c5b: CCB: desc idx 60: RNG: Hardware error&lt;BR /&gt;[ 51.716162] caam_jr 2102000.jr: Failed to execute black key descriptor&lt;BR /&gt;[ 51.722707] caam_jr 2102000.jr: Black key generation failed: (-22)&lt;/PRE&gt;&lt;P&gt;It prints continuously on the screen and pollutes it. It also caused the CAAM' related functions to fail&lt;/P&gt;&lt;P&gt;Finally we solved it following the &lt;EM&gt;&lt;A title="HRNG in CAAM isn't working properly on IMX6 SoloX" href="https://lore.kernel.org/lkml/YSy%2FPFrem+a7npBy@gmail.com/#:~:text=Removing%20OP_ALG_PR_ON%20in%20caam_init_desc()%20from%20drivers/crypto/caam/caamrng.c%0Aseems%20to%20fix%20the%20problem" target="_blank" rel="noopener"&gt;discussion on the Linux kernel mailing list&lt;/A&gt;&lt;/EM&gt;. The solution involvs modifying the "caamrng.c" file. Now our questions are,&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;FONT size="5"&gt;Is this workaround/fix poses any security threat?&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="5"&gt;Is this issue observed across all the i.MX 6SX?&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="5"&gt;Will it get fixed on the next kernel revision by NXP?&lt;/FONT&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
    <pubDate>Thu, 20 Jan 2022 11:14:14 GMT</pubDate>
    <dc:creator>kanimozhi_t</dc:creator>
    <dc:date>2022-01-20T11:14:14Z</dc:date>
    <item>
      <title>CAAM RNG error in i.MX 6SX SABRE-SD</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CAAM-RNG-error-in-i-MX-6SX-SABRE-SD/m-p/1402590#M186068</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We're using &lt;STRONG&gt;Yocto hardknott&lt;/STRONG&gt; with Linux kernel version "&lt;STRONG&gt;5.10.52-lts-5.10.y+ga11753a89ec6&lt;/STRONG&gt;". Today, suddenly we ran into a &lt;FONT color="#FF0000"&gt;problem with CAAM's RNG&lt;/FONT&gt; (earlier it worked as expected in the same hardware but with old kernel builds) that it raises the followin error:&lt;/P&gt;&lt;PRE&gt;[ 51.708670] caam_jr 2102000.jr: 20003c5b: CCB: desc idx 60: RNG: Hardware error&lt;BR /&gt;[ 51.716162] caam_jr 2102000.jr: Failed to execute black key descriptor&lt;BR /&gt;[ 51.722707] caam_jr 2102000.jr: Black key generation failed: (-22)&lt;/PRE&gt;&lt;P&gt;It prints continuously on the screen and pollutes it. It also caused the CAAM' related functions to fail&lt;/P&gt;&lt;P&gt;Finally we solved it following the &lt;EM&gt;&lt;A title="HRNG in CAAM isn't working properly on IMX6 SoloX" href="https://lore.kernel.org/lkml/YSy%2FPFrem+a7npBy@gmail.com/#:~:text=Removing%20OP_ALG_PR_ON%20in%20caam_init_desc()%20from%20drivers/crypto/caam/caamrng.c%0Aseems%20to%20fix%20the%20problem" target="_blank" rel="noopener"&gt;discussion on the Linux kernel mailing list&lt;/A&gt;&lt;/EM&gt;. The solution involvs modifying the "caamrng.c" file. Now our questions are,&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;FONT size="5"&gt;Is this workaround/fix poses any security threat?&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="5"&gt;Is this issue observed across all the i.MX 6SX?&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="5"&gt;Will it get fixed on the next kernel revision by NXP?&lt;/FONT&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Thu, 20 Jan 2022 11:14:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CAAM-RNG-error-in-i-MX-6SX-SABRE-SD/m-p/1402590#M186068</guid>
      <dc:creator>kanimozhi_t</dc:creator>
      <dc:date>2022-01-20T11:14:14Z</dc:date>
    </item>
  </channel>
</rss>

