|
|
NVIDIA DriveOS Linux SDK API Reference
|
7.2.5.0 Early Access Release
|
Go to the documentation of this file.
13 #ifndef INCLUDED_nvrm_memmgr_safe_H
14 #define INCLUDED_nvrm_memmgr_safe_H
18 #if defined(__cplusplus)
29 #define SAFE_ASM __asm__
32 #if (defined(__GNUC__) && defined(__thumb__)) \
33 || (defined(__ARMCC_VERSION) && defined(__thumb__)) \
34 || (defined(__ghs__) && defined(__THUMB__))
36 #define NV_SPECULATION_BARRIER_ARM_COMMON
37 #define NV_SPEC_BARRIER_CSDB ".inst.w 0xf3af8014\n"
39 #elif (defined(__GNUC__) && defined(__arm__)) \
40 || (defined(__ARMCC_VERSION) && defined(__arm__)) \
41 || (defined(__ghs__) && defined(__ARM__))
43 #define NV_SPECULATION_BARRIER_ARM_COMMON
44 #define NV_SPEC_BARRIER_CSDB ".inst 0xe320f014\n"
46 #elif (defined(__GNUC__) && defined(__aarch64__)) \
47 || (defined(__ARMCC_VERSION) && defined(__aarch64__)) \
48 || (defined(__ghs__) && defined(__ARM64__))
50 #define NV_SPECULATION_BARRIER_ARM_COMMON
51 #define NV_SPEC_BARRIER_CSDB "HINT #20\n"
157 #define NVRM_MEMHANDLE_NULL 0U
158 #define NVRM_MEMHANDLE_PRI "0x%08x"
161 #define NVRM_MEMHANDLE_NULL NULL
162 #define NVRM_MEMHANDLE_PRI "%p"
165 #define NVMAP_DEV_NODE "/dev/nvmap"
173 #define NvRmMemorySync() SAFE_ASM volatile("dsb sy" : : : "memory")
298 #define NvRmHeap_Default NvRmHeap_IOMMU
879 #define NVRM_HEAP_FREE_SIZE_UNAVAILABLE ((NvU64)-1)
983 #ifndef NVRM_MEM_HANDLE_DEFAULT_ALLOCATOR
984 #define NVRM_MEM_HANDLE_DEFAULT_ALLOCATOR NULL
990 #define NUMA_NO_NODE -1
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}
1019 #define NVRM_MEM_HANDLE_SET_ATTR(attr, al, ch, sz, tg) \
1021 (attr).Alignment = (al); \
1022 (attr).Coherency = (ch); \
1023 (attr).Size = (sz); \
1024 (attr).Tags = (static_cast<NvRmMemTags>(tg)); \
1027 #define NVRM_MEM_HANDLE_SET_ATTR(attr, al, ch, sz, tg) \
1029 (attr).Alignment = (al); \
1030 (attr).Coherency = (ch); \
1031 (attr).Size = (sz); \
1032 (attr).Tags = ((NvRmMemTags)tg); \
1041 NvU32
const alignment,
1057 #define NVRM_MEM_HANDLE_SET_HEAP_ATTR(attr, hs, nh) \
1059 (attr).Heaps = (hs); \
1060 (attr).NumHeaps = (nh); \
1067 #define NVRM_MEM_HANDLE_SET_HEAP_ATTR_EXT(attr, hs, nh, hn) \
1069 (attr).Heaps = (hs); \
1070 (attr).NumHeaps = (nh); \
1071 (attr).HeapNumber = (hn); \
1074 #define NVRM_MEM_HANDLE_SET_RECLAIM_CACHE_ATTR(attr, rc) \
1076 (attr).ReclaimCache = (rc); \
1083 #define NVRM_MEM_HANDLE_SET_CONTIGUOUS_ATTR(attr, cont) \
1085 (attr).Contiguous = (cont); \
1092 #define NVRM_MEM_HANDLE_SET_CACHE_SYNC_ATTR(attr) \
1094 (attr).CacheSync = 1; \
1097 #define NVRM_MEM_HANDLE_SET_CACHE_AT_RESERVE_ATTR(attr) \
1099 (attr).CacheSyncAtReserve = 1; \
1102 #define NVRM_MEM_HANDLE_SET_HOS_SHARED_MEMORY_ATTR(attr, shared) \
1104 (attr).HosSharedMemory = (shared); \
1107 #define NVRM_MEM_HANDLE_SET_ALLOCATOR(attr, allocator) \
1109 (attr).Allocator = (allocator); \
1116 #define NVRM_MEM_HANDLE_SET_VA_ATTR(attr, va) \
1118 (attr).vaddr = (va); \
1125 #define NVRM_MEM_HANDLE_SET_PHYS_MEM_DESC(attr, pmd, num) \
1127 (attr).PhysMemDesc = (pmd); \
1128 (attr).NumMemDesc = (num); \
1135 #define NVRM_MEM_HANDLE_SET_GPU_ACCESS(attr, ga) \
1137 (attr).GpuAccess = (ga); \
1144 #define NVRM_MEM_HANDLE_SET_ACCESS_FLAGS(attr, af) \
1146 (attr).AccessFlags = (af); \
1149 #define NVRM_MEM_HANDLE_SET_NUMA_NODE(attr, nid) \
1151 (attr).NumaNodeId = (nid); \
1154 #define NVRM_MEM_HANDLE_SET_CACHE_ATTR(attr, ca) \
1156 (attr).Coherency = (ca); \
1654 #define NVRM_MEM_HANDLE_FREE_RET 1
3167 NvU64 *NumDescUsed);
3285 NvU64 **NumDescUsed,
3436 void (*OnEvent)(
NvRmMemEvent event,
void *priv, NvU32 PrivSize));
4160 #ifdef NVSCIIPC_INTERNAL_H
4451 NvRmMemGetSciIpcIdMult(
4598 NvRmMemHandleFromSciIpcId(
4746 NvRmMemHandleFromSciIpcIdMult(
4901 #define NvRmMemHandleQueryParams NvRmMemQueryHandleParams
5445 #define NVRM_MEM_HEAP_MAX_NAME_SIZE 64U
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
5451 #define NVRM_MEM_STAT_HEAP_DYNAMIC_GPU_MAPPING 0x1
5452 #define NVRM_MEM_STAT_HEAP_STATIC_GPU_MAPPING 0x0
5454 #define NVRM_MEM_STAT_HEAP_PEER_NA (~0U)
5456 #define NVRM_MEM_STAT_BUFFER_FULL_BLOCK 0UL
5457 #define NVRM_MEM_STAT_BUFFER_SUB_BLOCK 1UL
5459 #define NVRM_MEM_STAT_BUFFER_FRAGMENTED 1UL
5460 #define NVRM_MEM_STAT_BUFFER_NOT_FRAGMENTED 0UL
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
5470 ((NVMAP_NUM_HWIDS + NVRM_BITS_PER_WORD - 1U) / NVRM_BITS_PER_WORD)
5471 #define SID_MAP (HWID_MAP/NUM_SMMU_INSTANCES)
5869 #include "nvrm_memmgr_safe_ext.h"
5872 #if defined(__cplusplus)
NvError NvRmMemGetPhysInfoMult(NvRmMemHandle *hMem, NvRmMemDesc **MemDesc, NvU64 NumDesc, NvU64 **NumDescUsed, NvU32 NumHandles)
linux_nsr_only_doxygen_start: @IgnoreForDoc linux_nsr_only_doxygen_end:
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:
NvU64 max_free_block
Max free block size.
NvError NvRmMemGetDmaHwid(struct NvRmMemHwidParams *HwidParams)
linux_nsr_only_doxygen_start: @IgnoreForDoc linux_nsr_only_doxygen_end:
NvU64 heap_mem[]
Store heapwise memory used by process.
@ NvRmHeap_IVC
Inter partition heap.
@ NvRmMemGpuAccess_Force32
Max enum value.
NvError NvRmMemHandleDuplicate(NvRmMemHandle hMemSrc, NvU32 Flags, NvRmMemHandle *phMemDuplicated)
@IfaceTagForDoc qnx_sr_only_doxygen_start: Covers: [Libnvrm_mem_SWUD_13] qnx_sr_only_doxygen_end:
NvU32 n_rw_hwids
Number of readwrite Hardware IDs.
NvRmHeap
Covers: [Libnvrm_mem_SWUD_101].
NvError NvRmMemGetImportIdMult(NvRmMemHandle *hMem, NvRmMemChInfo *ChInfo, NvU32 Flags, NvU64 *ImportId, NvU32 NumHandles)
linux_nsr_only_doxygen_start: @IgnoreForDoc linux_nsr_only_doxygen_end:
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
Note: The magic number is assigned for maintaining backward compatibility.
NvOsMemAttribute Coherency
Coherency Specifies the cache coherency mode desired if the memory is ever mapped.
NvU64 Alignment
Alignment must be in power of 2 Range: [0, 2^64 - 1].
NvRmHeap Heap
Returns the heap, memory is allocated from.
@ NvRmMemTags_PVA
Note: The magic number is assigned for maintaining backward compatibility.
NvU32 num_carveout_heaps
Number of carveout heaps.
NvRmMemEvent
linux_nsr_only_doxygen_start: @IgnoreForDoc linux_nsr_only_doxygen_end:
NvU32 Alignment
Alignment Specifies the requested alignment of the buffer, measured in bytes.
NvU64 total_mem
Total memory used by process.
NvU64 peer_vmid
Peer VM ID.
@ NvRmMemTags_System
Note: The magic number is assigned for maintaining backward compatibility.
NvError NvRmMemGetStatistics(struct NvRmMemStatHeader *stat_header, NvU32 flag)
linux_nsr_only_doxygen_start: @IgnoreForDoc linux_nsr_only_doxygen_end:
@ NvRmMemGpuAccess_GPU
iGPU and dGPU access must be allowed
NvU32 Reserved1
Reserved to maintain backward compatibility with any of prebuilt client binaries and not to change th...
NvError
The NvError enumeration contains ALL return / error codes.
NvU32 n_hwids
Number of Hardware IDs.
@ NVRMMEM_EVENT_FREE
Buffer Memory Free Event for a buffer referenced by handle.
@ NvRmMemTags_X11
Note: The magic number is assigned for maintaining backward compatibility.
@ NvRmMemTags_Mm
Note: The magic number is assigned for maintaining backward compatibility.
@ NvRmHeap_PcieMmio
PCIe MMIO carveout for C2C.
Covers: [Libnvrm_mem_SWUD_107].
@ NvRmMemGpuAccess_IGPU
iGPU access must be allowed
@ NvRmHeap_ExternalCarveOut
Carve-out memory heap within external memory.
NvBool CacheSync
If true, pages accessed by user space will be tracked.
@ NvRmMemTags_Rm
Note: The magic number is assigned for maintaining backward compatibility.
NvS32 exporter_pid
PID of exporting process Range: [-(2^31), (2^31) - 1].
@ NvRmMemTags_RmApiTegraGvi
NvError NvRmMemFreeIovaRegion(NvU64 hwid, struct NvRmMemIovaInfo *IovaInfo)
linux_nsr_only_doxygen_start: @IgnoreForDoc linux_nsr_only_doxygen_end:
#define NVRM_MEM_HANDLE_SET_ATTR(attr, al, ch, sz, tg)
Description: Helper macro function for setting handle attributes.
NvError NvRmMemDmaUnmap(NvRmMemHandle hMem, NvU64 hwid, NvU64 IovaAddr, NvU64 Size)
linux_nsr_only_doxygen_start: @IgnoreForDoc linux_nsr_only_doxygen_end:
@ NvRmMemTags_Tvmr
Note: The magic number is assigned for maintaining backward compatibility.
@ NvRmMemTags_RmApiTegraIg
linux_nsr_only_doxygen_start: @IgnoreForDoc linux_nsr_only_doxygen_end:
@ NvRmMemTags_Wsi
Note: The magic number is assigned for maintaining backward compatibility.
NvBool Contig
Allocated memory is contiguous or not.
NvError NvRmMemUnmap(NvRmMemHandle hMem, void *pVirtAddr, NvU64 Size)
@IfaceTagForDoc qnx_sr_only_doxygen_start: Covers: [Libnvrm_mem_SWUD_16] qnx_sr_only_doxygen_end:
#define NVRM_DEFINE_MEM_HANDLE_ATTR(x)
Description: Helper macro function for defining handle attribute.
NvU32 HeapNumber
Returns heap number, if applicable.
@ NvRmHeap_GpuMem
GPU memory heap.
NvU64 __padding
extra padding
NvU64 Alignment
Alignment, valid if allocation is contiguous Range: [0, 2^64 - 1].
NvS32 NumaNodeId
Holds NUMA node id to allocate the buffer from.
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.
NvS32 ChId
This member is not used internally.
@ NvRmMemTags_RmApiTegraReserved
NvError NvRmMemHandleAllocAttr(NvRmDeviceHandle hDevice, NvRmMemHandleAttr *attr, NvRmMemHandle *phMem)
@IfaceTagForDoc
NvError NvRmMemHandleFromImportIdMult(NvU64 *ImportId, NvRmMemChInfo *ChInfo, NvU32 Flags, NvRmMemHandle *phMem, NvU32 NumIds)
linux_nsr_only_doxygen_start: @IgnoreForDoc linux_nsr_only_doxygen_end:
NvError NvRmMemGetImportId(NvRmMemHandle hMem, NvRmMemChInfo *ChInfo, NvU32 Flags, NvU64 *ImportId)
linux_nsr_only_doxygen_start: @IgnoreForDoc linux_nsr_only_doxygen_end:
linux_nsr_only_doxygen_start: @IgnoreForDoc linux_nsr_only_doxygen_end:
@ NvRmMemTags_OpenMaxCamera
Note: The magic number is assigned for maintaining backward compatibility.
NvU64 is_static
Is static or not.
NvError NvRmMemGetHwid(NvU32 stream_id, NvU32 phandle, NvU32 *hwid)
linux_nsr_only_doxygen_start: @IgnoreForDoc linux_nsr_only_doxygen_end:
@ NvRmMemKind_Pitch
While technically valid, pitch kind implies not blocklinear.
@ NvRmMemTags_NvDLA1
Note: The magic number is assigned for maintaining backward compatibility.
NvU64 __padding
extra padding
@ NvRmMemTags_RmApiTegraVideo
const NvRmHeap * Heaps
An array of heap enumerants that indicate which heaps the memory buffer is allowed to live in.
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:
NvBool HosSharedMemory
Optional HOS-specific flag indicating memory should be setup for sharing CPU access between client an...
NvU32 NumMemDesc
Size of PhysMemDesc array Range: 0 to UINT32_MAX.
NvU64 is_fragmented
Is memory fragmented or not.
@ NvRmMemTags_RmApiTegraAux
NvU64 is_gpu_accessible
Is GPU accessible or not.
@ NvRmMemTags_RmApiTegraZcull
NvU32 NumHeaps
The size of the Heaps[] array.
NvU32 num_os_mem_heaps
Number of OS memory heaps.
NvU64 serial_id
Serial id for underlying buffer.
NvError NvRmMemMgrInit(void)
@IfaceTagForDoc qnx_sr_only_doxygen_start: Covers: [Libnvrm_mem_SWUD_66] qnx_sr_only_doxygen_end:
@ NvRmMemTags_CuDLA
Note: The magic number is assigned for maintaining backward compatibility.
NvU64 IovaSize
Size of the IOVA region to be allocated (will be converted to the next multiple of page size if it is...
NvU64 Total
Total memory reserved for heap in bytes Range: [0, 2^64 - 1].
@ NvRmHeap_VidMem
Video Memory heap.
char name[NVRM_MEM_HEAP_MAX_NAME_SIZE]
Array of of heaps.
NvU64 LargestFreeBlock
Size of largest free block at heap.
@ NvRmMemTags_RmApiTegraNotifier
@ NvRmMemTags_Display
Note: The magic number is assigned for maintaining backward compatibility.
linux_nsr_only_doxygen_start: @IgnoreForDoc linux_nsr_only_doxygen_end:
NvU32 num_iova_ases
Number of IOVA spaces.
@ NvRmMemTags_RmApiTegraAccum
@ NvRmMemTags_Odm
Note: The magic number is assigned for maintaining backward compatibility.
@ NvRmMemTags_RmApiTegraCursor
@ NvRmHeap_SyncptRam
SyncpointRam memory heap.
@ NvRmMemTags_NvSci
Note: The magic number is assigned for maintaining backward compatibility.
@ NvRmMemTags_RmApiTegraPrimary
@ NvRmHeap_FsiMem
FSI memory heap.
struct NvRmMemRec * NvRmMemHandle
NvU32 CompTags
This field is deprecated and compression tags are no longer held at memmgr.
NvU64 is_gpu_access_dynamic
Is GPU access dynamic.
NvU32 AccessFlags
Accesses allowed on the memory buffer Range: [0, 2^32 - 1].
@ NvRmMemTags_RmApiTegraGvo
NvU64 total_free
Total free memory.
Covers: [Libnvrm_mem_SWUD_106].
NvU32 n_ro_hwids
Number of readonly Hardware IDs.
@ NvRmHeap_Force32
Max enum value.
@ NvRmMemTags_Cuda
Note: The magic number is assigned for maintaining backward compatibility.
NvU32 * HeapNumber
Specfies the heap number to allocate from.
uint64_t NvSciIpcEndpoint
Handle to the NvSciIpc endpoint.
@ NvRmMemTags_VideoEnc
Note: The magic number is assigned for maintaining backward compatibility.
@ NvRmMemTags_RmApiTegraClient
Note: The magic number is assigned for maintaining backward compatibility.
@ NvRmMemTags_Jpeg
Note: The magic number is assigned for maintaining backward compatibility.
@ NvRmMemTags_Gralloc
Note: The magic number is assigned for maintaining backward compatibility.
@ NvRmMemTags_RmApiTegraUnused
@ NvRmMemTags_NvDLA0
Note: The magic number is assigned for maintaining backward compatibility.
NvU64 IovaStart
IOVA Start address must be a multiple of page size Range: [0, 2^64 - 1].
@ NvRmMemTags_RmApiTegraInstance
NvU32 NodeId
This member is not used internally.
NvError NvRmMemHandleFromImportId(NvU64 ImportId, NvRmMemChInfo *ChInfo, NvU32 Flags, NvRmMemHandle *phMem)
linux_nsr_only_doxygen_start: @IgnoreForDoc linux_nsr_only_doxygen_end:
NvError NvRmMemHandleFree(NvRmMemHandle hMem)
@IfaceTagForDoc qnx_sr_only_doxygen_start: Covers: [Libnvrm_mem_SWUD_14] qnx_sr_only_doxygen_end:
NvU32 GranuleSize
Size of granule in heap.
@ NvRmMemKind_Generic_16Bx2
Generic 16B x 2.
NvU64 NvRmMemSciIpcId
typedef for 64 bits unique Id
@ NvRmHeap_VPR
Video Protection Region(VPR) heap.
@ NvRmMemTags_RmApiTegraDepth
NvRmMemDesc * PhysMemDesc
An Array of NvRmMemDesc struct holding physical memory chunks to create handle from.
NvRmMemGpuAccess GpuAccess
Holds GPU access necessary for Memory allocation Range: valid values of enum NvRmMemGpuAccess.
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:
NvBool FirstEntry
First Entry in an MemDesc Array.
struct NvOsAllocatorRec * Allocator
Instruct NvRm to allocate the memory using a specific allocator, instead of allocating directly from ...
NvU64 addr
Start address of memory chunk.
@ NvRmMemTags_RmApiTegraClipId
NvError NvRmMemGetPhysInfo(NvRmMemHandle hMem, NvRmMemDesc *MemDesc, NvU64 NumDesc, NvU64 *NumDescUsed)
linux_nsr_only_doxygen_start: @IgnoreForDoc linux_nsr_only_doxygen_end:
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
VI mempool memory heap.
@ NvRmHeap_IOMMU
IOMMU heap allocates non-contiguous memory from System heap.
NvOsMemAttribute
Defines memory attributes.
struct NvRmDeviceRec * NvRmDeviceHandle
@ NvRmHeap_CvsRam
CvsRam Heap.
NvU32 phandle
phandle Range: [0, UINT32_MAX]
@ NvRmMemTags_None
Note: The magic number is assigned for maintaining backward compatibility.
@ NvRmMemGpuAccess_DGPU
dGPU access must be allowed
@ NvRmMemTags_RmApiTegraInternal
NvU64 Size
Size of memory allocated Range: [0, 2^64 - 1].
@ NvRmMemTags_NVN
Note: The magic number is assigned for maintaining backward compatibility.
@ NvRmMemTags_NvRmGpuSwizzler
NvBool CacheSyncAtReserve
If true, pages accessed by user space will be tracked, all cache operations from user space become no...
@ NVRMMEM_EVENT_MAX
Supported Event count.
NvS32 importer_pid
PID of importing process Range: [-(2^31), (2^31) - 1].
NvU32 Flags
Holds Access control Flags.
NvU32 smmu_instance
SMMU instance.
@ NvRmMemTags_RmApiTegraColor
@ NvRmMemEvent_Force32
Max enum value.
@ NvRmMemTags_Codecs
Note: The magic number is assigned for maintaining backward compatibility.
@ NvRmMemTags_RmApiTegraStencil
@ NvRmMemTags_RmApiTegraImage
NvU64 size
Size of buffer.
NvBool ReclaimCache
ReclaimCache If set, during memory alloc failure, try to release memory used by caches,...
@ NvRmMemGpuAccess_NO_GPU
GPU access is not necessary.
NvRmMemTags Tags
Tags Specifies application-specific tags which could be used during debugging to identify allocations...
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
Heap number.
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:
NvS32 pid
PID of owner process.
NvU64 vaddr
Set vaddr to non-zero value to trigger creation of Handle from user process virtual address passed.
@ NvRmMemTags_RmApiTegraDma
@ NvRmMemTags_RmApiTegraFont
linux_nsr_only_doxygen_start: @IgnoreForDoc linux_nsr_only_doxygen_end:
NvU32 n_clients
Number of active NvMap clients.
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
NvU64 peer_vmid
Peer VM ID.
@ NvRmMemTags_VideoDec
Note: The magic number is assigned for maintaining backward compatibility.
NvU32 owner_pid
PID of owner process.
@ NvRmMemTags_Ddk2d
Note: The magic number is assigned for maintaining backward compatibility.
NvU64 allocated_size
Allocated size.
@ NvRmMemTags_Egl
Note: The magic number is assigned for maintaining backward compatibility.
NvU32 stream_id
stream ID Range: [0, UINT32_MAX]
NvU64 Free
Free memory available at heap in bytes.
NvU64 Offset
Offset in a carveout, valid if the heap is a carveout and allocation is contig.
Covers: [Libnvrm_mem_SWUD_108].
NvU64 Size
Size Specifies the requested size of the memory buffer in bytes.
NvU64 hwid
hwid Range: [0, UINT64_MAX]
@ NvRmMemKind_C64_2CRA
Compressible kind for 64bpp color surfaces.
NvU32 AccessFlags
RO/RW access flag on the buffer Range: [0, 2^32 - 1].
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
Singleton Event for a buffer referenced by handle.
NvU32 num_mempool_heaps
Number of mempool heaps.
NvError NvRmMemReserveIovaRegion(NvU64 hwid, struct NvRmMemIovaInfo *IovaInfo)
linux_nsr_only_doxygen_start: @IgnoreForDoc linux_nsr_only_doxygen_end:
@ NvRmMemTags_RmApiTegraTexture
NvBool Contiguous
If true, contiguous physical memory allocation is required.
NvBool IsFixedIova
Flag to allow clients to specify IovaStart Range: true, false.
@ NvRmMemTags_Tests
Note: The magic number is assigned for maintaining backward compatibility.
@ NvRmMemKind_C32_2CRA
Compressible kind for 32bpp color surfaces.
static NvRmMemHandleAttr NvRmMemHandleAttrConstruct(void)
Description: Helper function for constructing a default handle attribute struct.
NvBool LastEntry
Last Entry in an MemDesc Array.
NvRmMemGpuAccess
Covers: [Libnvrm_mem_SWUD_103].
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
#define NVRM_MEM_HEAP_MAX_NAME_SIZE
NvOsMemAttribute Coherency
Coherency requested for handle Range : valid values of NvOsMemAttribute.
NvU64 length
Length of memory chunk.
NvRmMemTags
@IgnoreForDoc Covers: [Libnvrm_mem_SWUD_X]
NvError NvRmMemCacheSyncForCpu(NvRmMemHandle hMem, void *pMapping, NvU64 Size)
@IfaceTagForDoc qnx_sr_only_doxygen_start: Covers: [Libnvrm_mem_SWUD_21] qnx_sr_only_doxygen_end:
NvError NvRmMemDisableEvent(NvRmMemHandle hMem, NvRmMemEvent event)
linux_nsr_only_doxygen_start: @IgnoreForDoc linux_nsr_only_doxygen_end:
@ NvRmMemKind_Invalid
Hardware defined "invalid" kind.
@ NvRmMemTags_RmApiTegraShaderProgram