NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release

Detailed Description

Userspace API to read Tegra chip information such as Chip ID, revision, fuse.

Macros

#define TEGRA_CHIPID_REV_UNKNOWN   0x0
 Identifier for unknown ChipID revision. More...
 
#define TEGRA_PRODUCTION_MODE_UNKNOWN   ~0x0U
 Identifier for unknown Production mode. More...
 

Enumerations

enum  NvSocSysErrCode {
  NvSocSysError = 0x1FFFFFF0U,
  NvSocSysErrUnavailable = 0x1FFFFFFFU,
  NvSocSysSuccess = 0
}
 Error code for reading system info. More...
 
enum  NvSysSocId {
  NvSysSocAutoDetect = 0U,
  NvSysSocT18x = 0x18U,
  NvSysSocInvalid = 0x1FFFFFF0U
}
 SOC types for retrieving info. More...
 
enum  NvSocFuseOPTInfo {
  TEGRA_FUSE_OPT_INVALID = 0U,
  TEGRA_FUSE_OPT_CCPLEX_CLUSTER_DISABLE = 0x0FU,
  TEGRA_FUSE_OPT_DLA_DISABLE = 0x33U,
  TEGRA_FUSE_OPT_EMC_DISABLE = 0x3CU,
  TEGRA_FUSE_OPT_FBP_DISABLE = 0x55U,
  TEGRA_FUSE_OPT_FSI_DISABLE = 0x5AU,
  TEGRA_FUSE_OPT_GPC_DISABLE = 0x66U,
  TEGRA_FUSE_OPT_NVDEC_DISABLE = 0x69U,
  TEGRA_FUSE_OPT_NVENC_DISABLE = 0x96U,
  TEGRA_FUSE_OPT_PVA_DISABLE = 0x99U,
  TEGRA_FUSE_OPT_TPC_DISABLE = 0xA5U,
  TEGRA_FUSE_FUSE_SECURITY_MODE = 0x303U,
  TEGRA_FUSE_FUSE_FA = 0x30CU,
  TEGRA_FUSE_OPT_UCF_CLUSTER_DISABLE = 0x34FU,
  TEGRA_FUSE_OPT_AUDIO_DISABLE = 0x350U,
  TEGRA_FUSE_OPT_ISP_DISABLE = 0x35FU,
  TEGRA_FUSE_OPT_VIC_DISABLE = 0x3C6U,
  TEGRA_FUSE_OPT_DISPLAY_DISABLE = 0x3C9U,
  TEGRA_FUSE_OPT_MSS_DISABLE = 0x359U,
  TEGRA_FUSE_OPT_PCIE_DISABLE = 0x365U,
  TEGRA_FUSE_OPT_MGBE_DISABLE = 0x36AU,
  TEGRA_FUSE_BOOT_SECURITY_INFO = 0x395U,
  TEGRA_FUSE_REVOKE_PK_H0 = 0x39AU,
  TEGRA_FUSE_REVOKE_PK_H1 = 0x3A6U,
  TEGRA_FUSE_PUBLIC_KEY0 = 0x3A9U,
  TEGRA_FUSE_PUBLIC_KEY1 = 0x3C0U,
  TEGRA_FUSE_PUBLIC_KEY2 = 0x3CFU,
  TEGRA_FUSE_PUBLIC_KEY3 = 0x3F3U,
  TEGRA_FUSE_PUBLIC_KEY4 = 0x3FCU,
  TEGRA_FUSE_PUBLIC_KEY5 = 0x505U,
  TEGRA_FUSE_PUBLIC_KEY6 = 0x50AU,
  TEGRA_FUSE_PUBLIC_KEY7 = 0x536U,
  TEGRA_FUSE_PUBLIC_KEY8 = 0x53AU,
  TEGRA_FUSE_PUBLIC_KEY9 = 0x550U,
  TEGRA_FUSE_PUBLIC_KEY10 = 0x55FU,
  TEGRA_FUSE_PUBLIC_KEY11 = 0x563U,
  TEGRA_FUSE_PUBLIC_KEY12 = 0x56CU,
  TEGRA_FUSE_PUBLIC_KEY13 = 0x593U,
  TEGRA_FUSE_PUBLIC_KEY14 = 0x59CU,
  TEGRA_FUSE_PUBLIC_KEY15 = 0x5A0U,
  TEGRA_FUSE_PK_H1_0 = 0x5AFU,
  TEGRA_FUSE_PK_H1_1 = 0x5C6U,
  TEGRA_FUSE_PK_H1_2 = 0x5C9U,
  TEGRA_FUSE_PK_H1_3 = 0x5F5U,
  TEGRA_FUSE_PK_H1_4 = 0x5FAU,
  TEGRA_FUSE_PK_H1_5 = 0x606U,
  TEGRA_FUSE_PK_H1_6 = 0x609U,
  TEGRA_FUSE_PK_H1_7 = 0x635U,
  TEGRA_FUSE_PK_H1_8 = 0x63AU,
  TEGRA_FUSE_PK_H1_9 = 0x653U,
  TEGRA_FUSE_PK_H1_10 = 0x65CU,
  TEGRA_FUSE_PK_H1_11 = 0x660U,
  TEGRA_FUSE_PK_H1_12 = 0x66FU,
  TEGRA_FUSE_PK_H1_13 = 0x690U,
  TEGRA_FUSE_PK_H1_14 = 0x69FU,
  TEGRA_FUSE_PK_H1_15 = 0x6A3U,
  TEGRA_FUSE_PK_H2_0 = 0x6ACU,
  TEGRA_FUSE_PK_H2_1 = 0x6C5U,
  TEGRA_FUSE_PK_H2_2 = 0x6CAU,
  TEGRA_FUSE_PK_H2_3 = 0x6F6U,
  TEGRA_FUSE_PK_H2_4 = 0x6F9U,
  TEGRA_FUSE_PK_H2_5 = 0x906U,
  TEGRA_FUSE_PK_H2_6 = 0x909U,
  TEGRA_FUSE_PK_H2_7 = 0x935U,
  TEGRA_FUSE_PK_H2_8 = 0x93AU,
  TEGRA_FUSE_PK_H2_9 = 0x953U,
  TEGRA_FUSE_PK_H2_10 = 0x95CU,
  TEGRA_FUSE_PK_H2_11 = 0x960U,
  TEGRA_FUSE_PK_H2_12 = 0x96FU,
  TEGRA_FUSE_PK_H2_13 = 0x990U,
  TEGRA_FUSE_PK_H2_14 = 0x99FU,
  TEGRA_FUSE_PK_H2_15 = 0x9A3U,
  TEGRA_FUSE_OPT_HWPM_DISABLE = 0x9ACU
}
 Enumerator of FUSE bit info. More...
 

Functions

NvSocSysErrCode NvTegraSysGetVerboseLevel (NvS32 *VerbLevel)
 Identifier for unknown Production mode. More...
 
NvSocSysErrCode NvTegraSysSetVerboseLevel (NvS32 VerbLevel)
 
NvSocChipId NvTegraSysGetChipId (void)
 Read the Tegra chip ID from chipid registers. More...
 
NvSocSysErrCode NvTegraSysGetSkuInfo (NvU32 *sku)
 Read the Tegra chip SKU information from eFuse registers. More...
 
NvSocSysErrCode NvTegraSysGetReservedProduction (NvU32 *resproduction)
 Read the Tegra chip Reserved Production information from eFuse registers. More...
 
NvSocSysErrCode NvTegraSysGetPackageInfo (NvU32 *package)
 Read the Tegra chip Package information from eFuse registers. More...
 
NvU32 NvTegraSysGetProductionMode (void)
 Read the Tegra chip Production mode information from eFuse registers. More...
 
NvSocRevision NvTegraSysGetChipRevision (void)
 Read the Tegra chip Revision information from eFuse registers. More...
 
NvU32 NvTegraSysGetChipIdRev (void)
 Read the Tegra chip Id Rev value. More...
 
NvSocSysErrCode NvTegraSysGetFuseVP9Disable (NvU32 *vp9disable)
 Check whether VP9 (Video Encode/Decode) is disabled or not. More...
 
NvSocSysErrCode NvTegraSysGetFuseVP9DecDisable (NvU32 *vp9decdisable)
 Check whether VP9 Decoder is disabled or not. More...
 
NvSocSysErrCode NvTegraSysGetFuseVP9EncDisable (NvU32 *vp9encdisable)
 Check whether VP9 Encoder is disabled or not. More...
 
const char * NvTegraSysGetPlatform (void)
 Get Platform Name. More...
 
const char * NvTegraSysGetCpuType (void)
 Get CPU Type. More...
 
NvSocSysErrCode NvTegraSysGetFuseOPT_info (NvSocFuseOPTInfo FuseOPT, NvU32 *FuseOPT_info)
 Get FUSE OPT register data following. More...
 
NvSocSysErrCode NvTegraSysGetFuseHashedECID (NvSysTegraECID *ecid)
 Get Hashed ECID info with 512bits. More...
 
NvSocSysErrCode NvTegraSysGetFuseODMData (NvU32 *ODMID_0, NvU32 *ODMID_1, NvU32 *ODMInfo)
 Get ODM data. More...
 
const char * NvTegraSysGetSOCVendor (void)
 Get SOC Vendor Name. More...
 
NvSocSysErrCode NvTegraSysGetFuseDLADisable (NvU32 *dladisable)
 Check whether DLA is disabled or not. More...
 
NvSocSysErrCode NvTegraSysInit (NvSysSocId SocId)
 Initialize NvSocSys library to be able to read chip information. More...
 
NvSocSysErrCode NvTegraSysDeInit (void)
 De-initialize NvSocSys library and perform cleanup. More...
 

Macro Definition Documentation

◆ TEGRA_CHIPID_REV_UNKNOWN

#define TEGRA_CHIPID_REV_UNKNOWN   0x0

Identifier for unknown ChipID revision.

Definition at line 316 of file nvsocsysapi.h.

◆ TEGRA_PRODUCTION_MODE_UNKNOWN

#define TEGRA_PRODUCTION_MODE_UNKNOWN   ~0x0U

Identifier for unknown Production mode.

