Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / drivers / accel / ivpu / ivpu_fw_log.h
blob8bb528a73cb7e52668b37a3a711aabc3075d3592
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Copyright (C) 2020-2024 Intel Corporation
4 */
6 #ifndef __IVPU_FW_LOG_H__
7 #define __IVPU_FW_LOG_H__
9 #include <linux/types.h>
11 #include "ivpu_drv.h"
13 #define IVPU_FW_LOG_DEFAULT 0
14 #define IVPU_FW_LOG_DEBUG 1
15 #define IVPU_FW_LOG_INFO 2
16 #define IVPU_FW_LOG_WARN 3
17 #define IVPU_FW_LOG_ERROR 4
18 #define IVPU_FW_LOG_FATAL 5
20 #define IVPU_FW_VERBOSE_BUFFER_SMALL_SIZE SZ_1M
21 #define IVPU_FW_VERBOSE_BUFFER_LARGE_SIZE SZ_8M
22 #define IVPU_FW_CRITICAL_BUFFER_SIZE SZ_512K
24 extern unsigned int ivpu_fw_log_level;
26 void ivpu_fw_log_print(struct ivpu_device *vdev, bool only_new_msgs, struct drm_printer *p);
27 void ivpu_fw_log_mark_read(struct ivpu_device *vdev);
28 void ivpu_fw_log_reset(struct ivpu_device *vdev);
31 #endif /* __IVPU_FW_LOG_H__ */