Skip to content

da1469x: entropy and gpio drivers throw assertions #77269

@ydamigos

Description

@ydamigos

Enabling support of da1469x_dk_pro board on gpio_basic_api test, raised some assertions in entropy and gpio driver.

Assertions in entropy driver:

ASSERTION FAIL [cnt >= 1] @ WEST_TOPDIR/zephyr/subsys/pm/policy.c:308
        Unbalanced state lock get/put
E: r0/a1:  0x00000004  r1/a2:  0x00000134  r2/a3:  0x200008b8
E: r3/a4:  0x00000004 r12/ip:  0x00000079 r14/lr:  0x160053b7
E:  xpsr:  0x29000028
E: Faulting instruction address (r15/pc): 0x1600be06
E: >>> ZEPHYR FATAL ERROR 4: Kernel panic on CPU 0
E: Fault during interrupt handling

E: Current thread: 0x200008b8 (main)
E: Halting system

Assertion in gpio driver:

ASSERTION FAIL [0] @ WEST_TOPDIR/zephyr/lib/libc/picolibc/libc-hooks.c:224
E: r0/a1:  0x00000004  r1/a2:  0x000000e0  r2/a3:  0x20000748
E: r3/a4:  0x00000004 r12/ip:  0x1600be99 r14/lr:  0x16006b65
E:  xpsr:  0x21000000
E: Faulting instruction address (r15/pc): 0x1600b9f2
E: >>> ZEPHYR FATAL ERROR 4: Kernel panic on CPU 0
E: Current thread: 0x20000748 (test_gpio_callback_add_remove)
E: Halting system

To Reproduce

  1. Add file zephyr/tests/drivers/gpio/gpio_basic_api/boards/da1469x_dk_pro.overlay:
/*
 * Copyright (c) 2024 Renesas Electronics Corporation
 *
 * SPDX-License-Identifier: Apache-2.0
 */

 / {
	resources {
		compatible = "test-gpio-basic-api";
		out-gpios = <&gpio0 2 0>;
		in-gpios = <&gpio0 3 0>;
	};
};
  1. west build -b da1469x_dk_pro -p always tests/drivers/gpio/gpio_basic_api
  2. west flash
  3. See entropy driver assertion.
  4. Disable CONFIG_ENTROPY_GENERATOR in zephyr/tests/drivers/gpio/gpio_basic_api/prj.conf.
  5. west build -b da1469x_dk_pro -p always tests/drivers/gpio/gpio_basic_api
  6. west flash
  7. See gpio driver assertion.

Expected behavior
gpio_basic_api test suite should be executed without exceptions.

Metadata

Metadata

Labels

BackportBackport PR and backport failure issuesStalebugThe issue is a bug, or the PR is fixing a bugpriority: lowLow impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions