-
Notifications
You must be signed in to change notification settings - Fork 350
Add support for Zephyr debug slot manager and use it by default #10500
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
base: main
Are you sure you want to change the base?
Conversation
Add support for Zephyr debug slot manager API to move away from hardocded slot allocation. The support is added with ifdef to be able to switch back to the old hardcoded debug lost 'management' Signed-off-by: Peter Ujfalusi <[email protected]>
Zephyr has support for dynamic debug slot management to replace the currently used wild-west style debug slot "allocation" Signed-off-by: Peter Ujfalusi <[email protected]>
lgirdwood
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jsarha
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks Ok and works nicely debug_stream.
kv2019i
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code good, some typos in commit making it a bit hard to follow.
| @@ -20,11 +20,25 @@ | |||
| /* CPU specific mutexes for each circular buffer */ | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some typoes in commit (hardocded, "debug lost management"), code looks good.
| static struct cpu_mutex cpu_mutex[CONFIG_MP_MAX_NUM_CPUS]; | ||
|
|
||
| #ifdef CONFIG_INTEL_ADSP_DEBUG_SLOT_MANAGER | ||
| static struct debug_stream_slot_hdr *slot; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please give it a longer name. Names like this make grepping / tagging quite difficult. Can be an incremental patch.
|
|
||
| struct cpu_mutex { | ||
| struct k_mutex m; | ||
| } __aligned(CONFIG_DCACHE_LINE_SIZE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any documentation about how this debugging works? We use mainly the serial console for imx-es.
Instead of 'blindly' writing to debug slots using hardwired numbers, use the debug slot manager API to work with the slots.
In theory this change would allow more debug slot users to be enabled and only limited by the amount on slots available for the platform.