test(agc): let APS5_SKIP_TIMING_TESTS drop the order-signal latency bound #23886
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/23886"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by cocoa55 on 2026-11-19T20:48:12Z.
What
agc_driver_pm4_order_signal(added inf33c71d512) requires a held submission to start within 0.1 ms (median) of queue 0 waiting on its label. Under ASan the wake takes about 0.13 ms on an i5-9400F, so the test fails in sanitizer builds although the ordering is right. WithAPS5_SKIP_TIMING_TESTSset, as the sanitizer job sets it, the test keeps its ordering checks and skips only the latency bound.docs/dev/ENVIRONMENT.mdlists the new reader.Tested
CachyOS, GCC 16, the sanitizer job's flags (
ANYPS5_ENABLE_ASAN=ON,-fsanitize=undefined), onmain23786c4e4f:APS5_SKIP_TIMING_TESTS=1: 3 of 3 runs pass.median 0.137 ms, largest 0.281 ms).tools/env_reference.py --check: all names documented.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file — n/a.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T10:51:39Z.
Review: APPROVED
Reviewed — looks good
The change at head
24ee5422d8e625c433d9634b4464b34f74ec6dc0appears sound: the environment flag bypasses only the latency assertion, leaving the test’s ordering checks in place.What I ran
Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
changedin the manifest were read.files.jsonwas not available through the review reader.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T19:53:28Z.
Review: APPROVED
Reviewed — looks good
The ordering checks remain active with
APS5_SKIP_TIMING_TESTS; the variable skips only the latency assertion, and the matching environment table entry documents this behavior.What I ran
Reviewed head
4d7432bbd21b0f53230638aeb241e4b094ec2d66using the prepared diff and the pinned repository reader. No commands or tests were run.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
Runtime behavior and the author-reported sanitizer runs were not independently verified. The complete
Pm4.cppandENVIRONMENT.mdfiles were not read; targeted relevant sections were read.files.jsonwas not available through the reader. The manifest lists both changed files as reviewed and included.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T23:11:58Z.
Review: APPROVED
Reviewed — looks good
The changed code preserves the order checks and makes the latency bound conditional on
APS5_SKIP_TIMING_TESTSbeing set to a nonempty value not starting with0.What I ran
Reviewed head
34f589a2aab45640f7c84655b7111d41248c167dusingrepo_read.pyto read the prepared diff and relevant source context. No tests were run.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The reported sanitizer and non-sanitizer runs were not independently verified. No other repository files were read;
files.jsonwas not available through the reader, so the manifest was used to identify the changed files. The manifest lists both changed files as included and reviewed.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by malekaifa on 2026-11-24T20:50:46Z.
Review: APPROVED
Reviewed exact head
ea0de5181b9c68edc415f7919ddd67873a764d86.This is the same focused diff previously reviewed across earlier rebases.
testOrderHoldWake()still executes all 32 functional/order rounds before consultingAPS5_SKIP_TIMING_TESTS: it waits for queue 0 to arm, observes the held queue start, waits for driver idle, and checksdone == roundevery time. The environment switch returns only after those correctness checks and the latency report, so it suppresses just the host-scheduling-sensitive median< 0.1 msassertion under the same nonempty/non-0convention already used byPreciseWait.The ENVIRONMENT.md row accurately records the additional reader. Existing sanitizer evidence reproduces the ~0.13 ms instrumentation overhead, while nonsanitized and independent GPU runs preserve the bound/no-regression behavior. Current hosted checks were still queued at review time, so this is an exact-head source decision rather than a claim about their completion.
AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T08:51:31Z.
Review: COMMENTED
Reviewed — no blocking findings
The added guard preserves the ordering checks and skips only the latency bound when
APS5_SKIP_TIMING_TESTShas a nonempty value not starting with0; I found no blocking defect in the reviewed changes.What I ran
Reviewed head
ea0de5181b9c68edc415f7919ddd67873a764d86. No commands or tests were run; the reader tool was used to inspect the prepared diff and changed lines at the pinned head.Results
Negative control
Not run; no test environment was available through the reader.
Findings
Blocking
None.
Non-blocking
None.
Sources
The changed lines were read in
core/libs/prx/libSceAgcDriver/tests/Pm4.cppanddocs/dev/ENVIRONMENT.mdat the pinned head. The diff adds the environment check after the ordering assertions and before the latency-bound check; the documentation records the same behavior.Not verified
No tests or builds were run, and the author-reported sanitizer results were not independently verified. I read the added lines in both changed files, not their full contents. The manifest lists two changed files, both included; no exclusions were reported.
To get this to a good state
Nothing is required. The optional next step is to run the reported sanitizer and non-sanitizer checks on this head.