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 @@ -218,7 +218,7 @@ static int ivpu_fw_parse(struct ivpu_device *vdev)
218
218
fw -> cold_boot_entry_point = fw_hdr -> entry_point ;
219
219
fw -> entry_point = fw -> cold_boot_entry_point ;
220
220
221
- fw -> trace_level = min_t (u32 , ivpu_log_level , IVPU_FW_LOG_FATAL );
221
+ fw -> trace_level = min_t (u32 , ivpu_fw_log_level , IVPU_FW_LOG_FATAL );
222
222
fw -> trace_destination_mask = VPU_TRACE_DESTINATION_VERBOSE_TRACING ;
223
223
fw -> trace_hw_component_mask = -1 ;
224
224
@@ -323,7 +323,7 @@ static int ivpu_fw_mem_init(struct ivpu_device *vdev)
323
323
goto err_free_fw_mem ;
324
324
}
325
325
326
- if (ivpu_log_level <= IVPU_FW_LOG_INFO )
326
+ if (ivpu_fw_log_level <= IVPU_FW_LOG_INFO )
327
327
log_verb_size = IVPU_FW_VERBOSE_BUFFER_LARGE_SIZE ;
328
328
else
329
329
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__
17
17
#define IVPU_FW_LOG_ERROR 4
18
18
#define IVPU_FW_LOG_FATAL 5
19
19
20
- extern unsigned int ivpu_log_level ;
21
-
22
20
#define IVPU_FW_VERBOSE_BUFFER_SMALL_SIZE SZ_1M
23
21
#define IVPU_FW_VERBOSE_BUFFER_LARGE_SIZE SZ_8M
24
22
#define IVPU_FW_CRITICAL_BUFFER_SIZE SZ_512K
25
23
24
+ extern unsigned int ivpu_fw_log_level ;
25
+
26
26
void ivpu_fw_log_print (struct ivpu_device * vdev , bool only_new_msgs , struct drm_printer * p );
27
27
void ivpu_fw_log_clear (struct ivpu_device * vdev );
28
28
You can’t perform that action at this time.
0 commit comments