NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release
nvrm_memmgr_deprecated.h File Reference

Go to the source code of this file.

Macros

#define __DEPRECATED__
 
#define __DEPRECATED_MSG__(fmt)   __DEPRECATED__
 
#define __DEPRECATED_ATTR_MSG__   __DEPRECATED__
 
#define __DEPRECATED_CACHE_MSG__   __DEPRECATED__
 
#define __DEPRECATED_WIKI_MSG__   __DEPRECATED__
 
#define __DEPRECATED_ARG_MSG__   __DEPRECATED__
 
#define __NVRM_UNDEF_DEPRECATED__
 
#define NvRmHeap_GART   NvRmHeap_IOMMU
 Deprecated Heap type. More...
 
#define NvRmHeap_Camera   NvRmHeap_IOMMU
 Deprecated Heap type. More...
 
#define NvRmHeap_External   ((NvRmHeap)1)
 Deprecated Heap type. More...
 
#define NvRmHeap_Secured   ((NvRmHeap)6)
 Deprecated Heap type. More...
 
#define NvRmHeap_IRam   ((NvRmHeap)4)
 Deprecated Heap type. More...
 
#define NvRmMemMap64   NvRmMemMap
 Deprecated macro. More...
 
#define NvRmMemUnmap64   NvRmMemUnmap
 Deprecated macro. More...
 
#define NVRM_MEM_TAG_NONE   NvRmMemTags_None
 Deprecated macro. More...
 
#define NVRM_MEM_TAG_GL_MISC   NvRmMemTags_Glsi
 Deprecated macro. More...
 
#define NVRM_MEM_TAG_GL_TEXTURE   ((NvRmMemTags)(NvRmMemTags_Glsi + 1))
 Deprecated macro. More...
 
#define NVRM_MEM_TAG_GL_RBO   ((NvRmMemTags)(NvRmMemTags_Glsi + 2))
 Deprecated macro. More...
 
#define NVRM_MEM_TAG_GL_VBO   ((NvRmMemTags)(NvRmMemTags_Glsi + 3))
 Deprecated macro. More...
 
#define NVRM_MEM_TAG_GL_VCAA   ((NvRmMemTags)(NvRmMemTags_Glsi + 4))
 Deprecated macro. More...
 
#define NVRM_MEM_TAG_DDK2D_MISC   NvRmMemTags_Ddk2d
 Deprecated macro. More...
 
#define NVRM_MEM_TAG_EGL_MISC   NvRmMemTags_Egl
 Deprecated macro. More...
 
#define NVRM_MEM_TAG_CAMERA_MISC   NvRmMemTags_Camera
 Deprecated macro. More...
 
#define NVRM_MEM_TAG_CODECS_MISC   NvRmMemTags_Codecs
 Deprecated macro. More...
 
#define NVRM_MEM_TAG_DISPLAY_MISC   NvRmMemTags_Display
 Deprecated macro. More...
 
#define NVRM_MEM_TAG_DISPMGR_MISC   ((NvRmMemTags)(NvRmMemTags_Display + 1))
 Deprecated macro. More...
 
#define NVRM_MEM_TAG_MM_MISC   NvRmMemTags_Mm
 Deprecated macro. More...
 
#define NVRM_MEM_TAG_OPENMAX_MISC   NvRmMemTags_OpenMax
 Deprecated macro. More...
 
#define NVRM_MEM_TAG_WSI_MISC   NvRmMemTags_Wsi
 Deprecated macro. More...
 
#define NVRM_MEM_TAG_SM_MISC   ((NvRmMemTags)(NvRmMemTags_Glsi + 5))
 Deprecated macro. More...
 
#define NVRM_MEM_TAG_RM_MISC   NvRmMemTags_Rm
 Deprecated macro. More...
 
#define NVRM_MEM_TAG_SYSTEM_MISC   NvRmMemTags_System
 Deprecated macro. More...
 
#define NVRM_MEM_TAG_ODM_MISC   NvRmMemTags_Odm
 Deprecated macro. More...
 
