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 / nvimpshared.h
| 1 | /* |
| 2 | * SPDX-FileCopyrightText: Copyright (c) 2020-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 | /******************************************************************************\ |
| 25 | * * |
| 26 | * Description: * |
| 27 | * Accommodates sharing of IMP-related structures between kernel interface * |
| 28 | * files and core RM. * |
| 29 | * * |
| 30 | \******************************************************************************/ |
| 31 | |
| 32 | #pragma once |
| 33 | |
| 34 | #include <nvtypes.h> |
| 35 | |
| 36 | // |
| 37 | // This file was generated with FINN, an NVIDIA coding tool. |
| 38 | // Source file: nvimpshared.finn |
| 39 | // |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | // |
| 45 | // There are only a small number of discrete dramclk frequencies available on |
| 46 | // the system. This structure contains IMP-relevant information associated |
| 47 | // with a specific dramclk frequency. |
| 48 | // |
| 49 | typedef struct DRAM_CLK_INSTANCE { |
| 50 | NvU32 dram_clk_freq_khz; |
| 51 | |
| 52 | NvU32 mchub_clk_khz; |
| 53 | |
| 54 | NvU32 mc_clk_khz; |
| 55 | |
| 56 | NvU32 max_iso_bw_kbps; |
| 57 | |
| 58 | // |
| 59 | // switch_latency_ns is the maximum time required to switch the dramclk |
| 60 | // frequency to the frequency specified in dram_clk_freq_khz. |
| 61 | // |
| 62 | NvU32 switch_latency_ns; |
| 63 | } DRAM_CLK_INSTANCE; |
| 64 | |
| 65 | // |
| 66 | // This table is used to collect information from other modules that is needed |
| 67 | // for RM IMP calculations. (Used on Tegra only.) |
| 68 | // |
| 69 | typedef struct TEGRA_IMP_IMPORT_DATA { |
| 70 | // |
| 71 | // max_iso_bw_kbps stores the maximum possible ISO bandwidth available to |
| 72 | // display, assuming display is the only active ISO client. (Note that ISO |
| 73 | // bandwidth will typically be allocated to multiple clients, so display |
| 74 | // will generally not have access to the maximum possible bandwidth.) |
| 75 | // |
| 76 | NvU32 max_iso_bw_kbps; |
| 77 | |
| 78 | // On Orin, each dram channel is 16 bits wide. |
| 79 | NvU32 num_dram_channels; |
| 80 | |
| 81 | // |
| 82 | // dram_clk_instance stores entries for all possible dramclk frequencies, |
| 83 | // sorted by dramclk frequency in increasing order. |
| 84 | // |
| 85 | // "24" is expected to be larger than the actual number of required entries |
| 86 | // (which is provided by a BPMP API), but it can be increased if necessary. |
| 87 | // |
| 88 | // num_dram_clk_entries is filled in with the actual number of distinct |
| 89 | // dramclk entries. |
| 90 | // |
| 91 | NvU32 num_dram_clk_entries; |
| 92 | DRAM_CLK_INSTANCE dram_clk_instance[24]; |
| 93 | } TEGRA_IMP_IMPORT_DATA; |