Definition at line 318 of file nvsocsysapi.h.

Enumeration Type Documentation

◆ NvSocFuseOPTInfo

Enumerator of FUSE bit info.

Enumerator
TEGRA_FUSE_OPT_INVALID 

Invalid Fuse OPT input.

TEGRA_FUSE_OPT_CCPLEX_CLUSTER_DISABLE 

Tegra Fuse OPT_CCPLEX_CLUSTER_DISABLE.

TEGRA_FUSE_OPT_DLA_DISABLE 

Tegra Fuse OPT_DLA_DISABLE.

TEGRA_FUSE_OPT_EMC_DISABLE 

Tegra Fuse OPT_EMC_DISABLE.

TEGRA_FUSE_OPT_FBP_DISABLE 

Tegra Fuse OPT_FBP_DISABLE.

TEGRA_FUSE_OPT_FSI_DISABLE 

Tegra Fuse OPT_FSI_DISABLE.

TEGRA_FUSE_OPT_GPC_DISABLE 

Tegra Fuse OPT_GPC_DISABLE.

TEGRA_FUSE_OPT_NVDEC_DISABLE 

Tegra Fuse OPT_NVDEC_DISABLE.

TEGRA_FUSE_OPT_NVENC_DISABLE 

Tegra Fuse OPT_NVENC_DISABLE.

TEGRA_FUSE_OPT_PVA_DISABLE 

Tegra Fuse OPT_PVA_DISABLE.

TEGRA_FUSE_OPT_TPC_DISABLE 

Tegra Fuse OPT_TPC_DISABLE.

TEGRA_FUSE_FUSE_SECURITY_MODE 

Tegra Fuse Security mode.

TEGRA_FUSE_FUSE_FA 

Tegra Fuse Failure Analysis.

TEGRA_FUSE_OPT_UCF_CLUSTER_DISABLE 

Tegra Fuse FUSE OPT_UCF_CLUSTER_DISABLE.

TEGRA_FUSE_OPT_AUDIO_DISABLE 

Tegra Fuse FUSE OPT_AUDIO_DISABLE.

TEGRA_FUSE_OPT_ISP_DISABLE 

Tegra Fuse FUSE OPT_ISP_DISABLE.

TEGRA_FUSE_OPT_VIC_DISABLE 

Tegra Fuse FUSE OPT_VIC_DISABLE.

TEGRA_FUSE_OPT_DISPLAY_DISABLE 

Tegra Fuse FUSE OPT_DISPLAY_DISABLE.

TEGRA_FUSE_OPT_MSS_DISABLE 

Tegra Fuse FUSE OPT_MSS_DISABLE.

TEGRA_FUSE_OPT_PCIE_DISABLE 

Tegra Fuse FUSE OPT_PCIE_DISABLE.

TEGRA_FUSE_OPT_MGBE_DISABLE 

Tegra Fuse FUSE OPT_MGBE_DISABLE.

TEGRA_FUSE_BOOT_SECURITY_INFO 

Tegra Fuse Boot Security Info.

TEGRA_FUSE_REVOKE_PK_H0 

Tegra Fuse Revoke PK H0.

TEGRA_FUSE_REVOKE_PK_H1 

Tegra Fuse Revoke PK H1.

TEGRA_FUSE_PUBLIC_KEY0 

Tegra Fuse Public Key 0.

TEGRA_FUSE_PUBLIC_KEY1 

Tegra Fuse Public Key 1.

TEGRA_FUSE_PUBLIC_KEY2 

Tegra Fuse Public Key 2.

TEGRA_FUSE_PUBLIC_KEY3 

Tegra Fuse Public Key 3.

TEGRA_FUSE_PUBLIC_KEY4 

Tegra Fuse Public Key 4.

TEGRA_FUSE_PUBLIC_KEY5 

Tegra Fuse Public Key 5.

TEGRA_FUSE_PUBLIC_KEY6 

Tegra Fuse Public Key 6.

TEGRA_FUSE_PUBLIC_KEY7 

Tegra Fuse Public Key 7.

TEGRA_FUSE_PUBLIC_KEY8 

Tegra Fuse Public Key 8.

TEGRA_FUSE_PUBLIC_KEY9 

Tegra Fuse Public Key 9.

TEGRA_FUSE_PUBLIC_KEY10 

Tegra Fuse Public Key 10.

TEGRA_FUSE_PUBLIC_KEY11 

Tegra Fuse Public Key 11.

TEGRA_FUSE_PUBLIC_KEY12 

Tegra Fuse Public Key 12.

TEGRA_FUSE_PUBLIC_KEY13 

Tegra Fuse Public Key 13.

TEGRA_FUSE_PUBLIC_KEY14 

Tegra Fuse Public Key 14.

TEGRA_FUSE_PUBLIC_KEY15 

Tegra Fuse Public Key 15.

TEGRA_FUSE_PK_H1_0 

Tegra Fuse Legacy PK H1 0.

TEGRA_FUSE_PK_H1_1 

Tegra Fuse Legacy PK H1 1.

TEGRA_FUSE_PK_H1_2 

Tegra Fuse Legacy PK H1 2.

TEGRA_FUSE_PK_H1_3 

Tegra Fuse Legacy PK H1 3.

TEGRA_FUSE_PK_H1_4 

Tegra Fuse Legacy PK H1 4.

TEGRA_FUSE_PK_H1_5 

Tegra Fuse Legacy PK H1 5.

TEGRA_FUSE_PK_H1_6 

Tegra Fuse Legacy PK H1 6.

TEGRA_FUSE_PK_H1_7 

Tegra Fuse Legacy PK H1 7.

TEGRA_FUSE_PK_H1_8 

Tegra Fuse Legacy PK H1 8.

TEGRA_FUSE_PK_H1_9 

Tegra Fuse Legacy PK H1 9.

TEGRA_FUSE_PK_H1_10 

Tegra Fuse Legacy PK H1 10.

TEGRA_FUSE_PK_H1_11 

Tegra Fuse Legacy PK H1 11.

TEGRA_FUSE_PK_H1_12 

Tegra Fuse Legacy PK H1 12.

TEGRA_FUSE_PK_H1_13 

Tegra Fuse Legacy PK H1 13.

TEGRA_FUSE_PK_H1_14 

Tegra Fuse Legacy PK H1 14.

TEGRA_FUSE_PK_H1_15 

Tegra Fuse Legacy PK H1 15.

TEGRA_FUSE_PK_H2_0 

Tegra Fuse Legacy PK H2 0.

TEGRA_FUSE_PK_H2_1 

Tegra Fuse Legacy PK H2 1.

TEGRA_FUSE_PK_H2_2 

Tegra Fuse Legacy PK H2 2.

TEGRA_FUSE_PK_H2_3 

Tegra Fuse Legacy PK H2 3.

TEGRA_FUSE_PK_H2_4 

Tegra Fuse Legacy PK H2 4.

TEGRA_FUSE_PK_H2_5 

Tegra Fuse Legacy PK H2 5.

TEGRA_FUSE_PK_H2_6 

Tegra Fuse Legacy PK H2 6.

TEGRA_FUSE_PK_H2_7 

Tegra Fuse Legacy PK H2 7.

TEGRA_FUSE_PK_H2_8 

Tegra Fuse Legacy PK H2 8.

TEGRA_FUSE_PK_H2_9 

Tegra Fuse Legacy PK H2 9.

TEGRA_FUSE_PK_H2_10 

Tegra Fuse Legacy PK H2 10.

TEGRA_FUSE_PK_H2_11 

Tegra Fuse Legacy PK H2 11.

TEGRA_FUSE_PK_H2_12 

Tegra Fuse Legacy PK H2 12.

TEGRA_FUSE_PK_H2_13 

Tegra Fuse Legacy PK H2 13.

TEGRA_FUSE_PK_H2_14 

Tegra Fuse Legacy PK H2 14.

TEGRA_FUSE_PK_H2_15 

Tegra Fuse Legacy PK H2 15.

TEGRA_FUSE_OPT_HWPM_DISABLE 

Tegra Fuse HWPM Disable.

Definition at line 166 of file nvsocsysapi.h.

◆ NvSocSysErrCode

Error code for reading system info.

Enumerator
NvSocSysError 

Error for common.

NvSocSysErrUnavailable 

Error for unavailable.

NvSocSysSuccess 

Success.

Definition at line 146 of file nvsocsysapi.h.

◆ NvSysSocId

enum NvSysSocId

SOC types for retrieving info.

Enumerator
NvSysSocAutoDetect 

Auto detect SoC ID.

NvSysSocT18x 

SoC ID - T18x.

NvSysSocInvalid 

Invalid SoC ID.

Definition at line 156 of file nvsocsysapi.h.

Function Documentation

◆ NvTegraSysDeInit()

NvSocSysErrCode NvTegraSysDeInit ( void  )

De-initialize NvSocSys library and perform cleanup.

Returns
NvSocSysSuccess, If the library was successfully de-initialized
NvSocSysError, If the library was not successfully de-initialized due to an error condition
Precondition
NvTegraSysInit() shall be success


Usage considerations

  • Allowed context for the API call
    • Interrupt handler: No
    • Signal handler: No
    • Thread-safe: Yes
    • Re-entrant: No
    • Async/Sync: Sync
  • Required privileges: None
  • Allowed execution state
    • Initialization: Yes
    • Operational: No
    • Reinit/Deinit Preparation: Yes
  • Maturity: GA

◆ NvTegraSysGetChipId()

NvSocChipId NvTegraSysGetChipId ( void  )

Read the Tegra chip ID from chipid registers.

Returns
NvSocChipId TEGRA_CHIPID_UNKNOWN Tegra chip ID could not be fetched from the HW
NvSocChipId TEGRA_CHIPID_TEGRA23 Chip ID for Tegra chip T23x
NvSocChipId TEGRA_CHIPID_TEGRA26 Chip ID for Tegra chip T26x
NvSocChipId TEGRA_CHIPID_TEGRA25 Chip ID for Tegra chip Next
Precondition
NvTegraSysInit() shall be success


