ivpu_coredump.h 516 B

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (C) 2020-2024 Intel Corporation
  4. */
  5. #ifndef __IVPU_COREDUMP_H__
  6. #define __IVPU_COREDUMP_H__
  7. #include <drm/drm_print.h>
  8. #include "ivpu_drv.h"
  9. #include "ivpu_fw_log.h"
  10. #ifdef CONFIG_DEV_COREDUMP
  11. void ivpu_dev_coredump(struct ivpu_device *vdev);
  12. #else
  13. static inline void ivpu_dev_coredump(struct ivpu_device *vdev)
  14. {
  15. struct drm_printer p = drm_info_printer(vdev->drm.dev);
  16. ivpu_fw_log_print(vdev, false, &p);
  17. }
  18. #endif
  19. #endif /* __IVPU_COREDUMP_H__ */