Re: [edk2] ARM section mapping in ArmPkg/Include/Chipset/ArmV7.h

Subject: Re: [edk2] ARM section mapping in ArmPkg/Include/Chipset/ArmV7.h

From: Andrei Warkentin <andreiw@motorola.com>

To: edk2-devel@lists.sourceforge.net

Date: 2011-01-10 05:49:16

No problem :). I just sent the relevant email to
michaelkrau@users.sourceforge.net

Anyway, I'll submit a patch for the NS bit as soon as I get verified, then.

Thanks again,
A

On Sun, Jan 9, 2011 at 9:32 PM, Andrew Fish  wrote:
> Andrei folks are working on group thing, but contributing to edk2 require=
s signing the contributors agreement (http://sourceforge.net/apps/mediawiki=
/tianocore/index.php?title=3DContribution_Agreement). It seems asking lawye=
rs slows things down.
>
> Sounds like something that needs some work.
>
> Andrew Fish
>
>
>
>
>
> On Jan 9, 2011, at 7:12 PM, Andrei Warkentin wrote:
>
>> Dear Group (and/or Andrew, probably),
>>
>> I was playing around with bringing-up EDK2 on a platform with
>> Cortex-A9 MPCore (as soon as I get things prettier I'll start
>> submitting changes for review).
>>
>> I noticed that all the TT_DESCRIPTOR_SECTION_* defines include
>> TT_DESCRIPTOR_SECTION_NS_NON_SECURE, marking accesses as being done as
>> "non-secure".
>>
>> Directly from ARM:
>>>> The NS attribute is a TrustZone extension to the V6 MMU. It is specifi=
ed in the L1 descriptors, in position 19 for sections and
>>>> supersections, and in position 3 for coarse pages. It defines if the t=
argeted memory region corresponding to the page is Secure
>>>> or Non-secure, that is if this memory region is accessed with Secure o=
r with Non-secure rights. This bit is ignored in the
>>>> Non-secure world.
>>
>> Was this by design?
>>
>> With the TT_DESCRIPTOR_SECTION_NS_NON_SECURE for each section, I
>> couldn't access devices mapped in the CPU private memory region - in
>> particular, global timer and GIC (cpu interface + interrupt
>> distributor). And while I can bring the global/private =A0timer back by
>> allowing NS accesses inside the SCU NSAC register, the GIC was not
>> really accessible.
>>
>> I patched my header removing the flag, and I'm happy. Yet, if NS
>> accesses are desired at all, they should be exposed as an attribute in
>> that memory table parsed by FillTranslationTable inside ArmLib.
>>
>> What do you think?
>> A
>>
>> ------------------------------------------------------------------------=
------
>> Gaining the trust of online customers is vital for the success of any co=
mpany
>> that requires sensitive data to be transmitted over the Web. =A0 Learn h=
ow to
>> best implement a security strategy that keeps consumers' information sec=
ure
>> and instills the confidence they need to proceed with transactions.
>> http://p.sf.net/sfu/oracle-sfdevnl
>> _______________________________________________
>> edk2-devel mailing list
>> edk2-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/edk2-devel
>
>
> -------------------------------------------------------------------------=
-----
> Gaining the trust of online customers is vital for the success of any com=
pany
> that requires sensitive data to be transmitted over the Web. =A0 Learn ho=
w to
> best implement a security strategy that keeps consumers' information secu=
re
> and instills the confidence they need to proceed with transactions.
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/edk2-devel
>

---------------------------------------------------------------------------=
---
Gaining the trust of online customers is vital for the success of any compa=
ny
that requires sensitive data to be transmitted over the Web.   Learn how to =

best implement a security strategy that keeps consumers' information secure =

and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl =

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel