1 #ifndef __src_nvidia_arch_nvalloc_common_inc_gsp_gsp_fw_sr_meta_h__
2 #define __src_nvidia_arch_nvalloc_common_inc_gsp_gsp_fw_sr_meta_h__
4 /* Excerpt of RM headers from https://github.com/NVIDIA/open-gpu-kernel-modules/tree/535.113.01 */
7 * SPDX-FileCopyrightText: Copyright (c) 2022-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
8 * SPDX-License-Identifier: MIT
10 * Permission is hereby granted, free of charge, to any person obtaining a
11 * copy of this software and associated documentation files (the "Software"),
12 * to deal in the Software without restriction, including without limitation
13 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
14 * and/or sell copies of the Software, and to permit persons to whom the
15 * Software is furnished to do so, subject to the following conditions:
17 * The above copyright notice and this permission notice shall be included in
18 * all copies or substantial portions of the Software.
20 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
23 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
25 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
26 * DEALINGS IN THE SOFTWARE.
29 #define GSP_FW_SR_META_MAGIC 0x8a3bb9e6c6c39d93ULL
30 #define GSP_FW_SR_META_REVISION 2
36 // Use for verification by Booter
38 NvU64 magic; // = GSP_FW_SR_META_MAGIC;
42 // Bumped up when we change this interface so it is not backward compatible.
43 // Bumped up when we revoke GSP-RM ucode
45 NvU64 revision; // = GSP_FW_SR_META_MAGIC_REVISION;
48 // ---- Members regarding data in SYSMEM ----------------------------
49 // Consumed by Booter for DMA
51 NvU64 sysmemAddrOfSuspendResumeData;
52 NvU64 sizeOfSuspendResumeData;
54 // ---- Members for crypto ops across S/R ---------------------------
57 // HMAC over the entire GspFwSRMeta structure (including padding)
58 // with the hmac field itself zeroed.
62 // Hash over GspFwWprMeta structure
65 // Hash over GspFwHeapFreeList structure. All zeros signifies no free list.
66 NvU8 heapFreeListHash[32];
68 // Hash over data in WPR2 (skipping over free heap chunks; see Booter for details)
72 // Pad structure to exactly 256 bytes (1 DMA chunk).
73 // Padding initialized to zero.