Test update to resolve Zephyr issue #103893.
Zephyr SPI_EXTENDED_MODES is now marked EXPERIMENTAL and documented as
requiring more API changes. On our last Microchip XEC SPI QMSPI SPI driver
update we were instructured to remove SPI_EXTENDED_MODES support. We
forgot to update this test. We removed dual/quad tests and updated the
test case YAML. Dual and quad support will require developing a Zephyr
MSPI driver.
Signed-off-by: Scott Worley <scott.worley@microchip.com>
I2S bus specification 3.0 [1] updated terms "Master" and "Slave" to
"Controller" and "Target". This rename macros using these terms and
deprecates old names.
[1] https://www.nxp.com/docs/en/user-manual/UM11732.pdf
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
We added the Microchip mec_assy6941 and mec172xevb_assy6906 to the common
flash driver test. We use the SPI_NOR flash driver with the Microchip
XEC QMSPI-LDMA driver. The EVB has a SPI dongle attached with a Winbond
W25Q128JV 16 megabit SPI flash. We changed the name of QMSPI DT hardware
node to match the name at chip level.
Signed-off-by: Scott Worley <scott.worley@microchip.com>
Follow-up to PR# 102385.
Some occurrences of ${BOARD}${BOARD_QUALIFIERS} was missed in the
original alignment PR.
This commit adjusts the remaining occurrences to know include `/`.
Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
When CONFIG_INTEL_ADSP_IPC_OLD_INTERFACE is enabled, the clock
calibration test was registering the IPC message handler after sending
the first TIMESTAMP command. This caused a race condition where the
host's response would arrive during the k_msleep() before the handler
was set.
Without a registered handler, the old IPC glue layer's receive callback
sees handle_message == NULL, leaving msg_done unset. This prevents the
IPC backend from sending an acknowledgment to the host. The host then
blocks waiting for the ACK, causing subsequent TIMESTAMP requests to
time out.
Fix by moving intel_adsp_ipc_set_message_handler() call to before the
first message is sent, ensuring all incoming messages are properly
acknowledged even if the test doesn't need their data immediately.
Related to: #102103
Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
The smoke test IPC receive callbacks were not setting the msg_done flag
in the endpoint private data, preventing the ISR from acknowledging
received messages to the host. Without acknowledgment, the host would
not send subsequent messages, causing the tests to timeout waiting for
responses.
This patch updates both ipc_receive_cb() in hostipc.c and
clock_ipc_receive_cb() in clock.c to set priv_data->msg_done = true,
enabling immediate message acknowledgment by the ISR as documented in
the Intel ADSP host IPC backend.
Related to: #102103
Related to: #102106
Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
Add the target nrf54l15dk/nrf54l15/cpuapp as the integration platform
in the testcase yaml file.
Signed-off-by: Riadh Ghaddab <riadh.ghaddab@nordicsemi.no>
This patch updates the intel_adsp smoke tests to use the new host IPC
backend data model and APIs.
The host IPC smoke test now treats messages as a fixed two-word uint32_t
payload instead of using struct intel_adsp_ipc_msg and the
INTEL_ADSP_IPC_CB_* message types. The receive callback validates the
payload length and pointer, checks the header/payload values against the
expected RETURN_MSG_* constants, and sets msg_flag on receipt. The
test-specific intel_adsp_ipc_send_message() and
intel_adsp_ipc_send_message_sync() helpers are rewritten to send a
two-word payload via ipc_service_send(), and the synchronous helper
waits on the backend semaphore only when the send succeeds. A dedicated
done callback is registered via intel_adsp_ipc_set_done_handler() to
drive done_flag, and intel_adsp_ipc_complete() now completes RX by
calling ipc_service_release_rx_buffer() and asserting on failure.
Completion polling is aligned with the backend by using
ipc_service_get_tx_buffer_size().
The clock calibration smoke test is adapted in the same way. It now
includes the ipc_service and intel_adsp host IPC backend headers when
using the new interface, interprets incoming data as a two-word uint32_t
payload, validates the length and pointer, and stores the returned
timestamp from the extended payload word into the endpoint private data.
The rest of the test flow, including endpoint registration, timestamp
requests and clock rate checks, remains unchanged but runs on top of the
new IPC backend representation.
Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
Removing the esp32s3_devkitm as deprecated and redundant.
The esp32s3_devkitc has essentially the same functionality.
Signed-off-by: Marek Matej <marek.matej@espressif.com>
Remove duplicated #include directives within the same
preprocessor scope across the Zephyr tree.
Duplicates inside different #ifdef branches are preserved
as they may be intentional.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
Remove test from tests/boards/nrf/i2s/i2s_divider.
The i2s_divider test was relying on debug log from I2S driver.
With the recent NRFX updates log was removed.
Better test, that counts rising edges on I2S_LRCLK line was added
in downstream (https://github.com/nrfconnect/sdk-nrf/pull/26230).
Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
Currently only TWIM peripheral is verified against TWIS.
Add new test variant to verify nRF52 TWI peripheral as well.
Signed-off-by: Nikodem Kastelik <nikodem.kastelik@nordicsemi.no>
Several test sources used the misspelled string "Unsupported
configuraiton".
Fix the typo across all affected files to improve clarity and
consistency.
Updated files:
- tests/boards/nrf/rram_throttling/src/main.c
- tests/drivers/flash/common/src/main.c
- tests/drivers/flash/negative_tests/src/main.c
No functional change.
Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
arch_mem_coherent() is cache related so it is better to move it
under cache subsys. It is renamed to sys_cache_is_mem_coherent()
to reflect this change.
The only user of arch_mem_coherent() is Xtensa. However, it is
not an architecture feature. That's why it is moved to the cache
subsys.
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
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>