Skip to content

Feature watchdog v1 rb #10066

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

Closed

Conversation

rajkan01
Copy link
Contributor

@rajkan01 rajkan01 commented Mar 12, 2019

Watchdog refactoring to multithreaded thread.
-Added API to register muliple threads to watchdog drivers
-Watchdog timeout reconfigures everytime whenever new register thread with longer timeout period
-New APIs for watchdog
wd_register(const osThreadId_t tid, const uint32_t timeout) to register to watchdog
wd_unregister(const osThreadId_t tid) to unregister to watchdog
kick(const osThreadId_t tid) to refresh the watchdog

Pull request type

[ ] Fix
[x] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

Reviewers

@mbed-os-hal

Release Notes

@rajkan01 rajkan01 changed the base branch from master to feature-watchdog March 12, 2019 16:48
@ciarmcom ciarmcom requested a review from a team March 12, 2019 18:00
@ciarmcom
Copy link
Member

@rajkan01, thank you for your changes.
@ARMmbed/mbed-os-maintainers please review.

This was referenced Mar 12, 2019
@rajkan01
Copy link
Contributor Author

This branch created on top of the latest origin/feature-watchdog and cherry picked all watchdog related changes from of feature-watchdog-v1 from PR
#9243

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 13, 2019

Travis is green (was restarted)

@0xc0170 0xc0170 requested review from a user March 13, 2019 10:28
Copy link
Contributor

@donatieng donatieng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey Rajkumar, thanks - looks good! My main interrogations are around the mock watchdog class which has empty function bodies.

Copy link
Contributor

@0xc0170 0xc0170 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just 2 questions

@rajkan01
Copy link
Contributor Author

rajkan01 commented Mar 14, 2019 via email

Copy link
Contributor

@donatieng donatieng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me but I think it would make sense to make process() static and not have a "platform" watchdog instance. I know you and @c1728p9 had a chat about it so there might be a rationale I'm missing!

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 15, 2019

CI started

@mbed-ci
Copy link

mbed-ci commented Mar 15, 2019

Test run: FAILED

Summary: 1 of 1 test jobs failed
Build number : 1
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_unittests

@c1728p9
Copy link
Contributor

c1728p9 commented Mar 18, 2019

I think it would make sense to make process() static and not have a "platform" watchdog instance.

@donatieng I agree, process() should be static.

Copy link
Member

@ithinuel ithinuel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@NirSonnenschein
Copy link
Contributor

restarted CI

@mbed-ci
Copy link

mbed-ci commented Mar 25, 2019

Test run: FAILED

Summary: 6 of 9 test jobs failed
Build number : 2
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_build-ARMC5
  • jenkins-ci/mbed-os-ci_mbed2-build-IAR8
  • jenkins-ci/mbed-os-ci_mbed2-build-GCC_ARM
  • jenkins-ci/mbed-os-ci_build-GCC_ARM
  • jenkins-ci/mbed-os-ci_build-IAR8
  • jenkins-ci/mbed-os-ci_build-ARMC6

@@ -7133,7 +7138,8 @@
"macros_remove": ["MBEDTLS_CONFIG_HW_SUPPORT"],
"overrides": {
"lf_clock_src": "NRF_LF_SRC_RC"
}
},
"device_has_remove": ["RESET_REASON"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just remove RESET_REASON from MCU_NRF52840 ?

@adbridge
Copy link
Contributor

adbridge commented May 1, 2019

@jamesbeyond @fkjagodzinski can you please re-review the latest updates ?

@adbridge
Copy link
Contributor

adbridge commented May 7, 2019

CI restarted after last changes

@mbed-ci
Copy link

mbed-ci commented May 7, 2019

Test run: FAILED

Summary: 2 of 11 test jobs failed
Build number : 11
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_dynamic-memory-usage
  • jenkins-ci/mbed-os-ci_greentea-test

@fkjagodzinski
Copy link
Member

Python3 had an issue with TESTS/host_tests/rtc_reset.py which is not part of this PR.

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/mbed_os_tools-0.0.8-py3.6.egg/mbed_os_tools/test/host_tests_runner/host_test_default.py", line 306, in run_test
    self.test_supervisor.setup()
  File "/builds/ws/mbed-os-ci_greentea-test@3/mbed-os/TESTS/host_tests/rtc_reset.py", line 43, in setup
    generator.next()
AttributeError: 'generator' object has no attribute 'next'

@0xc0170
Copy link
Contributor

0xc0170 commented May 10, 2019

CI started

@0xc0170
Copy link
Contributor

0xc0170 commented May 10, 2019

CI restarted (py3 should be fixed)

@mbed-ci
Copy link

mbed-ci commented May 10, 2019

Test run: FAILED

Summary: 1 of 11 test jobs failed
Build number : 12
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_greentea-test

@fkjagodzinski
Copy link
Member

Same Python 3 issue again. We forgot to pull the changes from #10544. @rajkan01 could you cherry-pick that patch?

@rajkan01
Copy link
Contributor Author

@0xc0170 filip mentioned some more pyton3 fixes missed and needs rebase to master, Could you please rebase ARMMbed:feature-watchdog branch so that I can rebase this branch aginst feature-watchdog-v1-rb to resolve python3 issue

@0xc0170
Copy link
Contributor

0xc0170 commented May 12, 2019

There are multiple conflicts (targets.json mainly). I rebased the feature-watchdog branch - conflicts were easy to fix - I've noticed we need to clean up targets.json file - again multiple device_has on one line conflicts.

For future - provide forked rebased branch.

@fkjagodzinski
Copy link
Member

@rajkan01, @ARMmbed/mbed-os-maintainers, this can be closed now. All changes from this PR are now merged to feature-watchdog through #10645.

@0xc0170 0xc0170 closed this Jun 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.