<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/coreboot/arm-trusted-firmware.git/bl32, branch topics/clang-format</title>
<subtitle>review.coreboot.org: arm-trusted-firmware.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/coreboot/arm-trusted-firmware.git/'/>
<entry>
<title>refactor(trf): enable FEAT_TRF for FEAT_STATE_CHECKED</title>
<updated>2023-02-27T18:04:14+00:00</updated>
<author>
<name>Andre Przywara</name>
<email>andre.przywara@arm.com</email>
</author>
<published>2022-11-17T17:30:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/coreboot/arm-trusted-firmware.git/commit/?id=fc8d2d3980352f92cf378155c1f4449b4a0ab4c0'/>
<id>fc8d2d3980352f92cf378155c1f4449b4a0ab4c0</id>
<content type='text'>
At the moment we only support FEAT_TRF to be either unconditionally
compiled in, or to be not supported at all.

Add support for runtime detection (ENABLE_TRF_FOR_NS=2), by splitting
is_feat_trf_present() into an ID register reading function and a second
function to report the support status. That function considers both
build time settings and runtime information (if needed), and is used
before we access TRF related registers.
Also move the context saving code from assembly to C, and use the new
is_feat_trf_supported() function to guard its execution.

The FVP platform decided to compile in support unconditionally (=1),
even though FEAT_TRF is an ARMv8.4 feature, so is not available with the
FVP model's default command line.
Change that to the now supported dynamic option (=2), so the right
decision can be made by the code at runtime.

Change-Id: Ia97b01adbe24970a4d837afd463dc5506b7295a3
Signed-off-by: Andre Przywara &lt;andre.przywara@arm.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
At the moment we only support FEAT_TRF to be either unconditionally
compiled in, or to be not supported at all.

Add support for runtime detection (ENABLE_TRF_FOR_NS=2), by splitting
is_feat_trf_present() into an ID register reading function and a second
function to report the support status. That function considers both
build time settings and runtime information (if needed), and is used
before we access TRF related registers.
Also move the context saving code from assembly to C, and use the new
is_feat_trf_supported() function to guard its execution.

The FVP platform decided to compile in support unconditionally (=1),
even though FEAT_TRF is an ARMv8.4 feature, so is not available with the
FVP model's default command line.
Change that to the now supported dynamic option (=2), so the right
decision can be made by the code at runtime.

Change-Id: Ia97b01adbe24970a4d837afd463dc5506b7295a3
Signed-off-by: Andre Przywara &lt;andre.przywara@arm.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>build: always prefix section names with `.`</title>
<updated>2023-02-20T18:29:33+00:00</updated>
<author>
<name>Chris Kay</name>
<email>chris.kay@arm.com</email>
</author>
<published>2023-02-14T11:30:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/coreboot/arm-trusted-firmware.git/commit/?id=da04341ed52d214139fe2d16667ef5b58c38e502'/>
<id>da04341ed52d214139fe2d16667ef5b58c38e502</id>
<content type='text'>
Some of our specialized sections are not prefixed with the conventional
period. The compiler uses input section names to derive certain other
section names (e.g. `.rela.text`, `.relacpu_ops`), and these can be
difficult to select in linker scripts when there is a lack of a
delimiter.

This change introduces the period prefix to all specialized section
names.

BREAKING-CHANGE: All input and output linker section names have been
 prefixed with the period character, e.g. `cpu_ops` -&gt; `.cpu_ops`.

Change-Id: I51c13c5266d5975fbd944ef4961328e72f82fc1c
Signed-off-by: Chris Kay &lt;chris.kay@arm.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Some of our specialized sections are not prefixed with the conventional
period. The compiler uses input section names to derive certain other
section names (e.g. `.rela.text`, `.relacpu_ops`), and these can be
difficult to select in linker scripts when there is a lack of a
delimiter.

This change introduces the period prefix to all specialized section
names.

BREAKING-CHANGE: All input and output linker section names have been
 prefixed with the period character, e.g. `cpu_ops` -&gt; `.cpu_ops`.

