The media watchdog mechanism involves GuC doing a silent reset and continue of the hung context. This requires the i915 driver provide a golden context to GuC in the ADS. v2: (Matthew Brost): - Fix memory corruption in shmem_read (John H) - Use locals rather than defines for LR_* + SKIP_SIZE Signed-off-by: John Harrison <John.C.Harrison@Intel.com> Signed-off-by: Matthew Brost <matthew.brost@intel.com> Reviewed-by: Matthew Brost <matthew.brost@intel.com> Signed-off-by: John Harrison <John.C.Harrison@Intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20210727002348.97202-24-matthew.brost@intel.com
19 lines
482 B
C
19 lines
482 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2014-2019 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _INTEL_GUC_ADS_H_
|
|
#define _INTEL_GUC_ADS_H_
|
|
|
|
struct intel_guc;
|
|
struct drm_printer;
|
|
|
|
int intel_guc_ads_create(struct intel_guc *guc);
|
|
void intel_guc_ads_destroy(struct intel_guc *guc);
|
|
void intel_guc_ads_init_late(struct intel_guc *guc);
|
|
void intel_guc_ads_reset(struct intel_guc *guc);
|
|
void intel_guc_ads_print_policy_info(struct intel_guc *guc,
|
|
struct drm_printer *p);
|
|
|
|
#endif
|