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

ARC: SMP: Enable use of ARConnect Inter-core Debug Unit #23212

Closed
abrodkin opened this issue Mar 3, 2020 · 0 comments · Fixed by #28748
Closed

ARC: SMP: Enable use of ARConnect Inter-core Debug Unit #23212

abrodkin opened this issue Mar 3, 2020 · 0 comments · Fixed by #28748
Assignees
Labels
area: ARC ARC Architecture area: SMP Symmetric multiprocessing Enhancement Changes/Updates/Additions to existing features
Milestone

Comments

@abrodkin
Copy link
Collaborator

abrodkin commented Mar 3, 2020

ARC's SMP-supporting IP called ARConnect has a special module which helps with interactive debugging of multi-core ARC designs by halting all cores in the cluster whenever any core is halted.

We do have helper functions in place (z_arc_connect_debug_select_{set|read}() & z_arc_connect_debug_mask_{set|read}()) so that's just a matter of using them for SMP platforms which are as of today MDB simulator & HSDK board.

One thing to note is we have to be careful setting this module up in a sense that we may want to use not all cores in the cluster for a particular execution (and that's perfectly possible by changing amount of SMP cores in menuconfig via CONFIG_MP_NUM_CPUS) so we shouldn't hard-code setup for all cores in the cluster but do it gradually adding core-by core as they start-up. Otherwise immediately after we set ICD to monitor all cores we'll get stuck as some cores were intentionally left halted.

@abrodkin abrodkin added Enhancement Changes/Updates/Additions to existing features area: ARC ARC Architecture area: SMP Symmetric multiprocessing labels Mar 3, 2020
@abrodkin abrodkin added this to the v2.3.0 milestone Mar 3, 2020
@carlescufi carlescufi modified the milestones: v2.3.0, v2.4.0 Jun 5, 2020
@abrodkin abrodkin modified the milestones: v2.4.0, v2.5.0 Sep 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: ARC ARC Architecture area: SMP Symmetric multiprocessing Enhancement Changes/Updates/Additions to existing features
Projects
None yet
4 participants