NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release
NvHv::Async Error Diagnostics API

Detailed Description

API to trigger diagnostics for asynchronous errors detected by Hypervisor.

Functions

int32_t NvHvAsyncErrDiagnostics (void)
 API to request Hypervisor to check asynchronous error status and report error to FSI directly (if any). More...
 

NvHv Async-Error-Diagnostics Access Control(QNX)

Common Privileges(QNX)

Description of custom abilities

nvhv/async_err_diagnostics

  • Custom ability to invoke Asynchronous Error Diagnostics

Common privileges required for all NvHv Async-Error-Diagnostics APIs

  • Service/Group Name: nvhv

Function Documentation

◆ NvHvAsyncErrDiagnostics()

int32_t NvHvAsyncErrDiagnostics ( void  )

API to request Hypervisor to check asynchronous error status and report error to FSI directly (if any).

The asynchronous errors include CBB errors, SMMU errors and MC errors.

Parameters
[in]void.
Returns
  • EOK: success
  • ENODEV Failed to open NvHv sysfs node(Linux)
  • EFAULT Devctl call to NvHv sysfs node returned failure(Linux)
  • ENODEV Failed to open NvHv device node(QNX)
  • EFAULT Devctl call to NvHv device node returned failure(QNX)
  • EACCES Userspace client doesn't have privilege to call Async Error Diagnostics HVC from current CPU
Precondition
  • QNX:
    • To be able to call this API, GID of nvhv should be in Supplementary Group IDs list of client process.
  • linux:
    • To be able to call this API, GID "async_err_diagnostics" should be in Supplementary Group IDs list of client process.
    • Tegra hv driver in linux kernel should have been initialized successfully in kernel to expose sysfs node
Postcondition
  • Async error diagnostic check is done by hypervisor, error(s) if any is forward to FSI.


Usage considerations

  • Allowed context for the API call
    • Interrupt handler: No(QNX), NA(Linux)
    • Signal handler: No(QNX), No(Linux)
    • Thread-safe: No
    • Re-entrant: Yes
    • Async/Sync: Sync
  • Require Privileges(QNX):
    • Custom abilities: nvhv/async_err_diagnostics(QNX)
  • Allowed execution state
    • Initialization: Yes(QNX), No(Linux)
    • Operational: Yes
    • Reinit/Deinit Preparation: Yes(QNX), No(Linux)
  • Maturity: GA