Usage considerations

  • Allowed context for the API call
    • Interrupt handler: No
    • Signal handler: No
    • Thread-safe: Yes
    • Re-entrant: No
    • Async/Sync: Sync
  • Required privileges:
    • Custom abilities: nvsys/system_info
  • Allowed execution state
    • Initialization: Yes
    • Operational: Yes
    • Reinit/Deinit Preparation: Yes
  • Maturity: GA

◆ NvTegraSysGetChipIdRev()

NvU32 NvTegraSysGetChipIdRev ( void  )

Read the Tegra chip Id Rev value.

Returns
TEGRA_CHIPID_REV_UNKNOWN, If tegra chip id rev could not be fetched from the HW or chip is before T23x
Last digit of chip id, (For example, T234 is 0x4, T236 is 0x6)
Precondition
NvTegraSysInit() shall be success


Usage considerations

  • Allowed context for the API call
    • Interrupt handler: No
    • Signal handler: No
    • Thread-safe: Yes
    • Re-entrant: No
    • Async/Sync: Sync
  • Required privileges:
    • Custom abilities: nvsys/system_info
  • Allowed execution state
    • Initialization: Yes
    • Operational: Yes
    • Reinit/Deinit Preparation: Yes
  • Maturity: GA

◆ NvTegraSysGetChipRevision()

NvSocRevision NvTegraSysGetChipRevision ( void  )

Read the Tegra chip Revision information from eFuse registers.

Returns
NvSocRevision TEGRA_REVISION_UNKNOWN Tegra chip revision could not be fetched from the HW
NvSocRevision TEGRA_REVISION_A00 A00 revision
NvSocRevision TEGRA_REVISION_A01 A01 revision
NvSocRevision TEGRA_REVISION_A01P A01 with p subrevision
NvSocRevision TEGRA_REVISION_A01Q A01 with q subrevision
NvSocRevision TEGRA_REVISION_A02 A02 revision
NvSocRevision TEGRA_REVISION_A02P A02 with p subrevision
NvSocRevision TEGRA_REVISION_A02Q A02 with q subrevision
NvSocRevision TEGRA_REVISION_A03 A03 revision
NvSocRevision TEGRA_REVISION_QT QT simulate revision
NvSocRevision TEGRA_REVISION_SIM SIM simulate revision
NvSocRevision TEGRA_REVISION_MAX MAX revision
Precondition
NvTegraSysInit() shall be success


Usage considerations

  • Allowed context for the API call
    • Interrupt handler: No
    • Signal handler: No
    • Thread-safe: Yes
    • Re-entrant: No
    • Async/Sync: Sync
  • Required privileges:
    • Custom abilities: nvsys/system_info
  • Allowed execution state
    • Initialization: Yes
    • Operational: Yes
    • Reinit/Deinit Preparation: Yes
  • Maturity: GA

◆ NvTegraSysGetCpuType()

const char* NvTegraSysGetCpuType ( void  )

Get CPU Type.

Returns
"asim", Tegra SOC CPU is asim
"dsim", Tegra SOC CPU is dsim
"silicon", Tegra SOC CPU is silicon
"quickturn", Tegra SOC CPU is quickturn
"system_fpga", Tegra SOC CPU is system fpga
"simulation", Tegra SOC CPU is simulation
"vsp", Tegra SOC CPU is vsp
"invalid", Tegra SOC CPU is invalid
NULL, Tegra SOC CPU info is unavailable at device node
Precondition
NvTegraSysInit() shall be success


Usage considerations

  • Allowed context for the API call
    • Interrupt handler: No
    • Signal handler: No
    • Thread-safe: Yes
    • Re-entrant: No
    • Async/Sync: Sync
  • Required privileges:
    • Custom abilities: nvsys/system_info
  • Allowed execution state
    • Initialization: Yes
    • Operational: Yes
    • Reinit/Deinit Preparation: Yes
  • Maturity: GA

◆ NvTegraSysGetFuseDLADisable()

NvSocSysErrCode NvTegraSysGetFuseDLADisable ( NvU32 *  dladisable)

Check whether DLA is disabled or not.

Parameters
[out]dladisable
  • 0, Both DLAs are enabled
  • 1, DLA0 is disabled
  • 2, DLA1 is disabled
  • 3, Both DLAs are disabled
Returns
NvSocSysSuccess, DLA status is available at device node
NvSocSysError, DLA status is unavailable or dladisable is NULL
Precondition
NvTegraSysInit() shall be success


Usage considerations

  • Allowed context for the API call
    • Interrupt handler: No
    • Signal handler: No
    • Thread-safe: Yes
    • Re-entrant: No
    • Async/Sync: Sync
  • Required privileges:
    • Custom abilities: nvsys/hardware_ability
  • Allowed execution state
    • Initialization: Yes
    • Operational: Yes
    • Reinit/Deinit Preparation: Yes
  • Maturity: GA

◆ NvTegraSysGetFuseHashedECID()

NvSocSysErrCode NvTegraSysGetFuseHashedECID ( NvSysTegraECID *  ecid)

Get Hashed ECID info with 512bits.

Parameters
[out]ecidStructure NvSysTegraECID for 512bits ECID
Returns
NvSocSysSuccess, Hashed ECID is available at device node
NvSocSysError, Hashed ECID is unavailable or ecid is NULL
Precondition
NvTegraSysInit() shall be success


