-
Notifications
You must be signed in to change notification settings - Fork 321
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
audio: make clock control optional in SOF Zephyr builds (plus remove clk platform code for TGL as example) #9670
Changes from all commits
cb4129d
0046fac
a5fc213
a51bf68
3fef3e3
6b5e6c3
f6d7d4c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,15 +90,14 @@ int platform_init(struct sof *sof) | |
|
||
trace_point(TRACE_BOOT_PLATFORM_CLOCK); | ||
platform_clock_init(sof); | ||
kcps_budget_init(); | ||
|
||
#if CONFIG_KCPS_DYNAMIC_CLOCK_CONTROL | ||
kcps_budget_init(); | ||
|
||
ret = core_kcps_adjust(cpu_get_id(), PRIMARY_CORE_BASE_CPS_USAGE); | ||
#else | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @abonislawski @serhiy-katsyuba-intel Can you double-check this? It seems unnecessary to set the DSP frequency from SOF side if there is no dynamic control (the Zephyr platform code should choose the default speed). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @abonislawski any comment? |
||
ret = core_kcps_adjust(cpu_get_id(), CLK_MAX_CPU_HZ / 1000); | ||
#endif | ||
if (ret < 0) | ||
return ret; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please, move this check under There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done in today's PR revision. |
||
#endif | ||
|
||
trace_point(TRACE_BOOT_PLATFORM_SCHED); | ||
scheduler_init_edf(); | ||
|
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -116,14 +116,12 @@ int platform_init(struct sof *sof) | |
{ | ||
int ret; | ||
|
||
trace_point(TRACE_BOOT_PLATFORM_CLOCK); | ||
platform_clock_init(sof); | ||
|
||
trace_point(TRACE_BOOT_PLATFORM_SCHED); | ||
scheduler_init_edf(); | ||
|
||
/* init low latency timer domain and scheduler */ | ||
sof->platform_timer_domain = timer_domain_init(sof->platform_timer, PLATFORM_DEFAULT_CLOCK); | ||
/* clk is ignored on Zephyr so pass 0 */ | ||
sof->platform_timer_domain = timer_domain_init(sof->platform_timer, 0); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The "clk" parameter has no use on Zephyer, so might as well pass a 0. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. deserves a comment? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done in today's PR revision. |
||
scheduler_init_ll(sof->platform_timer_domain); | ||
|
||
/* init the system agent */ | ||
|
This file was deleted.
This file was deleted.
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.
maybe a dummy inline
core_kcps_adjust()
implementation instead?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.
@lyakh Tried this approach, but it gets a bit ugly as CLK_MAX_CPU_HZ is not defined either. Or we want to drop the requirement to define such values on SOF side.