New nrfx release contains major rework of nrfx drivers
instantiation making it easier to integrate with dts nodes.
Now, nrfx driver instances can no longer be `const`
because they contain driver runtime state.
Additionally, all nrfx drivers return `errno` error codes
instead of deprecated `nrfx_err_t`.
Signed-off-by: Nikodem Kastelik <nikodem.kastelik@nordicsemi.no>
Add explicit bespoke_cfg_size parameter to the dai_config_set()
function and its underlying driver API to improve configuration
validation and security.
Changes:
- Add 'size_t size' parameter to dai_driver_api.config_set callback
- Update dai_config_set() inline wrapper to pass size parameter
- Update all DAI driver implementations:
- Intel: SSP, DMIC, HDA, ALH
- NXP: SAI, ESAI, MICFIL
- Add documentation for new size parameter
This change enables drivers to validate the size of bespoke
configuration data, preventing buffer overruns and improving
robustness of the DAI configuration interface.
All existing callers must be updated to pass the size of their
bespoke configuration structures.
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@intel.com>
Move DTS overlay files that modify test configuration
from boards sub-directory to the main application directory.
There is no 'i2c_speed_fast' board.
Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
Add reqired empty line as indicated by the compliance check.
Add License header.
Add information about GPIO loopbacks used by the test.
Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
xt-clang complains about the clock ratio difference is unsigned
when being fed to abs(), though GCC does not. So type cast that
to signed integer before feeding to abs(). Clock ratio could be
big enough to overflow signed 32-bit integer. So we first cast
it to be a signed 64-bit integer before substraction.
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
Check the address family of the packet before passing it to a ICMP
handler, to avoid scenarios where ICMPv4 packet is paseed to a ICMPv6
handler and vice versa.
Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
Verifies that the throttling is working for boards that enable
CONFIG_SOC_FLASH_NRF_THROTTLING
Signed-off-by: Riadh Ghaddab <riadh.ghaddab@nordicsemi.no>
Adds simplified i2s test for the following platforms:
- esp32_devkitc/esp32/procpu
- esp32s2_saola
Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
Reset cause API was expanded with two more reset causes.
These are RESET_BOOTLOADER and RESET_FLASH.
Add handling of RESET_BOOTLOADER and RESET_FLASH to reset_cause test.
Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
There were recent changes to nrf54h20dk and STM driver.
Align test accordingly:
- add Kconfig that boots Radio core,
- update expected timing results.
Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
This tests is failing in CI and at random locally.
While we understand why and how to fix it, let's disable it.
Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This updates the Intel Audio DSP smoke test to use the new
IPC API based on IPC message service. The old API is still
being tested for now until all users of the old API has
moved to the new one.
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This adds ACE boards to the allowed platforms so they can
be tested.
Note that this only adds boards that I have tested to run
correctly with the tests.
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
The 4th CPU test tries to gauge tight loop performance. However,
it has been observed occasionally that the calculated would go
over just a bit. The threshold was 3, and the observed ratio
has been bouncing between 2.9 and 3.1. So up the threshold
a little bit to account for that.
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
On ACE, the CPU halting requires the cooperation of the PM
subsys to set the CPU to SOFT_OFF. The mechanism has not
been implemented in the smoke test. So skip the halting test
on ACE for now.
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
The IPC is only needed for old hardware earlier than CAVS 2.5.
They are no longer supported in the tree as their board configs
have been removed. So there is no need to do IPC anymore.
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This removes the IPM test from the intel_adsp smoke test.
The IPM driver is not being used by SOF and is there simply
for this test. The host IPC functionality is also being tested
via test_host_ipc. The additional usage of mailbox in the test
does not provide much value since the mailbox is shared memory
between the DSP and the host. We would have bigger problems if
the shared memory does not work properly.
Removing the test is in preparation to removing the CAVS host
IPM driver. That is also a preparation to rewrite the host IPC
driver to the IPC API, and there is no need to maintain
another host IPC driver that is not used by SOF.
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
Add a test of the CONFIG_NATIVE_SIM_REBOOT functionality together
with the hw_info get_reset_cause() logic.
Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
Add stress test which validates that allocator is thread safe
and has no memory leaks.
Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
Added additional cleanups between tests, which fixed the issue
of a failing testcase on nRF54L15.
Signed-off-by: Michał Bainczyk <michal.bainczyk@nordicsemi.no>
- Fixed pin configuration for nRF54L15 (QDECs can use only port 1)
- Changed the way the test handles testing multiple instances
to make it possible to output quadrature signal to one QDEC
instance at a time.
Signed-off-by: Michał Bainczyk <michal.bainczyk@nordicsemi.no>
Render test settings more generic regarding clock options, in order
to better support new devices. Add ESP32-H2 testcase to rtc_clk suite.
Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
Add tests based on QSPI command register, this is the entry point even
before we test nRF70 internal memories.
Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Some SoCs might not have any VDD reference available.
Use internal 1.2V reference derived from VDD in this case.
Signed-off-by: Nikodem Kastelik <nikodem.kastelik@nordicsemi.no>