mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

Drop the dependency on gt by providing a callback for trying to unbreak stuck modeset. Do intel_gt_set_wedged() via the callback. It's by no means pretty, but this is perhaps the most straightforward alternative. Cc: Matt Roper <matthew.d.roper@intel.com> Reviewed-by: Matt Roper <matthew.d.roper@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/d322e20927326afa47c0df8a4d4776ee77010e6d.1741001054.git.jani.nikula@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com>
20 lines
522 B
C
20 lines
522 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2023 Intel Corporation
|
|
*/
|
|
|
|
#ifndef __INTEL_RESET_H__
|
|
#define __INTEL_RESET_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct intel_display;
|
|
|
|
typedef void modeset_stuck_fn(void *context);
|
|
|
|
bool intel_display_reset_test(struct intel_display *display);
|
|
bool intel_display_reset_prepare(struct intel_display *display,
|
|
modeset_stuck_fn modeset_stuck, void *context);
|
|
void intel_display_reset_finish(struct intel_display *display, bool test_only);
|
|
|
|
#endif /* __INTEL_RESET_H__ */
|