Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

da1469x: entropy and gpio drivers throw assertions #77269

Closed
ydamigos opened this issue Aug 20, 2024 · 1 comment · Fixed by #76429
Closed

da1469x: entropy and gpio drivers throw assertions #77269

ydamigos opened this issue Aug 20, 2024 · 1 comment · Fixed by #76429
Assignees
Labels
Backport Backport PR and backport failure issues bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug Stale

Comments

@ydamigos
Copy link
Collaborator

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.

@ydamigos ydamigos added bug The issue is a bug, or the PR is fixing a bug backport v3.7-branch Request backport to the v3.7-branch labels Aug 20, 2024
@dkalowsk dkalowsk added Backport Backport PR and backport failure issues priority: low Low impact/importance bug and removed backport v3.7-branch Request backport to the v3.7-branch labels Aug 20, 2024
Copy link

This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backport Backport PR and backport failure issues bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug Stale
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants