interplane.Get Omega
Read in your language

CUDApp

CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit.

Brought by drakestapleton

branch main Branches Tags History

CUDApp / third_party / nvidia-open-580.173.02 / src / common / sdk / nvidia / inc / ctrl / ctrlc36f.h

159 lines · 6478 bytes Raw Blame History
1/*
2 * SPDX-FileCopyrightText: Copyright (c) 2015-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/ctrlc36f.finn
31//
32
33
34
35
36/* VOLTA_CHANNEL_GPFIFO_A control commands and parameters */
37
38#include "ctrl/ctrlxxxx.h"
39#define NVC36F_CTRL_CMD(cat,idx) \
40 NVXXXX_CTRL_CMD(0xC36F, NVC36F_CTRL_##cat, idx)
41
42/* VOLTA_CHANNEL_GPFIFO_A command categories (6bits) */
43#define NVC36F_CTRL_RESERVED (0x00)
44#define NVC36F_CTRL_GPFIFO (0x01)
45#define NVC36F_CTRL_INTERNAL (0x03)
46
47/*
48 * NVC36F_CTRL_CMD_NULL
49 *
50 * This command does nothing.
51 * This command does not take any parameters.
52 *
53 * Possible status values returned is: NV_OK
54*/
55#define NVC36F_CTRL_CMD_NULL (0xc36f0000) /* finn: Evaluated from "(FINN_VOLTA_CHANNEL_GPFIFO_A_RESERVED_INTERFACE_ID << 8) | 0x0" */
56
57
58
59/*
60 * NVC36F_CTRL_CMD_GPFIFO_GET_WORK_SUBMIT_TOKEN
61 *
62 * This command returns an opaque work submit token to the caller which
63 * can be used to write to doorbell register to finish submitting work. If
64 * the client has provided an error context handle during channel allocation,
65 * and the error context is large enough to write the doorbell token, a
66 * notification at index NV_CHANNELGPFIFO_NOTIFICATION_TYPE_WORK_SUBMIT_TOKEN
67 * will be sent with the work submit token value. This index may be modified
68 * by NVC36F_CTRL_CMD_GPFIFO_SET_WORK_SUBMIT_TOKEN_NOTIF_INDEX.
69 *
70 * workSubmitToken The 32-bit work submit token
71 *
72 * Possible status values returned are:
73 * NV_OK
74 * NV_ERR_INVALID_OBJECT_HANDLE
75 * NV_ERR_INVALID_ARGUMENT
76 *
77 */
78
79#define NVC36F_CTRL_CMD_GPFIFO_GET_WORK_SUBMIT_TOKEN (0xc36f0108) /* finn: Evaluated from "(FINN_VOLTA_CHANNEL_GPFIFO_A_GPFIFO_INTERFACE_ID << 8) | NVC36F_CTRL_CMD_GPFIFO_GET_WORK_SUBMIT_TOKEN_PARAMS_MESSAGE_ID" */
80
81#define NVC36F_CTRL_CMD_GPFIFO_GET_WORK_SUBMIT_TOKEN_PARAMS_MESSAGE_ID (0x8U)
82
83typedef struct NVC36F_CTRL_CMD_GPFIFO_GET_WORK_SUBMIT_TOKEN_PARAMS {
84 NvU32 workSubmitToken;
85} NVC36F_CTRL_CMD_GPFIFO_GET_WORK_SUBMIT_TOKEN_PARAMS;
86
87/**
88 * NVC36F_CTRL_CMD_GPFIFO_UPDATE_FAULT_METHOD_BUFFER
89 *
90 * This command updates the HOST CE Fault method buffer
91 * data structure of Virtual channel created for SR-IOV guest. It will also
92 * update the fault method buffer address in the instance block of the channel
93 *
94 * bar2Addr[]
95 * Array contains the Virtual BAR2 address mapped by the Guest during channel
96 * creation.
97 * Possible status values returned are:
98 * NV_OK
99 * NV_ERR_INVALID_INSUFFICIENT_RESOURCES
100 *
101 */
102#define NVC36F_CTRL_CMD_GPFIFO_FAULT_METHOD_BUFFER_MAX_RUNQUEUES 0x2
103#define NVC36F_CTRL_CMD_GPFIFO_UPDATE_FAULT_METHOD_BUFFER (0xc36f0109) /* finn: Evaluated from "(FINN_VOLTA_CHANNEL_GPFIFO_A_GPFIFO_INTERFACE_ID << 8) | NVC36F_CTRL_GPFIFO_UPDATE_FAULT_METHOD_BUFFER_PARAMS_MESSAGE_ID" */
104
105#define NVC36F_CTRL_GPFIFO_UPDATE_FAULT_METHOD_BUFFER_PARAMS_MESSAGE_ID (0x9U)
106
107typedef struct NVC36F_CTRL_GPFIFO_UPDATE_FAULT_METHOD_BUFFER_PARAMS {
108 NV_DECLARE_ALIGNED(NvU64 bar2Addr[NVC36F_CTRL_CMD_GPFIFO_FAULT_METHOD_BUFFER_MAX_RUNQUEUES], 8);
109} NVC36F_CTRL_GPFIFO_UPDATE_FAULT_METHOD_BUFFER_PARAMS;
110
111/*
112 * NVC36F_CTRL_CMD_GPFIFO_SET_WORK_SUBMIT_TOKEN_NOTIF_INDEX
113 *
114 * This command updates the notifier index within the error context notifier
115 * to write the doorbell token to. This interface cannot be used to cause the
116 * token to overwrite the RC notification slot. The notification slot
117 * referred to by the passed index must be within the bounds of the error
118 * context notifier object. In the case that multiple channels share the same
119 * error context, it is not illegal for the client to set the same index for
120 * multiple channels (however it is not recommended).
121 *
122 * [IN] index
123 * Notification slot to write the doorbell token. The initial value of this
124 * index is NV_CHANNELGPFIFO_NOTIFICATION_TYPE_WORK_SUBMIT_TOKEN.
125 *
126 * Possible status values returned are:
127 * NV_OK
128 * NV_ERR_INVALID_OBJECT_HANDLE
129 * NV_ERR_INVALID_ARGUMENT
130 */
131
132#define NVC36F_CTRL_CMD_GPFIFO_SET_WORK_SUBMIT_TOKEN_NOTIF_INDEX (0xc36f010a) /* finn: Evaluated from "(FINN_VOLTA_CHANNEL_GPFIFO_A_GPFIFO_INTERFACE_ID << 8) | NVC36F_CTRL_GPFIFO_SET_WORK_SUBMIT_TOKEN_NOTIF_INDEX_PARAMS_MESSAGE_ID" */
133
134#define NVC36F_CTRL_GPFIFO_SET_WORK_SUBMIT_TOKEN_NOTIF_INDEX_PARAMS_MESSAGE_ID (0xAU)
135
136typedef struct NVC36F_CTRL_GPFIFO_SET_WORK_SUBMIT_TOKEN_NOTIF_INDEX_PARAMS {
137 NvU32 index;
138} NVC36F_CTRL_GPFIFO_SET_WORK_SUBMIT_TOKEN_NOTIF_INDEX_PARAMS;
139
140
141
142/*
143 * NVC36F_CTRL_CMD_INTERNAL_GPFIFO_GET_WORK_SUBMIT_TOKEN
144 *
145 * This command is an internal command sent from Kernel RM to Physical RM
146 * to get work submit token
147 *
148 * Please see description of NVC36F_CTRL_CMD_GPFIFO_GET_WORK_SUBMIT_TOKEN for more information.
149 *
150 */
151
152#define NVC36F_CTRL_CMD_INTERNAL_GPFIFO_GET_WORK_SUBMIT_TOKEN (0xc36f0301) /* finn: Evaluated from "(FINN_VOLTA_CHANNEL_GPFIFO_A_INTERNAL_INTERFACE_ID << 8) | NVC36F_CTRL_INTERNAL_GPFIFO_GET_WORK_SUBMIT_TOKEN_PARAMS_MESSAGE_ID" */
153
154#define NVC36F_CTRL_INTERNAL_GPFIFO_GET_WORK_SUBMIT_TOKEN_PARAMS_MESSAGE_ID (0x1U)
155
156typedef NVC36F_CTRL_CMD_GPFIFO_GET_WORK_SUBMIT_TOKEN_PARAMS NVC36F_CTRL_INTERNAL_GPFIFO_GET_WORK_SUBMIT_TOKEN_PARAMS;
157
158/* _ctrlc36f.h_ */
159