Skip to content

Commit

Permalink
tests: drivers: uart_async_api: fix userspace fault
Browse files Browse the repository at this point in the history
Updated overlay files to test using nocache.
and run outside of usersapce mode to avoid
inaccessible memory regions when using nocache on RT parts.
Also updated testcase file to reflect nocache testing.

Signed-off-by: Emilio Benavente <emilio.benavente@nxp.com>
  • Loading branch information
EmilioCBen authored and MaureenHelm committed Sep 30, 2024
1 parent 57f0894 commit a6ed05e
Show file tree
Hide file tree
Showing 11 changed files with 9 additions and 61 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

/ {
chosen {
zephyr,sram = &dtcm;
};
};

dut: &lpuart4 {
status = "okay";
current-speed = <115200>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

/ {
chosen {
zephyr,sram = &dtcm;
};
};

dut: &lpuart4 {
status = "okay";
current-speed = <115200>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

/ {
chosen {
zephyr,sram = &dtcm;
};
};

dut: &lpuart2 {
status = "okay";
current-speed = <115200>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

/ {
chosen {
zephyr,sram = &dtcm;
};
};

dut: &lpuart2 {
status = "okay";
current-speed = <115200>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

/ {
chosen {
zephyr,sram = &dtcm;
};
};

dut: &lpuart3 {
status = "okay";
current-speed = <115200>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

/ {
chosen {
zephyr,sram = &dtcm;
};
};

dut: &lpuart3 {
status = "okay";
current-speed = <115200>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

/ {
chosen {
zephyr,sram = &dtcm;
};
};

dut: &lpuart3 {
status = "okay";
current-speed = <115200>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

/ {
chosen {
zephyr,sram = &dtcm;
};
};

dut: &lpuart3 {
status = "okay";
current-speed = <115200>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

/ {
chosen {
zephyr,sram = &dtcm;
};
};

dut: &lpuart2 {
status = "okay";
current-speed = <115200>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

/ {
chosen {
zephyr,sram = &dtcm;
};
};

dut: &lpuart2 {
status = "okay";
current-speed = <115200>;
Expand Down
10 changes: 9 additions & 1 deletion tests/drivers/uart/uart_async_api/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,17 @@ tests:
integration_platforms:
- qemu_cortex_m0
drivers.uart.async_api.lpuart:
filter: CONFIG_SERIAL_SUPPORT_ASYNC and CONFIG_UART_MCUX_LPUART
filter: CONFIG_SERIAL_SUPPORT_ASYNC and CONFIG_UART_MCUX_LPUART and not CONFIG_CPU_HAS_DCACHE
harness: ztest
depends_on: dma
drivers.uart.async_api.lpuart.rt_nocache:
filter: CONFIG_SERIAL_SUPPORT_ASYNC and CONFIG_UART_MCUX_LPUART and CONFIG_CPU_HAS_DCACHE
harness: ztest
depends_on: dma
extra_configs:
- CONFIG_DCACHE=y
- CONFIG_NOCACHE_MEMORY=y
- CONFIG_USERSPACE=n
drivers.uart.async_api.sam0:
filter: CONFIG_SERIAL_SUPPORT_ASYNC and CONFIG_SOC_FAMILY_ATMEL_SAM0
platform_allow:
Expand Down

0 comments on commit a6ed05e

Please sign in to comment.