Usage considerations

  • Allowed context for the API call
    • Interrupt handler: No
    • Signal handler: No
    • Thread-safe: Yes
    • Re-entrant: No
    • Async/Sync: Sync
  • Required privileges:
    • Custom abilities: nvsys/hashed_ecid
  • Allowed execution state
    • Initialization: Yes
    • Operational: Yes
    • Reinit/Deinit Preparation: Yes
  • Maturity: GA

◆ NvTegraSysGetFuseODMData()

NvSocSysErrCode NvTegraSysGetFuseODMData ( NvU32 *  ODMID_0,
NvU32 *  ODMID_1,
NvU32 *  ODMInfo 
)

Get ODM data.

Parameters
[out]ODMID_0MSB 32bit data for ODMID
[out]ODMID_1LSB 32bit data for ODMID
[out]ODMInfo32bit data for ODMInfo
Returns
NvSocSysSuccess, ODM data is available at device node
NvSocSysError, ODM data is unavailable or ODMID_0/1/ODMInfo is NULL
Precondition
NvTegraSysInit() shall be success


Usage considerations

  • Allowed context for the API call
    • Interrupt handler: No
    • Signal handler: No
    • Thread-safe: Yes
    • Re-entrant: No
    • Async/Sync: Sync
  • Required privileges:
    • Custom abilities: nvsys/odm_info
  • Allowed execution state
    • Initialization: Yes
    • Operational: Yes
    • Reinit/Deinit Preparation: Yes
  • Maturity: GA

◆ NvTegraSysGetFuseOPT_info()

NvSocSysErrCode NvTegraSysGetFuseOPT_info ( NvSocFuseOPTInfo  FuseOPT,
NvU32 *  FuseOPT_info 
)

Get FUSE OPT register data following.

  • OPT_CCPLEX_CLUSTER_DISABLE
  • OPT_DLA_DISABLE
  • OPT_EMC_DISABLE
  • OPT_FBP_DISABLE
  • OPT_FSI_DISABLE
  • OPT_GPC_DISABLE
  • OPT_NVDEC_DISABLE
  • OPT_NVENC_DISABLE
  • OPT_PVA_DISABLE
  • OPT_TPC_DISABLE
  • OPT_AUDIO_DISABLE
  • OPT_ISP_DISABLE
  • OPT_VIC_DISABLE
  • OPT_DISPLAY_DISABLE
  • OPT_MSS_DISABLE
  • OPT_PCIE_DISABLE
  • OPT_MGBE_DISABLE
  • OPT_UCF_CLUSTER_DISABLE
  • OPT_HWPM_DISABLE (QNX only)
  • FUSE_SECURITY_MODE (QNX only)
  • FUSE_FA (QNX only)
  • FUSE_BOOT_SECURITY_INFO (QNX only)
  • FUSE_REVOKE_PK_H0 (QNX only)
  • FUSE_REVOKE_PK_H1 (QNX only)
  • FUSE_PUBLIC_KEY[0..15] (QNX only)
  • FUSE_PK_H1_[0..15] (QNX only)
  • FUSE_PK_H2_[0..15] (QNX only)
Parameters
[in]FuseOPTenums to get Fuse OPT info at NvSocFuseOPTInfo.
[out]FuseOPT_infopointer to return Fuse OPT info data.
Returns
NvSocSysSuccess, If the Fuse OPT info is correctly fetched
NvSocSysError, If the Fuse OPT info is invalid or FuseOPT_info is NULL
Precondition
NvTegraSysInit() shall be success


Usage considerations

  • Allowed context for the API call
    • Interrupt handler: No
    • Signal handler: No
    • Thread-safe: Yes
    • Re-entrant: No
    • Async/Sync: Sync
  • Required privileges:
    • Custom abilities:
      • nvsys/hardware_ability : NvSocFuseOPTInfo enums following
        TEGRA_FUSE_OPT_CCPLEX_CLUSTER_DISABLE
        TEGRA_FUSE_OPT_DLA_DISABLE
        TEGRA_FUSE_OPT_EMC_DISABLE
        TEGRA_FUSE_OPT_FBP_DISABLE
        TEGRA_FUSE_OPT_FSI_DISABLE
        TEGRA_FUSE_OPT_GPC_DISABLE
        TEGRA_FUSE_OPT_NVDEC_DISABLE
        TEGRA_FUSE_OPT_NVENC_DISABLE
        TEGRA_FUSE_OPT_PVA_DISABLE
        TEGRA_FUSE_OPT_TPC_DISABLE
        TEGRA_FUSE_OPT_AUDIO_DISABLE
        TEGRA_FUSE_OPT_ISP_DISABLE
        TEGRA_FUSE_OPT_VIC_DISABLE
        TEGRA_FUSE_OPT_DISPLAY_DISABLE
        TEGRA_FUSE_OPT_MSS_DISABLE
        TEGRA_FUSE_OPT_PCIE_DISABLE
        TEGRA_FUSE_OPT_MGBE_DISABLE
        TEGRA_FUSE_OPT_UCF_CLUSTER_DISABLE
        TEGRA_FUSE_OPT_HWPM_DISABLE
        TEGRA_FUSE_FUSE_SECURITY_MODE
        TEGRA_FUSE_FUSE_FA
        TEGRA_FUSE_BOOT_SECURITY_INFO
        TEGRA_FUSE_REVOKE_PK_H0
        TEGRA_FUSE_REVOKE_PK_H1
        TEGRA_FUSE_PUBLIC_KEY[0..15]
        TEGRA_FUSE_PK_H1_[0..15]
        TEGRA_FUSE_PK_H2_[0..15]
  • Allowed execution state
    • Initialization: Yes
    • Operational: Yes
    • Reinit/Deinit Preparation: Yes
  • Maturity: GA

