NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release
nvrm_memmgr_safe.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2007-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: LicenseRef-NvidiaProprietary
4  *
5  * NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
6  * property and proprietary rights in and to this material, related
7  * documentation and any modifications thereto. Any use, reproduction,
8  * disclosure or distribution of this material and related documentation
9  * without an express license agreement from NVIDIA CORPORATION or
10  * its affiliates is strictly prohibited.
11  */
12 
13 #ifndef INCLUDED_nvrm_memmgr_safe_H
14 #define INCLUDED_nvrm_memmgr_safe_H
15 
16 #include <stdint.h>
17 
18 #if defined(__cplusplus)
19 extern "C"
20 {
21 #endif
22 
23 #include "nvrm_defs.h"
24 #include "nvos.h"
25 
26 #ifndef __GNUC__
27 #define SAFE_ASM asm
28 #else
29 #define SAFE_ASM __asm__
30 #endif
31 
32 #if (defined(__GNUC__) && defined(__thumb__)) \
33  || (defined(__ARMCC_VERSION) && defined(__thumb__)) \
34  || (defined(__ghs__) && defined(__THUMB__))
35  /* ARM-thumb mode(<=ARMv7)/T32 (ARMv8) */
36  #define NV_SPECULATION_BARRIER_ARM_COMMON
37  #define NV_SPEC_BARRIER_CSDB ".inst.w 0xf3af8014\n"
38 
39 #elif (defined(__GNUC__) && defined(__arm__)) \
40  || (defined(__ARMCC_VERSION) && defined(__arm__)) \
41  || (defined(__ghs__) && defined(__ARM__))
42  /* aarch32(ARMv8) / arm(<=ARMv7) mode */
43  #define NV_SPECULATION_BARRIER_ARM_COMMON
44  #define NV_SPEC_BARRIER_CSDB ".inst 0xe320f014\n"
45 
46 #elif (defined(__GNUC__) && defined(__aarch64__)) \
47  || (defined(__ARMCC_VERSION) && defined(__aarch64__)) \
48  || (defined(__ghs__) && defined(__ARM64__))
49  /* aarch64(ARMv8) mode */
50  #define NV_SPECULATION_BARRIER_ARM_COMMON
51  #define NV_SPEC_BARRIER_CSDB "HINT #20\n"
52 
53 #endif
54 
55 
56 /*
57  * @defgroup nvrm_memmgr RM Memory Management Services
58  *
59  * @ingroup nvddk_rm
60  *
61  * The APIs in this header file are intended to be used for allocating and
62  * managing memory that needs to be accessed by HW devices. It is not intended
63  * as a replacement for malloc(). If only the CPU will ever access the memory,
64  * this API is probably extreme overkill for your needs.
65  *
66  * NvRmMemHandleAllocAttr() is used to allcoate the memory as per client
67  * requirements. Memory allocated by NvRmMemHandleAllocAttr() is intended to be
68  * asynchronously movable by the RM at any time.
69  *
70  * At the time of allocating a handle, the size and properties of memory buffer
71  * can be specified. Size and properties of buffer cannot be changed over
72  * the lifetime of buffer.
73  *
74  * The Coherency specified during the allocation of memory buffer is used for
75  * accesses that occur from CPU.
76  * If the coherency is specified as WriteCombined, The accesses from CPU would
77  * bypass CPU caches But can go through writecombine/store buffers.
78  * If the coherency is specified as WriteBack, The accesses from CPU can go
79  * through store buffers and caches.
80  * After accessing memory buffer from CPU, before handing over the buffer to
81  * H/W engines, Cache maintenance(NvRmMemCacheSyncForDevice()) on buffer is
82  * necessary if it is allocated as WriteBack buffer. For WriteCombined buffers
83  * It would be necessary to execute barriers in order to flush store buffers
84  * and to ensure that reaches DRAM. The barrier can be executed any time before
85  * HW Device access the buffer.
86  *
87  * Before accessing memory buffer from CPU, After H/W engine has written to
88  * memory buffer, cache maintenance(NvRmMemCacheSyncForCpu()) is necessary for
89  * WriteBack coherency. Speculative fetches in a processor can get data
90  * into cache for the memory that is mapped as Cached even though S/W didn't
91  * access it explicitly. In order to ensure CPU can see the latest data written
92  * by H/W module, Cache need to be invalidated for the memory buffer CPU is
93  * accessing after H/W has written to it.
94  *
95  * If a HW engine supports IO Coherency, Explict Cache sync on memmory buffers
96  * (NvRmMemCacheSyncForCpu/NvRmMemCacheSyncForDevice()) is not necessary.
97  * CPU and HW engine would be able to see each other updates on a memory buffer
98  * without an explict cache sync.
99  *
100  * The contents of memory can be examined and modified using a variety of read
101  * and write APIs, such as NvRmMemRead and NvRmMemWrite. However, in some
102  * cases, It is necessary for the driver or application to be able to directly
103  * read or write the buffer using a pointer. In this case, The NvRmMemMap API
104  * can be used to obtain such a mapping into the calling process's virtual
105  * address space. It is important to note that the map operation is not
106  * guaranteed to succeed. Drivers that use mappings are strongly encouraged
107  * to support two code paths: one for when the mapping succeeds, and one for
108  * when the mapping fails. A memory buffer is allowed to be mapped multiple
109  * times. Partial mapping support depends on underlying OS/NvMap support.
110  * Partimal mapping may not be supported.
111  *
112  * Before a memory buffer is accessed by HW module, It need to be mapped
113  * into HW module's IOVA space. For the ResMgrs/DeviceDrivers that run from
114  * user space, NvRmMemDmaMap() can be used to map memory buffer into IOVA space.
115  *
116  * Mapping into IOVA space is only allowed from privileged ResMgrs processes.
117  * It is not supported from application processes as the IOVA space is specific
118  * HW module. Not the process.
119  *
120  * Device Drivers that run from Kernel space should take care of mapping into
121  * IOVA space through kernel API before buffers are submitted for HW accesses.
122  * While buffer is mapped into IOVA space, HW is guaranteed to see the right data
123  * irrespective of physical page movement. If HW is accessing the buffer through SMMU,
124  * it is possible that physical pages can be moved for the buffer by handling IOVA
125  * fault and keeping the IOVA mapping as necessary. If HW is not accessing memory
126  * through SMMU, the physcial pages would not be moved as long as the buffer is in
127  * mapped state.
128  *
129  * After the memory buffer accesses are complete, it should be unmapped.
130  * Any unpinned memory is free to be moved to any physical location which meet the
131  * properties of the handle. Drivers are strongly encouraged to unpin memory when
132  * they reach a quiescent state. It is not unreasonable to have a goal that all
133  * memory buffers (with the possible exception of memory being continuously scanned
134  * out by the display) be unpinned when the system is idle.
135  *
136  * When the memory buffer is no longer in use, It must be released through
137  * NvRmMemFree. The memory allocated for buffer would be free'ed when the ref
138  * count on the handle is zero. Any refcount on the handle from Kernel or User
139  * space would hold the memory from being freed. User space would have additional
140  * refcounts on the handle when it is mapped into process virtual space or GetImportId
141  * called.
142  *
143  * @ingroup nvrm_memmgr
144  * @{
145  */
146 
147 /*
148  * A type-safe handle that represent memory buffer.
149  * Since the types can differ per build flavor, provide a typesafe null-handle.
150  */
151 
152 #ifdef __LP64__
153 
156 typedef NvU32 NvRmMemHandle;
157 #define NVRM_MEMHANDLE_NULL 0U
158 #define NVRM_MEMHANDLE_PRI "0x%08x"
159 #else
160 typedef struct NvRmMemRec *NvRmMemHandle;
161 #define NVRM_MEMHANDLE_NULL NULL
162 #define NVRM_MEMHANDLE_PRI "%p"
163 #endif
164 
165 #define NVMAP_DEV_NODE "/dev/nvmap"
166 
173 #define NvRmMemorySync() SAFE_ASM volatile("dsb sy" : : : "memory")
174 
178 typedef NvU64 NvRmMemSciIpcId;
179 
180 /*
181  * @IgnoreForDoc
182  * Covers: [Libnvrm_mem_SWUD_X]
183  *
184  * Kind represents a predefined data layout for a Buffer
185  * between producer and consumer.
186  *
187  * This enum type doesn't belong to NvRmMem Interface and should be
188  * moved to nvrm_surface.h or related header file.
189  *
190  */
191 typedef enum NvRmMemKind {
217  NvRmMemKind_Force32 = 0x7FFFFFFF
218 } NvRmMemKind;
219 
227 enum NvRmHeap {
284  NvRmHeap_Force32 = 0x7FFFFFFF,
285 };
286 
292 typedef enum NvRmHeap NvRmHeap;
293 
294 /*
295  * Default heap, the memory gets allocated from, when client doesn't
296  * specify a heap to allocate from.
297  */
298 #define NvRmHeap_Default NvRmHeap_IOMMU
299 
340  NvRmMemTags_Mm = 0x500,
358  NvRmMemTags_Rm = 0x900,
458  NvRmMemTags_PVA = 0x1700,
469  NvRmMemTags_NVN = 0x1a00,
475 };
476 
483 
500  NvU64 addr;
505  NvU64 length;
510  NvBool FirstEntry;
515  NvBool LastEntry;
520  NvU32 Flags;
521 };
522 
531 
554 };
555 
562 
579  NvU32 NodeId;
589  NvS32 ChId;
595 };
596 
607 
637  NvRmMemEvent_Force32 = 0x7FFFFFFFU
638 };
639 
650 
651 
652 #pragma pack(4)
653 
671  const NvRmHeap *Heaps;
678  NvU32 NumHeaps;
684  NvU32 Alignment;
695  NvU64 Size;
708  NvBool ReclaimCache;
714  NvU32 Reserved1;
721  NvU32 CompTags;
728  NvBool Contiguous;
733  NvBool CacheSync;
740  NvU32 *HeapNumber;
769  NvU64 vaddr;
786  NvU32 NumMemDesc;
796  NvU32 AccessFlags;
801  NvS32 NumaNodeId;
802 };
803 #pragma pack()
804 
811 
829  NvU32 HeapNumber;
834  NvU64 Size;
839  NvBool Contig;
844  NvU64 Alignment;
849  NvU64 Offset;
854  NvU32 AccessFlags;
864  NvU64 serial_id;
865 };
866 
873 
879 #define NVRM_HEAP_FREE_SIZE_UNAVAILABLE ((NvU64)-1)
880 
893  NvU64 Total;
900  NvU64 Free;
912  NvU32 GranuleSize;
913 };
914 
921 
936  NvU64 IovaStart;
941  NvU64 IovaSize;
946  NvU64 Alignment;
951  NvBool IsFixedIova;
952 };
953 
970  NvU32 stream_id;
975  NvU32 phandle;
980  NvU64 hwid;
981 };
982 
983 #ifndef NVRM_MEM_HANDLE_DEFAULT_ALLOCATOR
984 #define NVRM_MEM_HANDLE_DEFAULT_ALLOCATOR NULL
985 #endif
986 
990 #define NUMA_NO_NODE -1
991 
996 #define NVRM_DEFINE_MEM_HANDLE_ATTR(x) \
997  NvRmMemHandleAttr x = { 0U,0U,0U,NvOsMemAttribute_WriteCombined,0U, \
998  NvRmMemTags_None,NV_FALSE,0U, \
999  0U,NV_FALSE,NV_FALSE,NULL,NV_FALSE,NV_FALSE, \
1000  NVRM_MEM_HANDLE_DEFAULT_ALLOCATOR,0U, NULL, 0U, \
1001  NvRmMemGpuAccess_NO_GPU, NVOS_MEM_READ_WRITE, NUMA_NO_NODE}
1002 
1007 static inline NvRmMemHandleAttr
1009 {
1010  NVRM_DEFINE_MEM_HANDLE_ATTR(const attr);
1011  return attr;
1012 }
1013 
1018 #ifdef __cplusplus
1019 #define NVRM_MEM_HANDLE_SET_ATTR(attr, al, ch, sz, tg) \
1020  do { \
1021  (attr).Alignment = (al); \
1022  (attr).Coherency = (ch); \
1023  (attr).Size = (sz); \
1024  (attr).Tags = (static_cast<NvRmMemTags>(tg)); \
1025  } while (1 == 0)
1026 #else
1027 #define NVRM_MEM_HANDLE_SET_ATTR(attr, al, ch, sz, tg) \
1028  do { \
1029  (attr).Alignment = (al); \
1030  (attr).Coherency = (ch); \
1031  (attr).Size = (sz); \
1032  (attr).Tags = ((NvRmMemTags)tg); \
1033  } while (1 == 0)
1034 #endif
1035 
1039 static inline void
1041  NvU32 const alignment,
1042  NvOsMemAttribute const coherency,
1043  NvU64 const size,
1044  NvRmMemTags const tags)
1045 {
1047  alignment,
1048  coherency,
1049  size,
1050  tags);
1051 }
1052 
1057 #define NVRM_MEM_HANDLE_SET_HEAP_ATTR(attr, hs, nh) \
1058  do { \
1059  (attr).Heaps = (hs); \
1060  (attr).NumHeaps = (nh); \
1061  } while (1 == 0)
1062 
1067 #define NVRM_MEM_HANDLE_SET_HEAP_ATTR_EXT(attr, hs, nh, hn) \
1068  do { \
1069  (attr).Heaps = (hs); \
1070  (attr).NumHeaps = (nh); \
1071  (attr).HeapNumber = (hn); \
1072  } while (1 == 0)
1073 
1074 #define NVRM_MEM_HANDLE_SET_RECLAIM_CACHE_ATTR(attr, rc) \
1075  do { \
1076  (attr).ReclaimCache = (rc); \
1077  } while (1 == 0)
1078 
1083 #define NVRM_MEM_HANDLE_SET_CONTIGUOUS_ATTR(attr, cont) \
1084  do { \
1085  (attr).Contiguous = (cont); \
1086  } while (1 == 0)
1087 
1092 #define NVRM_MEM_HANDLE_SET_CACHE_SYNC_ATTR(attr) \
1093  do { \
1094  (attr).CacheSync = 1; \
1095  } while (1 == 0)
1096 
1097 #define NVRM_MEM_HANDLE_SET_CACHE_AT_RESERVE_ATTR(attr) \
1098  do { \
1099  (attr).CacheSyncAtReserve = 1; \
1100  } while (1 == 0)
1101 
1102 #define NVRM_MEM_HANDLE_SET_HOS_SHARED_MEMORY_ATTR(attr, shared) \
1103  do { \
1104  (attr).HosSharedMemory = (shared); \
1105  } while (1 == 0)
1106 
1107 #define NVRM_MEM_HANDLE_SET_ALLOCATOR(attr, allocator) \
1108  do { \
1109  (attr).Allocator = (allocator); \
1110  } while (1 == 0)
1111 
1116 #define NVRM_MEM_HANDLE_SET_VA_ATTR(attr, va) \
1117  do { \
1118  (attr).vaddr = (va); \
1119  } while (1 == 0)
1120 
1125 #define NVRM_MEM_HANDLE_SET_PHYS_MEM_DESC(attr, pmd, num) \
1126  do { \
1127  (attr).PhysMemDesc = (pmd); \
1128  (attr).NumMemDesc = (num); \
1129  } while (1 == 0)
1130 
1135 #define NVRM_MEM_HANDLE_SET_GPU_ACCESS(attr, ga) \
1136  do { \
1137  (attr).GpuAccess = (ga); \
1138  } while (1 == 0)
1139 
1144 #define NVRM_MEM_HANDLE_SET_ACCESS_FLAGS(attr, af) \
1145  do { \
1146  (attr).AccessFlags = (af); \
1147  } while (1 == 0)
1148 
1149 #define NVRM_MEM_HANDLE_SET_NUMA_NODE(attr, nid) \
1150  do { \
1151  (attr).NumaNodeId = (nid); \
1152  } while (1 == 0)
1153 
1154 #define NVRM_MEM_HANDLE_SET_CACHE_ATTR(attr, ca) \
1155  do { \
1156  (attr).Coherency = (ca); \
1157  } while (1 == 0)
1158 
1376 NvError
1378  NvRmDeviceHandle hDevice,
1379  NvRmMemHandleAttr *attr,
1380  NvRmMemHandle *phMem);
1381 
1495 NvError NvRmMemMgrInit(void);
1496 
1648 NvError
1650  NvRmMemHandle hMemSrc,
1651  NvU32 Flags,
1652  NvRmMemHandle *phMemDuplicated);
1653 
1654 #define NVRM_MEM_HANDLE_FREE_RET 1
1655 
1777 
1946 NvError
1947 NvRmMemMap(
1948  NvRmMemHandle hMem,
1949  NvU64 Offset,
1950  NvU64 Size,
1951  NvU32 Flags,
1952  void **pVirtAddr);
1953 
2066 NvError NvRmMemUnmap(NvRmMemHandle hMem, void *pVirtAddr, NvU64 Size);
2067 
2171  NvU64 hwid,
2172  struct NvRmMemIovaInfo *IovaInfo);
2173 
2269  NvU64 hwid,
2270  struct NvRmMemIovaInfo *IovaInfo);
2271 
2397 NvError
2399  NvRmMemHandle hMem,
2400  NvU64 hwid,
2401  NvU64 Offset,
2402  NvU64 Size,
2403  NvU32 Flags,
2404  NvU64 *pIovaAddr);
2405 
2547 NvError
2549  NvRmMemHandle *hMem,
2550  NvU64 hwid,
2551  NvU64 Offset,
2552  NvU64 Size,
2553  NvU32 Flags,
2554  NvU64 *pIovaAddr,
2555  NvU32 NumHandles);
2556 
2678 NvError NvRmMemDmaUnmap(NvRmMemHandle hMem, NvU64 hwid, NvU64 IovaAddr, NvU64 Size);
2679 
2798 NvError
2800  NvRmMemHandle *hMem,
2801  NvU64 hwid,
2802  NvU64 *pIovaAddr,
2803  NvU64 *Size,
2804  NvU32 NumHandles);
2805 
2806 
2910  NvRmMemHandle hMem,
2911  void *pMapping,
2912  NvU64 Size);
2913 
3022  NvRmMemHandle hMem,
3023  void *pMapping,
3024  NvU64 Size);
3025 
3162 NvError
3164  NvRmMemHandle hMem,
3165  NvRmMemDesc *MemDesc,
3166  NvU64 NumDesc,
3167  NvU64 *NumDescUsed);
3168 
3280 NvError
3282  NvRmMemHandle *hMem,
3283  NvRmMemDesc **MemDesc,
3284  NvU64 NumDesc,
3285  NvU64 **NumDescUsed,
3286  NvU32 NumHandles);
3287 
3430 NvError
3432  NvRmMemHandle hMem,
3433  NvRmMemEvent event,
3434  void *priv,
3435  NvU32 PrivSize,
3436  void (*OnEvent)(NvRmMemEvent event, void *priv, NvU32 PrivSize));
3437 
3542 
3732 NvError
3734  NvRmMemHandle hMem,
3735  NvRmMemChInfo *ChInfo,
3736  NvU32 Flags,
3737  NvU64 *ImportId);
3738 
3867 NvError
3869  NvRmMemHandle *hMem,
3870  NvRmMemChInfo *ChInfo,
3871  NvU32 Flags,
3872  NvU64 *ImportId,
3873  NvU32 NumHandles);
3874 
4017 NvError
4019  NvU64 ImportId,
4020  NvRmMemChInfo *ChInfo,
4021  NvU32 Flags,
4022  NvRmMemHandle *phMem);
4023 
4152 NvError
4154  NvU64 *ImportId,
4155  NvRmMemChInfo *ChInfo,
4156  NvU32 Flags,
4157  NvRmMemHandle *phMem,
4158  NvU32 NumIds);
4159 
4160 #ifdef NVSCIIPC_INTERNAL_H
4161 
4310 NvError
4311 NvRmMemGetSciIpcId(
4312  NvRmMemHandle hMem,
4313  NvSciIpcEndpoint Endpoint,
4314  NvU32 Flags,
4315  NvRmMemSciIpcId *SciIpcId);
4316 
4450 NvError
4451 NvRmMemGetSciIpcIdMult(
4452  NvRmMemHandle *hMem,
4453  NvSciIpcEndpoint Endpoint,
4454  NvU32 Flags,
4455  NvRmMemSciIpcId *SciIpcId,
4456  NvU32 NumHandles);
4457 
4597 NvError
4598 NvRmMemHandleFromSciIpcId(
4599  NvRmMemSciIpcId SciIpcId,
4600  NvSciIpcEndpoint Endpoint,
4601  NvU32 Flags,
4602  NvU64 TimeoutInMS,
4603  NvRmMemHandle *phMem);
4604 
4745 NvError
4746 NvRmMemHandleFromSciIpcIdMult(
4747  NvRmMemSciIpcId *SciIpcId,
4748  NvSciIpcEndpoint Endpoint,
4749  NvU32 Flags,
4750  NvU64 TimeoutInMS,
4751  NvRmMemHandle *phMem,
4752  NvU32 NumIds);
4753 
4754 #endif /* NVSCIIPC_INTERNAL_H */
4755 
4890 NvError
4892  NvRmMemHandle hMem,
4893  NvU64 ImportId,
4894  NvRmMemHandleParams *params,
4895  NvU32 ParamsSize);
4896 
4897 /*
4898  * Necessary till client code replaces NvRmMemHandleQueryParams with
4899  * NvRmMemQueryHandleParams.
4900  */
4901 #define NvRmMemHandleQueryParams NvRmMemQueryHandleParams
4902 
4903 
5054 NvError
5056  NvRmHeap heap,
5057  NvBool contig,
5058  NvRmMemGpuAccess GpuAccess,
5059  NvRmMemHeapParams *params,
5060  NvU32 ParamsSize);
5061 
5137 NvError
5139  NvRmHeap heap,
5140  NvS32 NumaId,
5141  NvBool contig,
5142  NvRmMemGpuAccess GpuAccess,
5143  NvRmMemHeapParams *params,
5144  NvU32 ParamsSize);
5145 
5269 NvError NvRmMemQueryHeaps(const NvRmHeap *Heap, NvU32 *NumHeapsAvailable);
5270 
5378 NvError NvRmMemGetHwid(NvU32 stream_id, NvU32 phandle, NvU32 *hwid);
5379 
5443 NvError NvRmMemGetDmaHwid(struct NvRmMemHwidParams *HwidParams);
5444 
5445 #define NVRM_MEM_HEAP_MAX_NAME_SIZE 64U
5446 
5447 #define NVRM_MEM_STAT_NUM_HEAPS_INFO_BLOCKS 1UL
5448 #define NVRM_MEM_STAT_NUM_HEAP_BLOCKS 16UL
5449 #define NVRM_MEM_STAT_NUM_BUFFER_BLOCKS 128UL
5450 
5451 #define NVRM_MEM_STAT_HEAP_DYNAMIC_GPU_MAPPING 0x1
5452 #define NVRM_MEM_STAT_HEAP_STATIC_GPU_MAPPING 0x0
5453 
5454 #define NVRM_MEM_STAT_HEAP_PEER_NA (~0U)
5455 
5456 #define NVRM_MEM_STAT_BUFFER_FULL_BLOCK 0UL
5457 #define NVRM_MEM_STAT_BUFFER_SUB_BLOCK 1UL
5458 
5459 #define NVRM_MEM_STAT_BUFFER_FRAGMENTED 1UL
5460 #define NVRM_MEM_STAT_BUFFER_NOT_FRAGMENTED 0UL
5461 
5462 #define NVRM_MEM_STAT_BUFFER_GPU_ACCESSIBLE 1UL
5463 #define NVRM_MEM_STAT_BUFFER_GPU_NON_ACCESSIBLE 0UL
5464 #define NVRM_MEM_STAT_BUFFER_GPU_NA (~0UL)
5465 #define NVRM_BYTES_PER_WORD ((uint32_t)sizeof(unsigned int))
5466 #define NVRM_BITS_PER_WORD (uint32_t)(NVRM_BYTES_PER_WORD * 8U)
5467 #define NVMAP_NUM_HWIDS 384U
5468 #define NUM_SMMU_INSTANCES 3U
5469 #define HWID_MAP \
5470  ((NVMAP_NUM_HWIDS + NVRM_BITS_PER_WORD - 1U) / NVRM_BITS_PER_WORD)
5471 #define SID_MAP (HWID_MAP/NUM_SMMU_INSTANCES)
5472 
5473 /*
5474  * Covers: [Libnvrm_mem_SWUD_111]
5475  *
5476  * NvMap allocated buffer Statistics header for Heaps Info, refer NvRmMemGetStatistics()
5477  * API for further details.
5478  */
5488 };
5489 
5490 /*
5491  * Covers: [Libnvrm_mem_SWUD_112]
5492  *
5493  * NvMap allocated buffer Statistics header for Heaps, refer NvRmMemGetStatistics()
5494  * API for further details.
5495  */
5500  NvU64 heap_id;
5502  NvU64 peer_vmid;
5508  NvU64 total_free;
5511  NvU64 total_mem;
5513  NvU64 __padding;
5514 };
5515 
5525  NvU64 shm_size;
5529  NvU32 n_heaps;
5530 };
5531 
5532 /*
5533  *
5534  * Struct representing a device, storing it's Stream ID
5535  * and the SMMU instance it belongs to
5536  */
5537 struct NvRmMemHwId {
5538  NvU64 id;
5540 };
5541 
5542 /*
5543  * Covers: [Libnvrm_mem_SWUD_113]
5544  *
5545  * NvMap allocated buffer Statistics header for Buffers, refer NvRmMemGetStatistics()
5546  * API for further details.
5547  */
5550  NvU32 owner_pid;
5552  NvU32 tid;
5554  NvU64 heap_id;
5556  NvU64 peer_vmid;
5560  NvU64 size;
5567  NvU32 n_rw_hwids;
5572  NvU32 n_ro_hwids;
5574  NvU64 __padding;
5575 };
5576 
5577 
5587  NvU64 shm_size;
5591  NvU32 n_buffers;
5592 };
5593 
5602  NvU64 is_static;
5606  NvU32 n_hwids;
5607 };
5608 
5609 
5619  NvU64 shm_size;
5623  NvU32 n_iova;
5624 };
5625 
5630  NvS32 pid;
5634  NvU64 total_mem;
5638  NvU64 heap_mem[];
5639 };
5640 
5650  NvU64 shm_size;
5654  NvU32 n_procs;
5658  NvU32 n_heaps;
5671 };
5672 
5677  NvU32 n_clients;
5678 };
5679 
5680 /*
5681  * Covers: [Libnvrm_mem_SWUD_114]
5682  *
5683  * NvMap allocated buffer Statistics Header, refer NvRmMemGetStatistics()
5684  * API for further details.
5685  */
5717 };
5718 
5719 enum {
5720  NVRM_MEM_STAT_HEAPS = 1 << 0, /* Store heaps information */
5721  NVRM_MEM_STAT_BUFFERS = 1 << 1, /* Store buffers information */
5722  NVRM_MEM_STAT_IOVA = 1 << 2, /* Store IOVA information */
5723  NVRM_MEM_STAT_PROCS = 1 << 3, /* Store processes information */
5724  NVRM_MEM_STAT_REUSE = 1 << 10, /* Re-use shared memory region */
5725 };
5726 
5864 NvError NvRmMemGetStatistics(struct NvRmMemStatHeader *stat_header, NvU32 flag);
5865 
5868 #if NVOS_IS_LINUX
5869 #include "nvrm_memmgr_safe_ext.h"
5870 #endif
5871 
5872 #if defined(__cplusplus)
5873 }
5874 #endif
5875 
5876 #endif
NvRmMemGetPhysInfoMult
NvError NvRmMemGetPhysInfoMult(NvRmMemHandle *hMem, NvRmMemDesc **MemDesc, NvU64 NumDesc, NvU64 **NumDescUsed, NvU32 NumHandles)
linux_nsr_only_doxygen_start: @IgnoreForDoc linux_nsr_only_doxygen_end:
NvRmMemEnableEvent
NvError NvRmMemEnableEvent(NvRmMemHandle hMem, NvRmMemEvent event, void *priv, NvU32 PrivSize, void(*OnEvent)(NvRmMemEvent event, void *priv, NvU32 PrivSize))
linux_nsr_only_doxygen_start: @IgnoreForDoc linux_nsr_only_doxygen_end:
NvRmMemStatHeaps::max_free_block
NvU64 max_free_block
Max free block size.
Definition: nvrm_memmgr_safe.h:5510
NvRmMemGetDmaHwid
NvError NvRmMemGetDmaHwid(struct NvRmMemHwidParams *HwidParams)
linux_nsr_only_doxygen_start: @IgnoreForDoc linux_nsr_only_doxygen_end:
NvRmMemStatProcInfo::heap_mem
NvU64 heap_mem[]
Store heapwise memory used by process.
Definition: nvrm_memmgr_safe.h:5638
NvRmHeap_IVC
@ NvRmHeap_IVC
Inter partition heap.
Definition: nvrm_memmgr_safe.h:245
NvRmMemGpuAccess_Force32
@ NvRmMemGpuAccess_Force32
Max enum value.
Definition: nvrm_memmgr_safe.h:553
NvRmMemHandleDuplicate
NvError NvRmMemHandleDuplicate(NvRmMemHandle hMemSrc, NvU32 Flags, NvRmMemHandle *phMemDuplicated)
@IfaceTagForDoc qnx_sr_only_doxygen_start: Covers: [Libnvrm_mem_SWUD_13] qnx_sr_only_doxygen_end:
NvRmMemStatBuffer::n_rw_hwids
NvU32 n_rw_hwids
Number of readwrite Hardware IDs.
Definition: nvrm_memmgr_safe.h:5567
NvRmMemStatHeaps::heap_id
NvU64 heap_id
Heap ID.
Definition: nvrm_memmgr_safe.h:5500
NvRmHeap
NvRmHeap
Covers: [Libnvrm_mem_SWUD_101].
Definition: nvrm_memmgr_safe.h:227
NvRmMemGetImportIdMult
NvError NvRmMemGetImportIdMult(NvRmMemHandle *hMem, NvRmMemChInfo *ChInfo, NvU32 Flags, NvU64 *ImportId, NvU32 NumHandles)
linux_nsr_only_doxygen_start: @IgnoreForDoc linux_nsr_only_doxygen_end:
NvRmMemQueryHeapParams
NvError NvRmMemQueryHeapParams(NvRmHeap heap, NvBool contig, NvRmMemGpuAccess GpuAccess, NvRmMemHeapParams *params, NvU32 ParamsSize)
@IfaceTagForDoc qnx_sr_only_doxygen_start: Covers: [Libnvrm_mem_SWUD_46] qnx_sr_only_doxygen_end:
NvRmMemTags_Camera
@ NvRmMemTags_Camera
Note: The magic number is assigned for maintaining backward compatibility.
Definition: nvrm_memmgr_safe.h:326
NvRmMemHandleAttrRec::Coherency
NvOsMemAttribute Coherency
Coherency Specifies the cache coherency mode desired if the memory is ever mapped.
Definition: nvrm_memmgr_safe.h:690
NvRmMemIovaInfo::Alignment
NvU64 Alignment
Alignment must be in power of 2 Range: [0, 2^64 - 1].
Definition: nvrm_memmgr_safe.h:946
NvRmMemHandleParamsRec::Heap
NvRmHeap Heap
Returns the heap, memory is allocated from.
Definition: nvrm_memmgr_safe.h:824
NvRmMemTags_PVA
@ NvRmMemTags_PVA
Note: The magic number is assigned for maintaining backward compatibility.
Definition: nvrm_memmgr_safe.h:458
NvRmMemStatHeapsInfo::num_carveout_heaps
NvU32 num_carveout_heaps
Number of carveout heaps.
Definition: nvrm_memmgr_safe.h:5481
NvRmMemEvent
NvRmMemEvent
linux_nsr_only_doxygen_start: @IgnoreForDoc linux_nsr_only_doxygen_end:
Definition: nvrm_memmgr_safe.h:617
NvRmMemHandleAttrRec::Alignment
NvU32 Alignment
Alignment Specifies the requested alignment of the buffer, measured in bytes.
Definition: nvrm_memmgr_safe.h:684
NvRmMemStatBuffer::heap_id
NvU64 heap_id
Heap ID.
Definition: nvrm_memmgr_safe.h:5554
NvRmMemStatIovaInfoHeader::shm_size
NvU64 shm_size
Shared memory size.
Definition: nvrm_memmgr_safe.h:5619
NvRmMemStatProcInfo::total_mem
NvU64 total_mem
Total memory used by process.
Definition: nvrm_memmgr_safe.h:5634
NvRmMemStatHeaps::peer_vmid
NvU64 peer_vmid
Peer VM ID.
Definition: nvrm_memmgr_safe.h:5502
NvRmMemTags_System
@ NvRmMemTags_System
Note: The magic number is assigned for maintaining backward compatibility.
Definition: nvrm_memmgr_safe.h:363
NvRmMemGetStatistics
NvError NvRmMemGetStatistics(struct NvRmMemStatHeader *stat_header, NvU32 flag)
linux_nsr_only_doxygen_start: @IgnoreForDoc linux_nsr_only_doxygen_end:
NvRmMemStatIovaInfoHeader::n_iova
NvU32 n_iova
Number of Address spaces.
Definition: nvrm_memmgr_safe.h:5623
NvRmMemGpuAccess_GPU
@ NvRmMemGpuAccess_GPU
iGPU and dGPU access must be allowed
Definition: nvrm_memmgr_safe.h:551
NvRmMemHandleAttrRec::Reserved1
NvU32 Reserved1
Reserved to maintain backward compatibility with any of prebuilt client binaries and not to change th...
Definition: nvrm_memmgr_safe.h:714
NvRmMemStatHeapsHeader
Definition: nvrm_memmgr_safe.h:5516
NvError
NvError
The NvError enumeration contains ALL return / error codes.
Definition: nverror.h:43
NvRmMemStatProcInfoHeader::shm_size
NvU64 shm_size
Shared memory size.
Definition: nvrm_memmgr_safe.h:5650
NvRmMemStatIovaInfo::n_hwids
NvU32 n_hwids
Number of Hardware IDs.
Definition: nvrm_memmgr_safe.h:5606
NvRmMemStatProcInfoHeader::n_heaps
NvU32 n_heaps
Number of heaps.
Definition: nvrm_memmgr_safe.h:5658
NVRM_MEM_STAT_HEAPS
@ NVRM_MEM_STAT_HEAPS
Definition: nvrm_memmgr_safe.h:5720
NVRMMEM_EVENT_FREE
@ NVRMMEM_EVENT_FREE
Buffer Memory Free Event for a buffer referenced by handle.
Definition: nvrm_memmgr_safe.h:622
NvRmMemTags_X11
@ NvRmMemTags_X11
Note: The magic number is assigned for maintaining backward compatibility.
Definition: nvrm_memmgr_safe.h:381
NvRmMemTags_Mm
@ NvRmMemTags_Mm
Note: The magic number is assigned for maintaining backward compatibility.
Definition: nvrm_memmgr_safe.h:340
NvRmHeap_PcieMmio
@ NvRmHeap_PcieMmio
PCIe MMIO carveout for C2C.
Definition: nvrm_memmgr_safe.h:272
NvRmMemHandleParamsRec
Covers: [Libnvrm_mem_SWUD_107].
Definition: nvrm_memmgr_safe.h:819
NvRmMemGpuAccess_IGPU
@ NvRmMemGpuAccess_IGPU
iGPU access must be allowed
Definition: nvrm_memmgr_safe.h:547
NvRmHeap_ExternalCarveOut
@ NvRmHeap_ExternalCarveOut
Carve-out memory heap within external memory.
Definition: nvrm_memmgr_safe.h:236
NVRM_MEM_STAT_REUSE
@ NVRM_MEM_STAT_REUSE
Definition: nvrm_memmgr_safe.h:5724
NvRmMemStatHeaps
Definition: nvrm_memmgr_safe.h:5496
NvRmMemHandleAttrRec::CacheSync
NvBool CacheSync
If true, pages accessed by user space will be tracked.
Definition: nvrm_memmgr_safe.h:733
NvRmMemTags_Rm
@ NvRmMemTags_Rm
Note: The magic number is assigned for maintaining backward compatibility.
Definition: nvrm_memmgr_safe.h:358
NvRmMemStatProcInfoHeader::proc_block_offset
NvU32 proc_block_offset
Offset of process information.
Definition: nvrm_memmgr_safe.h:5666
NvRmMemStatHeapsHeader::n_heaps
NvU32 n_heaps
Number of heaps.
Definition: nvrm_memmgr_safe.h:5529
NvRmMemChInfoRec::exporter_pid
NvS32 exporter_pid
PID of exporting process Range: [-(2^31), (2^31) - 1].
Definition: nvrm_memmgr_safe.h:594
NvRmMemStatHeader::iova_info
struct NvRmMemStatIovaInfoHeader iova_info
Container to store shared memory identifier of memory block containing IOVA spaces information.
Definition: nvrm_memmgr_safe.h:5706
NvRmMemTags_RmApiTegraGvi
@ NvRmMemTags_RmApiTegraGvi
Definition: nvrm_memmgr_safe.h:401
NvRmMemFreeIovaRegion
NvError NvRmMemFreeIovaRegion(NvU64 hwid, struct NvRmMemIovaInfo *IovaInfo)
linux_nsr_only_doxygen_start: @IgnoreForDoc linux_nsr_only_doxygen_end:
NVRM_MEM_HANDLE_SET_ATTR
#define NVRM_MEM_HANDLE_SET_ATTR(attr, al, ch, sz, tg)
Description: Helper macro function for setting handle attributes.
Definition: nvrm_memmgr_safe.h:1027
NvRmMemDmaUnmap
NvError NvRmMemDmaUnmap(NvRmMemHandle hMem, NvU64 hwid, NvU64 IovaAddr, NvU64 Size)
linux_nsr_only_doxygen_start: @IgnoreForDoc linux_nsr_only_doxygen_end:
NvRmMemTags_Tvmr
@ NvRmMemTags_Tvmr
Note: The magic number is assigned for maintaining backward compatibility.
Definition: nvrm_memmgr_safe.h:420
NvRmMemTags_RmApiTegraIg
@ NvRmMemTags_RmApiTegraIg
Definition: nvrm_memmgr_safe.h:402
NvRmMemHwidParams
linux_nsr_only_doxygen_start: @IgnoreForDoc linux_nsr_only_doxygen_end:
Definition: nvrm_memmgr_safe.h:965
NvRmMemStatProcInfoHeader
Definition: nvrm_memmgr_safe.h:5641
NvRmMemStatBufferHeader
Definition: nvrm_memmgr_safe.h:5578
NvRmMemTags_Wsi
@ NvRmMemTags_Wsi
Note: The magic number is assigned for maintaining backward compatibility.
Definition: nvrm_memmgr_safe.h:347
NvRmMemStatHeapsHeader::shm_id
NvRmMemHandle shm_id
Shared memory identifier for heaps information.
Definition: nvrm_memmgr_safe.h:5521
NvRmMemHandleParamsRec::Contig
NvBool Contig
Allocated memory is contiguous or not.
Definition: nvrm_memmgr_safe.h:839
NvRmMemUnmap
NvError NvRmMemUnmap(NvRmMemHandle hMem, void *pVirtAddr, NvU64 Size)
@IfaceTagForDoc qnx_sr_only_doxygen_start: Covers: [Libnvrm_mem_SWUD_16] qnx_sr_only_doxygen_end:
NVRM_DEFINE_MEM_HANDLE_ATTR
#define NVRM_DEFINE_MEM_HANDLE_ATTR(x)
Description: Helper macro function for defining handle attribute.
Definition: nvrm_memmgr_safe.h:996
NvRmMemHandleParamsRec::HeapNumber
NvU32 HeapNumber
Returns heap number, if applicable.
Definition: nvrm_memmgr_safe.h:829
NvRmHeap_GpuMem
@ NvRmHeap_GpuMem
GPU memory heap.
Definition: nvrm_memmgr_safe.h:268
NvRmMemStatHeaps::__padding
NvU64 __padding
extra padding
Definition: nvrm_memmgr_safe.h:5513
NvRmMemHandleParamsRec::Alignment
NvU64 Alignment
Alignment, valid if allocation is contiguous Range: [0, 2^64 - 1].
Definition: nvrm_memmgr_safe.h:844
NvRmMemHandleAttrRec::NumaNodeId
NvS32 NumaNodeId
Holds NUMA node id to allocate the buffer from.
Definition: nvrm_memmgr_safe.h:801
NvRmMemHandleAttrSet
static void NvRmMemHandleAttrSet(NvRmMemHandleAttr *const attr, NvU32 const alignment, NvOsMemAttribute const coherency, NvU64 const size, NvRmMemTags const tags)
Description: Helper function for setting handle attributes.
Definition: nvrm_memmgr_safe.h:1040
NvRmMemChInfoRec::ChId
NvS32 ChId
This member is not used internally.
Definition: nvrm_memmgr_safe.h:589
NvRmMemStatProcInfoHeader::n_procs
NvU32 n_procs
Number of processes.
Definition: nvrm_memmgr_safe.h:5654
NvRmMemTags_RmApiTegraReserved
@ NvRmMemTags_RmApiTegraReserved
Definition: nvrm_memmgr_safe.h:415
NvRmMemHandleAllocAttr
NvError NvRmMemHandleAllocAttr(NvRmDeviceHandle hDevice, NvRmMemHandleAttr *attr, NvRmMemHandle *phMem)
@IfaceTagForDoc
NvRmMemHandleFromImportIdMult
NvError NvRmMemHandleFromImportIdMult(NvU64 *ImportId, NvRmMemChInfo *ChInfo, NvU32 Flags, NvRmMemHandle *phMem, NvU32 NumIds)
linux_nsr_only_doxygen_start: @IgnoreForDoc linux_nsr_only_doxygen_end:
NvRmMemGetImportId
NvError NvRmMemGetImportId(NvRmMemHandle hMem, NvRmMemChInfo *ChInfo, NvU32 Flags, NvU64 *ImportId)
linux_nsr_only_doxygen_start: @IgnoreForDoc linux_nsr_only_doxygen_end:
NvRmMemChInfoRec
linux_nsr_only_doxygen_start: @IgnoreForDoc linux_nsr_only_doxygen_end:
Definition: nvrm_memmgr_safe.h:574
NvRmMemStatProcInfoHeader::proc_stride
NvU32 proc_stride
Stride of process information.
Definition: nvrm_memmgr_safe.h:5670
NvRmMemTags_OpenMaxCamera
@ NvRmMemTags_OpenMaxCamera
Note: The magic number is assigned for maintaining backward compatibility.
Definition: nvrm_memmgr_safe.h:376
NvRmMemStatIovaInfo::is_static
NvU64 is_static
Is static or not.
Definition: nvrm_memmgr_safe.h:5602
NvRmMemStatHeader::misc_info
struct NvRmMemStatMiscInfo misc_info
Container to store miscellaneous information related to nvmap driver.
Definition: nvrm_memmgr_safe.h:5716
NvRmMemGetHwid
NvError NvRmMemGetHwid(NvU32 stream_id, NvU32 phandle, NvU32 *hwid)
linux_nsr_only_doxygen_start: @IgnoreForDoc linux_nsr_only_doxygen_end:
nvrm_defs.h
NvRmMemKind_Pitch
@ NvRmMemKind_Pitch
While technically valid, pitch kind implies not blocklinear.
Definition: nvrm_memmgr_safe.h:195
NvRmMemTags_NvDLA1
@ NvRmMemTags_NvDLA1
Note: The magic number is assigned for maintaining backward compatibility.
Definition: nvrm_memmgr_safe.h:453
NvRmMemStatBuffer::__padding
NvU64 __padding
extra padding
Definition: nvrm_memmgr_safe.h:5574
NvRmMemTags_RmApiTegraVideo
@ NvRmMemTags_RmApiTegraVideo
Definition: nvrm_memmgr_safe.h:404
NvRmMemStatBufferHeader::shm_id
NvRmMemHandle shm_id
Shared memory identifier for Buffers info.
Definition: nvrm_memmgr_safe.h:5583
NvRmMemHandleAttrRec::Heaps
const NvRmHeap * Heaps
An array of heap enumerants that indicate which heaps the memory buffer is allowed to live in.
Definition: nvrm_memmgr_safe.h:671
NvRmMemDmaMap
NvError NvRmMemDmaMap(NvRmMemHandle hMem, NvU64 hwid, NvU64 Offset, NvU64 Size, NvU32 Flags, NvU64 *pIovaAddr)
linux_nsr_only_doxygen_start: @IgnoreForDoc linux_nsr_only_doxygen_end:
NvRmMemTags_DdkVic
@ NvRmMemTags_DdkVic
Definition: nvrm_memmgr_safe.h:386
NvRmMemHandleAttrRec::HosSharedMemory
NvBool HosSharedMemory
Optional HOS-specific flag indicating memory should be setup for sharing CPU access between client an...
Definition: nvrm_memmgr_safe.h:755
NvRmMemHandleAttrRec::NumMemDesc
NvU32 NumMemDesc
Size of PhysMemDesc array Range: 0 to UINT32_MAX.
Definition: nvrm_memmgr_safe.h:786
NvRmMemStatBuffer::is_fragmented
NvU64 is_fragmented
Is memory fragmented or not.
Definition: nvrm_memmgr_safe.h:5562
NvRmMemTags_RmApiTegraAux
@ NvRmMemTags_RmApiTegraAux
Definition: nvrm_memmgr_safe.h:399
NvRmMemStatHeapsHeader::shm_size
NvU64 shm_size
Shared memory size.
Definition: nvrm_memmgr_safe.h:5525
NVRM_MEM_STAT_PROCS
@ NVRM_MEM_STAT_PROCS
Definition: nvrm_memmgr_safe.h:5723
NvRmMemStatBuffer::is_gpu_accessible
NvU64 is_gpu_accessible
Is GPU accessible or not.
Definition: nvrm_memmgr_safe.h:5558
NvRmMemTags_RmApiTegraZcull
@ NvRmMemTags_RmApiTegraZcull
Definition: nvrm_memmgr_safe.h:410
NvRmMemHandleAttrRec::NumHeaps
NvU32 NumHeaps
The size of the Heaps[] array.
Definition: nvrm_memmgr_safe.h:678
NvRmMemStatHeapsInfo::num_os_mem_heaps
NvU32 num_os_mem_heaps
Number of OS memory heaps.
Definition: nvrm_memmgr_safe.h:5485
NvRmMemHandleParamsRec::serial_id
NvU64 serial_id
Serial id for underlying buffer.
Definition: nvrm_memmgr_safe.h:864
NvRmMemMgrInit
NvError NvRmMemMgrInit(void)
@IfaceTagForDoc qnx_sr_only_doxygen_start: Covers: [Libnvrm_mem_SWUD_66] qnx_sr_only_doxygen_end:
NvRmMemTags_CuDLA
@ NvRmMemTags_CuDLA
Note: The magic number is assigned for maintaining backward compatibility.
Definition: nvrm_memmgr_safe.h:474
NvRmMemIovaInfo::IovaSize
NvU64 IovaSize
Size of the IOVA region to be allocated (will be converted to the next multiple of page size if it is...
Definition: nvrm_memmgr_safe.h:941
NvRmMemHeapParamsRec::Total
NvU64 Total
Total memory reserved for heap in bytes Range: [0, 2^64 - 1].
Definition: nvrm_memmgr_safe.h:893
NvRmMemTags_Glsi
@ NvRmMemTags_Glsi
Definition: nvrm_memmgr_safe.h:348
NvRmMemStatHeader::heaps_info
struct NvRmMemStatHeapsInfo heaps_info
Container storing the number of heaps of different types.
Definition: nvrm_memmgr_safe.h:5691
NvRmHeap_VidMem
@ NvRmHeap_VidMem
Video Memory heap.
Definition: nvrm_memmgr_safe.h:249
NvRmMemStatHeaps::name
char name[NVRM_MEM_HEAP_MAX_NAME_SIZE]
Array of of heaps.
Definition: nvrm_memmgr_safe.h:5498
NvRmMemHeapParamsRec::LargestFreeBlock
NvU64 LargestFreeBlock
Size of largest free block at heap.
Definition: nvrm_memmgr_safe.h:906
NvRmMemTags_RmApiTegraNotifier
@ NvRmMemTags_RmApiTegraNotifier
Definition: nvrm_memmgr_safe.h:414
NvRmMemTags_Display
@ NvRmMemTags_Display
Note: The magic number is assigned for maintaining backward compatibility.
Definition: nvrm_memmgr_safe.h:335
NvRmMemIovaInfo
linux_nsr_only_doxygen_start: @IgnoreForDoc linux_nsr_only_doxygen_end:
Definition: nvrm_memmgr_safe.h:931
NvRmMemStatHeapsInfo::num_iova_ases
NvU32 num_iova_ases
Number of IOVA spaces.
Definition: nvrm_memmgr_safe.h:5487
NvRmMemTags_RmApiTegraAccum
@ NvRmMemTags_RmApiTegraAccum
Definition: nvrm_memmgr_safe.h:397
NvRmMemTags_Odm
@ NvRmMemTags_Odm
Note: The magic number is assigned for maintaining backward compatibility.
Definition: nvrm_memmgr_safe.h:368
NvRmMemTags_CuLDPC
@ NvRmMemTags_CuLDPC
Definition: nvrm_memmgr_safe.h:464
NvRmMemTags_RmApiTegraCursor
@ NvRmMemTags_RmApiTegraCursor
Definition: nvrm_memmgr_safe.h:406
NvRmHeap_SyncptRam
@ NvRmHeap_SyncptRam
SyncpointRam memory heap.
Definition: nvrm_memmgr_safe.h:257
NvRmMemTags_NvSci
@ NvRmMemTags_NvSci
Note: The magic number is assigned for maintaining backward compatibility.
Definition: nvrm_memmgr_safe.h:463
NvRmMemTags_RmApiTegraPrimary
@ NvRmMemTags_RmApiTegraPrimary
Definition: nvrm_memmgr_safe.h:409
NvRmHeap_FsiMem
@ NvRmHeap_FsiMem
FSI memory heap.
Definition: nvrm_memmgr_safe.h:261
NvRmMemHandle
struct NvRmMemRec * NvRmMemHandle
Definition: nvrm_memmgr_safe.h:160
NvRmMemHandleAttrRec::CompTags
NvU32 CompTags
This field is deprecated and compression tags are no longer held at memmgr.
Definition: nvrm_memmgr_safe.h:721
NvRmMemStatProcInfoHeader::shm_id
NvRmMemHandle shm_id
Shared memory identifier for process information.
Definition: nvrm_memmgr_safe.h:5646
NvRmMemStatBufferHeader::n_buffers
NvU32 n_buffers
Number of Buffers.
Definition: nvrm_memmgr_safe.h:5591
NvRmMemStatHeaps::is_gpu_access_dynamic
NvU64 is_gpu_access_dynamic
Is GPU access dynamic.
Definition: nvrm_memmgr_safe.h:5504
NvRmMemHandleParamsRec::AccessFlags
NvU32 AccessFlags
Accesses allowed on the memory buffer Range: [0, 2^32 - 1].
Definition: nvrm_memmgr_safe.h:854
NvRmMemTags_RmApiTegraGvo
@ NvRmMemTags_RmApiTegraGvo
Definition: nvrm_memmgr_safe.h:400
NVRM_MEM_STAT_IOVA
@ NVRM_MEM_STAT_IOVA
Definition: nvrm_memmgr_safe.h:5722
NvRmMemStatHeaps::total_free
NvU64 total_free
Total free memory.
Definition: nvrm_memmgr_safe.h:5508
nvos.h
NvRmMemHandleAttrRec
Covers: [Libnvrm_mem_SWUD_106].
Definition: nvrm_memmgr_safe.h:662
NvRmMemTags_Vpr
@ NvRmMemTags_Vpr
Definition: nvrm_memmgr_safe.h:443
NvRmMemStatBuffer::n_ro_hwids
NvU32 n_ro_hwids
Number of readonly Hardware IDs.
Definition: nvrm_memmgr_safe.h:5572
NvRmHeap_Force32
@ NvRmHeap_Force32
Max enum value.
Definition: nvrm_memmgr_safe.h:284
NvRmMemTags_Cuda
@ NvRmMemTags_Cuda
Note: The magic number is assigned for maintaining backward compatibility.
Definition: nvrm_memmgr_safe.h:353
NvRmMemHandleAttrRec::HeapNumber
NvU32 * HeapNumber
Specfies the heap number to allocate from.
Definition: nvrm_memmgr_safe.h:740
NvSciIpcEndpoint
uint64_t NvSciIpcEndpoint
Handle to the NvSciIpc endpoint.
Definition: nvsciipc.h:314
NvRmMemTags_VideoEnc
@ NvRmMemTags_VideoEnc
Note: The magic number is assigned for maintaining backward compatibility.
Definition: nvrm_memmgr_safe.h:425
NvRmMemTags_RmApiTegraClient
@ NvRmMemTags_RmApiTegraClient
Note: The magic number is assigned for maintaining backward compatibility.
Definition: nvrm_memmgr_safe.h:391
NvRmMemStatBuffer::tid
NvU32 tid
TID of thread.
Definition: nvrm_memmgr_safe.h:5552
NvRmMemTags_Jpeg
@ NvRmMemTags_Jpeg
Note: The magic number is assigned for maintaining backward compatibility.
Definition: nvrm_memmgr_safe.h:439
NvRmMemTags_Gralloc
@ NvRmMemTags_Gralloc
Note: The magic number is assigned for maintaining backward compatibility.
Definition: nvrm_memmgr_safe.h:372
NvRmMemTags_RmApiTegraUnused
@ NvRmMemTags_RmApiTegraUnused
Definition: nvrm_memmgr_safe.h:411
NvRmMemTags_NvDLA0
@ NvRmMemTags_NvDLA0
Note: The magic number is assigned for maintaining backward compatibility.
Definition: nvrm_memmgr_safe.h:448
NvRmMemIovaInfo::IovaStart
NvU64 IovaStart
IOVA Start address must be a multiple of page size Range: [0, 2^64 - 1].
Definition: nvrm_memmgr_safe.h:936
NvRmMemTags_RmApiTegraInstance
@ NvRmMemTags_RmApiTegraInstance
Definition: nvrm_memmgr_safe.h:408
NvRmMemChInfoRec::NodeId
NvU32 NodeId
This member is not used internally.
Definition: nvrm_memmgr_safe.h:579
NvRmMemKind_Num
@ NvRmMemKind_Num
Definition: nvrm_memmgr_safe.h:216
NvRmMemStatIovaInfoHeader::shm_id
NvRmMemHandle shm_id
Shared memory identifier for IOVA spaces info.
Definition: nvrm_memmgr_safe.h:5615
NvRmMemHandleFromImportId
NvError NvRmMemHandleFromImportId(NvU64 ImportId, NvRmMemChInfo *ChInfo, NvU32 Flags, NvRmMemHandle *phMem)
linux_nsr_only_doxygen_start: @IgnoreForDoc linux_nsr_only_doxygen_end:
NvRmMemHandleFree
NvError NvRmMemHandleFree(NvRmMemHandle hMem)
@IfaceTagForDoc qnx_sr_only_doxygen_start: Covers: [Libnvrm_mem_SWUD_14] qnx_sr_only_doxygen_end:
NvRmMemHeapParamsRec::GranuleSize
NvU32 GranuleSize
Size of granule in heap.
Definition: nvrm_memmgr_safe.h:912
NvRmMemKind_Generic_16Bx2
@ NvRmMemKind_Generic_16Bx2
Generic 16B x 2.
Definition: nvrm_memmgr_safe.h:211
NvRmMemStatProcInfo
Definition: nvrm_memmgr_safe.h:5626
NvRmMemSciIpcId
NvU64 NvRmMemSciIpcId
typedef for 64 bits unique Id
Definition: nvrm_memmgr_safe.h:178
NvRmMemStatHeader::procs
struct NvRmMemStatProcInfoHeader procs
Container to store shared memory identifier of memory block containing process information.
Definition: nvrm_memmgr_safe.h:5711
NvRmMemStatHeapsInfo
Definition: nvrm_memmgr_safe.h:5479
NvRmHeap_VPR
@ NvRmHeap_VPR
Video Protection Region(VPR) heap.
Definition: nvrm_memmgr_safe.h:240
NvRmMemTags_RmApiTegraDepth
@ NvRmMemTags_RmApiTegraDepth
Definition: nvrm_memmgr_safe.h:395
NvRmMemHandleAttrRec::PhysMemDesc
NvRmMemDesc * PhysMemDesc
An Array of NvRmMemDesc struct holding physical memory chunks to create handle from.
Definition: nvrm_memmgr_safe.h:781
NvRmMemTags_CpuVprTest
@ NvRmMemTags_CpuVprTest
Definition: nvrm_memmgr_safe.h:441
NvRmMemHandleAttrRec::GpuAccess
NvRmMemGpuAccess GpuAccess
Holds GPU access necessary for Memory allocation Range: valid values of enum NvRmMemGpuAccess.
Definition: nvrm_memmgr_safe.h:791
NvRmMemQueryHeapParamsNuma
NvError NvRmMemQueryHeapParamsNuma(NvRmHeap heap, NvS32 NumaId, NvBool contig, NvRmMemGpuAccess GpuAccess, NvRmMemHeapParams *params, NvU32 ParamsSize)
qnx_sr_only_doxygen_start: @IgnoreForDoc qnx_sr_only_doxygen_end:
NvRmMemDescRec::FirstEntry
NvBool FirstEntry
First Entry in an MemDesc Array.
Definition: nvrm_memmgr_safe.h:510
NvRmMemStatProcInfoHeader::max_heap_name_chars
NvU32 max_heap_name_chars
Maximum characters of heap name.
Definition: nvrm_memmgr_safe.h:5662
NvRmMemHandleAttrRec::Allocator
struct NvOsAllocatorRec * Allocator
Instruct NvRm to allocate the memory using a specific allocator, instead of allocating directly from ...
Definition: nvrm_memmgr_safe.h:763
NvRmMemStatMiscInfo
Definition: nvrm_memmgr_safe.h:5673
NvRmMemDescRec::addr
NvU64 addr
Start address of memory chunk.
Definition: nvrm_memmgr_safe.h:500
NvRmMemTags_RmApiTegraClipId
@ NvRmMemTags_RmApiTegraClipId
Definition: nvrm_memmgr_safe.h:398
NvRmMemGetPhysInfo
NvError NvRmMemGetPhysInfo(NvRmMemHandle hMem, NvRmMemDesc *MemDesc, NvU64 NumDesc, NvU64 *NumDescUsed)
linux_nsr_only_doxygen_start: @IgnoreForDoc linux_nsr_only_doxygen_end:
NvRmMemKind_Force32
@ NvRmMemKind_Force32
Definition: nvrm_memmgr_safe.h:217
NvRmMemTags_MmSecurity
@ NvRmMemTags_MmSecurity
Definition: nvrm_memmgr_safe.h:341
NvRmMemDmaUnmapMult
NvError NvRmMemDmaUnmapMult(NvRmMemHandle *hMem, NvU64 hwid, NvU64 *pIovaAddr, NvU64 *Size, NvU32 NumHandles)
linux_nsr_only_doxygen_start: @IgnoreForDoc linux_nsr_only_doxygen_end:
NvRmHeap_ViMem
@ NvRmHeap_ViMem
VI mempool memory heap.
Definition: nvrm_memmgr_safe.h:276
NvRmHeap_IOMMU
@ NvRmHeap_IOMMU
IOMMU heap allocates non-contiguous memory from System heap.
Definition: nvrm_memmgr_safe.h:232
NvOsMemAttribute
NvOsMemAttribute
Defines memory attributes.
Definition: nvos_common_tegra_safety.h:280
NvRmDeviceHandle
struct NvRmDeviceRec * NvRmDeviceHandle
Definition: nvrm_defs.h:19
NvRmHeap_CvsRam
@ NvRmHeap_CvsRam
CvsRam Heap.
Definition: nvrm_memmgr_safe.h:253
NvRmMemStatHeader::buffers
struct NvRmMemStatBufferHeader buffers
Container to store shared memory identifier of memory block containing Buffers information.
Definition: nvrm_memmgr_safe.h:5701
NvRmMemHwidParams::phandle
NvU32 phandle
phandle Range: [0, UINT32_MAX]
Definition: nvrm_memmgr_safe.h:975
NvRmMemTags_None
@ NvRmMemTags_None
Note: The magic number is assigned for maintaining backward compatibility.
Definition: nvrm_memmgr_safe.h:316
NvRmMemGpuAccess_DGPU
@ NvRmMemGpuAccess_DGPU
dGPU access must be allowed
Definition: nvrm_memmgr_safe.h:549
NvRmMemTags_RmApiTegraInternal
@ NvRmMemTags_RmApiTegraInternal
Definition: nvrm_memmgr_safe.h:392
NvRmMemHwId::id
NvU64 id
Definition: nvrm_memmgr_safe.h:5538
NvRmMemHandleParamsRec::Size
NvU64 Size
Size of memory allocated Range: [0, 2^64 - 1].
Definition: nvrm_memmgr_safe.h:834
NvRmMemStatIovaInfo
Definition: nvrm_memmgr_safe.h:5594
NvRmMemStatIovaInfoHeader
Definition: nvrm_memmgr_safe.h:5610
NvRmMemTags_NVN
@ NvRmMemTags_NVN
Note: The magic number is assigned for maintaining backward compatibility.
Definition: nvrm_memmgr_safe.h:469
NvRmMemHwId::smmu_instance
NvU64 smmu_instance
Definition: nvrm_memmgr_safe.h:5539
NvRmMemTags_NvMapTest
@ NvRmMemTags_NvMapTest
Definition: nvrm_memmgr_safe.h:440
NVRM_MEM_STAT_BUFFERS
@ NVRM_MEM_STAT_BUFFERS
Definition: nvrm_memmgr_safe.h:5721
NvRmMemTags_NvRmGpuSwizzler
@ NvRmMemTags_NvRmGpuSwizzler
Definition: nvrm_memmgr_safe.h:359
NvRmMemHandleAttrRec::CacheSyncAtReserve
NvBool CacheSyncAtReserve
If true, pages accessed by user space will be tracked, all cache operations from user space become no...
Definition: nvrm_memmgr_safe.h:748
NVRMMEM_EVENT_MAX
@ NVRMMEM_EVENT_MAX
Supported Event count.
Definition: nvrm_memmgr_safe.h:633
NvRmMemChInfoRec::importer_pid
NvS32 importer_pid
PID of importing process Range: [-(2^31), (2^31) - 1].
Definition: nvrm_memmgr_safe.h:584
NvRmMemDescRec::Flags
NvU32 Flags
Holds Access control Flags.
Definition: nvrm_memmgr_safe.h:520
NvRmMemStatBufferHeader::shm_size
NvU64 shm_size
Shared memory size.
Definition: nvrm_memmgr_safe.h:5587
NvRmMemStatIovaInfo::smmu_instance
NvU32 smmu_instance
SMMU instance.
Definition: nvrm_memmgr_safe.h:5598
NvRmMemTags_OpenMax
@ NvRmMemTags_OpenMax
Definition: nvrm_memmgr_safe.h:342
NvRmMemTags_RmApiTegraColor
@ NvRmMemTags_RmApiTegraColor
Definition: nvrm_memmgr_safe.h:394
NvRmMemEvent_Force32
@ NvRmMemEvent_Force32
Max enum value.
Definition: nvrm_memmgr_safe.h:637
NvRmMemTags_Codecs
@ NvRmMemTags_Codecs
Note: The magic number is assigned for maintaining backward compatibility.
Definition: nvrm_memmgr_safe.h:330
NvRmMemTags_RmApiTegraStencil
@ NvRmMemTags_RmApiTegraStencil
Definition: nvrm_memmgr_safe.h:396
NvRmMemTags_RmApiTegraImage
@ NvRmMemTags_RmApiTegraImage
Definition: nvrm_memmgr_safe.h:393
NvRmMemStatBuffer::size
NvU64 size
Size of buffer.
Definition: nvrm_memmgr_safe.h:5560
NvRmMemHandleAttrRec::ReclaimCache
NvBool ReclaimCache
ReclaimCache If set, during memory alloc failure, try to release memory used by caches,...
Definition: nvrm_memmgr_safe.h:708
NvRmMemGpuAccess_NO_GPU
@ NvRmMemGpuAccess_NO_GPU
GPU access is not necessary.
Definition: nvrm_memmgr_safe.h:545
NvRmMemHandleAttrRec::Tags
NvRmMemTags Tags
Tags Specifies application-specific tags which could be used during debugging to identify allocations...
Definition: nvrm_memmgr_safe.h:701
NvRmMemStatHeaps::total_mem
NvU64 total_mem
Definition: nvrm_memmgr_safe.h:5511
NvRmMemQueryHandleParams
NvError NvRmMemQueryHandleParams(NvRmMemHandle hMem, NvU64 ImportId, NvRmMemHandleParams *params, NvU32 ParamsSize)
@IfaceTagForDoc qnx_sr_only_doxygen_start: Covers: [Libnvrm_mem_SWUD_45] qnx_sr_only_doxygen_end:
NvRmHeap_Num
@ NvRmHeap_Num
Heap number.
Definition: nvrm_memmgr_safe.h:280
NvRmMemMap
NvError NvRmMemMap(NvRmMemHandle hMem, NvU64 Offset, NvU64 Size, NvU32 Flags, void **pVirtAddr)
@IfaceTagForDoc qnx_sr_only_doxygen_start: Covers: [Libnvrm_mem_SWUD_15] qnx_sr_only_doxygen_end:
NvRmMemStatProcInfo::pid
NvS32 pid
PID of owner process.
Definition: nvrm_memmgr_safe.h:5630
NvRmMemHandleAttrRec::vaddr
NvU64 vaddr
Set vaddr to non-zero value to trigger creation of Handle from user process virtual address passed.
Definition: nvrm_memmgr_safe.h:769
NvRmMemTags_RmApiTegraDma
@ NvRmMemTags_RmApiTegraDma
Definition: nvrm_memmgr_safe.h:407
NvRmMemTags_RmApiTegraFont
@ NvRmMemTags_RmApiTegraFont
Definition: nvrm_memmgr_safe.h:405
NvRmMemDescRec
linux_nsr_only_doxygen_start: @IgnoreForDoc linux_nsr_only_doxygen_end:
Definition: nvrm_memmgr_safe.h:495
NvRmMemStatMiscInfo::n_clients
NvU32 n_clients
Number of active NvMap clients.
Definition: nvrm_memmgr_safe.h:5677
NvRmMemDmaMapMult
NvError NvRmMemDmaMapMult(NvRmMemHandle *hMem, NvU64 hwid, NvU64 Offset, NvU64 Size, NvU32 Flags, NvU64 *pIovaAddr, NvU32 NumHandles)
linux_nsr_only_doxygen_start: @IgnoreForDoc linux_nsr_only_doxygen_end:
NvRmMemTags_NvRmGpuTests
@ NvRmMemTags_NvRmGpuTests
Definition: nvrm_memmgr_safe.h:442
NvRmMemKind
NvRmMemKind
Definition: nvrm_memmgr_safe.h:191
NvRmMemStatBuffer::peer_vmid
NvU64 peer_vmid
Peer VM ID.
Definition: nvrm_memmgr_safe.h:5556
NvRmMemTags_VideoDec
@ NvRmMemTags_VideoDec
Note: The magic number is assigned for maintaining backward compatibility.
Definition: nvrm_memmgr_safe.h:434
NvRmMemStatBuffer::owner_pid
NvU32 owner_pid
PID of owner process.
Definition: nvrm_memmgr_safe.h:5550
NvRmMemTags_Ddk2d
@ NvRmMemTags_Ddk2d
Note: The magic number is assigned for maintaining backward compatibility.
Definition: nvrm_memmgr_safe.h:385
NvRmMemStatHeaps::allocated_size
NvU64 allocated_size
Allocated size.
Definition: nvrm_memmgr_safe.h:5506
NvRmMemTags_Egl
@ NvRmMemTags_Egl
Note: The magic number is assigned for maintaining backward compatibility.
Definition: nvrm_memmgr_safe.h:321
NvOsAllocatorRec
Definition: nvos_s3_tegra_safety.h:2344
NvRmMemHwidParams::stream_id
NvU32 stream_id
stream ID Range: [0, UINT32_MAX]
Definition: nvrm_memmgr_safe.h:970
NvRmMemHeapParamsRec::Free
NvU64 Free
Free memory available at heap in bytes.
Definition: nvrm_memmgr_safe.h:900
NvRmMemStatBuffer
Definition: nvrm_memmgr_safe.h:5548
NvRmMemHandleParamsRec::Offset
NvU64 Offset
Offset in a carveout, valid if the heap is a carveout and allocation is contig.
Definition: nvrm_memmgr_safe.h:849
NvRmMemHeapParamsRec
Covers: [Libnvrm_mem_SWUD_108].
Definition: nvrm_memmgr_safe.h:888
NvRmMemHandleAttrRec::Size
NvU64 Size
Size Specifies the requested size of the memory buffer in bytes.
Definition: nvrm_memmgr_safe.h:695
NvRmMemStatHeader
Definition: nvrm_memmgr_safe.h:5686
NvRmMemHwidParams::hwid
NvU64 hwid
hwid Range: [0, UINT64_MAX]
Definition: nvrm_memmgr_safe.h:980
NvRmMemKind_C64_2CRA
@ NvRmMemKind_C64_2CRA
Compressible kind for 64bpp color surfaces.
Definition: nvrm_memmgr_safe.h:207
NvRmMemHandleAttrRec::AccessFlags
NvU32 AccessFlags
RO/RW access flag on the buffer Range: [0, 2^32 - 1].
Definition: nvrm_memmgr_safe.h:796
NvRmMemCacheSyncForDevice
NvError NvRmMemCacheSyncForDevice(NvRmMemHandle hMem, void *pMapping, NvU64 Size)
@IfaceTagForDoc qnx_sr_only_doxygen_start: Covers: [Libnvrm_mem_SWUD_22] qnx_sr_only_doxygen_end:
NVRMMEM_EVENT_SINGLETON
@ NVRMMEM_EVENT_SINGLETON
Singleton Event for a buffer referenced by handle.
Definition: nvrm_memmgr_safe.h:629
NvRmMemStatHeapsInfo::num_mempool_heaps
NvU32 num_mempool_heaps
Number of mempool heaps.
Definition: nvrm_memmgr_safe.h:5483
NvRmMemReserveIovaRegion
NvError NvRmMemReserveIovaRegion(NvU64 hwid, struct NvRmMemIovaInfo *IovaInfo)
linux_nsr_only_doxygen_start: @IgnoreForDoc linux_nsr_only_doxygen_end:
NvRmMemTags_RmApiTegraTexture
@ NvRmMemTags_RmApiTegraTexture
Definition: nvrm_memmgr_safe.h:403
NvRmMemHandleAttrRec::Contiguous
NvBool Contiguous
If true, contiguous physical memory allocation is required.
Definition: nvrm_memmgr_safe.h:728
NvRmMemIovaInfo::IsFixedIova
NvBool IsFixedIova
Flag to allow clients to specify IovaStart Range: true, false.
Definition: nvrm_memmgr_safe.h:951
NvRmMemTags_Tests
@ NvRmMemTags_Tests
Note: The magic number is assigned for maintaining backward compatibility.
Definition: nvrm_memmgr_safe.h:429
NvRmMemHwId
Definition: nvrm_memmgr_safe.h:5537
NvRmMemKind_C32_2CRA
@ NvRmMemKind_C32_2CRA
Compressible kind for 32bpp color surfaces.
Definition: nvrm_memmgr_safe.h:201
NvRmMemHandleAttrConstruct
static NvRmMemHandleAttr NvRmMemHandleAttrConstruct(void)
Description: Helper function for constructing a default handle attribute struct.
Definition: nvrm_memmgr_safe.h:1008
NvRmMemDescRec::LastEntry
NvBool LastEntry
Last Entry in an MemDesc Array.
Definition: nvrm_memmgr_safe.h:515
NvRmMemGpuAccess
NvRmMemGpuAccess
Covers: [Libnvrm_mem_SWUD_103].
Definition: nvrm_memmgr_safe.h:543
NvRmMemQueryHeaps
NvError NvRmMemQueryHeaps(const NvRmHeap *Heap, NvU32 *NumHeapsAvailable)
@IfaceTagForDoc qnx_sr_only_doxygen_start: Covers: [Libnvrm_mem_SWUD_48] qnx_sr_only_doxygen_end:
NvRmMemTags_RmApiTegraOwnerRm
@ NvRmMemTags_RmApiTegraOwnerRm
Definition: nvrm_memmgr_safe.h:413
NVRM_MEM_HEAP_MAX_NAME_SIZE
#define NVRM_MEM_HEAP_MAX_NAME_SIZE
Definition: nvrm_memmgr_safe.h:5445
NvRmMemHandleParamsRec::Coherency
NvOsMemAttribute Coherency
Coherency requested for handle Range : valid values of NvOsMemAttribute.
Definition: nvrm_memmgr_safe.h:859
NvRmMemDescRec::length
NvU64 length
Length of memory chunk.
Definition: nvrm_memmgr_safe.h:505
NvRmMemStatHeader::heaps
struct NvRmMemStatHeapsHeader heaps
Container to store shared memory identifier of memory block containing Heaps information.
Definition: nvrm_memmgr_safe.h:5696
NvRmMemTags
NvRmMemTags
@IgnoreForDoc Covers: [Libnvrm_mem_SWUD_X]
Definition: nvrm_memmgr_safe.h:312
NvRmMemCacheSyncForCpu
NvError NvRmMemCacheSyncForCpu(NvRmMemHandle hMem, void *pMapping, NvU64 Size)
@IfaceTagForDoc qnx_sr_only_doxygen_start: Covers: [Libnvrm_mem_SWUD_21] qnx_sr_only_doxygen_end:
NvRmMemDisableEvent
NvError NvRmMemDisableEvent(NvRmMemHandle hMem, NvRmMemEvent event)
linux_nsr_only_doxygen_start: @IgnoreForDoc linux_nsr_only_doxygen_end:
NvRmMemKind_Invalid
@ NvRmMemKind_Invalid
Hardware defined "invalid" kind.
Definition: nvrm_memmgr_safe.h:215
NvRmMemTags_RmApiTegraShaderProgram
@ NvRmMemTags_RmApiTegraShaderProgram
Definition: nvrm_memmgr_safe.h:412