Skip to content

Commit 3e80418

Browse files
zyczanangl
authored andcommitted
[nrf fromlist] boards: nordic: Change NRFS logs to debug level
Change NRFS logs to debug level not to break tests. Jira: NCSDK-28199 Upstream PR: zephyrproject-rtos/zephyr#75104 Signed-off-by: Jan Zyczkowski <[email protected]>
1 parent 9a728d7 commit 3e80418

File tree

3 files changed

+28
-28
lines changed

3 files changed

+28
-28
lines changed

modules/hal_nordic/nrfs/backends/nrfs_backend_ipc_service.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ __weak void nrfs_backend_error_handler(enum nrfs_backend_error error_id, int err
9595

9696
static void ipc_sysctrl_ept_bound(void *priv)
9797
{
98-
LOG_INF("Bound to sysctrl.");
98+
LOG_DBG("Bound to sysctrl.");
9999
k_event_post(&ipc_connected_event, IPC_INIT_DONE_EVENT);
100100
atomic_set(&ipc_cpusys_channel_config.status, CONNECTED);
101101
}
@@ -150,7 +150,7 @@ static int ipc_channel_init(void)
150150
return ret;
151151
}
152152

153-
LOG_INF("ipc_service_open_instance() done.");
153+
LOG_DBG("ipc_service_open_instance() done.");
154154

155155
ret = ipc_service_register_endpoint(ch_cfg->ipc_instance,
156156
&ch_cfg->ipc_ept,
@@ -160,7 +160,7 @@ static int ipc_channel_init(void)
160160
return ret;
161161
}
162162

163-
LOG_INF("ipc_service_register_endpoint() done.");
163+
LOG_DBG("ipc_service_register_endpoint() done.");
164164

165165
return ret;
166166
}

