@@ -83,7 +83,7 @@ static bool dvfs_service_handler_freq_setting_allowed(enum dvfs_frequency_settin
83
83
84
84
static enum dvfs_frequency_setting dvfs_service_handler_get_current_oppoint (void )
85
85
{
86
- LOG_INF ("Current LD freq setting: %d" , current_freq_setting );
86
+ LOG_DBG ("Current LD freq setting: %d" , current_freq_setting );
87
87
return current_freq_setting ;
88
88
}
89
89
@@ -103,12 +103,12 @@ static bool dvfs_service_handler_is_downscaling(enum dvfs_frequency_setting targ
103
103
/* Function handling steps for scaling preparation. */
104
104
static void dvfs_service_handler_prepare_to_scale (enum dvfs_frequency_setting oppoint_freq )
105
105
{
106
- LOG_INF ("Prepare to scale, oppoint freq %d" , oppoint_freq );
106
+ LOG_DBG ("Prepare to scale, oppoint freq %d" , oppoint_freq );
107
107
enum dvfs_frequency_setting new_oppoint = oppoint_freq ;
108
108
enum dvfs_frequency_setting current_oppoint = dvfs_service_handler_get_current_oppoint ();
109
109
110
110
if (new_oppoint == current_oppoint ) {
111
- LOG_INF ("New oppoint is same as previous, no change" );
111
+ LOG_DBG ("New oppoint is same as previous, no change" );
112
112
} else {
113
113
ld_dvfs_configure_abb_for_transition (current_oppoint , new_oppoint );
114
114
@@ -125,7 +125,7 @@ static void dvfs_service_handler_prepare_to_scale(enum dvfs_frequency_setting op
125
125
/* Do background job during scaling process (e.g. increased power consumption during down-scale). */
126
126
static void dvfs_service_handler_scaling_background_job (enum dvfs_frequency_setting oppoint_freq )
127
127
{
128
- LOG_INF ("Perform scaling background job if needed." );
128
+ LOG_DBG ("Perform scaling background job if needed." );
129
129
if (dvfs_service_handler_is_downscaling (oppoint_freq )) {
130
130
k_sem_give (& dvfs_service_idle_sem );
131
131
}
@@ -134,7 +134,7 @@ static void dvfs_service_handler_scaling_background_job(enum dvfs_frequency_sett
134
134
/* Perform scaling finnish procedure. */
135
135
static void dvfs_service_handler_scaling_finish (enum dvfs_frequency_setting oppoint_freq )
136
136
{
137
- LOG_INF ("Scaling finnish oppoint freq %d" , oppoint_freq );
137
+ LOG_DBG ("Scaling finnish oppoint freq %d" , oppoint_freq );
138
138
ld_dvfs_scaling_finish (dvfs_service_handler_is_downscaling (oppoint_freq ));
139
139
if (!dvfs_service_handler_is_downscaling (oppoint_freq )) {
140
140
int32_t err = ld_dvfs_configure_hsfll (oppoint_freq );
@@ -160,41 +160,41 @@ static void dvfs_service_handler_set_initial_hsfll_config(void)
160
160
/* DVFS event handler callback function.*/
161
161
static void nrfs_dvfs_evt_handler (nrfs_dvfs_evt_t const * p_evt , void * context )
162
162
{
163
- LOG_INF ("%s" , __func__ );
163
+ LOG_DBG ("%s" , __func__ );
164
164
switch (p_evt -> type ) {
165
165
case NRFS_DVFS_EVT_INIT_PREPARATION :
166
- LOG_INF ("DVFS handler EVT_INIT_PREPARATION" );
166
+ LOG_DBG ("DVFS handler EVT_INIT_PREPARATION" );
167
167
#if defined(NRF_SECURE )
168
168
ld_dvfs_clear_zbb ();
169
169
dvfs_service_handler_nrfs_error_check (
170
170
nrfs_dvfs_init_complete_request (get_next_context ()));
171
- LOG_INF ("DVFS handler EVT_INIT_PREPARATION handled" );
171
+ LOG_DBG ("DVFS handler EVT_INIT_PREPARATION handled" );
172
172
#else
173
173
LOG_ERR ("DVFS handler - unexpected EVT_INIT_PREPARATION" );
174
174
#endif
175
175
break ;
176
176
case NRFS_DVFS_EVT_INIT_DONE :
177
- LOG_INF ("DVFS handler EVT_INIT_DONE" );
177
+ LOG_DBG ("DVFS handler EVT_INIT_DONE" );
178
178
dvfs_service_handler_set_initial_hsfll_config ();
179
179
dvfs_service_handler_set_state_bit (DVFS_SERV_HDL_INIT_DONE_BIT_POS );
180
180
k_sem_give (& dvfs_service_sync_sem );
181
- LOG_INF ("DVFS handler EVT_INIT_DONE handled" );
181
+ LOG_DBG ("DVFS handler EVT_INIT_DONE handled" );
182
182
break ;
183
183
case NRFS_DVFS_EVT_OPPOINT_REQ_CONFIRMED :
184
184
/* Optional confirmation from sysctrl, wait for oppoint.*/
185
- LOG_INF ("DVFS handler EVT_OPPOINT_REQ_CONFIRMED" );
185
+ LOG_DBG ("DVFS handler EVT_OPPOINT_REQ_CONFIRMED" );
186
186
break ;
187
187
case NRFS_DVFS_EVT_OPPOINT_SCALING_PREPARE :
188
188
/*Target oppoint will be received here.*/
189
- LOG_INF ("DVFS handler EVT_OPPOINT_SCALING_PREPARE" );
189
+ LOG_DBG ("DVFS handler EVT_OPPOINT_SCALING_PREPARE" );
190
190
#if !defined(NRF_SECURE )
191
191
if (dvfs_service_handler_is_downscaling (p_evt -> freq )) {
192
192
#endif
193
193
dvfs_service_handler_prepare_to_scale (p_evt -> freq );
194
194
dvfs_service_handler_nrfs_error_check (
195
195
nrfs_dvfs_ready_to_scale (get_next_context ()));
196
196
dvfs_service_handler_scaling_background_job (p_evt -> freq );
197
- LOG_INF ("DVFS handler EVT_OPPOINT_SCALING_PREPARE handled" );
197
+ LOG_DBG ("DVFS handler EVT_OPPOINT_SCALING_PREPARE handled" );
198
198
#if !defined(NRF_SECURE )
199
199
current_freq_setting = p_evt -> freq ;
200
200
} else {
@@ -203,10 +203,10 @@ static void nrfs_dvfs_evt_handler(nrfs_dvfs_evt_t const *p_evt, void *context)
203
203
#endif
204
204
break ;
205
205
case NRFS_DVFS_EVT_OPPOINT_SCALING_DONE :
206
- LOG_INF ("DVFS handler EVT_OPPOINT_SCALING_DONE" );
206
+ LOG_DBG ("DVFS handler EVT_OPPOINT_SCALING_DONE" );
207
207
dvfs_service_handler_clear_state_bit (DVFS_SERV_HDL_FREQ_CHANGE_IN_PROGRESS_BIT_POS );
208
208
dvfs_service_handler_scaling_finish (p_evt -> freq );
209
- LOG_INF ("DVFS handler EVT_OPPOINT_SCALING_DONE handled" );
209
+ LOG_DBG ("DVFS handler EVT_OPPOINT_SCALING_DONE handled" );
210
210
break ;
211
211
case NRFS_DVFS_EVT_REJECT :
212
212
LOG_ERR ("DVFS handler - request rejected" );
@@ -224,30 +224,30 @@ static void dvfs_service_handler_task(void *dummy0, void *dummy1, void *dummy2)
224
224
ARG_UNUSED (dummy1 );
225
225
ARG_UNUSED (dummy2 );
226
226
227
- LOG_INF ("Trim ABB for default voltage." );
227
+ LOG_DBG ("Trim ABB for default voltage." );
228
228
ld_dvfs_init ();
229
229
230
- LOG_INF ("Waiting for backend init" );
230
+ LOG_DBG ("Waiting for backend init" );
231
231
/* Wait for ipc initialization */
232
232
nrfs_backend_wait_for_connection (K_FOREVER );
233
233
234
234
nrfs_err_t status ;
235
235
236
- LOG_INF ("nrfs_dvfs_init" );
236
+ LOG_DBG ("nrfs_dvfs_init" );
237
237
status = nrfs_dvfs_init (nrfs_dvfs_evt_handler );
238
238
dvfs_service_handler_nrfs_error_check (status );
239
239
240
- LOG_INF ("nrfs_dvfs_init_prepare_request" );
240
+ LOG_DBG ("nrfs_dvfs_init_prepare_request" );
241
241
status = nrfs_dvfs_init_prepare_request (get_next_context ());
242
242
dvfs_service_handler_nrfs_error_check (status );
243
243
244
244
/* Wait for init*/
245
245
k_sem_take (& dvfs_service_sync_sem , K_FOREVER );
246
246
247
- LOG_INF ("DVFS init done." );
247
+ LOG_DBG ("DVFS init done." );
248
248
249
249
#if defined(CONFIG_NRFS_LOCAL_DOMAIN_DVFS_SCALE_DOWN_AFTER_INIT )
250
- LOG_INF ("Requesting lowest frequency oppoint." );
250
+ LOG_DBG ("Requesting lowest frequency oppoint." );
251
251
dvfs_service_handler_change_freq_setting (DVFS_FREQ_LOW );
252
252
#endif
253
253
@@ -271,12 +271,12 @@ K_THREAD_DEFINE(dvfs_service_handler_task_id,
271
271
int32_t dvfs_service_handler_change_freq_setting (enum dvfs_frequency_setting freq_setting )
272
272
{
273
273
if (!dvfs_service_handler_init_done ()) {
274
- LOG_INF ("Init not done!" );
274
+ LOG_WRN ("Init not done!" );
275
275
return - EAGAIN ;
276
276
}
277
277
278
278
if (dvfs_service_handler_freq_change_in_progress ()) {
279
- LOG_INF ("Frequency change in progress." );
279
+ LOG_DBG ("Frequency change in progress." );
280
280
return - EBUSY ;
281
281
}
282
282
0 commit comments