Files
nvdriver/reports/nvidia-580-artificial-restrictions-rea.md

25 KiB
Raw Permalink Blame History

Reverse-Engineering Audit: Software & Product-Tier Restrictions in NVIDIA 580.178.04 (nv-kernel.o_binary)

Target Artifact: /usr/src/nvidia-srv-580.178.04/nvidia/nv-kernel.o_binary (ELF64 x86_64)
SHA-256: 5269a23ffba19a17fe16f076463e7ad4151254659441d1711bee6c6221ff6f4b
Analysis Method: Read-only static REA (Ghidra 12.2 decompilation, disassembly, byte-pattern search, and .rodata table inspection against rm_all_580.gpr).
Evidence Notation: [A] static disassembly / .rodata inspection, [D] Ghidra decompilation.


Executive Summary

A systematic reverse-engineering audit of the closed-source NVIDIA 580.178.04 Linux kernel RM binary (nv-kernel.o_binary) reveals a cohesive architecture of software-enforced product-tier, architecture-generation, and virtualization restrictions that gate capabilities independently of underlying silicon support:

  1. Centralized OBJGPU Brand Classification (0x5419..0x5420): Every GPU is tagged at initialization (_nv030821rm, _nv030820rm, _nv030822rm) with 8 boolean brand flags (bIsGeforceSmb, bIsGeForce, bIsQuadro, bIsQuadroGeneric, bIsVgx, bIsNvs, bIsTitan, bIsTesla) derived from fuses, VBIOS straps, or GSP/vGPU metadata.
  2. Hardcoded PCIe P2P & BAR1 P2P Blocking (_nv058012rm, 0x05d59820): A 50-entry (0x32) chipset/brand table in .rodata places GeForce on Ampere+ (flagMask = 0x10), Titan on Ampere+ (0x08), and Blackwell+ fuse-gated GPUs (0x40) at Entries 0–2 with caps = 0x00 (read+write disabled) — ahead of Entry 3 (bBehindBridge, PLX/Broadcom PCIe switch allowlist). Even two RTX 3090/4090/5090 GPUs behind an allowlisted PCIe switch are blocked. Non-allowlisted chipsets default to denied (Entry 49), while Quadro (0x20, Entry 48) is unconditionally allowed on any chipset.
  3. GPUDirect RDMA (0x503c, _nv059452rm & rm_p2p_get_pages): Enforces Confidential Computing/APM (_nv030868rm -> 0x56), power/state checks (_nv030927rm -> 0x11), flags == 0 rejection (0x56), and OS-layer P2P capability bits (*(pOsGpuInfo + 0x2f7/0x2f8) -> 0x56).
  4. GSP-RM & Open-Kernel-Modules Arch Cutoffs (_nv031458rm, rm_is_supported_device): Hardcoded arch > 0x15 (normal, excluding Maxwell/Pascal/Volta) and arch > 0x17 (vGPU host, excluding Turing/Ampere as well, plus a GB20B arch == 0x1b && impl == 0xb carve-out), alongside a proprietary-driver block (_nv031467rm) rejecting arch > 0x17 on vGPU hosts with NV_ERR_NOT_SUPPORTED (0x56).
  5. vGPU / SR-IOV / GRID Licensing & Cloud CSP PCI ID Allowlists: Includes a guest PCI Device+Subsystem ID allowlist (_nv054160rm, 0x05f26960..0x05f28b1c), a per-CSP (cloud provider) PCI Device ID allowlist (_nv031028rm via os_get_grid_csp_support()), CPUID hypervisor detection (_nv036615rm), and a time-based unlicensed GRID throttling state machine (_nv033873rm: 20 min unrestricted -> 24 hr restricted).
  6. NVENC Brand/License Exposure & Throttling: 0x00800294 (_nv022200rm) exposes QUADRO | NVS | TITAN brand bits (stripping QUADRO|NVS when unlicensed on GRID) for userspace NVENC session capping, while 0x2080016c (_nv057794rm) throttles vGPU encoder capacity and gates AV1 on pGpu + 0x5441.
  7. GR / PCIe / Perf / Framelock / Compute Brand Gates: Multiple internal paths mask GR workstation features (_nv033663rm, _nv033662rm, _nv031590rm), skip PCIe DevCtl2 tuning (_nv039267rm), disable a perf mode (_nv050389rm), strip Quadro Sync (_nv031431rm, _nv022998rm), and gate compute-mode/MIG controls with 0x56.

