mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-28 19:14:35 -04:00
Expose the number of display resets performed in a new "display_reset_count" debugfs file. kms_busy can use this to confirm that the kernel actually took the full display reset path. v2: Give the file an "intel_" namespace (Jani) Cc: Jouni Högander <jouni.hogander@intel.com> Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Reviewed-by: Jani Nikula <jani.nikula@intel.com> Testcase: igt/kms_busy/*-with-reset Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patch.msgid.link/20260415210411.24750-7-ville.syrjala@linux.intel.com
21 lines
565 B
C
21 lines
565 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;
|
|
|
|
bool intel_display_reset_supported(struct intel_display *display);
|
|
bool intel_display_reset_test(struct intel_display *display);
|
|
void intel_display_reset_prepare(struct intel_display *display);
|
|
void intel_display_reset_finish(struct intel_display *display, bool test_only);
|
|
|
|
void intel_display_reset_debugfs_register(struct intel_display *display);
|
|
|
|
#endif /* __INTEL_RESET_H__ */
|