modules/hal_nordic/nrfs/dvfs/ld_dvfs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ K_TIMER_DEFINE(dvfs_downscale_secure_timer, ld_dvfs_secure_downscale_timeout, NU
124124
*/
125125
__weak void ld_dvfs_secure_start_increased_power_consumption(void)
126126
{
127-
LOG_INF("Start increased power consumption for DVFS sequence and start safety timer.");
127+
LOG_DBG("Start increased power consumption for DVFS sequence and start safety timer.");
128128
k_timer_start(&dvfs_downscale_secure_timer, DOWNSCALE_SAFETY_TIMEOUT, K_NO_WAIT);
129129
atomic_set(&increased_power_consumption, 1);
130130

@@ -147,7 +147,7 @@ __weak void ld_dvfs_secure_start_increased_power_consumption(void)
147147
*/
148148
__weak void ld_dvfs_secure_stop_increased_power_consumption(void)
149149
{
150-
LOG_INF("Stop increased power consumption for DVFS sequence.");
150+
LOG_DBG("Stop increased power consumption for DVFS sequence.");
151151
k_timer_stop(&dvfs_downscale_secure_timer);
152152
atomic_set(&increased_power_consumption, 0);
153153
}

modules/hal_nordic/nrfs/dvfs/ld_dvfs_handler.c

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ static bool dvfs_service_handler_freq_setting_allowed(enum dvfs_frequency_settin
8383

8484
static enum dvfs_frequency_setting dvfs_service_handler_get_current_oppoint(void)
8585
{
86-
LOG_INF("Current LD freq setting: %d", current_freq_setting);
86+
LOG_DBG("Current LD freq setting: %d", current_freq_setting);
8787
return current_freq_setting;
8888
}
8989

@@ -103,12 +103,12 @@ static bool dvfs_service_handler_is_downscaling(enum dvfs_frequency_setting targ
103103
/* Function handling steps for scaling preparation. */
104104
static void dvfs_service_handler_prepare_to_scale(enum dvfs_frequency_setting oppoint_freq)
105105
{
106-
LOG_INF("Prepare to scale, oppoint freq %d", oppoint_freq);
106+
LOG_DBG("Prepare to scale, oppoint freq %d", oppoint_freq);
107107
enum dvfs_frequency_setting new_oppoint = oppoint_freq;
108108
enum dvfs_frequency_setting current_oppoint = dvfs_service_handler_get_current_oppoint();
109109

110110
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");
112112
} else {
113113
ld_dvfs_configure_abb_for_transition(current_oppoint, new_oppoint);
114114

@@ -125,7 +125,7 @@ static void dvfs_service_handler_prepare_to_scale(enum dvfs_frequency_setting op
125125
/* Do background job during scaling process (e.g. increased power consumption during down-scale). */
126126
static void dvfs_service_handler_scaling_background_job(enum dvfs_frequency_setting oppoint_freq)
127127
{
128-
LOG_INF("Perform scaling background job if needed.");
128+
LOG_DBG("Perform scaling background job if needed.");
129129
if (dvfs_service_handler_is_downscaling(oppoint_freq)) {
130130
k_sem_give(&dvfs_service_idle_sem);
131131
}
@@ -134,7 +134,7 @@ static void dvfs_service_handler_scaling_background_job(enum dvfs_frequency_sett
134134
/* Perform scaling finnish procedure. */
135135
static void dvfs_service_handler_scaling_finish(enum dvfs_frequency_setting oppoint_freq)
136136
{
137-
LOG_INF("Scaling finnish oppoint freq %d", oppoint_freq);
137+
LOG_DBG("Scaling finnish oppoint freq %d", oppoint_freq);
138138
ld_dvfs_scaling_finish(dvfs_service_handler_is_downscaling(oppoint_freq));
139139
if (!dvfs_service_handler_is_downscaling(oppoint_freq)) {
140140
int32_t err = ld_dvfs_configure_hsfll(oppoint_freq);
@@ -160,41 +160,41 @@ static void dvfs_service_handler_set_initial_hsfll_config(void)
160160
/* DVFS event handler callback function.*/
161161
static void nrfs_dvfs_evt_handler(nrfs_dvfs_evt_t const *p_evt, void *context)
162162
{
163-
LOG_INF("%s", __func__);
163+
LOG_DBG("%s", __func__);
164164
switch (p_evt->type) {
165165
case NRFS_DVFS_EVT_INIT_PREPARATION:
166-
LOG_INF("DVFS handler EVT_INIT_PREPARATION");
166+
LOG_DBG("DVFS handler EVT_INIT_PREPARATION");
167167
#if defined(NRF_SECURE)
168168
ld_dvfs_clear_zbb();
169169
dvfs_service_handler_nrfs_error_check(
170170
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");
172172
#else
173173
LOG_ERR("DVFS handler - unexpected EVT_INIT_PREPARATION");
174174
#endif
175175
break;
176176
case NRFS_DVFS_EVT_INIT_DONE:
177-
LOG_INF("DVFS handler EVT_INIT_DONE");
177+
LOG_DBG("DVFS handler EVT_INIT_DONE");
178178
dvfs_service_handler_set_initial_hsfll_config();
179179
dvfs_service_handler_set_state_bit(DVFS_SERV_HDL_INIT_DONE_BIT_POS);
180180
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");
182182
break;
183183
case NRFS_DVFS_EVT_OPPOINT_REQ_CONFIRMED:
184184
/* 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");
186186
break;
187187
case NRFS_DVFS_EVT_OPPOINT_SCALING_PREPARE:
188188
/*Target oppoint will be received here.*/
189-
LOG_INF("DVFS handler EVT_OPPOINT_SCALING_PREPARE");
189+
LOG_DBG("DVFS handler EVT_OPPOINT_SCALING_PREPARE");
190190
#if !defined(NRF_SECURE)
191191
if (dvfs_service_handler_is_downscaling(p_evt->freq)) {
192192
#endif
193193
dvfs_service_handler_prepare_to_scale(p_evt->freq);
194194
dvfs_service_handler_nrfs_error_check(
195195
nrfs_dvfs_ready_to_scale(get_next_context()));
196196
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");
198198
#if !defined(NRF_SECURE)
199199
current_freq_setting = p_evt->freq;
200200
} else {
@@ -203,10 +203,10 @@ static void nrfs_dvfs_evt_handler(nrfs_dvfs_evt_t const *p_evt, void *context)
203203
#endif
204204
break;
205205
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");
207207
dvfs_service_handler_clear_state_bit(DVFS_SERV_HDL_FREQ_CHANGE_IN_PROGRESS_BIT_POS);
208208
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");
210210
break;
211211
case NRFS_DVFS_EVT_REJECT:
212212
LOG_ERR("DVFS handler - request rejected");
@@ -224,30 +224,30 @@ static void dvfs_service_handler_task(void *dummy0, void *dummy1, void *dummy2)
224224
ARG_UNUSED(dummy1);
225225
ARG_UNUSED(dummy2);
226226

227-
LOG_INF("Trim ABB for default voltage.");
227+
LOG_DBG("Trim ABB for default voltage.");
228228
ld_dvfs_init();
229229

230-
LOG_INF("Waiting for backend init");
230+
LOG_DBG("Waiting for backend init");
231231
/* Wait for ipc initialization */
232232
nrfs_backend_wait_for_connection(K_FOREVER);
233233

234234
nrfs_err_t status;
235235

236-
LOG_INF("nrfs_dvfs_init");
236+
LOG_DBG("nrfs_dvfs_init");
237237
status = nrfs_dvfs_init(nrfs_dvfs_evt_handler);
238238
dvfs_service_handler_nrfs_error_check(status);
239239

240-
LOG_INF("nrfs_dvfs_init_prepare_request");
240+
LOG_DBG("nrfs_dvfs_init_prepare_request");
241241
status = nrfs_dvfs_init_prepare_request(get_next_context());
242242
dvfs_service_handler_nrfs_error_check(status);
243243

244244
/* Wait for init*/
245245
k_sem_take(&dvfs_service_sync_sem, K_FOREVER);
246246

247-
LOG_INF("DVFS init done.");
247+
LOG_DBG("DVFS init done.");
248248

249249
#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.");
251251
dvfs_service_handler_change_freq_setting(DVFS_FREQ_LOW);
252252
#endif
253253

@@ -271,12 +271,12 @@ K_THREAD_DEFINE(dvfs_service_handler_task_id,
271271
int32_t dvfs_service_handler_change_freq_setting(enum dvfs_frequency_setting freq_setting)
272272
{
273273
if (!dvfs_service_handler_init_done()) {
274-
LOG_INF("Init not done!");
274+
LOG_WRN("Init not done!");
275275
return -EAGAIN;
276276
}
277277

278278
if (dvfs_service_handler_freq_change_in_progress()) {
279-
LOG_INF("Frequency change in progress.");
279+
LOG_DBG("Frequency change in progress.");
280280
return -EBUSY;
281281
}
282282

0 commit comments

Comments
 (0)