1. Brand / SKU Detection (OBJGPU + 0x5419..0x5420)

1.1 OBJGPU Brand Flag Layout [D][A]

Three initialization paths populate the exact same 8-byte brand block on OBJGPU:

  • Bare metal: _nv030821rm (0x6770d50)
  • GSP-RM client: _nv030820rm (0x6757e80) — copies from GSP static info _nv030595rm() + 0x66c..0x673
  • vGPU guest: _nv030822rm (0x67561f0) — decodes vGPU brand enum at vgpuStaticInfo + 0x3b084 (1 = NVS, 2 = Quadro, 4 = Tesla)
OBJGPU Offset Logical Flag Bare-Metal Source (_nv030821rm) Getters / Consumers
+0x5419 bIsGeforceSmb _nv031103rm: (*(u32*)(pVbios + 0x53c) >> 4) & 1 _nv033663rm
+0x541a bIsGeForce (pGpu[0x5420] == 0 && pGpu[0x541b] == 0 && pGpu[0x541e] == 0) _nv058012rm, _nv039267rm, _nv050389rm, _nv017669rm
+0x541b bIsQuadro Fuse 0xff00001d / *(pGpu + 0x5a0) / *(pGpu + 0x5a8) _nv022200rm (bit 0), _nv030277rm, _nv058012rm, _nv033663rm, _nv031590rm, _nv031431rm, _nv022998rm, _nv017456rm, _nv050294rm, _nv058043rm
+0x541c bIsQuadroGeneric Fuse 0xff00001d != 0 (subset of Quadro) _nv030277rm (returns 2)
+0x541d bIsVgx Fuse 0xff000021 != 0 (bare metal); unconditionally 1 in _nv030822rm (vGPU guest) _nv049874rm, _nv057749rm, 0x0080028e (_nv022211rm)
+0x541e bIsNvs Fuse 0xff00001e != 0 _nv022200rm (bit 1), _nv030277rm (returns 3), _nv049874rm, _nv054147rm
+0x541f bIsTitan Virtual HAL (**(code **)(pGpu + 0x5b0))(pGpu) _nv022200rm (bit 2), _nv058012rm, _nv049874rm, _nv057749rm, _nv033662rm
+0x5420 bIsTesla _nv031126rm: (*(u8*)(pVbios + 0x534) & 2) != 0 (and !bIsQuadro pre-Turing) _nv030278rm, _nv039066rm, _nv029324rm (idx 0x11), _nv058012rm, _nv049874rm, _nv033662rm, _nv050294rm, _nv017290rm

Additionally, _nv029324rm (0x20800102 NV2080_CTRL_CMD_GPU_GET_INFO_V2, index 0x38) scans a 347-entry 16-bit PCI Device ID table at 0x5d7b960..0x5d7bc18 (0x01f8, 0x1e02, 0x1e03, 0x1e04, 0x1e07 [RTX 2080 Ti], 0x1e42..0x1e82 [RTX 2080], ...) against *(uint16_t *)(pGpu + 0xcee) (PCIDeviceID >> 16) to flag consumer GeForce RTX SKUs directly by PCI ID.

1.2 Brand Exposure Control (0x00800294 NV0080_CTRL_CMD_GPU_GET_BRAND_CAPS) [D]

_nv022199rm dispatches to _nv022200rm (0x6770fd0):

// _nv022200rm (0x6770fd0)
uint32_t caps = (*(char *)(pGpu + 0x541b) != 0) ? 1 : 0; // bit 0: QUADRO
if (*(char *)(pGpu + 0x541e) != 0) caps |= 2;            // bit 1: NVS
if (*(char *)(pGpu + 0x541f) != 0) caps |= 4;            // bit 2: TITAN
// Strip QUADRO and NVS capabilities if GRID license is unlicensed/restricted:
if (_nv030607rm(pGpu, 0) != 0 || _nv030593rm(pGpu, 0) == 3) {
    caps &= ~3U;
}
*param_2 = caps;

2. PCIe P2P & BAR1 P2P Blocking

2.1 Call Graph [D]

NV0000_CTRL_CMD_SYSTEM_GET_P2P_CAPS_V2 (0x00000127 / 0x0000012b)
  ├─ _nv019706rm / _nv019707rm  (validates gpuCount <= 32, dispatches GSP/vGPU or bare-metal)
  └─ _nv000117rm                (P2P caps aggregator; sets cap bits + status[0..8] + BAR1 bit 0x800)
       └─ _nv049874rm           (gpumgrGetP2PCaps core)
            ├─ _nv014011rm      (ForceP2P / p2pOverride check at pBif + 0x348, parsed in _nv039104rm)
            ├─ _nv019448rm      (PCIe switch allowlist: NVIDIA BR04, PLX 87xx/97xx, PMC 85xx/40xx, MLX 0x1976)
            ├─ _nv036620rm      (Hypervisor passthrough P2P check -> 0x20800ab8 + hypervisor table 0x05fd9418)
            └─ 0x20800ab8       (_nv058012rm: 50-entry chipset + brand allowlist table at 0x05d59820)

2.2 The 50-Entry (0x32) Chipset + Brand P2P Table (_nv058012rm, 0x05d59820) [D][A]

_nv058012rm (0x61e65a0, handler for internal RM control 0x20800ab8) first enforces a PCI passthrough (pGpu + 0x4de6 != 0) brand gate:

// _nv058012rm (0x61e65a0) — VFIO / PCI passthrough gate
if (*(char *)(pGpu + 0x4de6) != 0) {
    if (*(char *)(pGpu + 0x541b) == 0 || *(char *)(pGpu + 0x5420) != 0) {
        param_2[1] = 2; // P2P_STATUS_GPU_NOT_SUPPORTED (write)
        param_2[2] = 2; // P2P_STATUS_GPU_NOT_SUPPORTED (read)
        return 0;
    }
    param_2[1] = 0; // OK (Quadro passthrough)
    param_2[2] = 0;
    return 0;
}

On bare metal, _nv058012rm builds an 8-bit flags mask (bVar11):

  • Bit 2 (0x04): bBehindBridge (both GPUs share an allowlisted PCIe switch from _nv019448rm)
  • Bit 3 (0x08): _nv054348rm(pGpu) (Ampere+, arch enum >= 0x25 via _nv030932rm) && pGpu[0x541f] (Titan)
  • Bit 4 (0x10): _nv054348rm(pGpu) (Ampere+) && pGpu[0x541a] (GeForce — RTX 3090 / 4090 / 5090)
  • Bit 5 (0x20): pGpu[0x541b] (Quadro)
  • Bit 6 (0x40): _nv054297rm(pGpu) (Blackwell+, arch enum >= 0x2a) && fuse_check(*(pGpu + 0x1e78) + 0x180)

It then iterates in order through 50 16-byte entries at 0x05d59820..0x05d59b3f (read_bytes verified [A]), returning the first match's capability byte (caps at +0xd, where writeDisabled = (~caps & 1), readDisabled = ((caps >> 1) ^ 1) & 1):

