mirror of
https://github.com/NVIDIA/open-gpu-kernel-modules.git
synced 2026-03-02 11:49:55 +00:00
545.23.06
This commit is contained in:
@@ -7,7 +7,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
* SPDX-FileCopyrightText: Copyright (c) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||
* SPDX-FileCopyrightText: Copyright (c) 2021-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
@@ -42,9 +42,23 @@ extern "C" {
|
||||
#include "kernel/gpu/rc/kernel_rc_watchdog.h"
|
||||
#include "kernel/gpu/rc/kernel_rc_watchdog_private.h"
|
||||
#include "kernel/gpu/gpu_engine_type.h"
|
||||
#include "kernel/gpu/subdevice/subdevice.h"
|
||||
#include "kernel/rmapi/client_resource.h"
|
||||
|
||||
#include "ctrl/ctrl2080/ctrl2080rc.h"
|
||||
|
||||
struct Subdevice;
|
||||
|
||||
#ifndef __NVOC_CLASS_Subdevice_TYPEDEF__
|
||||
#define __NVOC_CLASS_Subdevice_TYPEDEF__
|
||||
typedef struct Subdevice Subdevice;
|
||||
#endif /* __NVOC_CLASS_Subdevice_TYPEDEF__ */
|
||||
|
||||
#ifndef __nvoc_class_id_Subdevice
|
||||
#define __nvoc_class_id_Subdevice 0x4b01b3
|
||||
#endif /* __nvoc_class_id_Subdevice */
|
||||
|
||||
|
||||
|
||||
typedef enum {
|
||||
RC_NOTIFIER_SCOPE_CHANNEL = 0,
|
||||
RC_NOTIFIER_SCOPE_TSG,
|
||||
@@ -82,6 +96,7 @@ struct KernelRc {
|
||||
NvBool bBreakOnRc;
|
||||
NvBool bLogEvents;
|
||||
struct KernelChannel *pPreviousChannelInError;
|
||||
NvBool bRcOnBar2Fault;
|
||||
NvBool bGpuUuidLoggedOnce;
|
||||
KernelWatchdog watchdog;
|
||||
KernelWatchdogPersistent watchdogPersistent;
|
||||
@@ -379,10 +394,10 @@ static inline void krcInitRegistryOverridesDelayed(struct OBJGPU *pGpu, struct K
|
||||
#define krcInitRegistryOverridesDelayed(pGpu, pKernelRc) krcInitRegistryOverridesDelayed_IMPL(pGpu, pKernelRc)
|
||||
#endif //__nvoc_kernel_rc_h_disabled
|
||||
|
||||
NV_STATUS krcErrorSetNotifier_IMPL(struct OBJGPU *pGpu, struct KernelRc *pKernelRc, struct KernelChannel *pKernelChannel, NvU32 exceptType, NvU32 nv2080EngineType, RC_NOTIFIER_SCOPE scope);
|
||||
NV_STATUS krcErrorSetNotifier_IMPL(struct OBJGPU *pGpu, struct KernelRc *pKernelRc, struct KernelChannel *pKernelChannel, NvU32 exceptType, RM_ENGINE_TYPE nv2080EngineType, RC_NOTIFIER_SCOPE scope);
|
||||
|
||||
#ifdef __nvoc_kernel_rc_h_disabled
|
||||
static inline NV_STATUS krcErrorSetNotifier(struct OBJGPU *pGpu, struct KernelRc *pKernelRc, struct KernelChannel *pKernelChannel, NvU32 exceptType, NvU32 nv2080EngineType, RC_NOTIFIER_SCOPE scope) {
|
||||
static inline NV_STATUS krcErrorSetNotifier(struct OBJGPU *pGpu, struct KernelRc *pKernelRc, struct KernelChannel *pKernelChannel, NvU32 exceptType, RM_ENGINE_TYPE nv2080EngineType, RC_NOTIFIER_SCOPE scope) {
|
||||
NV_ASSERT_FAILED_PRECOMP("KernelRc was disabled!");
|
||||
return NV_ERR_NOT_SUPPORTED;
|
||||
}
|
||||
@@ -557,4 +572,5 @@ void krcWatchdogTimerProc(struct OBJGPU *pGpu, void *);
|
||||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
#endif // _G_KERNEL_RC_NVOC_H_
|
||||
|
||||
Reference in New Issue
Block a user