Skip to content

fix(console): land the tester's round 8 - #11

Merged
enricobuehler merged 2 commits into
mainfrom
fix/console-round-8
Oct 30, 2026
Merged

enricobuehler merged 2 commits into
mainfrom
fix/console-round-8

Conversation

@enricobuehler

Copy link
Copy Markdown
Member

Round 8 ran HDR On and Off over Ethernet, and PyroWave and HEVC at 4K120 on Automatic over Wi-Fi, on firmware 13.42. It found two console bugs. The third finding, ABR on this decoder, is in punktfunk core (unom/punktfunk#2196) and needs a pin bump to reach this client.

HDR: the setting was never read

display-hdr failed 0x80290001 in all four probes, HDR On and Off alike, and the title took the "kept on" path every launch. NID kGVLc3htQE8 hashes to sceVideoOutGetDeviceCapabilityInfo_, the sized form like sceVideoOutModeSetAny_, and the binding passed two arguments, leaving the size as whatever sat in the register. shadPS4's stub ignores a third argument, which is why this looked fine there.

0x80290001 is INVALID_VALUE, and a bad handle or address have their own codes. dce-ft opened/closed brackets the call, so sceVideoOutOpen was not the source.

The call now offers 8, 16 and 32 bytes and logs the one that answered, so a wrong size costs no test round.

The kernel log already showed what the firmware does: hdmi:vrr hdr with YCC2100_PQ at HDR On, hdmi:vrr sdr with 709 at HDR Off. The second is an HDR10 swapchain on a 709 output, and the picture looks normal.

Audio: a quiet wire was not concealed

Round 7 put the underruns on a fixed PyroWave rate, which was wrong. Round 8 ran Automatic: 59 and 29 underruns, depth 71 and 24 ms, against 0 at 11–16 ms on HEVC. Automatic can't help here, because BPP_FLOOR at 10-bit is 572 Mbit/s against the console's 650 cap.

The underrun jumps sit on stalls near 100 ms with unpolled_ms=1, so the client was polling and nothing arrived. The host sent on time (late=0). Android, Apple and the desktop client conceal during a drought; this client only concealed once a later packet showed the gap. After the ring ran dry it played silence, and its target stayed grown. underruns also reads low: after 50 ms the ring de-primes and the rest is uncounted silence, so one stall counts about 10.

The pump now wakes once a packet and calls core's DroughtConceal, and those frames are credited against the gap the next packet reveals. The 15 s audio line carries concealed=.

Verified

  • cargo fmt --check, cargo clippy --workspace --all-targets -- -D warnings, cargo test --workspace
  • Console clippy with -D warnings, title and --probe, in punktfunk-ps5-toolchain:1
  • New test a_drought_is_concealed_while_it_lasts_and_not_again_after

Not verified

Nothing here has run on a console, and the size argument is an inference from the elimination above.

  • If the bit reads clear at HDR On, the client silently loses HDR. Round 9 has to check that first.
  • A related firmware field keeps that bit set in-title at both settings, so the bit may not follow the setting. If it doesn't, HDR stays negotiated, which looks fine.
  • Concealment bridges stalls up to 100 ms. It does not prevent them.

sceVideoOutGetDeviceCapabilityInfo_ is the sized form, and the binding
left the third argument as whatever sat in the register. Firmware 13.42
refused it with INVALID_VALUE at HDR On and Off alike, so the client
kept advertising HDR and the setting was never read.

Sizes go up from one word until the call answers, and the line in the
log and in probe display-hdr names the one that did, so a wrong guess
costs no test round.
The console concealed a gap only once a later packet showed it, so a
100 ms Wi-Fi stall drained the ring, played silence, and left the ring
grown and 70 ms deep for the rest of the session. Android, Apple and
the desktop client conceal during the drought.

The pump now wakes once a packet, and frames concealed that way are
credited against the gap the next packet reveals. The 15 s audio line
carries the concealed total, because low underruns bought with
concealment are still a link in trouble.
@enricobuehler
enricobuehler merged commit 914693d into main Oct 30, 2026
2 checks passed
@enricobuehler
enricobuehler deleted the fix/console-round-8 branch October 30, 2026 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant