physics-mv
FORGE: request-bound machine realization, providers and verification for AienOS. Host, simulated and GB10 hardware paths have separate evidence.
Brought by drakestapleton
physics-mv / third_party / nvidia-open-580.173.02 / src / common / sdk / nvidia / inc / ctrl / ctrl906f.h
| 1 | /* |
| 2 | * SPDX-FileCopyrightText: Copyright (c) 2007-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved. |
| 3 | * SPDX-License-Identifier: MIT |
| 4 | * |
| 5 | * Permission is hereby granted, free of charge, to any person obtaining a |
| 6 | * copy of this software and associated documentation files (the "Software"), |
| 7 | * to deal in the Software without restriction, including without limitation |
| 8 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
| 9 | * and/or sell copies of the Software, and to permit persons to whom the |
| 10 | * Software is furnished to do so, subject to the following conditions: |
| 11 | * |
| 12 | * The above copyright notice and this permission notice shall be included in |
| 13 | * all copies or substantial portions of the Software. |
| 14 | * |
| 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
| 18 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 20 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
| 21 | * DEALINGS IN THE SOFTWARE. |
| 22 | */ |
| 23 | |
| 24 | #pragma once |
| 25 | |
| 26 | #include <nvtypes.h> |
| 27 | |
| 28 | // |
| 29 | // This file was generated with FINN, an NVIDIA coding tool. |
| 30 | // Source file: ctrl/ctrl906f.finn |
| 31 | // |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | /* GF100_GPFIFO control commands and parameters */ |
| 37 | |
| 38 | #include "ctrl/ctrlxxxx.h" |
| 39 | #define NV906F_CTRL_CMD(cat,idx) \ |
| 40 | NVXXXX_CTRL_CMD(0x906F, NV906F_CTRL_##cat, idx) |
| 41 | |
| 42 | /* GF100_GPFIFO command categories (6bits) */ |
| 43 | #define NV906F_CTRL_RESERVED (0x00) |
| 44 | #define NV906F_CTRL_GPFIFO (0x01) |
| 45 | |
| 46 | |
| 47 | /* |
| 48 | * NV906F_CTRL_CMD_NULL |
| 49 | * |
| 50 | * This command does nothing. |
| 51 | * This command does not take any parameters. |
| 52 | * |
| 53 | * Possible status values returned are: |
| 54 | * NV_OK |
| 55 | */ |
| 56 | #define NV906F_CTRL_CMD_NULL (0x906f0000) /* finn: Evaluated from "(FINN_GF100_CHANNEL_GPFIFO_RESERVED_INTERFACE_ID << 8) | 0x0" */ |
| 57 | |
| 58 | |
| 59 | |
| 60 | |
| 61 | |
| 62 | |
| 63 | /* |
| 64 | * NV906F_CTRL_GET_CLASS_ENGINEID |
| 65 | * |
| 66 | * Takes an object handle as input and returns |
| 67 | * the Class and Engine that this object uses. |
| 68 | * |
| 69 | * hObject |
| 70 | * Handle to an object created. For example a |
| 71 | * handle to object of type FERMI_A created by |
| 72 | * the client. This is supplied by the client |
| 73 | * of this call. |
| 74 | * |
| 75 | * classEngineID |
| 76 | * A concatenation of class and engineid |
| 77 | * that the object with handle hObject |
| 78 | * belongs to. This is returned by RM. The internal |
| 79 | * format of this data structure is opaque to clients. |
| 80 | * |
| 81 | * classID |
| 82 | * ClassID for object represented by hObject |
| 83 | * |
| 84 | * engineID |
| 85 | * EngineID for object represented by hObject |
| 86 | * |
| 87 | * Possible status values returned are: |
| 88 | * NV_OK |
| 89 | * If the call was successful. |
| 90 | * |
| 91 | * NV_ERR_INVALID_OBJECT_HANDLE |
| 92 | * No object of handle hObject was found. |
| 93 | */ |
| 94 | #define NV906F_CTRL_GET_CLASS_ENGINEID (0x906f0101) /* finn: Evaluated from "(FINN_GF100_CHANNEL_GPFIFO_GPFIFO_INTERFACE_ID << 8) | NV906F_CTRL_GET_CLASS_ENGINEID_PARAMS_MESSAGE_ID" */ |
| 95 | |
| 96 | #define NV906F_CTRL_GET_CLASS_ENGINEID_PARAMS_MESSAGE_ID (0x1U) |
| 97 | |
| 98 | typedef struct NV906F_CTRL_GET_CLASS_ENGINEID_PARAMS { |
| 99 | NvHandle hObject; |
| 100 | NvU32 classEngineID; |
| 101 | NvU32 classID; |
| 102 | NvU32 engineID; |
| 103 | } NV906F_CTRL_GET_CLASS_ENGINEID_PARAMS; |
| 104 | |
| 105 | /* |
| 106 | * NV906F_CTRL_RESET_CHANNEL |
| 107 | * |
| 108 | * This command resets the channel corresponding to specified engine and also |
| 109 | * resets the specified engine. |
| 110 | * |
| 111 | * Takes an engine ID as input. |
| 112 | * |
| 113 | * engineID |
| 114 | * This parameter specifies the engine to be reset. See the description of the |
| 115 | * NV2080_ENGINE_TYPE values in cl2080.h for more information. |
| 116 | * subdeviceInstance |
| 117 | * This parameter specifies the subdevice to be reset when in SLI. |
| 118 | * resetReason |
| 119 | * Specifies reason to reset a channel. |
| 120 | * |
| 121 | * bIsRcPending |
| 122 | * Specifies if an RC is pending on the channel |
| 123 | * |
| 124 | * Possible status values returned are: |
| 125 | * NV_OK |
| 126 | */ |
| 127 | #define NV906F_CTRL_CMD_RESET_CHANNEL_REASON_DEFAULT 0 |
| 128 | #define NV906F_CTRL_CMD_RESET_CHANNEL_REASON_VERIF 1 |
| 129 | #define NV906F_CTRL_CMD_RESET_CHANNEL_REASON_MMU_FLT 2 |
| 130 | #define NV906F_CTRL_CMD_RESET_CHANNEL_REASON_ENUM_MAX 3 |
| 131 | /* |
| 132 | * Internal values for NV906F_CTRL_CMD_RESET_REASON. External values will be |
| 133 | * checked and enforced to be < NV906F_CTRL_CMD_RESET_CHANNEL_REASON_ENUM_MAX |
| 134 | */ |
| 135 | #define NV906F_CTRL_CMD_INTERNAL_RESET_CHANNEL_REASON_FAKE_ERROR (0x4) /* finn: Evaluated from "NV906F_CTRL_CMD_RESET_CHANNEL_REASON_ENUM_MAX + 1" */ |
| 136 | |
| 137 | |
| 138 | #define NV906F_CTRL_CMD_RESET_CHANNEL (0x906f0102) /* finn: Evaluated from "((FINN_GF100_CHANNEL_GPFIFO_GPFIFO_INTERFACE_ID << 8) | NV906F_CTRL_CMD_RESET_CHANNEL_PARAMS_MESSAGE_ID)" */ |
| 139 | |
| 140 | #define NV906F_CTRL_CMD_RESET_CHANNEL_PARAMS_MESSAGE_ID (0x2U) |
| 141 | |
| 142 | typedef struct NV906F_CTRL_CMD_RESET_CHANNEL_PARAMS { |
| 143 | NvU32 engineID; |
| 144 | NvU32 subdeviceInstance; |
| 145 | NvU32 resetReason; |
| 146 | NvBool bIsRcPending; |
| 147 | } NV906F_CTRL_CMD_RESET_CHANNEL_PARAMS; |
| 148 | |
| 149 | |
| 150 | |
| 151 | /* |
| 152 | * NV906F_CTRL_CMD_GET_DEFER_RC_STATE |
| 153 | * |
| 154 | * If SM Debugger is attached then on a MMU fault, RM defers the RC error |
| 155 | * recovery and keeps a flag indicating that RC is deferred. This command |
| 156 | * checks whether or not deferred RC is pending in RM for the associated |
| 157 | * channel. |
| 158 | * |
| 159 | * bDeferRCPending |
| 160 | * The output are TRUE and FALSE. |
| 161 | * |
| 162 | * Possible status values returned are: |
| 163 | * NV_OK |
| 164 | */ |
| 165 | |
| 166 | #define NV906F_CTRL_CMD_GET_DEFER_RC_STATE (0x906f0105) /* finn: Evaluated from "(FINN_GF100_CHANNEL_GPFIFO_GPFIFO_INTERFACE_ID << 8) | NV906F_CTRL_CMD_GET_DEFER_RC_STATE_PARAMS_MESSAGE_ID" */ |
| 167 | |
| 168 | #define NV906F_CTRL_CMD_GET_DEFER_RC_STATE_PARAMS_MESSAGE_ID (0x5U) |
| 169 | |
| 170 | typedef struct NV906F_CTRL_CMD_GET_DEFER_RC_STATE_PARAMS { |
| 171 | NvBool bDeferRCPending; |
| 172 | } NV906F_CTRL_CMD_GET_DEFER_RC_STATE_PARAMS; |
| 173 | |
| 174 | #define NV906F_CTRL_CMD_GET_MMU_FAULT_INFO (0x906f0106) /* finn: Evaluated from "(FINN_GF100_CHANNEL_GPFIFO_GPFIFO_INTERFACE_ID << 8) | NV906F_CTRL_GET_MMU_FAULT_INFO_PARAMS_MESSAGE_ID" */ |
| 175 | |
| 176 | /* |
| 177 | * Shader types supported by MMU fault info |
| 178 | * The types before compute shader refer to NV9097_SET_PIPELINE_SHADER_TYPE |
| 179 | */ |
| 180 | #define NV906F_CTRL_MMU_FAULT_SHADER_TYPE_VERTEX_CULL_BEFORE_FETCH 0x00000000 |
| 181 | #define NV906F_CTRL_MMU_FAULT_SHADER_TYPE_VERTEX 0x00000001 |
| 182 | #define NV906F_CTRL_MMU_FAULT_SHADER_TYPE_TESSELLATION_INIT 0x00000002 |
| 183 | #define NV906F_CTRL_MMU_FAULT_SHADER_TYPE_TESSELLATION 0x00000003 |
| 184 | #define NV906F_CTRL_MMU_FAULT_SHADER_TYPE_GEOMETRY 0x00000004 |
| 185 | #define NV906F_CTRL_MMU_FAULT_SHADER_TYPE_PIXEL 0x00000005 |
| 186 | #define NV906F_CTRL_MMU_FAULT_SHADER_TYPE_COMPUTE 0x00000006 |
| 187 | #define NV906F_CTRL_MMU_FAULT_SHADER_TYPES 7 |
| 188 | |
| 189 | /* |
| 190 | * NV906F_CTRL_CMD_GET_MMU_FAULT_INFO |
| 191 | * |
| 192 | * This command returns MMU fault information for a given channel. The MMU |
| 193 | * fault information will be cleared once this command is executed. |
| 194 | * |
| 195 | * addrHi - [out] |
| 196 | * Upper 32 bits of faulting address |
| 197 | * addrLo [out] |
| 198 | * Lower 32 bits of faulting address |
| 199 | * faultType [out] |
| 200 | * MMU fault type. Please see NV_PFIFO_INTR_MMU_FAULT_INFO_TYPE_* in |
| 201 | * dev_fifo.h for details about MMU fault type. |
| 202 | * faultString [out] |
| 203 | * String indicating the MMU fault type |
| 204 | * shaderProgramVA [out] |
| 205 | * an array of shader program virtual addresses to indicate faulted shaders in the pipeline |
| 206 | * |
| 207 | * Possible status values returned are: |
| 208 | * NV_OK |
| 209 | */ |
| 210 | #define NV906F_CTRL_MMU_FAULT_STRING_LEN 32 |
| 211 | #define NV906F_CTRL_GET_MMU_FAULT_INFO_PARAMS_MESSAGE_ID (0x6U) |
| 212 | |
| 213 | typedef struct NV906F_CTRL_GET_MMU_FAULT_INFO_PARAMS { |
| 214 | NvU32 addrHi; |
| 215 | NvU32 addrLo; |
| 216 | NvU32 faultType; |
| 217 | char faultString[NV906F_CTRL_MMU_FAULT_STRING_LEN]; |
| 218 | NV_DECLARE_ALIGNED(NvU64 shaderProgramVA[NV906F_CTRL_MMU_FAULT_SHADER_TYPES], 8); |
| 219 | } NV906F_CTRL_GET_MMU_FAULT_INFO_PARAMS; |
| 220 | |
| 221 | |
| 222 | /* _ctrl906f.h_ */ |