mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-12-04 21:50:56 -06:00
Add structures and command for get soc error and process uncorrectable core-compute errors. Uncorrectable core-compute errors are classified into global and local errors. Global error is an error that affects the entire device requiring a reset. This type of error is not isolated. When an AER is reported and error_detected is invoked request an SBR (Secondary Bus Reset) from PCI core. Local error is confined to a specific component or context like a engine. These errors can be contained and recovered by resetting only the affected engine without disrupting the rest of the device. Upon detection of an uncorrectable local core-compute error, an AER is generated and GuC is notified of the error to trigger engine reset. Return recovered from PCI error callbacks for these errors as no action is needed. Reviewed-by: Mallesh Koujalagi <mallesh.koujalagi@intel.com> Link: https://patch.msgid.link/20260713074755.1278607-8-riana.tauro@intel.com Signed-off-by: Riana Tauro <riana.tauro@intel.com>
23 lines
622 B
C
23 lines
622 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2026 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _XE_RAS_H_
|
|
#define _XE_RAS_H_
|
|
|
|
#include <linux/types.h>
|
|
#include "xe_ras_types.h"
|
|
|
|
struct xe_device;
|
|
struct xe_sysctrl_event_response;
|
|
|
|
void xe_ras_counter_threshold_crossed(struct xe_device *xe,
|
|
struct xe_sysctrl_event_response *response);
|
|
int xe_ras_get_counter(struct xe_device *xe, u8 severity, u8 component, u32 *value);
|
|
int xe_ras_clear_counter(struct xe_device *xe, u8 severity, u8 component);
|
|
void xe_ras_init(struct xe_device *xe);
|
|
enum xe_ras_recovery_action xe_ras_process_errors(struct xe_device *xe);
|
|
|
|
#endif
|