Skip to content

Conversation

@ujfalusi
Copy link
Contributor

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.

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 <peter.ujfalusi@linux.intel.com>
Zephyr has support for dynamic debug slot management to replace the
currently used wild-west style debug slot "allocation"

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Copy link
Member

@lgirdwood lgirdwood left a comment

Choose a reason for hiding this comment

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

@ujfalusi is there more to come here ? This seems like it will prevent clobbering today ?
@kv2019i @lyakh @jsarha have you given this a test run so far ?
LGTM

Copy link
Contributor

@jsarha jsarha left a 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.

Copy link
Collaborator

@kv2019i kv2019i left a 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 @@ struct cpu_mutex {
/* CPU specific mutexes for each circular buffer */
Copy link
Collaborator

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.

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.

4 participants