#define NVRM_MEM_TAG_HAL_MISC   ((NvRmMemTags)(NvRmMemTags_None + 1))
 Deprecated macro. More...
 
#define NVRM_MEM_TAG_GRALLOC_MISC   NvRmMemTags_Gralloc
 Deprecated macro. More...
 
#define NVRM_MEM_TAG_OMXCAMERA_MISC   NvRmMemTags_OpenMaxCamera
 Deprecated macro. More...
 
#define NVRM_MEM_TAG_X11_MISC   NvRmMemTags_X11
 Deprecated macro. More...
 
#define NVRM_MEM_TAG_TVMR_MISC   NvRmMemTags_Tvmr
 Deprecated macro. More...
 
#define NVRM_MEM_TAG_VIDEO_ENC   NvRmMemTags_VideoEnc
 Deprecated macro. More...
 
#define NV_RM_INVALID_PHYS_ADDRESS   (~0U)
 Define for invalid Physical address. More...
 
#define NVRM_MEMMGR_VERBOSITY_KEY   "nvrm.memmgr.vbose"
 NvOsConfig key to control messages on MemMgr failures. More...
 
#define NvRmMemGetCacheLineSize()   64
 Queries the maximum cache line size (in bytes) for all of the caches L1 and L2 in the system. More...
 
#define NvRmMemFloorVpr   NvRmMemSetVprFloor
 NvRmMemFloorVpr is deprecated. More...
 

Enumerations

enum  NvRmMemCompbits {
  NvRmMemCompbits_None = 0,
  NvRmMemCompbits_Gpu = (1 << 0),
  NvRmMemCompbits_CdeHorizontal = (1 << 1),
  NvRmMemCompbits_CdeVertical = (1 << 2)
}
 This is a generic enum for referring to the three distinct sets of compression bits that exist on a system that has Color Decompression Engines (CDEs). More...
 

Functions

NvError NvRmMemHandleCreate (NvRmDeviceHandle hDevice, NvRmMemHandle *phMem, NvU32 Size) __DEPRECATED_ATTR_MSG__
 This API is deprecated. More...
 
NvError NvRmMemAlloc (NvRmMemHandle hMem, const NvRmHeap *Heaps, NvU32 NumHeaps, NvU32 Alignment, NvOsMemAttribute Coherency) __DEPRECATED_ATTR_MSG__
 This API is deprecated. More...
 
NvError NvRmMemHandleAlloc (NvRmDeviceHandle hDevice, const NvRmHeap *Heaps, NvU32 NumHeaps, NvU32 Alignment, NvOsMemAttribute Coherency, NvU32 Size, NvU16 Tags, NvBool ReclaimCache, NvRmMemHandle *phMem) __DEPRECATED_ATTR_MSG__
 This API is deprecated. More...
 
NvUPtr NvRmMemPin (NvRmMemHandle hMem) __DEPRECATED_WIKI_MSG__
 This API is deprecated. More...
 
void NvRmMemPinMult (NvRmMemHandle *hMems, NvUPtr *Addrs, NvU32 Count) __DEPRECATED_WIKI_MSG__
 This API is deprecated. More...
 
NvU32 NvRmMemGetAddress (NvRmMemHandle hMem, NvU32 Offset) __DEPRECATED_WIKI_MSG__
 This API is deprecated. More...
 
void NvRmMemUnpin (NvRmMemHandle hMem) __DEPRECATED_WIKI_MSG__
 This API is deprecated. More...
 
void NvRmMemUnpinMult (NvRmMemHandle *hMems, NvU32 Count) __DEPRECATED_WIKI_MSG__
 This API is deprecated. More...
 
NvU32 NvRmMemGetId (NvRmMemHandle hMem) __DEPRECATED_MSG__("Use NvRmMemGetFd API")
 This API is deprecated. More...
 
NvError NvRmMemHandleFromId (NvU32 Id, NvRmMemHandle *phMem) __DEPRECATED_MSG__("Use NvRmMemHandleFromFd API")
 This API is deprecated. More...
 
