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

os/arch/arm/src/amebasmart, os/board/rtl8730e: Update critical zone API usage for SMP #6079

Merged
merged 3 commits into from May 15, 2024

Conversation

edwakuwaku
Copy link
Contributor

@edwakuwaku edwakuwaku commented Feb 27, 2024

  • Change to use enter/leave_critical_section instead of irqsave/irqrestore, for both arch and driver layer
  • Reduce overhead for critical zone implementation in porting layer
  • Driver Features verification pending due to several logic crashes
  • Related PR: os, lib: Fix build errors for SMP with loadable apps #6049

@edwakuwaku edwakuwaku force-pushed the smp_update branch 3 times, most recently from 368144a to fea7aa2 Compare March 1, 2024 04:07
@edwakuwaku edwakuwaku force-pushed the smp_update branch 2 times, most recently from c1a1fd2 to 1ca8c91 Compare April 26, 2024 02:15
@edwakuwaku edwakuwaku force-pushed the smp_update branch 2 times, most recently from 4560986 to e9c25c6 Compare April 29, 2024 02:17
@edwakuwaku edwakuwaku changed the title [Under Verification] os/arch/arm/src/amebasmart, os/board/rtl8730e: Update critical zone API usage os/arch/arm/src/amebasmart, os/board/rtl8730e: Update critical zone API usage for SMP May 2, 2024
- Change irqsave/irqrestore to enter/leave_critical_section
- Reduce overhead of implementation in osdep_service_critical.c
- Update SMP mechanism for IPC part
- A deadlock was observed when the cpuA which undergo flash operation is trying to gate the other cpuB, but the cpuB is in critical zone (ie. interrupt disabled state), due to waiting for cpuA to pause itself
- This commit fix the deadlock issue by letting cpuA to check and handle any pending pause request at first, so that cpuB can continue it's workflow and exit from critical zone, thus it can handle the gating request from cpuA
@sunghan-chang sunghan-chang merged commit cf41d8a into Samsung:master May 15, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants