mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-15 14:32:06 +00:00
This will remove devcoredump from file system and free its resources during driver unload. This fix the driver unload after gpu hang happened, otherwise this it would report that Xe KMD is still in use and it would leave the kernel in a state that Xe KMD can't be unload without a reboot. Cc: Rodrigo Vivi <rodrigo.vivi@intel.com> Cc: Jonathan Cavitt <jonathan.cavitt@intel.com> Acked-by: Jonathan Cavitt <jonathan.cavitt@intel.com> Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240409200206.108452-2-jose.souza@intel.com Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
27 lines
459 B
C
27 lines
459 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2023 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _XE_DEVCOREDUMP_H_
|
|
#define _XE_DEVCOREDUMP_H_
|
|
|
|
struct xe_device;
|
|
struct xe_sched_job;
|
|
|
|
#ifdef CONFIG_DEV_COREDUMP
|
|
void xe_devcoredump(struct xe_sched_job *job);
|
|
int xe_devcoredump_init(struct xe_device *xe);
|
|
#else
|
|
static inline void xe_devcoredump(struct xe_sched_job *job)
|
|
{
|
|
}
|
|
|
|
static inline int xe_devcoredump_init(struct xe_device *xe)
|
|
{
|
|
return 0;
|
|
}
|
|
#endif
|
|
|
|
#endif
|