NvError NvRmMemHandleDup (NvRmMemHandle hMem, NvRmMemHandle *phMemDuplicated)
 This API is deprecated. More...
 
NvError NvRmMemQueryHandleParameters (NvRmMemHandle hMem, NvU64 ImportId, NvRmMemHandleParams *params, NvU32 ParamsSize) __DEPRECATED_MSG__("NvRmMemQueryHandleParameters deprecated
 This API is deprecated. More...
 

Variables

NvError Use NvRmMemQueryHandleParams API
 

Macro Definition Documentation

◆ __DEPRECATED__

#define __DEPRECATED__

Definition at line 38 of file nvrm_memmgr_deprecated.h.

◆ __DEPRECATED_ARG_MSG__

#define __DEPRECATED_ARG_MSG__   __DEPRECATED__

Definition at line 43 of file nvrm_memmgr_deprecated.h.

◆ __DEPRECATED_ATTR_MSG__

#define __DEPRECATED_ATTR_MSG__   __DEPRECATED__

Definition at line 40 of file nvrm_memmgr_deprecated.h.

◆ __DEPRECATED_CACHE_MSG__

#define __DEPRECATED_CACHE_MSG__   __DEPRECATED__

Definition at line 41 of file nvrm_memmgr_deprecated.h.

◆ __DEPRECATED_MSG__

#define __DEPRECATED_MSG__ (   fmt)    __DEPRECATED__

Definition at line 39 of file nvrm_memmgr_deprecated.h.

◆ __DEPRECATED_WIKI_MSG__

#define __DEPRECATED_WIKI_MSG__   __DEPRECATED__

Definition at line 42 of file nvrm_memmgr_deprecated.h.

◆ __NVRM_UNDEF_DEPRECATED__

#define __NVRM_UNDEF_DEPRECATED__

Definition at line 45 of file nvrm_memmgr_deprecated.h.

◆ NV_RM_INVALID_PHYS_ADDRESS

#define NV_RM_INVALID_PHYS_ADDRESS   (~0U)

Define for invalid Physical address.

NvRmMemGetAddress is deprecated, which makes this deprecated as well.

Definition at line 126 of file nvrm_memmgr_deprecated.h.

◆ NVRM_MEM_TAG_CAMERA_MISC

#define NVRM_MEM_TAG_CAMERA_MISC   NvRmMemTags_Camera

Deprecated macro.

Don't use.

Definition at line 87 of file nvrm_memmgr_deprecated.h.

◆ NVRM_MEM_TAG_CODECS_MISC

#define NVRM_MEM_TAG_CODECS_MISC   NvRmMemTags_Codecs

Deprecated macro.

Don't use.

Definition at line 89 of file nvrm_memmgr_deprecated.h.

◆ NVRM_MEM_TAG_DDK2D_MISC

#define NVRM_MEM_TAG_DDK2D_MISC   NvRmMemTags_Ddk2d

Deprecated macro.

Don't use.

Definition at line 83 of file nvrm_memmgr_deprecated.h.

◆ NVRM_MEM_TAG_DISPLAY_MISC

#define NVRM_MEM_TAG_DISPLAY_MISC   NvRmMemTags_Display

Deprecated macro.

Don't use.

Definition at line 91 of file nvrm_memmgr_deprecated.h.

◆ NVRM_MEM_TAG_DISPMGR_MISC

#define NVRM_MEM_TAG_DISPMGR_MISC   ((NvRmMemTags)(NvRmMemTags_Display + 1))

Deprecated macro.

Don't use.

Definition at line 93 of file nvrm_memmgr_deprecated.h.

◆ NVRM_MEM_TAG_EGL_MISC

#define NVRM_MEM_TAG_EGL_MISC   NvRmMemTags_Egl

Deprecated macro.

Don't use.

Definition at line 85 of file nvrm_memmgr_deprecated.h.

◆ NVRM_MEM_TAG_GL_MISC

#define NVRM_MEM_TAG_GL_MISC   NvRmMemTags_Glsi

Deprecated macro.

Don't use.

Definition at line 73 of file nvrm_memmgr_deprecated.h.

◆ NVRM_MEM_TAG_GL_RBO

#define NVRM_MEM_TAG_GL_RBO   ((NvRmMemTags)(NvRmMemTags_Glsi + 2))

Deprecated macro.

Don't use.

Definition at line 77 of file nvrm_memmgr_deprecated.h.

◆ NVRM_MEM_TAG_GL_TEXTURE

#define NVRM_MEM_TAG_GL_TEXTURE   ((NvRmMemTags)(NvRmMemTags_Glsi + 1))

Deprecated macro.

Don't use.

Definition at line 75 of file nvrm_memmgr_deprecated.h.

◆ NVRM_MEM_TAG_GL_VBO

#define NVRM_MEM_TAG_GL_VBO   ((NvRmMemTags)(NvRmMemTags_Glsi + 3))

Deprecated macro.

Don't use.

Definition at line 79 of file nvrm_memmgr_deprecated.h.

◆ NVRM_MEM_TAG_GL_VCAA

#define NVRM_MEM_TAG_GL_VCAA   ((NvRmMemTags)(NvRmMemTags_Glsi + 4))

Deprecated macro.

Don't use.

Definition at line 81 of file nvrm_memmgr_deprecated.h.

◆ NVRM_MEM_TAG_GRALLOC_MISC

#define NVRM_MEM_TAG_GRALLOC_MISC   NvRmMemTags_Gralloc

Deprecated macro.

Don't use.

Definition at line 111 of file nvrm_memmgr_deprecated.h.

◆ NVRM_MEM_TAG_HAL_MISC

#define NVRM_MEM_TAG_HAL_MISC   ((NvRmMemTags)(NvRmMemTags_None + 1))

Deprecated macro.

Don't use.

Definition at line 109 of file nvrm_memmgr_deprecated.h.

◆ NVRM_MEM_TAG_MM_MISC

#define NVRM_MEM_TAG_MM_MISC   NvRmMemTags_Mm

Deprecated macro.

Don't use.

Definition at line 95 of file nvrm_memmgr_deprecated.h.

◆ NVRM_MEM_TAG_NONE

#define NVRM_MEM_TAG_NONE   NvRmMemTags_None

Deprecated macro.

Don't use.

Definition at line 71 of file nvrm_memmgr_deprecated.h.

◆ NVRM_MEM_TAG_ODM_MISC

#define NVRM_MEM_TAG_ODM_MISC   NvRmMemTags_Odm

Deprecated macro.

Don't use.

Definition at line 107 of file nvrm_memmgr_deprecated.h.

◆ NVRM_MEM_TAG_OMXCAMERA_MISC

#define NVRM_MEM_TAG_OMXCAMERA_MISC   NvRmMemTags_OpenMaxCamera

Deprecated macro.

Don't use.

Definition at line 113 of file nvrm_memmgr_deprecated.h.

◆ NVRM_MEM_TAG_OPENMAX_MISC

#define NVRM_MEM_TAG_OPENMAX_MISC   NvRmMemTags_OpenMax

Deprecated macro.

Don't use.

Definition at line 97 of file nvrm_memmgr_deprecated.h.

◆ NVRM_MEM_TAG_RM_MISC

#define NVRM_MEM_TAG_RM_MISC   NvRmMemTags_Rm

Deprecated macro.

Don't use.

Definition at line 103 of file nvrm_memmgr_deprecated.h.

◆ NVRM_MEM_TAG_SM_MISC

#define NVRM_MEM_TAG_SM_MISC   ((NvRmMemTags)(NvRmMemTags_Glsi + 5))

Deprecated macro.

Don't use.

Definition at line 101 of file nvrm_memmgr_deprecated.h.

◆ NVRM_MEM_TAG_SYSTEM_MISC

#define NVRM_MEM_TAG_SYSTEM_MISC   NvRmMemTags_System

Deprecated macro.

Don't use.

Definition at line 105 of file nvrm_memmgr_deprecated.h.

◆ NVRM_MEM_TAG_TVMR_MISC

#define NVRM_MEM_TAG_TVMR_MISC   NvRmMemTags_Tvmr

Deprecated macro.

Don't use.

Definition at line 117 of file nvrm_memmgr_deprecated.h.

◆ NVRM_MEM_TAG_VIDEO_ENC

#define NVRM_MEM_TAG_VIDEO_ENC   NvRmMemTags_VideoEnc

Deprecated macro.

Don't use.

Definition at line 119 of file nvrm_memmgr_deprecated.h.

◆ NVRM_MEM_TAG_WSI_MISC

#define NVRM_MEM_TAG_WSI_MISC   NvRmMemTags_Wsi

Deprecated macro.

Don't use.

Definition at line 99 of file nvrm_memmgr_deprecated.h.

◆ NVRM_MEM_TAG_X11_MISC

#define NVRM_MEM_TAG_X11_MISC   NvRmMemTags_X11

Deprecated macro.

Don't use.

Definition at line 115 of file nvrm_memmgr_deprecated.h.

◆ NVRM_MEMMGR_VERBOSITY_KEY

#define NVRM_MEMMGR_VERBOSITY_KEY   "nvrm.memmgr.vbose"

NvOsConfig key to control messages on MemMgr failures.

By default (when the key has no value), verbose printing is enabled for debug builds and disabled for release builds. Setting the key will override default setting.

Set value to: 1 enable more verbose printing; and 0 disable verbose printing.

Programmatically status can be set and queried with NvOsSetConfigU32 and NvOsGetConfigU32, respectively. See NvOs for more information on platform specifics about config values.

Note that verbose printing might not be supported on all backends. Currently it is supported Android and Linux running on device.

Specific to Android and should be moved to android specific file in future.

Definition at line 148 of file nvrm_memmgr_deprecated.h.

◆ NvRmHeap_Camera

#define NvRmHeap_Camera   NvRmHeap_IOMMU

Deprecated Heap type.

Don't use.

Definition at line 57 of file nvrm_memmgr_deprecated.h.

◆ NvRmHeap_External

#define NvRmHeap_External   ((NvRmHeap)1)

Deprecated Heap type.

Don't use.

Definition at line 59 of file nvrm_memmgr_deprecated.h.

◆ NvRmHeap_GART

#define NvRmHeap_GART   NvRmHeap_IOMMU

Deprecated Heap type.

Don't use.

Definition at line 55 of file nvrm_memmgr_deprecated.h.

◆ NvRmHeap_IRam

#define NvRmHeap_IRam   ((NvRmHeap)4)

Deprecated Heap type.

Don't use.

Definition at line 63 of file nvrm_memmgr_deprecated.h.

◆ NvRmHeap_Secured

#define NvRmHeap_Secured   ((NvRmHeap)6)

Deprecated Heap type.

Don't use.

Definition at line 61 of file nvrm_memmgr_deprecated.h.

◆ NvRmMemFloorVpr

#define NvRmMemFloorVpr   NvRmMemSetVprFloor

NvRmMemFloorVpr is deprecated.

Use NvRmMemSetVprFloor() API.

Definition at line 166 of file nvrm_memmgr_deprecated.h.

◆ NvRmMemGetCacheLineSize

#define NvRmMemGetCacheLineSize ( )    64

Queries the maximum cache line size (in bytes) for all of the caches L1 and L2 in the system.

This API is deprecated – all current x86 and ARM CPUs use 64-byte cache lines, there's no change to that in sight, and the cache flush APIs are expected to take care of this anyway.

Returns
The largest cache line size of the system

Definition at line 160 of file nvrm_memmgr_deprecated.h.

◆ NvRmMemMap64

#define NvRmMemMap64   NvRmMemMap

Deprecated macro.

Don't use.

Definition at line 66 of file nvrm_memmgr_deprecated.h.

◆ NvRmMemUnmap64

#define NvRmMemUnmap64   NvRmMemUnmap

Deprecated macro.

Don't use.

Definition at line 68 of file nvrm_memmgr_deprecated.h.

Enumeration Type Documentation

◆ NvRmMemCompbits

This is a generic enum for referring to the three distinct sets of compression bits that exist on a system that has Color Decompression Engines (CDEs).

This enum type doesn't belong to NvRmMem Interface and should be moved to nvrm_surface.h or related header file.

Enumerator
NvRmMemCompbits_None 
NvRmMemCompbits_Gpu 
NvRmMemCompbits_CdeHorizontal 
NvRmMemCompbits_CdeVertical 

Definition at line 176 of file nvrm_memmgr_deprecated.h.

Function Documentation

◆ NvRmMemAlloc()

NvError NvRmMemAlloc ( NvRmMemHandle  hMem,
const NvRmHeap *  Heaps,
NvU32  NumHeaps,
NvU32  Alignment,
NvOsMemAttribute  Coherency 
)

This API is deprecated.

Use NvRmMemHandleAllocAttr() instead.

◆ NvRmMemGetAddress()

NvU32 NvRmMemGetAddress ( NvRmMemHandle  hMem,
NvU32  Offset 
)

This API is deprecated.

Should be done via consumer subsystem as we need to support multiple address space.

◆ NvRmMemGetId()

NvU32 NvRmMemGetId ( NvRmMemHandle  hMem)

This API is deprecated.

Use NvRmMemGetFd() instead.

◆ NvRmMemHandleAlloc()

NvError NvRmMemHandleAlloc ( NvRmDeviceHandle  hDevice,
const NvRmHeap *  Heaps,
NvU32  NumHeaps,
NvU32  Alignment,
NvOsMemAttribute  Coherency,
NvU32  Size,
NvU16  Tags,
NvBool  ReclaimCache,
NvRmMemHandle *  phMem 
)

This API is deprecated.

Use NvRmMemHandleAllocAttr() instead.

◆ NvRmMemHandleCreate()

NvError NvRmMemHandleCreate ( NvRmDeviceHandle  hDevice,
NvRmMemHandle *  phMem,
NvU32  Size 
)

This API is deprecated.

Use NvRmMemHandleAllocAttr() instead.

◆ NvRmMemHandleDup()

NvError NvRmMemHandleDup ( NvRmMemHandle  hMem,
NvRmMemHandle *  phMemDuplicated 
)

This API is deprecated.

Use NvRmMemHandleDuplicate() instead.

◆ NvRmMemHandleFromId()

NvError NvRmMemHandleFromId ( NvU32  Id,
NvRmMemHandle *  phMem 
)

This API is deprecated.

Use NvRmMemHandleFromFd instead.

◆ NvRmMemPin()

NvUPtr NvRmMemPin ( NvRmMemHandle  hMem)

This API is deprecated.

Should be done via consumer subsystem as we need to support multiple address space.

◆ NvRmMemPinMult()

void NvRmMemPinMult ( NvRmMemHandle *  hMems,
NvUPtr *  Addrs,
NvU32  Count 
)

This API is deprecated.

Should be done via consumer subsystem as we need to support multiple address space.

◆ NvRmMemQueryHandleParameters()

NvError NvRmMemQueryHandleParameters ( NvRmMemHandle  hMem,
NvU64  ImportId,
NvRmMemHandleParams *  params,
NvU32  ParamsSize 
)

This API is deprecated.

Use NvRmMemQueryHandleParams() instead.

◆ NvRmMemUnpin()

void NvRmMemUnpin ( NvRmMemHandle  hMem)

This API is deprecated.

Should be done via consumer subsystem as we need to support multiple address space.

◆ NvRmMemUnpinMult()

void NvRmMemUnpinMult ( NvRmMemHandle *  hMems,
NvU32  Count 
)

This API is deprecated.

Should be done via consumer subsystem as we need to support multiple address space.

Variable Documentation

◆ API

Definition at line 266 of file nvrm_memmgr_deprecated.h.