Change-Id: I51c13c5266d5975fbd944ef4961328e72f82fc1c
Signed-off-by: Chris Kay &lt;chris.kay@arm.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>build: clarify linker script generation</title>
<updated>2023-02-10T17:01:46+00:00</updated>
<author>
<name>Chris Kay</name>
<email>chris.kay@arm.com</email>
</author>
<published>2023-01-16T16:53:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/coreboot/arm-trusted-firmware.git/commit/?id=82274936374bf630bf5256370e93a531fdda6372'/>
<id>82274936374bf630bf5256370e93a531fdda6372</id>
<content type='text'>
The following build system variables have been renamed:

- `LINKERFILE` -&gt; `DEFAULT_LINKER_SCRIPT`
- `BL_LINKERFILE` -&gt; `DEFAULT_LINKER_SCRIPT_SOURCE`
- `&lt;IMAGE&gt;_LINKERFILE` -&gt; `&lt;IMAGE&gt;_DEFAULT_LINKER_SCRIPT_SOURCE`

These new names better reflect how each variable is used:

1. the default linker script is passed via `-dT` instead of `-T`
2. linker script source files are first preprocessed

Additionally, linker scripts are now placed in the build directory
relative to where they exist in the source directory. For example,
the `bl32/sp_min/sp_min.ld.S` would now preprocess to
`sp_min/sp_min.ld` instead of just `bl32.ld`

BREAKING-CHANGE: The `LINKERFILE`, `BL_LINKERFILE` and
 `&lt;IMAGE_LINKERFILE&gt;` build system variables have been renamed. See the
 commit message for more information.

Change-Id: If8cef65dcb8820e8993736702c8741e97a66e6cc
Signed-off-by: Chris Kay &lt;chris.kay@arm.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The following build system variables have been renamed:

- `LINKERFILE` -&gt; `DEFAULT_LINKER_SCRIPT`
- `BL_LINKERFILE` -&gt; `DEFAULT_LINKER_SCRIPT_SOURCE`
- `&lt;IMAGE&gt;_LINKERFILE` -&gt; `&lt;IMAGE&gt;_DEFAULT_LINKER_SCRIPT_SOURCE`

These new names better reflect how each variable is used:

1. the default linker script is passed via `-dT` instead of `-T`
2. linker script source files are first preprocessed

Additionally, linker scripts are now placed in the build directory
relative to where they exist in the source directory. For example,
the `bl32/sp_min/sp_min.ld.S` would now preprocess to
`sp_min/sp_min.ld` instead of just `bl32.ld`

BREAKING-CHANGE: The `LINKERFILE`, `BL_LINKERFILE` and
 `&lt;IMAGE_LINKERFILE&gt;` build system variables have been renamed. See the
 commit message for more information.

Change-Id: If8cef65dcb8820e8993736702c8741e97a66e6cc
Signed-off-by: Chris Kay &lt;chris.kay@arm.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>style: normalize linker script code style</title>
<updated>2023-02-10T17:01:46+00:00</updated>
<author>
<name>Chris Kay</name>
<email>chris.kay@arm.com</email>
</author>
<published>2022-09-29T13:36:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/coreboot/arm-trusted-firmware.git/commit/?id=f90fe02f061b8a203391e566682221396b656c6f'/>
<id>f90fe02f061b8a203391e566682221396b656c6f</id>
<content type='text'>
There are a variety of code styles used by the various linker scripts
around the code-base. This change brings them in line with one another
and attempts to make the scripts more friendly for skim-readers.

Change-Id: Ibee2afad0d543129c9ba5a8a22e3ec17d77e36ea
Signed-off-by: Chris Kay &lt;chris.kay@arm.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There are a variety of code styles used by the various linker scripts
around the code-base. This change brings them in line with one another
and attempts to make the scripts more friendly for skim-readers.

