<?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: Enabling TZASC on LS1021a in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/Enabling-TZASC-on-LS1021a/m-p/505780#M1115</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I seemed that SPL and u-boot don't compute 'gd-&amp;gt;ram_size' in the same way and u-boot was accessing secure memory.&lt;/P&gt;&lt;P&gt;I now boot linux, but I have performance issues I need to investigate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Apr 2016 08:20:36 GMT</pubDate>
    <dc:creator>vsiles</dc:creator>
    <dc:date>2016-04-15T08:20:36Z</dc:date>
    <item>
      <title>Enabling TZASC on LS1021a</title>
      <link>https://community.nxp.com/t5/Layerscape/Enabling-TZASC-on-LS1021a/m-p/505779#M1114</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 enable the TZASC (TZC380) of my QorIQ LS1021a board, in order to protect the end of the DDR from the normal world. My setup is the following (I'm using NXP SDK v1.9):&lt;/P&gt;&lt;P&gt;- the board boots on the SD card, loading the SPL on the on-chip ram. The SPL performs the switch to the normal world before starting u-boot.img, which will start Linux.&lt;/P&gt;&lt;P&gt;If I don't active TZASC nor SMMU, everything is fine (I patched u-boot so that all access to secure only registers/resources are done in the SPL, not in u-boot)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to activate the TZASC, I do the following:&lt;/P&gt;&lt;P&gt;- In the SPL, before DDR is configured, I initialize the TZASC by attributing 3/4 of the DDR to normal world (0x8000_0000 -&amp;gt; 0xb000_0000) and 1/4 to the secure world (0xb000_0000 -&amp;gt; 0xc000_0000)&lt;/P&gt;&lt;P&gt;- I set the ICID for the peripheral in the SCFG component&lt;/P&gt;&lt;P&gt;- In the SMMU1, I configure the SSD space so that peripherals are Secure&lt;/P&gt;&lt;P&gt;- I flip the TZASC activation bit in the CSU&lt;/P&gt;&lt;P&gt;SPL is doing find and manages to copy u-boot in normal DDR, and jumps to u-boot. Then u-boot starts to run correctly, but seems to hang at some point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm actually investigating if I need to configure the other SMMU of the boards in order for u-boot to launch Linux or if it is not necessary. But this is my first time configuring a TZASC so I might have forgotten an important step, especially in the SMMU configuration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help/advice is welcome.&lt;/P&gt;&lt;P&gt;Here is the log up to the hanging part:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_1460645083652491 jive_text_macro" data-renderedposition="628_50_798_272" jivemacro_uid="_1460645083652491"&gt;&lt;P&gt;U-Boot 2015.01+SDKv1.9+g555decd (Apr 13 2016 - 14:10:20)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CPU:&amp;nbsp;&amp;nbsp; Freescale LayerScape LS1021E, Version: 2.0, (0x87081120)&lt;/P&gt;&lt;P&gt;Clock Configuration:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CPU0(ARMV7):1000 MHz, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Bus:300&amp;nbsp; MHz, DDR:800&amp;nbsp; MHz (1600 MT/s data rate), &lt;/P&gt;&lt;P&gt;Reset Configuration Word (RCW):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00000000: 0608000a 00000000 00000000 00000000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00000010: 30000000 00007900 60040a00 21046000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00000020: 00000000 00000000 00000000 20000000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00000030: 00080000 881b7340 00000000 00000000&lt;/P&gt;&lt;P&gt;Board: LS1021ATWR&lt;/P&gt;&lt;P&gt;CPLD:&amp;nbsp; V2.0&lt;/P&gt;&lt;P&gt;PCBA:&amp;nbsp; V1.0&lt;/P&gt;&lt;P&gt;VBank: 0&lt;/P&gt;&lt;P&gt;I2C:&amp;nbsp;&amp;nbsp; ready&lt;/P&gt;&lt;P&gt;DRAM:&amp;nbsp; 768 MiB&lt;/P&gt;&lt;P&gt;Using SERDES1 Protocol: 48 (0x30)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;The next line should be&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14606451047809110 jive_text_macro" data-renderedposition="926_50_798_16" jivemacro_uid="_14606451047809110" modifiedtitle="true"&gt;&lt;P&gt;Using SERDES1 Protocol: 48 (0x30)&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 14:46:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Enabling-TZASC-on-LS1021a/m-p/505779#M1114</guid>
      <dc:creator>vsiles</dc:creator>
      <dc:date>2016-04-14T14:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling TZASC on LS1021a</title>
      <link>https://community.nxp.com/t5/Layerscape/Enabling-TZASC-on-LS1021a/m-p/505780#M1115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I seemed that SPL and u-boot don't compute 'gd-&amp;gt;ram_size' in the same way and u-boot was accessing secure memory.&lt;/P&gt;&lt;P&gt;I now boot linux, but I have performance issues I need to investigate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 08:20:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Enabling-TZASC-on-LS1021a/m-p/505780#M1115</guid>
      <dc:creator>vsiles</dc:creator>
      <dc:date>2016-04-15T08:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling TZASC on LS1021a</title>
      <link>https://community.nxp.com/t5/Layerscape/Enabling-TZASC-on-LS1021a/m-p/505781#M1116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I finally have Linux running (in the Normal World) "fine" (dhcpd can't find an IP address anymore, but the rest seems ok).&lt;/P&gt;&lt;P&gt;As long as my secure OS in the Secure World is not running, everything is fine. But if I make a secure call, the overall experience become really slow (maybe it's just the uart, but it is *really* slow).&lt;/P&gt;&lt;P&gt;I configured all SMMU the same, both for Secure and Non secure (and they are bypassed), and every device is tagged as Secure. I'm not sure what I am missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2016 14:58:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Enabling-TZASC-on-LS1021a/m-p/505781#M1116</guid>
      <dc:creator>vsiles</dc:creator>
      <dc:date>2016-04-29T14:58:53Z</dc:date>
    </item>
  </channel>
</rss>

