File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -208,7 +208,7 @@ static int ivpu_fw_parse(struct ivpu_device *vdev)
208
208
fw -> cold_boot_entry_point = fw_hdr -> entry_point ;
209
209
fw -> entry_point = fw -> cold_boot_entry_point ;
210
210
211
- fw -> trace_level = min_t (u32 , ivpu_log_level , IVPU_FW_LOG_FATAL );
211
+ fw -> trace_level = min_t (u32 , ivpu_fw_log_level , IVPU_FW_LOG_FATAL );
212
212
fw -> trace_destination_mask = VPU_TRACE_DESTINATION_VERBOSE_TRACING ;
213
213
fw -> trace_hw_component_mask = -1 ;
214
214
@@ -311,7 +311,7 @@ static int ivpu_fw_mem_init(struct ivpu_device *vdev)
311
311
goto err_free_fw_mem ;
312
312
}
313
313
314
- if (ivpu_log_level <= IVPU_FW_LOG_INFO )
314
+ if (ivpu_fw_log_level <= IVPU_FW_LOG_INFO )
315
315
log_verb_size = IVPU_FW_VERBOSE_BUFFER_LARGE_SIZE ;
316
316
else
317
317
log_verb_size = IVPU_FW_VERBOSE_BUFFER_SMALL_SIZE ;
Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: GPL-2.0-only
2
2
/*
3
- * Copyright (C) 2020-2023 Intel Corporation
3
+ * Copyright (C) 2020-2024 Intel Corporation
4
4
*/
5
5
6
6
#include <linux/ctype.h>
15
15
#include "ivpu_fw_log.h"
16
16
#include "ivpu_gem.h"
17
17
18
- #define IVPU_FW_LOG_LINE_LENGTH 256
18
+ #define IVPU_FW_LOG_LINE_LENGTH 256
19
19
20
- unsigned int ivpu_log_level = IVPU_FW_LOG_ERROR ;
21
- module_param ( ivpu_log_level , uint , 0444 );
22
- MODULE_PARM_DESC (ivpu_log_level ,
23
- "NPU firmware default trace level: debug=" __stringify (IVPU_FW_LOG_DEBUG )
20
+ unsigned int ivpu_fw_log_level = IVPU_FW_LOG_ERROR ;
21
+ module_param_named ( fw_log_level , ivpu_fw_log_level , uint , 0444 );
22
+ MODULE_PARM_DESC (fw_log_level ,
23
+ "NPU firmware default log level: debug=" __stringify (IVPU_FW_LOG_DEBUG )
24
24
" info = " __stringify(IVPU_FW_LOG_INFO)
25
25
" warn = " __stringify(IVPU_FW_LOG_WARN)
26
26
" error = " __stringify(IVPU_FW_LOG_ERROR)
Original file line number Diff line number Diff line change 1
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
2
/*
3
- * Copyright (C) 2020-2023 Intel Corporation
3
+ * Copyright (C) 2020-2024 Intel Corporation
4
4
*/
5
5
6
6
#ifndef __IVPU_FW_LOG_H__
19
19
#define IVPU_FW_LOG_ERROR 4
20
20
#define IVPU_FW_LOG_FATAL 5
21
21
22
- extern unsigned int ivpu_log_level ;
23
-
24
22
#define IVPU_FW_VERBOSE_BUFFER_SMALL_SIZE SZ_1M
25
23
#define IVPU_FW_VERBOSE_BUFFER_LARGE_SIZE SZ_8M
26
24
#define IVPU_FW_CRITICAL_BUFFER_SIZE SZ_512K
27
25
26
+ extern unsigned int ivpu_fw_log_level ;
27
+
28
28
void ivpu_fw_log_print (struct ivpu_device * vdev , bool only_new_msgs , struct drm_printer * p );
29
29
void ivpu_fw_log_clear (struct ivpu_device * vdev );
30
30
You can’t perform that action at this time.
0 commit comments