<?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: how to use caam in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/how-to-use-caam/m-p/989874#M146987</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="206296" data-username="igorpadykov" href="https://community.nxp.com/people/igorpadykov" style="color: #3d9ce7; background-color: #ffffff; border: 0px; font-weight: 200; text-decoration: none; font-size: 1.286rem;"&gt;igorpadykov&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Sorry to reply so late, because of some urgent things.&lt;/P&gt;&lt;P&gt;According to your doc and code, my TA in optee can call CAAM successfully.&lt;/P&gt;&lt;P&gt;But CAAM always returns 0x40000216 (DMA error).&lt;/P&gt;&lt;P&gt;Could you check the code and log and tell me more about this error??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code:&lt;BR /&gt; g_job-&amp;gt;dsc[0] = 0xB0800008;&lt;BR /&gt; g_job-&amp;gt;dsc[1] = 0x14400010;&lt;BR /&gt; g_job-&amp;gt;dsc[2] = kmod_pa; // kmod_pa is from normal ram, not SECURE RAM&lt;BR /&gt; g_job-&amp;gt;dsc[3] = 0xF0000000 | (0x0000ffff &amp;amp; (size));&lt;BR /&gt; g_job-&amp;gt;dsc[4] = plain_pa;&amp;nbsp;&lt;SPAN&gt;// kmod_pa is from normal ram, not SECURE RAM&lt;/SPAN&gt;&lt;BR /&gt; g_job-&amp;gt;dsc[5] = 0xF8000000 | (0x0000ffff &amp;amp; (size + CAAM_KB_HEADER_LEN));&lt;BR /&gt; g_job-&amp;gt;dsc[6] = blob_pa;&amp;nbsp;&lt;SPAN&gt;// kmod_pa is from normal ram, not SECURE RAM&lt;/SPAN&gt;&lt;BR /&gt; g_job-&amp;gt;dsc[7] = 0x870D0000;&lt;BR /&gt; g_job-&amp;gt;dsc_used = 8;&lt;/P&gt;&lt;P&gt;run_job(g_job);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;log:&lt;BR /&gt;D/TC:0 run_job:180 CAAM_IRJAR3=1, CAAM_ORSFR3=0, CAAM_ORJRR3=1&lt;BR /&gt;D/TC:0 run_job:184 CAAM_IRJAR3=1, CAAM_ORSFR3=0, CAAM_ORJRR3=1&lt;BR /&gt;D/TC:0 run_job:189 CAAM_IRJAR3=1, CAAM_ORSFR3=1, CAAM_ORJRR3=1&lt;BR /&gt;D/TC:0 run_job:194 .&lt;BR /&gt;D/TC:0 run_job:207 CAAM_IRJAR3=1, CAAM_ORSFR3=0, CAAM_ORJRR3=1&lt;BR /&gt;E/TC:0 caam_gen_blob_pa:364 job failed (0x40000716)&lt;BR /&gt;E/TC:0 blob_test:204 gen blob err&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANK YOU&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Dec 2019 09:45:56 GMT</pubDate>
    <dc:creator>shuaiqing_wang</dc:creator>
    <dc:date>2019-12-25T09:45:56Z</dc:date>
    <item>
      <title>how to use caam</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/how-to-use-caam/m-p/989872#M146985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am wang shuaiqing from HiRain company. We are using the imx8qxp and imx8qm board.&lt;/P&gt;&lt;P&gt;Now, I am trying to use jobring3 of CAAM&amp;nbsp; in optee in linux os.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After I give my inputing decsriptor to jobring3,&amp;nbsp;the&amp;nbsp;CAAM_ORSFR3 register is set immidiately,&lt;/P&gt;&lt;P&gt;and the output buffer is always 0.&lt;/P&gt;&lt;P&gt;could you check the log below and tell me the reason??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;D/TC:0 run_job:186 CAAM_IRJAR3=0, CAAM_ORSFR3=0, CAAM_ORJRR3=0&lt;BR /&gt;D/TC:0 run_job:189 CAAM_IRJAR3=1, CAAM_ORSFR3=1, CAAM_ORJRR3=0&lt;BR /&gt;I/TC: caam is processing&lt;BR /&gt;I/TC:&lt;BR /&gt;D/TC:0 run_job:198 CAAM_IRJAR3=1, CAAM_ORSFR3=1, CAAM_ORJRR3=0&lt;BR /&gt;D/TC:0 run_job:200 out[0]=0&lt;BR /&gt;I/TC: g_rings-&amp;gt;out[0]=0, g_rings-&amp;gt;out[1]=0&lt;BR /&gt;D/TC:0 dump_error:53 desc[0]: 0xb0800006&lt;BR /&gt;D/TC:0 dump_error:53 desc[1]: 0x8443000d&lt;BR /&gt;D/TC:0 dump_error:53 desc[2]: 0x24140400&lt;BR /&gt;D/TC:0 dump_error:53 desc[3]: 0xfe08d800&lt;BR /&gt;D/TC:0 dump_error:53 desc[4]: 0x54200020&lt;BR /&gt;D/TC:0 dump_error:53 desc[5]: 0xfe08dc20&lt;BR /&gt;E/TC:0 assertion 'g_rings-&amp;gt;out[0] == job_pa' failed at core/arch/arm/pta/hwcrypto/caam.c:207 &amp;lt;run_job&amp;gt;&lt;BR /&gt;E/TC:0 Panic at core/kernel/assert.c:28 &amp;lt;_assert_break&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2019 09:57:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/how-to-use-caam/m-p/989872#M146985</guid>
      <dc:creator>shuaiqing_wang</dc:creator>
      <dc:date>2019-12-17T09:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to use caam</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/how-to-use-caam/m-p/989873#M146986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi 帅卿 王&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for CAAM usage may be useful to check AN12554&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN12554.pdf" target="_blank"&gt;&lt;STRONG&gt;Demo Application to Generate Red/Black Blobs Using CAAM and Encrypt/Decrypt Data&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;sources:&amp;nbsp; &lt;A class="link-titled" href="https://source.codeaurora.org/external/imxsupport/imx_sec_apps/tree/demo-caam-blobs" title="https://source.codeaurora.org/external/imxsupport/imx_sec_apps/tree/demo-caam-blobs"&gt;demo-caam-blobs - imx_sec_apps - i.MX Security Application Examples&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2019 13:22:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/how-to-use-caam/m-p/989873#M146986</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2019-12-18T13:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to use caam</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/how-to-use-caam/m-p/989874#M146987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="206296" data-username="igorpadykov" href="https://community.nxp.com/people/igorpadykov" style="color: #3d9ce7; background-color: #ffffff; border: 0px; font-weight: 200; text-decoration: none; font-size: 1.286rem;"&gt;igorpadykov&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Sorry to reply so late, because of some urgent things.&lt;/P&gt;&lt;P&gt;According to your doc and code, my TA in optee can call CAAM successfully.&lt;/P&gt;&lt;P&gt;But CAAM always returns 0x40000216 (DMA error).&lt;/P&gt;&lt;P&gt;Could you check the code and log and tell me more about this error??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code:&lt;BR /&gt; g_job-&amp;gt;dsc[0] = 0xB0800008;&lt;BR /&gt; g_job-&amp;gt;dsc[1] = 0x14400010;&lt;BR /&gt; g_job-&amp;gt;dsc[2] = kmod_pa; // kmod_pa is from normal ram, not SECURE RAM&lt;BR /&gt; g_job-&amp;gt;dsc[3] = 0xF0000000 | (0x0000ffff &amp;amp; (size));&lt;BR /&gt; g_job-&amp;gt;dsc[4] = plain_pa;&amp;nbsp;&lt;SPAN&gt;// kmod_pa is from normal ram, not SECURE RAM&lt;/SPAN&gt;&lt;BR /&gt; g_job-&amp;gt;dsc[5] = 0xF8000000 | (0x0000ffff &amp;amp; (size + CAAM_KB_HEADER_LEN));&lt;BR /&gt; g_job-&amp;gt;dsc[6] = blob_pa;&amp;nbsp;&lt;SPAN&gt;// kmod_pa is from normal ram, not SECURE RAM&lt;/SPAN&gt;&lt;BR /&gt; g_job-&amp;gt;dsc[7] = 0x870D0000;&lt;BR /&gt; g_job-&amp;gt;dsc_used = 8;&lt;/P&gt;&lt;P&gt;run_job(g_job);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;log:&lt;BR /&gt;D/TC:0 run_job:180 CAAM_IRJAR3=1, CAAM_ORSFR3=0, CAAM_ORJRR3=1&lt;BR /&gt;D/TC:0 run_job:184 CAAM_IRJAR3=1, CAAM_ORSFR3=0, CAAM_ORJRR3=1&lt;BR /&gt;D/TC:0 run_job:189 CAAM_IRJAR3=1, CAAM_ORSFR3=1, CAAM_ORJRR3=1&lt;BR /&gt;D/TC:0 run_job:194 .&lt;BR /&gt;D/TC:0 run_job:207 CAAM_IRJAR3=1, CAAM_ORSFR3=0, CAAM_ORJRR3=1&lt;BR /&gt;E/TC:0 caam_gen_blob_pa:364 job failed (0x40000716)&lt;BR /&gt;E/TC:0 blob_test:204 gen blob err&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANK YOU&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Dec 2019 09:45:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/how-to-use-caam/m-p/989874#M146987</guid>
      <dc:creator>shuaiqing_wang</dc:creator>
      <dc:date>2019-12-25T09:45:56Z</dc:date>
    </item>
  </channel>
</rss>

