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
CUDApp / third_party / nvidia-open-580.173.02 / src / common / sdk / nvidia / inc / ctrl / ctrla06c.h
| 1 | /* |
| 2 | * SPDX-FileCopyrightText: Copyright (c) 2009-2022 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/ctrla06c.finn |
| 31 | // |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | /* |
| 37 | * KEPLER_CHANNEL_GROUP_A control commands and parameters |
| 38 | * |
| 39 | * A channel group is a collection of channels which are executed in a specific |
| 40 | * order by hardware. Hardware will not move from one channel in the group |
| 41 | * until it is finished executing all its work or gives up control to the next |
| 42 | * channel. |
| 43 | * |
| 44 | * Channels are added to the group by allocating them as a child of the |
| 45 | * KEPLER_CHANNEL_GROUP_A object. |
| 46 | * |
| 47 | * A channel in a channel group may be restricted with respect to what objects |
| 48 | * can be allocated on it and what APIs are allowed to operate on the channel. |
| 49 | * For more details on specifics of how groups behave see the Software and |
| 50 | * Hardware documetation for the specific architecture in which you are |
| 51 | * interested. |
| 52 | * |
| 53 | */ |
| 54 | |
| 55 | #include "ctrl/ctrlxxxx.h" |
| 56 | #include "ctrl/ctrla06f/ctrla06fgpfifo.h" /* A06C is partially derived from A06F */ |
| 57 | |
| 58 | #include "ctrl/ctrl2080/ctrl2080internal.h" /* For NV2080_CTRL_INTERNAL_MEMDESC_INFO */ |
| 59 | #include "ctrl/ctrlc36f.h" /* For NVC36F_CTRL_CMD_GPFIFO_FAULT_METHOD_BUFFER_MAX_RUNQUEUES */ |
| 60 | |
| 61 | #define NVA06C_CTRL_CMD(cat,idx) \ |
| 62 | NVXXXX_CTRL_CMD(0xA06C, NVA06C_CTRL_##cat, idx) |
| 63 | |
| 64 | /* KEPLER_CHANNEL_GROUP_A command categories (6bits) */ |
| 65 | #define NVA06C_CTRL_RESERVED (0x00) |
| 66 | #define NVA06C_CTRL_GPFIFO (0x01) |
| 67 | #define NVA06C_CTRL_INTERNAL (0x02) |
| 68 | |
| 69 | /* |
| 70 | * NVA06C_CTRL_CMD_NULL |
| 71 | * |
| 72 | * Please see description of NV906D_CTRL_CMD_NULL. |
| 73 | * |
| 74 | */ |
| 75 | #define NVA06C_CTRL_CMD_NULL (0xa06c0000) /* finn: Evaluated from "(FINN_KEPLER_CHANNEL_GROUP_A_RESERVED_INTERFACE_ID << 8) | 0x0" */ |
| 76 | |
| 77 | |
| 78 | |
| 79 | |
| 80 | |
| 81 | /* |
| 82 | * NVA06C_CTRL_CMD_GPFIFO_SCHEDULE |
| 83 | * |
| 84 | * This command schedules a channel group in hardware. This command should be |
| 85 | * called after objects have been allocated on the channel or a call to |
| 86 | * NVA06C_CTRL_CMD_BIND has been made. |
| 87 | * |
| 88 | * See NVA06F_CTRL_CMD_GPFIFO_SCHEDULE for parameter definitions. |
| 89 | * |
| 90 | * Possible status values returned are: |
| 91 | * NV_OK |
| 92 | * NV_ERR_INVALID_OBJECT_HANDLE |
| 93 | * NV_ERR_INVALID_STATE |
| 94 | * NV_ERR_INVALID_OPERATION |
| 95 | * |
| 96 | */ |
| 97 | #define NVA06C_CTRL_CMD_GPFIFO_SCHEDULE (0xa06c0101) /* finn: Evaluated from "(FINN_KEPLER_CHANNEL_GROUP_A_GPFIFO_INTERFACE_ID << 8) | NVA06C_CTRL_GPFIFO_SCHEDULE_PARAMS_MESSAGE_ID" */ |
| 98 | |
| 99 | #define NVA06C_CTRL_GPFIFO_SCHEDULE_PARAMS_MESSAGE_ID (0x1U) |
| 100 | |
| 101 | typedef NVA06F_CTRL_GPFIFO_SCHEDULE_PARAMS NVA06C_CTRL_GPFIFO_SCHEDULE_PARAMS; |
| 102 | |
| 103 | /* |
| 104 | * NVA06C_CTRL_CMD_BIND |
| 105 | * |
| 106 | * This command uses the given engine to configure the group for scheduling. |
| 107 | * It alleviates the need to call NVA06C_CTRL_CMD_GPFIFO_SCHEDULE after objects |
| 108 | * have been allocated. However, it requires that the caller know which engine |
| 109 | * they want to be able to execute in the group. Once this has been called |
| 110 | * only objects that can be allocated on the specified engine or other engines |
| 111 | * allowed to coexist in the group will be allowed. See |
| 112 | * NV2080_CTRL_CMD_GPU_GET_ENGINE_PARTNERLIST to determine which engines can |
| 113 | * share a parent. |
| 114 | * |
| 115 | * See NVA06F_CTRL_CMD_BIND for parameter definitions. |
| 116 | * |
| 117 | * Possible status values returned are: |
| 118 | * NV_OK |
| 119 | * NV_ERR_INVALID_ARGUMENT |
| 120 | * NV_ERR_INVALID_STATE |
| 121 | */ |
| 122 | #define NVA06C_CTRL_CMD_BIND (0xa06c0102) /* finn: Evaluated from "(FINN_KEPLER_CHANNEL_GROUP_A_GPFIFO_INTERFACE_ID << 8) | NVA06C_CTRL_BIND_PARAMS_MESSAGE_ID" */ |
| 123 | |
| 124 | #define NVA06C_CTRL_BIND_PARAMS_MESSAGE_ID (0x2U) |
| 125 | |
| 126 | typedef NVA06F_CTRL_BIND_PARAMS NVA06C_CTRL_BIND_PARAMS; |
| 127 | |
| 128 | /* |
| 129 | * NVA06C_CTRL_CMD_SET_TIMESLICE |
| 130 | * |
| 131 | * This command modifies the timeslice for a channel group. Hardware may not |
| 132 | * support all possible values, so the input will be rounded down to a valid |
| 133 | * hardware value. |
| 134 | * |
| 135 | * This takes effect immediately, meaning the channel may be forced off of the |
| 136 | * GPU so the change can be made. |
| 137 | * |
| 138 | * timesliceUs |
| 139 | * This parameter is an input containing the desired timeslice in microseconds |
| 140 | * |
| 141 | * Possible status values returned are: |
| 142 | * NV_OK |
| 143 | * NV_ERR_INVALID_ARGUMENT |
| 144 | * NV_ERR_INVALID_STATE |
| 145 | */ |
| 146 | #define NVA06C_CTRL_CMD_SET_TIMESLICE (0xa06c0103) /* finn: Evaluated from "(FINN_KEPLER_CHANNEL_GROUP_A_GPFIFO_INTERFACE_ID << 8) | NVA06C_CTRL_SET_TIMESLICE_PARAMS_MESSAGE_ID" */ |
| 147 | |
| 148 | typedef struct NVA06C_CTRL_TIMESLICE_PARAMS { |
| 149 | NV_DECLARE_ALIGNED(NvU64 timesliceUs, 8); |
| 150 | } NVA06C_CTRL_TIMESLICE_PARAMS; |
| 151 | |
| 152 | #define NVA06C_CTRL_SET_TIMESLICE_PARAMS_MESSAGE_ID (0x3U) |
| 153 | |
| 154 | typedef NVA06C_CTRL_TIMESLICE_PARAMS NVA06C_CTRL_SET_TIMESLICE_PARAMS; |
| 155 | |
| 156 | /* |
| 157 | * NVA06C_CTRL_CMD_GET_TIMESLICE |
| 158 | * |
| 159 | * This command returns the timeslice for a channel group. If |
| 160 | * NVA06C_CTRL_CMD_SET_TIMESLICE has been used this call will return the exact |
| 161 | * value passed to that function, which may not be exactly what is programmed |
| 162 | * to hardware (see NVA06C_CTRL_CMD_SET_TIMESLICE for more details). |
| 163 | * |
| 164 | * timesliceUs |
| 165 | * This parameter is an output containing current timeslice in microseconds. |
| 166 | * |
| 167 | * Possible status values returned are: |
| 168 | * NV_OK |
| 169 | * NV_ERR_INVALID_ARGUMENT |
| 170 | * NV_ERR_INVALID_STATE |
| 171 | */ |
| 172 | #define NVA06C_CTRL_CMD_GET_TIMESLICE (0xa06c0104) /* finn: Evaluated from "(FINN_KEPLER_CHANNEL_GROUP_A_GPFIFO_INTERFACE_ID << 8) | NVA06C_CTRL_GET_TIMESLICE_PARAMS_MESSAGE_ID" */ |
| 173 | |
| 174 | #define NVA06C_CTRL_GET_TIMESLICE_PARAMS_MESSAGE_ID (0x4U) |
| 175 | |
| 176 | typedef NVA06C_CTRL_TIMESLICE_PARAMS NVA06C_CTRL_GET_TIMESLICE_PARAMS; |
| 177 | |
| 178 | /* |
| 179 | * NVA06C_CTRL_CMD_PREEMPT |
| 180 | * |
| 181 | * This command preempts a channel group. It optionally waits for the preempt to |
| 182 | * complete before returning. |
| 183 | * |
| 184 | * bWait |
| 185 | * If bWait evaluates to NV_TRUE then this control call waits till the preempt |
| 186 | * completes, else it returns immediately after issuing the preempt. Calling |
| 187 | * this control call multiple times with bWait = NV_FALSE without waiting for |
| 188 | * the preempt to complete by some other means can lead to undefined results. |
| 189 | * bManualTimeout |
| 190 | * If bManualTimer evaluates to NV_TRUE then timeoutUs will be used as the |
| 191 | * timeout value. |
| 192 | * timeoutUs |
| 193 | * The desired timeout in microseconds. Only used if bManualTimeout evaluates |
| 194 | * to NV_TRUE. The maximum value of timeoutUs is |
| 195 | * NVA06C_CTRL_CMD_PREEMPT_MAX_MANUAL_TIMEOUT_US. |
| 196 | * |
| 197 | * Possible status values returned are: |
| 198 | * NV_OK |
| 199 | * NV_ERR_INVALID_ARGUMENT |
| 200 | * NV_ERR_INVALID_STATE |
| 201 | * |
| 202 | */ |
| 203 | #define NVA06C_CTRL_CMD_PREEMPT (0xa06c0105) /* finn: Evaluated from "(FINN_KEPLER_CHANNEL_GROUP_A_GPFIFO_INTERFACE_ID << 8) | NVA06C_CTRL_PREEMPT_PARAMS_MESSAGE_ID" */ |
| 204 | |
| 205 | #define NVA06C_CTRL_PREEMPT_PARAMS_MESSAGE_ID (0x5U) |
| 206 | |
| 207 | typedef struct NVA06C_CTRL_PREEMPT_PARAMS { |
| 208 | NvBool bWait; |
| 209 | NvBool bManualTimeout; |
| 210 | NvU32 timeoutUs; |
| 211 | } NVA06C_CTRL_PREEMPT_PARAMS; |
| 212 | |
| 213 | #define NVA06C_CTRL_CMD_PREEMPT_MAX_MANUAL_TIMEOUT_US (1000000) // 1 second |
| 214 | |
| 215 | /* |
| 216 | * NVA06C_CTRL_CMD_GET_INFO |
| 217 | * |
| 218 | * This command returns information about the channel group. |
| 219 | * |
| 220 | * tsgID |
| 221 | * Output parameter containing the hardware TSG ID for this channel group. |
| 222 | * |
| 223 | * Possible status values returned are: |
| 224 | * NV_OK |
| 225 | * NV_ERR_INVALID_OBJECT |
| 226 | * NV_ERR_INVALID_ARGUMENT |
| 227 | * |
| 228 | */ |
| 229 | #define NVA06C_CTRL_CMD_GET_INFO (0xa06c0106) /* finn: Evaluated from "(FINN_KEPLER_CHANNEL_GROUP_A_GPFIFO_INTERFACE_ID << 8) | NVA06C_CTRL_GET_INFO_PARAMS_MESSAGE_ID" */ |
| 230 | |
| 231 | #define NVA06C_CTRL_GET_INFO_PARAMS_MESSAGE_ID (0x6U) |
| 232 | |
| 233 | typedef struct NVA06C_CTRL_GET_INFO_PARAMS { |
| 234 | NvU32 tsgID; |
| 235 | } NVA06C_CTRL_GET_INFO_PARAMS; |
| 236 | |
| 237 | /* |
| 238 | * NVA06C_CTRL_CMD_SET_INTERLEAVE_LEVEL |
| 239 | * |
| 240 | * Used to change the target TSG's interleave level in the runlist. The |
| 241 | * interleave level indicates how often channels in the TSG appear in the |
| 242 | * runlist according to the following policy: |
| 243 | * |
| 244 | * - LOW: Appear once |
| 245 | * - MEDIUM: If L > 0, appear L times |
| 246 | * Else, appear once |
| 247 | * - HIGH: If L > 0, appear (M + 1) * L times |
| 248 | * Else if M > 0, appear M times |
| 249 | * Else, appear once |
| 250 | * where |
| 251 | * - L = # of LOW interleave level TSGs |
| 252 | * - M = # of MEDIUM interleave level TSGs |
| 253 | * |
| 254 | * For safety reasons, setting this property requires PRIVILEGED user level. |
| 255 | * |
| 256 | * tsgInterleaveLevel |
| 257 | * Input parameter. One of: |
| 258 | * - NVA06C_CTRL_INTERLEAVE_LEVEL_LOW |
| 259 | * - NVA06C_CTRL_INTERLEAVE_LEVEL_MEDIUM |
| 260 | * - NVA06C_CTRL_INTERLEAVE_LEVEL_HIGH |
| 261 | * |
| 262 | * Possible status values returned are: |
| 263 | * NV_OK |
| 264 | * NV_ERR_INVALID_ARGUMENT |
| 265 | * NV_ERR_INVALID_STATE |
| 266 | * NV_ERR_INSUFFICIENT_PERMISSIONS |
| 267 | */ |
| 268 | #define NVA06C_CTRL_CMD_SET_INTERLEAVE_LEVEL (0xa06c0107) /* finn: Evaluated from "(FINN_KEPLER_CHANNEL_GROUP_A_GPFIFO_INTERFACE_ID << 8) | NVA06C_CTRL_SET_INTERLEAVE_LEVEL_PARAMS_MESSAGE_ID" */ |
| 269 | |
| 270 | typedef struct NVA06C_CTRL_INTERLEAVE_LEVEL_PARAMS { |
| 271 | NvU32 tsgInterleaveLevel; |
| 272 | } NVA06C_CTRL_INTERLEAVE_LEVEL_PARAMS; |
| 273 | |
| 274 | #define NVA06C_CTRL_INTERLEAVE_LEVEL_LOW (0x00000000) |
| 275 | #define NVA06C_CTRL_INTERLEAVE_LEVEL_MEDIUM (0x00000001) |
| 276 | #define NVA06C_CTRL_INTERLEAVE_LEVEL_HIGH (0x00000002) |
| 277 | |
| 278 | #define NVA06C_CTRL_SET_INTERLEAVE_LEVEL_PARAMS_MESSAGE_ID (0x7U) |
| 279 | |
| 280 | typedef NVA06C_CTRL_INTERLEAVE_LEVEL_PARAMS NVA06C_CTRL_SET_INTERLEAVE_LEVEL_PARAMS; |
| 281 | |
| 282 | /* |
| 283 | * NVA06C_CTRL_CMD_GET_INTERLEAVE_LEVEL |
| 284 | * |
| 285 | * Returns the target TSG's interleave level. |
| 286 | * |
| 287 | * tsgInterleaveLevel |
| 288 | * Output parameter. One of: |
| 289 | * - NVA06C_CTRL_INTERLEAVE_LEVEL_LOW |
| 290 | * - NVA06C_CTRL_INTERLEAVE_LEVEL_MEDIUM |
| 291 | * - NVA06C_CTRL_INTERLEAVE_LEVEL_HIGH |
| 292 | * |
| 293 | * Possible status values returned are: |
| 294 | * NV_OK |
| 295 | * NV_ERR_INVALID_ARGUMENT |
| 296 | * NV_ERR_INVALID_STATE |
| 297 | */ |
| 298 | #define NVA06C_CTRL_CMD_GET_INTERLEAVE_LEVEL (0xa06c0108) /* finn: Evaluated from "(FINN_KEPLER_CHANNEL_GROUP_A_GPFIFO_INTERFACE_ID << 8) | NVA06C_CTRL_GET_INTERLEAVE_LEVEL_PARAMS_MESSAGE_ID" */ |
| 299 | |
| 300 | #define NVA06C_CTRL_GET_INTERLEAVE_LEVEL_PARAMS_MESSAGE_ID (0x8U) |
| 301 | |
| 302 | typedef NVA06C_CTRL_INTERLEAVE_LEVEL_PARAMS NVA06C_CTRL_GET_INTERLEAVE_LEVEL_PARAMS; |
| 303 | |
| 304 | /* |
| 305 | * NVA06C_CTRL_CMD_PROGRAM_VIDMEM_PROMOTE |
| 306 | * This ctrl call is deprecated in favor of NV0090_CTRL_CMD_PROGRAM_VIDMEM_PROMOTE. |
| 307 | * @see NV0090_CTRL_CMD_PROGRAM_VIDMEM_PROMOTE |
| 308 | */ |
| 309 | #define NVA06C_CTRL_CMD_PROGRAM_VIDMEM_PROMOTE (0xa06c0109) /* finn: Evaluated from "(FINN_KEPLER_CHANNEL_GROUP_A_GPFIFO_INTERFACE_ID << 8) | NVA06C_CTRL_PROGRAM_VIDMEM_PROMOTE_PARAMS_MESSAGE_ID" */ |
| 310 | |
| 311 | typedef enum NVA06C_CTRL_PROGRAM_VIDMEM_PROMOTE_SIZE { |
| 312 | NVA06C_CTRL_PROGRAM_VIDMEM_PROMOTE_SIZE_NONE = 0, |
| 313 | NVA06C_CTRL_PROGRAM_VIDMEM_PROMOTE_SIZE_64B = 1, |
| 314 | NVA06C_CTRL_PROGRAM_VIDMEM_PROMOTE_SIZE_128B = 2, |
| 315 | } NVA06C_CTRL_PROGRAM_VIDMEM_PROMOTE_SIZE; |
| 316 | |
| 317 | typedef struct NVA06C_CTRL_PROGRAM_VIDMEM_PROMOTE_FIELD { |
| 318 | NVA06C_CTRL_PROGRAM_VIDMEM_PROMOTE_SIZE size; |
| 319 | } NVA06C_CTRL_PROGRAM_VIDMEM_PROMOTE_FIELD; |
| 320 | |
| 321 | #define NVA06C_CTRL_PROGRAM_VIDMEM_PROMOTE_PARAMS_MESSAGE_ID (0x9U) |
| 322 | |
| 323 | typedef struct NVA06C_CTRL_PROGRAM_VIDMEM_PROMOTE_PARAMS { |
| 324 | NVA06C_CTRL_PROGRAM_VIDMEM_PROMOTE_FIELD l1; |
| 325 | NVA06C_CTRL_PROGRAM_VIDMEM_PROMOTE_FIELD t1; |
| 326 | } NVA06C_CTRL_PROGRAM_VIDMEM_PROMOTE_PARAMS; |
| 327 | |
| 328 | /*! |
| 329 | * NVA06C_CTRL_CMD_INTERNAL_PROMOTE_FAULT_METHOD_BUFFERS |
| 330 | * |
| 331 | * This control call is used to |
| 332 | * - set the fault method buffer addresses in vGpu host / GSP after the fault |
| 333 | * method buffers are allocated by vGpu guest / GSP_CLIENT during channel |
| 334 | * group allocation |
| 335 | * - destroy the method buffer memory descriptors during channel group free |
| 336 | * |
| 337 | * methodBufferMemdesc [input] |
| 338 | * Details about the memory allocated for method buffer for each runqueue. |
| 339 | * If the size of the memory region is zero, the descriptor will be destroyed. |
| 340 | * |
| 341 | * bar2Addr [input] |
| 342 | * CPU invisible BAR2 address that the method buffer is mapped to for each |
| 343 | * runqueue |
| 344 | * |
| 345 | * numValidEntries [input] |
| 346 | * The number of valid entries upto |
| 347 | * NVC36F_CTRL_CMD_GPFIFO_FAULT_METHOD_BUFFER_MAX_RUNQUEUES actually filled in |
| 348 | * the control call parameters. |
| 349 | * |
| 350 | * Possible status values returned are: |
| 351 | * NV_OK |
| 352 | * NV_ERR_INVALID_ARGUMENT |
| 353 | */ |
| 354 | #define NVA06C_CTRL_CMD_INTERNAL_PROMOTE_FAULT_METHOD_BUFFERS (0xa06c010a) /* finn: Evaluated from "(FINN_KEPLER_CHANNEL_GROUP_A_GPFIFO_INTERFACE_ID << 8 | NVA06C_CTRL_INTERNAL_PROMOTE_FAULT_METHOD_BUFFERS_PARAMS_MESSAGE_ID)" */ |
| 355 | |
| 356 | #define NVA06C_CTRL_INTERNAL_PROMOTE_FAULT_METHOD_BUFFERS_MAX_RUNQUEUES (NVC36F_CTRL_CMD_GPFIFO_FAULT_METHOD_BUFFER_MAX_RUNQUEUES) |
| 357 | |
| 358 | #define NVA06C_CTRL_INTERNAL_PROMOTE_FAULT_METHOD_BUFFERS_PARAMS_MESSAGE_ID (0xaU) |
| 359 | |
| 360 | typedef struct NVA06C_CTRL_INTERNAL_PROMOTE_FAULT_METHOD_BUFFERS_PARAMS { |
| 361 | NV_DECLARE_ALIGNED(NV2080_CTRL_INTERNAL_MEMDESC_INFO methodBufferMemdesc[NVA06C_CTRL_INTERNAL_PROMOTE_FAULT_METHOD_BUFFERS_MAX_RUNQUEUES], 8); |
| 362 | NV_DECLARE_ALIGNED(NvU64 bar2Addr[NVA06C_CTRL_INTERNAL_PROMOTE_FAULT_METHOD_BUFFERS_MAX_RUNQUEUES], 8); |
| 363 | NvU32 numValidEntries; |
| 364 | } NVA06C_CTRL_INTERNAL_PROMOTE_FAULT_METHOD_BUFFERS_PARAMS; |
| 365 | |
| 366 | /* |
| 367 | * NVA06C_CTRL_CMD_MAKE_REALTIME |
| 368 | * |
| 369 | * Promote the specified TSG to realtime, or demote to non-realtime, |
| 370 | * depending on the given bRealtime parameter. A realtime TSG will have the |
| 371 | * highest interleave level when the scheduling policy is CHANNEL_INTERLEAVED, |
| 372 | * and will also precede any non-realtime channel/TSG in the order channels are |
| 373 | * added to the corresponding runlist. |
| 374 | * |
| 375 | * Whenever a realtime TSG is added to a runlist, all non-realtime channels/TSGs |
| 376 | * are made preemptible by setting a COMPUTE preemption mode to CTA. |
| 377 | * |
| 378 | * Preemption modes for realtime TSGs remain WFI. |
| 379 | * |
| 380 | * A client must then issue a NVA06F_CTRL_CMD_RESTART_RUNLIST control call when |
| 381 | * kicking off work on a realtime TSG to preempt non-realtime channels and |
| 382 | * restart the runlist such that the realtime TSG will start executing next. |
| 383 | * |
| 384 | * bRealtime |
| 385 | * Whether the TSG is to be promoted to/demoted from realtime. |
| 386 | * |
| 387 | * Possible status values returned are: |
| 388 | * NV_OK |
| 389 | * NV_ERR_INVALID_ARGUMENT |
| 390 | * NV_ERR_INVALID_PARAMETER |
| 391 | * NV_ERR_INVALID_OBJECT |
| 392 | * NV_ERR_INVALID_STATE |
| 393 | * NV_ERR_NOT_SUPPORTED |
| 394 | */ |
| 395 | #define NVA06C_CTRL_CMD_MAKE_REALTIME (0xa06c0110) /* finn: Evaluated from "(FINN_KEPLER_CHANNEL_GROUP_A_GPFIFO_INTERFACE_ID << 8) | NVA06C_CTRL_MAKE_REALTIME_PARAMS_MESSAGE_ID" */ |
| 396 | |
| 397 | #define NVA06C_CTRL_MAKE_REALTIME_PARAMS_MESSAGE_ID (0x10U) |
| 398 | |
| 399 | typedef struct NVA06C_CTRL_MAKE_REALTIME_PARAMS { |
| 400 | NvBool bRealtime; |
| 401 | } NVA06C_CTRL_MAKE_REALTIME_PARAMS; |
| 402 | |
| 403 | |
| 404 | |
| 405 | |
| 406 | |
| 407 | /* |
| 408 | * NVA06C_CTRL_CMD_INTERNAL_GPFIFO_SCHEDULE |
| 409 | * |
| 410 | * This command is an internal command sent from Kernel RM to Physical RM |
| 411 | * to schedule a channel group in hardware. |
| 412 | * |
| 413 | * Please see description of NVA06C_CTRL_CMD_GPFIFO_SCHEDULE for more information. |
| 414 | * |
| 415 | */ |
| 416 | #define NVA06C_CTRL_CMD_INTERNAL_GPFIFO_SCHEDULE (0xa06c0201) /* finn: Evaluated from "(FINN_KEPLER_CHANNEL_GROUP_A_INTERNAL_INTERFACE_ID << 8) | NVA06C_CTRL_INTERNAL_GPFIFO_SCHEDULE_PARAMS_MESSAGE_ID" */ |
| 417 | |
| 418 | #define NVA06C_CTRL_INTERNAL_GPFIFO_SCHEDULE_PARAMS_MESSAGE_ID (0x1U) |
| 419 | |
| 420 | typedef NVA06C_CTRL_GPFIFO_SCHEDULE_PARAMS NVA06C_CTRL_INTERNAL_GPFIFO_SCHEDULE_PARAMS; |
| 421 | |
| 422 | /* |
| 423 | * NVA06C_CTRL_CMD_INTERNAL_SET_TIMESLICE |
| 424 | * |
| 425 | * This command is an internal command sent from Kernel RM to Physical RM |
| 426 | * to modify the timeslice for a channel group in hardware. |
| 427 | * |
| 428 | * Please see description of NVA06C_CTRL_CMD_SET_TIMESLICE for more information. |
| 429 | * |
| 430 | */ |
| 431 | #define NVA06C_CTRL_CMD_INTERNAL_SET_TIMESLICE (0xa06c0202) /* finn: Evaluated from "(FINN_KEPLER_CHANNEL_GROUP_A_INTERNAL_INTERFACE_ID << 8) | NVA06C_CTRL_INTERNAL_SET_TIMESLICE_PARAMS_MESSAGE_ID" */ |
| 432 | |
| 433 | #define NVA06C_CTRL_INTERNAL_SET_TIMESLICE_PARAMS_MESSAGE_ID (0x2U) |
| 434 | |
| 435 | typedef NVA06C_CTRL_TIMESLICE_PARAMS NVA06C_CTRL_INTERNAL_SET_TIMESLICE_PARAMS; |
| 436 | |
| 437 | /* _ctrla06c.h_ */ |
| 438 |