aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-05-19cactus: map memory regions, used as RX/TX buffers in SPMManish Pandey
To demonstrate implementation of memory-regions in SPM create RX/TX buffers for each cactus VM. A VM will only map its allocated RX/TX memory region. The RX/TX regions start at 0x7200000 in Trusted DRAM. Each RX/TX buffer pair in a VM will be of size 2 pages one for each of them. Signed-off-by: Manish Pandey <manish.pandey2@arm.com> Change-Id: I7d9dc5d82415d9543d4b9583ed6dca0d1f40b1cb
2020-05-15SPCI is now called PSA FF-AJ-Alves
SPCI is renamed as PSA FF-A which stands for Platform Security Architecture Firmware Framework for A class processors. This patch replaces the occurrence of SPCI with PSA FF-A(in documents) or simply FFA(in code). Signed-off-by: J-Alves <joao.alves@arm.com> Change-Id: I17728c1503312845944a5ba060c252c2b98f3e91
2020-05-11Merge "Add test case for SMCCC_ARCH_SOC_ID feature"Mark Dykes
2020-04-29Add test case for SMCCC_ARCH_SOC_ID featureManish V Badarkhe
Added test case for "SMCCC_ARCH_SOC_ID" SMC call. This SMC call is used to retrieve SOC version and SOC revision Test execution output is as below: > Executing 'SMCCC_ARCH_SOC_ID test' TEST COMPLETE Passed SOC Rev is not implemented SOC Ver = 0x43b0000 Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com> Change-Id: I48668ce22bb5d5767dadb42ce9526d77fd916bed
2020-04-28Merge "Trim down the top-level readme file"Sandrine Bailleux
2020-04-28Trim down the top-level readme fileSandrine Bailleux
The main TF-A Tests documentation on ReadTheDocs does not use the top-level readme file. However, as explained in commit f6ee8fbcef6e ("Revert "Remove unused top-level readme file""), we still want to keep it because it is the page displayed on https://git.trustedfirmware.org/TF-A/tf-a-tests.git/about. That said, this readme file does not need to provide such detailed information, instead it can simply be a landing page providing a brief overview of the project and redirecting the reader to RTD for further information. Revisit the top-level readme file in this way, and also fix/update a number of broken/out-dated links in it. Change-Id: If53cfa9bd0bf2cba044883bb7ba5e5114bfb2bf8 Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
2020-04-28Merge "Update link to SMCCC specification"Sandrine Bailleux
2020-04-28Merge "doc: Explain how to locally build the documentation"Sandrine Bailleux
2020-04-28doc: Explain how to locally build the documentationSandrine Bailleux
Add a document that provides instructions on how to build a rendered version of the documentation using the Sphinx tool. Change-Id: I57159ec867a3ba7e003e7c7cd6ac53fb190356f2 Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
2020-04-27Update link to SMCCC specificationSandrine Bailleux
The feature overview page points to the revision B published in November 2016, update the link to point to the latest version (currently 1.2 published in March 2020). Remove the link from implementing-tests.rst, as it is not referenced in the page. Change-Id: I9ac12eba39d33914bfc2474a5a9851e628010349 Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
2020-04-27Merge changes I97786b89,I38e8c5c9,Ia049f20fOlivier Deprez
* changes: cactus: select different stdout device at runtime pl011: allow alternate stdout to be used cactus: do not compile irrelevant test files
2020-04-27cactus: select different stdout device at runtimeManish Pandey
cactus is used as both primary and secondary VM and for debug logging primary VM can access to UART while secodary VM's use hypervisor call to SPM. Based on VM id it will be decided whether to use UART or hypervisor call for debug logging. Signed-off-by: Manish Pandey <manish.pandey2@arm.com> Change-Id: I97786b893c0156815969692582b4de62c1b568fd
2020-04-27pl011: allow alternate stdout to be usedManish Pandey
Till now only pl011 UART is available stdout but there is a usecase to redirect it to other channel. This patch decouples console_putc implementation from pl011. Signed-off-by: Manish Pandey <manish.pandey2@arm.com> Change-Id: I38e8c5c90421fad2425228f407e6f29bdf6b08c7
2020-04-27cactus: do not compile irrelevant test filesManish Pandey
Now Cactus image is only used for showcasing SPCI Beta1 spec features, however there are some residual tests(related with SPRT) which are no more relevant. Signed-off-by: Manish Pandey <manish.pandey2@arm.com> Change-Id: Ia049f20f47c8d68d84b25a424d6a064592c3b0af
2020-04-22Merge "Revert "Remove unused top-level readme file""Sandrine Bailleux
2020-04-22Revert "Remove unused top-level readme file"Sandrine Bailleux
This reverts commit fbf26ee13a2f8fde77cb793e9faf998e17135e2b. The readme file removed by this commit is indeed not used by ReadTheDocs but it is the one displayed on: https://git.trustedfirmware.org/TF-A/tf-a-tests.git/about Change-Id: I267a247bb32c570e254553d65b93bf70cdaf76e4 Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
2020-04-21Merge "Add support for documentation build as a target in Makefile"Sandrine Bailleux
2020-04-21Merge changes from topic "sb/doc-fixes"Sandrine Bailleux
* changes: Update list of maintainers Remove unused top-level readme file
2020-04-21Update list of maintainersSandrine Bailleux
Change-Id: I9e53651762a99b02d07a94d8ef1807d9be0a777e Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
2020-04-21Add support for documentation build as a target in MakefileSandrine Bailleux
Command to build HTML-formatted pages from docs: > make doc Change-Id: I63938aaf3913126ab9036a6acaaf786a1199aef2 Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
2020-04-21Remove unused top-level readme fileSandrine Bailleux
As explained in the commit message of c595384d1db7 ("doc: Copy readme content to docs/index.rst"), the docs/index.rst file is the new landing page/entry point for reading the docs. The top-level readme file can be removed, now that the docs layout have been restructured. Change-Id: I591e1800500878722c6dbc6be1af704290f82cf3 Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
2020-04-21Merge changes from topic "sphinx-doc"Sandrine Bailleux
* changes: doc: Update link formats doc: Update page content after re-arrangement doc: Sync common content with TF-A doc: Move content from Porting Guide doc: Migrate content from User Guide and update it doc: Move tools info to Getting Started chapter doc: Move content to new About chapter doc: Copy readme content to docs/index.rst
2020-04-20Merge "Incrementing the minor version to reflect upcoming v2.3 release"v2.3Mark Dykes
2020-04-20doc: Update link formatsJimmy Brisson
Use docutils/Sphinx-type linking with the :ref: keyword where possible, instead of direct links to files. As part of this patch some external links have been updated too, especially those that point to the TF-A docs. Some link targets are no longer valid but can be restored after the TF-A User Guide is split up. Change-Id: I328d5141cf9b32471bf669bfc0191e8f6f883a48 Signed-off-by: Paul Beesley <paul.beesley@arm.com> Signed-off-by: Jimmy Brisson <jimmy.brisson@arm.com>
2020-04-20doc: Update page content after re-arrangementJimmy Brisson
This patch modifies the content of existing documents now that it has been moved around. Some of the content requires updating to make sense in its new location, for example. Other content may simply be out of date. Change-Id: I8dfa527e1d1f1520cefd21066802451352b573d2 Signed-off-by: Paul Beesley <paul.beesley@arm.com> Signed-off-by: Jimmy Brisson <jimmy.brisson@arm.com>
2020-04-20doc: Sync common content with TF-AJimmy Brisson
Some information, such as contact details, is shared between TF-A and the TF-A Tests. Bring this into line with what is in the TF-A repo. Change-Id: I910e229a93da67c85d70c633d5a4597a6a788b50 Signed-off-by: Paul Beesley <paul.beesley@arm.com> Signed-off-by: Jimmy Brisson <jimmy.brisson@arm.com>
2020-04-20doc: Move content from Porting GuideJimmy Brisson
The Porting Guide document is broken down into separate, per-topic documents that all live under the new "Porting" chapter. Change-Id: I269fa06cbf6544ce3c76700d1fcf3a669793c483 Signed-off-by: Paul Beesley <paul.beesley@arm.com> Signed-off-by: Jimmy Brisson <jimmy.brisson@arm.com>
2020-04-20doc: Migrate content from User Guide and update itJimmy Brisson
The User Guide document holds many different bits of information that are not always related to each other. These are moved out into files where information is grouped tightly together. This also updates build instructions and environment variable instructions to link to the relevent parts of the TF-A user guide and use more recent versions of compiler, respetively. Change-Id: Iace851f93c7dea8f154ae52a2665dd599f2e5d72 Signed-off-by: Paul Beesley <paul.beesley@arm.com> Signed-off-by: Jimmy Brisson <jimmy.brisson@arm.com>
2020-04-20doc: Move tools info to Getting Started chapterJimmy Brisson
The Getting Started chapter will hold information on requirements and on performing initial set-up and build activities. Change-Id: Iacf14a049b20f59c84aeaefa1271255ed60a8a5b Signed-off-by: Paul Beesley <paul.beesley@arm.com> Signed-off-by: Jimmy Brisson <jimmy.brisson@arm.com>
2020-04-20doc: Move content to new About chapterJimmy Brisson
This new chapter is created to hold project-related info such as methods of contact, supported platforms, and so on. Change-Id: Ifece3a8d9ba7f7862416a0c81a8707833da4aec7 Signed-off-by: Paul Beesley <paul.beesley@arm.com> Signed-off-by: Jimmy Brisson <jimmy.brisson@arm.com>
2020-04-20doc: Copy readme content to docs/index.rstJimmy Brisson
The docs/index.rst file is the new landing page / entry point for reading the docs so the top-level content needs to be copied there. The existing content in readme.rst cannot be modified to point to the new page until the hosted copy of the docs has gone live (in order to have a working URL). Change-Id: Ifa9e65d463c2887bbd53f7224aa803796aeec68f Signed-off-by: Paul Beesley <paul.beesley@arm.com> Signed-off-by: Jimmy Brisson <jimmy.brisson@arm.com>
2020-04-19Incrementing the minor version to reflect upcoming v2.3 releaseMadhukar Pappireddy
Signed-off-by: Madhukar Pappireddy <madhukar.pappireddy@arm.com> Change-Id: Iac2f428490066bf7629f45c781d145298ec50524
2020-04-16Merge "Updated change log and readme.rst files for upcoming v2.3 release"v2.3-rc2Mark Dykes
2020-04-09Updated change log and readme.rst files for upcoming v2.3 releaseMadhukar Pappireddy
Signed-off-by: Madhukar Pappireddy <madhukar.pappireddy@arm.com> Change-Id: Ide56f234752ede1d998bdebd31bf39e0ac7105f9
2020-03-31Merge "FVP: Re-enable "Stats test cases after system suspend" test"v2.3-rc1v2.3-rc0Sandrine Bailleux
2020-03-30FVP: Re-enable "Stats test cases after system suspend" testZelalem
The issue with the test has been fixed with the TF-A patch: https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/3778 so re-enable it. Signed-off-by: Zelalem <zelalem.aweke@arm.com> Change-Id: Ie394b596c7da504c74c684af3ef5f6065a05eef9
2020-03-27Merge "tftf: spci: probe if SPMC is OP-TEE at S-EL1"Manish Pandey
2020-03-26tftf: spci: probe if SPMC is OP-TEE at S-EL1Olivier Deprez
For pre-Armv8.4 platform, the supported model is that SPMC runs at S-EL1. The candidate is OP-TEE with SPCI protocol adaptation. This patch performs a version check through direct messaging and determines if OP-TEE runs as SPMC by checking version responses. If this does not match, then it assumes SPMC runs at S-EL2 with two Cactus instances running at S-EL1. Signed-off-by: Olivier Deprez <olivier.deprez@arm.com> Change-Id: I34194b6e8b3d447a25f2153bbac1be2631cd7a5e
2020-03-23Merge changes from topic "od/spm"Manish Pandey
* changes: cactus: generate JSON file required by TF-A tftf: re-introduce spm tests in the flow cactus: update sample manifest to SPCI Beta1 format cactus: add symbols relocation fixup cactus: update build options and memory map to make it PIE cactus: update to SPCI Beta1 and add sample direct messaging test tftf: SPCI Beta1 add direct messaging test tftf: update SPCI svc header to latest Beta1 spec tftf: provide hvc conduit facility
2020-03-23cactus: generate JSON file required by TF-AManish Pandey
Generate JSON file which is being passed as "SP_LAYOUT_FILE" build parameter to TF-A build. Two instances of cactus is used to demonstrate functioning of multiple SP's. cactus-secondary dts is same as cactus dts except for UUID and load address. Signed-off-by: Manish Pandey <manish.pandey2@arm.com> Change-Id: Ib6d8f7d5d4894495754da0ce39f663263eeb182f
2020-03-23tftf: re-introduce spm tests in the flowOlivier Deprez
Signed-off-by: Olivier Deprez <olivier.deprez@arm.com> Change-Id: I3a80e023c71426605abb13303d466a9b93f3123e
2020-03-23cactus: update sample manifest to SPCI Beta1 formatOlivier Deprez
Notice, the dtb generation wrapper script had a provision to automatically generate an "extra" memory description section. This will be revisited later when SP boot time memory region is implemented in SPM. Signed-off-by: Olivier Deprez <olivier.deprez@arm.com> Change-Id: I4fb9e23004871d74eee4a1d1f4be0826695e3e9f
2020-03-23cactus: add symbols relocation fixupOlivier Deprez
Signed-off-by: Olivier Deprez <olivier.deprez@arm.com> Change-Id: Ibde8aadecf6ae6c320d01ee2acab9c3c8db3859d
2020-03-23cactus: update build options and memory map to make it PIEOlivier Deprez
Signed-off-by: Olivier Deprez <olivier.deprez@arm.com> Change-Id: I9287361d2a4c81954fae715fef6ba5cc57cc10e0
2020-03-23cactus: update to SPCI Beta1 and add sample direct messaging testOlivier Deprez
The scenario is: TFTF (acting as an "hypervisor" at NS-EL2) sends a direct message request to an SP targetting its SP ID. SPMD/SPMC relays the message down to SP. SP extracts the message payload, amends it and sends a direct message response to TFTF that SPMC/SPMD relay back to TFTF. This sample SP can be instantiated into multiple SPs. The early main entry flow discriminates the first VM from other secondary VMs by getting its running id through SPCI_ID_GET. The SP runs an infinite message loop and waits for a new message by calling SPCI_MSG_WAIT. Notice SPCI_MSG_WAIT is also the hint to SPMD that the SP initialized properly. About logging, only PVM for now has direct access to UART. 2nd VMs must use the debug log hypervisor call. Signed-off-by: Olivier Deprez <olivier.deprez@arm.com> Change-Id: I001261c3f54e0bc217e43fca6812d6cda1ac4430
2020-03-20tftf: SPCI Beta1 add direct messaging testOlivier Deprez
This patch strips out former SPCI Alpha sample test code. Removing SPRT references will be done in another coming patch. Version check is adapted to SPCI Beta1. Version is now returned in x2. The first test is a direct messaging test using SPCI_MSG_SEND_DIRECT_REQ targetting a bare-metal cactus SP. TFTF expects a response from the SP returning with SPCI_MSG_SEND_DIRECT_RESP. Note: this patch also provides an initial SPCI_RUN interface. This API may not be used in the mid-term because VM to SP communication is supposed to be done only through direct messaging. Though the SPM boot-up for now is only launching the first SP in the list of declared SP in SPMC manifest. In order to make 2nd-VM ready, TFTF has to "boot-up" the SP through a single SPCI_RUN invocation till it reaches SPCI_MSG_WAIT in the SP. Once SPM implements boot up through all SPs, this SPCI_RUN invocation will no longer be required. Signed-off-by: Olivier Deprez <olivier.deprez@arm.com> Change-Id: I141abd3e348409b3d34a911d0552570f49e85846
2020-03-20tftf: update SPCI svc header to latest Beta1 specOlivier Deprez
Signed-off-by: Olivier Deprez <olivier.deprez@arm.com> Change-Id: I5b70debe318fe1505c6d56ea347e6c09d1bf9247
2020-03-19tftf: provide hvc conduit facilityOlivier Deprez
Signed-off-by: Olivier Deprez <olivier.deprez@arm.com> Change-Id: I3ad6e6767c2ca915f4a4fe8c5accc07e3e255387
2020-03-19Merge "Add a .gitreview file for convenience"Sandrine Bailleux
2020-03-13Add a .gitreview file for convenienceSandrine Bailleux
Change-Id: I6d6ad62ca9979495ce46019f1a354dd36b4fec1e Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>