Age | Commit message (Collapse) | Author |
|
With split build, if TEST_NS_xLIH_IRQ are still used for Secure
building, then the corresponding test suites would be built as well.
This patche introduces the TFM_PARTITION_xLIH_TEST to indicate building
IRQ test support (test Partitions, drivers and so on) in SPE.
Change-Id: I57f174f7f17b4a32f03ede630338746e90708474
Signed-off-by: Kevin Peng <kevin.peng@arm.com>
|
|
Using timer interrupt to test FPU registers protection is not
efficient and direct. This patch involves dedicated test interrupts
respectively for NS and S, which get triggered by software (STIR)
instead of a timer. This change is applied on AN521 and Musca-S1
platforms.
Signed-off-by: Jianliang Shen <jianliang.shen@arm.com>
Change-Id: I3ce92e837fe62f94ce6fd068efedc547c5f6f3c3
|
|
1. Add functions for secure timer and non-secure timer control.
2. Add secure timer interrupt handler and non-secure timer interrupt
handler.
Signed-off-by: Feder Liang <Feder.Liang@arm.com>
Change-Id: Iac2a5ebc1673d735cb5093c9361590c51e75a59f
|
|
TF-M interactive test cases is going to be deprecated, remove
TFM_INTERACTIVE_TEST related code in TF-M.
Change-Id: I32c5f19a4b29dc52e47dda72c984ed149ac003d6
Signed-off-by: Shawn Shan <Shawn.Shan@arm.com>
|
|
Test_peripheral_access is going to be deprecated, remove
TFM_PERIPH_ACCESS_TEST related code in TF-M.
Change-Id: I15c26ddf5afacb8d46c929448c6a4718d1e04e7d
Signed-off-by: Shawn Shan <Shawn.Shan@arm.com>
|
|
To decrease the size of TF-M image so that it can work on a platform
with limited resource, the build configure should allow developers
to select one or more single test suites. The tf-m-test repo has
added some build control flags. These flags can be controlled with
"-D<FLAG>=ON" to turn on the related test suites' build. With the
build control flags are added in tf-m-tests repo, the cmake build
logic need to be refined. To make it easier to start single test
suite without TEST_NS or TEST_S, more conditions need to be added to
link tf-m-tests repo. Moreover, some test services should also
depend on the new single test flags.
By this patch, when TEST_S or TEST_NS is ON, all the secure or
non-secure test suites will run either. When single test configuration
like TEST_NS_XXX or TEST_S_XXX is ON, the single test suite will run
if its dependencies are configurated.
Signed-off-by: Jianliang Shen <jianliang.shen@arm.com>
Change-Id: I2ca5b400ddfee2832e0eaae49da529f1c2d70c98
|
|
Currently the FLIH test is only supported on AN519 and AN521
Change-Id: Ic34aee26d4db732bdf9fb72c9163dd164b1e688e
Signed-off-by: Kevin Peng <kevin.peng@arm.com>
|
|
This patch:
- Moves timer driver to SPRT. The timer driver only contain common
timer control logics, which are supposed to be shared between
Partitions. The accesses to different timers are controlled through
MMIO regions of the timer registers.
- Build plat_test.c when either TEST_S or TEST_NS is enabled.
plat_test.c is not part of Platform Partition but for test purpose.
- Add a clear interrupt interface for future use.
Change-Id: I756300b76a9b7061972336cb8ecafaba47f8a8de
Signed-off-by: Kevin Peng <kevin.peng@arm.com>
|
|
This patch:
- Replaces the tfm_irq_test_service_1 with the tfm_slih_test_service
- Docs update:
- Remove the out-of-date tfm_non-secure_interrupt_handling.rst
- Remove IRQ test part in core_test_services_integration_guide.rst
as core test does not participate in IRQ testing anymore.
Note:
The new SLIH testing does not support Library Model.
Change-Id: I578d43ca7a363cdcb298226cc9ebad5f7b66fb48
Signed-off-by: Kevin Peng <kevin.peng@arm.com>
|
|
Instead of generating from template. Also, update the macros used to
place symbols into a particular sections to match the new linker scripts.
Change-Id: I7b0f14687ba0bb4e6d2f1ffdfe70030738bfbec3
Signed-off-by: Raef Coles <raef.coles@arm.com>
|
|
This patch contains a test cases exercising the secure IRQ handling
feature of TF-M.
Details of the change:
* Add documentation on the tests
* Create new service which handles timer0 interrupts
* Link timer0 driver structures to IRQ test service
* Implement the testcases in the positive test suite, the new IRQ test
service and in TFM_SP_CORE_TEST_2
Change-Id: If7e3d1b57eac4de9ff6e01f0b04efd04bc443545
Signed-off-by: Mate Toth-Pal <mate.toth-pal@arm.com>
|
|
Add timer to the platform test interface so that it can be used from
the IRQ tests as an interrupt source.
Detailed changes:
* Add timer_cmsdk driver files to unpriv code
* Align the timer interrupt handler names in the startup assemblies
accross platforms
* Add timer handling function declarations in tfm_plat_test.h and
implement them in the platform directories
* Create platform data for timer0 in tfm_peripherals_def.h
* Add option to configure timer0 as secure peripheral in PPC
* Fix MUSCA_A and MUSCA_B1 cmake files for building timer driver
Change-Id: I04757d2a961e044218c78aa09b754aaf82ac8a35
Signed-off-by: Mate Toth-Pal <mate.toth-pal@arm.com>
|
|
Add abstraction for platform features that are used by the core tests.
This makes possible that platforms that do not support certain platform
features can mock the platform behaviour.
Detailed changes:
* Enable Core tests in MUSCA_A, MUSCA_B1 and AN524 platforms
* Add tfm_plat_test.h enumerating the test interface expected from
platform implementations by the Core Tests
* Move platform features used by Core tests to the platform directory
on MPS2 platforms
* Mock platform features used by Core tests in the platform directory
on MUSCA_A, MUSCA_B1 and AN524 platforms
* Link MT25QL device driver structure to TFM_SP_STORAGE partition so
that SST init can run in isolation level 3
Change-Id: I7385f34e364b8be330cf214b8f148affaa76613d
Signed-off-by: Mate Toth-Pal <mate.toth-pal@arm.com>
|