◆ NvTegraSysGetFuseVP9DecDisable()

NvSocSysErrCode NvTegraSysGetFuseVP9DecDisable ( NvU32 *  vp9decdisable)

Check whether VP9 Decoder is disabled or not.

Parameters
[out]vp9decdisable
  • 0, VP9 Decoder is enabled
  • 1, VP9 Decoder is disabled
Returns
NvSocSysSuccess, VP9 Decoder status is available at device node
NvSocSysError, VP9 Decoder status is unavailable or vp9decdisable is NULL
Precondition
NvTegraSysInit() shall be success


Usage considerations

  • Allowed context for the API call
    • Interrupt handler: No
    • Signal handler: No
    • Thread-safe: Yes
    • Re-entrant: No
    • Async/Sync: Sync
  • Required privileges:
    • Custom abilities: nvsys/hardware_ability
  • Allowed execution state
    • Initialization: Yes
    • Operational: Yes
    • Reinit/Deinit Preparation: Yes
  • Maturity: GA

◆ NvTegraSysGetFuseVP9Disable()

NvSocSysErrCode NvTegraSysGetFuseVP9Disable ( NvU32 *  vp9disable)

Check whether VP9 (Video Encode/Decode) is disabled or not.

Parameters
[out]vp9disable
  • 0, VP9 is enabled
  • 1, VP9 is disabled
Returns
NvSocSysSuccess, VP9 status is available at device node
NvSocSysError, VP9 status is unavailable or vp9disable is NULL
Precondition
NvTegraSysInit() shall be success


Usage considerations

  • Allowed context for the API call
    • Interrupt handler: No
    • Signal handler: No
    • Thread-safe: Yes
    • Re-entrant: No
    • Async/Sync: Sync
  • Required privileges:
    • Custom abilities: nvsys/hardware_ability
  • Allowed execution state
    • Initialization: Yes
    • Operational: Yes
    • Reinit/Deinit Preparation: Yes
  • Maturity: GA

◆ NvTegraSysGetFuseVP9EncDisable()

NvSocSysErrCode NvTegraSysGetFuseVP9EncDisable ( NvU32 *  vp9encdisable)

Check whether VP9 Encoder is disabled or not.

Parameters
[out]vp9encdisable
  • 0, VP9 Encoder is enabled
  • 1, VP9 Encoder is disabled
Returns
NvSocSysSuccess, VP9 Encoder status is available at device node
NvSocSysError, VP9 Encoder status is unavailable or vp9encdisable is NULL
Precondition
NvTegraSysInit() shall be success


Usage considerations

  • Allowed context for the API call
    • Interrupt handler: No
    • Signal handler: No
    • Thread-safe: Yes
    • Re-entrant: No
    • Async/Sync: Sync
  • Required privileges:
    • Custom abilities: nvsys/hardware_ability
  • Allowed execution state
    • Initialization: Yes
    • Operational: Yes
    • Reinit/Deinit Preparation: Yes
  • Maturity: GA

◆ NvTegraSysGetPackageInfo()

NvSocSysErrCode NvTegraSysGetPackageInfo ( NvU32 *  package)

Read the Tegra chip Package information from eFuse registers.

Parameters
[out]packageChip Package Information as following integer
  • 1: MID
  • 2: DSC
  • 3: MCM/Automotive
Returns
NvSocSysSuccess, Chip Package Information is available at device node
NvSocSysError, Chip Package Information is unavailable or package is NULL
Precondition
NvTegraSysInit() shall be success


Usage considerations

  • Allowed context for the API call
    • Interrupt handler: No
    • Signal handler: No
    • Thread-safe: Yes
    • Re-entrant: No
    • Async/Sync: Sync
  • Required privileges:
    • Custom abilities: nvsys/system_info
  • Allowed execution state
    • Initialization: Yes
    • Operational: Yes
    • Reinit/Deinit Preparation: Yes
  • Maturity: GA

◆ NvTegraSysGetPlatform()

const char* NvTegraSysGetPlatform ( void  )

Get Platform Name.

Returns
"silicon", Tegra SOC platform is silicon
"quickturn", Tegra SOC platform is quickturn
"system_fpga", Tegra SOC platform is system fpga
"unit_fpga", Tegra SOC platform is unit fpga
"asim_quickturn", Tegra SOC platform is asim quickturn
"asim_linsim", Tegra SOC platform is asim linsim
"dsim_asim_linsim", Tegra SOC platform is dsim asim linsim
"simulation", Tegra SOC platform is simulation
"vdk", Tegra SOC platform is vdk
"vsp", Tegra SOC platform is vsp
"invalid", Tegra SOC platform is invalid
NULL, Tegra SOC platform info is unavailable at device node
Precondition
NvTegraSysInit() shall be success


