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

tests/kernel/interrupt fails on quark_se_c1000_ss_devboard #12147

Closed
spoorthik opened this issue Dec 18, 2018 · 0 comments
Closed

tests/kernel/interrupt fails on quark_se_c1000_ss_devboard #12147

spoorthik opened this issue Dec 18, 2018 · 0 comments
Labels
bug The issue is a bug, or the PR is fixing a bug

Comments

@spoorthik
Copy link
Contributor

Describe the bug
Assertion failure on quark_se_c1000_ss_devboard as the test assigns IRQ priority greater than max limit.

To Reproduce
Steps to reproduce the behavior:

  1. mkdir build; cd build
  2. cmake -DBOARD=quark_se_c1000_ss_devboard
  3. make
  4. See error

Screenshots or console output

***** Booting Zephyr OS zephyr-v1.13.0-2813-ga8ce329 (delayed boot 1000ms) *****
Running test suite interrupt_feature
===================================================================
starting test - test_nested_isr
ASSERTION FAIL [prio < 2] @ /home/kspoorth/work/latest_zephyr/arch/arc/core/irq_manage.c:85
        invalid priority 2 for irq 66

Environment (please complete the following information):

  • OS: Linux
  • Toolchain: Zephyr SDK 0.9.5
@spoorthik spoorthik added the bug The issue is a bug, or the PR is fixing a bug label Dec 18, 2018
spoorthik added a commit to spoorthik/zephyr that referenced this issue Dec 20, 2018
Keeping IRQ0 priority as 1 and IRQ1 priority as 0
so that system timer which of priority 0 in ARC
will be interrupted by IRQ1 of same priority.
In ARM, system timer is of priority 1, hence
making ISR0 priority as 2 and ISR1 priority as 1.
Thus system timer will always be interrupted by
ISR1 in both the architectures.

Fixes: zephyrproject-rtos#12147

Signed-off-by: Spoorthi K <spoorthi.k@intel.com>
carlescufi pushed a commit that referenced this issue Dec 21, 2018
Keeping IRQ0 priority as 1 and IRQ1 priority as 0
so that system timer which of priority 0 in ARC
will be interrupted by IRQ1 of same priority.
In ARM, system timer is of priority 1, hence
making ISR0 priority as 2 and ISR1 priority as 1.
Thus system timer will always be interrupted by
ISR1 in both the architectures.

Fixes: #12147

Signed-off-by: Spoorthi K <spoorthi.k@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
Development

No branches or pull requests

1 participant