Entry Address Raw 16-Byte Record (0x05d59820 + idx*0x10) flagMask caps Effect
0 0x05d59820 ffffffff ffffffff ffffffff 10 00 0000 0x10 0x00 Blocks PCIe P2P Read & Write on ALL Ampere+ GeForce GPUs (3090/4090/5090), regardless of chipset or PCIe switch.
1 0x05d59830 ffffffff ffffffff ffffffff 08 00 0000 0x08 0x00 Blocks PCIe P2P Read & Write on Ampere+ Titan GPUs.
2 0x05d59840 ffffffff ffffffff ffffffff 40 00 0000 0x40 0x00 Blocks PCIe P2P Read & Write on Blackwell+ fuse-restricted GPUs.
3 0x05d59850 ffffffff ffffffff ffffffff 04 03 0000 0x04 0x03 Allows P2P behind an allowlisted PCIe switch (never reached if Entry 0/1/2 matched!).
4–47 0x05d59860..0x05d59b10 Specific chipset IDs (0x1005..0x106c, etc.) 0xff / 0x02 0x00..0x03 Chipset-specific allowlist / denylist.
48 0x05d59b20 ffffffff ffffffff ffffffff 20 03 0000 0x20 0x03 Unconditionally ALLOWS PCIe P2P Read & Write for Quadro on ANY chipset.
49 0x05d59b30 ffffffff ffffffff ffffffff ff 00 0000 0xff 0x00 Default DENY for all non-allowlisted chipsets.

2.3 PCIe Switch Allowlist (_nv019448rm) & BAR1 P2P Disablement (_nv049874rm, _nv057749rm) [D]

  • _nv019448rm (0x61f3300): Even for non-GeForce GPUs, shared-switch P2P (bBehindBridge) is restricted to 4 vendor/device families: NVIDIA BR04 (0x10de: dev>>4 == 0x5b or 0x01b3), PLX/Broadcom (0x10b5: (dev & 0xef00) == 0x8700), PMC-Sierra (0x11f8: 0x85xx or 0x40xx), and Mellanox (0x15b3: 0x1976).
  • BAR1 P2P Disablement Flag (_nv049874rm + _nv057749rm, 0x20808162): On Turing (_nv054349rm), bIsTitan (0x541f) sets the BAR1-P2P-disabled flag (0x800 in _nv000117rm). On Ampere+ (_nv054348rm / _nv054347rm), bIsTitan || (!bIsVgx && !bIsTesla && !bIsNvs && !bIsQuadro) — i.e., all consumer GeForce & Titan GPUs — sets the BAR1 P2P disabled bit (0x800).
  • Same-GPU-Arch & Intel Root Port Checks (_nv049874rm): Rejects heterogeneous GPU P2P if pGpu1[0xd00] != pGpu2[0xd00] (arch) or pGpu1[0xd04] != pGpu2[0xd04] (impl) or pGpu1[0x94c] != pGpu2[0x94c], and returns status 3 (NOT_SUPPORTED across sockets) for specific Intel (0x8086, -0x7f7a) root-port device IDs on different domains/buses.
  • ForceP2P Registry Override (_nv039104rm, _nv014011rm): _nv039104rm parses "ForceP2P" into *(uint32_t *)(pBif + 0x348) (default 0xffffffff); _nv014011rm decodes bits [1:0] (write), [5:4] (read), [9:8] (atomics).

3. GPUDirect RDMA (0x503c NV50_THIRD_PARTY_P2P) Gating [D]

3.1 NV50_THIRD_PARTY_P2P Constructor (_nv059452rm)

_nv059452rm (0x62b9e80) enforces four layered checks before allocating a 0x503c object:

  1. Confidential Computing / APM Block: Calls _nv030868rm(pGpu) (*(uint8_t *)(*(void **)(pGpu + 0x23c0) + 0x232)). If non-zero, returns 0x56 (NV_ERR_NOT_SUPPORTED).
  2. Power / Capability Gate: Calls _nv030927rm(pGpu) ((*(uint32_t *)(pGpu + 0x908) & 0xffff00) == 0, full-power state) and checks *(char *)(pGpu + 0x90c) == 0 and _nv030214rm(pGpu). If blocked, returns 0x11 (NV_ERR_GPU_NOT_FULL_POWER). (Note: in 580.178.04, _nv030214rm is compiled to return 1.)
  3. Allocation flags & 3 Gate (NV503C_ALLOC_PARAMETERS.flags):
    • flags == 0: unconditionally returns 0x56 (NV_ERR_NOT_SUPPORTED).
    • flags == 1 (BAR1): returns 0x1f (NV_ERR_INVALID_ARGUMENT) if *(char *)(pGpu + 0x91c) != 0.
    • flags == 2 (NVLink/C2C): returns 0x40 (NV_ERR_INVALID_STATE) if *(char *)(pGpu + 0x91c) == 0.
    • flags == 3: returns 0x1f.
  4. vGPU SR-IOV Heavy Mode Gate: On vGPU guests (pGpu + 0xe00 != 0) with SR-IOV heavy mode (pGpu + 0x52f9 != 0), checks *(uint8_t *)(_nv030741rm(pGpu) + 0xa686) & 4 before forwarding 0x503c creation over vGPU RPC.

