mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-08-19 00:20:59 +00:00

Use coredump (if available) to collect FW logs in case of a FW crash. This makes dmesg more readable and allows to collect more log data. Signed-off-by: Karol Wachowski <karol.wachowski@intel.com> Reviewed-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com> Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240930195322.461209-8-jacek.lawrynowicz@linux.intel.com Signed-off-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
26 lines
516 B
C
26 lines
516 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (C) 2020-2024 Intel Corporation
|
|
*/
|
|
|
|
#ifndef __IVPU_COREDUMP_H__
|
|
#define __IVPU_COREDUMP_H__
|
|
|
|
#include <drm/drm_print.h>
|
|
|
|
#include "ivpu_drv.h"
|
|
#include "ivpu_fw_log.h"
|
|
|
|
#ifdef CONFIG_DEV_COREDUMP
|
|
void ivpu_dev_coredump(struct ivpu_device *vdev);
|
|
#else
|
|
static inline void ivpu_dev_coredump(struct ivpu_device *vdev)
|
|
{
|
|
struct drm_printer p = drm_info_printer(vdev->drm.dev);
|
|
|
|
ivpu_fw_log_print(vdev, false, &p);
|
|
}
|
|
#endif
|
|
|
|
#endif /* __IVPU_COREDUMP_H__ */
|