<?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>Layerscape中的主题 Re: ls1021a: error executing sha256 job descriptor</title>
    <link>https://community.nxp.com/t5/Layerscape/ls1021a-error-executing-sha256-job-descriptor/m-p/539181#M1315</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like my smmu is not configured correctly. My code is executing in the secure world, from secure ram (with tzasc enabled), and smmu3 configured so that SEC has access to secure ram. I'm still missing a piece of the puzzle.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jul 2016 08:33:47 GMT</pubDate>
    <dc:creator>vsiles</dc:creator>
    <dc:date>2016-07-28T08:33:47Z</dc:date>
    <item>
      <title>ls1021a: error executing sha256 job descriptor</title>
      <link>https://community.nxp.com/t5/Layerscape/ls1021a-error-executing-sha256-job-descriptor/m-p/539180#M1314</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'm trying to use the SEC of my ls1021atwr to compute a sha256. I'm using 32 bit pointers and no additional word inthe output ring buffer (only 2 words). Here is the scatter-gather table I use:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14695290713569359 jive_text_macro" data-renderedposition="108_50_798_48" jivemacro_uid="_14695290713569359"&gt;&lt;P&gt;1 entry at 0xbff00c38:&lt;/P&gt;&lt;P&gt;- address: 0xbff0005c&lt;/P&gt;&lt;P&gt;- size (+ F flag): 0x40000400&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the descriptors I built:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="_jivemacro_uid_14695291459645415 jive_macro_code jive_text_macro" data-renderedposition="208_50_798_96" jivemacro_uid="_14695291459645415"&gt;&lt;P&gt;HEADER (6 descriptors): 0xb0800006&lt;/P&gt;&lt;P&gt;OPERATION (sha256): 0x8443000d&lt;/P&gt;&lt;P&gt;FIFOLOAD (scatter gather): 0x25140400&lt;/P&gt;&lt;P&gt;INPUT ADDR: 0xbff00c38&lt;/P&gt;&lt;P&gt;STORE: 0x54200020&lt;/P&gt;&lt;P&gt;OUTPUT ADDR: 0xbff00e38&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;Job Ring 0 is configured (irba, orba, irs, ors are set and the job ring is started).&lt;/P&gt;&lt;P&gt;Before adding the job, all slots are available, SEC status is 0x206 (IDLE) and JR0 output status is 0&lt;/P&gt;&lt;P&gt;When I add the job to JR0, I see that input index and ouput index are correctly incremented, FAR*/MAF* registers are 0,&lt;/P&gt;&lt;P&gt;I can see there is a job in the output queue (orsf register), and the output status is now 0x40001f04. I can see the descriptor address in the input ring, but my output ring (pointed by orba) is still empty (0 everywhere, both jd and status word). Also, SEC status is now 0x205 (no longer IDLE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Is it normal to have the outpu ring full of 0 but the output satus different from 0&lt;/P&gt;&lt;P&gt;2) I don't understand the output status, according to the doc is means DECO error, invliad descriptor comand #31 but I only have 6 commands&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I missing someting ? Did I do somehting wrong ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 10:40:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/ls1021a-error-executing-sha256-job-descriptor/m-p/539180#M1314</guid>
      <dc:creator>vsiles</dc:creator>
      <dc:date>2016-07-26T10:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: ls1021a: error executing sha256 job descriptor</title>
      <link>https://community.nxp.com/t5/Layerscape/ls1021a-error-executing-sha256-job-descriptor/m-p/539181#M1315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like my smmu is not configured correctly. My code is executing in the secure world, from secure ram (with tzasc enabled), and smmu3 configured so that SEC has access to secure ram. I'm still missing a piece of the puzzle.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 08:33:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/ls1021a-error-executing-sha256-job-descriptor/m-p/539181#M1315</guid>
      <dc:creator>vsiles</dc:creator>
      <dc:date>2016-07-28T08:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: ls1021a: error executing sha256 job descriptor</title>
      <link>https://community.nxp.com/t5/Layerscape/ls1021a-error-executing-sha256-job-descriptor/m-p/539182#M1316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My driver is in secure PL0 (user mode) and doesn't seem to have access to the SMMU3 component, to correctly configure it. While reading the doc for the CSU in order to enable Secure/User RW access to the SMMU, I noticed there are no such entries in the CSL array (refmanual ~ page 440).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to allow access to the SMMU from User Mode ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 09:06:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/ls1021a-error-executing-sha256-job-descriptor/m-p/539182#M1316</guid>
      <dc:creator>vsiles</dc:creator>
      <dc:date>2016-07-28T09:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: ls1021a: error executing sha256 job descriptor</title>
      <link>https://community.nxp.com/t5/Layerscape/ls1021a-error-executing-sha256-job-descriptor/m-p/539183#M1317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, the problem (see TRM of MMU400) is that MMU can't be access in User Mode (PL0) so I can't have a driver in userland, I'll have to provide a proper kernel driver. As soon as the SMMU is correctly configured by the kernel, my SEC computation works flawlessly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 11:02:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/ls1021a-error-executing-sha256-job-descriptor/m-p/539183#M1317</guid>
      <dc:creator>vsiles</dc:creator>
      <dc:date>2016-07-28T11:02:49Z</dc:date>
    </item>
  </channel>
</rss>