3.2 rm_p2p_get_pages (0x6ed8920) -> _nv000809rm -> _nv015917rm

Even if 0x503c is allocated, rm_p2p_get_pages checks OS-layer GPU P2P capability flags on nv_state_t (lVar2 = *(long *)(pGpu + 0x9d8)):

// rm_p2p_get_pages
if ((*(char *)(pOsGpuInfo + 0x2f7) == '\0') || (*(char *)(pOsGpuInfo + 0x2f8) != '\0')) {
    // Allowed — copy GPU UUID and return pages
} else {
    iVar4 = 0x56; // NV_ERR_NOT_SUPPORTED — tears down mapping via _nv000810rm
}

And _nv015917rm re-validates _nv030927rm(pGpu) / pGpu + 0x90c / _nv030214rm(pGpu) (returning 0x11 on failure) and rejects uninitialized P2P objects (*(int *)(pP2p + 0x178) == 0 && (*(byte *)(pP2p + 0x18c) & 1) == 0) with 0x40.


4. GSP-RM & Open-Kernel-Modules Architecture Cutoffs [A][D]

4.1 _nv031458rm (0x61a8330, called by _nv031433rm 0x61a83f0)

Disassembly of _nv031458rm (0x61a8330..0x61a83e2) confirms the exact hardcoded architecture cutoffs applied to NV_PMC_BOOT_42 (EDI):

0x61a8340: MOV R13D, EDI       ; R13D = pmc_boot_42
0x61a8343: SHR R13D, 0x18
0x61a834d: AND R13D, 0x3f      ; arch = (pmc_boot_42 >> 24) & 0x3f
...
0x61a8390: CALL 0x06ee5c70     ; _nv036619rm -> os_is_vgx_hyper()
0x61a8395: TEST AL, AL
0x61a8397: JNZ 0x061a839f
0x61a8399: CMP R13D, 0x15      ; Normal bare-metal cutoff: arch <= 0x15 rejected!
0x61a839d: JBE 0x061a83e0      ; Excludes Maxwell (0x11/0x12), Pascal (0x13), Volta (0x14), 0x15
0x61a839f: CALL 0x06ee5c70     ; os_is_vgx_hyper()
0x61a83a4: TEST AL, AL
0x61a83a6: JZ 0x061a83ae
0x61a83a8: CMP R13D, 0x17      ; vGPU host cutoff: arch <= 0x17 rejected!
0x61a83ac: JBE 0x061a83e0      ; Also excludes Turing (0x16) and Ampere (0x17) on vGPU hosts
...
0x61a835f: CMP R13D, 0x1b      ; Blackwell (0x1b) check
0x61a8363: JNZ 0x061a837a
0x61a8365: SHR R12D, 0x14
0x61a836e: AND R12D, 0xf       ; impl = (pmc_boot_42 >> 20) & 0xf
0x61a8372: CMP R12D, 0xb       ; GB20B exception (arch == 0x1b && impl == 0xb)
0x61a8376: CMOVZ R15D, EDX     ; Forces *outGspSupported = false (0)
Environment Cutoff Condition Excluded Architectures
Bare metal (!os_is_vgx_hyper()) arch <= 0x15 Maxwell (0x11, 0x12), Pascal (0x13), Volta (0x14), 0x15
vGPU host (os_is_vgx_hyper()) arch <= 0x17 Maxwell, Pascal, Volta, Turing (0x16), Ampere (0x17)
GB20B carve-out arch == 0x1b && impl == 0xb Forces GSP flag false

4.2 Proprietary nvidia.ko vGPU Host Rejection (rm_is_supported_device, 0x6ed6c80) [D]

In rm_is_supported_device:

  1. Scans a 15-entry legacy architecture table at &DAT_05f25c00 (pointing to 470.xx etc. legacy branches) and returns 0x56 (NV_ERR_NOT_SUPPORTED).
  2. If os_is_vgx_hyper() (_nv036619rm()) and _nv031467rm(pmc_boot_42) ((pmc_boot_42 >> 24 & 0x3f) > 0x17) are both true, prints "installed in this vGPU host system is not supported by proprietary nvidia.ko" (0x5ef7ea8) and returns 0x56 (NV_ERR_NOT_SUPPORTED) — forcing Ada/Hopper/Blackwell vGPU hosts onto open kernel modules + GSP firmware.

5. vGPU / SR-IOV / GRID Licensing & Hypervisor/VM Detection Gates [D]

  1. Hypervisor CPUID Detection (_nv036615rm): Scans CPUID leaves 0x40000000..0x40000f00 (stride 0x100) via _nv049756rm, matching 12-byte hypervisor signatures against a 4-entry table at 0x05fd9408 (including "KVMKVMKVM" at 0x111e55f), setting OBJHYPERVISOR + 0x49 (detected), +0x4a (guest), and +0x4c (hypervisor index used to dispatch P2P policy callbacks at 0x05fd9418 + idx * 0x20).
  2. vGPU Guest PCI Device + Subsystem ID Allowlist (_nv054160rm, called from rm_is_supported_device): When OBJHYPERVISOR + 0x4a != 0 and BAR0 vGPU register (0x8f020 / 0xf020) has (val & 0x3000) == 0, checks os_is_grid_supported() (returns 0x56 if 0) and scans a PCI Device ID + Subsystem Device ID allowlist at 0x05f26960..0x05f28b1c (starting with 0x13bd Tesla M10), returning 0x56 (NV_ERR_NOT_SUPPORTED) for any GPU not in the table.
  3. Per-CSP (Cloud Service Provider) PCI Device ID Allowlist (_nv031028rm, 0x6749ef0): Calls _nv049658rm() -> os_get_grid_csp_support(). When non-zero (1..7), enforces a hardcoded switch over *(uint16_t *)(pGpu + 0xcee) (PCI Device ID), returning 0x56 (NV_ERR_NOT_SUPPORTED) unless the GPU matches that CSP's exact datacenter SKU list (e.g., CSP 1: 0x1eb4/0x1eb8 T4, 0x2237 A10G, 0x26b9 L40, 0x27b8 L4, 0x2bb5 L40S; CSP 3: 0x1eb8, 0x2236, 0x2bb5; CSP 7: 0x1eb8 only).
  4. GRID Unlicensed Throttling State Machine (_nv033864rm, _nv033873rm):
    • _nv033864rm (0x6c2b9a0) enables GRID license enforcement by default on vGPU hosts/GSP-offloaded vGPU guests ("GridLicenseEnforcement" regkey).
    • _nv033873rm (0x6c2c510) enforces hardcoded unlicensed degradation timeouts: UnlicensedUnrestrictedStateTimeout = 0x14 (20 minutes) (clamped to 1..20) and UnlicensedRestricted1StateTimeout = 0x5a0 (1440 minutes = 24 hours) (clamped to 1..1440), after which unlicensed vGPUs are throttled.
  5. SR-IOV & vGPU Type Gates (_nv030844rm, _nv037443rm): _nv030844rm gates RMSetSriovMode on pGpu + 0x543f, os_is_vgx_hyper(), and _nv054347rm(pGpu). _nv037443rm (0x6c249d0) rejects unsupported vGPU profiles with 0x56 ("vGPU type is not supported").

