tests: ipc: pbuf: Disable data cache management

Packet buffer is designed to run writer and reader code on two CPUs.
The write function cannot be preempted by the read function in a CPU,
or the cache management could result in data corruption. In the tests,
the reader and the writer are executed on a single CPU. Disable data
cache management to prevent potential data corruption.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
Krzysztof Chruściński 2024-07-16 14:30:24 +02:00 committed by Carles Cufí
commit 70260720e9

View file

@ -5,3 +5,9 @@ CONFIG_ZTEST_SHUFFLE=y
CONFIG_IPC_SERVICE=y CONFIG_IPC_SERVICE=y
CONFIG_IPC_SERVICE_ICMSG=y CONFIG_IPC_SERVICE_ICMSG=y
CONFIG_PBUF=y CONFIG_PBUF=y
# pbuf is designed to run writer and reader code on two CPUs.
# The write function cannot be preempted by the read function in a CPU,
# or the cache management could result in data corruption.
# In the tests, the reader and the writer are executed on a single CPU.
# Disable data cache management to prevent potential data corruption.
CONFIG_CACHE_MANAGEMENT=n