docs(bringup): a 0x56 identifies a command, not an architecture gap (#507)

The NOT_SUPPORTED bullet reads as though 0x56 always means the command
is unimplemented for the class on this chip. It also means the command
was addressed to an object whose class does not own it, which says
nothing about the hardware.

Adds how to tell the two apart from tables in this tree: check the
owning class in the method's control_table row against the target
object's class in resources.rs, and confirm the parameter buffer was
left untouched. One bullet, one paragraph; no part-specific numbers.

Signed-off-by: Mara <Mara@K80.dev>
Co-authored-by: Mara <Mara@K80.dev>
This commit is contained in:
K80.DEV
2026-12-04 00:35:11 -06:00
committed by GitHub
parent 9f70f56020
commit 8d539bf618

View File

@ -237,7 +237,9 @@ sudo rmmod nvidia_rs
- `4c470001`..`4c470004`: Legacy Maxwell/Pascal pre-GSP bring-up stage milestones (firmware pack, ACR, FECS golden context size, runtime active).
- `47520001`..`4752001a`: Volta GV100 GR/engine milestones (`4752001a 00000000` confirms clean teardown).
- `47530001`..`47530003`: GSP-RM boot milestones.
- `RM_CONTROL 0x2080xxxx status 0x56` (`NV_ERR_NOT_SUPPORTED`), `0x57` (`NV_ERR_OBJECT_NOT_FOUND`), or `0x1f` (`NV_ERR_INVALID_ARGUMENT`): Identifies the exact RM control command that `nvidia-smi` or `libcuda.so` expected for your architecture.
- `RM_CONTROL 0x2080xxxx status 0x56` (`NV_ERR_NOT_SUPPORTED`), `0x57` (`NV_ERR_OBJECT_NOT_FOUND`), or `0x1f` (`NV_ERR_INVALID_ARGUMENT`): Identifies the exact RM control command that `nvidia-smi` or `libcuda.so` expected for your architecture. `0x56` has two distinct causes: the command can be genuinely unimplemented for the addressed class on this chip generation, or the command can simply have been sent to an object whose class does not own it — see below before diagnosing an architecture gap.
To tell the two `0x56` cases apart, resolve who owns the command before blaming silicon. Dispatch looks up the command id against the addressed object's class and then its ancestor classes (the `resControlLookup` walk in `src/nvidia/src/rmapi/server.rs`; legacy v1 converter commands are synthesized separately) and returns `NOT_SUPPORTED` when neither owns it, before any handler executes — leaving the parameter buffer exactly as the caller passed it. Each exported method's owning class is the first field of its row in `src/nvidia/src/rmapi/control_table.rs`; the target object's client-facing class and the internal class those rows key on are both in `src/nvidia/src/resources.rs`. Compare through the internal class — including ancestors — and a mismatch localizes the `0x56` to addressing, not to missing hardware support.
---