6. NVENC / Video Engine Session Limits & Brand Gating [D]

In NVIDIA's Linux stack, concurrent NVENC session limits on consumer GeForce GPUs are enforced in userspace (libnvidia-encode.so), which queries kernel RM controls in nv-kernel.o_binary to obtain the GPU's brand, SKU, and license state:

RM Control Handler Mechanism / Restriction
0x00800294 (NV0080_CTRL_CMD_GPU_GET_BRAND_CAPS) _nv022199rm -> _nv022200rm Returns QUADRO (bit 0) | NVS (bit 1) | TITAN (bit 2) from pGpu + 0x541b/541e/541f; clears QUADRO|NVS bits if GRID license is unlicensed/restricted (_nv030607rm or _nv030593rm == 3). Consumer GeForce returns 0.
0x20800102 (NV2080_CTRL_CMD_GPU_GET_INFO_V2) _nv057817rm -> _nv029324rm Index 0x11 exposes Tesla/GRID-vWS status (pGpu + 0x5420 + GRID license feature 2/3/4); Index 0x31 exposes NVENC_STATS_REPORTING_STATE (*(int *)(pGpu + 0x53b8)); Index 0x38 matches pGpu + 0xcee against the 347-entry GeForce RTX PCI ID table (0x5d7b960..0x5d7bc18).
0x20800110 (NV2080_CTRL_CMD_GPU_GET_NAME_STRING) _nv057825rm Dispatches to *(pGpu + 0x108) to return marketing name string (GeForce vs Quadro/Tesla).
0x2080016c (NV2080_CTRL_CMD_GPU_GET_ENCODER_CAPACITY) _nv057794rm Returns 100 (100%) on bare metal; rejects AV1 (type == 2) with 0x56 if pGpu + 0x5441 == 0; on vGPU guests (pGpu + 0xe00 != 0), dispatches to *(pVgpu + 0x470) to enforce per-vGPU encoder capacity throttling.
0x2080016d (GET_ENCODER_STATS) & 0x2080016e (GET_ENCODER_SESSIONS) _nv057828rm, _nv057827rm _nv057827rm suppresses session enumeration (returns count = 0) whenever *(int *)(pGpu + 0x53b8) != 1 on bare metal.
0x20800177 _nv057888rm Dispatches to *(pGpu + 0x1f90) + 0x410 (video/perf engine capability query).

7. NVML / Compute / GR / PCIe / Clock / Power / ECC / MIG Brand Gates [D]