Change-Id: Ibee2afad0d543129c9ba5a8a22e3ec17d77e36ea
Signed-off-by: Chris Kay &lt;chris.kay@arm.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(tsp): loop / crash if mmap of region fails</title>
<updated>2023-02-10T13:08:13+00:00</updated>
<author>
<name>Thomas Viehweger</name>
<email>Thomas.Viehweger@rohde-schwarz.com</email>
</author>
<published>2023-01-23T10:26:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/coreboot/arm-trusted-firmware.git/commit/?id=8c353e0058e95cfa20c9a760ebd0908a9a9aa1c1'/>
<id>8c353e0058e95cfa20c9a760ebd0908a9a9aa1c1</id>
<content type='text'>
In test_memory_send the variable i is of unsigned type, so
it is never negative. If i is 0, the result of i-- is
4294967295. Don't know what happens if trying to
access composite-&gt;address_range_array[4294967295].
Made i a signed integer.

Signed-off-by: Thomas Viehweger &lt;Thomas.Viehweger@rohde-schwarz.com&gt;
Change-Id: I8b4e532749b5e86e4b5acd238e72c3f88e309ff2
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In test_memory_send the variable i is of unsigned type, so
it is never negative. If i is 0, the result of i-- is
4294967295. Don't know what happens if trying to
access composite-&gt;address_range_array[4294967295].
Made i a signed integer.

Signed-off-by: Thomas Viehweger &lt;Thomas.Viehweger@rohde-schwarz.com&gt;
Change-Id: I8b4e532749b5e86e4b5acd238e72c3f88e309ff2
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(tsp): use verbose for power logs</title>
<updated>2022-12-08T12:30:24+00:00</updated>
<author>
<name>Shruti Gupta</name>
<email>shruti.gupta@arm.com</email>
</author>
<published>2022-12-08T11:40:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/coreboot/arm-trusted-firmware.git/commit/?id=3354915fff2ad5f97551c22a44a90f4ff7b7cc9b'/>
<id>3354915fff2ad5f97551c22a44a90f4ff7b7cc9b</id>
<content type='text'>
TSP use verbose for cpu suspend resume logs

Signed-off-by: Shruti Gupta &lt;shruti.gupta@arm.com&gt;
Change-Id: Ic1d3706feec6361946dd5c0d2bea90a2dd7a2d02
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
TSP use verbose for cpu suspend resume logs

Signed-off-by: Shruti Gupta &lt;shruti.gupta@arm.com&gt;
Change-Id: Ic1d3706feec6361946dd5c0d2bea90a2dd7a2d02
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(el3-spmc): fix coverity scan warnings</title>
<updated>2022-12-08T12:30:10+00:00</updated>
<author>
<name>Shruti Gupta</name>
<email>shruti.gupta@arm.com</email>
</author>
<published>2022-08-25T13:22:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/coreboot/arm-trusted-firmware.git/commit/?id=1543d17b9876add1cb89c1f5ffe0e6a129f5809e'/>
<id>1543d17b9876add1cb89c1f5ffe0e6a129f5809e</id>
<content type='text'>
Validate emad descriptor integrity before accessing.
Check for NULL pointer access.

Signed-off-by: Shruti Gupta &lt;shruti.gupta@arm.com&gt;
Change-Id: Id4ff3e5d88be95ca8d067378e344947880ec984b
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Validate emad descriptor integrity before accessing.
Check for NULL pointer access.

Signed-off-by: Shruti Gupta &lt;shruti.gupta@arm.com&gt;
Change-Id: Id4ff3e5d88be95ca8d067378e344947880ec984b
</pre>
</div>
</content>
</entry>
<entry>
<title>feat(debug): add helpers for aborts on AARCH32</title>
<updated>2022-10-03T12:42:40+00:00</updated>
<author>
<name>Yann Gautier</name>
<email>yann.gautier@st.com</email>
</author>
<published>2019-02-15T15:42:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/coreboot/arm-trusted-firmware.git/commit/?id=6dc5979a6cb2121e4c16e7bd62e24030e0f42755'/>
<id>6dc5979a6cb2121e4c16e7bd62e24030e0f42755</id>
<content type='text'>
New helper functions are created to handle data &amp; prefetch aborts
in AARCH32. They call platform functions, just like what
report_exception is doing.
As extended MSR/MRS instructions (to access lr_abt in monitor mode)
are only available if CPU (Armv7) has virtualization extension,
the functions branch to original report_exception handlers if this is
not the case.
Those new helpers are created mainly to distinguish data and prefetch
aborts, as they both share the same mode.
This adds 40 bytes of code.

Change-Id: I5dd31930344ad4e3a658f8a9d366a87a300aeb67
Signed-off-by: Yann Gautier &lt;yann.gautier@st.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
New helper functions are created to handle data &amp; prefetch aborts
in AARCH32. They call platform functions, just like what
report_exception is doing.
As extended MSR/MRS instructions (to access lr_abt in monitor mode)
are only available if CPU (Armv7) has virtualization extension,
the functions branch to original report_exception handlers if this is
not the case.
Those new helpers are created mainly to distinguish data and prefetch
aborts, as they both share the same mode.
This adds 40 bytes of code.

Change-Id: I5dd31930344ad4e3a658f8a9d366a87a300aeb67
Signed-off-by: Yann Gautier &lt;yann.gautier@st.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>feat(tsp): enable test cases for EL3 SPMC</title>
<updated>2022-08-25T13:57:20+00:00</updated>
<author>
<name>Marc Bonnici</name>
<email>marc.bonnici@arm.com</email>
</author>
<published>2021-12-23T20:14:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/coreboot/arm-trusted-firmware.git/commit/?id=15ca1ee342a4dcd8a73a4ae158d245cd4266c832'/>
<id>15ca1ee342a4dcd8a73a4ae158d245cd4266c832</id>
<content type='text'>
Introduce initial test cases to the TSP which are
designed to be exercised by the FF-A Test Driver
in the Normal World. These have been designed to
test basic functionality of the EL3 SPMC.

These tests currently ensure the following functionality:
  - Partition discovery.
  - Direct messaging.
  - Communication with a Logical SP.
  - Memory Sharing and Lending ABIs
  - Sharing of contiguous and non-contiguous memory regions.
  - Memory region descriptors spread of over multiple
    invocations.

Signed-off-by: Marc Bonnici &lt;marc.bonnici@arm.com&gt;
Signed-off-by: Shruti Gupta &lt;shruti.gupta@arm.com&gt;
Change-Id: Iaee4180aa18d6b7ac7b53685c6589f0ab306e876
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Introduce initial test cases to the TSP which are
designed to be exercised by the FF-A Test Driver
in the Normal World. These have been designed to
test basic functionality of the EL3 SPMC.

These tests currently ensure the following functionality:
  - Partition discovery.
  - Direct messaging.
  - Communication with a Logical SP.
  - Memory Sharing and Lending ABIs
  - Sharing of contiguous and non-contiguous memory regions.
  - Memory region descriptors spread of over multiple
    invocations.

Signed-off-by: Marc Bonnici &lt;marc.bonnici@arm.com&gt;
Signed-off-by: Shruti Gupta &lt;shruti.gupta@arm.com&gt;
Change-Id: Iaee4180aa18d6b7ac7b53685c6589f0ab306e876
</pre>
</div>
</content>
</entry>
<entry>
<title>feat(tsp): add ffa_helpers to enable more FF-A functionality</title>
<updated>2022-08-25T12:37:19+00:00</updated>
<author>
<name>Marc Bonnici</name>
<email>marc.bonnici@arm.com</email>
</author>
<published>2021-12-23T20:14:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/coreboot/arm-trusted-firmware.git/commit/?id=e9b1f300a974a7e82190b95899c3128b73088488'/>
<id>e9b1f300a974a7e82190b95899c3128b73088488</id>
<content type='text'>
Include ffa_helpers originally taken from the TF-A Tests repo
to provide support for additional FF-A functionality.

Change-Id: Iacc3ee270d5e3903f86f8078ed915d1e791c1298
Signed-off-by: Marc Bonnici &lt;marc.bonnici@arm.com&gt;
Signed-off-by: Shruti Gupta &lt;shruti.gupta@arm.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Include ffa_helpers originally taken from the TF-A Tests repo
to provide support for additional FF-A functionality.

Change-Id: Iacc3ee270d5e3903f86f8078ed915d1e791c1298
Signed-off-by: Marc Bonnici &lt;marc.bonnici@arm.com&gt;
Signed-off-by: Shruti Gupta &lt;shruti.gupta@arm.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
