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_coredump.h
blob8efb09d024411519f278be32d95bdf4a862eb266
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Copyright (C) 2020-2024 Intel Corporation
4 */
6 #ifndef __IVPU_COREDUMP_H__
7 #define __IVPU_COREDUMP_H__
9 #include <drm/drm_print.h>
11 #include "ivpu_drv.h"
12 #include "ivpu_fw_log.h"
14 #ifdef CONFIG_DEV_COREDUMP
15 void ivpu_dev_coredump(struct ivpu_device *vdev);
16 #else
17 static inline void ivpu_dev_coredump(struct ivpu_device *vdev)
19 struct drm_printer p = drm_info_printer(vdev->drm.dev);
21 ivpu_fw_log_print(vdev, false, &p);
23 #endif
25 #endif /* __IVPU_COREDUMP_H__ */