Subsystem / Control Symbol(s) Brand / Software Flag Check Behavior / Status
GR Workstation / OpenGL Caps _nv033663rm (0x678a190), _nv033662rm (0x679f890) pGpu[0x541b] (bIsQuadro), pGpu[0x541f] (bIsTitan), pGpu[0x5420] (bIsTesla) Non-Quadro sets pGr + 0x1604 = 1 (vs 8 on Quadro); non-Quadro & non-Titan GeForce masks GR cap words `0x5f0
GR Hardware Feature Bits _nv031590rm (0x67ba5a0) pGpu[0x541b] != 0 (bIsQuadro) Only Quadro sets GR hardware register bits 0x200000 (reg +0x800) and 0x800000 (reg +0x10).
PCIe DevCtl2 / Config Tuning _nv039267rm (0x629a5d0) pGpu[0x541a] == 0 (!bIsGeForce) Skips programming PCIe config 0x88 bits [3:0] = 9 on GeForce GPUs.
PCIe Link Cap Bit _nv017456rm (0x626be10) pGpu[0x541b] == 0 (!bIsQuadro) Sets restriction/flag bit 0x1000000 when !bIsQuadro and chipset flag pCl[0x57] != 0.
Perf / P-State Mode 0x90 _nv050389rm (0x69fdb60) pGpu[0x541a] != 0 (bIsGeForce) Disables perf mode 0x90 when bIsGeForce is set (clears mode via _nv050337rm).
Clock / Perf Domain Masking _nv050294rm (0x69c9270) pGpu[0x541b] || pGpu[0x5420] (bIsQuadro || bIsTesla) Restricts extra clock/perf domain setup (0x40, 0x8) to Quadro/Tesla.
BAR0 0x88150 Bit 7 (NVLink/BIF) _nv017290rm (0x627a950) pGpu[0x5420] != 0 (bIsTesla) Early-returns without modifying BAR0 0x88150 bit 7 on Tesla.
Quadro Sync / Framelock _nv031431rm (0x61b01c0), _nv022998rm (0x64cbda0) pGpu[0x541b] (bIsQuadro) _nv031431rm forces output to 0 on non-Quadro; _nv022998rm requires BOTH GPUs to have bIsQuadro != 0 to set framelock bit pGpu[0x6a68] |= 1.
Compute Mode Rules (0x20800130) _nv057895rm MIG active (_nv041837rm) or *(int *)(pStaticInfo + 0xa658) == 0 Returns 0x56 (NV_ERR_NOT_SUPPORTED).
MIG / SMC (0x20800181, 0x20800183) _nv057833rm, _nv057906rm pGpu[0x92d] == 0 (SMC/MIG disabled) Returns 0x56 (NV_ERR_NOT_SUPPORTED).
GPU Feature Control (0x20800194) _nv057896rm pGpu[0x5421] == 0 Returns 0x56 (NV_ERR_NOT_SUPPORTED).
ECC Config (0x20800133/134/136) _nv057867rm, _nv057899rm, _nv057890rm Dispatches to subdevice HAL vtable +0x2e8/+0x2f0/+0x2f8 Gated on per-SKU/InfoROM ECC enablement.

8. Comparison with nvidia-driver-rs

Restriction in NVIDIA 580.178.04 Enforced in nvidia-driver-rs? nvidia-driver-rs Implementation Reference
Brand / SKU Feature Stripping (0x5419..0x5420, 0x00800294) Unrestricted No bIsGeForce/bIsQuadro/bIsTesla feature gating; gpu_info_v2 (gpu.rs) returns 1 for indices 0x11, 0x31, 0x37 without GRID license stripping.
PCIe P2P & BAR1 P2P Block (_nv058012rm, 0x05d59820) Unrestricted p2p_get_caps_v2 (client.rs) returns caps = 0x47 (READ|WRITE|PCI|BAR1) for multi-GPU pairs and 0x67 for single-GPU loopback with no GeForce/chipset/PCIe-switch denylist.
GPUDirect RDMA (0x503c, _nv059452rm) Unrestricted third_party_p2p (gpu.rs) validates only vaspace::p2p_type(params) and allocates Kind::ThirdPartyP2p with no brand, CC/APM, or OS-flag block.
GSP-RM / Open-Kernel-Modules Arch Cutoffs (_nv031458rm) Unrestricted Clean-room native RM supports Volta (GV100, arch = 0x14) directly without GSP-RM or arch > 0x15 / arch > 0x17 exclusion.
vGPU / SR-IOV / GRID / CSP Allowlists & Timers Unrestricted No CPUID hypervisor block, no CSP PCI ID allowlist, no 0x05f26960 guest PCI allowlist, and no 20-min/24-hr GRID license throttling; 0x00800289 reports grid_supported cleanly (gpu.rs).
NVENC Brand / Capacity / Session Gating Unrestricted No consumer session cap or vGPU capacity throttling; 0x2080016d reports encoder stats directly (gpu.rs).
GR / PCIe / Perf / Framelock Brand Downgrades Unrestricted No brand-based GR cap masking, PCIe config skipping, or perf-mode disabling.
Compute Mode (0x20800130) / ECC (0x20800133) / MIG (0x20800183) Hardware-faithful only 0x20800130 accepts modes 0..4 without static-info brand rejection (gpu.rs); 0x20800133 reflects actual ecc_enabled (nvml_ctrl.rs); 0x20800183 returns NOT_SUPPORTED on GV100 solely because Volta lacks MIG hardware (gpu.rs).