Files
nvdriver/docs/pascal-validation-2026-12-03
2026-12-03 21:34:14 -08:00
..

Pascal hardware validation — 2026-12-03

This report covers one Tesla P100 PCIe 16 GB (GP100, 10de:15f8) and one P104-100 (GP104, 10de:1b87). We tested one card at a time with IOMMU enabled.

P100 runtime and DMA flush

On the isolated runtime branch, the stock driver released the IOMMU mapping while its address remained programmed in the P100 system-memory flush register. We gave the runtime its own coherent 4 KiB flush page. In the following runs, the programmed address matched the new allocation and the previous IOMMU read fault did not recur. CUDA initialization and device enumeration succeeded. The primary context still timed out after 30 seconds.

Eight GPFIFO schedule calls returned RM status zero. On the instrumented build 6f1c3a1, the PBDMA interrupt register read zero immediately after 25 of 28 acknowledgements. In the other three observations the same graphics channel advanced its GET pointer and PBENTRY was present on immediate readback. The upper PFIFO interrupt remained pending after 11 of the 12 relevant calls. This establishes that the acknowledgement path runs. It leaves the source of the repeated events and the context timeout unresolved.

Three controls on NVIDIA 580.178.04 created a context and verified a 4096-byte device round trip. None of the 562 BAR0 samples from those controls showed a pending PBDMA interrupt. Polling can miss events between samples.

The same flush-page source change was ported to upstream e15765d in a5b1bd2fdc. Module compilation and the static module gate passed. The first hardware attempt on that build stopped at cuInit=803, before it could exercise the flush-page path. Its module SHA-256 is 58dc788e7e20f6c35ec73ccf733e52c951507a08b4108193dcfbba61444922f8.

Follow-up on the current upstream base

Setting the module's reported driver version to 580.178.04 matched the CUDA userspace already installed on the host. On the same build a5b1bd2, CUDA initialization and enumeration then returned zero. The test stopped at the Pascal channel address-space query (0xd01, RM status 0x56), matching the failure stage described in issue #369. The flush register was updated to the coherent allocation. No DMAR read failure was logged during this probe.

With 9f44383e6b, the channel query returned RM status zero and framebuffer type 2 (sequence 125). The next request to map its 512-byte USERD range returned RM status 0x56 (sequence 126). The targeted regression test, module build and static module check passed. CUDA context creation still returned 801. The module SHA-256 was 62c5e1929fc7f18ee34f1e07c8d1e358b39b095a1e962b5ab0d5aaf975a9863f.

Owner-scoped framebuffer USERD mapping

With 07d85c4a29 on the P100, the 512-byte 0x4e request returned RM status zero and the GPU descriptor mapped successfully. The subsequent DMA-copy object allocation (class 0xc0b5, CE2) returned RM status 0x40. The stock driver accepted the same CE2 allocation parameters, so the remaining failure is beyond address-space classification and BAR1 USERD mapping. CUDA context creation returned 401 and we did not run inference.

This build passed 1175 Rust unit and 17 integration tests, with 150 skipped. The module build and static checker passed. The tested module SHA-256 was 5391edfa0f93071b187a7a72a71e8b271f3f53421fff1022f9be77698beb69ad. The test did not cover concurrent VMA revocation or the P104 USERD request.

P104-100 warm graphics initialization

The baseline is PR #358 revision 38e29d9, based on PR #332. The author verified CUDA operations on a GTX 1070 (10de:1b81). The observations below are from a different GP104 board, the P104-100.

With the warm diagnostic build be5641b the FECS BIND completed. We observed the same register snapshots on two attempts. GR was idle before BIND, before bundle enable and immediately after bundle enable. The first validated busy sample followed bundle record 0 (address 0x1000, data 2). All 17 samples through record 16 remained busy. The first GO_IDLE was record 17 (0x1e100). The snapshots identify the first observed busy state and leave the reason it persists open.

Checkpoint GR_STATUS GR_ACTIVITY FIFO_ENGINE_STATUS
Before BIND, before and after bundle enable 0x0 0x0 0x10071007
After first bundle record 0x1 0x00200001 0x90071007
Before GO_IDLE 0x1 0x00204001 0x90071007
GO_IDLE timeout 0x1 0x01200021 0x90071007