Usage considerations

  • Allowed context for the API call
    • Interrupt handler: No
    • Signal handler: No
    • Thread-safe: Yes
    • Re-entrant: No
    • Async/Sync: Sync
  • Required privileges:
    • Custom abilities: nvsys/system_info
  • Allowed execution state
    • Initialization: Yes
    • Operational: Yes
    • Reinit/Deinit Preparation: Yes
  • Maturity: GA

◆ NvTegraSysGetProductionMode()

NvU32 NvTegraSysGetProductionMode ( void  )

Read the Tegra chip Production mode information from eFuse registers.

Returns
Chip production mode information for fuse burn protection
  • 1: protected
  • 0: not protected
TEGRA_PRODUCTION_MODE_UNKNOWN, Chip production mode is unknown as value is 0xFFFFFFFF
Precondition
NvTegraSysInit() shall be success


Usage considerations

  • Allowed context for the API call
    • Interrupt handler: No
    • Signal handler: No
    • Thread-safe: Yes
    • Re-entrant: No
    • Async/Sync: Sync
  • Required privileges:
    • Custom abilities: nvsys/system_info
  • Allowed execution state
    • Initialization: Yes
    • Operational: Yes
    • Reinit/Deinit Preparation: Yes
  • Maturity: GA

◆ NvTegraSysGetReservedProduction()

NvSocSysErrCode NvTegraSysGetReservedProduction ( NvU32 *  resproduction)

Read the Tegra chip Reserved Production information from eFuse registers.

Parameters
[out]resproductionReserved production information as NvU32 value.
Returns
NvSocSysSuccess, Reserved production information is available at device node
NvSocSysError, Reserved production information is unavailable or resproduction is NULL
Precondition
NvTegraSysInit() shall be success


Usage considerations

  • Allowed context for the API call
    • Interrupt handler: No
    • Signal handler: No
    • Thread-safe: Yes
    • Re-entrant: No
    • Async/Sync: Sync
  • Required privileges:
    • Custom abilities: nvsys/system_info
  • Allowed execution state
    • Initialization: Yes
    • Operational: Yes
    • Reinit/Deinit Preparation: Yes
  • Maturity: GA

◆ NvTegraSysGetSkuInfo()

NvSocSysErrCode NvTegraSysGetSkuInfo ( NvU32 *  sku)

Read the Tegra chip SKU information from eFuse registers.

Parameters
[out]skuSKU information as NvU32 value.
Returns
NvSocSysSuccess, SKU is available at device node
NvSocSysError, SKU is unavailable or sku is NULL
Precondition
NvTegraSysInit() shall be success


Usage considerations

  • Allowed context for the API call
    • Interrupt handler: No
    • Signal handler: No
    • Thread-safe: Yes
    • Re-entrant: No
    • Async/Sync: Sync
  • Required privileges:
    • Custom abilities: nvsys/system_info
  • Allowed execution state
    • Initialization: Yes
    • Operational: Yes
    • Reinit/Deinit Preparation: Yes
  • Maturity: GA

◆ NvTegraSysGetSOCVendor()

const char* NvTegraSysGetSOCVendor ( void  )

Get SOC Vendor Name.

Returns
"Tegra", Tegra SOC
None Tegra SOC name, None Tegra SOC
NULL, If the SOC Vendor Name is not supported in this platform
Precondition
NvTegraSysInit() shall be success


Usage considerations

  • Allowed context for the API call
    • Interrupt handler: No
    • Signal handler: No
    • Thread-safe: No
    • Re-entrant: No
    • Async/Sync: Sync
  • Required privileges:
    • Custom abilities: None
  • Allowed execution state
    • Initialization: Yes
    • Operational: Yes
    • Reinit/Deinit Preparation: Yes
  • Maturity: GA

◆ NvTegraSysGetVerboseLevel()

NvSocSysErrCode NvTegraSysGetVerboseLevel ( NvS32 *  VerbLevel)

Identifier for unknown Production mode.

◆ NvTegraSysInit()

NvSocSysErrCode NvTegraSysInit ( NvSysSocId  SocId)

Initialize NvSocSys library to be able to read chip information.

Parameters
[in]SocIdid for detection, default is NvSysSocAutoDetect.
Returns
NvSocSysSuccess, If the library was successfully initialized.
NvSocSysError, If the library was not successfully initialized due to an error condition
Precondition
None


Usage considerations

  • Allowed context for the API call
    • Interrupt handler: No
    • Signal handler: No
    • Thread-safe: Yes
    • Re-entrant: No
    • Async/Sync: Sync
  • Required privileges: None
  • Allowed execution state
    • Initialization: Yes
    • Operational: No
    • Reinit/Deinit Preparation: No
  • Maturity: GA

◆ NvTegraSysSetVerboseLevel()

NvSocSysErrCode NvTegraSysSetVerboseLevel ( NvS32  VerbLevel)