In-place check: an unchecked verdict is no measurement, kept unmeasured and checked again

On the Iris Xe (ANV) reims' arm-s boots made 890 shadows over guest RAM imported as dma-bufs,
every one "the device's check made no image over host pages imported as dma-bufs" (Unchecked),
small ShaderRead textures at offset 0 on whole pages among them, where a fresh check of the
same driver passes the class's reads (aafecf768a, job 7667). The record kept every verdict the
check gave, Unchecked among them, and every later device of that driver and check version
recalled it and checked nothing: a refusal of the class's pages (or of its rounds' images) in
one process, a transient one or one of that device's setup, answered for every boot after.
And the check kept no reason for it: the class's pages and rounds that made no image returned
unchecked with no note.

- in_place::encode writes an unchecked verdict as unmeasured (a pending verdict's byte);
  decode reads that back pending and refuses an unchecked byte (never written).
  recall_in_place_checks recalls the measured verdicts (passed or failed, counted as recalled)
  and settles only where none is pending: the first texture that asks a pending one starts the
  check, which runs only the classes and accesses still pending, and its record replaces the
  old one.
- CHECK_VERSION 12: a record of 11 may hold unchecked verdicts as answers, which no device now
  takes; reims' stale records are dropped by it.
- Reasons, noted in the check's report after the verdicts: ClassPages::make answers why it made
  no pages (each step of ExportedPages::make for the dma-buf class: no host import, no dma-buf
  images, an export only as a dedicated allocation, no host-visible coherent type, the
  allocation, map or export failing; a no-copy buffer refused, copied, or imported otherwise),
  and a round that made no image says why (its making's error, the placement's answer for a
  texture not in place, its first move or pass failing), the first per class and access.
- Tests: a_class_whose_pages_the_check_could_not_make_is_checked_again_by_the_next_device
  (device test: the pointer class's first import fails, so its reads are Unchecked and noted; the
  next device of the cache recalls every measured verdict, finds those reads pending, checks
  them again; the device after recalls them). Before this change the second device recalled the
  reads as Unchecked. The record round trip reads unchecked back pending; the in-place textures
  lane's record test recalls the measured verdicts and checks the rest again.
- Docs: in_place.rs, in_place_check.rs, WorkCounts::in_place_checks_recalled,
  settle_in_place_checks, docs/API.md, docs/FAST-PATHS.md (the in-place row).

Verified: cargo fmt; builds and tests run as potluck jobs after this commit.
(cherry picked from commit 29f3114ca990382776e795f35ea9b81f8345399a)
This commit is contained in:
Anees Iqbal committed 2026-11-08 12:15:38 -08:00
1 parent ee9f9389cb
commit aa188702ad
9 files changed
+345 -100

No files matched your search

+3 -1
View File
@@ -389,7 +389,9 @@ says which commits). It runs once per driver and driver version: its
verdicts are kept in the shader cache's
directory, named by the driver and the check's own version, not the runtime's (a device without
one checks once per process), and recalled as the next device is made
(`WorkCounts::in_place_checks_run`, `_passed`, `_failed`, `_unchecked`, `_recalled`). Such a
(`WorkCounts::in_place_checks_run`, `_passed`, `_failed`, `_unchecked`, `_recalled`): those it
measured, passed or failed. A class it could not check (no pages or no image of its kind made,
its reason noted) is checked again by the next device. Such a
texture's commands read and write the texels in the memory the buffer's commands read, so a CPU
write reaches them as it reaches the buffer's.