cuInit returned 100. The build passed 1123 Rust tests, with 167 skipped. Module compilation and the static gate passed. Its module SHA-256 is 7c4580233d876ebfb6da2bed27a9759fd0a59bec0f59f827148633e2ee34a1f1.

A separate inspect-only reset on P104-100 returned the same PCI identity and read zero from the VRAM-size register. The DEVINIT probe made zero PMU writes in that run.

P104 fault and trap check before bundle cleanup

The follow-up build 0d5f77b read the PFIFO MMU-fault and PGRAPH-trap masks on the two reproduced GO_IDLE timeouts before closing the bundle port. The two masks were readable and zero in both attempts. cuInit returned 100. The samples establish the absence of a pending report at those checkpoints.

The four fake-MMIO fixtures passed. This build also passed 1123 Rust tests with 167 skipped, module compilation, and the static checker. Its module SHA-256 was 09e9e03dadcf113a50a41d540133fa0bda1c239a106b4634c87f84d0e29c8f21. Apply the fault/trap patch after the warm graphics patch below to reproduce tree 3bc3932b90bc02b5631052d600accb7788d7102b.

Reproducing the diagnostic source trees

Apply each patch to the stated source in an isolated worktree with git apply --index and verify the resulting git write-tree hash. The tree hashes were reproduced from the published patch contents locally.

Patch Base commit Tested source commit Expected tree
P100 runtime ee935e18c4 6f1c3a1c6a511f7940158245aae4fc3fdc6bb7dd 8c351e04d1724fceb8bbb8c8f3ad0c91248593d8
P104 warm graphics 38e29d9fef be5641b059b4c4335fc5964be8e6a95c105b6c62 dd06854df89122910bbb386c083bd78353ca584d
P104 deferred PFIFO cc4173bdd5ac4160bbc3018e932d491e469a2c4b 9a972c69dfcb53a4b7f09d34847a1f0d40e9ad19 cfbd6e8d45ddfa11e94fe2200300006655ba8244

If the deferred-PFIFO base commit is unavailable, reconstruct its tree ddfced80bc7e4746bcd3294204f346c893f4ae3d from the exact PR #358 commit 38e29d9fef9b89203b972c561431a4137b97424e with these patches in order:

  1. Warm graphics
  2. Fault and trap
  3. FECS and GPCCS
  4. Pre-GO_IDLE
  5. First bundle
  6. GR privileged pages

The P100 tree includes prior BAR1 and copy-engine work from the community, including PR #246 and PR #286. It also includes the USERD, channel and runlist changes used for this test. The P104 patch is relative to the contributor's exact PR #358 tree.

Both PCI functions were returned to NVIDIA 580.178.04 after the hardware runs. CUDA context creation and model inference on nvdriver remain open.

PR #382 review follow-up

The live driver source changes separate USERD remap from runtime revocation, retain BAR1/DMA owners when teardown cannot be verified, preserve the GP102 fallback, and reject oversized Pascal groups before allocating a channel. The P100 flush-page owner releases its allocation only after confirming bus mastering is disabled, pending PCIe transactions have drained, and the device reports the flush register cleared. Conflicting owner state remains blocked for recovery.

See the P100 USERD follow-ups and P104 follow-up for corrective patches to the historical diagnostic trees.

The merged core test suite ran 1284 passing tests with 150 ignored. The USERD C fixture and four stock capture tests passed. The final driver sources at 97adbb6c8f3a8d34d66c96aa6fdb75007efd8cf8 built for Linux 7.0.0-44-generic and passed the kernel module static gate. The host configuration did not enforce IBT in that gate. Module SHA-256: 354528f9ebd05465c2b55011489821ad8cb4347dafbe8c01293aa62ff2548290. The final review changes have no hardware test results.

The Greptile follow-up waits for both BAR flush bits to clear and adds a 30-second watchdog to the RM prepare-only probe. The probe built with -Wall -Wextra -Werror and passed its self-test. A fixture ran the same watchdog with a one-second limit and verified exit status 124 without opening GPU devices. The integrated driver at 09d2ec6f built for Linux 7.0.0-44-generic and passed the static gate. The unchanged Rust test sources passed 1286 tests, with 150 ignored. The USERD C fixture also passed after the final merge.